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

void get_relocs(bfd *abfd,asection *sec,void *dataarg)

{
  undefined4 *puVar1;
  int iVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  int *piVar5;
  
                    /* WARNING: Load size is inaccurate */
  puVar1 = *dataarg;
  *puVar1 = sec;
  if ((sec->flags & 4) == 0) {
    puVar4 = *(undefined4 **)((int)dataarg + 4);
    piVar5 = *(int **)((int)dataarg + 8);
    *puVar4 = 0;
    *piVar5 = 0;
LAB_00013376:
    *(undefined4 **)dataarg = puVar1 + 1;
    *(undefined4 **)((int)dataarg + 4) = puVar4 + 1;
    *(int **)((int)dataarg + 8) = piVar5 + 1;
    return;
  }
  iVar2 = bfd_get_reloc_upper_bound(abfd,sec);
  if (-1 < iVar2) {
    puVar1 = *(undefined4 **)((int)dataarg + 4);
    uVar3 = xmalloc(iVar2);
    *puVar1 = uVar3;
    puVar1 = *(undefined4 **)((int)dataarg + 8);
    uVar3 = bfd_canonicalize_reloc
                      (abfd,sec,**(undefined4 **)((int)dataarg + 4),
                       *(undefined4 *)((int)dataarg + 0xc));
    piVar5 = *(int **)((int)dataarg + 8);
    *puVar1 = uVar3;
    if (-1 < *piVar5) {
                    /* WARNING: Load size is inaccurate */
      puVar1 = *dataarg;
      puVar4 = *(undefined4 **)((int)dataarg + 4);
      goto LAB_00013376;
    }
  }
                    /* WARNING: Subroutine does not return */
  bfd_fatal(abfd->filename);
}



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

void FUN_00013340(undefined4 *param_1,int param_2,int *param_3)

