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

void __regparm3 quick_reloc(bfd *abfd,bfd_size_type address,int which_howto,int symidx)

{
  arelent *paVar1;
  int iVar2;
  arelent *paVar3;
  reloc_howto_type *prVar4;
  
  if (relsize + -1 <= relcount) {
    relsize = relsize + 10;
    if (reltab == (arelent *)0x0) {
      reltab = (arelent *)xmalloc(relsize * 0x18);
    }
    else {
      reltab = (arelent *)xrealloc(reltab,relsize * 0x18);
    }
  }
  paVar3 = reltab;
  iVar2 = relcount;
  *(int *)&reltab[relcount].address = which_howto;
  *(int *)((int)&paVar3[iVar2].address + 4) = symidx;
  *(undefined4 *)&paVar3[iVar2].addend = 0;
  *(undefined4 *)((int)&paVar3[iVar2].addend + 4) = 0;
  prVar4 = (reloc_howto_type *)bfd_reloc_type_lookup(abfd,(undefined4)address);
  paVar1 = reltab;
  paVar3[iVar2].howto = prVar4;
  paVar1 = paVar1 + relcount;
  relcount = relcount + 1;
  paVar1->sym_ptr_ptr = symtab + address._4_4_;
  return;
}



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

void __regparm3
FUN_0005aa80(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5
            )

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  
  if (DAT_001d1174 + -1 <= DAT_001d1178) {
    DAT_001d1174 = DAT_001d1174 + 10;
    if (DAT_001d117c == 0) {
      DAT_001d117c = xmalloc(DAT_001d1174 * 0x18);
    }
    else {
      DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);
    }
  }
  iVar1 = DAT_001d117c + DAT_001d1178 * 0x18;
  *(undefined4 *)(iVar1 + 4) = param_2;
  *(undefined4 *)(iVar1 + 8) = param_3;
  *(undefined4 *)(iVar1 + 0xc) = 0;
  *(undefined4 *)(iVar1 + 0x10) = 0;
  uVar3 = bfd_reloc_type_lookup(param_1,param_4);
  iVar2 = DAT_001d117c;
  *(undefined4 *)(iVar1 + 0x14) = uVar3;
  iVar1 = DAT_001d1178 * 0x18;
  DAT_001d1178 = DAT_001d1178 + 1;
  *(int *)(iVar2 + iVar1) = DAT_001d1190 + param_5 * 4;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00017b80
