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

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

{
  fragS *pfVar1;
  uint uVar2;
  bfd_symbol **ppbVar3;
  asymbol *paVar4;
  int iVar5;
  reloc_howto_type *prVar6;
  uint uVar7;
  undefined4 uVar8;
  char *format;
  int iVar9;
  bfd_reloc_code_real_type bVar10;
  arelent *local_20;
  
  local_20 = (arelent *)xmalloc(0x18);
  ppbVar3 = (bfd_symbol **)xmalloc(4);
  local_20->sym_ptr_ptr = ppbVar3;
  paVar4 = symbol_get_bfdsym(fixp->fx_addsy);
  pfVar1 = fixp->fx_frag;
  *ppbVar3 = paVar4;
  uVar2 = fixp->fx_where;
  iVar5 = uVar2 + (int)pfVar1->fr_address;
  iVar9 = ((int)uVar2 >> 0x1f) + *(int *)((int)&pfVar1->fr_address + 4) +
          (uint)CARRY4(uVar2,(uint)pfVar1->fr_address);
  *(int *)&local_20->address = iVar5;
  *(int *)((int)&local_20->address + 4) = iVar9;
  if ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) == (undefined1  [76])0x0)
  {
    iVar5 = (int)fixp->fx_offset;
    iVar9 = *(int *)((int)&fixp->fx_offset + 4);
  }
  else if ((section->field_0x19 & 4) == 0) {
    *(int *)&fixp->fx_offset = iVar5;
    *(int *)((int)&fixp->fx_offset + 4) = iVar9;
  }
  else {
    uVar7 = md_pcrel_from_section(fixp,section);
    uVar2 = (uint)fixp->fx_offset;
    iVar5 = uVar2 - uVar7;
    iVar9 = (*(int *)((int)&fixp->fx_offset + 4) - ((int)uVar7 >> 0x1f)) - (uint)(uVar2 < uVar7);
    *(int *)&fixp->fx_offset = iVar5;
    *(int *)((int)&fixp->fx_offset + 4) = iVar9;
  }
  bVar10 = fixp->fx_r_type;
  *(int *)&local_20->addend = iVar5;
  *(int *)((int)&local_20->addend + 4) = iVar9;
  if (bVar10 == BFD_RELOC_32) {
    if ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) != (undefined1  [76])0x0
       ) {
      bVar10 = BFD_RELOC_32_PCREL;
    }
  }
  else if (bVar10 == BFD_RELOC_16) {
    if ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) != (undefined1  [76])0x0
       ) {
      bVar10 = BFD_RELOC_16_PCREL;
    }
  }
  else if ((bVar10 == BFD_RELOC_64) &&
          ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) !=
           (undefined1  [76])0x0)) {
    bVar10 = BFD_RELOC_64_PCREL;
  }
  prVar6 = (reloc_howto_type *)bfd_reloc_type_lookup(stdoutput,bVar10);
  local_20->howto = prVar6;
  if (prVar6 == (reloc_howto_type *)0x0) {
    uVar8 = bfd_get_reloc_code_name(bVar10);
    format = (char *)dcgettext(0,"cannot represent %s relocation in this object file format",5);
    as_bad_where(fixp->fx_file,fixp->fx_line,format,uVar8);
    local_20 = (arelent *)0x0;
  }
  return local_20;
}



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

undefined4 * FUN_0004c8f0(int param_1,byte *param_2)

{
  uint *puVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  int iVar4;
  uint uVar5;
  undefined4 uVar6;
  int iVar7;
  int iVar8;
  undefined4 *local_20;
  
  local_20 = (undefined4 *)xmalloc(0x18);
  puVar2 = (undefined4 *)xmalloc(4);
  *local_20 = puVar2;
  uVar3 = FUN_0003ca60(*(undefined4 *)(param_2 + 0xc));
  puVar1 = *(uint **)(param_2 + 4);
  *puVar2 = uVar3;
  uVar5 = *(uint *)(param_2 + 8);
  iVar4 = uVar5 + *puVar1;
  iVar7 = ((int)uVar5 >> 0x1f) + puVar1[1] + (uint)CARRY4(uVar5,*puVar1);
  local_20[1] = iVar4;
  local_20[2] = iVar7;
  if ((*param_2 & 1) == 0) {
    iVar4 = *(int *)(param_2 + 0x14);
    iVar7 = *(int *)(param_2 + 0x18);
  }
  else if ((*(byte *)(param_1 + 0x19) & 4) == 0) {
    *(int *)(param_2 + 0x14) = iVar4;
    *(int *)(param_2 + 0x18) = iVar7;
  }
  else {
    uVar5 = FUN_0004c880(param_2,param_1);
    iVar4 = *(uint *)(param_2 + 0x14) - uVar5;
    iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -
            (uint)(*(uint *)(param_2 + 0x14) < uVar5);
    *(int *)(param_2 + 0x14) = iVar4;
    *(int *)(param_2 + 0x18) = iVar7;
  }
  iVar8 = *(int *)(param_2 + 0x30);
  local_20[3] = iVar4;
  local_20[4] = iVar7;
  if (iVar8 == 2) {
    if ((*param_2 & 1) != 0) {
      iVar8 = 9;
    }
  }
  else if (iVar8 == 5) {
    if ((*param_2 & 1) != 0) {
      iVar8 = 0xb;
    }
  }
  else if ((iVar8 == 1) && ((*param_2 & 1) != 0)) {
    iVar8 = 8;
  }
  iVar4 = bfd_reloc_type_lookup(DAT_00081984,iVar8);
  local_20[5] = iVar4;
  if (iVar4 == 0) {
    uVar3 = bfd_get_reloc_code_name(iVar8);
    uVar6 = dcgettext(0,"cannot represent %s relocation in this object file format",5);
    FUN_0002cef0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar6,uVar3);
    local_20 = (undefined4 *)0x0;
  }
  return local_20;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00017140