{
  int *piVar1;
  int iVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  int *piVar5;
  
  piVar1 = (int *)*param_3;
  *piVar1 = param_2;
  if ((*(byte *)(param_2 + 0x14) & 4) == 0) {
    puVar4 = (undefined4 *)param_3[1];
    piVar5 = (int *)param_3[2];
    *puVar4 = 0;
    *piVar5 = 0;
LAB_00013376:
    *param_3 = (int)(piVar1 + 1);
    param_3[1] = (int)(puVar4 + 1);
    param_3[2] = (int)(piVar5 + 1);
    return;
  }
  iVar2 = bfd_get_reloc_upper_bound(param_1,param_2);
  if (-1 < iVar2) {
    puVar4 = (undefined4 *)param_3[1];
    uVar3 = xmalloc(iVar2);
    *puVar4 = uVar3;
    puVar4 = (undefined4 *)param_3[2];
    uVar3 = bfd_canonicalize_reloc(param_1,param_2,*(undefined4 *)param_3[1],param_3[3]);
    piVar5 = (int *)param_3[2];
    *puVar4 = uVar3;
    if (-1 < *piVar5) {
      piVar1 = (int *)*param_3;
      puVar4 = (undefined4 *)param_3[1];
      goto LAB_00013376;
    }
  }
                    /* WARNING: Subroutine does not return */
  FUN_00015650(*param_1);
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00012a60
ADD EBX,0x9cb7
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x28]
MOV EDI,dword ptr [ESP + 0x24]
MOV EAX,dword ptr [ESI]
MOV dword ptr [EAX],EDI
TEST byte ptr [EDI + 0x14],0x4
JNZ 0x00013390
MOV ECX,dword ptr [ESI + 0x4]
MOV EDX,dword ptr [ESI + 0x8]
MOV dword ptr [ECX],0x0
MOV dword ptr [EDX],0x0
ADD EAX,0x4
ADD ECX,0x4
ADD EDX,0x4
MOV dword ptr [ESI],EAX
MOV dword ptr [ESI + 0x4],ECX
MOV dword ptr [ESI + 0x8],EDX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH EDI
PUSH dword ptr [ESP + 0x2c]
CALL 0x000124f0
ADD ESP,0x10
TEST EAX,EAX
JS 0x000133de
SUB ESP,0xc
MOV EBP,dword ptr [ESI + 0x4]
PUSH EAX
CALL 0x000121f0
MOV dword ptr [EBP],EAX
MOV EAX,dword ptr [ESI + 0x4]
MOV EBP,dword ptr [ESI + 0x8]
PUSH dword ptr [ESI + 0xc]
PUSH dword ptr [EAX]
PUSH EDI
PUSH dword ptr [ESP + 0x3c]
CALL 0x000124a0
MOV EDX,dword ptr [ESI + 0x8]
ADD ESP,0x20
MOV dword ptr [EBP],EAX
MOV EAX,dword ptr [EDX]
TEST EAX,EAX
JS 0x000133de
MOV EAX,dword ptr [ESI]
MOV ECX,dword ptr [ESI + 0x4]
JMP 0x00013376
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x2c]
PUSH dword ptr [EAX]
CALL 0x00015650
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00013340(undefined4 *param_1,int param_2,int *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  \n  piVar1 = (int *)*param_3;\n  *piVar1 = param_2;\n  if ((*(byte *)(param_2 + 0x14) & 4) == 0) {\n    puVar4 = (undefined4 *)param_3[1];\n    piVar5 = (int *)param_3[2];\n    *puVar4 = 0;\n    *piVar5 = 0;\nLAB_00013376:\n    *param_3 = (int)(piVar1 + 1);\n    param_3[1] = (int)(puVar4 + 1);\n    param_3[2] = (int)(piVar5 + 1);\n    return;\n  }\n  iVar2 = bfd_get_reloc_upper_bound(param_1,param_2);\n  if (-1 < iVar2) {\n    puVar4 = (undefined4 *)param_3[1];\n    uVar3 = xmalloc(iVar2);\n    *puVar4 = uVar3;\n    puVar4 = (undefined4 *)param_3[2];\n    uVar3 = bfd_canonicalize_reloc(param_1,param_2,*(undefined4 *)param_3[1],param_3[3]);\n    piVar5 = (int *)param_3[2];\n    *puVar4 = uVar3;\n    if (-1 < *piVar5) {\n      piVar1 = (int *)*param_3;\n      puVar4 = (undefined4 *)param_3[1];\n      goto LAB_00013376;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00015650(*param_1);\n}\n\n" comment (function_definition "void FUN_00013340(undefined4 *param_1,int param_2,int *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  \n  piVar1 = (int *)*param_3;\n  *piVar1 = param_2;\n  if ((*(byte *)(param_2 + 0x14) & 4) == 0) {\n    puVar4 = (undefined4 *)param_3[1];\n    piVar5 = (int *)param_3[2];\n    *puVar4 = 0;\n    *piVar5 = 0;\nLAB_00013376:\n    *param_3 = (int)(piVar1 + 1);\n    param_3[1] = (int)(puVar4 + 1);\n    param_3[2] = (int)(piVar5 + 1);\n    return;\n  }\n  iVar2 = bfd_get_reloc_upper_bound(param_1,param_2);\n  if (-1 < iVar2) {\n    puVar4 = (undefined4 *)param_3[1];\n    uVar3 = xmalloc(iVar2);\n    *puVar4 = uVar3;\n    puVar4 = (undefined4 *)param_3[2];\n    uVar3 = bfd_canonicalize_reloc(param_1,param_2,*(undefined4 *)param_3[1],param_3[3]);\n    piVar5 = (int *)param_3[2];\n    *puVar4 = uVar3;\n    if (-1 < *piVar5) {\n      piVar1 = (int *)*param_3;\n      puVar4 = (undefined4 *)param_3[1];\n      goto LAB_00013376;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00015650(*param_1);\n}" primitive_type (function_declarator "FUN_00013340(undefined4 *param_1,int param_2,int *param_3)" identifier (parameter_list "(undefined4 *param_1,int param_2,int *param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  \n  piVar1 = (int *)*param_3;\n  *piVar1 = param_2;\n  if ((*(byte *)(param_2 + 0x14) & 4) == 0) {\n    puVar4 = (undefined4 *)param_3[1];\n    piVar5 = (int *)param_3[2];\n    *puVar4 = 0;\n    *piVar5 = 0;\nLAB_00013376:\n    *param_3 = (int)(piVar1 + 1);\n    param_3[1] = (int)(puVar4 + 1);\n    param_3[2] = (int)(piVar5 + 1);\n    return;\n  }\n  iVar2 = bfd_get_reloc_upper_bound(param_1,param_2);\n  if (-1 < iVar2) {\n    puVar4 = (undefined4 *)param_3[1];\n    uVar3 = xmalloc(iVar2);\n    *puVar4 = uVar3;\n    puVar4 = (undefined4 *)param_3[2];\n    uVar3 = bfd_canonicalize_reloc(param_1,param_2,*(undefined4 *)param_3[1],param_3[3]);\n    piVar5 = (int *)param_3[2];\n    *puVar4 = uVar3;\n    if (-1 < *piVar5) {\n      piVar1 = (int *)*param_3;\n      puVar4 = (undefined4 *)param_3[1];\n      goto LAB_00013376;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00015650(*param_1);\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "piVar1 = (int *)*param_3;" (assignment_expression "piVar1 = (int *)*param_3" identifier = (cast_expression "(int *)*param_3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_3" * identifier))) ;) (expression_statement "*piVar1 = param_2;" (assignment_expression "*piVar1 = param_2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (if_statement "if ((*(byte *)(param_2 + 0x14) & 4) == 0) {\n    puVar4 = (undefined4 *)param_3[1];\n    piVar5 = (int *)param_3[2];\n    *puVar4 = 0;\n    *piVar5 = 0;\nLAB_00013376:\n    *param_3 = (int)(piVar1 + 1);\n    param_3[1] = (int)(puVar4 + 1);\n    param_3[2] = (int)(piVar5 + 1);\n    return;\n  }" if (parenthesized_expression "((*(byte *)(param_2 + 0x14) & 4) == 0)" ( (binary_expression "(*(byte *)(param_2 + 0x14) & 4) == 0" (parenthesized_expression "(*(byte *)(param_2 + 0x14) & 4)" ( (binary_expression "*(byte *)(param_2 + 0x14) & 4" (pointer_expression "*(byte *)(param_2 + 0x14)" * (cast_expression "(byte *)(param_2 + 0x14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    puVar4 = (undefined4 *)param_3[1];\n    piVar5 = (int *)param_3[2];\n    *puVar4 = 0;\n    *piVar5 = 0;\nLAB_00013376:\n    *param_3 = (int)(piVar1 + 1);\n    param_3[1] = (int)(puVar4 + 1);\n    param_3[2] = (int)(piVar5 + 1);\n    return;\n  }" { (expression_statement "puVar4 = (undefined4 *)param_3[1];" (assignment_expression "puVar4 = (undefined4 *)param_3[1]" identifier = (cast_expression "(undefined4 *)param_3[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_3[1]" identifier [ number_literal ]))) ;) (expression_statement "piVar5 = (int *)param_3[2];" (assignment_expression "piVar5 = (int *)param_3[2]" identifier = (cast_expression "(int *)param_3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_3[2]" identifier [ number_literal ]))) ;) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "*piVar5 = 0;" (assignment_expression "*piVar5 = 0" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (labeled_statement "LAB_00013376:\n    *param_3 = (int)(piVar1 + 1);" statement_identifier : (expression_statement "*param_3 = (int)(piVar1 + 1);" (assignment_expression "*param_3 = (int)(piVar1 + 1)" (pointer_expression "*param_3" * identifier) = (cast_expression "(int)(piVar1 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar1 + 1)" ( (binary_expression "piVar1 + 1" identifier + number_literal) )))) ;)) (expression_statement "param_3[1] = (int)(puVar4 + 1);" (assignment_expression "param_3[1] = (int)(puVar4 + 1)" (subscript_expression "param_3[1]" identifier [ number_literal ]) = (cast_expression "(int)(puVar4 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar4 + 1)" ( (binary_expression "puVar4 + 1" identifier + number_literal) )))) ;) (expression_statement "param_3[2] = (int)(piVar5 + 1);" (assignment_expression "param_3[2] = (int)(piVar5 + 1)" (subscript_expression "param_3[2]" identifier [ number_literal ]) = (cast_expression "(int)(piVar5 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar5 + 1)" ( (binary_expression "piVar5 + 1" identifier + number_literal) )))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = bfd_get_reloc_upper_bound(param_1,param_2);" (assignment_expression "iVar2 = bfd_get_reloc_upper_bound(param_1,param_2)" identifier = (call_expression "bfd_get_reloc_upper_bound(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (-1 < iVar2) {\n    puVar4 = (undefined4 *)param_3[1];\n    uVar3 = xmalloc(iVar2);\n    *puVar4 = uVar3;\n    puVar4 = (undefined4 *)param_3[2];\n    uVar3 = bfd_canonicalize_reloc(param_1,param_2,*(undefined4 *)param_3[1],param_3[3]);\n    piVar5 = (int *)param_3[2];\n    *puVar4 = uVar3;\n    if (-1 < *piVar5) {\n      piVar1 = (int *)*param_3;\n      puVar4 = (undefined4 *)param_3[1];\n      goto LAB_00013376;\n    }\n  }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n    puVar4 = (undefined4 *)param_3[1];\n    uVar3 = xmalloc(iVar2);\n    *puVar4 = uVar3;\n    puVar4 = (undefined4 *)param_3[2];\n    uVar3 = bfd_canonicalize_reloc(param_1,param_2,*(undefined4 *)param_3[1],param_3[3]);\n    piVar5 = (int *)param_3[2];\n    *puVar4 = uVar3;\n    if (-1 < *piVar5) {\n      piVar1 = (int *)*param_3;\n      puVar4 = (undefined4 *)param_3[1];\n      goto LAB_00013376;\n    }\n  }" { (expression_statement "puVar4 = (undefined4 *)param_3[1];" (assignment_expression "puVar4 = (undefined4 *)param_3[1]" identifier = (cast_expression "(undefined4 *)param_3[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_3[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar3 = xmalloc(iVar2);" (assignment_expression "uVar3 = xmalloc(iVar2)" identifier = (call_expression "xmalloc(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "*puVar4 = uVar3;" (assignment_expression "*puVar4 = uVar3" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "puVar4 = (undefined4 *)param_3[2];" (assignment_expression "puVar4 = (undefined4 *)param_3[2]" identifier = (cast_expression "(undefined4 *)param_3[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_3[2]" identifier [ number_literal ]))) ;) (expression_statement "uVar3 = bfd_canonicalize_reloc(param_1,param_2,*(undefined4 *)param_3[1],param_3[3]);" (assignment_expression "uVar3 = bfd_canonicalize_reloc(param_1,param_2,*(undefined4 *)param_3[1],param_3[3])" identifier = (call_expression "bfd_canonicalize_reloc(param_1,param_2,*(undefined4 *)param_3[1],param_3[3])" identifier (argument_list "(param_1,param_2,*(undefined4 *)param_3[1],param_3[3])" ( identifier , identifier , (pointer_expression "*(undefined4 *)param_3[1]" * (cast_expression "(undefined4 *)param_3[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_3[1]" identifier [ number_literal ]))) , (subscript_expression "param_3[3]" identifier [ number_literal ]) )))) ;) (expression_statement "piVar5 = (int *)param_3[2];" (assignment_expression "piVar5 = (int *)param_3[2]" identifier = (cast_expression "(int *)param_3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_3[2]" identifier [ number_literal ]))) ;) (expression_statement "*puVar4 = uVar3;" (assignment_expression "*puVar4 = uVar3" (pointer_expression "*puVar4" * identifier) = identifier) ;) (if_statement "if (-1 < *piVar5) {\n      piVar1 = (int *)*param_3;\n      puVar4 = (undefined4 *)param_3[1];\n      goto LAB_00013376;\n    }" if (parenthesized_expression "(-1 < *piVar5)" ( (binary_expression "-1 < *piVar5" number_literal < (pointer_expression "*piVar5" * identifier)) )) (compound_statement "{\n      piVar1 = (int *)*param_3;\n      puVar4 = (undefined4 *)param_3[1];\n      goto LAB_00013376;\n    }" { (expression_statement "piVar1 = (int *)*param_3;" (assignment_expression "piVar1 = (int *)*param_3" identifier = (cast_expression "(int *)*param_3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_3" * identifier))) ;) (expression_statement "puVar4 = (undefined4 *)param_3[1];" (assignment_expression "puVar4 = (undefined4 *)param_3[1]" identifier = (cast_expression "(undefined4 *)param_3[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_3[1]" identifier [ number_literal ]))) ;) (goto_statement "goto LAB_00013376;" goto statement_identifier ;) })) })) comment (expression_statement "FUN_00015650(*param_1);" (call_expression "FUN_00015650(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid get_relocs(bfd *abfd,asection *sec,void *dataarg)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  \n                    /* WARNING: Load size is inaccurate */\n  puVar1 = *dataarg;\n  *puVar1 = sec;\n  if ((sec->flags & 4) == 0) {\n    puVar4 = *(undefined4 **)((int)dataarg + 4);\n    piVar5 = *(int **)((int)dataarg + 8);\n    *puVar4 = 0;\n    *piVar5 = 0;\nLAB_00013376:\n    *(undefined4 **)dataarg = puVar1 + 1;\n    *(undefined4 **)((int)dataarg + 4) = puVar4 + 1;\n    *(int **)((int)dataarg + 8) = piVar5 + 1;\n    return;\n  }\n  iVar2 = bfd_get_reloc_upper_bound(abfd,sec);\n  if (-1 < iVar2) {\n    puVar1 = *(undefined4 **)((int)dataarg + 4);\n    uVar3 = xmalloc(iVar2);\n    *puVar1 = uVar3;\n    puVar1 = *(undefined4 **)((int)dataarg + 8);\n    uVar3 = bfd_canonicalize_reloc\n                      (abfd,sec,**(undefined4 **)((int)dataarg + 4),\n                       *(undefined4 *)((int)dataarg + 0xc));\n    piVar5 = *(int **)((int)dataarg + 8);\n    *puVar1 = uVar3;\n    if (-1 < *piVar5) {\n                    /* WARNING: Load size is inaccurate */\n      puVar1 = *dataarg;\n      puVar4 = *(undefined4 **)((int)dataarg + 4);\n      goto LAB_00013376;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  bfd_fatal(abfd->filename);\n}\n\n" comment comment (function_definition "void get_relocs(bfd *abfd,asection *sec,void *dataarg)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  \n                    /* WARNING: Load size is inaccurate */\n  puVar1 = *dataarg;\n  *puVar1 = sec;\n  if ((sec->flags & 4) == 0) {\n    puVar4 = *(undefined4 **)((int)dataarg + 4);\n    piVar5 = *(int **)((int)dataarg + 8);\n    *puVar4 = 0;\n    *piVar5 = 0;\nLAB_00013376:\n    *(undefined4 **)dataarg = puVar1 + 1;\n    *(undefined4 **)((int)dataarg + 4) = puVar4 + 1;\n    *(int **)((int)dataarg + 8) = piVar5 + 1;\n    return;\n  }\n  iVar2 = bfd_get_reloc_upper_bound(abfd,sec);\n  if (-1 < iVar2) {\n    puVar1 = *(undefined4 **)((int)dataarg + 4);\n    uVar3 = xmalloc(iVar2);\n    *puVar1 = uVar3;\n    puVar1 = *(undefined4 **)((int)dataarg + 8);\n    uVar3 = bfd_canonicalize_reloc\n                      (abfd,sec,**(undefined4 **)((int)dataarg + 4),\n                       *(undefined4 *)((int)dataarg + 0xc));\n    piVar5 = *(int **)((int)dataarg + 8);\n    *puVar1 = uVar3;\n    if (-1 < *piVar5) {\n                    /* WARNING: Load size is inaccurate */\n      puVar1 = *dataarg;\n      puVar4 = *(undefined4 **)((int)dataarg + 4);\n      goto LAB_00013376;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  bfd_fatal(abfd->filename);\n}" primitive_type (function_declarator "get_relocs(bfd *abfd,asection *sec,void *dataarg)" identifier (parameter_list "(bfd *abfd,asection *sec,void *dataarg)" ( (parameter_declaration "bfd *abfd" type_identifier (pointer_declarator "*abfd" * identifier)) , (parameter_declaration "asection *sec" type_identifier (pointer_declarator "*sec" * identifier)) , (parameter_declaration "void *dataarg" primitive_type (pointer_declarator "*dataarg" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  \n                    /* WARNING: Load size is inaccurate */\n  puVar1 = *dataarg;\n  *puVar1 = sec;\n  if ((sec->flags & 4) == 0) {\n    puVar4 = *(undefined4 **)((int)dataarg + 4);\n    piVar5 = *(int **)((int)dataarg + 8);\n    *puVar4 = 0;\n    *piVar5 = 0;\nLAB_00013376:\n    *(undefined4 **)dataarg = puVar1 + 1;\n    *(undefined4 **)((int)dataarg + 4) = puVar4 + 1;\n    *(int **)((int)dataarg + 8) = piVar5 + 1;\n    return;\n  }\n  iVar2 = bfd_get_reloc_upper_bound(abfd,sec);\n  if (-1 < iVar2) {\n    puVar1 = *(undefined4 **)((int)dataarg + 4);\n    uVar3 = xmalloc(iVar2);\n    *puVar1 = uVar3;\n    puVar1 = *(undefined4 **)((int)dataarg + 8);\n    uVar3 = bfd_canonicalize_reloc\n                      (abfd,sec,**(undefined4 **)((int)dataarg + 4),\n                       *(undefined4 *)((int)dataarg + 0xc));\n    piVar5 = *(int **)((int)dataarg + 8);\n    *puVar1 = uVar3;\n    if (-1 < *piVar5) {\n                    /* WARNING: Load size is inaccurate */\n      puVar1 = *dataarg;\n      puVar4 = *(undefined4 **)((int)dataarg + 4);\n      goto LAB_00013376;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  bfd_fatal(abfd->filename);\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) comment (expression_statement "puVar1 = *dataarg;" (assignment_expression "puVar1 = *dataarg" identifier = (pointer_expression "*dataarg" * identifier)) ;) (expression_statement "*puVar1 = sec;" (assignment_expression "*puVar1 = sec" (pointer_expression "*puVar1" * identifier) = identifier) ;) (if_statement "if ((sec->flags & 4) == 0) {\n    puVar4 = *(undefined4 **)((int)dataarg + 4);\n    piVar5 = *(int **)((int)dataarg + 8);\n    *puVar4 = 0;\n    *piVar5 = 0;\nLAB_00013376:\n    *(undefined4 **)dataarg = puVar1 + 1;\n    *(undefined4 **)((int)dataarg + 4) = puVar4 + 1;\n    *(int **)((int)dataarg + 8) = piVar5 + 1;\n    return;\n  }" if (parenthesized_expression "((sec->flags & 4) == 0)" ( (binary_expression "(sec->flags & 4) == 0" (parenthesized_expression "(sec->flags & 4)" ( (binary_expression "sec->flags & 4" (field_expression "sec->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    puVar4 = *(undefined4 **)((int)dataarg + 4);\n    piVar5 = *(int **)((int)dataarg + 8);\n    *puVar4 = 0;\n    *piVar5 = 0;\nLAB_00013376:\n    *(undefined4 **)dataarg = puVar1 + 1;\n    *(undefined4 **)((int)dataarg + 4) = puVar4 + 1;\n    *(int **)((int)dataarg + 8) = piVar5 + 1;\n    return;\n  }" { (expression_statement "puVar4 = *(undefined4 **)((int)dataarg + 4);" (assignment_expression "puVar4 = *(undefined4 **)((int)dataarg + 4)" identifier = (pointer_expression "*(undefined4 **)((int)dataarg + 4)" * (cast_expression "(undefined4 **)((int)dataarg + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)dataarg + 4)" ( (binary_expression "(int)dataarg + 4" (cast_expression "(int)dataarg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "piVar5 = *(int **)((int)dataarg + 8);" (assignment_expression "piVar5 = *(int **)((int)dataarg + 8)" identifier = (pointer_expression "*(int **)((int)dataarg + 8)" * (cast_expression "(int **)((int)dataarg + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)dataarg + 8)" ( (binary_expression "(int)dataarg + 8" (cast_expression "(int)dataarg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "*piVar5 = 0;" (assignment_expression "*piVar5 = 0" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (labeled_statement "LAB_00013376:\n    *(undefined4 **)dataarg = puVar1 + 1;" statement_identifier : (expression_statement "*(undefined4 **)dataarg = puVar1 + 1;" (assignment_expression "*(undefined4 **)dataarg = puVar1 + 1" (pointer_expression "*(undefined4 **)dataarg" * (cast_expression "(undefined4 **)dataarg" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "puVar1 + 1" identifier + number_literal)) ;)) (expression_statement "*(undefined4 **)((int)dataarg + 4) = puVar4 + 1;" (assignment_expression "*(undefined4 **)((int)dataarg + 4) = puVar4 + 1" (pointer_expression "*(undefined4 **)((int)dataarg + 4)" * (cast_expression "(undefined4 **)((int)dataarg + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)dataarg + 4)" ( (binary_expression "(int)dataarg + 4" (cast_expression "(int)dataarg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) (expression_statement "*(int **)((int)dataarg + 8) = piVar5 + 1;" (assignment_expression "*(int **)((int)dataarg + 8) = piVar5 + 1" (pointer_expression "*(int **)((int)dataarg + 8)" * (cast_expression "(int **)((int)dataarg + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)dataarg + 8)" ( (binary_expression "(int)dataarg + 8" (cast_expression "(int)dataarg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "piVar5 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = bfd_get_reloc_upper_bound(abfd,sec);" (assignment_expression "iVar2 = bfd_get_reloc_upper_bound(abfd,sec)" identifier = (call_expression "bfd_get_reloc_upper_bound(abfd,sec)" identifier (argument_list "(abfd,sec)" ( identifier , identifier )))) ;) (if_statement "if (-1 < iVar2) {\n    puVar1 = *(undefined4 **)((int)dataarg + 4);\n    uVar3 = xmalloc(iVar2);\n    *puVar1 = uVar3;\n    puVar1 = *(undefined4 **)((int)dataarg + 8);\n    uVar3 = bfd_canonicalize_reloc\n                      (abfd,sec,**(undefined4 **)((int)dataarg + 4),\n                       *(undefined4 *)((int)dataarg + 0xc));\n    piVar5 = *(int **)((int)dataarg + 8);\n    *puVar1 = uVar3;\n    if (-1 < *piVar5) {\n                    /* WARNING: Load size is inaccurate */\n      puVar1 = *dataarg;\n      puVar4 = *(undefined4 **)((int)dataarg + 4);\n      goto LAB_00013376;\n    }\n  }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n    puVar1 = *(undefined4 **)((int)dataarg + 4);\n    uVar3 = xmalloc(iVar2);\n    *puVar1 = uVar3;\n    puVar1 = *(undefined4 **)((int)dataarg + 8);\n    uVar3 = bfd_canonicalize_reloc\n                      (abfd,sec,**(undefined4 **)((int)dataarg + 4),\n                       *(undefined4 *)((int)dataarg + 0xc));\n    piVar5 = *(int **)((int)dataarg + 8);\n    *puVar1 = uVar3;\n    if (-1 < *piVar5) {\n                    /* WARNING: Load size is inaccurate */\n      puVar1 = *dataarg;\n      puVar4 = *(undefined4 **)((int)dataarg + 4);\n      goto LAB_00013376;\n    }\n  }" { (expression_statement "puVar1 = *(undefined4 **)((int)dataarg + 4);" (assignment_expression "puVar1 = *(undefined4 **)((int)dataarg + 4)" identifier = (pointer_expression "*(undefined4 **)((int)dataarg + 4)" * (cast_expression "(undefined4 **)((int)dataarg + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)dataarg + 4)" ( (binary_expression "(int)dataarg + 4" (cast_expression "(int)dataarg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar3 = xmalloc(iVar2);" (assignment_expression "uVar3 = xmalloc(iVar2)" identifier = (call_expression "xmalloc(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "*puVar1 = uVar3;" (assignment_expression "*puVar1 = uVar3" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1 = *(undefined4 **)((int)dataarg + 8);" (assignment_expression "puVar1 = *(undefined4 **)((int)dataarg + 8)" identifier = (pointer_expression "*(undefined4 **)((int)dataarg + 8)" * (cast_expression "(undefined4 **)((int)dataarg + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)dataarg + 8)" ( (binary_expression "(int)dataarg + 8" (cast_expression "(int)dataarg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar3 = bfd_canonicalize_reloc\n                      (abfd,sec,**(undefined4 **)((int)dataarg + 4),\n                       *(undefined4 *)((int)dataarg + 0xc));" (assignment_expression "uVar3 = bfd_canonicalize_reloc\n                      (abfd,sec,**(undefined4 **)((int)dataarg + 4),\n                       *(undefined4 *)((int)dataarg + 0xc))" identifier = (call_expression "bfd_canonicalize_reloc\n                      (abfd,sec,**(undefined4 **)((int)dataarg + 4),\n                       *(undefined4 *)((int)dataarg + 0xc))" identifier (argument_list "(abfd,sec,**(undefined4 **)((int)dataarg + 4),\n                       *(undefined4 *)((int)dataarg + 0xc))" ( identifier , identifier , (pointer_expression "**(undefined4 **)((int)dataarg + 4)" * (pointer_expression "*(undefined4 **)((int)dataarg + 4)" * (cast_expression "(undefined4 **)((int)dataarg + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)dataarg + 4)" ( (binary_expression "(int)dataarg + 4" (cast_expression "(int)dataarg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) , (pointer_expression "*(undefined4 *)((int)dataarg + 0xc)" * (cast_expression "(undefined4 *)((int)dataarg + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)dataarg + 0xc)" ( (binary_expression "(int)dataarg + 0xc" (cast_expression "(int)dataarg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) )))) ;) (expression_statement "piVar5 = *(int **)((int)dataarg + 8);" (assignment_expression "piVar5 = *(int **)((int)dataarg + 8)" identifier = (pointer_expression "*(int **)((int)dataarg + 8)" * (cast_expression "(int **)((int)dataarg + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)dataarg + 8)" ( (binary_expression "(int)dataarg + 8" (cast_expression "(int)dataarg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "*puVar1 = uVar3;" (assignment_expression "*puVar1 = uVar3" (pointer_expression "*puVar1" * identifier) = identifier) ;) (if_statement "if (-1 < *piVar5) {\n                    /* WARNING: Load size is inaccurate */\n      puVar1 = *dataarg;\n      puVar4 = *(undefined4 **)((int)dataarg + 4);\n      goto LAB_00013376;\n    }" if (parenthesized_expression "(-1 < *piVar5)" ( (binary_expression "-1 < *piVar5" number_literal < (pointer_expression "*piVar5" * identifier)) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n      puVar1 = *dataarg;\n      puVar4 = *(undefined4 **)((int)dataarg + 4);\n      goto LAB_00013376;\n    }" { comment (expression_statement "puVar1 = *dataarg;" (assignment_expression "puVar1 = *dataarg" identifier = (pointer_expression "*dataarg" * identifier)) ;) (expression_statement "puVar4 = *(undefined4 **)((int)dataarg + 4);" (assignment_expression "puVar4 = *(undefined4 **)((int)dataarg + 4)" identifier = (pointer_expression "*(undefined4 **)((int)dataarg + 4)" * (cast_expression "(undefined4 **)((int)dataarg + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)dataarg + 4)" ( (binary_expression "(int)dataarg + 4" (cast_expression "(int)dataarg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (goto_statement "goto LAB_00013376;" goto statement_identifier ;) })) })) comment (expression_statement "bfd_fatal(abfd->filename);" (call_expression "bfd_fatal(abfd->filename)" identifier (argument_list "(abfd->filename)" ( (field_expression "abfd->filename" identifier -> field_identifier) ))) ;) })))
(translation_unit "void FUN_00013340(undefined4 *param_1,int param_2,int *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  \n  piVar1 = (int *)*param_3;\n  *piVar1 = param_2;\n  if ((*(byte *)(param_2 + 0x14) & 4) == 0) {\n    puVar4 = (undefined4 *)param_3[1];\n    piVar5 = (int *)param_3[2];\n    *puVar4 = 0;\n    *piVar5 = 0;\nLAB_00013376:\n    *param_3 = (int)(piVar1 + 1);\n    param_3[1] = (int)(puVar4 + 1);\n    param_3[2] = (int)(piVar5 + 1);\n    return;\n  }\n  iVar2 = bfd_get_reloc_upper_bound(param_1,param_2);\n  if (-1 < iVar2) {\n    puVar4 = (undefined4 *)param_3[1];\n    uVar3 = xmalloc(iVar2);\n    *puVar4 = uVar3;\n    puVar4 = (undefined4 *)param_3[2];\n    uVar3 = bfd_canonicalize_reloc(param_1,param_2,*(undefined4 *)param_3[1],param_3[3]);\n    piVar5 = (int *)param_3[2];\n    *puVar4 = uVar3;\n    if (-1 < *piVar5) {\n      piVar1 = (int *)*param_3;\n      puVar4 = (undefined4 *)param_3[1];\n      goto LAB_00013376;\n    }\n  }\n                    \n  FUN_00015650(*param_1);\n}\n\n" (function_definition "void FUN_00013340(undefined4 *param_1,int param_2,int *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  \n  piVar1 = (int *)*param_3;\n  *piVar1 = param_2;\n  if ((*(byte *)(param_2 + 0x14) & 4) == 0) {\n    puVar4 = (undefined4 *)param_3[1];\n    piVar5 = (int *)param_3[2];\n    *puVar4 = 0;\n    *piVar5 = 0;\nLAB_00013376:\n    *param_3 = (int)(piVar1 + 1);\n    param_3[1] = (int)(puVar4 + 1);\n    param_3[2] = (int)(piVar5 + 1);\n    return;\n  }\n  iVar2 = bfd_get_reloc_upper_bound(param_1,param_2);\n  if (-1 < iVar2) {\n    puVar4 = (undefined4 *)param_3[1];\n    uVar3 = xmalloc(iVar2);\n    *puVar4 = uVar3;\n    puVar4 = (undefined4 *)param_3[2];\n    uVar3 = bfd_canonicalize_reloc(param_1,param_2,*(undefined4 *)param_3[1],param_3[3]);\n    piVar5 = (int *)param_3[2];\n    *puVar4 = uVar3;\n    if (-1 < *piVar5) {\n      piVar1 = (int *)*param_3;\n      puVar4 = (undefined4 *)param_3[1];\n      goto LAB_00013376;\n    }\n  }\n                    \n  FUN_00015650(*param_1);\n}" primitive_type (function_declarator "FUN_00013340(undefined4 *param_1,int param_2,int *param_3)" identifier (parameter_list "(undefined4 *param_1,int param_2,int *param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  \n  piVar1 = (int *)*param_3;\n  *piVar1 = param_2;\n  if ((*(byte *)(param_2 + 0x14) & 4) == 0) {\n    puVar4 = (undefined4 *)param_3[1];\n    piVar5 = (int *)param_3[2];\n    *puVar4 = 0;\n    *piVar5 = 0;\nLAB_00013376:\n    *param_3 = (int)(piVar1 + 1);\n    param_3[1] = (int)(puVar4 + 1);\n    param_3[2] = (int)(piVar5 + 1);\n    return;\n  }\n  iVar2 = bfd_get_reloc_upper_bound(param_1,param_2);\n  if (-1 < iVar2) {\n    puVar4 = (undefined4 *)param_3[1];\n    uVar3 = xmalloc(iVar2);\n    *puVar4 = uVar3;\n    puVar4 = (undefined4 *)param_3[2];\n    uVar3 = bfd_canonicalize_reloc(param_1,param_2,*(undefined4 *)param_3[1],param_3[3]);\n    piVar5 = (int *)param_3[2];\n    *puVar4 = uVar3;\n    if (-1 < *piVar5) {\n      piVar1 = (int *)*param_3;\n      puVar4 = (undefined4 *)param_3[1];\n      goto LAB_00013376;\n    }\n  }\n                    \n  FUN_00015650(*param_1);\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "piVar1 = (int *)*param_3;" (assignment_expression "piVar1 = (int *)*param_3" identifier = (cast_expression "(int *)*param_3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_3" * identifier))) ;) (expression_statement "*piVar1 = param_2;" (assignment_expression "*piVar1 = param_2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (if_statement "if ((*(byte *)(param_2 + 0x14) & 4) == 0) {\n    puVar4 = (undefined4 *)param_3[1];\n    piVar5 = (int *)param_3[2];\n    *puVar4 = 0;\n    *piVar5 = 0;\nLAB_00013376:\n    *param_3 = (int)(piVar1 + 1);\n    param_3[1] = (int)(puVar4 + 1);\n    param_3[2] = (int)(piVar5 + 1);\n    return;\n  }" if (parenthesized_expression "((*(byte *)(param_2 + 0x14) & 4) == 0)" ( (binary_expression "(*(byte *)(param_2 + 0x14) & 4) == 0" (parenthesized_expression "(*(byte *)(param_2 + 0x14) & 4)" ( (binary_expression "*(byte *)(param_2 + 0x14) & 4" (pointer_expression "*(byte *)(param_2 + 0x14)" * (cast_expression "(byte *)(param_2 + 0x14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    puVar4 = (undefined4 *)param_3[1];\n    piVar5 = (int *)param_3[2];\n    *puVar4 = 0;\n    *piVar5 = 0;\nLAB_00013376:\n    *param_3 = (int)(piVar1 + 1);\n    param_3[1] = (int)(puVar4 + 1);\n    param_3[2] = (int)(piVar5 + 1);\n    return;\n  }" { (expression_statement "puVar4 = (undefined4 *)param_3[1];" (assignment_expression "puVar4 = (undefined4 *)param_3[1]" identifier = (cast_expression "(undefined4 *)param_3[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_3[1]" identifier [ number_literal ]))) ;) (expression_statement "piVar5 = (int *)param_3[2];" (assignment_expression "piVar5 = (int *)param_3[2]" identifier = (cast_expression "(int *)param_3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_3[2]" identifier [ number_literal ]))) ;) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "*piVar5 = 0;" (assignment_expression "*piVar5 = 0" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (labeled_statement "LAB_00013376:\n    *param_3 = (int)(piVar1 + 1);" statement_identifier : (expression_statement "*param_3 = (int)(piVar1 + 1);" (assignment_expression "*param_3 = (int)(piVar1 + 1)" (pointer_expression "*param_3" * identifier) = (cast_expression "(int)(piVar1 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar1 + 1)" ( (binary_expression "piVar1 + 1" identifier + number_literal) )))) ;)) (expression_statement "param_3[1] = (int)(puVar4 + 1);" (assignment_expression "param_3[1] = (int)(puVar4 + 1)" (subscript_expression "param_3[1]" identifier [ number_literal ]) = (cast_expression "(int)(puVar4 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar4 + 1)" ( (binary_expression "puVar4 + 1" identifier + number_literal) )))) ;) (expression_statement "param_3[2] = (int)(piVar5 + 1);" (assignment_expression "param_3[2] = (int)(piVar5 + 1)" (subscript_expression "param_3[2]" identifier [ number_literal ]) = (cast_expression "(int)(piVar5 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar5 + 1)" ( (binary_expression "piVar5 + 1" identifier + number_literal) )))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = bfd_get_reloc_upper_bound(param_1,param_2);" (assignment_expression "iVar2 = bfd_get_reloc_upper_bound(param_1,param_2)" identifier = (call_expression "bfd_get_reloc_upper_bound(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (-1 < iVar2) {\n    puVar4 = (undefined4 *)param_3[1];\n    uVar3 = xmalloc(iVar2);\n    *puVar4 = uVar3;\n    puVar4 = (undefined4 *)param_3[2];\n    uVar3 = bfd_canonicalize_reloc(param_1,param_2,*(undefined4 *)param_3[1],param_3[3]);\n    piVar5 = (int *)param_3[2];\n    *puVar4 = uVar3;\n    if (-1 < *piVar5) {\n      piVar1 = (int *)*param_3;\n      puVar4 = (undefined4 *)param_3[1];\n      goto LAB_00013376;\n    }\n  }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n    puVar4 = (undefined4 *)param_3[1];\n    uVar3 = xmalloc(iVar2);\n    *puVar4 = uVar3;\n    puVar4 = (undefined4 *)param_3[2];\n    uVar3 = bfd_canonicalize_reloc(param_1,param_2,*(undefined4 *)param_3[1],param_3[3]);\n    piVar5 = (int *)param_3[2];\n    *puVar4 = uVar3;\n    if (-1 < *piVar5) {\n      piVar1 = (int *)*param_3;\n      puVar4 = (undefined4 *)param_3[1];\n      goto LAB_00013376;\n    }\n  }" { (expression_statement "puVar4 = (undefined4 *)param_3[1];" (assignment_expression "puVar4 = (undefined4 *)param_3[1]" identifier = (cast_expression "(undefined4 *)param_3[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_3[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar3 = xmalloc(iVar2);" (assignment_expression "uVar3 = xmalloc(iVar2)" identifier = (call_expression "xmalloc(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "*puVar4 = uVar3;" (assignment_expression "*puVar4 = uVar3" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "puVar4 = (undefined4 *)param_3[2];" (assignment_expression "puVar4 = (undefined4 *)param_3[2]" identifier = (cast_expression "(undefined4 *)param_3[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_3[2]" identifier [ number_literal ]))) ;) (expression_statement "uVar3 = bfd_canonicalize_reloc(param_1,param_2,*(undefined4 *)param_3[1],param_3[3]);" (assignment_expression "uVar3 = bfd_canonicalize_reloc(param_1,param_2,*(undefined4 *)param_3[1],param_3[3])" identifier = (call_expression "bfd_canonicalize_reloc(param_1,param_2,*(undefined4 *)param_3[1],param_3[3])" identifier (argument_list "(param_1,param_2,*(undefined4 *)param_3[1],param_3[3])" ( identifier , identifier , (pointer_expression "*(undefined4 *)param_3[1]" * (cast_expression "(undefined4 *)param_3[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_3[1]" identifier [ number_literal ]))) , (subscript_expression "param_3[3]" identifier [ number_literal ]) )))) ;) (expression_statement "piVar5 = (int *)param_3[2];" (assignment_expression "piVar5 = (int *)param_3[2]" identifier = (cast_expression "(int *)param_3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_3[2]" identifier [ number_literal ]))) ;) (expression_statement "*puVar4 = uVar3;" (assignment_expression "*puVar4 = uVar3" (pointer_expression "*puVar4" * identifier) = identifier) ;) (if_statement "if (-1 < *piVar5) {\n      piVar1 = (int *)*param_3;\n      puVar4 = (undefined4 *)param_3[1];\n      goto LAB_00013376;\n    }" if (parenthesized_expression "(-1 < *piVar5)" ( (binary_expression "-1 < *piVar5" number_literal < (pointer_expression "*piVar5" * identifier)) )) (compound_statement "{\n      piVar1 = (int *)*param_3;\n      puVar4 = (undefined4 *)param_3[1];\n      goto LAB_00013376;\n    }" { (expression_statement "piVar1 = (int *)*param_3;" (assignment_expression "piVar1 = (int *)*param_3" identifier = (cast_expression "(int *)*param_3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_3" * identifier))) ;) (expression_statement "puVar4 = (undefined4 *)param_3[1];" (assignment_expression "puVar4 = (undefined4 *)param_3[1]" identifier = (cast_expression "(undefined4 *)param_3[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_3[1]" identifier [ number_literal ]))) ;) (goto_statement "goto LAB_00013376;" goto statement_identifier ;) })) })) (expression_statement "FUN_00015650(*param_1);" (call_expression "FUN_00015650(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (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 IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) })))
(function_definition "void FUN_00013340(undefined4 *param_1,int param_2,int *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  \n  piVar1 = (int *)*param_3;\n  *piVar1 = param_2;\n  if ((*(byte *)(param_2 + 0x14) & 4) == 0) {\n    puVar4 = (undefined4 *)param_3[1];\n    piVar5 = (int *)param_3[2];\n    *puVar4 = 0;\n    *piVar5 = 0;\nLAB_00013376:\n    *param_3 = (int)(piVar1 + 1);\n    param_3[1] = (int)(puVar4 + 1);\n    param_3[2] = (int)(piVar5 + 1);\n    return;\n  }\n  iVar2 = bfd_get_reloc_upper_bound(param_1,param_2);\n  if (-1 < iVar2) {\n    puVar4 = (undefined4 *)param_3[1];\n    uVar3 = xmalloc(iVar2);\n    *puVar4 = uVar3;\n    puVar4 = (undefined4 *)param_3[2];\n    uVar3 = bfd_canonicalize_reloc(param_1,param_2,*(undefined4 *)param_3[1],param_3[3]);\n    piVar5 = (int *)param_3[2];\n    *puVar4 = uVar3;\n    if (-1 < *piVar5) {\n      piVar1 = (int *)*param_3;\n      puVar4 = (undefined4 *)param_3[1];\n      goto LAB_00013376;\n    }\n  }\n                    \n  FUN_00015650(*param_1);\n}" (primitive_type "void") (function_declarator "FUN_00013340(undefined4 *param_1,int param_2,int *param_3)" (identifier "FUN_00013340") (parameter_list "(undefined4 *param_1,int param_2,int *param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  \n  piVar1 = (int *)*param_3;\n  *piVar1 = param_2;\n  if ((*(byte *)(param_2 + 0x14) & 4) == 0) {\n    puVar4 = (undefined4 *)param_3[1];\n    piVar5 = (int *)param_3[2];\n    *puVar4 = 0;\n    *piVar5 = 0;\nLAB_00013376:\n    *param_3 = (int)(piVar1 + 1);\n    param_3[1] = (int)(puVar4 + 1);\n    param_3[2] = (int)(piVar5 + 1);\n    return;\n  }\n  iVar2 = bfd_get_reloc_upper_bound(param_1,param_2);\n  if (-1 < iVar2) {\n    puVar4 = (undefined4 *)param_3[1];\n    uVar3 = xmalloc(iVar2);\n    *puVar4 = uVar3;\n    puVar4 = (undefined4 *)param_3[2];\n    uVar3 = bfd_canonicalize_reloc(param_1,param_2,*(undefined4 *)param_3[1],param_3[3]);\n    piVar5 = (int *)param_3[2];\n    *puVar4 = uVar3;\n    if (-1 < *piVar5) {\n      piVar1 = (int *)*param_3;\n      puVar4 = (undefined4 *)param_3[1];\n      goto LAB_00013376;\n    }\n  }\n                    \n  FUN_00015650(*param_1);\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (expression_statement "piVar1 = (int *)*param_3;" (assignment_expression "piVar1 = (int *)*param_3" (identifier "piVar1") (= "=") (cast_expression "(int *)*param_3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_3" (* "*") (identifier "param_3")))) (; ";")) (expression_statement "*piVar1 = param_2;" (assignment_expression "*piVar1 = param_2" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (identifier "param_2")) (; ";")) (if_statement "if ((*(byte *)(param_2 + 0x14) & 4) == 0) {\n    puVar4 = (undefined4 *)param_3[1];\n    piVar5 = (int *)param_3[2];\n    *puVar4 = 0;\n    *piVar5 = 0;\nLAB_00013376:\n    *param_3 = (int)(piVar1 + 1);\n    param_3[1] = (int)(puVar4 + 1);\n    param_3[2] = (int)(piVar5 + 1);\n    return;\n  }" (if "if") (parenthesized_expression "((*(byte *)(param_2 + 0x14) & 4) == 0)" (( "(") (binary_expression "(*(byte *)(param_2 + 0x14) & 4) == 0" (parenthesized_expression "(*(byte *)(param_2 + 0x14) & 4)" (( "(") (binary_expression "*(byte *)(param_2 + 0x14) & 4" (pointer_expression "*(byte *)(param_2 + 0x14)" (* "*") (cast_expression "(byte *)(param_2 + 0x14)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar4 = (undefined4 *)param_3[1];\n    piVar5 = (int *)param_3[2];\n    *puVar4 = 0;\n    *piVar5 = 0;\nLAB_00013376:\n    *param_3 = (int)(piVar1 + 1);\n    param_3[1] = (int)(puVar4 + 1);\n    param_3[2] = (int)(piVar5 + 1);\n    return;\n  }" ({ "{") (expression_statement "puVar4 = (undefined4 *)param_3[1];" (assignment_expression "puVar4 = (undefined4 *)param_3[1]" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)param_3[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "piVar5 = (int *)param_3[2];" (assignment_expression "piVar5 = (int *)param_3[2]" (identifier "piVar5") (= "=") (cast_expression "(int *)param_3[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*piVar5 = 0;" (assignment_expression "*piVar5 = 0" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00013376:\n    *param_3 = (int)(piVar1 + 1);" (statement_identifier "LAB_00013376") (: ":") (expression_statement "*param_3 = (int)(piVar1 + 1);" (assignment_expression "*param_3 = (int)(piVar1 + 1)" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (cast_expression "(int)(piVar1 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(piVar1 + 1)" (( "(") (binary_expression "piVar1 + 1" (identifier "piVar1") (+ "+") (number_literal "1")) () ")")))) (; ";"))) (expression_statement "param_3[1] = (int)(puVar4 + 1);" (assignment_expression "param_3[1] = (int)(puVar4 + 1)" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(int)(puVar4 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(puVar4 + 1)" (( "(") (binary_expression "puVar4 + 1" (identifier "puVar4") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "param_3[2] = (int)(piVar5 + 1);" (assignment_expression "param_3[2] = (int)(piVar5 + 1)" (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)(piVar5 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(piVar5 + 1)" (( "(") (binary_expression "piVar5 + 1" (identifier "piVar5") (+ "+") (number_literal "1")) () ")")))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar2 = bfd_get_reloc_upper_bound(param_1,param_2);" (assignment_expression "iVar2 = bfd_get_reloc_upper_bound(param_1,param_2)" (identifier "iVar2") (= "=") (call_expression "bfd_get_reloc_upper_bound(param_1,param_2)" (identifier "bfd_get_reloc_upper_bound") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (-1 < iVar2) {\n    puVar4 = (undefined4 *)param_3[1];\n    uVar3 = xmalloc(iVar2);\n    *puVar4 = uVar3;\n    puVar4 = (undefined4 *)param_3[2];\n    uVar3 = bfd_canonicalize_reloc(param_1,param_2,*(undefined4 *)param_3[1],param_3[3]);\n    piVar5 = (int *)param_3[2];\n    *puVar4 = uVar3;\n    if (-1 < *piVar5) {\n      piVar1 = (int *)*param_3;\n      puVar4 = (undefined4 *)param_3[1];\n      goto LAB_00013376;\n    }\n  }" (if "if") (parenthesized_expression "(-1 < iVar2)" (( "(") (binary_expression "-1 < iVar2" (number_literal "-1") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n    puVar4 = (undefined4 *)param_3[1];\n    uVar3 = xmalloc(iVar2);\n    *puVar4 = uVar3;\n    puVar4 = (undefined4 *)param_3[2];\n    uVar3 = bfd_canonicalize_reloc(param_1,param_2,*(undefined4 *)param_3[1],param_3[3]);\n    piVar5 = (int *)param_3[2];\n    *puVar4 = uVar3;\n    if (-1 < *piVar5) {\n      piVar1 = (int *)*param_3;\n      puVar4 = (undefined4 *)param_3[1];\n      goto LAB_00013376;\n    }\n  }" ({ "{") (expression_statement "puVar4 = (undefined4 *)param_3[1];" (assignment_expression "puVar4 = (undefined4 *)param_3[1]" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)param_3[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "uVar3 = xmalloc(iVar2);" (assignment_expression "uVar3 = xmalloc(iVar2)" (identifier "uVar3") (= "=") (call_expression "xmalloc(iVar2)" (identifier "xmalloc") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "*puVar4 = uVar3;" (assignment_expression "*puVar4 = uVar3" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "puVar4 = (undefined4 *)param_3[2];" (assignment_expression "puVar4 = (undefined4 *)param_3[2]" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)param_3[2]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "uVar3 = bfd_canonicalize_reloc(param_1,param_2,*(undefined4 *)param_3[1],param_3[3]);" (assignment_expression "uVar3 = bfd_canonicalize_reloc(param_1,param_2,*(undefined4 *)param_3[1],param_3[3])" (identifier "uVar3") (= "=") (call_expression "bfd_canonicalize_reloc(param_1,param_2,*(undefined4 *)param_3[1],param_3[3])" (identifier "bfd_canonicalize_reloc") (argument_list "(param_1,param_2,*(undefined4 *)param_3[1],param_3[3])" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (pointer_expression "*(undefined4 *)param_3[1]" (* "*") (cast_expression "(undefined4 *)param_3[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")))) (, ",") (subscript_expression "param_3[3]" (identifier "param_3") ([ "[") (number_literal "3") (] "]")) () ")")))) (; ";")) (expression_statement "piVar5 = (int *)param_3[2];" (assignment_expression "piVar5 = (int *)param_3[2]" (identifier "piVar5") (= "=") (cast_expression "(int *)param_3[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "*puVar4 = uVar3;" (assignment_expression "*puVar4 = uVar3" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "uVar3")) (; ";")) (if_statement "if (-1 < *piVar5) {\n      piVar1 = (int *)*param_3;\n      puVar4 = (undefined4 *)param_3[1];\n      goto LAB_00013376;\n    }" (if "if") (parenthesized_expression "(-1 < *piVar5)" (( "(") (binary_expression "-1 < *piVar5" (number_literal "-1") (< "<") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) () ")")) (compound_statement "{\n      piVar1 = (int *)*param_3;\n      puVar4 = (undefined4 *)param_3[1];\n      goto LAB_00013376;\n    }" ({ "{") (expression_statement "piVar1 = (int *)*param_3;" (assignment_expression "piVar1 = (int *)*param_3" (identifier "piVar1") (= "=") (cast_expression "(int *)*param_3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_3" (* "*") (identifier "param_3")))) (; ";")) (expression_statement "puVar4 = (undefined4 *)param_3[1];" (assignment_expression "puVar4 = (undefined4 *)param_3[1]" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)param_3[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")))) (; ";")) (goto_statement "goto LAB_00013376;" (goto "goto") (statement_identifier "LAB_00013376") (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_00015650(*param_1);" (call_expression "FUN_00015650(*param_1)" (identifier "FUN_00015650") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (} "}")))

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

void function_1(type_1 *abfd,type_2 *sec,void *dataarg)

{
  type_3 *var_1;
  int var_5;
  type_3 uVar3;
  type_3 *var_2;
  int *var_3;
  
                    /* WARNING: Load size is inaccurate */
  var_1 = *dataarg;
  *var_1 = sec;
  if ((sec->flags & 4) == 0) {
    var_2 = *(type_3 **)((int)dataarg + 4);
    var_3 = *(int **)((int)dataarg + 8);
    *var_2 = 0;
    *var_3 = 0;
LAB_00013376:
    *(type_3 **)dataarg = var_1 + 1;
    *(type_3 **)((int)dataarg + 4) = var_2 + 1;
    *(int **)((int)dataarg + 8) = var_3 + 1;
    return;
  }
  var_5 = var_4(abfd,sec);
  if (-1 < var_5) {
    var_1 = *(type_3 **)((int)dataarg + 4);
    uVar3 = var_6(var_5);
    *var_1 = uVar3;
    var_1 = *(type_3 **)((int)dataarg + 8);
    uVar3 = var_7
                      (abfd,sec,**(type_3 **)((int)dataarg + 4),
                       *(type_3 *)((int)dataarg + 0xc));
    var_3 = *(int **)((int)dataarg + 8);
    *var_1 = uVar3;
    if (-1 < *var_3) {
                    /* WARNING: Load size is inaccurate */
      var_1 = *dataarg;
      var_2 = *(type_3 **)((int)dataarg + 4);
      goto LAB_00013376;
    }
  }
                    /* WARNING: Subroutine does not return */
  var_8(abfd->filename);
}


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

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

void MASKED(undefined4 *param_1,int param_2,int *param_3)

{
  int *piVar1;
  int iVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  int *piVar5;
  
  piVar1 = (int *)*param_3;
  *piVar1 = param_2;
  if ((*(byte *)(param_2 + 0x14) & 4) == 0) {
    puVar4 = (undefined4 *)param_3[1];
    piVar5 = (int *)param_3[2];
    *puVar4 = 0;
    *piVar5 = 0;
LAB_00013376:
    *param_3 = (int)(piVar1 + 1);
    param_3[1] = (int)(puVar4 + 1);
    param_3[2] = (int)(piVar5 + 1);
    return;
  }
  iVar2 = bfd_get_reloc_upper_bound(param_1,param_2);
  if (-1 < iVar2) {
    puVar4 = (undefined4 *)param_3[1];
    uVar3 = xmalloc(iVar2);
    *puVar4 = uVar3;
    puVar4 = (undefined4 *)param_3[2];
    uVar3 = bfd_canonicalize_reloc(param_1,param_2,*(undefined4 *)param_3[1],param_3[3]);
    piVar5 = (int *)param_3[2];
    *puVar4 = uVar3;
    if (-1 < *piVar5) {
      piVar1 = (int *)*param_3;
      puVar4 = (undefined4 *)param_3[1];
      goto LAB_00013376;
    }
  }
                    /* WARNING: Subroutine does not return */
  FUN_00015650(*param_1);
}

