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

asymbol * __regparm3 create_new_symbol(addsym_node *ptr,bfd *obfd)

{
  int iVar1;
  char *pcVar2;
  bfd_symbol *pbVar3;
  bfd_section *pbVar4;
  char *format;
  
  pbVar3 = (*obfd->xvec->_bfd_make_empty_symbol)(obfd);
  pbVar3->name = ptr->symdef;
  iVar1 = ptr->symval;
  *(int *)&pbVar3->value = iVar1;
  *(int *)((int)&pbVar3->value + 4) = iVar1 >> 0x1f;
  pbVar3->flags = ptr->flags;
  if (ptr->section == (char *)0x0) {
    pbVar3->section = (bfd_section *)(PTR__bfd_std_section_0003ffc8 + 0x180);
    return pbVar3;
  }
  pbVar4 = (bfd_section *)bfd_get_section_by_name(obfd,ptr->section);
  if (pbVar4 != (bfd_section *)0x0) {
    pbVar3->section = pbVar4;
    return pbVar3;
  }
  pcVar2 = ptr->section;
  format = (char *)dcgettext(0,"Section %s not found",5,0);
                    /* WARNING: Subroutine does not return */
  fatal(format,pcVar2);
}



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

int __regparm3 FUN_00017920(int param_1,int param_2)

