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

arelent * tc_gen_reloc(asection *sec,fixS *fixp)

{
  fragS *pfVar1;
  uint uVar2;
  int iVar3;
  addressT aVar4;
  valueT vVar5;
  arelent *__ptr;
  bfd_symbol **ppbVar6;
  asymbol *paVar7;
  reloc_howto_type *prVar8;
  undefined4 uVar9;
  char *format;
  arelent *paVar10;
  
  __ptr = (arelent *)xmalloc(0x18);
  ppbVar6 = (bfd_symbol **)xmalloc(4);
  __ptr->sym_ptr_ptr = ppbVar6;
  paVar7 = symbol_get_bfdsym(fixp->fx_addsy);
  pfVar1 = fixp->fx_frag;
  *ppbVar6 = paVar7;
  uVar2 = fixp->fx_where;
  aVar4 = pfVar1->fr_address;
  iVar3 = *(int *)((int)&pfVar1->fr_address + 4);
  *(uint *)&__ptr->address = uVar2 + (int)pfVar1->fr_address;
  vVar5 = fixp->fx_offset;
  *(uint *)((int)&__ptr->address + 4) =
       ((int)uVar2 >> 0x1f) + iVar3 + (uint)CARRY4(uVar2,(uint)aVar4);
  uVar9 = *(undefined4 *)((int)&fixp->fx_offset + 4);
  *(int *)&__ptr->addend = (int)vVar5;
  *(undefined4 *)((int)&__ptr->addend + 4) = uVar9;
  prVar8 = (reloc_howto_type *)bfd_reloc_type_lookup(stdoutput,fixp->fx_r_type);
  __ptr->howto = prVar8;
  paVar10 = __ptr;
  if (prVar8 == (reloc_howto_type *)0x0) {
    uVar9 = bfd_get_reloc_code_name(fixp->fx_r_type);
    format = (char *)dcgettext(0,"Cannot represent %s relocation in object file",5);
    as_bad_where(fixp->fx_file,fixp->fx_line,format,uVar9);
    paVar10 = (arelent *)0x0;
    free(__ptr);
  }
  return paVar10;
}



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

undefined4 * FUN_000537d0(undefined4 param_1,int param_2)

{
  uint *puVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  undefined4 *__ptr;
  undefined4 *puVar5;
  undefined4 uVar6;
  int iVar7;
  undefined4 uVar8;
  
  __ptr = (undefined4 *)xmalloc(0x18);
  puVar5 = (undefined4 *)xmalloc(4);
  *__ptr = puVar5;
  uVar6 = FUN_00039040(*(undefined4 *)(param_2 + 0xc));
  puVar1 = *(uint **)(param_2 + 4);
  *puVar5 = uVar6;
  uVar2 = *(uint *)(param_2 + 8);
  uVar3 = *puVar1;
  uVar4 = puVar1[1];
  __ptr[1] = uVar2 + *puVar1;
  uVar6 = *(undefined4 *)(param_2 + 0x14);
  __ptr[2] = ((int)uVar2 >> 0x1f) + uVar4 + (uint)CARRY4(uVar2,uVar3);
  uVar8 = *(undefined4 *)(param_2 + 0x18);
  __ptr[3] = uVar6;
  __ptr[4] = uVar8;
  iVar7 = bfd_reloc_type_lookup(DAT_000880e4,*(undefined4 *)(param_2 + 0x30));
  __ptr[5] = iVar7;
  puVar5 = __ptr;
  if (iVar7 == 0) {
    uVar6 = bfd_get_reloc_code_name(*(undefined4 *)(param_2 + 0x30));
    uVar8 = dcgettext(0,"Cannot represent %s relocation in object file",5);
    FUN_000295a0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar8,uVar6);
    puVar5 = (undefined4 *)0x0;
    free(__ptr);
  }
  return puVar5;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00016030
