
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

bfd_boolean pr_tag_type(void *p,char *name,uint id,debug_type_kind kind)

{
  pr_handle *info;
  bfd_boolean bVar1;
  uint uVar2;
  char *type;
  char idbuf [22];
  
  switch(kind) {
  case DEBUG_KIND_STRUCT:
    type = "struct ";
    break;
  case DEBUG_KIND_UNION:
    type = "union ";
    break;
  case DEBUG_KIND_CLASS:
    type = "class ";
    break;
  case DEBUG_KIND_UNION_CLASS:
    type = "union class ";
    break;
  case DEBUG_KIND_ENUM:
    type = "enum ";
    break;
  default:
                    /* WARNING: Subroutine does not return */
    abort();
  }
  info = (pr_handle *)((int)p + 8);
  bVar1 = push_type(info,type);
  if (bVar1 != 0) {
    if (name == (char *)0x0) {
      sprintf(idbuf,"%%anon%u",id);
      bVar1 = append_type(info,idbuf);
      if (bVar1 != 0) {
        return 1;
      }
    }
    else {
      bVar1 = append_type(info,name);
      if (bVar1 != 0) {
        uVar2 = 1;
        if (kind != DEBUG_KIND_ENUM) {
          sprintf(idbuf," /* id %u */",id);
          bVar1 = append_type(info,idbuf);
          uVar2 = (uint)(bVar1 != 0);
        }
        return uVar2;
      }
    }
  }
  return 0;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

bool FUN_00039000(undefined4 param_1,int param_2,undefined4 param_3,int param_4)

{
  int iVar1;
  bool bVar2;
  char acStack_32 [30];
  undefined4 uStack_14;
  
  uStack_14 = 0x39009;
  switch(param_4) {
  case 7:
    break;
  case 8:
    break;
  case 9:
    break;
  case 10:
    break;
  case 0xb:
    break;
  default:
                    /* WARNING: Subroutine does not return */
    abort();
  }
  iVar1 = FUN_00038f80();
  if (iVar1 != 0) {
    if (param_2 == 0) {
      sprintf(acStack_32,"%%anon%u",param_3);
      iVar1 = FUN_00037580();
      if (iVar1 != 0) {
        return true;
      }
    }
    else {
      iVar1 = FUN_00037580();
      if (iVar1 != 0) {
        bVar2 = true;
        if (param_4 != 0xb) {
          sprintf(acStack_32," /* id %u */",param_3);
          iVar1 = FUN_00037580();
          bVar2 = iVar1 != 0;
        }
        return bVar2;
      }
    }
  }
  return false;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000153d0
ADD EBX,0x39ff7
SUB ESP,0x2c
MOV EDI,dword ptr [ESP + 0x4c]
MOV EBP,dword ptr [ESP + 0x44]
LEA EAX,[EDI + -0x7]
CMP EAX,0x4
JA 0x00014890
MOV ECX,dword ptr [EBX + EAX*0x4 + 0xfffe47d0]
ADD ECX,EBX
JMP ECX
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool FUN_00039000(undefined4 param_1,int param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  bool bVar2;\n  char acStack_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x39009;\n  switch(param_4) {\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  iVar1 = FUN_00038f80();\n  if (iVar1 != 0) {\n    if (param_2 == 0) {\n      sprintf(acStack_32,"%%anon%u",param_3);\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        return true;\n      }\n    }\n    else {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," /* id %u */",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }\n    }\n  }\n  return false;\n}\n\n" comment (function_definition "bool FUN_00039000(undefined4 param_1,int param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  bool bVar2;\n  char acStack_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x39009;\n  switch(param_4) {\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  iVar1 = FUN_00038f80();\n  if (iVar1 != 0) {\n    if (param_2 == 0) {\n      sprintf(acStack_32,"%%anon%u",param_3);\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        return true;\n      }\n    }\n    else {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," /* id %u */",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }\n    }\n  }\n  return false;\n}" primitive_type (function_declarator "FUN_00039000(undefined4 param_1,int param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  char acStack_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x39009;\n  switch(param_4) {\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  iVar1 = FUN_00038f80();\n  if (iVar1 != 0) {\n    if (param_2 == 0) {\n      sprintf(acStack_32,"%%anon%u",param_3);\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        return true;\n      }\n    }\n    else {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," /* id %u */",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }\n    }\n  }\n  return false;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "char acStack_32 [30];" primitive_type (array_declarator "acStack_32 [30]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x39009;" (assignment_expression "uStack_14 = 0x39009" identifier = number_literal) ;) (switch_statement "switch(param_4) {\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" switch (parenthesized_expression "(param_4)" ( identifier )) (compound_statement "{\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" { (case_statement "case 7:\n    break;" case number_literal : (break_statement "break;" break ;)) (case_statement "case 8:\n    break;" case number_literal : (break_statement "break;" break ;)) (case_statement "case 9:\n    break;" case number_literal : (break_statement "break;" break ;)) (case_statement "case 10:\n    break;" case number_literal : (break_statement "break;" break ;)) (case_statement "case 0xb:\n    break;" case number_literal : (break_statement "break;" break ;)) (case_statement "default:\n                    /* WARNING: Subroutine does not return */\n    abort();" default : comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;)) })) (expression_statement "iVar1 = FUN_00038f80();" (assignment_expression "iVar1 = FUN_00038f80()" identifier = (call_expression "FUN_00038f80()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n    if (param_2 == 0) {\n      sprintf(acStack_32,"%%anon%u",param_3);\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        return true;\n      }\n    }\n    else {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," /* id %u */",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }\n    }\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (param_2 == 0) {\n      sprintf(acStack_32,"%%anon%u",param_3);\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        return true;\n      }\n    }\n    else {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," /* id %u */",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }\n    }\n  }" { (if_statement "if (param_2 == 0) {\n      sprintf(acStack_32,"%%anon%u",param_3);\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        return true;\n      }\n    }\n    else {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," /* id %u */",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      sprintf(acStack_32,"%%anon%u",param_3);\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        return true;\n      }\n    }" { (expression_statement "sprintf(acStack_32,"%%anon%u",param_3);" (call_expression "sprintf(acStack_32,"%%anon%u",param_3)" identifier (argument_list "(acStack_32,"%%anon%u",param_3)" ( identifier , (string_literal ""%%anon%u"" " string_content ") , identifier ))) ;) (expression_statement "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n        return true;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        return true;\n      }" { (return_statement "return true;" return true ;) })) }) (else_clause "else {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," /* id %u */",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }\n    }" else (compound_statement "{\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," /* id %u */",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }\n    }" { (expression_statement "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," /* id %u */",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," /* id %u */",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }" { (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (if_statement "if (param_4 != 0xb) {\n          sprintf(acStack_32," /* id %u */",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }" if (parenthesized_expression "(param_4 != 0xb)" ( (binary_expression "param_4 != 0xb" identifier != number_literal) )) (compound_statement "{\n          sprintf(acStack_32," /* id %u */",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }" { (expression_statement "sprintf(acStack_32," /* id %u */",param_3);" (call_expression "sprintf(acStack_32," /* id %u */",param_3)" identifier (argument_list "(acStack_32," /* id %u */",param_3)" ( identifier , (string_literal "" /* id %u */"" " string_content ") , identifier ))) ;) (expression_statement "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) ;) (expression_statement "bVar2 = iVar1 != 0;" (assignment_expression "bVar2 = iVar1 != 0" identifier = (binary_expression "iVar1 != 0" identifier != number_literal)) ;) })) (return_statement "return bVar2;" return identifier ;) })) }))) })) (return_statement "return false;" return false ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nbfd_boolean pr_tag_type(void *p,char *name,uint id,debug_type_kind kind)\n\n{\n  pr_handle *info;\n  bfd_boolean bVar1;\n  uint uVar2;\n  char *type;\n  char idbuf [22];\n  \n  switch(kind) {\n  case DEBUG_KIND_STRUCT:\n    type = "struct ";\n    break;\n  case DEBUG_KIND_UNION:\n    type = "union ";\n    break;\n  case DEBUG_KIND_CLASS:\n    type = "class ";\n    break;\n  case DEBUG_KIND_UNION_CLASS:\n    type = "union class ";\n    break;\n  case DEBUG_KIND_ENUM:\n    type = "enum ";\n    break;\n  default:\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  info = (pr_handle *)((int)p + 8);\n  bVar1 = push_type(info,type);\n  if (bVar1 != 0) {\n    if (name == (char *)0x0) {\n      sprintf(idbuf,"%%anon%u",id);\n      bVar1 = append_type(info,idbuf);\n      if (bVar1 != 0) {\n        return 1;\n      }\n    }\n    else {\n      bVar1 = append_type(info,name);\n      if (bVar1 != 0) {\n        uVar2 = 1;\n        if (kind != DEBUG_KIND_ENUM) {\n          sprintf(idbuf," /* id %u */",id);\n          bVar1 = append_type(info,idbuf);\n          uVar2 = (uint)(bVar1 != 0);\n        }\n        return uVar2;\n      }\n    }\n  }\n  return 0;\n}\n\n" comment comment (function_definition "bfd_boolean pr_tag_type(void *p,char *name,uint id,debug_type_kind kind)\n\n{\n  pr_handle *info;\n  bfd_boolean bVar1;\n  uint uVar2;\n  char *type;\n  char idbuf [22];\n  \n  switch(kind) {\n  case DEBUG_KIND_STRUCT:\n    type = "struct ";\n    break;\n  case DEBUG_KIND_UNION:\n    type = "union ";\n    break;\n  case DEBUG_KIND_CLASS:\n    type = "class ";\n    break;\n  case DEBUG_KIND_UNION_CLASS:\n    type = "union class ";\n    break;\n  case DEBUG_KIND_ENUM:\n    type = "enum ";\n    break;\n  default:\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  info = (pr_handle *)((int)p + 8);\n  bVar1 = push_type(info,type);\n  if (bVar1 != 0) {\n    if (name == (char *)0x0) {\n      sprintf(idbuf,"%%anon%u",id);\n      bVar1 = append_type(info,idbuf);\n      if (bVar1 != 0) {\n        return 1;\n      }\n    }\n    else {\n      bVar1 = append_type(info,name);\n      if (bVar1 != 0) {\n        uVar2 = 1;\n        if (kind != DEBUG_KIND_ENUM) {\n          sprintf(idbuf," /* id %u */",id);\n          bVar1 = append_type(info,idbuf);\n          uVar2 = (uint)(bVar1 != 0);\n        }\n        return uVar2;\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "pr_tag_type(void *p,char *name,uint id,debug_type_kind kind)" identifier (parameter_list "(void *p,char *name,uint id,debug_type_kind kind)" ( (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "uint id" type_identifier identifier) , (parameter_declaration "debug_type_kind kind" type_identifier identifier) ))) (compound_statement "{\n  pr_handle *info;\n  bfd_boolean bVar1;\n  uint uVar2;\n  char *type;\n  char idbuf [22];\n  \n  switch(kind) {\n  case DEBUG_KIND_STRUCT:\n    type = "struct ";\n    break;\n  case DEBUG_KIND_UNION:\n    type = "union ";\n    break;\n  case DEBUG_KIND_CLASS:\n    type = "class ";\n    break;\n  case DEBUG_KIND_UNION_CLASS:\n    type = "union class ";\n    break;\n  case DEBUG_KIND_ENUM:\n    type = "enum ";\n    break;\n  default:\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  info = (pr_handle *)((int)p + 8);\n  bVar1 = push_type(info,type);\n  if (bVar1 != 0) {\n    if (name == (char *)0x0) {\n      sprintf(idbuf,"%%anon%u",id);\n      bVar1 = append_type(info,idbuf);\n      if (bVar1 != 0) {\n        return 1;\n      }\n    }\n    else {\n      bVar1 = append_type(info,name);\n      if (bVar1 != 0) {\n        uVar2 = 1;\n        if (kind != DEBUG_KIND_ENUM) {\n          sprintf(idbuf," /* id %u */",id);\n          bVar1 = append_type(info,idbuf);\n          uVar2 = (uint)(bVar1 != 0);\n        }\n        return uVar2;\n      }\n    }\n  }\n  return 0;\n}" { (declaration "pr_handle *info;" type_identifier (pointer_declarator "*info" * identifier) ;) (declaration "bfd_boolean bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "char *type;" primitive_type (pointer_declarator "*type" * identifier) ;) (declaration "char idbuf [22];" primitive_type (array_declarator "idbuf [22]" identifier [ number_literal ]) ;) (switch_statement "switch(kind) {\n  case DEBUG_KIND_STRUCT:\n    type = "struct ";\n    break;\n  case DEBUG_KIND_UNION:\n    type = "union ";\n    break;\n  case DEBUG_KIND_CLASS:\n    type = "class ";\n    break;\n  case DEBUG_KIND_UNION_CLASS:\n    type = "union class ";\n    break;\n  case DEBUG_KIND_ENUM:\n    type = "enum ";\n    break;\n  default:\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" switch (parenthesized_expression "(kind)" ( identifier )) (compound_statement "{\n  case DEBUG_KIND_STRUCT:\n    type = "struct ";\n    break;\n  case DEBUG_KIND_UNION:\n    type = "union ";\n    break;\n  case DEBUG_KIND_CLASS:\n    type = "class ";\n    break;\n  case DEBUG_KIND_UNION_CLASS:\n    type = "union class ";\n    break;\n  case DEBUG_KIND_ENUM:\n    type = "enum ";\n    break;\n  default:\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" { (case_statement "case DEBUG_KIND_STRUCT:\n    type = "struct ";\n    break;" case identifier : (expression_statement "type = "struct ";" (assignment_expression "type = "struct "" identifier = (string_literal ""struct "" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case DEBUG_KIND_UNION:\n    type = "union ";\n    break;" case identifier : (expression_statement "type = "union ";" (assignment_expression "type = "union "" identifier = (string_literal ""union "" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case DEBUG_KIND_CLASS:\n    type = "class ";\n    break;" case identifier : (expression_statement "type = "class ";" (assignment_expression "type = "class "" identifier = (string_literal ""class "" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case DEBUG_KIND_UNION_CLASS:\n    type = "union class ";\n    break;" case identifier : (expression_statement "type = "union class ";" (assignment_expression "type = "union class "" identifier = (string_literal ""union class "" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case DEBUG_KIND_ENUM:\n    type = "enum ";\n    break;" case identifier : (expression_statement "type = "enum ";" (assignment_expression "type = "enum "" identifier = (string_literal ""enum "" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "default:\n                    /* WARNING: Subroutine does not return */\n    abort();" default : comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;)) })) (expression_statement "info = (pr_handle *)((int)p + 8);" (assignment_expression "info = (pr_handle *)((int)p + 8)" identifier = (cast_expression "(pr_handle *)((int)p + 8)" ( (type_descriptor "pr_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 8)" ( (binary_expression "(int)p + 8" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "bVar1 = push_type(info,type);" (assignment_expression "bVar1 = push_type(info,type)" identifier = (call_expression "push_type(info,type)" identifier (argument_list "(info,type)" ( identifier , identifier )))) ;) (if_statement "if (bVar1 != 0) {\n    if (name == (char *)0x0) {\n      sprintf(idbuf,"%%anon%u",id);\n      bVar1 = append_type(info,idbuf);\n      if (bVar1 != 0) {\n        return 1;\n      }\n    }\n    else {\n      bVar1 = append_type(info,name);\n      if (bVar1 != 0) {\n        uVar2 = 1;\n        if (kind != DEBUG_KIND_ENUM) {\n          sprintf(idbuf," /* id %u */",id);\n          bVar1 = append_type(info,idbuf);\n          uVar2 = (uint)(bVar1 != 0);\n        }\n        return uVar2;\n      }\n    }\n  }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (name == (char *)0x0) {\n      sprintf(idbuf,"%%anon%u",id);\n      bVar1 = append_type(info,idbuf);\n      if (bVar1 != 0) {\n        return 1;\n      }\n    }\n    else {\n      bVar1 = append_type(info,name);\n      if (bVar1 != 0) {\n        uVar2 = 1;\n        if (kind != DEBUG_KIND_ENUM) {\n          sprintf(idbuf," /* id %u */",id);\n          bVar1 = append_type(info,idbuf);\n          uVar2 = (uint)(bVar1 != 0);\n        }\n        return uVar2;\n      }\n    }\n  }" { (if_statement "if (name == (char *)0x0) {\n      sprintf(idbuf,"%%anon%u",id);\n      bVar1 = append_type(info,idbuf);\n      if (bVar1 != 0) {\n        return 1;\n      }\n    }\n    else {\n      bVar1 = append_type(info,name);\n      if (bVar1 != 0) {\n        uVar2 = 1;\n        if (kind != DEBUG_KIND_ENUM) {\n          sprintf(idbuf," /* id %u */",id);\n          bVar1 = append_type(info,idbuf);\n          uVar2 = (uint)(bVar1 != 0);\n        }\n        return uVar2;\n      }\n    }" if (parenthesized_expression "(name == (char *)0x0)" ( (binary_expression "name == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sprintf(idbuf,"%%anon%u",id);\n      bVar1 = append_type(info,idbuf);\n      if (bVar1 != 0) {\n        return 1;\n      }\n    }" { (expression_statement "sprintf(idbuf,"%%anon%u",id);" (call_expression "sprintf(idbuf,"%%anon%u",id)" identifier (argument_list "(idbuf,"%%anon%u",id)" ( identifier , (string_literal ""%%anon%u"" " string_content ") , identifier ))) ;) (expression_statement "bVar1 = append_type(info,idbuf);" (assignment_expression "bVar1 = append_type(info,idbuf)" identifier = (call_expression "append_type(info,idbuf)" identifier (argument_list "(info,idbuf)" ( identifier , identifier )))) ;) (if_statement "if (bVar1 != 0) {\n        return 1;\n      }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else {\n      bVar1 = append_type(info,name);\n      if (bVar1 != 0) {\n        uVar2 = 1;\n        if (kind != DEBUG_KIND_ENUM) {\n          sprintf(idbuf," /* id %u */",id);\n          bVar1 = append_type(info,idbuf);\n          uVar2 = (uint)(bVar1 != 0);\n        }\n        return uVar2;\n      }\n    }" else (compound_statement "{\n      bVar1 = append_type(info,name);\n      if (bVar1 != 0) {\n        uVar2 = 1;\n        if (kind != DEBUG_KIND_ENUM) {\n          sprintf(idbuf," /* id %u */",id);\n          bVar1 = append_type(info,idbuf);\n          uVar2 = (uint)(bVar1 != 0);\n        }\n        return uVar2;\n      }\n    }" { (expression_statement "bVar1 = append_type(info,name);" (assignment_expression "bVar1 = append_type(info,name)" identifier = (call_expression "append_type(info,name)" identifier (argument_list "(info,name)" ( identifier , identifier )))) ;) (if_statement "if (bVar1 != 0) {\n        uVar2 = 1;\n        if (kind != DEBUG_KIND_ENUM) {\n          sprintf(idbuf," /* id %u */",id);\n          bVar1 = append_type(info,idbuf);\n          uVar2 = (uint)(bVar1 != 0);\n        }\n        return uVar2;\n      }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar2 = 1;\n        if (kind != DEBUG_KIND_ENUM) {\n          sprintf(idbuf," /* id %u */",id);\n          bVar1 = append_type(info,idbuf);\n          uVar2 = (uint)(bVar1 != 0);\n        }\n        return uVar2;\n      }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (if_statement "if (kind != DEBUG_KIND_ENUM) {\n          sprintf(idbuf," /* id %u */",id);\n          bVar1 = append_type(info,idbuf);\n          uVar2 = (uint)(bVar1 != 0);\n        }" if (parenthesized_expression "(kind != DEBUG_KIND_ENUM)" ( (binary_expression "kind != DEBUG_KIND_ENUM" identifier != identifier) )) (compound_statement "{\n          sprintf(idbuf," /* id %u */",id);\n          bVar1 = append_type(info,idbuf);\n          uVar2 = (uint)(bVar1 != 0);\n        }" { (expression_statement "sprintf(idbuf," /* id %u */",id);" (call_expression "sprintf(idbuf," /* id %u */",id)" identifier (argument_list "(idbuf," /* id %u */",id)" ( identifier , (string_literal "" /* id %u */"" " string_content ") , identifier ))) ;) (expression_statement "bVar1 = append_type(info,idbuf);" (assignment_expression "bVar1 = append_type(info,idbuf)" identifier = (call_expression "append_type(info,idbuf)" identifier (argument_list "(info,idbuf)" ( identifier , identifier )))) ;) (expression_statement "uVar2 = (uint)(bVar1 != 0);" (assignment_expression "uVar2 = (uint)(bVar1 != 0)" identifier = (call_expression "(uint)(bVar1 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )))) ;) })) (return_statement "return uVar2;" return identifier ;) })) }))) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "bool FUN_00039000(undefined4 param_1,int param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  bool bVar2;\n  char acStack_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x39009;\n  switch(param_4) {\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    \n    abort();\n  }\n  iVar1 = FUN_00038f80();\n  if (iVar1 != 0) {\n    if (param_2 == 0) {\n      sprintf(acStack_32,"%%anon%u",param_3);\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        return true;\n      }\n    }\n    else {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," ",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }\n    }\n  }\n  return false;\n}\n\n" (function_definition "bool FUN_00039000(undefined4 param_1,int param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  bool bVar2;\n  char acStack_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x39009;\n  switch(param_4) {\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    \n    abort();\n  }\n  iVar1 = FUN_00038f80();\n  if (iVar1 != 0) {\n    if (param_2 == 0) {\n      sprintf(acStack_32,"%%anon%u",param_3);\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        return true;\n      }\n    }\n    else {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," ",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }\n    }\n  }\n  return false;\n}" primitive_type (function_declarator "FUN_00039000(undefined4 param_1,int param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  char acStack_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x39009;\n  switch(param_4) {\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    \n    abort();\n  }\n  iVar1 = FUN_00038f80();\n  if (iVar1 != 0) {\n    if (param_2 == 0) {\n      sprintf(acStack_32,"%%anon%u",param_3);\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        return true;\n      }\n    }\n    else {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," ",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }\n    }\n  }\n  return false;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "char acStack_32 [30];" primitive_type (array_declarator "acStack_32 [30]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x39009;" (assignment_expression "uStack_14 = 0x39009" identifier = number_literal) ;) (switch_statement "switch(param_4) {\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    \n    abort();\n  }" switch (parenthesized_expression "(param_4)" ( identifier )) (compound_statement "{\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    \n    abort();\n  }" { (case_statement "case 7:\n    break;" case number_literal : (break_statement "break;" break ;)) (case_statement "case 8:\n    break;" case number_literal : (break_statement "break;" break ;)) (case_statement "case 9:\n    break;" case number_literal : (break_statement "break;" break ;)) (case_statement "case 10:\n    break;" case number_literal : (break_statement "break;" break ;)) (case_statement "case 0xb:\n    break;" case number_literal : (break_statement "break;" break ;)) (case_statement "default:\n                    \n    abort();" default : (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;)) })) (expression_statement "iVar1 = FUN_00038f80();" (assignment_expression "iVar1 = FUN_00038f80()" identifier = (call_expression "FUN_00038f80()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n    if (param_2 == 0) {\n      sprintf(acStack_32,"%%anon%u",param_3);\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        return true;\n      }\n    }\n    else {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," ",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }\n    }\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (param_2 == 0) {\n      sprintf(acStack_32,"%%anon%u",param_3);\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        return true;\n      }\n    }\n    else {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," ",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }\n    }\n  }" { (if_statement "if (param_2 == 0) {\n      sprintf(acStack_32,"%%anon%u",param_3);\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        return true;\n      }\n    }\n    else {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," ",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      sprintf(acStack_32,"%%anon%u",param_3);\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        return true;\n      }\n    }" { (expression_statement "sprintf(acStack_32,"%%anon%u",param_3);" (call_expression "sprintf(acStack_32,"%%anon%u",param_3)" identifier (argument_list "(acStack_32,"%%anon%u",param_3)" ( identifier , (string_literal ""%%anon%u"" " string_content ") , identifier ))) ;) (expression_statement "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n        return true;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        return true;\n      }" { (return_statement "return true;" return true ;) })) }) (else_clause "else {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," ",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }\n    }" else (compound_statement "{\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," ",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }\n    }" { (expression_statement "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," ",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," ",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }" { (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (if_statement "if (param_4 != 0xb) {\n          sprintf(acStack_32," ",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }" if (parenthesized_expression "(param_4 != 0xb)" ( (binary_expression "param_4 != 0xb" identifier != number_literal) )) (compound_statement "{\n          sprintf(acStack_32," ",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }" { (expression_statement "sprintf(acStack_32," ",param_3);" (call_expression "sprintf(acStack_32," ",param_3)" identifier (argument_list "(acStack_32," ",param_3)" ( identifier , (string_literal "" "" " string_content ") , identifier ))) ;) (expression_statement "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) ;) (expression_statement "bVar2 = iVar1 != 0;" (assignment_expression "bVar2 = iVar1 != 0" identifier = (binary_expression "iVar1 != 0" identifier != number_literal)) ;) })) (return_statement "return bVar2;" return identifier ;) })) }))) })) (return_statement "return false;" return false ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (switch_statement switch (parenthesized_expression ( IDENT )) (compound_statement { (case_statement case LIT : (break_statement break ;)) (case_statement case LIT : (break_statement break ;)) (case_statement case LIT : (break_statement break ;)) (case_statement case LIT : (break_statement break ;)) (case_statement case LIT : (break_statement break ;)) (case_statement default : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return BOOL ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT != LIT)) ;) })) (return_statement return IDENT ;) })) }))) })) (return_statement return BOOL ;) })))
(function_definition "bool FUN_00039000(undefined4 param_1,int param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  bool bVar2;\n  char acStack_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x39009;\n  switch(param_4) {\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    \n    abort();\n  }\n  iVar1 = FUN_00038f80();\n  if (iVar1 != 0) {\n    if (param_2 == 0) {\n      sprintf(acStack_32,"%%anon%u",param_3);\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        return true;\n      }\n    }\n    else {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," ",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }\n    }\n  }\n  return false;\n}" (primitive_type "bool") (function_declarator "FUN_00039000(undefined4 param_1,int param_2,undefined4 param_3,int param_4)" (identifier "FUN_00039000") (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,int param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  char acStack_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x39009;\n  switch(param_4) {\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    \n    abort();\n  }\n  iVar1 = FUN_00038f80();\n  if (iVar1 != 0) {\n    if (param_2 == 0) {\n      sprintf(acStack_32,"%%anon%u",param_3);\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        return true;\n      }\n    }\n    else {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," ",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }\n    }\n  }\n  return false;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "bool bVar2;" (primitive_type "bool") (identifier "bVar2") (; ";")) (declaration "char acStack_32 [30];" (primitive_type "char") (array_declarator "acStack_32 [30]" (identifier "acStack_32") ([ "[") (number_literal "30") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x39009;" (assignment_expression "uStack_14 = 0x39009" (identifier "uStack_14") (= "=") (number_literal "0x39009")) (; ";")) (switch_statement "switch(param_4) {\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    \n    abort();\n  }" (switch "switch") (parenthesized_expression "(param_4)" (( "(") (identifier "param_4") () ")")) (compound_statement "{\n  case 7:\n    break;\n  case 8:\n    break;\n  case 9:\n    break;\n  case 10:\n    break;\n  case 0xb:\n    break;\n  default:\n                    \n    abort();\n  }" ({ "{") (case_statement "case 7:\n    break;" (case "case") (number_literal "7") (: ":") (break_statement "break;" (break "break") (; ";"))) (case_statement "case 8:\n    break;" (case "case") (number_literal "8") (: ":") (break_statement "break;" (break "break") (; ";"))) (case_statement "case 9:\n    break;" (case "case") (number_literal "9") (: ":") (break_statement "break;" (break "break") (; ";"))) (case_statement "case 10:\n    break;" (case "case") (number_literal "10") (: ":") (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0xb:\n    break;" (case "case") (number_literal "0xb") (: ":") (break_statement "break;" (break "break") (; ";"))) (case_statement "default:\n                    \n    abort();" (default "default") (: ":") (expression_statement "abort();" (call_expression "abort()" (identifier "abort") (argument_list "()" (( "(") () ")"))) (; ";"))) (} "}"))) (expression_statement "iVar1 = FUN_00038f80();" (assignment_expression "iVar1 = FUN_00038f80()" (identifier "iVar1") (= "=") (call_expression "FUN_00038f80()" (identifier "FUN_00038f80") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    if (param_2 == 0) {\n      sprintf(acStack_32,"%%anon%u",param_3);\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        return true;\n      }\n    }\n    else {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," ",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_2 == 0) {\n      sprintf(acStack_32,"%%anon%u",param_3);\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        return true;\n      }\n    }\n    else {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," ",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }\n    }\n  }" ({ "{") (if_statement "if (param_2 == 0) {\n      sprintf(acStack_32,"%%anon%u",param_3);\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        return true;\n      }\n    }\n    else {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," ",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }\n    }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      sprintf(acStack_32,"%%anon%u",param_3);\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        return true;\n      }\n    }" ({ "{") (expression_statement "sprintf(acStack_32,"%%anon%u",param_3);" (call_expression "sprintf(acStack_32,"%%anon%u",param_3)" (identifier "sprintf") (argument_list "(acStack_32,"%%anon%u",param_3)" (( "(") (identifier "acStack_32") (, ",") (string_literal ""%%anon%u"" (" """) (string_content "%%anon%u") (" """)) (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" (identifier "iVar1") (= "=") (call_expression "FUN_00037580()" (identifier "FUN_00037580") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n        return true;\n      }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        return true;\n      }" ({ "{") (return_statement "return true;" (return "return") (true "true") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," ",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }\n    }" (else "else") (compound_statement "{\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) {\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," ",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }\n    }" ({ "{") (expression_statement "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" (identifier "iVar1") (= "=") (call_expression "FUN_00037580()" (identifier "FUN_00037580") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," ",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        bVar2 = true;\n        if (param_4 != 0xb) {\n          sprintf(acStack_32," ",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }\n        return bVar2;\n      }" ({ "{") (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" (identifier "bVar2") (= "=") (true "true")) (; ";")) (if_statement "if (param_4 != 0xb) {\n          sprintf(acStack_32," ",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }" (if "if") (parenthesized_expression "(param_4 != 0xb)" (( "(") (binary_expression "param_4 != 0xb" (identifier "param_4") (!= "!=") (number_literal "0xb")) () ")")) (compound_statement "{\n          sprintf(acStack_32," ",param_3);\n          iVar1 = FUN_00037580();\n          bVar2 = iVar1 != 0;\n        }" ({ "{") (expression_statement "sprintf(acStack_32," ",param_3);" (call_expression "sprintf(acStack_32," ",param_3)" (identifier "sprintf") (argument_list "(acStack_32," ",param_3)" (( "(") (identifier "acStack_32") (, ",") (string_literal "" "" (" """) (string_content " ") (" """)) (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" (identifier "iVar1") (= "=") (call_expression "FUN_00037580()" (identifier "FUN_00037580") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "bVar2 = iVar1 != 0;" (assignment_expression "bVar2 = iVar1 != 0" (identifier "bVar2") (= "=") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) (; ";")) (} "}"))) (return_statement "return bVar2;" (return "return") (identifier "bVar2") (; ";")) (} "}"))) (} "}")))) (} "}"))) (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

type_1 function_1(void *p,char *var_4,type_2 id,type_3 var_7)

{
  type_4 *info;
  type_1 var_3;
  type_2 uVar2;
  char *type;
  char idbuf [22];
  
  switch(var_7) {
  case DEBUG_KIND_STRUCT:
    type = "struct ";
    break;
  case DEBUG_KIND_UNION:
    type = "union ";
    break;
  case DEBUG_KIND_CLASS:
    type = "class ";
    break;
  case DEBUG_KIND_UNION_CLASS:
    type = "union class ";
    break;
  case var_8:
    type = "enum ";
    break;
  default:
                    /* WARNING: Subroutine does not return */
    var_1();
  }
  info = (type_4 *)((int)p + 8);
  var_3 = var_2(info,type);
  if (var_3 != 0) {
    if (var_4 == (char *)0x0) {
      var_5(idbuf,"%%anon%u",id);
      var_3 = var_6(info,idbuf);
      if (var_3 != 0) {
        return 1;
      }
    }
    else {
      var_3 = var_6(info,var_4);
      if (var_3 != 0) {
        uVar2 = 1;
        if (var_7 != var_8) {
          var_5(idbuf," /* id %u */",id);
          var_3 = var_6(info,idbuf);
          uVar2 = (type_2)(var_3 != 0);
        }
        return uVar2;
      }
    }
  }
  return 0;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (switch_statement condition: (parenthesized_expression (identifier)) body: (compound_statement (case_statement value: (number_literal) (break_statement)) (case_statement value: (number_literal) (break_statement)) (case_statement value: (number_literal) (break_statement)) (case_statement value: (number_literal) (break_statement)) (case_statement value: (number_literal) (break_statement)) (case_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (true))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (true))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier))))))))) (return_statement (false)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

bool MASKED(undefined4 param_1,int param_2,undefined4 param_3,int param_4)

{
  int iVar1;
  bool bVar2;
  char acStack_32 [30];
  undefined4 uStack_14;
  
  uStack_14 = 0x39009;
  switch(param_4) {
  case 7:
    break;
  case 8:
    break;
  case 9:
    break;
  case 10:
    break;
  case 0xb:
    break;
  default:
                    /* WARNING: Subroutine does not return */
    abort();
  }
  iVar1 = FUN_00038f80();
  if (iVar1 != 0) {
    if (param_2 == 0) {
      sprintf(acStack_32,"%%anon%u",param_3);
      iVar1 = FUN_00037580();
      if (iVar1 != 0) {
        return true;
      }
    }
    else {
      iVar1 = FUN_00037580();
      if (iVar1 != 0) {
        bVar2 = true;
        if (param_4 != 0xb) {
          sprintf(acStack_32," /* id %u */",param_3);
          iVar1 = FUN_00037580();
          bVar2 = iVar1 != 0;
        }
        return bVar2;
      }
    }
  }
  return false;
}