{
  undefined4 uVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  
  iVar2 = (**(code **)(*(int *)(param_2 + 4) + 0x10c))(param_2);
  *(undefined4 *)(iVar2 + 4) = *(undefined4 *)(param_1 + 4);
  iVar3 = *(int *)(param_1 + 8);
  *(int *)(iVar2 + 8) = iVar3;
  *(int *)(iVar2 + 0xc) = iVar3 >> 0x1f;
  *(undefined4 *)(iVar2 + 0x10) = *(undefined4 *)(param_1 + 0xc);
  if (*(int *)(param_1 + 0x10) == 0) {
    *(undefined **)(iVar2 + 0x14) = PTR__bfd_std_section_0003ffc8 + 0x180;
    return iVar2;
  }
  iVar3 = bfd_get_section_by_name(param_2,*(int *)(param_1 + 0x10));
  if (iVar3 != 0) {
    *(int *)(iVar2 + 0x14) = iVar3;
    return iVar2;
  }
  uVar1 = *(undefined4 *)(param_1 + 0x10);
  uVar4 = dcgettext(0,"Section %s not found",5,0);
                    /* WARNING: Subroutine does not return */
  FUN_0002c8e0(uVar4,uVar1);
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x000166c0
ADD EBX,0x286d3
SUB ESP,0x18
MOV EAX,dword ptr [EDX + 0x4]
PUSH EDX
CALL dword ptr [EAX + 0x10c]
MOV ESI,EAX
MOV EAX,dword ptr [EDI + 0x4]
ADD ESP,0x10
MOV dword ptr [ESI + 0x4],EAX
MOV EAX,dword ptr [EDI + 0x8]
MOV dword ptr [ESI + 0x8],EAX
SAR EAX,0x1f
MOV dword ptr [ESI + 0xc],EAX
MOV EAX,dword ptr [EDI + 0xc]
MOV dword ptr [ESI + 0x10],EAX
MOV EAX,dword ptr [EDI + 0x10]
TEST EAX,EAX
JZ 0x00017988
SUB ESP,0x8
PUSH EAX
PUSH EBP
CALL 0x00013350
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000179a0
MOV dword ptr [ESI + 0x14],EAX
ADD ESP,0xc
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBX + 0xffffffc8]
ADD EAX,0x180
MOV dword ptr [ESI + 0x14],EAX
ADD ESP,0xc
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
PUSH EAX
LEA EAX,[EBX + 0xfffef0ee]
MOV ESI,dword ptr [EDI + 0x10]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00013200
POP EDX
POP ECX
PUSH ESI
PUSH EAX
CALL 0x0002c8e0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_00017920(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  iVar2 = (**(code **)(*(int *)(param_2 + 4) + 0x10c))(param_2);\n  *(undefined4 *)(iVar2 + 4) = *(undefined4 *)(param_1 + 4);\n  iVar3 = *(int *)(param_1 + 8);\n  *(int *)(iVar2 + 8) = iVar3;\n  *(int *)(iVar2 + 0xc) = iVar3 >> 0x1f;\n  *(undefined4 *)(iVar2 + 0x10) = *(undefined4 *)(param_1 + 0xc);\n  if (*(int *)(param_1 + 0x10) == 0) {\n    *(undefined **)(iVar2 + 0x14) = PTR__bfd_std_section_0003ffc8 + 0x180;\n    return iVar2;\n  }\n  iVar3 = bfd_get_section_by_name(param_2,*(int *)(param_1 + 0x10));\n  if (iVar3 != 0) {\n    *(int *)(iVar2 + 0x14) = iVar3;\n    return iVar2;\n  }\n  uVar1 = *(undefined4 *)(param_1 + 0x10);\n  uVar4 = dcgettext(0,"Section %s not found",5,0);\n                    /* WARNING: Subroutine does not return */\n  FUN_0002c8e0(uVar4,uVar1);\n}\n\n" comment (function_definition "int __regparm3 FUN_00017920(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  iVar2 = (**(code **)(*(int *)(param_2 + 4) + 0x10c))(param_2);\n  *(undefined4 *)(iVar2 + 4) = *(undefined4 *)(param_1 + 4);\n  iVar3 = *(int *)(param_1 + 8);\n  *(int *)(iVar2 + 8) = iVar3;\n  *(int *)(iVar2 + 0xc) = iVar3 >> 0x1f;\n  *(undefined4 *)(iVar2 + 0x10) = *(undefined4 *)(param_1 + 0xc);\n  if (*(int *)(param_1 + 0x10) == 0) {\n    *(undefined **)(iVar2 + 0x14) = PTR__bfd_std_section_0003ffc8 + 0x180;\n    return iVar2;\n  }\n  iVar3 = bfd_get_section_by_name(param_2,*(int *)(param_1 + 0x10));\n  if (iVar3 != 0) {\n    *(int *)(iVar2 + 0x14) = iVar3;\n    return iVar2;\n  }\n  uVar1 = *(undefined4 *)(param_1 + 0x10);\n  uVar4 = dcgettext(0,"Section %s not found",5,0);\n                    /* WARNING: Subroutine does not return */\n  FUN_0002c8e0(uVar4,uVar1);\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00017920(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  iVar2 = (**(code **)(*(int *)(param_2 + 4) + 0x10c))(param_2);\n  *(undefined4 *)(iVar2 + 4) = *(undefined4 *)(param_1 + 4);\n  iVar3 = *(int *)(param_1 + 8);\n  *(int *)(iVar2 + 8) = iVar3;\n  *(int *)(iVar2 + 0xc) = iVar3 >> 0x1f;\n  *(undefined4 *)(iVar2 + 0x10) = *(undefined4 *)(param_1 + 0xc);\n  if (*(int *)(param_1 + 0x10) == 0) {\n    *(undefined **)(iVar2 + 0x14) = PTR__bfd_std_section_0003ffc8 + 0x180;\n    return iVar2;\n  }\n  iVar3 = bfd_get_section_by_name(param_2,*(int *)(param_1 + 0x10));\n  if (iVar3 != 0) {\n    *(int *)(iVar2 + 0x14) = iVar3;\n    return iVar2;\n  }\n  uVar1 = *(undefined4 *)(param_1 + 0x10);\n  uVar4 = dcgettext(0,"Section %s not found",5,0);\n                    /* WARNING: Subroutine does not return */\n  FUN_0002c8e0(uVar4,uVar1);\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "iVar2 = (**(code **)(*(int *)(param_2 + 4) + 0x10c))(param_2);" (assignment_expression "iVar2 = (**(code **)(*(int *)(param_2 + 4) + 0x10c))(param_2)" identifier = (call_expression "(**(code **)(*(int *)(param_2 + 4) + 0x10c))(param_2)" (parenthesized_expression "(**(code **)(*(int *)(param_2 + 4) + 0x10c))" ( (pointer_expression "**(code **)(*(int *)(param_2 + 4) + 0x10c)" * (pointer_expression "*(code **)(*(int *)(param_2 + 4) + 0x10c)" * (cast_expression "(code **)(*(int *)(param_2 + 4) + 0x10c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_2 + 4) + 0x10c)" ( (binary_expression "*(int *)(param_2 + 4) + 0x10c" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(iVar2 + 4) = *(undefined4 *)(param_1 + 4);" (assignment_expression "*(undefined4 *)(iVar2 + 4) = *(undefined4 *)(param_1 + 4)" (pointer_expression "*(undefined4 *)(iVar2 + 4)" * (cast_expression "(undefined4 *)(iVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 8);" (assignment_expression "iVar3 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar2 + 8) = iVar3;" (assignment_expression "*(int *)(iVar2 + 8) = iVar3" (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar2 + 0xc) = iVar3 >> 0x1f;" (assignment_expression "*(int *)(iVar2 + 0xc) = iVar3 >> 0x1f" (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) = (binary_expression "iVar3 >> 0x1f" identifier >> number_literal)) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x10) = *(undefined4 *)(param_1 + 0xc);" (assignment_expression "*(undefined4 *)(iVar2 + 0x10) = *(undefined4 *)(param_1 + 0xc)" (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" * (cast_expression "(undefined4 *)(iVar2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 0x10) == 0) {\n    *(undefined **)(iVar2 + 0x14) = PTR__bfd_std_section_0003ffc8 + 0x180;\n    return iVar2;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x10) == 0)" ( (binary_expression "*(int *)(param_1 + 0x10) == 0" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    *(undefined **)(iVar2 + 0x14) = PTR__bfd_std_section_0003ffc8 + 0x180;\n    return iVar2;\n  }" { (expression_statement "*(undefined **)(iVar2 + 0x14) = PTR__bfd_std_section_0003ffc8 + 0x180;" (assignment_expression "*(undefined **)(iVar2 + 0x14) = PTR__bfd_std_section_0003ffc8 + 0x180" (pointer_expression "*(undefined **)(iVar2 + 0x14)" * (cast_expression "(undefined **)(iVar2 + 0x14)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) = (binary_expression "PTR__bfd_std_section_0003ffc8 + 0x180" identifier + number_literal)) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "iVar3 = bfd_get_section_by_name(param_2,*(int *)(param_1 + 0x10));" (assignment_expression "iVar3 = bfd_get_section_by_name(param_2,*(int *)(param_1 + 0x10))" identifier = (call_expression "bfd_get_section_by_name(param_2,*(int *)(param_1 + 0x10))" identifier (argument_list "(param_2,*(int *)(param_1 + 0x10))" ( identifier , (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar3 != 0) {\n    *(int *)(iVar2 + 0x14) = iVar3;\n    return iVar2;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    *(int *)(iVar2 + 0x14) = iVar3;\n    return iVar2;\n  }" { (expression_statement "*(int *)(iVar2 + 0x14) = iVar3;" (assignment_expression "*(int *)(iVar2 + 0x14) = iVar3" (pointer_expression "*(int *)(iVar2 + 0x14)" * (cast_expression "(int *)(iVar2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) = identifier) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = dcgettext(0,"Section %s not found",5,0);" (assignment_expression "uVar4 = dcgettext(0,"Section %s not found",5,0)" identifier = (call_expression "dcgettext(0,"Section %s not found",5,0)" identifier (argument_list "(0,"Section %s not found",5,0)" ( number_literal , (string_literal ""Section %s not found"" " string_content ") , number_literal , number_literal )))) ;) comment (expression_statement "FUN_0002c8e0(uVar4,uVar1);" (call_expression "FUN_0002c8e0(uVar4,uVar1)" identifier (argument_list "(uVar4,uVar1)" ( identifier , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nasymbol * __regparm3 create_new_symbol(addsym_node *ptr,bfd *obfd)\n\n{\n  int iVar1;\n  char *pcVar2;\n  bfd_symbol *pbVar3;\n  bfd_section *pbVar4;\n  char *format;\n  \n  pbVar3 = (*obfd->xvec->_bfd_make_empty_symbol)(obfd);\n  pbVar3->name = ptr->symdef;\n  iVar1 = ptr->symval;\n  *(int *)&pbVar3->value = iVar1;\n  *(int *)((int)&pbVar3->value + 4) = iVar1 >> 0x1f;\n  pbVar3->flags = ptr->flags;\n  if (ptr->section == (char *)0x0) {\n    pbVar3->section = (bfd_section *)(PTR__bfd_std_section_0003ffc8 + 0x180);\n    return pbVar3;\n  }\n  pbVar4 = (bfd_section *)bfd_get_section_by_name(obfd,ptr->section);\n  if (pbVar4 != (bfd_section *)0x0) {\n    pbVar3->section = pbVar4;\n    return pbVar3;\n  }\n  pcVar2 = ptr->section;\n  format = (char *)dcgettext(0,"Section %s not found",5,0);\n                    /* WARNING: Subroutine does not return */\n  fatal(format,pcVar2);\n}\n\n" comment (ERROR "asymbol * __regparm3 create_new_symbol(addsym_node *ptr,bfd *obfd)" (binary_expression "asymbol * __regparm3 create_new_symbol(addsym_node *ptr,bfd *obfd)" identifier * (ERROR "__regparm3" identifier) (call_expression "create_new_symbol(addsym_node *ptr,bfd *obfd)" identifier (argument_list "(addsym_node *ptr,bfd *obfd)" ( (binary_expression "addsym_node *ptr" identifier * identifier) , (binary_expression "bfd *obfd" identifier * identifier) ))))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  bfd_symbol *pbVar3;\n  bfd_section *pbVar4;\n  char *format;\n  \n  pbVar3 = (*obfd->xvec->_bfd_make_empty_symbol)(obfd);\n  pbVar3->name = ptr->symdef;\n  iVar1 = ptr->symval;\n  *(int *)&pbVar3->value = iVar1;\n  *(int *)((int)&pbVar3->value + 4) = iVar1 >> 0x1f;\n  pbVar3->flags = ptr->flags;\n  if (ptr->section == (char *)0x0) {\n    pbVar3->section = (bfd_section *)(PTR__bfd_std_section_0003ffc8 + 0x180);\n    return pbVar3;\n  }\n  pbVar4 = (bfd_section *)bfd_get_section_by_name(obfd,ptr->section);\n  if (pbVar4 != (bfd_section *)0x0) {\n    pbVar3->section = pbVar4;\n    return pbVar3;\n  }\n  pcVar2 = ptr->section;\n  format = (char *)dcgettext(0,"Section %s not found",5,0);\n                    /* WARNING: Subroutine does not return */\n  fatal(format,pcVar2);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "bfd_symbol *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "bfd_section *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (expression_statement "pbVar3 = (*obfd->xvec->_bfd_make_empty_symbol)(obfd);" (assignment_expression "pbVar3 = (*obfd->xvec->_bfd_make_empty_symbol)(obfd)" identifier = (call_expression "(*obfd->xvec->_bfd_make_empty_symbol)(obfd)" (parenthesized_expression "(*obfd->xvec->_bfd_make_empty_symbol)" ( (pointer_expression "*obfd->xvec->_bfd_make_empty_symbol" * (field_expression "obfd->xvec->_bfd_make_empty_symbol" (field_expression "obfd->xvec" identifier -> field_identifier) -> field_identifier)) )) (argument_list "(obfd)" ( identifier )))) ;) (expression_statement "pbVar3->name = ptr->symdef;" (assignment_expression "pbVar3->name = ptr->symdef" (field_expression "pbVar3->name" identifier -> field_identifier) = (field_expression "ptr->symdef" identifier -> field_identifier)) ;) (expression_statement "iVar1 = ptr->symval;" (assignment_expression "iVar1 = ptr->symval" identifier = (field_expression "ptr->symval" identifier -> field_identifier)) ;) (expression_statement "*(int *)&pbVar3->value = iVar1;" (assignment_expression "*(int *)&pbVar3->value = iVar1" (pointer_expression "*(int *)&pbVar3->value" * (cast_expression "(int *)&pbVar3->value" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pbVar3->value" & (field_expression "pbVar3->value" identifier -> field_identifier)))) = identifier) ;) (expression_statement "*(int *)((int)&pbVar3->value + 4) = iVar1 >> 0x1f;" (assignment_expression "*(int *)((int)&pbVar3->value + 4) = iVar1 >> 0x1f" (pointer_expression "*(int *)((int)&pbVar3->value + 4)" * (cast_expression "(int *)((int)&pbVar3->value + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pbVar3->value + 4)" ( (binary_expression "(int)&pbVar3->value + 4" (cast_expression "(int)&pbVar3->value" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pbVar3->value" & (field_expression "pbVar3->value" identifier -> field_identifier))) + number_literal) )))) = (binary_expression "iVar1 >> 0x1f" identifier >> number_literal)) ;) (expression_statement "pbVar3->flags = ptr->flags;" (assignment_expression "pbVar3->flags = ptr->flags" (field_expression "pbVar3->flags" identifier -> field_identifier) = (field_expression "ptr->flags" identifier -> field_identifier)) ;) (if_statement "if (ptr->section == (char *)0x0) {\n    pbVar3->section = (bfd_section *)(PTR__bfd_std_section_0003ffc8 + 0x180);\n    return pbVar3;\n  }" if (parenthesized_expression "(ptr->section == (char *)0x0)" ( (binary_expression "ptr->section == (char *)0x0" (field_expression "ptr->section" identifier -> field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pbVar3->section = (bfd_section *)(PTR__bfd_std_section_0003ffc8 + 0x180);\n    return pbVar3;\n  }" { (expression_statement "pbVar3->section = (bfd_section *)(PTR__bfd_std_section_0003ffc8 + 0x180);" (assignment_expression "pbVar3->section = (bfd_section *)(PTR__bfd_std_section_0003ffc8 + 0x180)" (field_expression "pbVar3->section" identifier -> field_identifier) = (cast_expression "(bfd_section *)(PTR__bfd_std_section_0003ffc8 + 0x180)" ( (type_descriptor "bfd_section *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__bfd_std_section_0003ffc8 + 0x180)" ( (binary_expression "PTR__bfd_std_section_0003ffc8 + 0x180" identifier + number_literal) )))) ;) (return_statement "return pbVar3;" return identifier ;) })) (expression_statement "pbVar4 = (bfd_section *)bfd_get_section_by_name(obfd,ptr->section);" (assignment_expression "pbVar4 = (bfd_section *)bfd_get_section_by_name(obfd,ptr->section)" identifier = (cast_expression "(bfd_section *)bfd_get_section_by_name(obfd,ptr->section)" ( (type_descriptor "bfd_section *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_get_section_by_name(obfd,ptr->section)" identifier (argument_list "(obfd,ptr->section)" ( identifier , (field_expression "ptr->section" identifier -> field_identifier) ))))) ;) (if_statement "if (pbVar4 != (bfd_section *)0x0) {\n    pbVar3->section = pbVar4;\n    return pbVar3;\n  }" if (parenthesized_expression "(pbVar4 != (bfd_section *)0x0)" ( (binary_expression "pbVar4 != (bfd_section *)0x0" identifier != (cast_expression "(bfd_section *)0x0" ( (type_descriptor "bfd_section *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pbVar3->section = pbVar4;\n    return pbVar3;\n  }" { (expression_statement "pbVar3->section = pbVar4;" (assignment_expression "pbVar3->section = pbVar4" (field_expression "pbVar3->section" identifier -> field_identifier) = identifier) ;) (return_statement "return pbVar3;" return identifier ;) })) (expression_statement "pcVar2 = ptr->section;" (assignment_expression "pcVar2 = ptr->section" identifier = (field_expression "ptr->section" identifier -> field_identifier)) ;) (expression_statement "format = (char *)dcgettext(0,"Section %s not found",5,0);" (assignment_expression "format = (char *)dcgettext(0,"Section %s not found",5,0)" identifier = (cast_expression "(char *)dcgettext(0,"Section %s not found",5,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Section %s not found",5,0)" identifier (argument_list "(0,"Section %s not found",5,0)" ( number_literal , (string_literal ""Section %s not found"" " string_content ") , number_literal , number_literal ))))) ;) comment (expression_statement "fatal(format,pcVar2);" (call_expression "fatal(format,pcVar2)" identifier (argument_list "(format,pcVar2)" ( identifier , identifier ))) ;) }))
(translation_unit "int __regparm3 FUN_00017920(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  iVar2 = (**(code **)(*(int *)(param_2 + 4) + 0x10c))(param_2);\n  *(undefined4 *)(iVar2 + 4) = *(undefined4 *)(param_1 + 4);\n  iVar3 = *(int *)(param_1 + 8);\n  *(int *)(iVar2 + 8) = iVar3;\n  *(int *)(iVar2 + 0xc) = iVar3 >> 0x1f;\n  *(undefined4 *)(iVar2 + 0x10) = *(undefined4 *)(param_1 + 0xc);\n  if (*(int *)(param_1 + 0x10) == 0) {\n    *(undefined **)(iVar2 + 0x14) = PTR__bfd_std_section_0003ffc8 + 0x180;\n    return iVar2;\n  }\n  iVar3 = bfd_get_section_by_name(param_2,*(int *)(param_1 + 0x10));\n  if (iVar3 != 0) {\n    *(int *)(iVar2 + 0x14) = iVar3;\n    return iVar2;\n  }\n  uVar1 = *(undefined4 *)(param_1 + 0x10);\n  uVar4 = dcgettext(0,"Section %s not found",5,0);\n                    \n  FUN_0002c8e0(uVar4,uVar1);\n}\n\n" (function_definition "int __regparm3 FUN_00017920(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  iVar2 = (**(code **)(*(int *)(param_2 + 4) + 0x10c))(param_2);\n  *(undefined4 *)(iVar2 + 4) = *(undefined4 *)(param_1 + 4);\n  iVar3 = *(int *)(param_1 + 8);\n  *(int *)(iVar2 + 8) = iVar3;\n  *(int *)(iVar2 + 0xc) = iVar3 >> 0x1f;\n  *(undefined4 *)(iVar2 + 0x10) = *(undefined4 *)(param_1 + 0xc);\n  if (*(int *)(param_1 + 0x10) == 0) {\n    *(undefined **)(iVar2 + 0x14) = PTR__bfd_std_section_0003ffc8 + 0x180;\n    return iVar2;\n  }\n  iVar3 = bfd_get_section_by_name(param_2,*(int *)(param_1 + 0x10));\n  if (iVar3 != 0) {\n    *(int *)(iVar2 + 0x14) = iVar3;\n    return iVar2;\n  }\n  uVar1 = *(undefined4 *)(param_1 + 0x10);\n  uVar4 = dcgettext(0,"Section %s not found",5,0);\n                    \n  FUN_0002c8e0(uVar4,uVar1);\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00017920(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  iVar2 = (**(code **)(*(int *)(param_2 + 4) + 0x10c))(param_2);\n  *(undefined4 *)(iVar2 + 4) = *(undefined4 *)(param_1 + 4);\n  iVar3 = *(int *)(param_1 + 8);\n  *(int *)(iVar2 + 8) = iVar3;\n  *(int *)(iVar2 + 0xc) = iVar3 >> 0x1f;\n  *(undefined4 *)(iVar2 + 0x10) = *(undefined4 *)(param_1 + 0xc);\n  if (*(int *)(param_1 + 0x10) == 0) {\n    *(undefined **)(iVar2 + 0x14) = PTR__bfd_std_section_0003ffc8 + 0x180;\n    return iVar2;\n  }\n  iVar3 = bfd_get_section_by_name(param_2,*(int *)(param_1 + 0x10));\n  if (iVar3 != 0) {\n    *(int *)(iVar2 + 0x14) = iVar3;\n    return iVar2;\n  }\n  uVar1 = *(undefined4 *)(param_1 + 0x10);\n  uVar4 = dcgettext(0,"Section %s not found",5,0);\n                    \n  FUN_0002c8e0(uVar4,uVar1);\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "iVar2 = (**(code **)(*(int *)(param_2 + 4) + 0x10c))(param_2);" (assignment_expression "iVar2 = (**(code **)(*(int *)(param_2 + 4) + 0x10c))(param_2)" identifier = (call_expression "(**(code **)(*(int *)(param_2 + 4) + 0x10c))(param_2)" (parenthesized_expression "(**(code **)(*(int *)(param_2 + 4) + 0x10c))" ( (pointer_expression "**(code **)(*(int *)(param_2 + 4) + 0x10c)" * (pointer_expression "*(code **)(*(int *)(param_2 + 4) + 0x10c)" * (cast_expression "(code **)(*(int *)(param_2 + 4) + 0x10c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_2 + 4) + 0x10c)" ( (binary_expression "*(int *)(param_2 + 4) + 0x10c" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(iVar2 + 4) = *(undefined4 *)(param_1 + 4);" (assignment_expression "*(undefined4 *)(iVar2 + 4) = *(undefined4 *)(param_1 + 4)" (pointer_expression "*(undefined4 *)(iVar2 + 4)" * (cast_expression "(undefined4 *)(iVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 8);" (assignment_expression "iVar3 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar2 + 8) = iVar3;" (assignment_expression "*(int *)(iVar2 + 8) = iVar3" (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar2 + 0xc) = iVar3 >> 0x1f;" (assignment_expression "*(int *)(iVar2 + 0xc) = iVar3 >> 0x1f" (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) = (binary_expression "iVar3 >> 0x1f" identifier >> number_literal)) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x10) = *(undefined4 *)(param_1 + 0xc);" (assignment_expression "*(undefined4 *)(iVar2 + 0x10) = *(undefined4 *)(param_1 + 0xc)" (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" * (cast_expression "(undefined4 *)(iVar2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 0x10) == 0) {\n    *(undefined **)(iVar2 + 0x14) = PTR__bfd_std_section_0003ffc8 + 0x180;\n    return iVar2;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x10) == 0)" ( (binary_expression "*(int *)(param_1 + 0x10) == 0" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    *(undefined **)(iVar2 + 0x14) = PTR__bfd_std_section_0003ffc8 + 0x180;\n    return iVar2;\n  }" { (expression_statement "*(undefined **)(iVar2 + 0x14) = PTR__bfd_std_section_0003ffc8 + 0x180;" (assignment_expression "*(undefined **)(iVar2 + 0x14) = PTR__bfd_std_section_0003ffc8 + 0x180" (pointer_expression "*(undefined **)(iVar2 + 0x14)" * (cast_expression "(undefined **)(iVar2 + 0x14)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) = (binary_expression "PTR__bfd_std_section_0003ffc8 + 0x180" identifier + number_literal)) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "iVar3 = bfd_get_section_by_name(param_2,*(int *)(param_1 + 0x10));" (assignment_expression "iVar3 = bfd_get_section_by_name(param_2,*(int *)(param_1 + 0x10))" identifier = (call_expression "bfd_get_section_by_name(param_2,*(int *)(param_1 + 0x10))" identifier (argument_list "(param_2,*(int *)(param_1 + 0x10))" ( identifier , (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar3 != 0) {\n    *(int *)(iVar2 + 0x14) = iVar3;\n    return iVar2;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    *(int *)(iVar2 + 0x14) = iVar3;\n    return iVar2;\n  }" { (expression_statement "*(int *)(iVar2 + 0x14) = iVar3;" (assignment_expression "*(int *)(iVar2 + 0x14) = iVar3" (pointer_expression "*(int *)(iVar2 + 0x14)" * (cast_expression "(int *)(iVar2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) = identifier) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = dcgettext(0,"Section %s not found",5,0);" (assignment_expression "uVar4 = dcgettext(0,"Section %s not found",5,0)" identifier = (call_expression "dcgettext(0,"Section %s not found",5,0)" identifier (argument_list "(0,"Section %s not found",5,0)" ( number_literal , (string_literal ""Section %s not found"" " string_content ") , number_literal , number_literal )))) ;) (expression_statement "FUN_0002c8e0(uVar4,uVar1);" (call_expression "FUN_0002c8e0(uVar4,uVar1)" identifier (argument_list "(uVar4,uVar1)" ( identifier , identifier ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return IDENT ;) })) (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 ") , LIT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })))
(function_definition "int __regparm3 FUN_00017920(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  iVar2 = (**(code **)(*(int *)(param_2 + 4) + 0x10c))(param_2);\n  *(undefined4 *)(iVar2 + 4) = *(undefined4 *)(param_1 + 4);\n  iVar3 = *(int *)(param_1 + 8);\n  *(int *)(iVar2 + 8) = iVar3;\n  *(int *)(iVar2 + 0xc) = iVar3 >> 0x1f;\n  *(undefined4 *)(iVar2 + 0x10) = *(undefined4 *)(param_1 + 0xc);\n  if (*(int *)(param_1 + 0x10) == 0) {\n    *(undefined **)(iVar2 + 0x14) = PTR__bfd_std_section_0003ffc8 + 0x180;\n    return iVar2;\n  }\n  iVar3 = bfd_get_section_by_name(param_2,*(int *)(param_1 + 0x10));\n  if (iVar3 != 0) {\n    *(int *)(iVar2 + 0x14) = iVar3;\n    return iVar2;\n  }\n  uVar1 = *(undefined4 *)(param_1 + 0x10);\n  uVar4 = dcgettext(0,"Section %s not found",5,0);\n                    \n  FUN_0002c8e0(uVar4,uVar1);\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00017920(int param_1,int param_2)" (identifier "FUN_00017920") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  iVar2 = (**(code **)(*(int *)(param_2 + 4) + 0x10c))(param_2);\n  *(undefined4 *)(iVar2 + 4) = *(undefined4 *)(param_1 + 4);\n  iVar3 = *(int *)(param_1 + 8);\n  *(int *)(iVar2 + 8) = iVar3;\n  *(int *)(iVar2 + 0xc) = iVar3 >> 0x1f;\n  *(undefined4 *)(iVar2 + 0x10) = *(undefined4 *)(param_1 + 0xc);\n  if (*(int *)(param_1 + 0x10) == 0) {\n    *(undefined **)(iVar2 + 0x14) = PTR__bfd_std_section_0003ffc8 + 0x180;\n    return iVar2;\n  }\n  iVar3 = bfd_get_section_by_name(param_2,*(int *)(param_1 + 0x10));\n  if (iVar3 != 0) {\n    *(int *)(iVar2 + 0x14) = iVar3;\n    return iVar2;\n  }\n  uVar1 = *(undefined4 *)(param_1 + 0x10);\n  uVar4 = dcgettext(0,"Section %s not found",5,0);\n                    \n  FUN_0002c8e0(uVar4,uVar1);\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (expression_statement "iVar2 = (**(code **)(*(int *)(param_2 + 4) + 0x10c))(param_2);" (assignment_expression "iVar2 = (**(code **)(*(int *)(param_2 + 4) + 0x10c))(param_2)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*(int *)(param_2 + 4) + 0x10c))(param_2)" (parenthesized_expression "(**(code **)(*(int *)(param_2 + 4) + 0x10c))" (( "(") (pointer_expression "**(code **)(*(int *)(param_2 + 4) + 0x10c)" (* "*") (pointer_expression "*(code **)(*(int *)(param_2 + 4) + 0x10c)" (* "*") (cast_expression "(code **)(*(int *)(param_2 + 4) + 0x10c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_2 + 4) + 0x10c)" (( "(") (binary_expression "*(int *)(param_2 + 4) + 0x10c" (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x10c")) () ")"))))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 4) = *(undefined4 *)(param_1 + 4);" (assignment_expression "*(undefined4 *)(iVar2 + 4) = *(undefined4 *)(param_1 + 4)" (pointer_expression "*(undefined4 *)(iVar2 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 8);" (assignment_expression "iVar3 = *(int *)(param_1 + 8)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar2 + 8) = iVar3;" (assignment_expression "*(int *)(iVar2 + 8) = iVar3" (pointer_expression "*(int *)(iVar2 + 8)" (* "*") (cast_expression "(int *)(iVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*(int *)(iVar2 + 0xc) = iVar3 >> 0x1f;" (assignment_expression "*(int *)(iVar2 + 0xc) = iVar3 >> 0x1f" (pointer_expression "*(int *)(iVar2 + 0xc)" (* "*") (cast_expression "(int *)(iVar2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xc)" (( "(") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "iVar3 >> 0x1f" (identifier "iVar3") (>> ">>") (number_literal "0x1f"))) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0x10) = *(undefined4 *)(param_1 + 0xc);" (assignment_expression "*(undefined4 *)(iVar2 + 0x10) = *(undefined4 *)(param_1 + 0xc)" (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x10) == 0) {\n    *(undefined **)(iVar2 + 0x14) = PTR__bfd_std_section_0003ffc8 + 0x180;\n    return iVar2;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x10) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) == 0" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined **)(iVar2 + 0x14) = PTR__bfd_std_section_0003ffc8 + 0x180;\n    return iVar2;\n  }" ({ "{") (expression_statement "*(undefined **)(iVar2 + 0x14) = PTR__bfd_std_section_0003ffc8 + 0x180;" (assignment_expression "*(undefined **)(iVar2 + 0x14) = PTR__bfd_std_section_0003ffc8 + 0x180" (pointer_expression "*(undefined **)(iVar2 + 0x14)" (* "*") (cast_expression "(undefined **)(iVar2 + 0x14)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 0x14)" (( "(") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "PTR__bfd_std_section_0003ffc8 + 0x180" (identifier "PTR__bfd_std_section_0003ffc8") (+ "+") (number_literal "0x180"))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (expression_statement "iVar3 = bfd_get_section_by_name(param_2,*(int *)(param_1 + 0x10));" (assignment_expression "iVar3 = bfd_get_section_by_name(param_2,*(int *)(param_1 + 0x10))" (identifier "iVar3") (= "=") (call_expression "bfd_get_section_by_name(param_2,*(int *)(param_1 + 0x10))" (identifier "bfd_get_section_by_name") (argument_list "(param_2,*(int *)(param_1 + 0x10))" (( "(") (identifier "param_2") (, ",") (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n    *(int *)(iVar2 + 0x14) = iVar3;\n    return iVar2;\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(int *)(iVar2 + 0x14) = iVar3;\n    return iVar2;\n  }" ({ "{") (expression_statement "*(int *)(iVar2 + 0x14) = iVar3;" (assignment_expression "*(int *)(iVar2 + 0x14) = iVar3" (pointer_expression "*(int *)(iVar2 + 0x14)" (* "*") (cast_expression "(int *)(iVar2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x14)" (( "(") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x10)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "uVar4 = dcgettext(0,"Section %s not found",5,0);" (assignment_expression "uVar4 = dcgettext(0,"Section %s not found",5,0)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"Section %s not found",5,0)" (identifier "dcgettext") (argument_list "(0,"Section %s not found",5,0)" (( "(") (number_literal "0") (, ",") (string_literal ""Section %s not found"" (" """) (string_content "Section %s not found") (" """)) (, ",") (number_literal "5") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "FUN_0002c8e0(uVar4,uVar1);" (call_expression "FUN_0002c8e0(uVar4,uVar1)" (identifier "FUN_0002c8e0") (argument_list "(uVar4,uVar1)" (( "(") (identifier "uVar4") (, ",") (identifier "uVar1") () ")"))) (; ";")) (} "}")))

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

asymbol * __regparm3 create_new_symbol(addsym_node *ptr,bfd *obfd)

{
  int var_1;
  char *pcVar2;
  type_1 *pbVar3;
  type_2 *var_4;
  char *format;
  
  pbVar3 = (*obfd->xvec->_bfd_make_empty_symbol)(obfd);
  pbVar3->name = ptr->symdef;
  var_1 = ptr->symval;
  *(int *)&pbVar3->value = var_1;
  *(int *)((int)&pbVar3->value + 4) = var_1 >> 0x1f;
  pbVar3->flags = ptr->flags;
  if (ptr->section == (char *)0x0) {
    pbVar3->section = (type_2 *)(var_2 + 0x180);
    return pbVar3;
  }
  var_4 = (type_2 *)var_3(obfd,ptr->section);
  if (var_4 != (type_2 *)0x0) {
    pbVar3->section = var_4;
    return pbVar3;
  }
  pcVar2 = ptr->section;
  format = (char *)var_5(0,"Section %s not found",5,0);
                    /* WARNING: Subroutine does not return */
  var_6(format,pcVar2);
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (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: (number_literal))))))) arguments: (argument_list (identifier))))) (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: (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: (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))))))) (expression_statement (assignment_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: (identifier))) (expression_statement (assignment_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: (binary_expression left: (identifier) 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: (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))))))) (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: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (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))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_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: (identifier))) (return_statement (identifier)))) (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)) (number_literal) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))))

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

int __regparm3 MASKED(int param_1,int param_2)

{
  undefined4 uVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  
  iVar2 = (**(code **)(*(int *)(param_2 + 4) + 0x10c))(param_2);
  *(undefined4 *)(iVar2 + 4) = *(undefined4 *)(param_1 + 4);
  iVar3 = *(int *)(param_1 + 8);
  *(int *)(iVar2 + 8) = iVar3;
  *(int *)(iVar2 + 0xc) = iVar3 >> 0x1f;
  *(undefined4 *)(iVar2 + 0x10) = *(undefined4 *)(param_1 + 0xc);
  if (*(int *)(param_1 + 0x10) == 0) {
    *(undefined **)(iVar2 + 0x14) = PTR__bfd_std_section_0003ffc8 + 0x180;
    return iVar2;
  }
  iVar3 = bfd_get_section_by_name(param_2,*(int *)(param_1 + 0x10));
  if (iVar3 != 0) {
    *(int *)(iVar2 + 0x14) = iVar3;
    return iVar2;
  }
  uVar1 = *(undefined4 *)(param_1 + 0x10);
  uVar4 = dcgettext(0,"Section %s not found",5,0);
                    /* WARNING: Subroutine does not return */
  FUN_0002c8e0(uVar4,uVar1);
}