ADD EBX,0x174577
SUB ESP,0x1c
MOV dword ptr [ESP + 0x4],EAX
MOV EBP,dword ptr [EBX + 0x2174]
MOV EDI,dword ptr [EBX + 0x2178]
MOV EAX,dword ptr [EBX + 0x217c]
LEA ESI,[EBP + -0x1]
CMP ESI,EDI
JG 0x0005aaf0
ADD EBP,0xa
MOV dword ptr [ESP + 0x8],EDX
LEA EDI,[EBP + EBP*0x2]
MOV dword ptr [EBX + 0x2174],EBP
SHL EDI,0x3
MOV dword ptr [ESP + 0xc],ECX
TEST EAX,EAX
JZ 0x0005ab50
SUB ESP,0x8
PUSH EDI
PUSH EAX
CALL 0x000163f0
ADD ESP,0x10
MOV dword ptr [EBX + 0x217c],EAX
MOV EDI,dword ptr [EBX + 0x2178]
MOV EDX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [ESP + 0xc]
LEA EDI,[EDI + EDI*0x2]
SUB ESP,0x8
LEA EDI,[EAX + EDI*0x8]
MOV dword ptr [EDI + 0x4],EDX
MOV dword ptr [EDI + 0x8],ECX
MOV dword ptr [EDI + 0xc],0x0
MOV dword ptr [EDI + 0x10],0x0
PUSH dword ptr [ESP + 0x38]
PUSH dword ptr [ESP + 0x10]
CALL 0x00016380
MOV ECX,dword ptr [EBX + 0x217c]
MOV ESI,dword ptr [ESP + 0x44]
MOV dword ptr [EDI + 0x14],EAX
MOV EAX,dword ptr [EBX + 0x2178]
LEA EDX,[EAX + EAX*0x2]
ADD EAX,0x1
LEA EDX,[ECX + EDX*0x8]
MOV ECX,dword ptr [EBX + 0x2190]
MOV dword ptr [EBX + 0x2178],EAX
LEA ECX,[ECX + ESI*0x4]
MOV dword ptr [EDX],ECX
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH EDI
CALL 0x00016dc8
JMP 0x0005aad9
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3\nFUN_0005aa80(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5\n            )\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (DAT_001d1174 + -1 <= DAT_001d1178) {\n    DAT_001d1174 = DAT_001d1174 + 10;\n    if (DAT_001d117c == 0) {\n      DAT_001d117c = xmalloc(DAT_001d1174 * 0x18);\n    }\n    else {\n      DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);\n    }\n  }\n  iVar1 = DAT_001d117c + DAT_001d1178 * 0x18;\n  *(undefined4 *)(iVar1 + 4) = param_2;\n  *(undefined4 *)(iVar1 + 8) = param_3;\n  *(undefined4 *)(iVar1 + 0xc) = 0;\n  *(undefined4 *)(iVar1 + 0x10) = 0;\n  uVar3 = bfd_reloc_type_lookup(param_1,param_4);\n  iVar2 = DAT_001d117c;\n  *(undefined4 *)(iVar1 + 0x14) = uVar3;\n  iVar1 = DAT_001d1178 * 0x18;\n  DAT_001d1178 = DAT_001d1178 + 1;\n  *(int *)(iVar2 + iVar1) = DAT_001d1190 + param_5 * 4;\n  return;\n}\n\n" comment (function_definition "void __regparm3\nFUN_0005aa80(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5\n            )\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (DAT_001d1174 + -1 <= DAT_001d1178) {\n    DAT_001d1174 = DAT_001d1174 + 10;\n    if (DAT_001d117c == 0) {\n      DAT_001d117c = xmalloc(DAT_001d1174 * 0x18);\n    }\n    else {\n      DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);\n    }\n  }\n  iVar1 = DAT_001d117c + DAT_001d1178 * 0x18;\n  *(undefined4 *)(iVar1 + 4) = param_2;\n  *(undefined4 *)(iVar1 + 8) = param_3;\n  *(undefined4 *)(iVar1 + 0xc) = 0;\n  *(undefined4 *)(iVar1 + 0x10) = 0;\n  uVar3 = bfd_reloc_type_lookup(param_1,param_4);\n  iVar2 = DAT_001d117c;\n  *(undefined4 *)(iVar1 + 0x14) = uVar3;\n  iVar1 = DAT_001d1178 * 0x18;\n  DAT_001d1178 = DAT_001d1178 + 1;\n  *(int *)(iVar2 + iVar1) = DAT_001d1190 + param_5 * 4;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0005aa80(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5\n            )" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5\n            )" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (DAT_001d1174 + -1 <= DAT_001d1178) {\n    DAT_001d1174 = DAT_001d1174 + 10;\n    if (DAT_001d117c == 0) {\n      DAT_001d117c = xmalloc(DAT_001d1174 * 0x18);\n    }\n    else {\n      DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);\n    }\n  }\n  iVar1 = DAT_001d117c + DAT_001d1178 * 0x18;\n  *(undefined4 *)(iVar1 + 4) = param_2;\n  *(undefined4 *)(iVar1 + 8) = param_3;\n  *(undefined4 *)(iVar1 + 0xc) = 0;\n  *(undefined4 *)(iVar1 + 0x10) = 0;\n  uVar3 = bfd_reloc_type_lookup(param_1,param_4);\n  iVar2 = DAT_001d117c;\n  *(undefined4 *)(iVar1 + 0x14) = uVar3;\n  iVar1 = DAT_001d1178 * 0x18;\n  DAT_001d1178 = DAT_001d1178 + 1;\n  *(int *)(iVar2 + iVar1) = DAT_001d1190 + param_5 * 4;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (if_statement "if (DAT_001d1174 + -1 <= DAT_001d1178) {\n    DAT_001d1174 = DAT_001d1174 + 10;\n    if (DAT_001d117c == 0) {\n      DAT_001d117c = xmalloc(DAT_001d1174 * 0x18);\n    }\n    else {\n      DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);\n    }\n  }" if (parenthesized_expression "(DAT_001d1174 + -1 <= DAT_001d1178)" ( (binary_expression "DAT_001d1174 + -1 <= DAT_001d1178" (binary_expression "DAT_001d1174 + -1" identifier + number_literal) <= identifier) )) (compound_statement "{\n    DAT_001d1174 = DAT_001d1174 + 10;\n    if (DAT_001d117c == 0) {\n      DAT_001d117c = xmalloc(DAT_001d1174 * 0x18);\n    }\n    else {\n      DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);\n    }\n  }" { (expression_statement "DAT_001d1174 = DAT_001d1174 + 10;" (assignment_expression "DAT_001d1174 = DAT_001d1174 + 10" identifier = (binary_expression "DAT_001d1174 + 10" identifier + number_literal)) ;) (if_statement "if (DAT_001d117c == 0) {\n      DAT_001d117c = xmalloc(DAT_001d1174 * 0x18);\n    }\n    else {\n      DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);\n    }" if (parenthesized_expression "(DAT_001d117c == 0)" ( (binary_expression "DAT_001d117c == 0" identifier == number_literal) )) (compound_statement "{\n      DAT_001d117c = xmalloc(DAT_001d1174 * 0x18);\n    }" { (expression_statement "DAT_001d117c = xmalloc(DAT_001d1174 * 0x18);" (assignment_expression "DAT_001d117c = xmalloc(DAT_001d1174 * 0x18)" identifier = (call_expression "xmalloc(DAT_001d1174 * 0x18)" identifier (argument_list "(DAT_001d1174 * 0x18)" ( (binary_expression "DAT_001d1174 * 0x18" identifier * number_literal) )))) ;) }) (else_clause "else {\n      DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);\n    }" else (compound_statement "{\n      DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);\n    }" { (expression_statement "DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);" (assignment_expression "DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18)" identifier = (call_expression "xrealloc(DAT_001d117c,DAT_001d1174 * 0x18)" identifier (argument_list "(DAT_001d117c,DAT_001d1174 * 0x18)" ( identifier , (binary_expression "DAT_001d1174 * 0x18" identifier * number_literal) )))) ;) }))) })) (expression_statement "iVar1 = DAT_001d117c + DAT_001d1178 * 0x18;" (assignment_expression "iVar1 = DAT_001d117c + DAT_001d1178 * 0x18" identifier = (binary_expression "DAT_001d117c + DAT_001d1178 * 0x18" identifier + (binary_expression "DAT_001d1178 * 0x18" identifier * number_literal))) ;) (expression_statement "*(undefined4 *)(iVar1 + 4) = param_2;" (assignment_expression "*(undefined4 *)(iVar1 + 4) = param_2" (pointer_expression "*(undefined4 *)(iVar1 + 4)" * (cast_expression "(undefined4 *)(iVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 8) = param_3;" (assignment_expression "*(undefined4 *)(iVar1 + 8) = param_3" (pointer_expression "*(undefined4 *)(iVar1 + 8)" * (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" * (cast_expression "(undefined4 *)(iVar1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = bfd_reloc_type_lookup(param_1,param_4);" (assignment_expression "uVar3 = bfd_reloc_type_lookup(param_1,param_4)" identifier = (call_expression "bfd_reloc_type_lookup(param_1,param_4)" identifier (argument_list "(param_1,param_4)" ( identifier , identifier )))) ;) (expression_statement "iVar2 = DAT_001d117c;" (assignment_expression "iVar2 = DAT_001d117c" identifier = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x14) = uVar3;" (assignment_expression "*(undefined4 *)(iVar1 + 0x14) = uVar3" (pointer_expression "*(undefined4 *)(iVar1 + 0x14)" * (cast_expression "(undefined4 *)(iVar1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = DAT_001d1178 * 0x18;" (assignment_expression "iVar1 = DAT_001d1178 * 0x18" identifier = (binary_expression "DAT_001d1178 * 0x18" identifier * number_literal)) ;) (expression_statement "DAT_001d1178 = DAT_001d1178 + 1;" (assignment_expression "DAT_001d1178 = DAT_001d1178 + 1" identifier = (binary_expression "DAT_001d1178 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)(iVar2 + iVar1) = DAT_001d1190 + param_5 * 4;" (assignment_expression "*(int *)(iVar2 + iVar1) = DAT_001d1190 + param_5 * 4" (pointer_expression "*(int *)(iVar2 + iVar1)" * (cast_expression "(int *)(iVar2 + iVar1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar1)" ( (binary_expression "iVar2 + iVar1" identifier + identifier) )))) = (binary_expression "DAT_001d1190 + param_5 * 4" identifier + (binary_expression "param_5 * 4" identifier * number_literal))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 quick_reloc(bfd *abfd,bfd_size_type address,int which_howto,int symidx)\n\n{\n  arelent *paVar1;\n  int iVar2;\n  arelent *paVar3;\n  reloc_howto_type *prVar4;\n  \n  if (relsize + -1 <= relcount) {\n    relsize = relsize + 10;\n    if (reltab == (arelent *)0x0) {\n      reltab = (arelent *)xmalloc(relsize * 0x18);\n    }\n    else {\n      reltab = (arelent *)xrealloc(reltab,relsize * 0x18);\n    }\n  }\n  paVar3 = reltab;\n  iVar2 = relcount;\n  *(int *)&reltab[relcount].address = which_howto;\n  *(int *)((int)&paVar3[iVar2].address + 4) = symidx;\n  *(undefined4 *)&paVar3[iVar2].addend = 0;\n  *(undefined4 *)((int)&paVar3[iVar2].addend + 4) = 0;\n  prVar4 = (reloc_howto_type *)bfd_reloc_type_lookup(abfd,(undefined4)address);\n  paVar1 = reltab;\n  paVar3[iVar2].howto = prVar4;\n  paVar1 = paVar1 + relcount;\n  relcount = relcount + 1;\n  paVar1->sym_ptr_ptr = symtab + address._4_4_;\n  return;\n}\n\n" comment (function_definition "void __regparm3 quick_reloc(bfd *abfd,bfd_size_type address,int which_howto,int symidx)\n\n{\n  arelent *paVar1;\n  int iVar2;\n  arelent *paVar3;\n  reloc_howto_type *prVar4;\n  \n  if (relsize + -1 <= relcount) {\n    relsize = relsize + 10;\n    if (reltab == (arelent *)0x0) {\n      reltab = (arelent *)xmalloc(relsize * 0x18);\n    }\n    else {\n      reltab = (arelent *)xrealloc(reltab,relsize * 0x18);\n    }\n  }\n  paVar3 = reltab;\n  iVar2 = relcount;\n  *(int *)&reltab[relcount].address = which_howto;\n  *(int *)((int)&paVar3[iVar2].address + 4) = symidx;\n  *(undefined4 *)&paVar3[iVar2].addend = 0;\n  *(undefined4 *)((int)&paVar3[iVar2].addend + 4) = 0;\n  prVar4 = (reloc_howto_type *)bfd_reloc_type_lookup(abfd,(undefined4)address);\n  paVar1 = reltab;\n  paVar3[iVar2].howto = prVar4;\n  paVar1 = paVar1 + relcount;\n  relcount = relcount + 1;\n  paVar1->sym_ptr_ptr = symtab + address._4_4_;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "quick_reloc(bfd *abfd,bfd_size_type address,int which_howto,int symidx)" identifier (parameter_list "(bfd *abfd,bfd_size_type address,int which_howto,int symidx)" ( (parameter_declaration "bfd *abfd" type_identifier (pointer_declarator "*abfd" * identifier)) , (parameter_declaration "bfd_size_type address" type_identifier identifier) , (parameter_declaration "int which_howto" primitive_type identifier) , (parameter_declaration "int symidx" primitive_type identifier) ))) (compound_statement "{\n  arelent *paVar1;\n  int iVar2;\n  arelent *paVar3;\n  reloc_howto_type *prVar4;\n  \n  if (relsize + -1 <= relcount) {\n    relsize = relsize + 10;\n    if (reltab == (arelent *)0x0) {\n      reltab = (arelent *)xmalloc(relsize * 0x18);\n    }\n    else {\n      reltab = (arelent *)xrealloc(reltab,relsize * 0x18);\n    }\n  }\n  paVar3 = reltab;\n  iVar2 = relcount;\n  *(int *)&reltab[relcount].address = which_howto;\n  *(int *)((int)&paVar3[iVar2].address + 4) = symidx;\n  *(undefined4 *)&paVar3[iVar2].addend = 0;\n  *(undefined4 *)((int)&paVar3[iVar2].addend + 4) = 0;\n  prVar4 = (reloc_howto_type *)bfd_reloc_type_lookup(abfd,(undefined4)address);\n  paVar1 = reltab;\n  paVar3[iVar2].howto = prVar4;\n  paVar1 = paVar1 + relcount;\n  relcount = relcount + 1;\n  paVar1->sym_ptr_ptr = symtab + address._4_4_;\n  return;\n}" { (declaration "arelent *paVar1;" type_identifier (pointer_declarator "*paVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "arelent *paVar3;" type_identifier (pointer_declarator "*paVar3" * identifier) ;) (declaration "reloc_howto_type *prVar4;" type_identifier (pointer_declarator "*prVar4" * identifier) ;) (if_statement "if (relsize + -1 <= relcount) {\n    relsize = relsize + 10;\n    if (reltab == (arelent *)0x0) {\n      reltab = (arelent *)xmalloc(relsize * 0x18);\n    }\n    else {\n      reltab = (arelent *)xrealloc(reltab,relsize * 0x18);\n    }\n  }" if (parenthesized_expression "(relsize + -1 <= relcount)" ( (binary_expression "relsize + -1 <= relcount" (binary_expression "relsize + -1" identifier + number_literal) <= identifier) )) (compound_statement "{\n    relsize = relsize + 10;\n    if (reltab == (arelent *)0x0) {\n      reltab = (arelent *)xmalloc(relsize * 0x18);\n    }\n    else {\n      reltab = (arelent *)xrealloc(reltab,relsize * 0x18);\n    }\n  }" { (expression_statement "relsize = relsize + 10;" (assignment_expression "relsize = relsize + 10" identifier = (binary_expression "relsize + 10" identifier + number_literal)) ;) (if_statement "if (reltab == (arelent *)0x0) {\n      reltab = (arelent *)xmalloc(relsize * 0x18);\n    }\n    else {\n      reltab = (arelent *)xrealloc(reltab,relsize * 0x18);\n    }" if (parenthesized_expression "(reltab == (arelent *)0x0)" ( (binary_expression "reltab == (arelent *)0x0" identifier == (cast_expression "(arelent *)0x0" ( (type_descriptor "arelent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      reltab = (arelent *)xmalloc(relsize * 0x18);\n    }" { (expression_statement "reltab = (arelent *)xmalloc(relsize * 0x18);" (assignment_expression "reltab = (arelent *)xmalloc(relsize * 0x18)" identifier = (cast_expression "(arelent *)xmalloc(relsize * 0x18)" ( (type_descriptor "arelent *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(relsize * 0x18)" identifier (argument_list "(relsize * 0x18)" ( (binary_expression "relsize * 0x18" identifier * number_literal) ))))) ;) }) (else_clause "else {\n      reltab = (arelent *)xrealloc(reltab,relsize * 0x18);\n    }" else (compound_statement "{\n      reltab = (arelent *)xrealloc(reltab,relsize * 0x18);\n    }" { (expression_statement "reltab = (arelent *)xrealloc(reltab,relsize * 0x18);" (assignment_expression "reltab = (arelent *)xrealloc(reltab,relsize * 0x18)" identifier = (cast_expression "(arelent *)xrealloc(reltab,relsize * 0x18)" ( (type_descriptor "arelent *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(reltab,relsize * 0x18)" identifier (argument_list "(reltab,relsize * 0x18)" ( identifier , (binary_expression "relsize * 0x18" identifier * number_literal) ))))) ;) }))) })) (expression_statement "paVar3 = reltab;" (assignment_expression "paVar3 = reltab" identifier = identifier) ;) (expression_statement "iVar2 = relcount;" (assignment_expression "iVar2 = relcount" identifier = identifier) ;) (expression_statement "*(int *)&reltab[relcount].address = which_howto;" (assignment_expression "*(int *)&reltab[relcount].address = which_howto" (pointer_expression "*(int *)&reltab[relcount].address" * (cast_expression "(int *)&reltab[relcount].address" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&reltab[relcount].address" & (field_expression "reltab[relcount].address" (subscript_expression "reltab[relcount]" identifier [ identifier ]) . field_identifier)))) = identifier) ;) (expression_statement "*(int *)((int)&paVar3[iVar2].address + 4) = symidx;" (assignment_expression "*(int *)((int)&paVar3[iVar2].address + 4) = symidx" (pointer_expression "*(int *)((int)&paVar3[iVar2].address + 4)" * (cast_expression "(int *)((int)&paVar3[iVar2].address + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&paVar3[iVar2].address + 4)" ( (binary_expression "(int)&paVar3[iVar2].address + 4" (cast_expression "(int)&paVar3[iVar2].address" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&paVar3[iVar2].address" & (field_expression "paVar3[iVar2].address" (subscript_expression "paVar3[iVar2]" identifier [ identifier ]) . field_identifier))) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)&paVar3[iVar2].addend = 0;" (assignment_expression "*(undefined4 *)&paVar3[iVar2].addend = 0" (pointer_expression "*(undefined4 *)&paVar3[iVar2].addend" * (cast_expression "(undefined4 *)&paVar3[iVar2].addend" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&paVar3[iVar2].addend" & (field_expression "paVar3[iVar2].addend" (subscript_expression "paVar3[iVar2]" identifier [ identifier ]) . field_identifier)))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&paVar3[iVar2].addend + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&paVar3[iVar2].addend + 4) = 0" (pointer_expression "*(undefined4 *)((int)&paVar3[iVar2].addend + 4)" * (cast_expression "(undefined4 *)((int)&paVar3[iVar2].addend + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&paVar3[iVar2].addend + 4)" ( (binary_expression "(int)&paVar3[iVar2].addend + 4" (cast_expression "(int)&paVar3[iVar2].addend" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&paVar3[iVar2].addend" & (field_expression "paVar3[iVar2].addend" (subscript_expression "paVar3[iVar2]" identifier [ identifier ]) . field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "prVar4 = (reloc_howto_type *)bfd_reloc_type_lookup(abfd,(undefined4)address);" (assignment_expression "prVar4 = (reloc_howto_type *)bfd_reloc_type_lookup(abfd,(undefined4)address)" identifier = (cast_expression "(reloc_howto_type *)bfd_reloc_type_lookup(abfd,(undefined4)address)" ( (type_descriptor "reloc_howto_type *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_reloc_type_lookup(abfd,(undefined4)address)" identifier (argument_list "(abfd,(undefined4)address)" ( identifier , (cast_expression "(undefined4)address" ( (type_descriptor "undefined4" type_identifier) ) identifier) ))))) ;) (expression_statement "paVar1 = reltab;" (assignment_expression "paVar1 = reltab" identifier = identifier) ;) (expression_statement "paVar3[iVar2].howto = prVar4;" (assignment_expression "paVar3[iVar2].howto = prVar4" (field_expression "paVar3[iVar2].howto" (subscript_expression "paVar3[iVar2]" identifier [ identifier ]) . field_identifier) = identifier) ;) (expression_statement "paVar1 = paVar1 + relcount;" (assignment_expression "paVar1 = paVar1 + relcount" identifier = (binary_expression "paVar1 + relcount" identifier + identifier)) ;) (expression_statement "relcount = relcount + 1;" (assignment_expression "relcount = relcount + 1" identifier = (binary_expression "relcount + 1" identifier + number_literal)) ;) (expression_statement "paVar1->sym_ptr_ptr = symtab + address._4_4_;" (assignment_expression "paVar1->sym_ptr_ptr = symtab + address._4_4_" (field_expression "paVar1->sym_ptr_ptr" identifier -> field_identifier) = (binary_expression "symtab + address._4_4_" identifier + (field_expression "address._4_4_" identifier . field_identifier))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3\nFUN_0005aa80(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5\n            )\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (DAT_001d1174 + -1 <= DAT_001d1178) {\n    DAT_001d1174 = DAT_001d1174 + 10;\n    if (DAT_001d117c == 0) {\n      DAT_001d117c = xmalloc(DAT_001d1174 * 0x18);\n    }\n    else {\n      DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);\n    }\n  }\n  iVar1 = DAT_001d117c + DAT_001d1178 * 0x18;\n  *(undefined4 *)(iVar1 + 4) = param_2;\n  *(undefined4 *)(iVar1 + 8) = param_3;\n  *(undefined4 *)(iVar1 + 0xc) = 0;\n  *(undefined4 *)(iVar1 + 0x10) = 0;\n  uVar3 = bfd_reloc_type_lookup(param_1,param_4);\n  iVar2 = DAT_001d117c;\n  *(undefined4 *)(iVar1 + 0x14) = uVar3;\n  iVar1 = DAT_001d1178 * 0x18;\n  DAT_001d1178 = DAT_001d1178 + 1;\n  *(int *)(iVar2 + iVar1) = DAT_001d1190 + param_5 * 4;\n  return;\n}\n\n" (function_definition "void __regparm3\nFUN_0005aa80(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5\n            )\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (DAT_001d1174 + -1 <= DAT_001d1178) {\n    DAT_001d1174 = DAT_001d1174 + 10;\n    if (DAT_001d117c == 0) {\n      DAT_001d117c = xmalloc(DAT_001d1174 * 0x18);\n    }\n    else {\n      DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);\n    }\n  }\n  iVar1 = DAT_001d117c + DAT_001d1178 * 0x18;\n  *(undefined4 *)(iVar1 + 4) = param_2;\n  *(undefined4 *)(iVar1 + 8) = param_3;\n  *(undefined4 *)(iVar1 + 0xc) = 0;\n  *(undefined4 *)(iVar1 + 0x10) = 0;\n  uVar3 = bfd_reloc_type_lookup(param_1,param_4);\n  iVar2 = DAT_001d117c;\n  *(undefined4 *)(iVar1 + 0x14) = uVar3;\n  iVar1 = DAT_001d1178 * 0x18;\n  DAT_001d1178 = DAT_001d1178 + 1;\n  *(int *)(iVar2 + iVar1) = DAT_001d1190 + param_5 * 4;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0005aa80(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5\n            )" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5\n            )" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (DAT_001d1174 + -1 <= DAT_001d1178) {\n    DAT_001d1174 = DAT_001d1174 + 10;\n    if (DAT_001d117c == 0) {\n      DAT_001d117c = xmalloc(DAT_001d1174 * 0x18);\n    }\n    else {\n      DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);\n    }\n  }\n  iVar1 = DAT_001d117c + DAT_001d1178 * 0x18;\n  *(undefined4 *)(iVar1 + 4) = param_2;\n  *(undefined4 *)(iVar1 + 8) = param_3;\n  *(undefined4 *)(iVar1 + 0xc) = 0;\n  *(undefined4 *)(iVar1 + 0x10) = 0;\n  uVar3 = bfd_reloc_type_lookup(param_1,param_4);\n  iVar2 = DAT_001d117c;\n  *(undefined4 *)(iVar1 + 0x14) = uVar3;\n  iVar1 = DAT_001d1178 * 0x18;\n  DAT_001d1178 = DAT_001d1178 + 1;\n  *(int *)(iVar2 + iVar1) = DAT_001d1190 + param_5 * 4;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (if_statement "if (DAT_001d1174 + -1 <= DAT_001d1178) {\n    DAT_001d1174 = DAT_001d1174 + 10;\n    if (DAT_001d117c == 0) {\n      DAT_001d117c = xmalloc(DAT_001d1174 * 0x18);\n    }\n    else {\n      DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);\n    }\n  }" if (parenthesized_expression "(DAT_001d1174 + -1 <= DAT_001d1178)" ( (binary_expression "DAT_001d1174 + -1 <= DAT_001d1178" (binary_expression "DAT_001d1174 + -1" identifier + number_literal) <= identifier) )) (compound_statement "{\n    DAT_001d1174 = DAT_001d1174 + 10;\n    if (DAT_001d117c == 0) {\n      DAT_001d117c = xmalloc(DAT_001d1174 * 0x18);\n    }\n    else {\n      DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);\n    }\n  }" { (expression_statement "DAT_001d1174 = DAT_001d1174 + 10;" (assignment_expression "DAT_001d1174 = DAT_001d1174 + 10" identifier = (binary_expression "DAT_001d1174 + 10" identifier + number_literal)) ;) (if_statement "if (DAT_001d117c == 0) {\n      DAT_001d117c = xmalloc(DAT_001d1174 * 0x18);\n    }\n    else {\n      DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);\n    }" if (parenthesized_expression "(DAT_001d117c == 0)" ( (binary_expression "DAT_001d117c == 0" identifier == number_literal) )) (compound_statement "{\n      DAT_001d117c = xmalloc(DAT_001d1174 * 0x18);\n    }" { (expression_statement "DAT_001d117c = xmalloc(DAT_001d1174 * 0x18);" (assignment_expression "DAT_001d117c = xmalloc(DAT_001d1174 * 0x18)" identifier = (call_expression "xmalloc(DAT_001d1174 * 0x18)" identifier (argument_list "(DAT_001d1174 * 0x18)" ( (binary_expression "DAT_001d1174 * 0x18" identifier * number_literal) )))) ;) }) (else_clause "else {\n      DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);\n    }" else (compound_statement "{\n      DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);\n    }" { (expression_statement "DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);" (assignment_expression "DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18)" identifier = (call_expression "xrealloc(DAT_001d117c,DAT_001d1174 * 0x18)" identifier (argument_list "(DAT_001d117c,DAT_001d1174 * 0x18)" ( identifier , (binary_expression "DAT_001d1174 * 0x18" identifier * number_literal) )))) ;) }))) })) (expression_statement "iVar1 = DAT_001d117c + DAT_001d1178 * 0x18;" (assignment_expression "iVar1 = DAT_001d117c + DAT_001d1178 * 0x18" identifier = (binary_expression "DAT_001d117c + DAT_001d1178 * 0x18" identifier + (binary_expression "DAT_001d1178 * 0x18" identifier * number_literal))) ;) (expression_statement "*(undefined4 *)(iVar1 + 4) = param_2;" (assignment_expression "*(undefined4 *)(iVar1 + 4) = param_2" (pointer_expression "*(undefined4 *)(iVar1 + 4)" * (cast_expression "(undefined4 *)(iVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 8) = param_3;" (assignment_expression "*(undefined4 *)(iVar1 + 8) = param_3" (pointer_expression "*(undefined4 *)(iVar1 + 8)" * (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" * (cast_expression "(undefined4 *)(iVar1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = bfd_reloc_type_lookup(param_1,param_4);" (assignment_expression "uVar3 = bfd_reloc_type_lookup(param_1,param_4)" identifier = (call_expression "bfd_reloc_type_lookup(param_1,param_4)" identifier (argument_list "(param_1,param_4)" ( identifier , identifier )))) ;) (expression_statement "iVar2 = DAT_001d117c;" (assignment_expression "iVar2 = DAT_001d117c" identifier = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x14) = uVar3;" (assignment_expression "*(undefined4 *)(iVar1 + 0x14) = uVar3" (pointer_expression "*(undefined4 *)(iVar1 + 0x14)" * (cast_expression "(undefined4 *)(iVar1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = DAT_001d1178 * 0x18;" (assignment_expression "iVar1 = DAT_001d1178 * 0x18" identifier = (binary_expression "DAT_001d1178 * 0x18" identifier * number_literal)) ;) (expression_statement "DAT_001d1178 = DAT_001d1178 + 1;" (assignment_expression "DAT_001d1178 = DAT_001d1178 + 1" identifier = (binary_expression "DAT_001d1178 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)(iVar2 + iVar1) = DAT_001d1190 + param_5 * 4;" (assignment_expression "*(int *)(iVar2 + iVar1) = DAT_001d1190 + param_5 * 4" (pointer_expression "*(int *)(iVar2 + iVar1)" * (cast_expression "(int *)(iVar2 + iVar1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar1)" ( (binary_expression "iVar2 + iVar1" identifier + identifier) )))) = (binary_expression "DAT_001d1190 + param_5 * 4" identifier + (binary_expression "param_5 * 4" identifier * number_literal))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (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) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT * LIT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT * LIT) )))) ;) }))) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (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) )))) = IDENT) ;) (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) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (return_statement return ;) })))
(function_definition "void __regparm3\nFUN_0005aa80(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5\n            )\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (DAT_001d1174 + -1 <= DAT_001d1178) {\n    DAT_001d1174 = DAT_001d1174 + 10;\n    if (DAT_001d117c == 0) {\n      DAT_001d117c = xmalloc(DAT_001d1174 * 0x18);\n    }\n    else {\n      DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);\n    }\n  }\n  iVar1 = DAT_001d117c + DAT_001d1178 * 0x18;\n  *(undefined4 *)(iVar1 + 4) = param_2;\n  *(undefined4 *)(iVar1 + 8) = param_3;\n  *(undefined4 *)(iVar1 + 0xc) = 0;\n  *(undefined4 *)(iVar1 + 0x10) = 0;\n  uVar3 = bfd_reloc_type_lookup(param_1,param_4);\n  iVar2 = DAT_001d117c;\n  *(undefined4 *)(iVar1 + 0x14) = uVar3;\n  iVar1 = DAT_001d1178 * 0x18;\n  DAT_001d1178 = DAT_001d1178 + 1;\n  *(int *)(iVar2 + iVar1) = DAT_001d1190 + param_5 * 4;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0005aa80(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5\n            )" (identifier "FUN_0005aa80") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5\n            )" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (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 "int param_5" (primitive_type "int") (identifier "param_5")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (DAT_001d1174 + -1 <= DAT_001d1178) {\n    DAT_001d1174 = DAT_001d1174 + 10;\n    if (DAT_001d117c == 0) {\n      DAT_001d117c = xmalloc(DAT_001d1174 * 0x18);\n    }\n    else {\n      DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);\n    }\n  }\n  iVar1 = DAT_001d117c + DAT_001d1178 * 0x18;\n  *(undefined4 *)(iVar1 + 4) = param_2;\n  *(undefined4 *)(iVar1 + 8) = param_3;\n  *(undefined4 *)(iVar1 + 0xc) = 0;\n  *(undefined4 *)(iVar1 + 0x10) = 0;\n  uVar3 = bfd_reloc_type_lookup(param_1,param_4);\n  iVar2 = DAT_001d117c;\n  *(undefined4 *)(iVar1 + 0x14) = uVar3;\n  iVar1 = DAT_001d1178 * 0x18;\n  DAT_001d1178 = DAT_001d1178 + 1;\n  *(int *)(iVar2 + iVar1) = DAT_001d1190 + param_5 * 4;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (if_statement "if (DAT_001d1174 + -1 <= DAT_001d1178) {\n    DAT_001d1174 = DAT_001d1174 + 10;\n    if (DAT_001d117c == 0) {\n      DAT_001d117c = xmalloc(DAT_001d1174 * 0x18);\n    }\n    else {\n      DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);\n    }\n  }" (if "if") (parenthesized_expression "(DAT_001d1174 + -1 <= DAT_001d1178)" (( "(") (binary_expression "DAT_001d1174 + -1 <= DAT_001d1178" (binary_expression "DAT_001d1174 + -1" (identifier "DAT_001d1174") (+ "+") (number_literal "-1")) (<= "<=") (identifier "DAT_001d1178")) () ")")) (compound_statement "{\n    DAT_001d1174 = DAT_001d1174 + 10;\n    if (DAT_001d117c == 0) {\n      DAT_001d117c = xmalloc(DAT_001d1174 * 0x18);\n    }\n    else {\n      DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);\n    }\n  }" ({ "{") (expression_statement "DAT_001d1174 = DAT_001d1174 + 10;" (assignment_expression "DAT_001d1174 = DAT_001d1174 + 10" (identifier "DAT_001d1174") (= "=") (binary_expression "DAT_001d1174 + 10" (identifier "DAT_001d1174") (+ "+") (number_literal "10"))) (; ";")) (if_statement "if (DAT_001d117c == 0) {\n      DAT_001d117c = xmalloc(DAT_001d1174 * 0x18);\n    }\n    else {\n      DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);\n    }" (if "if") (parenthesized_expression "(DAT_001d117c == 0)" (( "(") (binary_expression "DAT_001d117c == 0" (identifier "DAT_001d117c") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      DAT_001d117c = xmalloc(DAT_001d1174 * 0x18);\n    }" ({ "{") (expression_statement "DAT_001d117c = xmalloc(DAT_001d1174 * 0x18);" (assignment_expression "DAT_001d117c = xmalloc(DAT_001d1174 * 0x18)" (identifier "DAT_001d117c") (= "=") (call_expression "xmalloc(DAT_001d1174 * 0x18)" (identifier "xmalloc") (argument_list "(DAT_001d1174 * 0x18)" (( "(") (binary_expression "DAT_001d1174 * 0x18" (identifier "DAT_001d1174") (* "*") (number_literal "0x18")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n      DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);\n    }" (else "else") (compound_statement "{\n      DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);\n    }" ({ "{") (expression_statement "DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);" (assignment_expression "DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18)" (identifier "DAT_001d117c") (= "=") (call_expression "xrealloc(DAT_001d117c,DAT_001d1174 * 0x18)" (identifier "xrealloc") (argument_list "(DAT_001d117c,DAT_001d1174 * 0x18)" (( "(") (identifier "DAT_001d117c") (, ",") (binary_expression "DAT_001d1174 * 0x18" (identifier "DAT_001d1174") (* "*") (number_literal "0x18")) () ")")))) (; ";")) (} "}")))) (} "}"))) (expression_statement "iVar1 = DAT_001d117c + DAT_001d1178 * 0x18;" (assignment_expression "iVar1 = DAT_001d117c + DAT_001d1178 * 0x18" (identifier "iVar1") (= "=") (binary_expression "DAT_001d117c + DAT_001d1178 * 0x18" (identifier "DAT_001d117c") (+ "+") (binary_expression "DAT_001d1178 * 0x18" (identifier "DAT_001d1178") (* "*") (number_literal "0x18")))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 4) = param_2;" (assignment_expression "*(undefined4 *)(iVar1 + 4) = param_2" (pointer_expression "*(undefined4 *)(iVar1 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 8) = param_3;" (assignment_expression "*(undefined4 *)(iVar1 + 8) = param_3" (pointer_expression "*(undefined4 *)(iVar1 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = bfd_reloc_type_lookup(param_1,param_4);" (assignment_expression "uVar3 = bfd_reloc_type_lookup(param_1,param_4)" (identifier "uVar3") (= "=") (call_expression "bfd_reloc_type_lookup(param_1,param_4)" (identifier "bfd_reloc_type_lookup") (argument_list "(param_1,param_4)" (( "(") (identifier "param_1") (, ",") (identifier "param_4") () ")")))) (; ";")) (expression_statement "iVar2 = DAT_001d117c;" (assignment_expression "iVar2 = DAT_001d117c" (identifier "iVar2") (= "=") (identifier "DAT_001d117c")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x14) = uVar3;" (assignment_expression "*(undefined4 *)(iVar1 + 0x14) = uVar3" (pointer_expression "*(undefined4 *)(iVar1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "iVar1 = DAT_001d1178 * 0x18;" (assignment_expression "iVar1 = DAT_001d1178 * 0x18" (identifier "iVar1") (= "=") (binary_expression "DAT_001d1178 * 0x18" (identifier "DAT_001d1178") (* "*") (number_literal "0x18"))) (; ";")) (expression_statement "DAT_001d1178 = DAT_001d1178 + 1;" (assignment_expression "DAT_001d1178 = DAT_001d1178 + 1" (identifier "DAT_001d1178") (= "=") (binary_expression "DAT_001d1178 + 1" (identifier "DAT_001d1178") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(iVar2 + iVar1) = DAT_001d1190 + param_5 * 4;" (assignment_expression "*(int *)(iVar2 + iVar1) = DAT_001d1190 + param_5 * 4" (pointer_expression "*(int *)(iVar2 + iVar1)" (* "*") (cast_expression "(int *)(iVar2 + iVar1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + iVar1)" (( "(") (binary_expression "iVar2 + iVar1" (identifier "iVar2") (+ "+") (identifier "iVar1")) () ")")))) (= "=") (binary_expression "DAT_001d1190 + param_5 * 4" (identifier "DAT_001d1190") (+ "+") (binary_expression "param_5 * 4" (identifier "param_5") (* "*") (number_literal "4")))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *abfd,type_2 address,int which_howto,int symidx)

{
  type_3 *var_7;
  int iVar2;
  type_3 *paVar3;
  type_4 *prVar4;
  
  if (var_1 + -1 <= var_2) {
    var_1 = var_1 + 10;
    if (var_3 == (type_3 *)0x0) {
      var_3 = (type_3 *)var_4(var_1 * 0x18);
    }
    else {
      var_3 = (type_3 *)var_5(var_3,var_1 * 0x18);
    }
  }
  paVar3 = var_3;
  iVar2 = var_2;
  *(int *)&var_3[var_2].address = which_howto;
  *(int *)((int)&paVar3[iVar2].address + 4) = symidx;
  *(type_5 *)&paVar3[iVar2].addend = 0;
  *(type_5 *)((int)&paVar3[iVar2].addend + 4) = 0;
  prVar4 = (type_4 *)var_6(abfd,(type_5)address);
  var_7 = var_3;
  paVar3[iVar2].howto = prVar4;
  var_7 = var_7 + var_2;
  var_2 = var_2 + 1;
  var_7->sym_ptr_ptr = var_8 + address._4_4_;
  return;
}


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

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

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

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  
  if (DAT_001d1174 + -1 <= DAT_001d1178) {
    DAT_001d1174 = DAT_001d1174 + 10;
    if (DAT_001d117c == 0) {
      DAT_001d117c = xmalloc(DAT_001d1174 * 0x18);
    }
    else {
      DAT_001d117c = xrealloc(DAT_001d117c,DAT_001d1174 * 0x18);
    }
  }
  iVar1 = DAT_001d117c + DAT_001d1178 * 0x18;
  *(undefined4 *)(iVar1 + 4) = param_2;
  *(undefined4 *)(iVar1 + 8) = param_3;
  *(undefined4 *)(iVar1 + 0xc) = 0;
  *(undefined4 *)(iVar1 + 0x10) = 0;
  uVar3 = bfd_reloc_type_lookup(param_1,param_4);
  iVar2 = DAT_001d117c;
  *(undefined4 *)(iVar1 + 0x14) = uVar3;
  iVar1 = DAT_001d1178 * 0x18;
  DAT_001d1178 = DAT_001d1178 + 1;
  *(int *)(iVar2 + iVar1) = DAT_001d1190 + param_5 * 4;
  return;
}