ADD EBX,0x2a827
SUB ESP,0x18
MOV EDI,dword ptr [ESP + 0x30]
PUSH 0x18
CALL 0x000147a0
MOV dword ptr [ESP],0x4
MOV ESI,EAX
CALL 0x000147a0
MOV dword ptr [ESI],EAX
MOV EBP,EAX
POP EAX
PUSH dword ptr [EDI + 0xc]
CALL 0x00039040
MOV ECX,dword ptr [EDI + 0x4]
MOV dword ptr [EBP],EAX
MOV EAX,dword ptr [EDI + 0x8]
CDQ
ADD EAX,dword ptr [ECX]
ADC EDX,dword ptr [ECX + 0x4]
MOV dword ptr [ESI + 0x4],EAX
MOV EAX,dword ptr [EDI + 0x14]
MOV dword ptr [ESI + 0x8],EDX
MOV EDX,dword ptr [EDI + 0x18]
MOV dword ptr [ESI + 0xc],EAX
LEA EAX,[EBX + 0xa0e4]
MOV dword ptr [ESI + 0x10],EDX
POP EDX
POP ECX
PUSH dword ptr [EDI + 0x30]
PUSH dword ptr [EAX]
CALL 0x000141e0
ADD ESP,0x10
MOV dword ptr [ESI + 0x14],EAX
TEST EAX,EAX
JZ 0x00053850
ADD ESP,0xc
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH dword ptr [EDI + 0x30]
CALL 0x00014040
ADD ESP,0xc
MOV EBP,EAX
LEA EAX,[EBX + 0xfffe53c8]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000141b0
PUSH EBP
PUSH EAX
PUSH dword ptr [EDI + 0x40]
PUSH dword ptr [EDI + 0x3c]
CALL 0x000295a0
ADD ESP,0x14
PUSH ESI
XOR ESI,ESI
CALL 0x00014790
ADD ESP,0x10
JMP 0x00053845
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * FUN_000537d0(undefined4 param_1,int param_2)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  undefined4 *__ptr;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int iVar7;\n  undefined4 uVar8;\n  \n  __ptr = (undefined4 *)xmalloc(0x18);\n  puVar5 = (undefined4 *)xmalloc(4);\n  *__ptr = puVar5;\n  uVar6 = FUN_00039040(*(undefined4 *)(param_2 + 0xc));\n  puVar1 = *(uint **)(param_2 + 4);\n  *puVar5 = uVar6;\n  uVar2 = *(uint *)(param_2 + 8);\n  uVar3 = *puVar1;\n  uVar4 = puVar1[1];\n  __ptr[1] = uVar2 + *puVar1;\n  uVar6 = *(undefined4 *)(param_2 + 0x14);\n  __ptr[2] = ((int)uVar2 >> 0x1f) + uVar4 + (uint)CARRY4(uVar2,uVar3);\n  uVar8 = *(undefined4 *)(param_2 + 0x18);\n  __ptr[3] = uVar6;\n  __ptr[4] = uVar8;\n  iVar7 = bfd_reloc_type_lookup(DAT_000880e4,*(undefined4 *)(param_2 + 0x30));\n  __ptr[5] = iVar7;\n  puVar5 = __ptr;\n  if (iVar7 == 0) {\n    uVar6 = bfd_get_reloc_code_name(*(undefined4 *)(param_2 + 0x30));\n    uVar8 = dcgettext(0,"Cannot represent %s relocation in object file",5);\n    FUN_000295a0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar8,uVar6);\n    puVar5 = (undefined4 *)0x0;\n    free(__ptr);\n  }\n  return puVar5;\n}\n\n" comment (function_definition "undefined4 * FUN_000537d0(undefined4 param_1,int param_2)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  undefined4 *__ptr;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int iVar7;\n  undefined4 uVar8;\n  \n  __ptr = (undefined4 *)xmalloc(0x18);\n  puVar5 = (undefined4 *)xmalloc(4);\n  *__ptr = puVar5;\n  uVar6 = FUN_00039040(*(undefined4 *)(param_2 + 0xc));\n  puVar1 = *(uint **)(param_2 + 4);\n  *puVar5 = uVar6;\n  uVar2 = *(uint *)(param_2 + 8);\n  uVar3 = *puVar1;\n  uVar4 = puVar1[1];\n  __ptr[1] = uVar2 + *puVar1;\n  uVar6 = *(undefined4 *)(param_2 + 0x14);\n  __ptr[2] = ((int)uVar2 >> 0x1f) + uVar4 + (uint)CARRY4(uVar2,uVar3);\n  uVar8 = *(undefined4 *)(param_2 + 0x18);\n  __ptr[3] = uVar6;\n  __ptr[4] = uVar8;\n  iVar7 = bfd_reloc_type_lookup(DAT_000880e4,*(undefined4 *)(param_2 + 0x30));\n  __ptr[5] = iVar7;\n  puVar5 = __ptr;\n  if (iVar7 == 0) {\n    uVar6 = bfd_get_reloc_code_name(*(undefined4 *)(param_2 + 0x30));\n    uVar8 = dcgettext(0,"Cannot represent %s relocation in object file",5);\n    FUN_000295a0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar8,uVar6);\n    puVar5 = (undefined4 *)0x0;\n    free(__ptr);\n  }\n  return puVar5;\n}" type_identifier (pointer_declarator "* FUN_000537d0(undefined4 param_1,int param_2)" * (function_declarator "FUN_000537d0(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  uint *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  undefined4 *__ptr;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int iVar7;\n  undefined4 uVar8;\n  \n  __ptr = (undefined4 *)xmalloc(0x18);\n  puVar5 = (undefined4 *)xmalloc(4);\n  *__ptr = puVar5;\n  uVar6 = FUN_00039040(*(undefined4 *)(param_2 + 0xc));\n  puVar1 = *(uint **)(param_2 + 4);\n  *puVar5 = uVar6;\n  uVar2 = *(uint *)(param_2 + 8);\n  uVar3 = *puVar1;\n  uVar4 = puVar1[1];\n  __ptr[1] = uVar2 + *puVar1;\n  uVar6 = *(undefined4 *)(param_2 + 0x14);\n  __ptr[2] = ((int)uVar2 >> 0x1f) + uVar4 + (uint)CARRY4(uVar2,uVar3);\n  uVar8 = *(undefined4 *)(param_2 + 0x18);\n  __ptr[3] = uVar6;\n  __ptr[4] = uVar8;\n  iVar7 = bfd_reloc_type_lookup(DAT_000880e4,*(undefined4 *)(param_2 + 0x30));\n  __ptr[5] = iVar7;\n  puVar5 = __ptr;\n  if (iVar7 == 0) {\n    uVar6 = bfd_get_reloc_code_name(*(undefined4 *)(param_2 + 0x30));\n    uVar8 = dcgettext(0,"Cannot represent %s relocation in object file",5);\n    FUN_000295a0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar8,uVar6);\n    puVar5 = (undefined4 *)0x0;\n    free(__ptr);\n  }\n  return puVar5;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined4 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (expression_statement "__ptr = (undefined4 *)xmalloc(0x18);" (assignment_expression "__ptr = (undefined4 *)xmalloc(0x18)" identifier = (cast_expression "(undefined4 *)xmalloc(0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "puVar5 = (undefined4 *)xmalloc(4);" (assignment_expression "puVar5 = (undefined4 *)xmalloc(4)" identifier = (cast_expression "(undefined4 *)xmalloc(4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "*__ptr = puVar5;" (assignment_expression "*__ptr = puVar5" (pointer_expression "*__ptr" * identifier) = identifier) ;) (expression_statement "uVar6 = FUN_00039040(*(undefined4 *)(param_2 + 0xc));" (assignment_expression "uVar6 = FUN_00039040(*(undefined4 *)(param_2 + 0xc))" identifier = (call_expression "FUN_00039040(*(undefined4 *)(param_2 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_2 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) )))) ;) (expression_statement "puVar1 = *(uint **)(param_2 + 4);" (assignment_expression "puVar1 = *(uint **)(param_2 + 4)" identifier = (pointer_expression "*(uint **)(param_2 + 4)" * (cast_expression "(uint **)(param_2 + 4)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (expression_statement "*puVar5 = uVar6;" (assignment_expression "*puVar5 = uVar6" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "uVar2 = *(uint *)(param_2 + 8);" (assignment_expression "uVar2 = *(uint *)(param_2 + 8)" identifier = (pointer_expression "*(uint *)(param_2 + 8)" * (cast_expression "(uint *)(param_2 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *puVar1;" (assignment_expression "uVar3 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "uVar4 = puVar1[1];" (assignment_expression "uVar4 = puVar1[1]" identifier = (subscript_expression "puVar1[1]" identifier [ number_literal ])) ;) (expression_statement "__ptr[1] = uVar2 + *puVar1;" (assignment_expression "__ptr[1] = uVar2 + *puVar1" (subscript_expression "__ptr[1]" identifier [ number_literal ]) = (binary_expression "uVar2 + *puVar1" identifier + (pointer_expression "*puVar1" * identifier))) ;) (expression_statement "uVar6 = *(undefined4 *)(param_2 + 0x14);" (assignment_expression "uVar6 = *(undefined4 *)(param_2 + 0x14)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "__ptr[2] = ((int)uVar2 >> 0x1f) + uVar4 + (uint)CARRY4(uVar2,uVar3);" (assignment_expression "__ptr[2] = ((int)uVar2 >> 0x1f) + uVar4 + (uint)CARRY4(uVar2,uVar3)" (subscript_expression "__ptr[2]" identifier [ number_literal ]) = (binary_expression "((int)uVar2 >> 0x1f) + uVar4 + (uint)CARRY4(uVar2,uVar3)" (binary_expression "((int)uVar2 >> 0x1f) + uVar4" (parenthesized_expression "((int)uVar2 >> 0x1f)" ( (binary_expression "(int)uVar2 >> 0x1f" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) + identifier) + (cast_expression "(uint)CARRY4(uVar2,uVar3)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar2,uVar3)" identifier (argument_list "(uVar2,uVar3)" ( identifier , identifier )))))) ;) (expression_statement "uVar8 = *(undefined4 *)(param_2 + 0x18);" (assignment_expression "uVar8 = *(undefined4 *)(param_2 + 0x18)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x18)" * (cast_expression "(undefined4 *)(param_2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "__ptr[3] = uVar6;" (assignment_expression "__ptr[3] = uVar6" (subscript_expression "__ptr[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__ptr[4] = uVar8;" (assignment_expression "__ptr[4] = uVar8" (subscript_expression "__ptr[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar7 = bfd_reloc_type_lookup(DAT_000880e4,*(undefined4 *)(param_2 + 0x30));" (assignment_expression "iVar7 = bfd_reloc_type_lookup(DAT_000880e4,*(undefined4 *)(param_2 + 0x30))" identifier = (call_expression "bfd_reloc_type_lookup(DAT_000880e4,*(undefined4 *)(param_2 + 0x30))" identifier (argument_list "(DAT_000880e4,*(undefined4 *)(param_2 + 0x30))" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0x30)" * (cast_expression "(undefined4 *)(param_2 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) )))) )))) ;) (expression_statement "__ptr[5] = iVar7;" (assignment_expression "__ptr[5] = iVar7" (subscript_expression "__ptr[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5 = __ptr;" (assignment_expression "puVar5 = __ptr" identifier = identifier) ;) (if_statement "if (iVar7 == 0) {\n    uVar6 = bfd_get_reloc_code_name(*(undefined4 *)(param_2 + 0x30));\n    uVar8 = dcgettext(0,"Cannot represent %s relocation in object file",5);\n    FUN_000295a0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar8,uVar6);\n    puVar5 = (undefined4 *)0x0;\n    free(__ptr);\n  }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar6 = bfd_get_reloc_code_name(*(undefined4 *)(param_2 + 0x30));\n    uVar8 = dcgettext(0,"Cannot represent %s relocation in object file",5);\n    FUN_000295a0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar8,uVar6);\n    puVar5 = (undefined4 *)0x0;\n    free(__ptr);\n  }" { (expression_statement "uVar6 = bfd_get_reloc_code_name(*(undefined4 *)(param_2 + 0x30));" (assignment_expression "uVar6 = bfd_get_reloc_code_name(*(undefined4 *)(param_2 + 0x30))" identifier = (call_expression "bfd_get_reloc_code_name(*(undefined4 *)(param_2 + 0x30))" identifier (argument_list "(*(undefined4 *)(param_2 + 0x30))" ( (pointer_expression "*(undefined4 *)(param_2 + 0x30)" * (cast_expression "(undefined4 *)(param_2 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) )))) )))) ;) (expression_statement "uVar8 = dcgettext(0,"Cannot represent %s relocation in object file",5);" (assignment_expression "uVar8 = dcgettext(0,"Cannot represent %s relocation in object file",5)" identifier = (call_expression "dcgettext(0,"Cannot represent %s relocation in object file",5)" identifier (argument_list "(0,"Cannot represent %s relocation in object file",5)" ( number_literal , (string_literal ""Cannot represent %s relocation in object file"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_000295a0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar8,uVar6);" (call_expression "FUN_000295a0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar8,uVar6)" identifier (argument_list "(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar8,uVar6)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x3c)" * (cast_expression "(undefined4 *)(param_2 + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3c)" ( (binary_expression "param_2 + 0x3c" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0x40)" * (cast_expression "(undefined4 *)(param_2 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x40)" ( (binary_expression "param_2 + 0x40" identifier + number_literal) )))) , identifier , identifier ))) ;) (expression_statement "puVar5 = (undefined4 *)0x0;" (assignment_expression "puVar5 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) })) (return_statement "return puVar5;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\narelent * tc_gen_reloc(asection *sec,fixS *fixp)\n\n{\n  fragS *pfVar1;\n  uint uVar2;\n  int iVar3;\n  addressT aVar4;\n  valueT vVar5;\n  arelent *__ptr;\n  bfd_symbol **ppbVar6;\n  asymbol *paVar7;\n  reloc_howto_type *prVar8;\n  undefined4 uVar9;\n  char *format;\n  arelent *paVar10;\n  \n  __ptr = (arelent *)xmalloc(0x18);\n  ppbVar6 = (bfd_symbol **)xmalloc(4);\n  __ptr->sym_ptr_ptr = ppbVar6;\n  paVar7 = symbol_get_bfdsym(fixp->fx_addsy);\n  pfVar1 = fixp->fx_frag;\n  *ppbVar6 = paVar7;\n  uVar2 = fixp->fx_where;\n  aVar4 = pfVar1->fr_address;\n  iVar3 = *(int *)((int)&pfVar1->fr_address + 4);\n  *(uint *)&__ptr->address = uVar2 + (int)pfVar1->fr_address;\n  vVar5 = fixp->fx_offset;\n  *(uint *)((int)&__ptr->address + 4) =\n       ((int)uVar2 >> 0x1f) + iVar3 + (uint)CARRY4(uVar2,(uint)aVar4);\n  uVar9 = *(undefined4 *)((int)&fixp->fx_offset + 4);\n  *(int *)&__ptr->addend = (int)vVar5;\n  *(undefined4 *)((int)&__ptr->addend + 4) = uVar9;\n  prVar8 = (reloc_howto_type *)bfd_reloc_type_lookup(stdoutput,fixp->fx_r_type);\n  __ptr->howto = prVar8;\n  paVar10 = __ptr;\n  if (prVar8 == (reloc_howto_type *)0x0) {\n    uVar9 = bfd_get_reloc_code_name(fixp->fx_r_type);\n    format = (char *)dcgettext(0,"Cannot represent %s relocation in object file",5);\n    as_bad_where(fixp->fx_file,fixp->fx_line,format,uVar9);\n    paVar10 = (arelent *)0x0;\n    free(__ptr);\n  }\n  return paVar10;\n}\n\n" comment comment (function_definition "arelent * tc_gen_reloc(asection *sec,fixS *fixp)\n\n{\n  fragS *pfVar1;\n  uint uVar2;\n  int iVar3;\n  addressT aVar4;\n  valueT vVar5;\n  arelent *__ptr;\n  bfd_symbol **ppbVar6;\n  asymbol *paVar7;\n  reloc_howto_type *prVar8;\n  undefined4 uVar9;\n  char *format;\n  arelent *paVar10;\n  \n  __ptr = (arelent *)xmalloc(0x18);\n  ppbVar6 = (bfd_symbol **)xmalloc(4);\n  __ptr->sym_ptr_ptr = ppbVar6;\n  paVar7 = symbol_get_bfdsym(fixp->fx_addsy);\n  pfVar1 = fixp->fx_frag;\n  *ppbVar6 = paVar7;\n  uVar2 = fixp->fx_where;\n  aVar4 = pfVar1->fr_address;\n  iVar3 = *(int *)((int)&pfVar1->fr_address + 4);\n  *(uint *)&__ptr->address = uVar2 + (int)pfVar1->fr_address;\n  vVar5 = fixp->fx_offset;\n  *(uint *)((int)&__ptr->address + 4) =\n       ((int)uVar2 >> 0x1f) + iVar3 + (uint)CARRY4(uVar2,(uint)aVar4);\n  uVar9 = *(undefined4 *)((int)&fixp->fx_offset + 4);\n  *(int *)&__ptr->addend = (int)vVar5;\n  *(undefined4 *)((int)&__ptr->addend + 4) = uVar9;\n  prVar8 = (reloc_howto_type *)bfd_reloc_type_lookup(stdoutput,fixp->fx_r_type);\n  __ptr->howto = prVar8;\n  paVar10 = __ptr;\n  if (prVar8 == (reloc_howto_type *)0x0) {\n    uVar9 = bfd_get_reloc_code_name(fixp->fx_r_type);\n    format = (char *)dcgettext(0,"Cannot represent %s relocation in object file",5);\n    as_bad_where(fixp->fx_file,fixp->fx_line,format,uVar9);\n    paVar10 = (arelent *)0x0;\n    free(__ptr);\n  }\n  return paVar10;\n}" type_identifier (pointer_declarator "* tc_gen_reloc(asection *sec,fixS *fixp)" * (function_declarator "tc_gen_reloc(asection *sec,fixS *fixp)" identifier (parameter_list "(asection *sec,fixS *fixp)" ( (parameter_declaration "asection *sec" type_identifier (pointer_declarator "*sec" * identifier)) , (parameter_declaration "fixS *fixp" type_identifier (pointer_declarator "*fixp" * identifier)) )))) (compound_statement "{\n  fragS *pfVar1;\n  uint uVar2;\n  int iVar3;\n  addressT aVar4;\n  valueT vVar5;\n  arelent *__ptr;\n  bfd_symbol **ppbVar6;\n  asymbol *paVar7;\n  reloc_howto_type *prVar8;\n  undefined4 uVar9;\n  char *format;\n  arelent *paVar10;\n  \n  __ptr = (arelent *)xmalloc(0x18);\n  ppbVar6 = (bfd_symbol **)xmalloc(4);\n  __ptr->sym_ptr_ptr = ppbVar6;\n  paVar7 = symbol_get_bfdsym(fixp->fx_addsy);\n  pfVar1 = fixp->fx_frag;\n  *ppbVar6 = paVar7;\n  uVar2 = fixp->fx_where;\n  aVar4 = pfVar1->fr_address;\n  iVar3 = *(int *)((int)&pfVar1->fr_address + 4);\n  *(uint *)&__ptr->address = uVar2 + (int)pfVar1->fr_address;\n  vVar5 = fixp->fx_offset;\n  *(uint *)((int)&__ptr->address + 4) =\n       ((int)uVar2 >> 0x1f) + iVar3 + (uint)CARRY4(uVar2,(uint)aVar4);\n  uVar9 = *(undefined4 *)((int)&fixp->fx_offset + 4);\n  *(int *)&__ptr->addend = (int)vVar5;\n  *(undefined4 *)((int)&__ptr->addend + 4) = uVar9;\n  prVar8 = (reloc_howto_type *)bfd_reloc_type_lookup(stdoutput,fixp->fx_r_type);\n  __ptr->howto = prVar8;\n  paVar10 = __ptr;\n  if (prVar8 == (reloc_howto_type *)0x0) {\n    uVar9 = bfd_get_reloc_code_name(fixp->fx_r_type);\n    format = (char *)dcgettext(0,"Cannot represent %s relocation in object file",5);\n    as_bad_where(fixp->fx_file,fixp->fx_line,format,uVar9);\n    paVar10 = (arelent *)0x0;\n    free(__ptr);\n  }\n  return paVar10;\n}" { (declaration "fragS *pfVar1;" type_identifier (pointer_declarator "*pfVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "addressT aVar4;" type_identifier identifier ;) (declaration "valueT vVar5;" type_identifier identifier ;) (declaration "arelent *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "bfd_symbol **ppbVar6;" type_identifier (pointer_declarator "**ppbVar6" * (pointer_declarator "*ppbVar6" * identifier)) ;) (declaration "asymbol *paVar7;" type_identifier (pointer_declarator "*paVar7" * identifier) ;) (declaration "reloc_howto_type *prVar8;" type_identifier (pointer_declarator "*prVar8" * identifier) ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "arelent *paVar10;" type_identifier (pointer_declarator "*paVar10" * identifier) ;) (expression_statement "__ptr = (arelent *)xmalloc(0x18);" (assignment_expression "__ptr = (arelent *)xmalloc(0x18)" identifier = (cast_expression "(arelent *)xmalloc(0x18)" ( (type_descriptor "arelent *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "ppbVar6 = (bfd_symbol **)xmalloc(4);" (assignment_expression "ppbVar6 = (bfd_symbol **)xmalloc(4)" identifier = (cast_expression "(bfd_symbol **)xmalloc(4)" ( (type_descriptor "bfd_symbol **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xmalloc(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "__ptr->sym_ptr_ptr = ppbVar6;" (assignment_expression "__ptr->sym_ptr_ptr = ppbVar6" (field_expression "__ptr->sym_ptr_ptr" identifier -> field_identifier) = identifier) ;) (expression_statement "paVar7 = symbol_get_bfdsym(fixp->fx_addsy);" (assignment_expression "paVar7 = symbol_get_bfdsym(fixp->fx_addsy)" identifier = (call_expression "symbol_get_bfdsym(fixp->fx_addsy)" identifier (argument_list "(fixp->fx_addsy)" ( (field_expression "fixp->fx_addsy" identifier -> field_identifier) )))) ;) (expression_statement "pfVar1 = fixp->fx_frag;" (assignment_expression "pfVar1 = fixp->fx_frag" identifier = (field_expression "fixp->fx_frag" identifier -> field_identifier)) ;) (expression_statement "*ppbVar6 = paVar7;" (assignment_expression "*ppbVar6 = paVar7" (pointer_expression "*ppbVar6" * identifier) = identifier) ;) (expression_statement "uVar2 = fixp->fx_where;" (assignment_expression "uVar2 = fixp->fx_where" identifier = (field_expression "fixp->fx_where" identifier -> field_identifier)) ;) (expression_statement "aVar4 = pfVar1->fr_address;" (assignment_expression "aVar4 = pfVar1->fr_address" identifier = (field_expression "pfVar1->fr_address" identifier -> field_identifier)) ;) (expression_statement "iVar3 = *(int *)((int)&pfVar1->fr_address + 4);" (assignment_expression "iVar3 = *(int *)((int)&pfVar1->fr_address + 4)" identifier = (pointer_expression "*(int *)((int)&pfVar1->fr_address + 4)" * (cast_expression "(int *)((int)&pfVar1->fr_address + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pfVar1->fr_address + 4)" ( (binary_expression "(int)&pfVar1->fr_address + 4" (cast_expression "(int)&pfVar1->fr_address" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pfVar1->fr_address" & (field_expression "pfVar1->fr_address" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "*(uint *)&__ptr->address = uVar2 + (int)pfVar1->fr_address;" (assignment_expression "*(uint *)&__ptr->address = uVar2 + (int)pfVar1->fr_address" (pointer_expression "*(uint *)&__ptr->address" * (cast_expression "(uint *)&__ptr->address" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&__ptr->address" & (field_expression "__ptr->address" identifier -> field_identifier)))) = (binary_expression "uVar2 + (int)pfVar1->fr_address" identifier + (cast_expression "(int)pfVar1->fr_address" ( (type_descriptor "int" primitive_type) ) (field_expression "pfVar1->fr_address" identifier -> field_identifier)))) ;) (expression_statement "vVar5 = fixp->fx_offset;" (assignment_expression "vVar5 = fixp->fx_offset" identifier = (field_expression "fixp->fx_offset" identifier -> field_identifier)) ;) (expression_statement "*(uint *)((int)&__ptr->address + 4) =\n       ((int)uVar2 >> 0x1f) + iVar3 + (uint)CARRY4(uVar2,(uint)aVar4);" (assignment_expression "*(uint *)((int)&__ptr->address + 4) =\n       ((int)uVar2 >> 0x1f) + iVar3 + (uint)CARRY4(uVar2,(uint)aVar4)" (pointer_expression "*(uint *)((int)&__ptr->address + 4)" * (cast_expression "(uint *)((int)&__ptr->address + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&__ptr->address + 4)" ( (binary_expression "(int)&__ptr->address + 4" (cast_expression "(int)&__ptr->address" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&__ptr->address" & (field_expression "__ptr->address" identifier -> field_identifier))) + number_literal) )))) = (binary_expression "((int)uVar2 >> 0x1f) + iVar3 + (uint)CARRY4(uVar2,(uint)aVar4)" (binary_expression "((int)uVar2 >> 0x1f) + iVar3" (parenthesized_expression "((int)uVar2 >> 0x1f)" ( (binary_expression "(int)uVar2 >> 0x1f" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) + identifier) + (cast_expression "(uint)CARRY4(uVar2,(uint)aVar4)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar2,(uint)aVar4)" identifier (argument_list "(uVar2,(uint)aVar4)" ( identifier , (cast_expression "(uint)aVar4" ( (type_descriptor "uint" type_identifier) ) identifier) )))))) ;) (expression_statement "uVar9 = *(undefined4 *)((int)&fixp->fx_offset + 4);" (assignment_expression "uVar9 = *(undefined4 *)((int)&fixp->fx_offset + 4)" identifier = (pointer_expression "*(undefined4 *)((int)&fixp->fx_offset + 4)" * (cast_expression "(undefined4 *)((int)&fixp->fx_offset + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&fixp->fx_offset + 4)" ( (binary_expression "(int)&fixp->fx_offset + 4" (cast_expression "(int)&fixp->fx_offset" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&fixp->fx_offset" & (field_expression "fixp->fx_offset" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "*(int *)&__ptr->addend = (int)vVar5;" (assignment_expression "*(int *)&__ptr->addend = (int)vVar5" (pointer_expression "*(int *)&__ptr->addend" * (cast_expression "(int *)&__ptr->addend" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&__ptr->addend" & (field_expression "__ptr->addend" identifier -> field_identifier)))) = (cast_expression "(int)vVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(undefined4 *)((int)&__ptr->addend + 4) = uVar9;" (assignment_expression "*(undefined4 *)((int)&__ptr->addend + 4) = uVar9" (pointer_expression "*(undefined4 *)((int)&__ptr->addend + 4)" * (cast_expression "(undefined4 *)((int)&__ptr->addend + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&__ptr->addend + 4)" ( (binary_expression "(int)&__ptr->addend + 4" (cast_expression "(int)&__ptr->addend" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&__ptr->addend" & (field_expression "__ptr->addend" identifier -> field_identifier))) + number_literal) )))) = identifier) ;) (expression_statement "prVar8 = (reloc_howto_type *)bfd_reloc_type_lookup(stdoutput,fixp->fx_r_type);" (assignment_expression "prVar8 = (reloc_howto_type *)bfd_reloc_type_lookup(stdoutput,fixp->fx_r_type)" identifier = (cast_expression "(reloc_howto_type *)bfd_reloc_type_lookup(stdoutput,fixp->fx_r_type)" ( (type_descriptor "reloc_howto_type *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_reloc_type_lookup(stdoutput,fixp->fx_r_type)" identifier (argument_list "(stdoutput,fixp->fx_r_type)" ( identifier , (field_expression "fixp->fx_r_type" identifier -> field_identifier) ))))) ;) (expression_statement "__ptr->howto = prVar8;" (assignment_expression "__ptr->howto = prVar8" (field_expression "__ptr->howto" identifier -> field_identifier) = identifier) ;) (expression_statement "paVar10 = __ptr;" (assignment_expression "paVar10 = __ptr" identifier = identifier) ;) (if_statement "if (prVar8 == (reloc_howto_type *)0x0) {\n    uVar9 = bfd_get_reloc_code_name(fixp->fx_r_type);\n    format = (char *)dcgettext(0,"Cannot represent %s relocation in object file",5);\n    as_bad_where(fixp->fx_file,fixp->fx_line,format,uVar9);\n    paVar10 = (arelent *)0x0;\n    free(__ptr);\n  }" if (parenthesized_expression "(prVar8 == (reloc_howto_type *)0x0)" ( (binary_expression "prVar8 == (reloc_howto_type *)0x0" identifier == (cast_expression "(reloc_howto_type *)0x0" ( (type_descriptor "reloc_howto_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar9 = bfd_get_reloc_code_name(fixp->fx_r_type);\n    format = (char *)dcgettext(0,"Cannot represent %s relocation in object file",5);\n    as_bad_where(fixp->fx_file,fixp->fx_line,format,uVar9);\n    paVar10 = (arelent *)0x0;\n    free(__ptr);\n  }" { (expression_statement "uVar9 = bfd_get_reloc_code_name(fixp->fx_r_type);" (assignment_expression "uVar9 = bfd_get_reloc_code_name(fixp->fx_r_type)" identifier = (call_expression "bfd_get_reloc_code_name(fixp->fx_r_type)" identifier (argument_list "(fixp->fx_r_type)" ( (field_expression "fixp->fx_r_type" identifier -> field_identifier) )))) ;) (expression_statement "format = (char *)dcgettext(0,"Cannot represent %s relocation in object file",5);" (assignment_expression "format = (char *)dcgettext(0,"Cannot represent %s relocation in object file",5)" identifier = (cast_expression "(char *)dcgettext(0,"Cannot represent %s relocation in object file",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Cannot represent %s relocation in object file",5)" identifier (argument_list "(0,"Cannot represent %s relocation in object file",5)" ( number_literal , (string_literal ""Cannot represent %s relocation in object file"" " string_content ") , number_literal ))))) ;) (expression_statement "as_bad_where(fixp->fx_file,fixp->fx_line,format,uVar9);" (call_expression "as_bad_where(fixp->fx_file,fixp->fx_line,format,uVar9)" identifier (argument_list "(fixp->fx_file,fixp->fx_line,format,uVar9)" ( (field_expression "fixp->fx_file" identifier -> field_identifier) , (field_expression "fixp->fx_line" identifier -> field_identifier) , identifier , identifier ))) ;) (expression_statement "paVar10 = (arelent *)0x0;" (assignment_expression "paVar10 = (arelent *)0x0" identifier = (cast_expression "(arelent *)0x0" ( (type_descriptor "arelent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) })) (return_statement "return paVar10;" return identifier ;) })))
(translation_unit "undefined4 * FUN_000537d0(undefined4 param_1,int param_2)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  undefined4 *__ptr;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int iVar7;\n  undefined4 uVar8;\n  \n  __ptr = (undefined4 *)xmalloc(0x18);\n  puVar5 = (undefined4 *)xmalloc(4);\n  *__ptr = puVar5;\n  uVar6 = FUN_00039040(*(undefined4 *)(param_2 + 0xc));\n  puVar1 = *(uint **)(param_2 + 4);\n  *puVar5 = uVar6;\n  uVar2 = *(uint *)(param_2 + 8);\n  uVar3 = *puVar1;\n  uVar4 = puVar1[1];\n  __ptr[1] = uVar2 + *puVar1;\n  uVar6 = *(undefined4 *)(param_2 + 0x14);\n  __ptr[2] = ((int)uVar2 >> 0x1f) + uVar4 + (uint)CARRY4(uVar2,uVar3);\n  uVar8 = *(undefined4 *)(param_2 + 0x18);\n  __ptr[3] = uVar6;\n  __ptr[4] = uVar8;\n  iVar7 = bfd_reloc_type_lookup(DAT_000880e4,*(undefined4 *)(param_2 + 0x30));\n  __ptr[5] = iVar7;\n  puVar5 = __ptr;\n  if (iVar7 == 0) {\n    uVar6 = bfd_get_reloc_code_name(*(undefined4 *)(param_2 + 0x30));\n    uVar8 = dcgettext(0,"Cannot represent %s relocation in object file",5);\n    FUN_000295a0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar8,uVar6);\n    puVar5 = (undefined4 *)0x0;\n    free(__ptr);\n  }\n  return puVar5;\n}\n\n" (function_definition "undefined4 * FUN_000537d0(undefined4 param_1,int param_2)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  undefined4 *__ptr;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int iVar7;\n  undefined4 uVar8;\n  \n  __ptr = (undefined4 *)xmalloc(0x18);\n  puVar5 = (undefined4 *)xmalloc(4);\n  *__ptr = puVar5;\n  uVar6 = FUN_00039040(*(undefined4 *)(param_2 + 0xc));\n  puVar1 = *(uint **)(param_2 + 4);\n  *puVar5 = uVar6;\n  uVar2 = *(uint *)(param_2 + 8);\n  uVar3 = *puVar1;\n  uVar4 = puVar1[1];\n  __ptr[1] = uVar2 + *puVar1;\n  uVar6 = *(undefined4 *)(param_2 + 0x14);\n  __ptr[2] = ((int)uVar2 >> 0x1f) + uVar4 + (uint)CARRY4(uVar2,uVar3);\n  uVar8 = *(undefined4 *)(param_2 + 0x18);\n  __ptr[3] = uVar6;\n  __ptr[4] = uVar8;\n  iVar7 = bfd_reloc_type_lookup(DAT_000880e4,*(undefined4 *)(param_2 + 0x30));\n  __ptr[5] = iVar7;\n  puVar5 = __ptr;\n  if (iVar7 == 0) {\n    uVar6 = bfd_get_reloc_code_name(*(undefined4 *)(param_2 + 0x30));\n    uVar8 = dcgettext(0,"Cannot represent %s relocation in object file",5);\n    FUN_000295a0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar8,uVar6);\n    puVar5 = (undefined4 *)0x0;\n    free(__ptr);\n  }\n  return puVar5;\n}" type_identifier (pointer_declarator "* FUN_000537d0(undefined4 param_1,int param_2)" * (function_declarator "FUN_000537d0(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  uint *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  undefined4 *__ptr;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int iVar7;\n  undefined4 uVar8;\n  \n  __ptr = (undefined4 *)xmalloc(0x18);\n  puVar5 = (undefined4 *)xmalloc(4);\n  *__ptr = puVar5;\n  uVar6 = FUN_00039040(*(undefined4 *)(param_2 + 0xc));\n  puVar1 = *(uint **)(param_2 + 4);\n  *puVar5 = uVar6;\n  uVar2 = *(uint *)(param_2 + 8);\n  uVar3 = *puVar1;\n  uVar4 = puVar1[1];\n  __ptr[1] = uVar2 + *puVar1;\n  uVar6 = *(undefined4 *)(param_2 + 0x14);\n  __ptr[2] = ((int)uVar2 >> 0x1f) + uVar4 + (uint)CARRY4(uVar2,uVar3);\n  uVar8 = *(undefined4 *)(param_2 + 0x18);\n  __ptr[3] = uVar6;\n  __ptr[4] = uVar8;\n  iVar7 = bfd_reloc_type_lookup(DAT_000880e4,*(undefined4 *)(param_2 + 0x30));\n  __ptr[5] = iVar7;\n  puVar5 = __ptr;\n  if (iVar7 == 0) {\n    uVar6 = bfd_get_reloc_code_name(*(undefined4 *)(param_2 + 0x30));\n    uVar8 = dcgettext(0,"Cannot represent %s relocation in object file",5);\n    FUN_000295a0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar8,uVar6);\n    puVar5 = (undefined4 *)0x0;\n    free(__ptr);\n  }\n  return puVar5;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined4 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (expression_statement "__ptr = (undefined4 *)xmalloc(0x18);" (assignment_expression "__ptr = (undefined4 *)xmalloc(0x18)" identifier = (cast_expression "(undefined4 *)xmalloc(0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "puVar5 = (undefined4 *)xmalloc(4);" (assignment_expression "puVar5 = (undefined4 *)xmalloc(4)" identifier = (cast_expression "(undefined4 *)xmalloc(4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "*__ptr = puVar5;" (assignment_expression "*__ptr = puVar5" (pointer_expression "*__ptr" * identifier) = identifier) ;) (expression_statement "uVar6 = FUN_00039040(*(undefined4 *)(param_2 + 0xc));" (assignment_expression "uVar6 = FUN_00039040(*(undefined4 *)(param_2 + 0xc))" identifier = (call_expression "FUN_00039040(*(undefined4 *)(param_2 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_2 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) )))) ;) (expression_statement "puVar1 = *(uint **)(param_2 + 4);" (assignment_expression "puVar1 = *(uint **)(param_2 + 4)" identifier = (pointer_expression "*(uint **)(param_2 + 4)" * (cast_expression "(uint **)(param_2 + 4)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (expression_statement "*puVar5 = uVar6;" (assignment_expression "*puVar5 = uVar6" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "uVar2 = *(uint *)(param_2 + 8);" (assignment_expression "uVar2 = *(uint *)(param_2 + 8)" identifier = (pointer_expression "*(uint *)(param_2 + 8)" * (cast_expression "(uint *)(param_2 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *puVar1;" (assignment_expression "uVar3 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "uVar4 = puVar1[1];" (assignment_expression "uVar4 = puVar1[1]" identifier = (subscript_expression "puVar1[1]" identifier [ number_literal ])) ;) (expression_statement "__ptr[1] = uVar2 + *puVar1;" (assignment_expression "__ptr[1] = uVar2 + *puVar1" (subscript_expression "__ptr[1]" identifier [ number_literal ]) = (binary_expression "uVar2 + *puVar1" identifier + (pointer_expression "*puVar1" * identifier))) ;) (expression_statement "uVar6 = *(undefined4 *)(param_2 + 0x14);" (assignment_expression "uVar6 = *(undefined4 *)(param_2 + 0x14)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "__ptr[2] = ((int)uVar2 >> 0x1f) + uVar4 + (uint)CARRY4(uVar2,uVar3);" (assignment_expression "__ptr[2] = ((int)uVar2 >> 0x1f) + uVar4 + (uint)CARRY4(uVar2,uVar3)" (subscript_expression "__ptr[2]" identifier [ number_literal ]) = (binary_expression "((int)uVar2 >> 0x1f) + uVar4 + (uint)CARRY4(uVar2,uVar3)" (binary_expression "((int)uVar2 >> 0x1f) + uVar4" (parenthesized_expression "((int)uVar2 >> 0x1f)" ( (binary_expression "(int)uVar2 >> 0x1f" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) + identifier) + (cast_expression "(uint)CARRY4(uVar2,uVar3)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar2,uVar3)" identifier (argument_list "(uVar2,uVar3)" ( identifier , identifier )))))) ;) (expression_statement "uVar8 = *(undefined4 *)(param_2 + 0x18);" (assignment_expression "uVar8 = *(undefined4 *)(param_2 + 0x18)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x18)" * (cast_expression "(undefined4 *)(param_2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "__ptr[3] = uVar6;" (assignment_expression "__ptr[3] = uVar6" (subscript_expression "__ptr[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__ptr[4] = uVar8;" (assignment_expression "__ptr[4] = uVar8" (subscript_expression "__ptr[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar7 = bfd_reloc_type_lookup(DAT_000880e4,*(undefined4 *)(param_2 + 0x30));" (assignment_expression "iVar7 = bfd_reloc_type_lookup(DAT_000880e4,*(undefined4 *)(param_2 + 0x30))" identifier = (call_expression "bfd_reloc_type_lookup(DAT_000880e4,*(undefined4 *)(param_2 + 0x30))" identifier (argument_list "(DAT_000880e4,*(undefined4 *)(param_2 + 0x30))" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0x30)" * (cast_expression "(undefined4 *)(param_2 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) )))) )))) ;) (expression_statement "__ptr[5] = iVar7;" (assignment_expression "__ptr[5] = iVar7" (subscript_expression "__ptr[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5 = __ptr;" (assignment_expression "puVar5 = __ptr" identifier = identifier) ;) (if_statement "if (iVar7 == 0) {\n    uVar6 = bfd_get_reloc_code_name(*(undefined4 *)(param_2 + 0x30));\n    uVar8 = dcgettext(0,"Cannot represent %s relocation in object file",5);\n    FUN_000295a0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar8,uVar6);\n    puVar5 = (undefined4 *)0x0;\n    free(__ptr);\n  }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar6 = bfd_get_reloc_code_name(*(undefined4 *)(param_2 + 0x30));\n    uVar8 = dcgettext(0,"Cannot represent %s relocation in object file",5);\n    FUN_000295a0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar8,uVar6);\n    puVar5 = (undefined4 *)0x0;\n    free(__ptr);\n  }" { (expression_statement "uVar6 = bfd_get_reloc_code_name(*(undefined4 *)(param_2 + 0x30));" (assignment_expression "uVar6 = bfd_get_reloc_code_name(*(undefined4 *)(param_2 + 0x30))" identifier = (call_expression "bfd_get_reloc_code_name(*(undefined4 *)(param_2 + 0x30))" identifier (argument_list "(*(undefined4 *)(param_2 + 0x30))" ( (pointer_expression "*(undefined4 *)(param_2 + 0x30)" * (cast_expression "(undefined4 *)(param_2 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) )))) )))) ;) (expression_statement "uVar8 = dcgettext(0,"Cannot represent %s relocation in object file",5);" (assignment_expression "uVar8 = dcgettext(0,"Cannot represent %s relocation in object file",5)" identifier = (call_expression "dcgettext(0,"Cannot represent %s relocation in object file",5)" identifier (argument_list "(0,"Cannot represent %s relocation in object file",5)" ( number_literal , (string_literal ""Cannot represent %s relocation in object file"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_000295a0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar8,uVar6);" (call_expression "FUN_000295a0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar8,uVar6)" identifier (argument_list "(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar8,uVar6)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x3c)" * (cast_expression "(undefined4 *)(param_2 + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3c)" ( (binary_expression "param_2 + 0x3c" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0x40)" * (cast_expression "(undefined4 *)(param_2 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x40)" ( (binary_expression "param_2 + 0x40" identifier + number_literal) )))) , identifier , identifier ))) ;) (expression_statement "puVar5 = (undefined4 *)0x0;" (assignment_expression "puVar5 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) })) (return_statement "return puVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (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 * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = 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 = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + (pointer_expression * 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 (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )) + IDENT) + (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( IDENT , 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 (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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) )))) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (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 )))) ;) (expression_statement (call_expression IDENT (argument_list ( (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) )))) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 * FUN_000537d0(undefined4 param_1,int param_2)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  undefined4 *__ptr;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int iVar7;\n  undefined4 uVar8;\n  \n  __ptr = (undefined4 *)xmalloc(0x18);\n  puVar5 = (undefined4 *)xmalloc(4);\n  *__ptr = puVar5;\n  uVar6 = FUN_00039040(*(undefined4 *)(param_2 + 0xc));\n  puVar1 = *(uint **)(param_2 + 4);\n  *puVar5 = uVar6;\n  uVar2 = *(uint *)(param_2 + 8);\n  uVar3 = *puVar1;\n  uVar4 = puVar1[1];\n  __ptr[1] = uVar2 + *puVar1;\n  uVar6 = *(undefined4 *)(param_2 + 0x14);\n  __ptr[2] = ((int)uVar2 >> 0x1f) + uVar4 + (uint)CARRY4(uVar2,uVar3);\n  uVar8 = *(undefined4 *)(param_2 + 0x18);\n  __ptr[3] = uVar6;\n  __ptr[4] = uVar8;\n  iVar7 = bfd_reloc_type_lookup(DAT_000880e4,*(undefined4 *)(param_2 + 0x30));\n  __ptr[5] = iVar7;\n  puVar5 = __ptr;\n  if (iVar7 == 0) {\n    uVar6 = bfd_get_reloc_code_name(*(undefined4 *)(param_2 + 0x30));\n    uVar8 = dcgettext(0,"Cannot represent %s relocation in object file",5);\n    FUN_000295a0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar8,uVar6);\n    puVar5 = (undefined4 *)0x0;\n    free(__ptr);\n  }\n  return puVar5;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_000537d0(undefined4 param_1,int param_2)" (* "*") (function_declarator "FUN_000537d0(undefined4 param_1,int param_2)" (identifier "FUN_000537d0") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")")))) (compound_statement "{\n  uint *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  undefined4 *__ptr;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int iVar7;\n  undefined4 uVar8;\n  \n  __ptr = (undefined4 *)xmalloc(0x18);\n  puVar5 = (undefined4 *)xmalloc(4);\n  *__ptr = puVar5;\n  uVar6 = FUN_00039040(*(undefined4 *)(param_2 + 0xc));\n  puVar1 = *(uint **)(param_2 + 4);\n  *puVar5 = uVar6;\n  uVar2 = *(uint *)(param_2 + 8);\n  uVar3 = *puVar1;\n  uVar4 = puVar1[1];\n  __ptr[1] = uVar2 + *puVar1;\n  uVar6 = *(undefined4 *)(param_2 + 0x14);\n  __ptr[2] = ((int)uVar2 >> 0x1f) + uVar4 + (uint)CARRY4(uVar2,uVar3);\n  uVar8 = *(undefined4 *)(param_2 + 0x18);\n  __ptr[3] = uVar6;\n  __ptr[4] = uVar8;\n  iVar7 = bfd_reloc_type_lookup(DAT_000880e4,*(undefined4 *)(param_2 + 0x30));\n  __ptr[5] = iVar7;\n  puVar5 = __ptr;\n  if (iVar7 == 0) {\n    uVar6 = bfd_get_reloc_code_name(*(undefined4 *)(param_2 + 0x30));\n    uVar8 = dcgettext(0,"Cannot represent %s relocation in object file",5);\n    FUN_000295a0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar8,uVar6);\n    puVar5 = (undefined4 *)0x0;\n    free(__ptr);\n  }\n  return puVar5;\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "undefined4 *__ptr;" (type_identifier "undefined4") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "undefined4 uVar8;" (type_identifier "undefined4") (identifier "uVar8") (; ";")) (expression_statement "__ptr = (undefined4 *)xmalloc(0x18);" (assignment_expression "__ptr = (undefined4 *)xmalloc(0x18)" (identifier "__ptr") (= "=") (cast_expression "(undefined4 *)xmalloc(0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x18)" (identifier "xmalloc") (argument_list "(0x18)" (( "(") (number_literal "0x18") () ")"))))) (; ";")) (expression_statement "puVar5 = (undefined4 *)xmalloc(4);" (assignment_expression "puVar5 = (undefined4 *)xmalloc(4)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)xmalloc(4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(4)" (identifier "xmalloc") (argument_list "(4)" (( "(") (number_literal "4") () ")"))))) (; ";")) (expression_statement "*__ptr = puVar5;" (assignment_expression "*__ptr = puVar5" (pointer_expression "*__ptr" (* "*") (identifier "__ptr")) (= "=") (identifier "puVar5")) (; ";")) (expression_statement "uVar6 = FUN_00039040(*(undefined4 *)(param_2 + 0xc));" (assignment_expression "uVar6 = FUN_00039040(*(undefined4 *)(param_2 + 0xc))" (identifier "uVar6") (= "=") (call_expression "FUN_00039040(*(undefined4 *)(param_2 + 0xc))" (identifier "FUN_00039040") (argument_list "(*(undefined4 *)(param_2 + 0xc))" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) () ")")))) (; ";")) (expression_statement "puVar1 = *(uint **)(param_2 + 4);" (assignment_expression "puVar1 = *(uint **)(param_2 + 4)" (identifier "puVar1") (= "=") (pointer_expression "*(uint **)(param_2 + 4)" (* "*") (cast_expression "(uint **)(param_2 + 4)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*puVar5 = uVar6;" (assignment_expression "*puVar5 = uVar6" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "uVar2 = *(uint *)(param_2 + 8);" (assignment_expression "uVar2 = *(uint *)(param_2 + 8)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(param_2 + 8)" (* "*") (cast_expression "(uint *)(param_2 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "uVar3 = *puVar1;" (assignment_expression "uVar3 = *puVar1" (identifier "uVar3") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "uVar4 = puVar1[1];" (assignment_expression "uVar4 = puVar1[1]" (identifier "uVar4") (= "=") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "__ptr[1] = uVar2 + *puVar1;" (assignment_expression "__ptr[1] = uVar2 + *puVar1" (subscript_expression "__ptr[1]" (identifier "__ptr") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "uVar2 + *puVar1" (identifier "uVar2") (+ "+") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (expression_statement "uVar6 = *(undefined4 *)(param_2 + 0x14);" (assignment_expression "uVar6 = *(undefined4 *)(param_2 + 0x14)" (identifier "uVar6") (= "=") (pointer_expression "*(undefined4 *)(param_2 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "__ptr[2] = ((int)uVar2 >> 0x1f) + uVar4 + (uint)CARRY4(uVar2,uVar3);" (assignment_expression "__ptr[2] = ((int)uVar2 >> 0x1f) + uVar4 + (uint)CARRY4(uVar2,uVar3)" (subscript_expression "__ptr[2]" (identifier "__ptr") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "((int)uVar2 >> 0x1f) + uVar4 + (uint)CARRY4(uVar2,uVar3)" (binary_expression "((int)uVar2 >> 0x1f) + uVar4" (parenthesized_expression "((int)uVar2 >> 0x1f)" (( "(") (binary_expression "(int)uVar2 >> 0x1f" (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2")) (>> ">>") (number_literal "0x1f")) () ")")) (+ "+") (identifier "uVar4")) (+ "+") (cast_expression "(uint)CARRY4(uVar2,uVar3)" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (call_expression "CARRY4(uVar2,uVar3)" (identifier "CARRY4") (argument_list "(uVar2,uVar3)" (( "(") (identifier "uVar2") (, ",") (identifier "uVar3") () ")")))))) (; ";")) (expression_statement "uVar8 = *(undefined4 *)(param_2 + 0x18);" (assignment_expression "uVar8 = *(undefined4 *)(param_2 + 0x18)" (identifier "uVar8") (= "=") (pointer_expression "*(undefined4 *)(param_2 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "__ptr[3] = uVar6;" (assignment_expression "__ptr[3] = uVar6" (subscript_expression "__ptr[3]" (identifier "__ptr") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "__ptr[4] = uVar8;" (assignment_expression "__ptr[4] = uVar8" (subscript_expression "__ptr[4]" (identifier "__ptr") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "uVar8")) (; ";")) (expression_statement "iVar7 = bfd_reloc_type_lookup(DAT_000880e4,*(undefined4 *)(param_2 + 0x30));" (assignment_expression "iVar7 = bfd_reloc_type_lookup(DAT_000880e4,*(undefined4 *)(param_2 + 0x30))" (identifier "iVar7") (= "=") (call_expression "bfd_reloc_type_lookup(DAT_000880e4,*(undefined4 *)(param_2 + 0x30))" (identifier "bfd_reloc_type_lookup") (argument_list "(DAT_000880e4,*(undefined4 *)(param_2 + 0x30))" (( "(") (identifier "DAT_000880e4") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x30)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")")))) () ")")))) (; ";")) (expression_statement "__ptr[5] = iVar7;" (assignment_expression "__ptr[5] = iVar7" (subscript_expression "__ptr[5]" (identifier "__ptr") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "puVar5 = __ptr;" (assignment_expression "puVar5 = __ptr" (identifier "puVar5") (= "=") (identifier "__ptr")) (; ";")) (if_statement "if (iVar7 == 0) {\n    uVar6 = bfd_get_reloc_code_name(*(undefined4 *)(param_2 + 0x30));\n    uVar8 = dcgettext(0,"Cannot represent %s relocation in object file",5);\n    FUN_000295a0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar8,uVar6);\n    puVar5 = (undefined4 *)0x0;\n    free(__ptr);\n  }" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar6 = bfd_get_reloc_code_name(*(undefined4 *)(param_2 + 0x30));\n    uVar8 = dcgettext(0,"Cannot represent %s relocation in object file",5);\n    FUN_000295a0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar8,uVar6);\n    puVar5 = (undefined4 *)0x0;\n    free(__ptr);\n  }" ({ "{") (expression_statement "uVar6 = bfd_get_reloc_code_name(*(undefined4 *)(param_2 + 0x30));" (assignment_expression "uVar6 = bfd_get_reloc_code_name(*(undefined4 *)(param_2 + 0x30))" (identifier "uVar6") (= "=") (call_expression "bfd_get_reloc_code_name(*(undefined4 *)(param_2 + 0x30))" (identifier "bfd_get_reloc_code_name") (argument_list "(*(undefined4 *)(param_2 + 0x30))" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 0x30)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")")))) () ")")))) (; ";")) (expression_statement "uVar8 = dcgettext(0,"Cannot represent %s relocation in object file",5);" (assignment_expression "uVar8 = dcgettext(0,"Cannot represent %s relocation in object file",5)" (identifier "uVar8") (= "=") (call_expression "dcgettext(0,"Cannot represent %s relocation in object file",5)" (identifier "dcgettext") (argument_list "(0,"Cannot represent %s relocation in object file",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Cannot represent %s relocation in object file"" (" """) (string_content "Cannot represent %s relocation in object file") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_000295a0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar8,uVar6);" (call_expression "FUN_000295a0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar8,uVar6)" (identifier "FUN_000295a0") (argument_list "(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar8,uVar6)" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 0x3c)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x3c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x3c)" (( "(") (binary_expression "param_2 + 0x3c" (identifier "param_2") (+ "+") (number_literal "0x3c")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x40)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x40)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x40)" (( "(") (binary_expression "param_2 + 0x40" (identifier "param_2") (+ "+") (number_literal "0x40")) () ")")))) (, ",") (identifier "uVar8") (, ",") (identifier "uVar6") () ")"))) (; ";")) (expression_statement "puVar5 = (undefined4 *)0x0;" (assignment_expression "puVar5 = (undefined4 *)0x0" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (} "}"))) (return_statement "return puVar5;" (return "return") (identifier "puVar5") (; ";")) (} "}")))

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

type_1 * function_1(type_2 *sec,type_3 *fixp)

{
  type_4 *pfVar1;
  type_5 var_3;
  int var_4;
  type_6 aVar4;
  type_7 vVar5;
  type_1 *__ptr;
  type_8 **ppbVar6;
  type_9 *paVar7;
  type_10 *var_7;
  type_11 uVar9;
  char *format;
  type_1 *paVar10;
  
  __ptr = (type_1 *)var_1(0x18);
  ppbVar6 = (type_8 **)var_1(4);
  __ptr->sym_ptr_ptr = ppbVar6;
  paVar7 = var_2(fixp->fx_addsy);
  pfVar1 = fixp->fx_frag;
  *ppbVar6 = paVar7;
  var_3 = fixp->fx_where;
  aVar4 = pfVar1->fr_address;
  var_4 = *(int *)((int)&pfVar1->fr_address + 4);
  *(type_5 *)&__ptr->address = var_3 + (int)pfVar1->fr_address;
  vVar5 = fixp->fx_offset;
  *(type_5 *)((int)&__ptr->address + 4) =
       ((int)var_3 >> 0x1f) + var_4 + (type_5)var_5(var_3,(type_5)aVar4);
  uVar9 = *(type_11 *)((int)&fixp->fx_offset + 4);
  *(int *)&__ptr->addend = (int)vVar5;
  *(type_11 *)((int)&__ptr->addend + 4) = uVar9;
  var_7 = (type_10 *)var_6(stdoutput,fixp->fx_r_type);
  __ptr->howto = var_7;
  paVar10 = __ptr;
  if (var_7 == (type_10 *)0x0) {
    uVar9 = var_8(fixp->fx_r_type);
    format = (char *)var_9(0,"Cannot represent %s relocation in object file",5);
    var_10(fixp->fx_file,fixp->fx_line,format,uVar9);
    paVar10 = (type_1 *)0x0;
    var_11(__ptr);
  }
  return paVar10;
}


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

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

undefined4 * MASKED(undefined4 param_1,int param_2)

{
  uint *puVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  undefined4 *__ptr;
  undefined4 *puVar5;
  undefined4 uVar6;
  int iVar7;
  undefined4 uVar8;
  
  __ptr = (undefined4 *)xmalloc(0x18);
  puVar5 = (undefined4 *)xmalloc(4);
  *__ptr = puVar5;
  uVar6 = FUN_00039040(*(undefined4 *)(param_2 + 0xc));
  puVar1 = *(uint **)(param_2 + 4);
  *puVar5 = uVar6;
  uVar2 = *(uint *)(param_2 + 8);
  uVar3 = *puVar1;
  uVar4 = puVar1[1];
  __ptr[1] = uVar2 + *puVar1;
  uVar6 = *(undefined4 *)(param_2 + 0x14);
  __ptr[2] = ((int)uVar2 >> 0x1f) + uVar4 + (uint)CARRY4(uVar2,uVar3);
  uVar8 = *(undefined4 *)(param_2 + 0x18);
  __ptr[3] = uVar6;
  __ptr[4] = uVar8;
  iVar7 = bfd_reloc_type_lookup(DAT_000880e4,*(undefined4 *)(param_2 + 0x30));
  __ptr[5] = iVar7;
  puVar5 = __ptr;
  if (iVar7 == 0) {
    uVar6 = bfd_get_reloc_code_name(*(undefined4 *)(param_2 + 0x30));
    uVar8 = dcgettext(0,"Cannot represent %s relocation in object file",5);
    FUN_000295a0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar8,uVar6);
    puVar5 = (undefined4 *)0x0;
    free(__ptr);
  }
  return puVar5;
}

