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

void add_to_set(bfd_link_info *info,bfd_link_hash_entry *h,bfd_reloc_code_real_type reloc,bfd *abfd,
               asection *section,bfd_vma value)

{
  char *pcVar1;
  char *fmt;
  
  if (config.warn_constructors != 0) {
    pcVar1 = (h->root).string;
    fmt = (char *)dcgettext(0,"%P: warning: global constructor %s used\n",5);
    einfo(fmt,pcVar1);
  }
  if (config.build_constructors != 0) {
    ldctor_add_set_entry(h,reloc,(char *)0x0,section,value);
    if (h->field_0xc == '\0') {
      h->field_0xc = 1;
      (h->u).undef.abfd = abfd;
      return;
    }
  }
  return;
}



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

void FUN_0002def0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,
                 undefined4 param_5,undefined4 param_6,undefined4 param_7)

{
  undefined4 uVar1;
  undefined4 uVar2;
  
  if (DAT_0013d7d0 != 0) {
    uVar1 = *(undefined4 *)(param_2 + 4);
    uVar2 = dcgettext(0,"%P: warning: global constructor %s used\n",5);
    FUN_00033ba0(uVar2,uVar1);
  }
  if (DAT_0013d7cc != 0) {
    FUN_0002c8a0(param_2,param_3,0,param_5,param_6,param_7);
    if (*(char *)(param_2 + 0xc) == '\0') {
      *(undefined1 *)(param_2 + 0xc) = 1;
      *(undefined4 *)(param_2 + 0x14) = param_4;
      return;
    }
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00016a30
ADD EBX,0x10e107
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x34]
MOV EDI,dword ptr [ESP + 0x44]
MOV EBP,dword ptr [ESP + 0x48]
LEA EDX,[EBX + 0x17c0]
MOV EAX,dword ptr [EDX + 0x10]
TEST EAX,EAX
JNZ 0x0002df68
MOV EAX,dword ptr [EDX + 0xc]
TEST EAX,EAX
JNZ 0x0002df30
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH EBP
PUSH EDI
PUSH dword ptr [ESP + 0x50]
PUSH 0x0
PUSH dword ptr [ESP + 0x50]
PUSH ESI
CALL 0x0002c8a0
ADD ESP,0x20
CMP byte ptr [ESI + 0xc],0x0
JNZ 0x0002df22
MOV EAX,dword ptr [ESP + 0x3c]
MOV byte ptr [ESI + 0xc],0x1
MOV dword ptr [ESI + 0x14],EAX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,dword ptr [ESI + 0x4]
MOV dword ptr [ESP + 0xc],EDX
LEA EAX,[EBX + 0xfff27468]
SUB ESP,0x4
MOV dword ptr [ESP + 0xc],ECX
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000152e0
POP EDX
POP ECX
MOV ECX,dword ptr [ESP + 0x10]
PUSH ECX
PUSH EAX
CALL 0x00033ba0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
JMP 0x0002df1b
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0002def0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  if (DAT_0013d7d0 != 0) {\n    uVar1 = *(undefined4 *)(param_2 + 4);\n    uVar2 = dcgettext(0,"%P: warning: global constructor %s used\n",5);\n    FUN_00033ba0(uVar2,uVar1);\n  }\n  if (DAT_0013d7cc != 0) {\n    FUN_0002c8a0(param_2,param_3,0,param_5,param_6,param_7);\n    if (*(char *)(param_2 + 0xc) == '\0') {\n      *(undefined1 *)(param_2 + 0xc) = 1;\n      *(undefined4 *)(param_2 + 0x14) = param_4;\n      return;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0002def0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  if (DAT_0013d7d0 != 0) {\n    uVar1 = *(undefined4 *)(param_2 + 4);\n    uVar2 = dcgettext(0,"%P: warning: global constructor %s used\n",5);\n    FUN_00033ba0(uVar2,uVar1);\n  }\n  if (DAT_0013d7cc != 0) {\n    FUN_0002c8a0(param_2,param_3,0,param_5,param_6,param_7);\n    if (*(char *)(param_2 + 0xc) == '\0') {\n      *(undefined1 *)(param_2 + 0xc) = 1;\n      *(undefined4 *)(param_2 + 0x14) = param_4;\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0002def0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7)" ( (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 "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  if (DAT_0013d7d0 != 0) {\n    uVar1 = *(undefined4 *)(param_2 + 4);\n    uVar2 = dcgettext(0,"%P: warning: global constructor %s used\n",5);\n    FUN_00033ba0(uVar2,uVar1);\n  }\n  if (DAT_0013d7cc != 0) {\n    FUN_0002c8a0(param_2,param_3,0,param_5,param_6,param_7);\n    if (*(char *)(param_2 + 0xc) == '\0') {\n      *(undefined1 *)(param_2 + 0xc) = 1;\n      *(undefined4 *)(param_2 + 0x14) = param_4;\n      return;\n    }\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (DAT_0013d7d0 != 0) {\n    uVar1 = *(undefined4 *)(param_2 + 4);\n    uVar2 = dcgettext(0,"%P: warning: global constructor %s used\n",5);\n    FUN_00033ba0(uVar2,uVar1);\n  }" if (parenthesized_expression "(DAT_0013d7d0 != 0)" ( (binary_expression "DAT_0013d7d0 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = *(undefined4 *)(param_2 + 4);\n    uVar2 = dcgettext(0,"%P: warning: global constructor %s used\n",5);\n    FUN_00033ba0(uVar2,uVar1);\n  }" { (expression_statement "uVar1 = *(undefined4 *)(param_2 + 4);" (assignment_expression "uVar1 = *(undefined4 *)(param_2 + 4)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 4)" * (cast_expression "(undefined4 *)(param_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = dcgettext(0,"%P: warning: global constructor %s used\n",5);" (assignment_expression "uVar2 = dcgettext(0,"%P: warning: global constructor %s used\n",5)" identifier = (call_expression "dcgettext(0,"%P: warning: global constructor %s used\n",5)" identifier (argument_list "(0,"%P: warning: global constructor %s used\n",5)" ( number_literal , (string_literal ""%P: warning: global constructor %s used\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00033ba0(uVar2,uVar1);" (call_expression "FUN_00033ba0(uVar2,uVar1)" identifier (argument_list "(uVar2,uVar1)" ( identifier , identifier ))) ;) })) (if_statement "if (DAT_0013d7cc != 0) {\n    FUN_0002c8a0(param_2,param_3,0,param_5,param_6,param_7);\n    if (*(char *)(param_2 + 0xc) == '\0') {\n      *(undefined1 *)(param_2 + 0xc) = 1;\n      *(undefined4 *)(param_2 + 0x14) = param_4;\n      return;\n    }\n  }" if (parenthesized_expression "(DAT_0013d7cc != 0)" ( (binary_expression "DAT_0013d7cc != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_0002c8a0(param_2,param_3,0,param_5,param_6,param_7);\n    if (*(char *)(param_2 + 0xc) == '\0') {\n      *(undefined1 *)(param_2 + 0xc) = 1;\n      *(undefined4 *)(param_2 + 0x14) = param_4;\n      return;\n    }\n  }" { (expression_statement "FUN_0002c8a0(param_2,param_3,0,param_5,param_6,param_7);" (call_expression "FUN_0002c8a0(param_2,param_3,0,param_5,param_6,param_7)" identifier (argument_list "(param_2,param_3,0,param_5,param_6,param_7)" ( identifier , identifier , number_literal , identifier , identifier , identifier ))) ;) (if_statement "if (*(char *)(param_2 + 0xc) == '\0') {\n      *(undefined1 *)(param_2 + 0xc) = 1;\n      *(undefined4 *)(param_2 + 0x14) = param_4;\n      return;\n    }" if (parenthesized_expression "(*(char *)(param_2 + 0xc) == '\0')" ( (binary_expression "*(char *)(param_2 + 0xc) == '\0'" (pointer_expression "*(char *)(param_2 + 0xc)" * (cast_expression "(char *)(param_2 + 0xc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *(undefined1 *)(param_2 + 0xc) = 1;\n      *(undefined4 *)(param_2 + 0x14) = param_4;\n      return;\n    }" { (expression_statement "*(undefined1 *)(param_2 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 0xc) = 1" (pointer_expression "*(undefined1 *)(param_2 + 0xc)" * (cast_expression "(undefined1 *)(param_2 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_2 + 0x14) = param_4;" (assignment_expression "*(undefined4 *)(param_2 + 0x14) = param_4" (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid add_to_set(bfd_link_info *info,bfd_link_hash_entry *h,bfd_reloc_code_real_type reloc,bfd *abfd,\n               asection *section,bfd_vma value)\n\n{\n  char *pcVar1;\n  char *fmt;\n  \n  if (config.warn_constructors != 0) {\n    pcVar1 = (h->root).string;\n    fmt = (char *)dcgettext(0,"%P: warning: global constructor %s used\n",5);\n    einfo(fmt,pcVar1);\n  }\n  if (config.build_constructors != 0) {\n    ldctor_add_set_entry(h,reloc,(char *)0x0,section,value);\n    if (h->field_0xc == '\0') {\n      h->field_0xc = 1;\n      (h->u).undef.abfd = abfd;\n      return;\n    }\n  }\n  return;\n}\n\n" comment comment (function_definition "void add_to_set(bfd_link_info *info,bfd_link_hash_entry *h,bfd_reloc_code_real_type reloc,bfd *abfd,\n               asection *section,bfd_vma value)\n\n{\n  char *pcVar1;\n  char *fmt;\n  \n  if (config.warn_constructors != 0) {\n    pcVar1 = (h->root).string;\n    fmt = (char *)dcgettext(0,"%P: warning: global constructor %s used\n",5);\n    einfo(fmt,pcVar1);\n  }\n  if (config.build_constructors != 0) {\n    ldctor_add_set_entry(h,reloc,(char *)0x0,section,value);\n    if (h->field_0xc == '\0') {\n      h->field_0xc = 1;\n      (h->u).undef.abfd = abfd;\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "add_to_set(bfd_link_info *info,bfd_link_hash_entry *h,bfd_reloc_code_real_type reloc,bfd *abfd,\n               asection *section,bfd_vma value)" identifier (parameter_list "(bfd_link_info *info,bfd_link_hash_entry *h,bfd_reloc_code_real_type reloc,bfd *abfd,\n               asection *section,bfd_vma value)" ( (parameter_declaration "bfd_link_info *info" type_identifier (pointer_declarator "*info" * identifier)) , (parameter_declaration "bfd_link_hash_entry *h" type_identifier (pointer_declarator "*h" * identifier)) , (parameter_declaration "bfd_reloc_code_real_type reloc" type_identifier identifier) , (parameter_declaration "bfd *abfd" type_identifier (pointer_declarator "*abfd" * identifier)) , (parameter_declaration "asection *section" type_identifier (pointer_declarator "*section" * identifier)) , (parameter_declaration "bfd_vma value" type_identifier identifier) ))) (compound_statement "{\n  char *pcVar1;\n  char *fmt;\n  \n  if (config.warn_constructors != 0) {\n    pcVar1 = (h->root).string;\n    fmt = (char *)dcgettext(0,"%P: warning: global constructor %s used\n",5);\n    einfo(fmt,pcVar1);\n  }\n  if (config.build_constructors != 0) {\n    ldctor_add_set_entry(h,reloc,(char *)0x0,section,value);\n    if (h->field_0xc == '\0') {\n      h->field_0xc = 1;\n      (h->u).undef.abfd = abfd;\n      return;\n    }\n  }\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *fmt;" primitive_type (pointer_declarator "*fmt" * identifier) ;) (if_statement "if (config.warn_constructors != 0) {\n    pcVar1 = (h->root).string;\n    fmt = (char *)dcgettext(0,"%P: warning: global constructor %s used\n",5);\n    einfo(fmt,pcVar1);\n  }" if (parenthesized_expression "(config.warn_constructors != 0)" ( (binary_expression "config.warn_constructors != 0" (field_expression "config.warn_constructors" identifier . field_identifier) != number_literal) )) (compound_statement "{\n    pcVar1 = (h->root).string;\n    fmt = (char *)dcgettext(0,"%P: warning: global constructor %s used\n",5);\n    einfo(fmt,pcVar1);\n  }" { (expression_statement "pcVar1 = (h->root).string;" (assignment_expression "pcVar1 = (h->root).string" identifier = (field_expression "(h->root).string" (parenthesized_expression "(h->root)" ( (field_expression "h->root" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "fmt = (char *)dcgettext(0,"%P: warning: global constructor %s used\n",5);" (assignment_expression "fmt = (char *)dcgettext(0,"%P: warning: global constructor %s used\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%P: warning: global constructor %s used\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%P: warning: global constructor %s used\n",5)" identifier (argument_list "(0,"%P: warning: global constructor %s used\n",5)" ( number_literal , (string_literal ""%P: warning: global constructor %s used\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "einfo(fmt,pcVar1);" (call_expression "einfo(fmt,pcVar1)" identifier (argument_list "(fmt,pcVar1)" ( identifier , identifier ))) ;) })) (if_statement "if (config.build_constructors != 0) {\n    ldctor_add_set_entry(h,reloc,(char *)0x0,section,value);\n    if (h->field_0xc == '\0') {\n      h->field_0xc = 1;\n      (h->u).undef.abfd = abfd;\n      return;\n    }\n  }" if (parenthesized_expression "(config.build_constructors != 0)" ( (binary_expression "config.build_constructors != 0" (field_expression "config.build_constructors" identifier . field_identifier) != number_literal) )) (compound_statement "{\n    ldctor_add_set_entry(h,reloc,(char *)0x0,section,value);\n    if (h->field_0xc == '\0') {\n      h->field_0xc = 1;\n      (h->u).undef.abfd = abfd;\n      return;\n    }\n  }" { (expression_statement "ldctor_add_set_entry(h,reloc,(char *)0x0,section,value);" (call_expression "ldctor_add_set_entry(h,reloc,(char *)0x0,section,value)" identifier (argument_list "(h,reloc,(char *)0x0,section,value)" ( identifier , identifier , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , identifier ))) ;) (if_statement "if (h->field_0xc == '\0') {\n      h->field_0xc = 1;\n      (h->u).undef.abfd = abfd;\n      return;\n    }" if (parenthesized_expression "(h->field_0xc == '\0')" ( (binary_expression "h->field_0xc == '\0'" (field_expression "h->field_0xc" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      h->field_0xc = 1;\n      (h->u).undef.abfd = abfd;\n      return;\n    }" { (expression_statement "h->field_0xc = 1;" (assignment_expression "h->field_0xc = 1" (field_expression "h->field_0xc" identifier -> field_identifier) = number_literal) ;) (expression_statement "(h->u).undef.abfd = abfd;" (assignment_expression "(h->u).undef.abfd = abfd" (field_expression "(h->u).undef.abfd" (field_expression "(h->u).undef" (parenthesized_expression "(h->u)" ( (field_expression "h->u" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0002def0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  if (DAT_0013d7d0 != 0) {\n    uVar1 = *(undefined4 *)(param_2 + 4);\n    uVar2 = dcgettext(0,"%P: warning: global constructor %s used\n",5);\n    FUN_00033ba0(uVar2,uVar1);\n  }\n  if (DAT_0013d7cc != 0) {\n    FUN_0002c8a0(param_2,param_3,0,param_5,param_6,param_7);\n    if (*(char *)(param_2 + 0xc) == '\0') {\n      *(undefined1 *)(param_2 + 0xc) = 1;\n      *(undefined4 *)(param_2 + 0x14) = param_4;\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_0002def0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  if (DAT_0013d7d0 != 0) {\n    uVar1 = *(undefined4 *)(param_2 + 4);\n    uVar2 = dcgettext(0,"%P: warning: global constructor %s used\n",5);\n    FUN_00033ba0(uVar2,uVar1);\n  }\n  if (DAT_0013d7cc != 0) {\n    FUN_0002c8a0(param_2,param_3,0,param_5,param_6,param_7);\n    if (*(char *)(param_2 + 0xc) == '\0') {\n      *(undefined1 *)(param_2 + 0xc) = 1;\n      *(undefined4 *)(param_2 + 0x14) = param_4;\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0002def0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7)" ( (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 "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  if (DAT_0013d7d0 != 0) {\n    uVar1 = *(undefined4 *)(param_2 + 4);\n    uVar2 = dcgettext(0,"%P: warning: global constructor %s used\n",5);\n    FUN_00033ba0(uVar2,uVar1);\n  }\n  if (DAT_0013d7cc != 0) {\n    FUN_0002c8a0(param_2,param_3,0,param_5,param_6,param_7);\n    if (*(char *)(param_2 + 0xc) == '\0') {\n      *(undefined1 *)(param_2 + 0xc) = 1;\n      *(undefined4 *)(param_2 + 0x14) = param_4;\n      return;\n    }\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (DAT_0013d7d0 != 0) {\n    uVar1 = *(undefined4 *)(param_2 + 4);\n    uVar2 = dcgettext(0,"%P: warning: global constructor %s used\n",5);\n    FUN_00033ba0(uVar2,uVar1);\n  }" if (parenthesized_expression "(DAT_0013d7d0 != 0)" ( (binary_expression "DAT_0013d7d0 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = *(undefined4 *)(param_2 + 4);\n    uVar2 = dcgettext(0,"%P: warning: global constructor %s used\n",5);\n    FUN_00033ba0(uVar2,uVar1);\n  }" { (expression_statement "uVar1 = *(undefined4 *)(param_2 + 4);" (assignment_expression "uVar1 = *(undefined4 *)(param_2 + 4)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 4)" * (cast_expression "(undefined4 *)(param_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = dcgettext(0,"%P: warning: global constructor %s used\n",5);" (assignment_expression "uVar2 = dcgettext(0,"%P: warning: global constructor %s used\n",5)" identifier = (call_expression "dcgettext(0,"%P: warning: global constructor %s used\n",5)" identifier (argument_list "(0,"%P: warning: global constructor %s used\n",5)" ( number_literal , (string_literal ""%P: warning: global constructor %s used\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00033ba0(uVar2,uVar1);" (call_expression "FUN_00033ba0(uVar2,uVar1)" identifier (argument_list "(uVar2,uVar1)" ( identifier , identifier ))) ;) })) (if_statement "if (DAT_0013d7cc != 0) {\n    FUN_0002c8a0(param_2,param_3,0,param_5,param_6,param_7);\n    if (*(char *)(param_2 + 0xc) == '\0') {\n      *(undefined1 *)(param_2 + 0xc) = 1;\n      *(undefined4 *)(param_2 + 0x14) = param_4;\n      return;\n    }\n  }" if (parenthesized_expression "(DAT_0013d7cc != 0)" ( (binary_expression "DAT_0013d7cc != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_0002c8a0(param_2,param_3,0,param_5,param_6,param_7);\n    if (*(char *)(param_2 + 0xc) == '\0') {\n      *(undefined1 *)(param_2 + 0xc) = 1;\n      *(undefined4 *)(param_2 + 0x14) = param_4;\n      return;\n    }\n  }" { (expression_statement "FUN_0002c8a0(param_2,param_3,0,param_5,param_6,param_7);" (call_expression "FUN_0002c8a0(param_2,param_3,0,param_5,param_6,param_7)" identifier (argument_list "(param_2,param_3,0,param_5,param_6,param_7)" ( identifier , identifier , number_literal , identifier , identifier , identifier ))) ;) (if_statement "if (*(char *)(param_2 + 0xc) == '\0') {\n      *(undefined1 *)(param_2 + 0xc) = 1;\n      *(undefined4 *)(param_2 + 0x14) = param_4;\n      return;\n    }" if (parenthesized_expression "(*(char *)(param_2 + 0xc) == '\0')" ( (binary_expression "*(char *)(param_2 + 0xc) == '\0'" (pointer_expression "*(char *)(param_2 + 0xc)" * (cast_expression "(char *)(param_2 + 0xc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *(undefined1 *)(param_2 + 0xc) = 1;\n      *(undefined4 *)(param_2 + 0x14) = param_4;\n      return;\n    }" { (expression_statement "*(undefined1 *)(param_2 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 0xc) = 1" (pointer_expression "*(undefined1 *)(param_2 + 0xc)" * (cast_expression "(undefined1 *)(param_2 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_2 + 0x14) = param_4;" (assignment_expression "*(undefined4 *)(param_2 + 0x14) = param_4" (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(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) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , IDENT , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_0002def0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  if (DAT_0013d7d0 != 0) {\n    uVar1 = *(undefined4 *)(param_2 + 4);\n    uVar2 = dcgettext(0,"%P: warning: global constructor %s used\n",5);\n    FUN_00033ba0(uVar2,uVar1);\n  }\n  if (DAT_0013d7cc != 0) {\n    FUN_0002c8a0(param_2,param_3,0,param_5,param_6,param_7);\n    if (*(char *)(param_2 + 0xc) == '\0') {\n      *(undefined1 *)(param_2 + 0xc) = 1;\n      *(undefined4 *)(param_2 + 0x14) = param_4;\n      return;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0002def0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7)" (identifier "FUN_0002def0") (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7)" (( "(") (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 "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) (, ",") (parameter_declaration "undefined4 param_7" (type_identifier "undefined4") (identifier "param_7")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  if (DAT_0013d7d0 != 0) {\n    uVar1 = *(undefined4 *)(param_2 + 4);\n    uVar2 = dcgettext(0,"%P: warning: global constructor %s used\n",5);\n    FUN_00033ba0(uVar2,uVar1);\n  }\n  if (DAT_0013d7cc != 0) {\n    FUN_0002c8a0(param_2,param_3,0,param_5,param_6,param_7);\n    if (*(char *)(param_2 + 0xc) == '\0') {\n      *(undefined1 *)(param_2 + 0xc) = 1;\n      *(undefined4 *)(param_2 + 0x14) = param_4;\n      return;\n    }\n  }\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (if_statement "if (DAT_0013d7d0 != 0) {\n    uVar1 = *(undefined4 *)(param_2 + 4);\n    uVar2 = dcgettext(0,"%P: warning: global constructor %s used\n",5);\n    FUN_00033ba0(uVar2,uVar1);\n  }" (if "if") (parenthesized_expression "(DAT_0013d7d0 != 0)" (( "(") (binary_expression "DAT_0013d7d0 != 0" (identifier "DAT_0013d7d0") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = *(undefined4 *)(param_2 + 4);\n    uVar2 = dcgettext(0,"%P: warning: global constructor %s used\n",5);\n    FUN_00033ba0(uVar2,uVar1);\n  }" ({ "{") (expression_statement "uVar1 = *(undefined4 *)(param_2 + 4);" (assignment_expression "uVar1 = *(undefined4 *)(param_2 + 4)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(param_2 + 4)" (* "*") (cast_expression "(undefined4 *)(param_2 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "uVar2 = dcgettext(0,"%P: warning: global constructor %s used\n",5);" (assignment_expression "uVar2 = dcgettext(0,"%P: warning: global constructor %s used\n",5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"%P: warning: global constructor %s used\n",5)" (identifier "dcgettext") (argument_list "(0,"%P: warning: global constructor %s used\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%P: warning: global constructor %s used\n"" (" """) (string_content "%P: warning: global constructor %s used") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00033ba0(uVar2,uVar1);" (call_expression "FUN_00033ba0(uVar2,uVar1)" (identifier "FUN_00033ba0") (argument_list "(uVar2,uVar1)" (( "(") (identifier "uVar2") (, ",") (identifier "uVar1") () ")"))) (; ";")) (} "}"))) (if_statement "if (DAT_0013d7cc != 0) {\n    FUN_0002c8a0(param_2,param_3,0,param_5,param_6,param_7);\n    if (*(char *)(param_2 + 0xc) == '\0') {\n      *(undefined1 *)(param_2 + 0xc) = 1;\n      *(undefined4 *)(param_2 + 0x14) = param_4;\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(DAT_0013d7cc != 0)" (( "(") (binary_expression "DAT_0013d7cc != 0" (identifier "DAT_0013d7cc") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0002c8a0(param_2,param_3,0,param_5,param_6,param_7);\n    if (*(char *)(param_2 + 0xc) == '\0') {\n      *(undefined1 *)(param_2 + 0xc) = 1;\n      *(undefined4 *)(param_2 + 0x14) = param_4;\n      return;\n    }\n  }" ({ "{") (expression_statement "FUN_0002c8a0(param_2,param_3,0,param_5,param_6,param_7);" (call_expression "FUN_0002c8a0(param_2,param_3,0,param_5,param_6,param_7)" (identifier "FUN_0002c8a0") (argument_list "(param_2,param_3,0,param_5,param_6,param_7)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (number_literal "0") (, ",") (identifier "param_5") (, ",") (identifier "param_6") (, ",") (identifier "param_7") () ")"))) (; ";")) (if_statement "if (*(char *)(param_2 + 0xc) == '\0') {\n      *(undefined1 *)(param_2 + 0xc) = 1;\n      *(undefined4 *)(param_2 + 0x14) = param_4;\n      return;\n    }" (if "if") (parenthesized_expression "(*(char *)(param_2 + 0xc) == '\0')" (( "(") (binary_expression "*(char *)(param_2 + 0xc) == '\0'" (pointer_expression "*(char *)(param_2 + 0xc)" (* "*") (cast_expression "(char *)(param_2 + 0xc)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      *(undefined1 *)(param_2 + 0xc) = 1;\n      *(undefined4 *)(param_2 + 0x14) = param_4;\n      return;\n    }" ({ "{") (expression_statement "*(undefined1 *)(param_2 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 0xc) = 1" (pointer_expression "*(undefined1 *)(param_2 + 0xc)" (* "*") (cast_expression "(undefined1 *)(param_2 + 0xc)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0x14) = param_4;" (assignment_expression "*(undefined4 *)(param_2 + 0x14) = param_4" (pointer_expression "*(undefined4 *)(param_2 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *info,type_2 *h,type_3 reloc,type_4 *abfd,
               type_5 *section,type_6 value)

{
  char *pcVar1;
  char *fmt;
  
  if (config.warn_constructors != 0) {
    pcVar1 = (h->root).string;
    fmt = (char *)var_1(0,"%P: warning: global constructor %s used\n",5);
    var_2(fmt,pcVar1);
  }
  if (config.build_constructors != 0) {
    var_3(h,reloc,(char *)0x0,section,value);
    if (h->field_0xc == '\0') {
      h->field_0xc = 1;
      (h->u).undef.abfd = abfd;
      return;
    }
  }
  return;
}


(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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content) (escape_sequence)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (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) (identifier) (number_literal) (identifier) (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (return_statement))))) (return_statement))))

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

void MASKED(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,
                 undefined4 param_5,undefined4 param_6,undefined4 param_7)

{
  undefined4 uVar1;
  undefined4 uVar2;
  
  if (DAT_0013d7d0 != 0) {
    uVar1 = *(undefined4 *)(param_2 + 4);
    uVar2 = dcgettext(0,"%P: warning: global constructor %s used\n",5);
    FUN_00033ba0(uVar2,uVar1);
  }
  if (DAT_0013d7cc != 0) {
    FUN_0002c8a0(param_2,param_3,0,param_5,param_6,param_7);
    if (*(char *)(param_2 + 0xc) == '\0') {
      *(undefined1 *)(param_2 + 0xc) = 1;
      *(undefined4 *)(param_2 + 0x14) = param_4;
      return;
    }
  }
  return;
}