ADD EBX,0x2b707
SUB ESP,0x28
MOV ESI,dword ptr [ESP + 0x40]
PUSH 0x18
CALL 0x000158c0
MOV dword ptr [ESP],0x4
MOV EDI,EAX
MOV dword ptr [ESP + 0x1c],EAX
CALL 0x000158c0
MOV dword ptr [EDI],EAX
MOV EBP,EAX
POP EAX
PUSH dword ptr [ESI + 0xc]
CALL 0x0003ca60
MOV ECX,dword ptr [ESI + 0x4]
MOV dword ptr [EBP],EAX
MOV EAX,dword ptr [ESI + 0x8]
CDQ
ADD EAX,dword ptr [ECX]
ADC EDX,dword ptr [ECX + 0x4]
ADD ESP,0x10
MOV dword ptr [EDI + 0x4],EAX
MOV dword ptr [EDI + 0x8],EDX
TEST byte ptr [ESI],0x1
JNZ 0x0004c9a0
MOV EAX,dword ptr [ESI + 0x14]
MOV EDX,dword ptr [ESI + 0x18]
MOV ECX,dword ptr [ESP + 0xc]
MOV EBP,dword ptr [ESI + 0x30]
MOV dword ptr [ECX + 0xc],EAX
MOV dword ptr [ECX + 0x10],EDX
CMP EBP,0x2
JZ 0x0004c9d8
CMP EBP,0x5
JZ 0x0004c9c8
CMP EBP,0x1
JZ 0x0004c9b8
LEA EAX,[EBX + 0x9984]
SUB ESP,0x8
PUSH EBP
PUSH dword ptr [EAX]
CALL 0x00015220
MOV EDX,dword ptr [ESP + 0x1c]
ADD ESP,0x10
MOV dword ptr [EDX + 0x14],EAX
TEST EAX,EAX
JZ 0x0004ca18
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDI,dword ptr [ESP + 0x30]
TEST byte ptr [EDI + 0x19],0x4
JNZ 0x0004c9e8
MOV dword ptr [ESI + 0x14],EAX
MOV dword ptr [ESI + 0x18],EDX
JMP 0x0004c94f
TEST byte ptr [ESI],0x1
MOV EAX,0x8
CMOVNZ EBP,EAX
JMP 0x0004c96b
TEST byte ptr [ESI],0x1
MOV EAX,0xb
CMOVNZ EBP,EAX
JMP 0x0004c96b
TEST byte ptr [ESI],0x1
MOV EAX,0x9
CMOVNZ EBP,EAX
JMP 0x0004c96b
SUB ESP,0x8
PUSH dword ptr [ESP + 0x38]
PUSH ESI
CALL 0x0004c880
MOV EDI,dword ptr [ESI + 0x14]
MOV EBP,dword ptr [ESI + 0x18]
CDQ
SUB EDI,EAX
SBB EBP,EDX
MOV EAX,EDI
MOV dword ptr [ESI + 0x14],EDI
ADD ESP,0x10
MOV EDX,EBP
MOV dword ptr [ESI + 0x18],EBP
JMP 0x0004c94f
SUB ESP,0xc
PUSH EBP
CALL 0x00015040
ADD ESP,0xc
MOV EDI,EAX
LEA EAX,[EBX + 0xfffe52cc]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000151e0
PUSH EDI
PUSH EAX
PUSH dword ptr [ESI + 0x40]
PUSH dword ptr [ESI + 0x3c]
CALL 0x0002cef0
ADD ESP,0x20
MOV dword ptr [ESP + 0xc],0x0
JMP 0x0004c98e
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * FUN_0004c8f0(int param_1,byte *param_2)\n\n{\n  uint *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 *local_20;\n  \n  local_20 = (undefined4 *)xmalloc(0x18);\n  puVar2 = (undefined4 *)xmalloc(4);\n  *local_20 = puVar2;\n  uVar3 = FUN_0003ca60(*(undefined4 *)(param_2 + 0xc));\n  puVar1 = *(uint **)(param_2 + 4);\n  *puVar2 = uVar3;\n  uVar5 = *(uint *)(param_2 + 8);\n  iVar4 = uVar5 + *puVar1;\n  iVar7 = ((int)uVar5 >> 0x1f) + puVar1[1] + (uint)CARRY4(uVar5,*puVar1);\n  local_20[1] = iVar4;\n  local_20[2] = iVar7;\n  if ((*param_2 & 1) == 0) {\n    iVar4 = *(int *)(param_2 + 0x14);\n    iVar7 = *(int *)(param_2 + 0x18);\n  }\n  else if ((*(byte *)(param_1 + 0x19) & 4) == 0) {\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }\n  else {\n    uVar5 = FUN_0004c880(param_2,param_1);\n    iVar4 = *(uint *)(param_2 + 0x14) - uVar5;\n    iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5);\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }\n  iVar8 = *(int *)(param_2 + 0x30);\n  local_20[3] = iVar4;\n  local_20[4] = iVar7;\n  if (iVar8 == 2) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 9;\n    }\n  }\n  else if (iVar8 == 5) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 0xb;\n    }\n  }\n  else if ((iVar8 == 1) && ((*param_2 & 1) != 0)) {\n    iVar8 = 8;\n  }\n  iVar4 = bfd_reloc_type_lookup(DAT_00081984,iVar8);\n  local_20[5] = iVar4;\n  if (iVar4 == 0) {\n    uVar3 = bfd_get_reloc_code_name(iVar8);\n    uVar6 = dcgettext(0,"cannot represent %s relocation in this object file format",5);\n    FUN_0002cef0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar6,uVar3);\n    local_20 = (undefined4 *)0x0;\n  }\n  return local_20;\n}\n\n" comment (function_definition "undefined4 * FUN_0004c8f0(int param_1,byte *param_2)\n\n{\n  uint *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 *local_20;\n  \n  local_20 = (undefined4 *)xmalloc(0x18);\n  puVar2 = (undefined4 *)xmalloc(4);\n  *local_20 = puVar2;\n  uVar3 = FUN_0003ca60(*(undefined4 *)(param_2 + 0xc));\n  puVar1 = *(uint **)(param_2 + 4);\n  *puVar2 = uVar3;\n  uVar5 = *(uint *)(param_2 + 8);\n  iVar4 = uVar5 + *puVar1;\n  iVar7 = ((int)uVar5 >> 0x1f) + puVar1[1] + (uint)CARRY4(uVar5,*puVar1);\n  local_20[1] = iVar4;\n  local_20[2] = iVar7;\n  if ((*param_2 & 1) == 0) {\n    iVar4 = *(int *)(param_2 + 0x14);\n    iVar7 = *(int *)(param_2 + 0x18);\n  }\n  else if ((*(byte *)(param_1 + 0x19) & 4) == 0) {\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }\n  else {\n    uVar5 = FUN_0004c880(param_2,param_1);\n    iVar4 = *(uint *)(param_2 + 0x14) - uVar5;\n    iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5);\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }\n  iVar8 = *(int *)(param_2 + 0x30);\n  local_20[3] = iVar4;\n  local_20[4] = iVar7;\n  if (iVar8 == 2) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 9;\n    }\n  }\n  else if (iVar8 == 5) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 0xb;\n    }\n  }\n  else if ((iVar8 == 1) && ((*param_2 & 1) != 0)) {\n    iVar8 = 8;\n  }\n  iVar4 = bfd_reloc_type_lookup(DAT_00081984,iVar8);\n  local_20[5] = iVar4;\n  if (iVar4 == 0) {\n    uVar3 = bfd_get_reloc_code_name(iVar8);\n    uVar6 = dcgettext(0,"cannot represent %s relocation in this object file format",5);\n    FUN_0002cef0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar6,uVar3);\n    local_20 = (undefined4 *)0x0;\n  }\n  return local_20;\n}" type_identifier (pointer_declarator "* FUN_0004c8f0(int param_1,byte *param_2)" * (function_declarator "FUN_0004c8f0(int param_1,byte *param_2)" identifier (parameter_list "(int param_1,byte *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  uint *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 *local_20;\n  \n  local_20 = (undefined4 *)xmalloc(0x18);\n  puVar2 = (undefined4 *)xmalloc(4);\n  *local_20 = puVar2;\n  uVar3 = FUN_0003ca60(*(undefined4 *)(param_2 + 0xc));\n  puVar1 = *(uint **)(param_2 + 4);\n  *puVar2 = uVar3;\n  uVar5 = *(uint *)(param_2 + 8);\n  iVar4 = uVar5 + *puVar1;\n  iVar7 = ((int)uVar5 >> 0x1f) + puVar1[1] + (uint)CARRY4(uVar5,*puVar1);\n  local_20[1] = iVar4;\n  local_20[2] = iVar7;\n  if ((*param_2 & 1) == 0) {\n    iVar4 = *(int *)(param_2 + 0x14);\n    iVar7 = *(int *)(param_2 + 0x18);\n  }\n  else if ((*(byte *)(param_1 + 0x19) & 4) == 0) {\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }\n  else {\n    uVar5 = FUN_0004c880(param_2,param_1);\n    iVar4 = *(uint *)(param_2 + 0x14) - uVar5;\n    iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5);\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }\n  iVar8 = *(int *)(param_2 + 0x30);\n  local_20[3] = iVar4;\n  local_20[4] = iVar7;\n  if (iVar8 == 2) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 9;\n    }\n  }\n  else if (iVar8 == 5) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 0xb;\n    }\n  }\n  else if ((iVar8 == 1) && ((*param_2 & 1) != 0)) {\n    iVar8 = 8;\n  }\n  iVar4 = bfd_reloc_type_lookup(DAT_00081984,iVar8);\n  local_20[5] = iVar4;\n  if (iVar4 == 0) {\n    uVar3 = bfd_get_reloc_code_name(iVar8);\n    uVar6 = dcgettext(0,"cannot represent %s relocation in this object file format",5);\n    FUN_0002cef0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar6,uVar3);\n    local_20 = (undefined4 *)0x0;\n  }\n  return local_20;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined4 *local_20;" type_identifier (pointer_declarator "*local_20" * identifier) ;) (expression_statement "local_20 = (undefined4 *)xmalloc(0x18);" (assignment_expression "local_20 = (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 "puVar2 = (undefined4 *)xmalloc(4);" (assignment_expression "puVar2 = (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 "*local_20 = puVar2;" (assignment_expression "*local_20 = puVar2" (pointer_expression "*local_20" * identifier) = identifier) ;) (expression_statement "uVar3 = FUN_0003ca60(*(undefined4 *)(param_2 + 0xc));" (assignment_expression "uVar3 = FUN_0003ca60(*(undefined4 *)(param_2 + 0xc))" identifier = (call_expression "FUN_0003ca60(*(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 "*puVar2 = uVar3;" (assignment_expression "*puVar2 = uVar3" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "uVar5 = *(uint *)(param_2 + 8);" (assignment_expression "uVar5 = *(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 "iVar4 = uVar5 + *puVar1;" (assignment_expression "iVar4 = uVar5 + *puVar1" identifier = (binary_expression "uVar5 + *puVar1" identifier + (pointer_expression "*puVar1" * identifier))) ;) (expression_statement "iVar7 = ((int)uVar5 >> 0x1f) + puVar1[1] + (uint)CARRY4(uVar5,*puVar1);" (assignment_expression "iVar7 = ((int)uVar5 >> 0x1f) + puVar1[1] + (uint)CARRY4(uVar5,*puVar1)" identifier = (binary_expression "((int)uVar5 >> 0x1f) + puVar1[1] + (uint)CARRY4(uVar5,*puVar1)" (binary_expression "((int)uVar5 >> 0x1f) + puVar1[1]" (parenthesized_expression "((int)uVar5 >> 0x1f)" ( (binary_expression "(int)uVar5 >> 0x1f" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) + (subscript_expression "puVar1[1]" identifier [ number_literal ])) + (cast_expression "(uint)CARRY4(uVar5,*puVar1)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar5,*puVar1)" identifier (argument_list "(uVar5,*puVar1)" ( identifier , (pointer_expression "*puVar1" * identifier) )))))) ;) (expression_statement "local_20[1] = iVar4;" (assignment_expression "local_20[1] = iVar4" (subscript_expression "local_20[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_20[2] = iVar7;" (assignment_expression "local_20[2] = iVar7" (subscript_expression "local_20[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((*param_2 & 1) == 0) {\n    iVar4 = *(int *)(param_2 + 0x14);\n    iVar7 = *(int *)(param_2 + 0x18);\n  }\n  else if ((*(byte *)(param_1 + 0x19) & 4) == 0) {\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }\n  else {\n    uVar5 = FUN_0004c880(param_2,param_1);\n    iVar4 = *(uint *)(param_2 + 0x14) - uVar5;\n    iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5);\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }" if (parenthesized_expression "((*param_2 & 1) == 0)" ( (binary_expression "(*param_2 & 1) == 0" (parenthesized_expression "(*param_2 & 1)" ( (binary_expression "*param_2 & 1" (pointer_expression "*param_2" * identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar4 = *(int *)(param_2 + 0x14);\n    iVar7 = *(int *)(param_2 + 0x18);\n  }" { (expression_statement "iVar4 = *(int *)(param_2 + 0x14);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x14)" identifier = (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar7 = *(int *)(param_2 + 0x18);" (assignment_expression "iVar7 = *(int *)(param_2 + 0x18)" identifier = (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) ;) }) (else_clause "else if ((*(byte *)(param_1 + 0x19) & 4) == 0) {\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }\n  else {\n    uVar5 = FUN_0004c880(param_2,param_1);\n    iVar4 = *(uint *)(param_2 + 0x14) - uVar5;\n    iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5);\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }" else (if_statement "if ((*(byte *)(param_1 + 0x19) & 4) == 0) {\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }\n  else {\n    uVar5 = FUN_0004c880(param_2,param_1);\n    iVar4 = *(uint *)(param_2 + 0x14) - uVar5;\n    iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5);\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }" if (parenthesized_expression "((*(byte *)(param_1 + 0x19) & 4) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x19) & 4) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x19) & 4)" ( (binary_expression "*(byte *)(param_1 + 0x19) & 4" (pointer_expression "*(byte *)(param_1 + 0x19)" * (cast_expression "(byte *)(param_1 + 0x19)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x19)" ( (binary_expression "param_1 + 0x19" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }" { (expression_statement "*(int *)(param_2 + 0x14) = iVar4;" (assignment_expression "*(int *)(param_2 + 0x14) = iVar4" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_2 + 0x18) = iVar7;" (assignment_expression "*(int *)(param_2 + 0x18) = iVar7" (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n    uVar5 = FUN_0004c880(param_2,param_1);\n    iVar4 = *(uint *)(param_2 + 0x14) - uVar5;\n    iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5);\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }" else (compound_statement "{\n    uVar5 = FUN_0004c880(param_2,param_1);\n    iVar4 = *(uint *)(param_2 + 0x14) - uVar5;\n    iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5);\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }" { (expression_statement "uVar5 = FUN_0004c880(param_2,param_1);" (assignment_expression "uVar5 = FUN_0004c880(param_2,param_1)" identifier = (call_expression "FUN_0004c880(param_2,param_1)" identifier (argument_list "(param_2,param_1)" ( identifier , identifier )))) ;) (expression_statement "iVar4 = *(uint *)(param_2 + 0x14) - uVar5;" (assignment_expression "iVar4 = *(uint *)(param_2 + 0x14) - uVar5" identifier = (binary_expression "*(uint *)(param_2 + 0x14) - uVar5" (pointer_expression "*(uint *)(param_2 + 0x14)" * (cast_expression "(uint *)(param_2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) - identifier)) ;) (expression_statement "iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5);" (assignment_expression "iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5)" identifier = (binary_expression "(*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5)" (parenthesized_expression "(*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f))" ( (binary_expression "*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)" (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) - (parenthesized_expression "((int)uVar5 >> 0x1f)" ( (binary_expression "(int)uVar5 >> 0x1f" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) )) - (call_expression "(uint)(*(uint *)(param_2 + 0x14) < uVar5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)(param_2 + 0x14) < uVar5)" ( (binary_expression "*(uint *)(param_2 + 0x14) < uVar5" (pointer_expression "*(uint *)(param_2 + 0x14)" * (cast_expression "(uint *)(param_2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) < identifier) ))))) ;) (expression_statement "*(int *)(param_2 + 0x14) = iVar4;" (assignment_expression "*(int *)(param_2 + 0x14) = iVar4" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_2 + 0x18) = iVar7;" (assignment_expression "*(int *)(param_2 + 0x18) = iVar7" (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) = identifier) ;) }))))) (expression_statement "iVar8 = *(int *)(param_2 + 0x30);" (assignment_expression "iVar8 = *(int *)(param_2 + 0x30)" identifier = (pointer_expression "*(int *)(param_2 + 0x30)" * (cast_expression "(int *)(param_2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "local_20[3] = iVar4;" (assignment_expression "local_20[3] = iVar4" (subscript_expression "local_20[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_20[4] = iVar7;" (assignment_expression "local_20[4] = iVar7" (subscript_expression "local_20[4]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar8 == 2) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 9;\n    }\n  }\n  else if (iVar8 == 5) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 0xb;\n    }\n  }\n  else if ((iVar8 == 1) && ((*param_2 & 1) != 0)) {\n    iVar8 = 8;\n  }" if (parenthesized_expression "(iVar8 == 2)" ( (binary_expression "iVar8 == 2" identifier == number_literal) )) (compound_statement "{\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 9;\n    }\n  }" { (if_statement "if ((*param_2 & 1) != 0) {\n      iVar8 = 9;\n    }" if (parenthesized_expression "((*param_2 & 1) != 0)" ( (binary_expression "(*param_2 & 1) != 0" (parenthesized_expression "(*param_2 & 1)" ( (binary_expression "*param_2 & 1" (pointer_expression "*param_2" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n      iVar8 = 9;\n    }" { (expression_statement "iVar8 = 9;" (assignment_expression "iVar8 = 9" identifier = number_literal) ;) })) }) (else_clause "else if (iVar8 == 5) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 0xb;\n    }\n  }\n  else if ((iVar8 == 1) && ((*param_2 & 1) != 0)) {\n    iVar8 = 8;\n  }" else (if_statement "if (iVar8 == 5) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 0xb;\n    }\n  }\n  else if ((iVar8 == 1) && ((*param_2 & 1) != 0)) {\n    iVar8 = 8;\n  }" if (parenthesized_expression "(iVar8 == 5)" ( (binary_expression "iVar8 == 5" identifier == number_literal) )) (compound_statement "{\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 0xb;\n    }\n  }" { (if_statement "if ((*param_2 & 1) != 0) {\n      iVar8 = 0xb;\n    }" if (parenthesized_expression "((*param_2 & 1) != 0)" ( (binary_expression "(*param_2 & 1) != 0" (parenthesized_expression "(*param_2 & 1)" ( (binary_expression "*param_2 & 1" (pointer_expression "*param_2" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n      iVar8 = 0xb;\n    }" { (expression_statement "iVar8 = 0xb;" (assignment_expression "iVar8 = 0xb" identifier = number_literal) ;) })) }) (else_clause "else if ((iVar8 == 1) && ((*param_2 & 1) != 0)) {\n    iVar8 = 8;\n  }" else (if_statement "if ((iVar8 == 1) && ((*param_2 & 1) != 0)) {\n    iVar8 = 8;\n  }" if (parenthesized_expression "((iVar8 == 1) && ((*param_2 & 1) != 0))" ( (binary_expression "(iVar8 == 1) && ((*param_2 & 1) != 0)" (parenthesized_expression "(iVar8 == 1)" ( (binary_expression "iVar8 == 1" identifier == number_literal) )) && (parenthesized_expression "((*param_2 & 1) != 0)" ( (binary_expression "(*param_2 & 1) != 0" (parenthesized_expression "(*param_2 & 1)" ( (binary_expression "*param_2 & 1" (pointer_expression "*param_2" * identifier) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    iVar8 = 8;\n  }" { (expression_statement "iVar8 = 8;" (assignment_expression "iVar8 = 8" identifier = number_literal) ;) })))))) (expression_statement "iVar4 = bfd_reloc_type_lookup(DAT_00081984,iVar8);" (assignment_expression "iVar4 = bfd_reloc_type_lookup(DAT_00081984,iVar8)" identifier = (call_expression "bfd_reloc_type_lookup(DAT_00081984,iVar8)" identifier (argument_list "(DAT_00081984,iVar8)" ( identifier , identifier )))) ;) (expression_statement "local_20[5] = iVar4;" (assignment_expression "local_20[5] = iVar4" (subscript_expression "local_20[5]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar4 == 0) {\n    uVar3 = bfd_get_reloc_code_name(iVar8);\n    uVar6 = dcgettext(0,"cannot represent %s relocation in this object file format",5);\n    FUN_0002cef0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar6,uVar3);\n    local_20 = (undefined4 *)0x0;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar3 = bfd_get_reloc_code_name(iVar8);\n    uVar6 = dcgettext(0,"cannot represent %s relocation in this object file format",5);\n    FUN_0002cef0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar6,uVar3);\n    local_20 = (undefined4 *)0x0;\n  }" { (expression_statement "uVar3 = bfd_get_reloc_code_name(iVar8);" (assignment_expression "uVar3 = bfd_get_reloc_code_name(iVar8)" identifier = (call_expression "bfd_get_reloc_code_name(iVar8)" identifier (argument_list "(iVar8)" ( identifier )))) ;) (expression_statement "uVar6 = dcgettext(0,"cannot represent %s relocation in this object file format",5);" (assignment_expression "uVar6 = dcgettext(0,"cannot represent %s relocation in this object file format",5)" identifier = (call_expression "dcgettext(0,"cannot represent %s relocation in this object file format",5)" identifier (argument_list "(0,"cannot represent %s relocation in this object file format",5)" ( number_literal , (string_literal ""cannot represent %s relocation in this object file format"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_0002cef0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar6,uVar3);" (call_expression "FUN_0002cef0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar6,uVar3)" identifier (argument_list "(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar6,uVar3)" ( (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 "local_20 = (undefined4 *)0x0;" (assignment_expression "local_20 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return local_20;" 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 *section,fixS *fixp)\n\n{\n  fragS *pfVar1;\n  uint uVar2;\n  bfd_symbol **ppbVar3;\n  asymbol *paVar4;\n  int iVar5;\n  reloc_howto_type *prVar6;\n  uint uVar7;\n  undefined4 uVar8;\n  char *format;\n  int iVar9;\n  bfd_reloc_code_real_type bVar10;\n  arelent *local_20;\n  \n  local_20 = (arelent *)xmalloc(0x18);\n  ppbVar3 = (bfd_symbol **)xmalloc(4);\n  local_20->sym_ptr_ptr = ppbVar3;\n  paVar4 = symbol_get_bfdsym(fixp->fx_addsy);\n  pfVar1 = fixp->fx_frag;\n  *ppbVar3 = paVar4;\n  uVar2 = fixp->fx_where;\n  iVar5 = uVar2 + (int)pfVar1->fr_address;\n  iVar9 = ((int)uVar2 >> 0x1f) + *(int *)((int)&pfVar1->fr_address + 4) +\n          (uint)CARRY4(uVar2,(uint)pfVar1->fr_address);\n  *(int *)&local_20->address = iVar5;\n  *(int *)((int)&local_20->address + 4) = iVar9;\n  if ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) == (undefined1  [76])0x0)\n  {\n    iVar5 = (int)fixp->fx_offset;\n    iVar9 = *(int *)((int)&fixp->fx_offset + 4);\n  }\n  else if ((section->field_0x19 & 4) == 0) {\n    *(int *)&fixp->fx_offset = iVar5;\n    *(int *)((int)&fixp->fx_offset + 4) = iVar9;\n  }\n  else {\n    uVar7 = md_pcrel_from_section(fixp,section);\n    uVar2 = (uint)fixp->fx_offset;\n    iVar5 = uVar2 - uVar7;\n    iVar9 = (*(int *)((int)&fixp->fx_offset + 4) - ((int)uVar7 >> 0x1f)) - (uint)(uVar2 < uVar7);\n    *(int *)&fixp->fx_offset = iVar5;\n    *(int *)((int)&fixp->fx_offset + 4) = iVar9;\n  }\n  bVar10 = fixp->fx_r_type;\n  *(int *)&local_20->addend = iVar5;\n  *(int *)((int)&local_20->addend + 4) = iVar9;\n  if (bVar10 == BFD_RELOC_32) {\n    if ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) != (undefined1  [76])0x0\n       ) {\n      bVar10 = BFD_RELOC_32_PCREL;\n    }\n  }\n  else if (bVar10 == BFD_RELOC_16) {\n    if ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) != (undefined1  [76])0x0\n       ) {\n      bVar10 = BFD_RELOC_16_PCREL;\n    }\n  }\n  else if ((bVar10 == BFD_RELOC_64) &&\n          ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) !=\n           (undefined1  [76])0x0)) {\n    bVar10 = BFD_RELOC_64_PCREL;\n  }\n  prVar6 = (reloc_howto_type *)bfd_reloc_type_lookup(stdoutput,bVar10);\n  local_20->howto = prVar6;\n  if (prVar6 == (reloc_howto_type *)0x0) {\n    uVar8 = bfd_get_reloc_code_name(bVar10);\n    format = (char *)dcgettext(0,"cannot represent %s relocation in this object file format",5);\n    as_bad_where(fixp->fx_file,fixp->fx_line,format,uVar8);\n    local_20 = (arelent *)0x0;\n  }\n  return local_20;\n}\n\n" comment comment (function_definition "arelent * tc_gen_reloc(asection *section,fixS *fixp)\n\n{\n  fragS *pfVar1;\n  uint uVar2;\n  bfd_symbol **ppbVar3;\n  asymbol *paVar4;\n  int iVar5;\n  reloc_howto_type *prVar6;\n  uint uVar7;\n  undefined4 uVar8;\n  char *format;\n  int iVar9;\n  bfd_reloc_code_real_type bVar10;\n  arelent *local_20;\n  \n  local_20 = (arelent *)xmalloc(0x18);\n  ppbVar3 = (bfd_symbol **)xmalloc(4);\n  local_20->sym_ptr_ptr = ppbVar3;\n  paVar4 = symbol_get_bfdsym(fixp->fx_addsy);\n  pfVar1 = fixp->fx_frag;\n  *ppbVar3 = paVar4;\n  uVar2 = fixp->fx_where;\n  iVar5 = uVar2 + (int)pfVar1->fr_address;\n  iVar9 = ((int)uVar2 >> 0x1f) + *(int *)((int)&pfVar1->fr_address + 4) +\n          (uint)CARRY4(uVar2,(uint)pfVar1->fr_address);\n  *(int *)&local_20->address = iVar5;\n  *(int *)((int)&local_20->address + 4) = iVar9;\n  if ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) == (undefined1  [76])0x0)\n  {\n    iVar5 = (int)fixp->fx_offset;\n    iVar9 = *(int *)((int)&fixp->fx_offset + 4);\n  }\n  else if ((section->field_0x19 & 4) == 0) {\n    *(int *)&fixp->fx_offset = iVar5;\n    *(int *)((int)&fixp->fx_offset + 4) = iVar9;\n  }\n  else {\n    uVar7 = md_pcrel_from_section(fixp,section);\n    uVar2 = (uint)fixp->fx_offset;\n    iVar5 = uVar2 - uVar7;\n    iVar9 = (*(int *)((int)&fixp->fx_offset + 4) - ((int)uVar7 >> 0x1f)) - (uint)(uVar2 < uVar7);\n    *(int *)&fixp->fx_offset = iVar5;\n    *(int *)((int)&fixp->fx_offset + 4) = iVar9;\n  }\n  bVar10 = fixp->fx_r_type;\n  *(int *)&local_20->addend = iVar5;\n  *(int *)((int)&local_20->addend + 4) = iVar9;\n  if (bVar10 == BFD_RELOC_32) {\n    if ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) != (undefined1  [76])0x0\n       ) {\n      bVar10 = BFD_RELOC_32_PCREL;\n    }\n  }\n  else if (bVar10 == BFD_RELOC_16) {\n    if ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) != (undefined1  [76])0x0\n       ) {\n      bVar10 = BFD_RELOC_16_PCREL;\n    }\n  }\n  else if ((bVar10 == BFD_RELOC_64) &&\n          ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) !=\n           (undefined1  [76])0x0)) {\n    bVar10 = BFD_RELOC_64_PCREL;\n  }\n  prVar6 = (reloc_howto_type *)bfd_reloc_type_lookup(stdoutput,bVar10);\n  local_20->howto = prVar6;\n  if (prVar6 == (reloc_howto_type *)0x0) {\n    uVar8 = bfd_get_reloc_code_name(bVar10);\n    format = (char *)dcgettext(0,"cannot represent %s relocation in this object file format",5);\n    as_bad_where(fixp->fx_file,fixp->fx_line,format,uVar8);\n    local_20 = (arelent *)0x0;\n  }\n  return local_20;\n}" type_identifier (pointer_declarator "* tc_gen_reloc(asection *section,fixS *fixp)" * (function_declarator "tc_gen_reloc(asection *section,fixS *fixp)" identifier (parameter_list "(asection *section,fixS *fixp)" ( (parameter_declaration "asection *section" type_identifier (pointer_declarator "*section" * identifier)) , (parameter_declaration "fixS *fixp" type_identifier (pointer_declarator "*fixp" * identifier)) )))) (compound_statement "{\n  fragS *pfVar1;\n  uint uVar2;\n  bfd_symbol **ppbVar3;\n  asymbol *paVar4;\n  int iVar5;\n  reloc_howto_type *prVar6;\n  uint uVar7;\n  undefined4 uVar8;\n  char *format;\n  int iVar9;\n  bfd_reloc_code_real_type bVar10;\n  arelent *local_20;\n  \n  local_20 = (arelent *)xmalloc(0x18);\n  ppbVar3 = (bfd_symbol **)xmalloc(4);\n  local_20->sym_ptr_ptr = ppbVar3;\n  paVar4 = symbol_get_bfdsym(fixp->fx_addsy);\n  pfVar1 = fixp->fx_frag;\n  *ppbVar3 = paVar4;\n  uVar2 = fixp->fx_where;\n  iVar5 = uVar2 + (int)pfVar1->fr_address;\n  iVar9 = ((int)uVar2 >> 0x1f) + *(int *)((int)&pfVar1->fr_address + 4) +\n          (uint)CARRY4(uVar2,(uint)pfVar1->fr_address);\n  *(int *)&local_20->address = iVar5;\n  *(int *)((int)&local_20->address + 4) = iVar9;\n  if ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) == (undefined1  [76])0x0)\n  {\n    iVar5 = (int)fixp->fx_offset;\n    iVar9 = *(int *)((int)&fixp->fx_offset + 4);\n  }\n  else if ((section->field_0x19 & 4) == 0) {\n    *(int *)&fixp->fx_offset = iVar5;\n    *(int *)((int)&fixp->fx_offset + 4) = iVar9;\n  }\n  else {\n    uVar7 = md_pcrel_from_section(fixp,section);\n    uVar2 = (uint)fixp->fx_offset;\n    iVar5 = uVar2 - uVar7;\n    iVar9 = (*(int *)((int)&fixp->fx_offset + 4) - ((int)uVar7 >> 0x1f)) - (uint)(uVar2 < uVar7);\n    *(int *)&fixp->fx_offset = iVar5;\n    *(int *)((int)&fixp->fx_offset + 4) = iVar9;\n  }\n  bVar10 = fixp->fx_r_type;\n  *(int *)&local_20->addend = iVar5;\n  *(int *)((int)&local_20->addend + 4) = iVar9;\n  if (bVar10 == BFD_RELOC_32) {\n    if ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) != (undefined1  [76])0x0\n       ) {\n      bVar10 = BFD_RELOC_32_PCREL;\n    }\n  }\n  else if (bVar10 == BFD_RELOC_16) {\n    if ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) != (undefined1  [76])0x0\n       ) {\n      bVar10 = BFD_RELOC_16_PCREL;\n    }\n  }\n  else if ((bVar10 == BFD_RELOC_64) &&\n          ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) !=\n           (undefined1  [76])0x0)) {\n    bVar10 = BFD_RELOC_64_PCREL;\n  }\n  prVar6 = (reloc_howto_type *)bfd_reloc_type_lookup(stdoutput,bVar10);\n  local_20->howto = prVar6;\n  if (prVar6 == (reloc_howto_type *)0x0) {\n    uVar8 = bfd_get_reloc_code_name(bVar10);\n    format = (char *)dcgettext(0,"cannot represent %s relocation in this object file format",5);\n    as_bad_where(fixp->fx_file,fixp->fx_line,format,uVar8);\n    local_20 = (arelent *)0x0;\n  }\n  return local_20;\n}" { (declaration "fragS *pfVar1;" type_identifier (pointer_declarator "*pfVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "bfd_symbol **ppbVar3;" type_identifier (pointer_declarator "**ppbVar3" * (pointer_declarator "*ppbVar3" * identifier)) ;) (declaration "asymbol *paVar4;" type_identifier (pointer_declarator "*paVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "reloc_howto_type *prVar6;" type_identifier (pointer_declarator "*prVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "bfd_reloc_code_real_type bVar10;" type_identifier identifier ;) (declaration "arelent *local_20;" type_identifier (pointer_declarator "*local_20" * identifier) ;) (expression_statement "local_20 = (arelent *)xmalloc(0x18);" (assignment_expression "local_20 = (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 "ppbVar3 = (bfd_symbol **)xmalloc(4);" (assignment_expression "ppbVar3 = (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 "local_20->sym_ptr_ptr = ppbVar3;" (assignment_expression "local_20->sym_ptr_ptr = ppbVar3" (field_expression "local_20->sym_ptr_ptr" identifier -> field_identifier) = identifier) ;) (expression_statement "paVar4 = symbol_get_bfdsym(fixp->fx_addsy);" (assignment_expression "paVar4 = 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 "*ppbVar3 = paVar4;" (assignment_expression "*ppbVar3 = paVar4" (pointer_expression "*ppbVar3" * 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 "iVar5 = uVar2 + (int)pfVar1->fr_address;" (assignment_expression "iVar5 = uVar2 + (int)pfVar1->fr_address" 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 "iVar9 = ((int)uVar2 >> 0x1f) + *(int *)((int)&pfVar1->fr_address + 4) +\n          (uint)CARRY4(uVar2,(uint)pfVar1->fr_address);" (assignment_expression "iVar9 = ((int)uVar2 >> 0x1f) + *(int *)((int)&pfVar1->fr_address + 4) +\n          (uint)CARRY4(uVar2,(uint)pfVar1->fr_address)" identifier = (binary_expression "((int)uVar2 >> 0x1f) + *(int *)((int)&pfVar1->fr_address + 4) +\n          (uint)CARRY4(uVar2,(uint)pfVar1->fr_address)" (binary_expression "((int)uVar2 >> 0x1f) + *(int *)((int)&pfVar1->fr_address + 4)" (parenthesized_expression "((int)uVar2 >> 0x1f)" ( (binary_expression "(int)uVar2 >> 0x1f" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) + (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) ))))) + (cast_expression "(uint)CARRY4(uVar2,(uint)pfVar1->fr_address)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar2,(uint)pfVar1->fr_address)" identifier (argument_list "(uVar2,(uint)pfVar1->fr_address)" ( identifier , (cast_expression "(uint)pfVar1->fr_address" ( (type_descriptor "uint" type_identifier) ) (field_expression "pfVar1->fr_address" identifier -> field_identifier)) )))))) ;) (expression_statement "*(int *)&local_20->address = iVar5;" (assignment_expression "*(int *)&local_20->address = iVar5" (pointer_expression "*(int *)&local_20->address" * (cast_expression "(int *)&local_20->address" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_20->address" & (field_expression "local_20->address" identifier -> field_identifier)))) = identifier) ;) (expression_statement "*(int *)((int)&local_20->address + 4) = iVar9;" (assignment_expression "*(int *)((int)&local_20->address + 4) = iVar9" (pointer_expression "*(int *)((int)&local_20->address + 4)" * (cast_expression "(int *)((int)&local_20->address + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&local_20->address + 4)" ( (binary_expression "(int)&local_20->address + 4" (cast_expression "(int)&local_20->address" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&local_20->address" & (field_expression "local_20->address" identifier -> field_identifier))) + number_literal) )))) = identifier) ;) (if_statement "if ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) == (undefined1  [76])0x0)\n  {\n    iVar5 = (int)fixp->fx_offset;\n    iVar9 = *(int *)((int)&fixp->fx_offset + 4);\n  }\n  else if ((section->field_0x19 & 4) == 0) {\n    *(int *)&fixp->fx_offset = iVar5;\n    *(int *)((int)&fixp->fx_offset + 4) = iVar9;\n  }\n  else {\n    uVar7 = md_pcrel_from_section(fixp,section);\n    uVar2 = (uint)fixp->fx_offset;\n    iVar5 = uVar2 - uVar7;\n    iVar9 = (*(int *)((int)&fixp->fx_offset + 4) - ((int)uVar7 >> 0x1f)) - (uint)(uVar2 < uVar7);\n    *(int *)&fixp->fx_offset = iVar5;\n    *(int *)((int)&fixp->fx_offset + 4) = iVar9;\n  }" if (parenthesized_expression "((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) == (undefined1  [76])0x0)" ( (binary_expression "(undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) == (undefined1  [76])0x0" (call_expression "(undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1)" (parenthesized_expression "(undefined1  [76])" ( (subscript_expression "undefined1  [76]" identifier [ number_literal ]) )) (argument_list "((undefined1  [76])*fixp & (undefined1  [76])0x1)" ( (binary_expression "(undefined1  [76])*fixp & (undefined1  [76])0x1" (binary_expression "(undefined1  [76])*fixp" (parenthesized_expression "(undefined1  [76])" ( (subscript_expression "undefined1  [76]" identifier [ number_literal ]) )) * identifier) & (cast_expression "(undefined1  [76])0x1" ( (type_descriptor "undefined1  [76]" type_identifier (abstract_array_declarator "[76]" [ number_literal ])) ) number_literal)) ))) == (cast_expression "(undefined1  [76])0x0" ( (type_descriptor "undefined1  [76]" type_identifier (abstract_array_declarator "[76]" [ number_literal ])) ) number_literal)) )) (compound_statement "{\n    iVar5 = (int)fixp->fx_offset;\n    iVar9 = *(int *)((int)&fixp->fx_offset + 4);\n  }" { (expression_statement "iVar5 = (int)fixp->fx_offset;" (assignment_expression "iVar5 = (int)fixp->fx_offset" identifier = (cast_expression "(int)fixp->fx_offset" ( (type_descriptor "int" primitive_type) ) (field_expression "fixp->fx_offset" identifier -> field_identifier))) ;) (expression_statement "iVar9 = *(int *)((int)&fixp->fx_offset + 4);" (assignment_expression "iVar9 = *(int *)((int)&fixp->fx_offset + 4)" identifier = (pointer_expression "*(int *)((int)&fixp->fx_offset + 4)" * (cast_expression "(int *)((int)&fixp->fx_offset + 4)" ( (type_descriptor "int *" primitive_type (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) ))))) ;) }) (else_clause "else if ((section->field_0x19 & 4) == 0) {\n    *(int *)&fixp->fx_offset = iVar5;\n    *(int *)((int)&fixp->fx_offset + 4) = iVar9;\n  }\n  else {\n    uVar7 = md_pcrel_from_section(fixp,section);\n    uVar2 = (uint)fixp->fx_offset;\n    iVar5 = uVar2 - uVar7;\n    iVar9 = (*(int *)((int)&fixp->fx_offset + 4) - ((int)uVar7 >> 0x1f)) - (uint)(uVar2 < uVar7);\n    *(int *)&fixp->fx_offset = iVar5;\n    *(int *)((int)&fixp->fx_offset + 4) = iVar9;\n  }" else (if_statement "if ((section->field_0x19 & 4) == 0) {\n    *(int *)&fixp->fx_offset = iVar5;\n    *(int *)((int)&fixp->fx_offset + 4) = iVar9;\n  }\n  else {\n    uVar7 = md_pcrel_from_section(fixp,section);\n    uVar2 = (uint)fixp->fx_offset;\n    iVar5 = uVar2 - uVar7;\n    iVar9 = (*(int *)((int)&fixp->fx_offset + 4) - ((int)uVar7 >> 0x1f)) - (uint)(uVar2 < uVar7);\n    *(int *)&fixp->fx_offset = iVar5;\n    *(int *)((int)&fixp->fx_offset + 4) = iVar9;\n  }" if (parenthesized_expression "((section->field_0x19 & 4) == 0)" ( (binary_expression "(section->field_0x19 & 4) == 0" (parenthesized_expression "(section->field_0x19 & 4)" ( (binary_expression "section->field_0x19 & 4" (field_expression "section->field_0x19" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    *(int *)&fixp->fx_offset = iVar5;\n    *(int *)((int)&fixp->fx_offset + 4) = iVar9;\n  }" { (expression_statement "*(int *)&fixp->fx_offset = iVar5;" (assignment_expression "*(int *)&fixp->fx_offset = iVar5" (pointer_expression "*(int *)&fixp->fx_offset" * (cast_expression "(int *)&fixp->fx_offset" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&fixp->fx_offset" & (field_expression "fixp->fx_offset" identifier -> field_identifier)))) = identifier) ;) (expression_statement "*(int *)((int)&fixp->fx_offset + 4) = iVar9;" (assignment_expression "*(int *)((int)&fixp->fx_offset + 4) = iVar9" (pointer_expression "*(int *)((int)&fixp->fx_offset + 4)" * (cast_expression "(int *)((int)&fixp->fx_offset + 4)" ( (type_descriptor "int *" primitive_type (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) )))) = identifier) ;) }) (else_clause "else {\n    uVar7 = md_pcrel_from_section(fixp,section);\n    uVar2 = (uint)fixp->fx_offset;\n    iVar5 = uVar2 - uVar7;\n    iVar9 = (*(int *)((int)&fixp->fx_offset + 4) - ((int)uVar7 >> 0x1f)) - (uint)(uVar2 < uVar7);\n    *(int *)&fixp->fx_offset = iVar5;\n    *(int *)((int)&fixp->fx_offset + 4) = iVar9;\n  }" else (compound_statement "{\n    uVar7 = md_pcrel_from_section(fixp,section);\n    uVar2 = (uint)fixp->fx_offset;\n    iVar5 = uVar2 - uVar7;\n    iVar9 = (*(int *)((int)&fixp->fx_offset + 4) - ((int)uVar7 >> 0x1f)) - (uint)(uVar2 < uVar7);\n    *(int *)&fixp->fx_offset = iVar5;\n    *(int *)((int)&fixp->fx_offset + 4) = iVar9;\n  }" { (expression_statement "uVar7 = md_pcrel_from_section(fixp,section);" (assignment_expression "uVar7 = md_pcrel_from_section(fixp,section)" identifier = (call_expression "md_pcrel_from_section(fixp,section)" identifier (argument_list "(fixp,section)" ( identifier , identifier )))) ;) (expression_statement "uVar2 = (uint)fixp->fx_offset;" (assignment_expression "uVar2 = (uint)fixp->fx_offset" identifier = (cast_expression "(uint)fixp->fx_offset" ( (type_descriptor "uint" type_identifier) ) (field_expression "fixp->fx_offset" identifier -> field_identifier))) ;) (expression_statement "iVar5 = uVar2 - uVar7;" (assignment_expression "iVar5 = uVar2 - uVar7" identifier = (binary_expression "uVar2 - uVar7" identifier - identifier)) ;) (expression_statement "iVar9 = (*(int *)((int)&fixp->fx_offset + 4) - ((int)uVar7 >> 0x1f)) - (uint)(uVar2 < uVar7);" (assignment_expression "iVar9 = (*(int *)((int)&fixp->fx_offset + 4) - ((int)uVar7 >> 0x1f)) - (uint)(uVar2 < uVar7)" identifier = (binary_expression "(*(int *)((int)&fixp->fx_offset + 4) - ((int)uVar7 >> 0x1f)) - (uint)(uVar2 < uVar7)" (parenthesized_expression "(*(int *)((int)&fixp->fx_offset + 4) - ((int)uVar7 >> 0x1f))" ( (binary_expression "*(int *)((int)&fixp->fx_offset + 4) - ((int)uVar7 >> 0x1f)" (pointer_expression "*(int *)((int)&fixp->fx_offset + 4)" * (cast_expression "(int *)((int)&fixp->fx_offset + 4)" ( (type_descriptor "int *" primitive_type (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) )))) - (parenthesized_expression "((int)uVar7 >> 0x1f)" ( (binary_expression "(int)uVar7 >> 0x1f" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) )) - (call_expression "(uint)(uVar2 < uVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar2 < uVar7)" ( (binary_expression "uVar2 < uVar7" identifier < identifier) ))))) ;) (expression_statement "*(int *)&fixp->fx_offset = iVar5;" (assignment_expression "*(int *)&fixp->fx_offset = iVar5" (pointer_expression "*(int *)&fixp->fx_offset" * (cast_expression "(int *)&fixp->fx_offset" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&fixp->fx_offset" & (field_expression "fixp->fx_offset" identifier -> field_identifier)))) = identifier) ;) (expression_statement "*(int *)((int)&fixp->fx_offset + 4) = iVar9;" (assignment_expression "*(int *)((int)&fixp->fx_offset + 4) = iVar9" (pointer_expression "*(int *)((int)&fixp->fx_offset + 4)" * (cast_expression "(int *)((int)&fixp->fx_offset + 4)" ( (type_descriptor "int *" primitive_type (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) )))) = identifier) ;) }))))) (expression_statement "bVar10 = fixp->fx_r_type;" (assignment_expression "bVar10 = fixp->fx_r_type" identifier = (field_expression "fixp->fx_r_type" identifier -> field_identifier)) ;) (expression_statement "*(int *)&local_20->addend = iVar5;" (assignment_expression "*(int *)&local_20->addend = iVar5" (pointer_expression "*(int *)&local_20->addend" * (cast_expression "(int *)&local_20->addend" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_20->addend" & (field_expression "local_20->addend" identifier -> field_identifier)))) = identifier) ;) (expression_statement "*(int *)((int)&local_20->addend + 4) = iVar9;" (assignment_expression "*(int *)((int)&local_20->addend + 4) = iVar9" (pointer_expression "*(int *)((int)&local_20->addend + 4)" * (cast_expression "(int *)((int)&local_20->addend + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&local_20->addend + 4)" ( (binary_expression "(int)&local_20->addend + 4" (cast_expression "(int)&local_20->addend" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&local_20->addend" & (field_expression "local_20->addend" identifier -> field_identifier))) + number_literal) )))) = identifier) ;) (if_statement "if (bVar10 == BFD_RELOC_32) {\n    if ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) != (undefined1  [76])0x0\n       ) {\n      bVar10 = BFD_RELOC_32_PCREL;\n    }\n  }\n  else if (bVar10 == BFD_RELOC_16) {\n    if ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) != (undefined1  [76])0x0\n       ) {\n      bVar10 = BFD_RELOC_16_PCREL;\n    }\n  }\n  else if ((bVar10 == BFD_RELOC_64) &&\n          ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) !=\n           (undefined1  [76])0x0)) {\n    bVar10 = BFD_RELOC_64_PCREL;\n  }" if (parenthesized_expression "(bVar10 == BFD_RELOC_32)" ( (binary_expression "bVar10 == BFD_RELOC_32" identifier == identifier) )) (compound_statement "{\n    if ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) != (undefined1  [76])0x0\n       ) {\n      bVar10 = BFD_RELOC_32_PCREL;\n    }\n  }" { (if_statement "if ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) != (undefined1  [76])0x0\n       ) {\n      bVar10 = BFD_RELOC_32_PCREL;\n    }" if (parenthesized_expression "((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) != (undefined1  [76])0x0\n       )" ( (binary_expression "(undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) != (undefined1  [76])0x0" (call_expression "(undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1)" (parenthesized_expression "(undefined1  [76])" ( (subscript_expression "undefined1  [76]" identifier [ number_literal ]) )) (argument_list "((undefined1  [76])*fixp & (undefined1  [76])0x1)" ( (binary_expression "(undefined1  [76])*fixp & (undefined1  [76])0x1" (binary_expression "(undefined1  [76])*fixp" (parenthesized_expression "(undefined1  [76])" ( (subscript_expression "undefined1  [76]" identifier [ number_literal ]) )) * identifier) & (cast_expression "(undefined1  [76])0x1" ( (type_descriptor "undefined1  [76]" type_identifier (abstract_array_declarator "[76]" [ number_literal ])) ) number_literal)) ))) != (cast_expression "(undefined1  [76])0x0" ( (type_descriptor "undefined1  [76]" type_identifier (abstract_array_declarator "[76]" [ number_literal ])) ) number_literal)) )) (compound_statement "{\n      bVar10 = BFD_RELOC_32_PCREL;\n    }" { (expression_statement "bVar10 = BFD_RELOC_32_PCREL;" (assignment_expression "bVar10 = BFD_RELOC_32_PCREL" identifier = identifier) ;) })) }) (else_clause "else if (bVar10 == BFD_RELOC_16) {\n    if ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) != (undefined1  [76])0x0\n       ) {\n      bVar10 = BFD_RELOC_16_PCREL;\n    }\n  }\n  else if ((bVar10 == BFD_RELOC_64) &&\n          ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) !=\n           (undefined1  [76])0x0)) {\n    bVar10 = BFD_RELOC_64_PCREL;\n  }" else (if_statement "if (bVar10 == BFD_RELOC_16) {\n    if ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) != (undefined1  [76])0x0\n       ) {\n      bVar10 = BFD_RELOC_16_PCREL;\n    }\n  }\n  else if ((bVar10 == BFD_RELOC_64) &&\n          ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) !=\n           (undefined1  [76])0x0)) {\n    bVar10 = BFD_RELOC_64_PCREL;\n  }" if (parenthesized_expression "(bVar10 == BFD_RELOC_16)" ( (binary_expression "bVar10 == BFD_RELOC_16" identifier == identifier) )) (compound_statement "{\n    if ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) != (undefined1  [76])0x0\n       ) {\n      bVar10 = BFD_RELOC_16_PCREL;\n    }\n  }" { (if_statement "if ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) != (undefined1  [76])0x0\n       ) {\n      bVar10 = BFD_RELOC_16_PCREL;\n    }" if (parenthesized_expression "((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) != (undefined1  [76])0x0\n       )" ( (binary_expression "(undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) != (undefined1  [76])0x0" (call_expression "(undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1)" (parenthesized_expression "(undefined1  [76])" ( (subscript_expression "undefined1  [76]" identifier [ number_literal ]) )) (argument_list "((undefined1  [76])*fixp & (undefined1  [76])0x1)" ( (binary_expression "(undefined1  [76])*fixp & (undefined1  [76])0x1" (binary_expression "(undefined1  [76])*fixp" (parenthesized_expression "(undefined1  [76])" ( (subscript_expression "undefined1  [76]" identifier [ number_literal ]) )) * identifier) & (cast_expression "(undefined1  [76])0x1" ( (type_descriptor "undefined1  [76]" type_identifier (abstract_array_declarator "[76]" [ number_literal ])) ) number_literal)) ))) != (cast_expression "(undefined1  [76])0x0" ( (type_descriptor "undefined1  [76]" type_identifier (abstract_array_declarator "[76]" [ number_literal ])) ) number_literal)) )) (compound_statement "{\n      bVar10 = BFD_RELOC_16_PCREL;\n    }" { (expression_statement "bVar10 = BFD_RELOC_16_PCREL;" (assignment_expression "bVar10 = BFD_RELOC_16_PCREL" identifier = identifier) ;) })) }) (else_clause "else if ((bVar10 == BFD_RELOC_64) &&\n          ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) !=\n           (undefined1  [76])0x0)) {\n    bVar10 = BFD_RELOC_64_PCREL;\n  }" else (if_statement "if ((bVar10 == BFD_RELOC_64) &&\n          ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) !=\n           (undefined1  [76])0x0)) {\n    bVar10 = BFD_RELOC_64_PCREL;\n  }" if (parenthesized_expression "((bVar10 == BFD_RELOC_64) &&\n          ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) !=\n           (undefined1  [76])0x0))" ( (binary_expression "(bVar10 == BFD_RELOC_64) &&\n          ((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) !=\n           (undefined1  [76])0x0)" (parenthesized_expression "(bVar10 == BFD_RELOC_64)" ( (binary_expression "bVar10 == BFD_RELOC_64" identifier == identifier) )) && (parenthesized_expression "((undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) !=\n           (undefined1  [76])0x0)" ( (binary_expression "(undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1) !=\n           (undefined1  [76])0x0" (call_expression "(undefined1  [76])((undefined1  [76])*fixp & (undefined1  [76])0x1)" (parenthesized_expression "(undefined1  [76])" ( (subscript_expression "undefined1  [76]" identifier [ number_literal ]) )) (argument_list "((undefined1  [76])*fixp & (undefined1  [76])0x1)" ( (binary_expression "(undefined1  [76])*fixp & (undefined1  [76])0x1" (binary_expression "(undefined1  [76])*fixp" (parenthesized_expression "(undefined1  [76])" ( (subscript_expression "undefined1  [76]" identifier [ number_literal ]) )) * identifier) & (cast_expression "(undefined1  [76])0x1" ( (type_descriptor "undefined1  [76]" type_identifier (abstract_array_declarator "[76]" [ number_literal ])) ) number_literal)) ))) != (cast_expression "(undefined1  [76])0x0" ( (type_descriptor "undefined1  [76]" type_identifier (abstract_array_declarator "[76]" [ number_literal ])) ) number_literal)) ))) )) (compound_statement "{\n    bVar10 = BFD_RELOC_64_PCREL;\n  }" { (expression_statement "bVar10 = BFD_RELOC_64_PCREL;" (assignment_expression "bVar10 = BFD_RELOC_64_PCREL" identifier = identifier) ;) })))))) (expression_statement "prVar6 = (reloc_howto_type *)bfd_reloc_type_lookup(stdoutput,bVar10);" (assignment_expression "prVar6 = (reloc_howto_type *)bfd_reloc_type_lookup(stdoutput,bVar10)" identifier = (cast_expression "(reloc_howto_type *)bfd_reloc_type_lookup(stdoutput,bVar10)" ( (type_descriptor "reloc_howto_type *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_reloc_type_lookup(stdoutput,bVar10)" identifier (argument_list "(stdoutput,bVar10)" ( identifier , identifier ))))) ;) (expression_statement "local_20->howto = prVar6;" (assignment_expression "local_20->howto = prVar6" (field_expression "local_20->howto" identifier -> field_identifier) = identifier) ;) (if_statement "if (prVar6 == (reloc_howto_type *)0x0) {\n    uVar8 = bfd_get_reloc_code_name(bVar10);\n    format = (char *)dcgettext(0,"cannot represent %s relocation in this object file format",5);\n    as_bad_where(fixp->fx_file,fixp->fx_line,format,uVar8);\n    local_20 = (arelent *)0x0;\n  }" if (parenthesized_expression "(prVar6 == (reloc_howto_type *)0x0)" ( (binary_expression "prVar6 == (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    uVar8 = bfd_get_reloc_code_name(bVar10);\n    format = (char *)dcgettext(0,"cannot represent %s relocation in this object file format",5);\n    as_bad_where(fixp->fx_file,fixp->fx_line,format,uVar8);\n    local_20 = (arelent *)0x0;\n  }" { (expression_statement "uVar8 = bfd_get_reloc_code_name(bVar10);" (assignment_expression "uVar8 = bfd_get_reloc_code_name(bVar10)" identifier = (call_expression "bfd_get_reloc_code_name(bVar10)" identifier (argument_list "(bVar10)" ( identifier )))) ;) (expression_statement "format = (char *)dcgettext(0,"cannot represent %s relocation in this object file format",5);" (assignment_expression "format = (char *)dcgettext(0,"cannot represent %s relocation in this object file format",5)" identifier = (cast_expression "(char *)dcgettext(0,"cannot represent %s relocation in this object file format",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"cannot represent %s relocation in this object file format",5)" identifier (argument_list "(0,"cannot represent %s relocation in this object file format",5)" ( number_literal , (string_literal ""cannot represent %s relocation in this object file format"" " string_content ") , number_literal ))))) ;) (expression_statement "as_bad_where(fixp->fx_file,fixp->fx_line,format,uVar8);" (call_expression "as_bad_where(fixp->fx_file,fixp->fx_line,format,uVar8)" identifier (argument_list "(fixp->fx_file,fixp->fx_line,format,uVar8)" ( (field_expression "fixp->fx_file" identifier -> field_identifier) , (field_expression "fixp->fx_line" identifier -> field_identifier) , identifier , identifier ))) ;) (expression_statement "local_20 = (arelent *)0x0;" (assignment_expression "local_20 = (arelent *)0x0" identifier = (cast_expression "(arelent *)0x0" ( (type_descriptor "arelent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return local_20;" return identifier ;) })))
(translation_unit "undefined4 * FUN_0004c8f0(int param_1,byte *param_2)\n\n{\n  uint *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 *local_20;\n  \n  local_20 = (undefined4 *)xmalloc(0x18);\n  puVar2 = (undefined4 *)xmalloc(4);\n  *local_20 = puVar2;\n  uVar3 = FUN_0003ca60(*(undefined4 *)(param_2 + 0xc));\n  puVar1 = *(uint **)(param_2 + 4);\n  *puVar2 = uVar3;\n  uVar5 = *(uint *)(param_2 + 8);\n  iVar4 = uVar5 + *puVar1;\n  iVar7 = ((int)uVar5 >> 0x1f) + puVar1[1] + (uint)CARRY4(uVar5,*puVar1);\n  local_20[1] = iVar4;\n  local_20[2] = iVar7;\n  if ((*param_2 & 1) == 0) {\n    iVar4 = *(int *)(param_2 + 0x14);\n    iVar7 = *(int *)(param_2 + 0x18);\n  }\n  else if ((*(byte *)(param_1 + 0x19) & 4) == 0) {\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }\n  else {\n    uVar5 = FUN_0004c880(param_2,param_1);\n    iVar4 = *(uint *)(param_2 + 0x14) - uVar5;\n    iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5);\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }\n  iVar8 = *(int *)(param_2 + 0x30);\n  local_20[3] = iVar4;\n  local_20[4] = iVar7;\n  if (iVar8 == 2) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 9;\n    }\n  }\n  else if (iVar8 == 5) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 0xb;\n    }\n  }\n  else if ((iVar8 == 1) && ((*param_2 & 1) != 0)) {\n    iVar8 = 8;\n  }\n  iVar4 = bfd_reloc_type_lookup(DAT_00081984,iVar8);\n  local_20[5] = iVar4;\n  if (iVar4 == 0) {\n    uVar3 = bfd_get_reloc_code_name(iVar8);\n    uVar6 = dcgettext(0,"cannot represent %s relocation in this object file format",5);\n    FUN_0002cef0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar6,uVar3);\n    local_20 = (undefined4 *)0x0;\n  }\n  return local_20;\n}\n\n" (function_definition "undefined4 * FUN_0004c8f0(int param_1,byte *param_2)\n\n{\n  uint *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 *local_20;\n  \n  local_20 = (undefined4 *)xmalloc(0x18);\n  puVar2 = (undefined4 *)xmalloc(4);\n  *local_20 = puVar2;\n  uVar3 = FUN_0003ca60(*(undefined4 *)(param_2 + 0xc));\n  puVar1 = *(uint **)(param_2 + 4);\n  *puVar2 = uVar3;\n  uVar5 = *(uint *)(param_2 + 8);\n  iVar4 = uVar5 + *puVar1;\n  iVar7 = ((int)uVar5 >> 0x1f) + puVar1[1] + (uint)CARRY4(uVar5,*puVar1);\n  local_20[1] = iVar4;\n  local_20[2] = iVar7;\n  if ((*param_2 & 1) == 0) {\n    iVar4 = *(int *)(param_2 + 0x14);\n    iVar7 = *(int *)(param_2 + 0x18);\n  }\n  else if ((*(byte *)(param_1 + 0x19) & 4) == 0) {\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }\n  else {\n    uVar5 = FUN_0004c880(param_2,param_1);\n    iVar4 = *(uint *)(param_2 + 0x14) - uVar5;\n    iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5);\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }\n  iVar8 = *(int *)(param_2 + 0x30);\n  local_20[3] = iVar4;\n  local_20[4] = iVar7;\n  if (iVar8 == 2) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 9;\n    }\n  }\n  else if (iVar8 == 5) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 0xb;\n    }\n  }\n  else if ((iVar8 == 1) && ((*param_2 & 1) != 0)) {\n    iVar8 = 8;\n  }\n  iVar4 = bfd_reloc_type_lookup(DAT_00081984,iVar8);\n  local_20[5] = iVar4;\n  if (iVar4 == 0) {\n    uVar3 = bfd_get_reloc_code_name(iVar8);\n    uVar6 = dcgettext(0,"cannot represent %s relocation in this object file format",5);\n    FUN_0002cef0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar6,uVar3);\n    local_20 = (undefined4 *)0x0;\n  }\n  return local_20;\n}" type_identifier (pointer_declarator "* FUN_0004c8f0(int param_1,byte *param_2)" * (function_declarator "FUN_0004c8f0(int param_1,byte *param_2)" identifier (parameter_list "(int param_1,byte *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  uint *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 *local_20;\n  \n  local_20 = (undefined4 *)xmalloc(0x18);\n  puVar2 = (undefined4 *)xmalloc(4);\n  *local_20 = puVar2;\n  uVar3 = FUN_0003ca60(*(undefined4 *)(param_2 + 0xc));\n  puVar1 = *(uint **)(param_2 + 4);\n  *puVar2 = uVar3;\n  uVar5 = *(uint *)(param_2 + 8);\n  iVar4 = uVar5 + *puVar1;\n  iVar7 = ((int)uVar5 >> 0x1f) + puVar1[1] + (uint)CARRY4(uVar5,*puVar1);\n  local_20[1] = iVar4;\n  local_20[2] = iVar7;\n  if ((*param_2 & 1) == 0) {\n    iVar4 = *(int *)(param_2 + 0x14);\n    iVar7 = *(int *)(param_2 + 0x18);\n  }\n  else if ((*(byte *)(param_1 + 0x19) & 4) == 0) {\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }\n  else {\n    uVar5 = FUN_0004c880(param_2,param_1);\n    iVar4 = *(uint *)(param_2 + 0x14) - uVar5;\n    iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5);\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }\n  iVar8 = *(int *)(param_2 + 0x30);\n  local_20[3] = iVar4;\n  local_20[4] = iVar7;\n  if (iVar8 == 2) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 9;\n    }\n  }\n  else if (iVar8 == 5) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 0xb;\n    }\n  }\n  else if ((iVar8 == 1) && ((*param_2 & 1) != 0)) {\n    iVar8 = 8;\n  }\n  iVar4 = bfd_reloc_type_lookup(DAT_00081984,iVar8);\n  local_20[5] = iVar4;\n  if (iVar4 == 0) {\n    uVar3 = bfd_get_reloc_code_name(iVar8);\n    uVar6 = dcgettext(0,"cannot represent %s relocation in this object file format",5);\n    FUN_0002cef0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar6,uVar3);\n    local_20 = (undefined4 *)0x0;\n  }\n  return local_20;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined4 *local_20;" type_identifier (pointer_declarator "*local_20" * identifier) ;) (expression_statement "local_20 = (undefined4 *)xmalloc(0x18);" (assignment_expression "local_20 = (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 "puVar2 = (undefined4 *)xmalloc(4);" (assignment_expression "puVar2 = (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 "*local_20 = puVar2;" (assignment_expression "*local_20 = puVar2" (pointer_expression "*local_20" * identifier) = identifier) ;) (expression_statement "uVar3 = FUN_0003ca60(*(undefined4 *)(param_2 + 0xc));" (assignment_expression "uVar3 = FUN_0003ca60(*(undefined4 *)(param_2 + 0xc))" identifier = (call_expression "FUN_0003ca60(*(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 "*puVar2 = uVar3;" (assignment_expression "*puVar2 = uVar3" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "uVar5 = *(uint *)(param_2 + 8);" (assignment_expression "uVar5 = *(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 "iVar4 = uVar5 + *puVar1;" (assignment_expression "iVar4 = uVar5 + *puVar1" identifier = (binary_expression "uVar5 + *puVar1" identifier + (pointer_expression "*puVar1" * identifier))) ;) (expression_statement "iVar7 = ((int)uVar5 >> 0x1f) + puVar1[1] + (uint)CARRY4(uVar5,*puVar1);" (assignment_expression "iVar7 = ((int)uVar5 >> 0x1f) + puVar1[1] + (uint)CARRY4(uVar5,*puVar1)" identifier = (binary_expression "((int)uVar5 >> 0x1f) + puVar1[1] + (uint)CARRY4(uVar5,*puVar1)" (binary_expression "((int)uVar5 >> 0x1f) + puVar1[1]" (parenthesized_expression "((int)uVar5 >> 0x1f)" ( (binary_expression "(int)uVar5 >> 0x1f" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) + (subscript_expression "puVar1[1]" identifier [ number_literal ])) + (cast_expression "(uint)CARRY4(uVar5,*puVar1)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar5,*puVar1)" identifier (argument_list "(uVar5,*puVar1)" ( identifier , (pointer_expression "*puVar1" * identifier) )))))) ;) (expression_statement "local_20[1] = iVar4;" (assignment_expression "local_20[1] = iVar4" (subscript_expression "local_20[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_20[2] = iVar7;" (assignment_expression "local_20[2] = iVar7" (subscript_expression "local_20[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((*param_2 & 1) == 0) {\n    iVar4 = *(int *)(param_2 + 0x14);\n    iVar7 = *(int *)(param_2 + 0x18);\n  }\n  else if ((*(byte *)(param_1 + 0x19) & 4) == 0) {\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }\n  else {\n    uVar5 = FUN_0004c880(param_2,param_1);\n    iVar4 = *(uint *)(param_2 + 0x14) - uVar5;\n    iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5);\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }" if (parenthesized_expression "((*param_2 & 1) == 0)" ( (binary_expression "(*param_2 & 1) == 0" (parenthesized_expression "(*param_2 & 1)" ( (binary_expression "*param_2 & 1" (pointer_expression "*param_2" * identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar4 = *(int *)(param_2 + 0x14);\n    iVar7 = *(int *)(param_2 + 0x18);\n  }" { (expression_statement "iVar4 = *(int *)(param_2 + 0x14);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x14)" identifier = (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar7 = *(int *)(param_2 + 0x18);" (assignment_expression "iVar7 = *(int *)(param_2 + 0x18)" identifier = (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) ;) }) (else_clause "else if ((*(byte *)(param_1 + 0x19) & 4) == 0) {\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }\n  else {\n    uVar5 = FUN_0004c880(param_2,param_1);\n    iVar4 = *(uint *)(param_2 + 0x14) - uVar5;\n    iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5);\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }" else (if_statement "if ((*(byte *)(param_1 + 0x19) & 4) == 0) {\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }\n  else {\n    uVar5 = FUN_0004c880(param_2,param_1);\n    iVar4 = *(uint *)(param_2 + 0x14) - uVar5;\n    iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5);\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }" if (parenthesized_expression "((*(byte *)(param_1 + 0x19) & 4) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x19) & 4) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x19) & 4)" ( (binary_expression "*(byte *)(param_1 + 0x19) & 4" (pointer_expression "*(byte *)(param_1 + 0x19)" * (cast_expression "(byte *)(param_1 + 0x19)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x19)" ( (binary_expression "param_1 + 0x19" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }" { (expression_statement "*(int *)(param_2 + 0x14) = iVar4;" (assignment_expression "*(int *)(param_2 + 0x14) = iVar4" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_2 + 0x18) = iVar7;" (assignment_expression "*(int *)(param_2 + 0x18) = iVar7" (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n    uVar5 = FUN_0004c880(param_2,param_1);\n    iVar4 = *(uint *)(param_2 + 0x14) - uVar5;\n    iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5);\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }" else (compound_statement "{\n    uVar5 = FUN_0004c880(param_2,param_1);\n    iVar4 = *(uint *)(param_2 + 0x14) - uVar5;\n    iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5);\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }" { (expression_statement "uVar5 = FUN_0004c880(param_2,param_1);" (assignment_expression "uVar5 = FUN_0004c880(param_2,param_1)" identifier = (call_expression "FUN_0004c880(param_2,param_1)" identifier (argument_list "(param_2,param_1)" ( identifier , identifier )))) ;) (expression_statement "iVar4 = *(uint *)(param_2 + 0x14) - uVar5;" (assignment_expression "iVar4 = *(uint *)(param_2 + 0x14) - uVar5" identifier = (binary_expression "*(uint *)(param_2 + 0x14) - uVar5" (pointer_expression "*(uint *)(param_2 + 0x14)" * (cast_expression "(uint *)(param_2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) - identifier)) ;) (expression_statement "iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5);" (assignment_expression "iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5)" identifier = (binary_expression "(*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5)" (parenthesized_expression "(*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f))" ( (binary_expression "*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)" (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) - (parenthesized_expression "((int)uVar5 >> 0x1f)" ( (binary_expression "(int)uVar5 >> 0x1f" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) )) - (call_expression "(uint)(*(uint *)(param_2 + 0x14) < uVar5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(uint *)(param_2 + 0x14) < uVar5)" ( (binary_expression "*(uint *)(param_2 + 0x14) < uVar5" (pointer_expression "*(uint *)(param_2 + 0x14)" * (cast_expression "(uint *)(param_2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) < identifier) ))))) ;) (expression_statement "*(int *)(param_2 + 0x14) = iVar4;" (assignment_expression "*(int *)(param_2 + 0x14) = iVar4" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_2 + 0x18) = iVar7;" (assignment_expression "*(int *)(param_2 + 0x18) = iVar7" (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) = identifier) ;) }))))) (expression_statement "iVar8 = *(int *)(param_2 + 0x30);" (assignment_expression "iVar8 = *(int *)(param_2 + 0x30)" identifier = (pointer_expression "*(int *)(param_2 + 0x30)" * (cast_expression "(int *)(param_2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "local_20[3] = iVar4;" (assignment_expression "local_20[3] = iVar4" (subscript_expression "local_20[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_20[4] = iVar7;" (assignment_expression "local_20[4] = iVar7" (subscript_expression "local_20[4]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar8 == 2) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 9;\n    }\n  }\n  else if (iVar8 == 5) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 0xb;\n    }\n  }\n  else if ((iVar8 == 1) && ((*param_2 & 1) != 0)) {\n    iVar8 = 8;\n  }" if (parenthesized_expression "(iVar8 == 2)" ( (binary_expression "iVar8 == 2" identifier == number_literal) )) (compound_statement "{\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 9;\n    }\n  }" { (if_statement "if ((*param_2 & 1) != 0) {\n      iVar8 = 9;\n    }" if (parenthesized_expression "((*param_2 & 1) != 0)" ( (binary_expression "(*param_2 & 1) != 0" (parenthesized_expression "(*param_2 & 1)" ( (binary_expression "*param_2 & 1" (pointer_expression "*param_2" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n      iVar8 = 9;\n    }" { (expression_statement "iVar8 = 9;" (assignment_expression "iVar8 = 9" identifier = number_literal) ;) })) }) (else_clause "else if (iVar8 == 5) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 0xb;\n    }\n  }\n  else if ((iVar8 == 1) && ((*param_2 & 1) != 0)) {\n    iVar8 = 8;\n  }" else (if_statement "if (iVar8 == 5) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 0xb;\n    }\n  }\n  else if ((iVar8 == 1) && ((*param_2 & 1) != 0)) {\n    iVar8 = 8;\n  }" if (parenthesized_expression "(iVar8 == 5)" ( (binary_expression "iVar8 == 5" identifier == number_literal) )) (compound_statement "{\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 0xb;\n    }\n  }" { (if_statement "if ((*param_2 & 1) != 0) {\n      iVar8 = 0xb;\n    }" if (parenthesized_expression "((*param_2 & 1) != 0)" ( (binary_expression "(*param_2 & 1) != 0" (parenthesized_expression "(*param_2 & 1)" ( (binary_expression "*param_2 & 1" (pointer_expression "*param_2" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n      iVar8 = 0xb;\n    }" { (expression_statement "iVar8 = 0xb;" (assignment_expression "iVar8 = 0xb" identifier = number_literal) ;) })) }) (else_clause "else if ((iVar8 == 1) && ((*param_2 & 1) != 0)) {\n    iVar8 = 8;\n  }" else (if_statement "if ((iVar8 == 1) && ((*param_2 & 1) != 0)) {\n    iVar8 = 8;\n  }" if (parenthesized_expression "((iVar8 == 1) && ((*param_2 & 1) != 0))" ( (binary_expression "(iVar8 == 1) && ((*param_2 & 1) != 0)" (parenthesized_expression "(iVar8 == 1)" ( (binary_expression "iVar8 == 1" identifier == number_literal) )) && (parenthesized_expression "((*param_2 & 1) != 0)" ( (binary_expression "(*param_2 & 1) != 0" (parenthesized_expression "(*param_2 & 1)" ( (binary_expression "*param_2 & 1" (pointer_expression "*param_2" * identifier) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    iVar8 = 8;\n  }" { (expression_statement "iVar8 = 8;" (assignment_expression "iVar8 = 8" identifier = number_literal) ;) })))))) (expression_statement "iVar4 = bfd_reloc_type_lookup(DAT_00081984,iVar8);" (assignment_expression "iVar4 = bfd_reloc_type_lookup(DAT_00081984,iVar8)" identifier = (call_expression "bfd_reloc_type_lookup(DAT_00081984,iVar8)" identifier (argument_list "(DAT_00081984,iVar8)" ( identifier , identifier )))) ;) (expression_statement "local_20[5] = iVar4;" (assignment_expression "local_20[5] = iVar4" (subscript_expression "local_20[5]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar4 == 0) {\n    uVar3 = bfd_get_reloc_code_name(iVar8);\n    uVar6 = dcgettext(0,"cannot represent %s relocation in this object file format",5);\n    FUN_0002cef0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar6,uVar3);\n    local_20 = (undefined4 *)0x0;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar3 = bfd_get_reloc_code_name(iVar8);\n    uVar6 = dcgettext(0,"cannot represent %s relocation in this object file format",5);\n    FUN_0002cef0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar6,uVar3);\n    local_20 = (undefined4 *)0x0;\n  }" { (expression_statement "uVar3 = bfd_get_reloc_code_name(iVar8);" (assignment_expression "uVar3 = bfd_get_reloc_code_name(iVar8)" identifier = (call_expression "bfd_get_reloc_code_name(iVar8)" identifier (argument_list "(iVar8)" ( identifier )))) ;) (expression_statement "uVar6 = dcgettext(0,"cannot represent %s relocation in this object file format",5);" (assignment_expression "uVar6 = dcgettext(0,"cannot represent %s relocation in this object file format",5)" identifier = (call_expression "dcgettext(0,"cannot represent %s relocation in this object file format",5)" identifier (argument_list "(0,"cannot represent %s relocation in this object file format",5)" ( number_literal , (string_literal ""cannot represent %s relocation in this object file format"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_0002cef0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar6,uVar3);" (call_expression "FUN_0002cef0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar6,uVar3)" identifier (argument_list "(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar6,uVar3)" ( (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 "local_20 = (undefined4 *)0x0;" (assignment_expression "local_20 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return local_20;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * 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 = (binary_expression IDENT + (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )) + (subscript_expression IDENT [ LIT ])) + (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( IDENT , (pointer_expression * IDENT) )))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (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) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_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 (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_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) )))) = 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) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })))))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (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)) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 * FUN_0004c8f0(int param_1,byte *param_2)\n\n{\n  uint *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 *local_20;\n  \n  local_20 = (undefined4 *)xmalloc(0x18);\n  puVar2 = (undefined4 *)xmalloc(4);\n  *local_20 = puVar2;\n  uVar3 = FUN_0003ca60(*(undefined4 *)(param_2 + 0xc));\n  puVar1 = *(uint **)(param_2 + 4);\n  *puVar2 = uVar3;\n  uVar5 = *(uint *)(param_2 + 8);\n  iVar4 = uVar5 + *puVar1;\n  iVar7 = ((int)uVar5 >> 0x1f) + puVar1[1] + (uint)CARRY4(uVar5,*puVar1);\n  local_20[1] = iVar4;\n  local_20[2] = iVar7;\n  if ((*param_2 & 1) == 0) {\n    iVar4 = *(int *)(param_2 + 0x14);\n    iVar7 = *(int *)(param_2 + 0x18);\n  }\n  else if ((*(byte *)(param_1 + 0x19) & 4) == 0) {\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }\n  else {\n    uVar5 = FUN_0004c880(param_2,param_1);\n    iVar4 = *(uint *)(param_2 + 0x14) - uVar5;\n    iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5);\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }\n  iVar8 = *(int *)(param_2 + 0x30);\n  local_20[3] = iVar4;\n  local_20[4] = iVar7;\n  if (iVar8 == 2) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 9;\n    }\n  }\n  else if (iVar8 == 5) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 0xb;\n    }\n  }\n  else if ((iVar8 == 1) && ((*param_2 & 1) != 0)) {\n    iVar8 = 8;\n  }\n  iVar4 = bfd_reloc_type_lookup(DAT_00081984,iVar8);\n  local_20[5] = iVar4;\n  if (iVar4 == 0) {\n    uVar3 = bfd_get_reloc_code_name(iVar8);\n    uVar6 = dcgettext(0,"cannot represent %s relocation in this object file format",5);\n    FUN_0002cef0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar6,uVar3);\n    local_20 = (undefined4 *)0x0;\n  }\n  return local_20;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_0004c8f0(int param_1,byte *param_2)" (* "*") (function_declarator "FUN_0004c8f0(int param_1,byte *param_2)" (identifier "FUN_0004c8f0") (parameter_list "(int param_1,byte *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "byte *param_2" (type_identifier "byte") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  uint *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 *local_20;\n  \n  local_20 = (undefined4 *)xmalloc(0x18);\n  puVar2 = (undefined4 *)xmalloc(4);\n  *local_20 = puVar2;\n  uVar3 = FUN_0003ca60(*(undefined4 *)(param_2 + 0xc));\n  puVar1 = *(uint **)(param_2 + 4);\n  *puVar2 = uVar3;\n  uVar5 = *(uint *)(param_2 + 8);\n  iVar4 = uVar5 + *puVar1;\n  iVar7 = ((int)uVar5 >> 0x1f) + puVar1[1] + (uint)CARRY4(uVar5,*puVar1);\n  local_20[1] = iVar4;\n  local_20[2] = iVar7;\n  if ((*param_2 & 1) == 0) {\n    iVar4 = *(int *)(param_2 + 0x14);\n    iVar7 = *(int *)(param_2 + 0x18);\n  }\n  else if ((*(byte *)(param_1 + 0x19) & 4) == 0) {\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }\n  else {\n    uVar5 = FUN_0004c880(param_2,param_1);\n    iVar4 = *(uint *)(param_2 + 0x14) - uVar5;\n    iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5);\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }\n  iVar8 = *(int *)(param_2 + 0x30);\n  local_20[3] = iVar4;\n  local_20[4] = iVar7;\n  if (iVar8 == 2) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 9;\n    }\n  }\n  else if (iVar8 == 5) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 0xb;\n    }\n  }\n  else if ((iVar8 == 1) && ((*param_2 & 1) != 0)) {\n    iVar8 = 8;\n  }\n  iVar4 = bfd_reloc_type_lookup(DAT_00081984,iVar8);\n  local_20[5] = iVar4;\n  if (iVar4 == 0) {\n    uVar3 = bfd_get_reloc_code_name(iVar8);\n    uVar6 = dcgettext(0,"cannot represent %s relocation in this object file format",5);\n    FUN_0002cef0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar6,uVar3);\n    local_20 = (undefined4 *)0x0;\n  }\n  return local_20;\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "undefined4 *local_20;" (type_identifier "undefined4") (pointer_declarator "*local_20" (* "*") (identifier "local_20")) (; ";")) (expression_statement "local_20 = (undefined4 *)xmalloc(0x18);" (assignment_expression "local_20 = (undefined4 *)xmalloc(0x18)" (identifier "local_20") (= "=") (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 "puVar2 = (undefined4 *)xmalloc(4);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(4)" (identifier "puVar2") (= "=") (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 "*local_20 = puVar2;" (assignment_expression "*local_20 = puVar2" (pointer_expression "*local_20" (* "*") (identifier "local_20")) (= "=") (identifier "puVar2")) (; ";")) (expression_statement "uVar3 = FUN_0003ca60(*(undefined4 *)(param_2 + 0xc));" (assignment_expression "uVar3 = FUN_0003ca60(*(undefined4 *)(param_2 + 0xc))" (identifier "uVar3") (= "=") (call_expression "FUN_0003ca60(*(undefined4 *)(param_2 + 0xc))" (identifier "FUN_0003ca60") (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 "*puVar2 = uVar3;" (assignment_expression "*puVar2 = uVar3" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar5 = *(uint *)(param_2 + 8);" (assignment_expression "uVar5 = *(uint *)(param_2 + 8)" (identifier "uVar5") (= "=") (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 "iVar4 = uVar5 + *puVar1;" (assignment_expression "iVar4 = uVar5 + *puVar1" (identifier "iVar4") (= "=") (binary_expression "uVar5 + *puVar1" (identifier "uVar5") (+ "+") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (expression_statement "iVar7 = ((int)uVar5 >> 0x1f) + puVar1[1] + (uint)CARRY4(uVar5,*puVar1);" (assignment_expression "iVar7 = ((int)uVar5 >> 0x1f) + puVar1[1] + (uint)CARRY4(uVar5,*puVar1)" (identifier "iVar7") (= "=") (binary_expression "((int)uVar5 >> 0x1f) + puVar1[1] + (uint)CARRY4(uVar5,*puVar1)" (binary_expression "((int)uVar5 >> 0x1f) + puVar1[1]" (parenthesized_expression "((int)uVar5 >> 0x1f)" (( "(") (binary_expression "(int)uVar5 >> 0x1f" (cast_expression "(int)uVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar5")) (>> ">>") (number_literal "0x1f")) () ")")) (+ "+") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]"))) (+ "+") (cast_expression "(uint)CARRY4(uVar5,*puVar1)" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (call_expression "CARRY4(uVar5,*puVar1)" (identifier "CARRY4") (argument_list "(uVar5,*puVar1)" (( "(") (identifier "uVar5") (, ",") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) () ")")))))) (; ";")) (expression_statement "local_20[1] = iVar4;" (assignment_expression "local_20[1] = iVar4" (subscript_expression "local_20[1]" (identifier "local_20") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "local_20[2] = iVar7;" (assignment_expression "local_20[2] = iVar7" (subscript_expression "local_20[2]" (identifier "local_20") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar7")) (; ";")) (if_statement "if ((*param_2 & 1) == 0) {\n    iVar4 = *(int *)(param_2 + 0x14);\n    iVar7 = *(int *)(param_2 + 0x18);\n  }\n  else if ((*(byte *)(param_1 + 0x19) & 4) == 0) {\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }\n  else {\n    uVar5 = FUN_0004c880(param_2,param_1);\n    iVar4 = *(uint *)(param_2 + 0x14) - uVar5;\n    iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5);\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }" (if "if") (parenthesized_expression "((*param_2 & 1) == 0)" (( "(") (binary_expression "(*param_2 & 1) == 0" (parenthesized_expression "(*param_2 & 1)" (( "(") (binary_expression "*param_2 & 1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = *(int *)(param_2 + 0x14);\n    iVar7 = *(int *)(param_2 + 0x18);\n  }" ({ "{") (expression_statement "iVar4 = *(int *)(param_2 + 0x14);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x14)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_2 + 0x14)" (* "*") (cast_expression "(int *)(param_2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar7 = *(int *)(param_2 + 0x18);" (assignment_expression "iVar7 = *(int *)(param_2 + 0x18)" (identifier "iVar7") (= "=") (pointer_expression "*(int *)(param_2 + 0x18)" (* "*") (cast_expression "(int *)(param_2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (} "}")) (else_clause "else if ((*(byte *)(param_1 + 0x19) & 4) == 0) {\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }\n  else {\n    uVar5 = FUN_0004c880(param_2,param_1);\n    iVar4 = *(uint *)(param_2 + 0x14) - uVar5;\n    iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5);\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }" (else "else") (if_statement "if ((*(byte *)(param_1 + 0x19) & 4) == 0) {\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }\n  else {\n    uVar5 = FUN_0004c880(param_2,param_1);\n    iVar4 = *(uint *)(param_2 + 0x14) - uVar5;\n    iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5);\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }" (if "if") (parenthesized_expression "((*(byte *)(param_1 + 0x19) & 4) == 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x19) & 4) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x19) & 4)" (( "(") (binary_expression "*(byte *)(param_1 + 0x19) & 4" (pointer_expression "*(byte *)(param_1 + 0x19)" (* "*") (cast_expression "(byte *)(param_1 + 0x19)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x19)" (( "(") (binary_expression "param_1 + 0x19" (identifier "param_1") (+ "+") (number_literal "0x19")) () ")")))) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }" ({ "{") (expression_statement "*(int *)(param_2 + 0x14) = iVar4;" (assignment_expression "*(int *)(param_2 + 0x14) = iVar4" (pointer_expression "*(int *)(param_2 + 0x14)" (* "*") (cast_expression "(int *)(param_2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "*(int *)(param_2 + 0x18) = iVar7;" (assignment_expression "*(int *)(param_2 + 0x18) = iVar7" (pointer_expression "*(int *)(param_2 + 0x18)" (* "*") (cast_expression "(int *)(param_2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "iVar7")) (; ";")) (} "}")) (else_clause "else {\n    uVar5 = FUN_0004c880(param_2,param_1);\n    iVar4 = *(uint *)(param_2 + 0x14) - uVar5;\n    iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5);\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }" (else "else") (compound_statement "{\n    uVar5 = FUN_0004c880(param_2,param_1);\n    iVar4 = *(uint *)(param_2 + 0x14) - uVar5;\n    iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5);\n    *(int *)(param_2 + 0x14) = iVar4;\n    *(int *)(param_2 + 0x18) = iVar7;\n  }" ({ "{") (expression_statement "uVar5 = FUN_0004c880(param_2,param_1);" (assignment_expression "uVar5 = FUN_0004c880(param_2,param_1)" (identifier "uVar5") (= "=") (call_expression "FUN_0004c880(param_2,param_1)" (identifier "FUN_0004c880") (argument_list "(param_2,param_1)" (( "(") (identifier "param_2") (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar4 = *(uint *)(param_2 + 0x14) - uVar5;" (assignment_expression "iVar4 = *(uint *)(param_2 + 0x14) - uVar5" (identifier "iVar4") (= "=") (binary_expression "*(uint *)(param_2 + 0x14) - uVar5" (pointer_expression "*(uint *)(param_2 + 0x14)" (* "*") (cast_expression "(uint *)(param_2 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (- "-") (identifier "uVar5"))) (; ";")) (expression_statement "iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5);" (assignment_expression "iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5)" (identifier "iVar7") (= "=") (binary_expression "(*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -\n            (uint)(*(uint *)(param_2 + 0x14) < uVar5)" (parenthesized_expression "(*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f))" (( "(") (binary_expression "*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)" (pointer_expression "*(int *)(param_2 + 0x18)" (* "*") (cast_expression "(int *)(param_2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (- "-") (parenthesized_expression "((int)uVar5 >> 0x1f)" (( "(") (binary_expression "(int)uVar5 >> 0x1f" (cast_expression "(int)uVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar5")) (>> ">>") (number_literal "0x1f")) () ")"))) () ")")) (- "-") (call_expression "(uint)(*(uint *)(param_2 + 0x14) < uVar5)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(uint *)(param_2 + 0x14) < uVar5)" (( "(") (binary_expression "*(uint *)(param_2 + 0x14) < uVar5" (pointer_expression "*(uint *)(param_2 + 0x14)" (* "*") (cast_expression "(uint *)(param_2 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (< "<") (identifier "uVar5")) () ")"))))) (; ";")) (expression_statement "*(int *)(param_2 + 0x14) = iVar4;" (assignment_expression "*(int *)(param_2 + 0x14) = iVar4" (pointer_expression "*(int *)(param_2 + 0x14)" (* "*") (cast_expression "(int *)(param_2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "*(int *)(param_2 + 0x18) = iVar7;" (assignment_expression "*(int *)(param_2 + 0x18) = iVar7" (pointer_expression "*(int *)(param_2 + 0x18)" (* "*") (cast_expression "(int *)(param_2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "iVar7")) (; ";")) (} "}")))))) (expression_statement "iVar8 = *(int *)(param_2 + 0x30);" (assignment_expression "iVar8 = *(int *)(param_2 + 0x30)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(param_2 + 0x30)" (* "*") (cast_expression "(int *)(param_2 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "local_20[3] = iVar4;" (assignment_expression "local_20[3] = iVar4" (subscript_expression "local_20[3]" (identifier "local_20") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "local_20[4] = iVar7;" (assignment_expression "local_20[4] = iVar7" (subscript_expression "local_20[4]" (identifier "local_20") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (iVar8 == 2) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 9;\n    }\n  }\n  else if (iVar8 == 5) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 0xb;\n    }\n  }\n  else if ((iVar8 == 1) && ((*param_2 & 1) != 0)) {\n    iVar8 = 8;\n  }" (if "if") (parenthesized_expression "(iVar8 == 2)" (( "(") (binary_expression "iVar8 == 2" (identifier "iVar8") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 9;\n    }\n  }" ({ "{") (if_statement "if ((*param_2 & 1) != 0) {\n      iVar8 = 9;\n    }" (if "if") (parenthesized_expression "((*param_2 & 1) != 0)" (( "(") (binary_expression "(*param_2 & 1) != 0" (parenthesized_expression "(*param_2 & 1)" (( "(") (binary_expression "*param_2 & 1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar8 = 9;\n    }" ({ "{") (expression_statement "iVar8 = 9;" (assignment_expression "iVar8 = 9" (identifier "iVar8") (= "=") (number_literal "9")) (; ";")) (} "}"))) (} "}")) (else_clause "else if (iVar8 == 5) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 0xb;\n    }\n  }\n  else if ((iVar8 == 1) && ((*param_2 & 1) != 0)) {\n    iVar8 = 8;\n  }" (else "else") (if_statement "if (iVar8 == 5) {\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 0xb;\n    }\n  }\n  else if ((iVar8 == 1) && ((*param_2 & 1) != 0)) {\n    iVar8 = 8;\n  }" (if "if") (parenthesized_expression "(iVar8 == 5)" (( "(") (binary_expression "iVar8 == 5" (identifier "iVar8") (== "==") (number_literal "5")) () ")")) (compound_statement "{\n    if ((*param_2 & 1) != 0) {\n      iVar8 = 0xb;\n    }\n  }" ({ "{") (if_statement "if ((*param_2 & 1) != 0) {\n      iVar8 = 0xb;\n    }" (if "if") (parenthesized_expression "((*param_2 & 1) != 0)" (( "(") (binary_expression "(*param_2 & 1) != 0" (parenthesized_expression "(*param_2 & 1)" (( "(") (binary_expression "*param_2 & 1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar8 = 0xb;\n    }" ({ "{") (expression_statement "iVar8 = 0xb;" (assignment_expression "iVar8 = 0xb" (identifier "iVar8") (= "=") (number_literal "0xb")) (; ";")) (} "}"))) (} "}")) (else_clause "else if ((iVar8 == 1) && ((*param_2 & 1) != 0)) {\n    iVar8 = 8;\n  }" (else "else") (if_statement "if ((iVar8 == 1) && ((*param_2 & 1) != 0)) {\n    iVar8 = 8;\n  }" (if "if") (parenthesized_expression "((iVar8 == 1) && ((*param_2 & 1) != 0))" (( "(") (binary_expression "(iVar8 == 1) && ((*param_2 & 1) != 0)" (parenthesized_expression "(iVar8 == 1)" (( "(") (binary_expression "iVar8 == 1" (identifier "iVar8") (== "==") (number_literal "1")) () ")")) (&& "&&") (parenthesized_expression "((*param_2 & 1) != 0)" (( "(") (binary_expression "(*param_2 & 1) != 0" (parenthesized_expression "(*param_2 & 1)" (( "(") (binary_expression "*param_2 & 1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    iVar8 = 8;\n  }" ({ "{") (expression_statement "iVar8 = 8;" (assignment_expression "iVar8 = 8" (identifier "iVar8") (= "=") (number_literal "8")) (; ";")) (} "}"))))))) (expression_statement "iVar4 = bfd_reloc_type_lookup(DAT_00081984,iVar8);" (assignment_expression "iVar4 = bfd_reloc_type_lookup(DAT_00081984,iVar8)" (identifier "iVar4") (= "=") (call_expression "bfd_reloc_type_lookup(DAT_00081984,iVar8)" (identifier "bfd_reloc_type_lookup") (argument_list "(DAT_00081984,iVar8)" (( "(") (identifier "DAT_00081984") (, ",") (identifier "iVar8") () ")")))) (; ";")) (expression_statement "local_20[5] = iVar4;" (assignment_expression "local_20[5] = iVar4" (subscript_expression "local_20[5]" (identifier "local_20") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (if_statement "if (iVar4 == 0) {\n    uVar3 = bfd_get_reloc_code_name(iVar8);\n    uVar6 = dcgettext(0,"cannot represent %s relocation in this object file format",5);\n    FUN_0002cef0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar6,uVar3);\n    local_20 = (undefined4 *)0x0;\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = bfd_get_reloc_code_name(iVar8);\n    uVar6 = dcgettext(0,"cannot represent %s relocation in this object file format",5);\n    FUN_0002cef0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar6,uVar3);\n    local_20 = (undefined4 *)0x0;\n  }" ({ "{") (expression_statement "uVar3 = bfd_get_reloc_code_name(iVar8);" (assignment_expression "uVar3 = bfd_get_reloc_code_name(iVar8)" (identifier "uVar3") (= "=") (call_expression "bfd_get_reloc_code_name(iVar8)" (identifier "bfd_get_reloc_code_name") (argument_list "(iVar8)" (( "(") (identifier "iVar8") () ")")))) (; ";")) (expression_statement "uVar6 = dcgettext(0,"cannot represent %s relocation in this object file format",5);" (assignment_expression "uVar6 = dcgettext(0,"cannot represent %s relocation in this object file format",5)" (identifier "uVar6") (= "=") (call_expression "dcgettext(0,"cannot represent %s relocation in this object file format",5)" (identifier "dcgettext") (argument_list "(0,"cannot represent %s relocation in this object file format",5)" (( "(") (number_literal "0") (, ",") (string_literal ""cannot represent %s relocation in this object file format"" (" """) (string_content "cannot represent %s relocation in this object file format") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_0002cef0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar6,uVar3);" (call_expression "FUN_0002cef0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar6,uVar3)" (identifier "FUN_0002cef0") (argument_list "(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar6,uVar3)" (( "(") (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 "uVar6") (, ",") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "local_20 = (undefined4 *)0x0;" (assignment_expression "local_20 = (undefined4 *)0x0" (identifier "local_20") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}"))) (return_statement "return local_20;" (return "return") (identifier "local_20") (; ";")) (} "}")))

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

type_1 * function_1(type_2 *section,type_3 *var_5)

{
  type_4 *pfVar1;
  type_5 var_3;
  type_6 **ppbVar3;
  type_7 *paVar4;
  int iVar5;
  type_8 *var_13;
  type_5 var_7;
  type_9 uVar8;
  char *format;
  int iVar9;
  type_10 var_8;
  type_1 *local_20;
  
  local_20 = (type_1 *)var_1(0x18);
  ppbVar3 = (type_6 **)var_1(4);
  local_20->sym_ptr_ptr = ppbVar3;
  paVar4 = var_2(var_5->fx_addsy);
  pfVar1 = var_5->fx_frag;
  *ppbVar3 = paVar4;
  var_3 = var_5->fx_where;
  iVar5 = var_3 + (int)pfVar1->fr_address;
  iVar9 = ((int)var_3 >> 0x1f) + *(int *)((int)&pfVar1->fr_address + 4) +
          (type_5)var_4(var_3,(type_5)pfVar1->fr_address);
  *(int *)&local_20->address = iVar5;
  *(int *)((int)&local_20->address + 4) = iVar9;
  if ((type_11  [76])((type_11  [76])*var_5 & (type_11  [76])0x1) == (type_11  [76])0x0)
  {
    iVar5 = (int)var_5->fx_offset;
    iVar9 = *(int *)((int)&var_5->fx_offset + 4);
  }
  else if ((section->field_0x19 & 4) == 0) {
    *(int *)&var_5->fx_offset = iVar5;
    *(int *)((int)&var_5->fx_offset + 4) = iVar9;
  }
  else {
    var_7 = var_6(var_5,section);
    var_3 = (type_5)var_5->fx_offset;
    iVar5 = var_3 - var_7;
    iVar9 = (*(int *)((int)&var_5->fx_offset + 4) - ((int)var_7 >> 0x1f)) - (type_5)(var_3 < var_7);
    *(int *)&var_5->fx_offset = iVar5;
    *(int *)((int)&var_5->fx_offset + 4) = iVar9;
  }
  var_8 = var_5->fx_r_type;
  *(int *)&local_20->addend = iVar5;
  *(int *)((int)&local_20->addend + 4) = iVar9;
  if (var_8 == var_9) {
    if ((type_11  [76])((type_11  [76])*var_5 & (type_11  [76])0x1) != (type_11  [76])0x0
       ) {
      var_8 = BFD_RELOC_32_PCREL;
    }
  }
  else if (var_8 == var_10) {
    if ((type_11  [76])((type_11  [76])*var_5 & (type_11  [76])0x1) != (type_11  [76])0x0
       ) {
      var_8 = BFD_RELOC_16_PCREL;
    }
  }
  else if ((var_8 == var_11) &&
          ((type_11  [76])((type_11  [76])*var_5 & (type_11  [76])0x1) !=
           (type_11  [76])0x0)) {
    var_8 = BFD_RELOC_64_PCREL;
  }
  var_13 = (type_8 *)var_12(stdoutput,var_8);
  local_20->howto = var_13;
  if (var_13 == (type_8 *)0x0) {
    uVar8 = var_14(var_8);
    format = (char *)var_15(0,"cannot represent %s relocation in this object file format",5);
    var_16(var_5->fx_file,var_5->fx_line,format,uVar8);
    local_20 = (type_1 *)0x0;
  }
  return local_20;
}


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

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

undefined4 * MASKED(int param_1,byte *param_2)

{
  uint *puVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  int iVar4;
  uint uVar5;
  undefined4 uVar6;
  int iVar7;
  int iVar8;
  undefined4 *local_20;
  
  local_20 = (undefined4 *)xmalloc(0x18);
  puVar2 = (undefined4 *)xmalloc(4);
  *local_20 = puVar2;
  uVar3 = FUN_0003ca60(*(undefined4 *)(param_2 + 0xc));
  puVar1 = *(uint **)(param_2 + 4);
  *puVar2 = uVar3;
  uVar5 = *(uint *)(param_2 + 8);
  iVar4 = uVar5 + *puVar1;
  iVar7 = ((int)uVar5 >> 0x1f) + puVar1[1] + (uint)CARRY4(uVar5,*puVar1);
  local_20[1] = iVar4;
  local_20[2] = iVar7;
  if ((*param_2 & 1) == 0) {
    iVar4 = *(int *)(param_2 + 0x14);
    iVar7 = *(int *)(param_2 + 0x18);
  }
  else if ((*(byte *)(param_1 + 0x19) & 4) == 0) {
    *(int *)(param_2 + 0x14) = iVar4;
    *(int *)(param_2 + 0x18) = iVar7;
  }
  else {
    uVar5 = FUN_0004c880(param_2,param_1);
    iVar4 = *(uint *)(param_2 + 0x14) - uVar5;
    iVar7 = (*(int *)(param_2 + 0x18) - ((int)uVar5 >> 0x1f)) -
            (uint)(*(uint *)(param_2 + 0x14) < uVar5);
    *(int *)(param_2 + 0x14) = iVar4;
    *(int *)(param_2 + 0x18) = iVar7;
  }
  iVar8 = *(int *)(param_2 + 0x30);
  local_20[3] = iVar4;
  local_20[4] = iVar7;
  if (iVar8 == 2) {
    if ((*param_2 & 1) != 0) {
      iVar8 = 9;
    }
  }
  else if (iVar8 == 5) {
    if ((*param_2 & 1) != 0) {
      iVar8 = 0xb;
    }
  }
  else if ((iVar8 == 1) && ((*param_2 & 1) != 0)) {
    iVar8 = 8;
  }
  iVar4 = bfd_reloc_type_lookup(DAT_00081984,iVar8);
  local_20[5] = iVar4;
  if (iVar4 == 0) {
    uVar3 = bfd_get_reloc_code_name(iVar8);
    uVar6 = dcgettext(0,"cannot represent %s relocation in this object file format",5);
    FUN_0002cef0(*(undefined4 *)(param_2 + 0x3c),*(undefined4 *)(param_2 + 0x40),uVar6,uVar3);
    local_20 = (undefined4 *)0x0;
  }
  return local_20;
}

