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

void warning_find_reloc(bfd *abfd,asection *sec,void *iarg)

{
  int *piVar1;
  undefined4 uVar2;
  int iVar3;
  undefined4 *__ptr;
  int iVar4;
  char *pcVar5;
  undefined4 uVar6;
  undefined4 *puVar7;
  
                    /* WARNING: Load size is inaccurate */
  if (*iarg != 0) {
    return;
  }
  iVar3 = bfd_get_reloc_upper_bound(abfd,sec);
  if (iVar3 < 0) {
    pcVar5 = (char *)dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);
    einfo(pcVar5,abfd);
  }
  else if (iVar3 == 0) {
    return;
  }
  __ptr = (undefined4 *)xmalloc(iVar3);
  iVar3 = bfd_canonicalize_reloc(abfd,sec,__ptr,*(undefined4 *)((int)iarg + 0xc));
  if (iVar3 < 0) {
    pcVar5 = (char *)dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);
    einfo(pcVar5,abfd);
  }
  puVar7 = __ptr;
  while( true ) {
    if ((__ptr + iVar3 <= puVar7) || (piVar1 = (int *)*puVar7, piVar1 == (int *)0x0))
    goto LAB_0002edfe;
    if (((int *)*piVar1 != (int *)0x0) &&
       ((iVar4 = *(int *)*piVar1, iVar4 != 0 &&
        (iVar4 = strcmp(*(char **)(iVar4 + 4),*(char **)((int)iarg + 8)), iVar4 == 0)))) break;
    puVar7 = puVar7 + 1;
  }
  uVar2 = *(undefined4 *)((int)iarg + 4);
  uVar6 = dcgettext(0,"warning: ",5);
  einfo("%P: %C: %s%s\n",abfd,sec,piVar1[1],piVar1[2],uVar6,uVar2);
  *(undefined4 *)iarg = 1;
LAB_0002edfe:
  free(__ptr);
  return;
}



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

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

{
  int *piVar1;
  int iVar2;
  undefined4 *__ptr;
  int iVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  
  if (*param_3 != 0) {
    return;
  }
  iVar2 = bfd_get_reloc_upper_bound(param_1,param_2);
  if (iVar2 < 0) {
    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);
    FUN_00034d60(uVar4,param_1);
  }
  else if (iVar2 == 0) {
    return;
  }
  __ptr = (undefined4 *)xmalloc(iVar2);
  iVar2 = bfd_canonicalize_reloc(param_1,param_2,__ptr,param_3[3]);
  if (iVar2 < 0) {
    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);
    FUN_00034d60(uVar4,param_1);
  }
  puVar5 = __ptr;
  while( true ) {
    if ((__ptr + iVar2 <= puVar5) || (piVar1 = (int *)*puVar5, piVar1 == (int *)0x0))
    goto LAB_0002edfe;
    if (((int *)*piVar1 != (int *)0x0) &&
       ((iVar3 = *(int *)*piVar1, iVar3 != 0 &&
        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)))) break;
    puVar5 = puVar5 + 1;
  }
  iVar2 = param_3[1];
  uVar4 = dcgettext(0,"warning: ",5);
  FUN_00034d60("%P: %C: %s%s\n",param_1,param_2,piVar1[1],piVar1[2],uVar4,iVar2);
  *param_3 = 1;
LAB_0002edfe:
  free(__ptr);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00017bc0
ADD EBX,0x1902b7
SUB ESP,0x1c
MOV EAX,dword ptr [ESP + 0x38]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x0002ed68
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH dword ptr [ESP + 0x3c]
PUSH dword ptr [ESP + 0x3c]
CALL 0x00016c20
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JS 0x0002ee40
JZ 0x0002ed5c
SUB ESP,0xc
PUSH ESI
CALL 0x00016e08
MOV ECX,dword ptr [ESP + 0x48]
MOV dword ptr [ESP + 0x1c],EAX
PUSH dword ptr [ECX + 0xc]
PUSH EAX
PUSH dword ptr [ESP + 0x4c]
PUSH dword ptr [ESP + 0x4c]
CALL 0x00016b40
ADD ESP,0x20
MOV ESI,EAX
TEST EAX,EAX
JS 0x0002ee18
MOV EAX,dword ptr [ESP + 0xc]
LEA EBP,[EAX + ESI*0x4]
CMP EAX,EBP
JNC 0x0002edfe
MOV ESI,EAX
JMP 0x0002edf8
MOV EAX,dword ptr [EDI]
TEST EAX,EAX
JZ 0x0002edf1
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x0002edf1
SUB ESP,0x8
MOV EDX,dword ptr [ESP + 0x40]
PUSH dword ptr [EDX + 0x8]
PUSH dword ptr [EAX + 0x4]
CALL 0x000160d0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0002ee70
ADD ESI,0x4
CMP EBP,ESI
JBE 0x0002edfe
MOV EDI,dword ptr [ESI]
TEST EDI,EDI
JNZ 0x0002edc8
SUB ESP,0xc
PUSH dword ptr [ESP + 0x18]
CALL 0x00016df0
ADD ESP,0x10
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xffeb24f4]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00016360
POP EDX
POP ECX
PUSH dword ptr [ESP + 0x38]
PUSH EAX
CALL 0x00034d60
ADD ESP,0x10
JMP 0x0002edb2
SUB ESP,0x4
LEA EAX,[EBX + 0xffeb24f4]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00016360
POP EDI
POP EBP
PUSH dword ptr [ESP + 0x38]
PUSH EAX
CALL 0x00034d60
ADD ESP,0x10
JMP 0x0002ed87
MOV EAX,dword ptr [ESP + 0x38]
SUB ESP,0x4
MOV ESI,dword ptr [EAX + 0x4]
LEA EAX,[EBX + 0xffeb4148]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00016360
ADD ESP,0xc
PUSH ESI
PUSH EAX
LEA EAX,[EBX + 0xffeb2ca6]
PUSH dword ptr [EDI + 0x8]
PUSH dword ptr [EDI + 0x4]
PUSH dword ptr [ESP + 0x48]
PUSH dword ptr [ESP + 0x48]
PUSH EAX
CALL 0x00034d60
MOV EAX,dword ptr [ESP + 0x58]
ADD ESP,0x20
MOV dword ptr [EAX],0x1
JMP 0x0002edfe
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0002ed40(undefined4 param_1,undefined4 param_2,int *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 *__ptr;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if (*param_3 != 0) {\n    return;\n  }\n  iVar2 = bfd_get_reloc_upper_bound(param_1,param_2);\n  if (iVar2 < 0) {\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }\n  else if (iVar2 == 0) {\n    return;\n  }\n  __ptr = (undefined4 *)xmalloc(iVar2);\n  iVar2 = bfd_canonicalize_reloc(param_1,param_2,__ptr,param_3[3]);\n  if (iVar2 < 0) {\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }\n  puVar5 = __ptr;\n  while( true ) {\n    if ((__ptr + iVar2 <= puVar5) || (piVar1 = (int *)*puVar5, piVar1 == (int *)0x0))\n    goto LAB_0002edfe;\n    if (((int *)*piVar1 != (int *)0x0) &&\n       ((iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)))) break;\n    puVar5 = puVar5 + 1;\n  }\n  iVar2 = param_3[1];\n  uVar4 = dcgettext(0,"warning: ",5);\n  FUN_00034d60("%P: %C: %s%s\n",param_1,param_2,piVar1[1],piVar1[2],uVar4,iVar2);\n  *param_3 = 1;\nLAB_0002edfe:\n  free(__ptr);\n  return;\n}\n\n" comment (function_definition "void FUN_0002ed40(undefined4 param_1,undefined4 param_2,int *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 *__ptr;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if (*param_3 != 0) {\n    return;\n  }\n  iVar2 = bfd_get_reloc_upper_bound(param_1,param_2);\n  if (iVar2 < 0) {\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }\n  else if (iVar2 == 0) {\n    return;\n  }\n  __ptr = (undefined4 *)xmalloc(iVar2);\n  iVar2 = bfd_canonicalize_reloc(param_1,param_2,__ptr,param_3[3]);\n  if (iVar2 < 0) {\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }\n  puVar5 = __ptr;\n  while( true ) {\n    if ((__ptr + iVar2 <= puVar5) || (piVar1 = (int *)*puVar5, piVar1 == (int *)0x0))\n    goto LAB_0002edfe;\n    if (((int *)*piVar1 != (int *)0x0) &&\n       ((iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)))) break;\n    puVar5 = puVar5 + 1;\n  }\n  iVar2 = param_3[1];\n  uVar4 = dcgettext(0,"warning: ",5);\n  FUN_00034d60("%P: %C: %s%s\n",param_1,param_2,piVar1[1],piVar1[2],uVar4,iVar2);\n  *param_3 = 1;\nLAB_0002edfe:\n  free(__ptr);\n  return;\n}" primitive_type (function_declarator "FUN_0002ed40(undefined4 param_1,undefined4 param_2,int *param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 *__ptr;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if (*param_3 != 0) {\n    return;\n  }\n  iVar2 = bfd_get_reloc_upper_bound(param_1,param_2);\n  if (iVar2 < 0) {\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }\n  else if (iVar2 == 0) {\n    return;\n  }\n  __ptr = (undefined4 *)xmalloc(iVar2);\n  iVar2 = bfd_canonicalize_reloc(param_1,param_2,__ptr,param_3[3]);\n  if (iVar2 < 0) {\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }\n  puVar5 = __ptr;\n  while( true ) {\n    if ((__ptr + iVar2 <= puVar5) || (piVar1 = (int *)*puVar5, piVar1 == (int *)0x0))\n    goto LAB_0002edfe;\n    if (((int *)*piVar1 != (int *)0x0) &&\n       ((iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)))) break;\n    puVar5 = puVar5 + 1;\n  }\n  iVar2 = param_3[1];\n  uVar4 = dcgettext(0,"warning: ",5);\n  FUN_00034d60("%P: %C: %s%s\n",param_1,param_2,piVar1[1],piVar1[2],uVar4,iVar2);\n  *param_3 = 1;\nLAB_0002edfe:\n  free(__ptr);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (if_statement "if (*param_3 != 0) {\n    return;\n  }" if (parenthesized_expression "(*param_3 != 0)" ( (binary_expression "*param_3 != 0" (pointer_expression "*param_3" * identifier) != number_literal) )) (compound_statement "{\n    return;\n  }" { (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 (iVar2 < 0) {\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }\n  else if (iVar2 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }" { (expression_statement "uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);" (assignment_expression "uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5)" identifier (argument_list "(0,"%F%P: %pB: could not read relocs: %E\n",5)" ( number_literal , (string_literal ""%F%P: %pB: could not read relocs: %E\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034d60(uVar4,param_1);" (call_expression "FUN_00034d60(uVar4,param_1)" identifier (argument_list "(uVar4,param_1)" ( identifier , identifier ))) ;) }) (else_clause "else if (iVar2 == 0) {\n    return;\n  }" else (if_statement "if (iVar2 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })))) (expression_statement "__ptr = (undefined4 *)xmalloc(iVar2);" (assignment_expression "__ptr = (undefined4 *)xmalloc(iVar2)" identifier = (cast_expression "(undefined4 *)xmalloc(iVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))))) ;) (expression_statement "iVar2 = bfd_canonicalize_reloc(param_1,param_2,__ptr,param_3[3]);" (assignment_expression "iVar2 = bfd_canonicalize_reloc(param_1,param_2,__ptr,param_3[3])" identifier = (call_expression "bfd_canonicalize_reloc(param_1,param_2,__ptr,param_3[3])" identifier (argument_list "(param_1,param_2,__ptr,param_3[3])" ( identifier , identifier , identifier , (subscript_expression "param_3[3]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar2 < 0) {\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }" { (expression_statement "uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);" (assignment_expression "uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5)" identifier (argument_list "(0,"%F%P: %pB: could not read relocs: %E\n",5)" ( number_literal , (string_literal ""%F%P: %pB: could not read relocs: %E\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034d60(uVar4,param_1);" (call_expression "FUN_00034d60(uVar4,param_1)" identifier (argument_list "(uVar4,param_1)" ( identifier , identifier ))) ;) })) (expression_statement "puVar5 = __ptr;" (assignment_expression "puVar5 = __ptr" identifier = identifier) ;) (while_statement "while( true ) {\n    if ((__ptr + iVar2 <= puVar5) || (piVar1 = (int *)*puVar5, piVar1 == (int *)0x0))\n    goto LAB_0002edfe;\n    if (((int *)*piVar1 != (int *)0x0) &&\n       ((iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)))) break;\n    puVar5 = puVar5 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if ((__ptr + iVar2 <= puVar5) || (piVar1 = (int *)*puVar5, piVar1 == (int *)0x0))\n    goto LAB_0002edfe;\n    if (((int *)*piVar1 != (int *)0x0) &&\n       ((iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)))) break;\n    puVar5 = puVar5 + 1;\n  }" { (if_statement "if ((__ptr + iVar2 <= puVar5) || (piVar1 = (int *)*puVar5, piVar1 == (int *)0x0))\n    goto LAB_0002edfe;" if (parenthesized_expression "((__ptr + iVar2 <= puVar5) || (piVar1 = (int *)*puVar5, piVar1 == (int *)0x0))" ( (binary_expression "(__ptr + iVar2 <= puVar5) || (piVar1 = (int *)*puVar5, piVar1 == (int *)0x0)" (parenthesized_expression "(__ptr + iVar2 <= puVar5)" ( (binary_expression "__ptr + iVar2 <= puVar5" (binary_expression "__ptr + iVar2" identifier + identifier) <= identifier) )) || (parenthesized_expression "(piVar1 = (int *)*puVar5, piVar1 == (int *)0x0)" ( (comma_expression "piVar1 = (int *)*puVar5, piVar1 == (int *)0x0" (assignment_expression "piVar1 = (int *)*puVar5" identifier = (cast_expression "(int *)*puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) , (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (goto_statement "goto LAB_0002edfe;" goto statement_identifier ;)) (if_statement "if (((int *)*piVar1 != (int *)0x0) &&\n       ((iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)))) break;" if (parenthesized_expression "(((int *)*piVar1 != (int *)0x0) &&\n       ((iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0))))" ( (binary_expression "((int *)*piVar1 != (int *)0x0) &&\n       ((iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)))" (parenthesized_expression "((int *)*piVar1 != (int *)0x0)" ( (binary_expression "(int *)*piVar1 != (int *)0x0" (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier)) != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)))" ( (parenthesized_expression "(iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0))" ( (comma_expression "iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)" (assignment_expression "iVar3 = *(int *)*piVar1" identifier = (pointer_expression "*(int *)*piVar1" * (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier)))) , (binary_expression "iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)" (binary_expression "iVar3 != 0" identifier != number_literal) && (parenthesized_expression "(iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)" ( (comma_expression "iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0" (assignment_expression "iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2])" identifier = (call_expression "strcmp(*(char **)(iVar3 + 4),(char *)param_3[2])" identifier (argument_list "(*(char **)(iVar3 + 4),(char *)param_3[2])" ( (pointer_expression "*(char **)(iVar3 + 4)" * (cast_expression "(char **)(iVar3 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) , (cast_expression "(char *)param_3[2]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_3[2]" identifier [ number_literal ])) )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) )))) )) ))) )) (break_statement "break;" break ;)) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) })) (expression_statement "iVar2 = param_3[1];" (assignment_expression "iVar2 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = dcgettext(0,"warning: ",5);" (assignment_expression "uVar4 = dcgettext(0,"warning: ",5)" identifier = (call_expression "dcgettext(0,"warning: ",5)" identifier (argument_list "(0,"warning: ",5)" ( number_literal , (string_literal ""warning: "" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00034d60("%P: %C: %s%s\n",param_1,param_2,piVar1[1],piVar1[2],uVar4,iVar2);" (call_expression "FUN_00034d60("%P: %C: %s%s\n",param_1,param_2,piVar1[1],piVar1[2],uVar4,iVar2)" identifier (argument_list "("%P: %C: %s%s\n",param_1,param_2,piVar1[1],piVar1[2],uVar4,iVar2)" ( (string_literal ""%P: %C: %s%s\n"" " string_content escape_sequence ") , identifier , identifier , (subscript_expression "piVar1[1]" identifier [ number_literal ]) , (subscript_expression "piVar1[2]" identifier [ number_literal ]) , identifier , identifier ))) ;) (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" * identifier) = number_literal) ;) (labeled_statement "LAB_0002edfe:\n  free(__ptr);" statement_identifier : (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid warning_find_reloc(bfd *abfd,asection *sec,void *iarg)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *__ptr;\n  int iVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  \n                    /* WARNING: Load size is inaccurate */\n  if (*iarg != 0) {\n    return;\n  }\n  iVar3 = bfd_get_reloc_upper_bound(abfd,sec);\n  if (iVar3 < 0) {\n    pcVar5 = (char *)dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    einfo(pcVar5,abfd);\n  }\n  else if (iVar3 == 0) {\n    return;\n  }\n  __ptr = (undefined4 *)xmalloc(iVar3);\n  iVar3 = bfd_canonicalize_reloc(abfd,sec,__ptr,*(undefined4 *)((int)iarg + 0xc));\n  if (iVar3 < 0) {\n    pcVar5 = (char *)dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    einfo(pcVar5,abfd);\n  }\n  puVar7 = __ptr;\n  while( true ) {\n    if ((__ptr + iVar3 <= puVar7) || (piVar1 = (int *)*puVar7, piVar1 == (int *)0x0))\n    goto LAB_0002edfe;\n    if (((int *)*piVar1 != (int *)0x0) &&\n       ((iVar4 = *(int *)*piVar1, iVar4 != 0 &&\n        (iVar4 = strcmp(*(char **)(iVar4 + 4),*(char **)((int)iarg + 8)), iVar4 == 0)))) break;\n    puVar7 = puVar7 + 1;\n  }\n  uVar2 = *(undefined4 *)((int)iarg + 4);\n  uVar6 = dcgettext(0,"warning: ",5);\n  einfo("%P: %C: %s%s\n",abfd,sec,piVar1[1],piVar1[2],uVar6,uVar2);\n  *(undefined4 *)iarg = 1;\nLAB_0002edfe:\n  free(__ptr);\n  return;\n}\n\n" comment comment (function_definition "void warning_find_reloc(bfd *abfd,asection *sec,void *iarg)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *__ptr;\n  int iVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  \n                    /* WARNING: Load size is inaccurate */\n  if (*iarg != 0) {\n    return;\n  }\n  iVar3 = bfd_get_reloc_upper_bound(abfd,sec);\n  if (iVar3 < 0) {\n    pcVar5 = (char *)dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    einfo(pcVar5,abfd);\n  }\n  else if (iVar3 == 0) {\n    return;\n  }\n  __ptr = (undefined4 *)xmalloc(iVar3);\n  iVar3 = bfd_canonicalize_reloc(abfd,sec,__ptr,*(undefined4 *)((int)iarg + 0xc));\n  if (iVar3 < 0) {\n    pcVar5 = (char *)dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    einfo(pcVar5,abfd);\n  }\n  puVar7 = __ptr;\n  while( true ) {\n    if ((__ptr + iVar3 <= puVar7) || (piVar1 = (int *)*puVar7, piVar1 == (int *)0x0))\n    goto LAB_0002edfe;\n    if (((int *)*piVar1 != (int *)0x0) &&\n       ((iVar4 = *(int *)*piVar1, iVar4 != 0 &&\n        (iVar4 = strcmp(*(char **)(iVar4 + 4),*(char **)((int)iarg + 8)), iVar4 == 0)))) break;\n    puVar7 = puVar7 + 1;\n  }\n  uVar2 = *(undefined4 *)((int)iarg + 4);\n  uVar6 = dcgettext(0,"warning: ",5);\n  einfo("%P: %C: %s%s\n",abfd,sec,piVar1[1],piVar1[2],uVar6,uVar2);\n  *(undefined4 *)iarg = 1;\nLAB_0002edfe:\n  free(__ptr);\n  return;\n}" primitive_type (function_declarator "warning_find_reloc(bfd *abfd,asection *sec,void *iarg)" identifier (parameter_list "(bfd *abfd,asection *sec,void *iarg)" ( (parameter_declaration "bfd *abfd" type_identifier (pointer_declarator "*abfd" * identifier)) , (parameter_declaration "asection *sec" type_identifier (pointer_declarator "*sec" * identifier)) , (parameter_declaration "void *iarg" primitive_type (pointer_declarator "*iarg" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *__ptr;\n  int iVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  \n                    /* WARNING: Load size is inaccurate */\n  if (*iarg != 0) {\n    return;\n  }\n  iVar3 = bfd_get_reloc_upper_bound(abfd,sec);\n  if (iVar3 < 0) {\n    pcVar5 = (char *)dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    einfo(pcVar5,abfd);\n  }\n  else if (iVar3 == 0) {\n    return;\n  }\n  __ptr = (undefined4 *)xmalloc(iVar3);\n  iVar3 = bfd_canonicalize_reloc(abfd,sec,__ptr,*(undefined4 *)((int)iarg + 0xc));\n  if (iVar3 < 0) {\n    pcVar5 = (char *)dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    einfo(pcVar5,abfd);\n  }\n  puVar7 = __ptr;\n  while( true ) {\n    if ((__ptr + iVar3 <= puVar7) || (piVar1 = (int *)*puVar7, piVar1 == (int *)0x0))\n    goto LAB_0002edfe;\n    if (((int *)*piVar1 != (int *)0x0) &&\n       ((iVar4 = *(int *)*piVar1, iVar4 != 0 &&\n        (iVar4 = strcmp(*(char **)(iVar4 + 4),*(char **)((int)iarg + 8)), iVar4 == 0)))) break;\n    puVar7 = puVar7 + 1;\n  }\n  uVar2 = *(undefined4 *)((int)iarg + 4);\n  uVar6 = dcgettext(0,"warning: ",5);\n  einfo("%P: %C: %s%s\n",abfd,sec,piVar1[1],piVar1[2],uVar6,uVar2);\n  *(undefined4 *)iarg = 1;\nLAB_0002edfe:\n  free(__ptr);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) comment (if_statement "if (*iarg != 0) {\n    return;\n  }" if (parenthesized_expression "(*iarg != 0)" ( (binary_expression "*iarg != 0" (pointer_expression "*iarg" * identifier) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar3 = bfd_get_reloc_upper_bound(abfd,sec);" (assignment_expression "iVar3 = 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 (iVar3 < 0) {\n    pcVar5 = (char *)dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    einfo(pcVar5,abfd);\n  }\n  else if (iVar3 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n    pcVar5 = (char *)dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    einfo(pcVar5,abfd);\n  }" { (expression_statement "pcVar5 = (char *)dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);" (assignment_expression "pcVar5 = (char *)dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5)" identifier (argument_list "(0,"%F%P: %pB: could not read relocs: %E\n",5)" ( number_literal , (string_literal ""%F%P: %pB: could not read relocs: %E\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "einfo(pcVar5,abfd);" (call_expression "einfo(pcVar5,abfd)" identifier (argument_list "(pcVar5,abfd)" ( identifier , identifier ))) ;) }) (else_clause "else if (iVar3 == 0) {\n    return;\n  }" else (if_statement "if (iVar3 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })))) (expression_statement "__ptr = (undefined4 *)xmalloc(iVar3);" (assignment_expression "__ptr = (undefined4 *)xmalloc(iVar3)" identifier = (cast_expression "(undefined4 *)xmalloc(iVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))))) ;) (expression_statement "iVar3 = bfd_canonicalize_reloc(abfd,sec,__ptr,*(undefined4 *)((int)iarg + 0xc));" (assignment_expression "iVar3 = bfd_canonicalize_reloc(abfd,sec,__ptr,*(undefined4 *)((int)iarg + 0xc))" identifier = (call_expression "bfd_canonicalize_reloc(abfd,sec,__ptr,*(undefined4 *)((int)iarg + 0xc))" identifier (argument_list "(abfd,sec,__ptr,*(undefined4 *)((int)iarg + 0xc))" ( identifier , identifier , identifier , (pointer_expression "*(undefined4 *)((int)iarg + 0xc)" * (cast_expression "(undefined4 *)((int)iarg + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)iarg + 0xc)" ( (binary_expression "(int)iarg + 0xc" (cast_expression "(int)iarg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) )))) ;) (if_statement "if (iVar3 < 0) {\n    pcVar5 = (char *)dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    einfo(pcVar5,abfd);\n  }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n    pcVar5 = (char *)dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    einfo(pcVar5,abfd);\n  }" { (expression_statement "pcVar5 = (char *)dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);" (assignment_expression "pcVar5 = (char *)dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5)" identifier (argument_list "(0,"%F%P: %pB: could not read relocs: %E\n",5)" ( number_literal , (string_literal ""%F%P: %pB: could not read relocs: %E\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "einfo(pcVar5,abfd);" (call_expression "einfo(pcVar5,abfd)" identifier (argument_list "(pcVar5,abfd)" ( identifier , identifier ))) ;) })) (expression_statement "puVar7 = __ptr;" (assignment_expression "puVar7 = __ptr" identifier = identifier) ;) (while_statement "while( true ) {\n    if ((__ptr + iVar3 <= puVar7) || (piVar1 = (int *)*puVar7, piVar1 == (int *)0x0))\n    goto LAB_0002edfe;\n    if (((int *)*piVar1 != (int *)0x0) &&\n       ((iVar4 = *(int *)*piVar1, iVar4 != 0 &&\n        (iVar4 = strcmp(*(char **)(iVar4 + 4),*(char **)((int)iarg + 8)), iVar4 == 0)))) break;\n    puVar7 = puVar7 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if ((__ptr + iVar3 <= puVar7) || (piVar1 = (int *)*puVar7, piVar1 == (int *)0x0))\n    goto LAB_0002edfe;\n    if (((int *)*piVar1 != (int *)0x0) &&\n       ((iVar4 = *(int *)*piVar1, iVar4 != 0 &&\n        (iVar4 = strcmp(*(char **)(iVar4 + 4),*(char **)((int)iarg + 8)), iVar4 == 0)))) break;\n    puVar7 = puVar7 + 1;\n  }" { (if_statement "if ((__ptr + iVar3 <= puVar7) || (piVar1 = (int *)*puVar7, piVar1 == (int *)0x0))\n    goto LAB_0002edfe;" if (parenthesized_expression "((__ptr + iVar3 <= puVar7) || (piVar1 = (int *)*puVar7, piVar1 == (int *)0x0))" ( (binary_expression "(__ptr + iVar3 <= puVar7) || (piVar1 = (int *)*puVar7, piVar1 == (int *)0x0)" (parenthesized_expression "(__ptr + iVar3 <= puVar7)" ( (binary_expression "__ptr + iVar3 <= puVar7" (binary_expression "__ptr + iVar3" identifier + identifier) <= identifier) )) || (parenthesized_expression "(piVar1 = (int *)*puVar7, piVar1 == (int *)0x0)" ( (comma_expression "piVar1 = (int *)*puVar7, piVar1 == (int *)0x0" (assignment_expression "piVar1 = (int *)*puVar7" identifier = (cast_expression "(int *)*puVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar7" * identifier))) , (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (goto_statement "goto LAB_0002edfe;" goto statement_identifier ;)) (if_statement "if (((int *)*piVar1 != (int *)0x0) &&\n       ((iVar4 = *(int *)*piVar1, iVar4 != 0 &&\n        (iVar4 = strcmp(*(char **)(iVar4 + 4),*(char **)((int)iarg + 8)), iVar4 == 0)))) break;" if (parenthesized_expression "(((int *)*piVar1 != (int *)0x0) &&\n       ((iVar4 = *(int *)*piVar1, iVar4 != 0 &&\n        (iVar4 = strcmp(*(char **)(iVar4 + 4),*(char **)((int)iarg + 8)), iVar4 == 0))))" ( (binary_expression "((int *)*piVar1 != (int *)0x0) &&\n       ((iVar4 = *(int *)*piVar1, iVar4 != 0 &&\n        (iVar4 = strcmp(*(char **)(iVar4 + 4),*(char **)((int)iarg + 8)), iVar4 == 0)))" (parenthesized_expression "((int *)*piVar1 != (int *)0x0)" ( (binary_expression "(int *)*piVar1 != (int *)0x0" (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier)) != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((iVar4 = *(int *)*piVar1, iVar4 != 0 &&\n        (iVar4 = strcmp(*(char **)(iVar4 + 4),*(char **)((int)iarg + 8)), iVar4 == 0)))" ( (parenthesized_expression "(iVar4 = *(int *)*piVar1, iVar4 != 0 &&\n        (iVar4 = strcmp(*(char **)(iVar4 + 4),*(char **)((int)iarg + 8)), iVar4 == 0))" ( (comma_expression "iVar4 = *(int *)*piVar1, iVar4 != 0 &&\n        (iVar4 = strcmp(*(char **)(iVar4 + 4),*(char **)((int)iarg + 8)), iVar4 == 0)" (assignment_expression "iVar4 = *(int *)*piVar1" identifier = (pointer_expression "*(int *)*piVar1" * (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier)))) , (binary_expression "iVar4 != 0 &&\n        (iVar4 = strcmp(*(char **)(iVar4 + 4),*(char **)((int)iarg + 8)), iVar4 == 0)" (binary_expression "iVar4 != 0" identifier != number_literal) && (parenthesized_expression "(iVar4 = strcmp(*(char **)(iVar4 + 4),*(char **)((int)iarg + 8)), iVar4 == 0)" ( (comma_expression "iVar4 = strcmp(*(char **)(iVar4 + 4),*(char **)((int)iarg + 8)), iVar4 == 0" (assignment_expression "iVar4 = strcmp(*(char **)(iVar4 + 4),*(char **)((int)iarg + 8))" identifier = (call_expression "strcmp(*(char **)(iVar4 + 4),*(char **)((int)iarg + 8))" identifier (argument_list "(*(char **)(iVar4 + 4),*(char **)((int)iarg + 8))" ( (pointer_expression "*(char **)(iVar4 + 4)" * (cast_expression "(char **)(iVar4 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) , (pointer_expression "*(char **)((int)iarg + 8)" * (cast_expression "(char **)((int)iarg + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)iarg + 8)" ( (binary_expression "(int)iarg + 8" (cast_expression "(int)iarg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) )))) , (binary_expression "iVar4 == 0" identifier == number_literal)) )))) )) ))) )) (break_statement "break;" break ;)) (expression_statement "puVar7 = puVar7 + 1;" (assignment_expression "puVar7 = puVar7 + 1" identifier = (binary_expression "puVar7 + 1" identifier + number_literal)) ;) })) (expression_statement "uVar2 = *(undefined4 *)((int)iarg + 4);" (assignment_expression "uVar2 = *(undefined4 *)((int)iarg + 4)" identifier = (pointer_expression "*(undefined4 *)((int)iarg + 4)" * (cast_expression "(undefined4 *)((int)iarg + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)iarg + 4)" ( (binary_expression "(int)iarg + 4" (cast_expression "(int)iarg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar6 = dcgettext(0,"warning: ",5);" (assignment_expression "uVar6 = dcgettext(0,"warning: ",5)" identifier = (call_expression "dcgettext(0,"warning: ",5)" identifier (argument_list "(0,"warning: ",5)" ( number_literal , (string_literal ""warning: "" " string_content ") , number_literal )))) ;) (expression_statement "einfo("%P: %C: %s%s\n",abfd,sec,piVar1[1],piVar1[2],uVar6,uVar2);" (call_expression "einfo("%P: %C: %s%s\n",abfd,sec,piVar1[1],piVar1[2],uVar6,uVar2)" identifier (argument_list "("%P: %C: %s%s\n",abfd,sec,piVar1[1],piVar1[2],uVar6,uVar2)" ( (string_literal ""%P: %C: %s%s\n"" " string_content escape_sequence ") , identifier , identifier , (subscript_expression "piVar1[1]" identifier [ number_literal ]) , (subscript_expression "piVar1[2]" identifier [ number_literal ]) , identifier , identifier ))) ;) (expression_statement "*(undefined4 *)iarg = 1;" (assignment_expression "*(undefined4 *)iarg = 1" (pointer_expression "*(undefined4 *)iarg" * (cast_expression "(undefined4 *)iarg" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (labeled_statement "LAB_0002edfe:\n  free(__ptr);" statement_identifier : (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0002ed40(undefined4 param_1,undefined4 param_2,int *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 *__ptr;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if (*param_3 != 0) {\n    return;\n  }\n  iVar2 = bfd_get_reloc_upper_bound(param_1,param_2);\n  if (iVar2 < 0) {\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }\n  else if (iVar2 == 0) {\n    return;\n  }\n  __ptr = (undefined4 *)xmalloc(iVar2);\n  iVar2 = bfd_canonicalize_reloc(param_1,param_2,__ptr,param_3[3]);\n  if (iVar2 < 0) {\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }\n  puVar5 = __ptr;\n  while( true ) {\n    if ((__ptr + iVar2 <= puVar5) || (piVar1 = (int *)*puVar5, piVar1 == (int *)0x0))\n    goto LAB_0002edfe;\n    if (((int *)*piVar1 != (int *)0x0) &&\n       ((iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)))) break;\n    puVar5 = puVar5 + 1;\n  }\n  iVar2 = param_3[1];\n  uVar4 = dcgettext(0,"warning: ",5);\n  FUN_00034d60("%P: %C: %s%s\n",param_1,param_2,piVar1[1],piVar1[2],uVar4,iVar2);\n  *param_3 = 1;\nLAB_0002edfe:\n  free(__ptr);\n  return;\n}\n\n" (function_definition "void FUN_0002ed40(undefined4 param_1,undefined4 param_2,int *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 *__ptr;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if (*param_3 != 0) {\n    return;\n  }\n  iVar2 = bfd_get_reloc_upper_bound(param_1,param_2);\n  if (iVar2 < 0) {\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }\n  else if (iVar2 == 0) {\n    return;\n  }\n  __ptr = (undefined4 *)xmalloc(iVar2);\n  iVar2 = bfd_canonicalize_reloc(param_1,param_2,__ptr,param_3[3]);\n  if (iVar2 < 0) {\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }\n  puVar5 = __ptr;\n  while( true ) {\n    if ((__ptr + iVar2 <= puVar5) || (piVar1 = (int *)*puVar5, piVar1 == (int *)0x0))\n    goto LAB_0002edfe;\n    if (((int *)*piVar1 != (int *)0x0) &&\n       ((iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)))) break;\n    puVar5 = puVar5 + 1;\n  }\n  iVar2 = param_3[1];\n  uVar4 = dcgettext(0,"warning: ",5);\n  FUN_00034d60("%P: %C: %s%s\n",param_1,param_2,piVar1[1],piVar1[2],uVar4,iVar2);\n  *param_3 = 1;\nLAB_0002edfe:\n  free(__ptr);\n  return;\n}" primitive_type (function_declarator "FUN_0002ed40(undefined4 param_1,undefined4 param_2,int *param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 *__ptr;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if (*param_3 != 0) {\n    return;\n  }\n  iVar2 = bfd_get_reloc_upper_bound(param_1,param_2);\n  if (iVar2 < 0) {\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }\n  else if (iVar2 == 0) {\n    return;\n  }\n  __ptr = (undefined4 *)xmalloc(iVar2);\n  iVar2 = bfd_canonicalize_reloc(param_1,param_2,__ptr,param_3[3]);\n  if (iVar2 < 0) {\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }\n  puVar5 = __ptr;\n  while( true ) {\n    if ((__ptr + iVar2 <= puVar5) || (piVar1 = (int *)*puVar5, piVar1 == (int *)0x0))\n    goto LAB_0002edfe;\n    if (((int *)*piVar1 != (int *)0x0) &&\n       ((iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)))) break;\n    puVar5 = puVar5 + 1;\n  }\n  iVar2 = param_3[1];\n  uVar4 = dcgettext(0,"warning: ",5);\n  FUN_00034d60("%P: %C: %s%s\n",param_1,param_2,piVar1[1],piVar1[2],uVar4,iVar2);\n  *param_3 = 1;\nLAB_0002edfe:\n  free(__ptr);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (if_statement "if (*param_3 != 0) {\n    return;\n  }" if (parenthesized_expression "(*param_3 != 0)" ( (binary_expression "*param_3 != 0" (pointer_expression "*param_3" * identifier) != number_literal) )) (compound_statement "{\n    return;\n  }" { (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 (iVar2 < 0) {\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }\n  else if (iVar2 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }" { (expression_statement "uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);" (assignment_expression "uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5)" identifier (argument_list "(0,"%F%P: %pB: could not read relocs: %E\n",5)" ( number_literal , (string_literal ""%F%P: %pB: could not read relocs: %E\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034d60(uVar4,param_1);" (call_expression "FUN_00034d60(uVar4,param_1)" identifier (argument_list "(uVar4,param_1)" ( identifier , identifier ))) ;) }) (else_clause "else if (iVar2 == 0) {\n    return;\n  }" else (if_statement "if (iVar2 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })))) (expression_statement "__ptr = (undefined4 *)xmalloc(iVar2);" (assignment_expression "__ptr = (undefined4 *)xmalloc(iVar2)" identifier = (cast_expression "(undefined4 *)xmalloc(iVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))))) ;) (expression_statement "iVar2 = bfd_canonicalize_reloc(param_1,param_2,__ptr,param_3[3]);" (assignment_expression "iVar2 = bfd_canonicalize_reloc(param_1,param_2,__ptr,param_3[3])" identifier = (call_expression "bfd_canonicalize_reloc(param_1,param_2,__ptr,param_3[3])" identifier (argument_list "(param_1,param_2,__ptr,param_3[3])" ( identifier , identifier , identifier , (subscript_expression "param_3[3]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar2 < 0) {\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }" { (expression_statement "uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);" (assignment_expression "uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5)" identifier (argument_list "(0,"%F%P: %pB: could not read relocs: %E\n",5)" ( number_literal , (string_literal ""%F%P: %pB: could not read relocs: %E\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034d60(uVar4,param_1);" (call_expression "FUN_00034d60(uVar4,param_1)" identifier (argument_list "(uVar4,param_1)" ( identifier , identifier ))) ;) })) (expression_statement "puVar5 = __ptr;" (assignment_expression "puVar5 = __ptr" identifier = identifier) ;) (while_statement "while( true ) {\n    if ((__ptr + iVar2 <= puVar5) || (piVar1 = (int *)*puVar5, piVar1 == (int *)0x0))\n    goto LAB_0002edfe;\n    if (((int *)*piVar1 != (int *)0x0) &&\n       ((iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)))) break;\n    puVar5 = puVar5 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if ((__ptr + iVar2 <= puVar5) || (piVar1 = (int *)*puVar5, piVar1 == (int *)0x0))\n    goto LAB_0002edfe;\n    if (((int *)*piVar1 != (int *)0x0) &&\n       ((iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)))) break;\n    puVar5 = puVar5 + 1;\n  }" { (if_statement "if ((__ptr + iVar2 <= puVar5) || (piVar1 = (int *)*puVar5, piVar1 == (int *)0x0))\n    goto LAB_0002edfe;" if (parenthesized_expression "((__ptr + iVar2 <= puVar5) || (piVar1 = (int *)*puVar5, piVar1 == (int *)0x0))" ( (binary_expression "(__ptr + iVar2 <= puVar5) || (piVar1 = (int *)*puVar5, piVar1 == (int *)0x0)" (parenthesized_expression "(__ptr + iVar2 <= puVar5)" ( (binary_expression "__ptr + iVar2 <= puVar5" (binary_expression "__ptr + iVar2" identifier + identifier) <= identifier) )) || (parenthesized_expression "(piVar1 = (int *)*puVar5, piVar1 == (int *)0x0)" ( (comma_expression "piVar1 = (int *)*puVar5, piVar1 == (int *)0x0" (assignment_expression "piVar1 = (int *)*puVar5" identifier = (cast_expression "(int *)*puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) , (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (goto_statement "goto LAB_0002edfe;" goto statement_identifier ;)) (if_statement "if (((int *)*piVar1 != (int *)0x0) &&\n       ((iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)))) break;" if (parenthesized_expression "(((int *)*piVar1 != (int *)0x0) &&\n       ((iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0))))" ( (binary_expression "((int *)*piVar1 != (int *)0x0) &&\n       ((iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)))" (parenthesized_expression "((int *)*piVar1 != (int *)0x0)" ( (binary_expression "(int *)*piVar1 != (int *)0x0" (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier)) != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)))" ( (parenthesized_expression "(iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0))" ( (comma_expression "iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)" (assignment_expression "iVar3 = *(int *)*piVar1" identifier = (pointer_expression "*(int *)*piVar1" * (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier)))) , (binary_expression "iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)" (binary_expression "iVar3 != 0" identifier != number_literal) && (parenthesized_expression "(iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)" ( (comma_expression "iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0" (assignment_expression "iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2])" identifier = (call_expression "strcmp(*(char **)(iVar3 + 4),(char *)param_3[2])" identifier (argument_list "(*(char **)(iVar3 + 4),(char *)param_3[2])" ( (pointer_expression "*(char **)(iVar3 + 4)" * (cast_expression "(char **)(iVar3 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) , (cast_expression "(char *)param_3[2]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_3[2]" identifier [ number_literal ])) )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) )))) )) ))) )) (break_statement "break;" break ;)) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) })) (expression_statement "iVar2 = param_3[1];" (assignment_expression "iVar2 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = dcgettext(0,"warning: ",5);" (assignment_expression "uVar4 = dcgettext(0,"warning: ",5)" identifier = (call_expression "dcgettext(0,"warning: ",5)" identifier (argument_list "(0,"warning: ",5)" ( number_literal , (string_literal ""warning: "" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00034d60("%P: %C: %s%s\n",param_1,param_2,piVar1[1],piVar1[2],uVar4,iVar2);" (call_expression "FUN_00034d60("%P: %C: %s%s\n",param_1,param_2,piVar1[1],piVar1[2],uVar4,iVar2)" identifier (argument_list "("%P: %C: %s%s\n",param_1,param_2,piVar1[1],piVar1[2],uVar4,iVar2)" ( (string_literal ""%P: %C: %s%s\n"" " string_content escape_sequence ") , identifier , identifier , (subscript_expression "piVar1[1]" identifier [ number_literal ]) , (subscript_expression "piVar1[2]" identifier [ number_literal ]) , identifier , identifier ))) ;) (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" * identifier) = number_literal) ;) (labeled_statement "LAB_0002edfe:\n  free(__ptr);" statement_identifier : (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) <= IDENT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)))) , (binary_expression (binary_expression IDENT != LIT) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) )))) , (binary_expression IDENT == LIT)) )))) )) ))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") , IDENT , IDENT , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (return_statement return ;) })))
(function_definition "void FUN_0002ed40(undefined4 param_1,undefined4 param_2,int *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 *__ptr;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if (*param_3 != 0) {\n    return;\n  }\n  iVar2 = bfd_get_reloc_upper_bound(param_1,param_2);\n  if (iVar2 < 0) {\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }\n  else if (iVar2 == 0) {\n    return;\n  }\n  __ptr = (undefined4 *)xmalloc(iVar2);\n  iVar2 = bfd_canonicalize_reloc(param_1,param_2,__ptr,param_3[3]);\n  if (iVar2 < 0) {\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }\n  puVar5 = __ptr;\n  while( true ) {\n    if ((__ptr + iVar2 <= puVar5) || (piVar1 = (int *)*puVar5, piVar1 == (int *)0x0))\n    goto LAB_0002edfe;\n    if (((int *)*piVar1 != (int *)0x0) &&\n       ((iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)))) break;\n    puVar5 = puVar5 + 1;\n  }\n  iVar2 = param_3[1];\n  uVar4 = dcgettext(0,"warning: ",5);\n  FUN_00034d60("%P: %C: %s%s\n",param_1,param_2,piVar1[1],piVar1[2],uVar4,iVar2);\n  *param_3 = 1;\nLAB_0002edfe:\n  free(__ptr);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0002ed40(undefined4 param_1,undefined4 param_2,int *param_3)" (identifier "FUN_0002ed40") (parameter_list "(undefined4 param_1,undefined4 param_2,int *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (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 *__ptr;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if (*param_3 != 0) {\n    return;\n  }\n  iVar2 = bfd_get_reloc_upper_bound(param_1,param_2);\n  if (iVar2 < 0) {\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }\n  else if (iVar2 == 0) {\n    return;\n  }\n  __ptr = (undefined4 *)xmalloc(iVar2);\n  iVar2 = bfd_canonicalize_reloc(param_1,param_2,__ptr,param_3[3]);\n  if (iVar2 < 0) {\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }\n  puVar5 = __ptr;\n  while( true ) {\n    if ((__ptr + iVar2 <= puVar5) || (piVar1 = (int *)*puVar5, piVar1 == (int *)0x0))\n    goto LAB_0002edfe;\n    if (((int *)*piVar1 != (int *)0x0) &&\n       ((iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)))) break;\n    puVar5 = puVar5 + 1;\n  }\n  iVar2 = param_3[1];\n  uVar4 = dcgettext(0,"warning: ",5);\n  FUN_00034d60("%P: %C: %s%s\n",param_1,param_2,piVar1[1],piVar1[2],uVar4,iVar2);\n  *param_3 = 1;\nLAB_0002edfe:\n  free(__ptr);\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 *__ptr;" (type_identifier "undefined4") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (if_statement "if (*param_3 != 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(*param_3 != 0)" (( "(") (binary_expression "*param_3 != 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (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 (iVar2 < 0) {\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }\n  else if (iVar2 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }" ({ "{") (expression_statement "uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);" (assignment_expression "uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5)" (identifier "dcgettext") (argument_list "(0,"%F%P: %pB: could not read relocs: %E\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%F%P: %pB: could not read relocs: %E\n"" (" """) (string_content "%F%P: %pB: could not read relocs: %E") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00034d60(uVar4,param_1);" (call_expression "FUN_00034d60(uVar4,param_1)" (identifier "FUN_00034d60") (argument_list "(uVar4,param_1)" (( "(") (identifier "uVar4") (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}")) (else_clause "else if (iVar2 == 0) {\n    return;\n  }" (else "else") (if_statement "if (iVar2 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))))) (expression_statement "__ptr = (undefined4 *)xmalloc(iVar2);" (assignment_expression "__ptr = (undefined4 *)xmalloc(iVar2)" (identifier "__ptr") (= "=") (cast_expression "(undefined4 *)xmalloc(iVar2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(iVar2)" (identifier "xmalloc") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))))) (; ";")) (expression_statement "iVar2 = bfd_canonicalize_reloc(param_1,param_2,__ptr,param_3[3]);" (assignment_expression "iVar2 = bfd_canonicalize_reloc(param_1,param_2,__ptr,param_3[3])" (identifier "iVar2") (= "=") (call_expression "bfd_canonicalize_reloc(param_1,param_2,__ptr,param_3[3])" (identifier "bfd_canonicalize_reloc") (argument_list "(param_1,param_2,__ptr,param_3[3])" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "__ptr") (, ",") (subscript_expression "param_3[3]" (identifier "param_3") ([ "[") (number_literal "3") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar2 < 0) {\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }" (if "if") (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);\n    FUN_00034d60(uVar4,param_1);\n  }" ({ "{") (expression_statement "uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);" (assignment_expression "uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5)" (identifier "dcgettext") (argument_list "(0,"%F%P: %pB: could not read relocs: %E\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%F%P: %pB: could not read relocs: %E\n"" (" """) (string_content "%F%P: %pB: could not read relocs: %E") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00034d60(uVar4,param_1);" (call_expression "FUN_00034d60(uVar4,param_1)" (identifier "FUN_00034d60") (argument_list "(uVar4,param_1)" (( "(") (identifier "uVar4") (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar5 = __ptr;" (assignment_expression "puVar5 = __ptr" (identifier "puVar5") (= "=") (identifier "__ptr")) (; ";")) (while_statement "while( true ) {\n    if ((__ptr + iVar2 <= puVar5) || (piVar1 = (int *)*puVar5, piVar1 == (int *)0x0))\n    goto LAB_0002edfe;\n    if (((int *)*piVar1 != (int *)0x0) &&\n       ((iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)))) break;\n    puVar5 = puVar5 + 1;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if ((__ptr + iVar2 <= puVar5) || (piVar1 = (int *)*puVar5, piVar1 == (int *)0x0))\n    goto LAB_0002edfe;\n    if (((int *)*piVar1 != (int *)0x0) &&\n       ((iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)))) break;\n    puVar5 = puVar5 + 1;\n  }" ({ "{") (if_statement "if ((__ptr + iVar2 <= puVar5) || (piVar1 = (int *)*puVar5, piVar1 == (int *)0x0))\n    goto LAB_0002edfe;" (if "if") (parenthesized_expression "((__ptr + iVar2 <= puVar5) || (piVar1 = (int *)*puVar5, piVar1 == (int *)0x0))" (( "(") (binary_expression "(__ptr + iVar2 <= puVar5) || (piVar1 = (int *)*puVar5, piVar1 == (int *)0x0)" (parenthesized_expression "(__ptr + iVar2 <= puVar5)" (( "(") (binary_expression "__ptr + iVar2 <= puVar5" (binary_expression "__ptr + iVar2" (identifier "__ptr") (+ "+") (identifier "iVar2")) (<= "<=") (identifier "puVar5")) () ")")) (|| "||") (parenthesized_expression "(piVar1 = (int *)*puVar5, piVar1 == (int *)0x0)" (( "(") (comma_expression "piVar1 = (int *)*puVar5, piVar1 == (int *)0x0" (assignment_expression "piVar1 = (int *)*puVar5" (identifier "piVar1") (= "=") (cast_expression "(int *)*puVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")))) (, ",") (binary_expression "piVar1 == (int *)0x0" (identifier "piVar1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (goto_statement "goto LAB_0002edfe;" (goto "goto") (statement_identifier "LAB_0002edfe") (; ";"))) (if_statement "if (((int *)*piVar1 != (int *)0x0) &&\n       ((iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)))) break;" (if "if") (parenthesized_expression "(((int *)*piVar1 != (int *)0x0) &&\n       ((iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0))))" (( "(") (binary_expression "((int *)*piVar1 != (int *)0x0) &&\n       ((iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)))" (parenthesized_expression "((int *)*piVar1 != (int *)0x0)" (( "(") (binary_expression "(int *)*piVar1 != (int *)0x0" (cast_expression "(int *)*piVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "((iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)))" (( "(") (parenthesized_expression "(iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0))" (( "(") (comma_expression "iVar3 = *(int *)*piVar1, iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)" (assignment_expression "iVar3 = *(int *)*piVar1" (identifier "iVar3") (= "=") (pointer_expression "*(int *)*piVar1" (* "*") (cast_expression "(int *)*piVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))))) (, ",") (binary_expression "iVar3 != 0 &&\n        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)" (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) (&& "&&") (parenthesized_expression "(iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)" (( "(") (comma_expression "iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0" (assignment_expression "iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2])" (identifier "iVar3") (= "=") (call_expression "strcmp(*(char **)(iVar3 + 4),(char *)param_3[2])" (identifier "strcmp") (argument_list "(*(char **)(iVar3 + 4),(char *)param_3[2])" (( "(") (pointer_expression "*(char **)(iVar3 + 4)" (* "*") (cast_expression "(char **)(iVar3 + 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 4)" (( "(") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) () ")")))) (, ",") (cast_expression "(char *)param_3[2]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]"))) () ")")))) (, ",") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0"))) () ")")))) () ")")) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" (identifier "puVar5") (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "iVar2 = param_3[1];" (assignment_expression "iVar2 = param_3[1]" (identifier "iVar2") (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar4 = dcgettext(0,"warning: ",5);" (assignment_expression "uVar4 = dcgettext(0,"warning: ",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"warning: ",5)" (identifier "dcgettext") (argument_list "(0,"warning: ",5)" (( "(") (number_literal "0") (, ",") (string_literal ""warning: "" (" """) (string_content "warning: ") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00034d60("%P: %C: %s%s\n",param_1,param_2,piVar1[1],piVar1[2],uVar4,iVar2);" (call_expression "FUN_00034d60("%P: %C: %s%s\n",param_1,param_2,piVar1[1],piVar1[2],uVar4,iVar2)" (identifier "FUN_00034d60") (argument_list "("%P: %C: %s%s\n",param_1,param_2,piVar1[1],piVar1[2],uVar4,iVar2)" (( "(") (string_literal ""%P: %C: %s%s\n"" (" """) (string_content "%P: %C: %s%s") (escape_sequence "\n") (" """)) (, ",") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (, ",") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (, ",") (identifier "uVar4") (, ",") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "1")) (; ";")) (labeled_statement "LAB_0002edfe:\n  free(__ptr);" (statement_identifier "LAB_0002edfe") (: ":") (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* 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 *iarg)

{
  int *var_9;
  type_3 uVar2;
  int var_2;
  type_3 *var_7;
  int var_10;
  char *pcVar5;
  type_3 uVar6;
  type_3 *var_8;
  
                    /* WARNING: Load size is inaccurate */
  if (*iarg != 0) {
    return;
  }
  var_2 = var_1(abfd,sec);
  if (var_2 < 0) {
    pcVar5 = (char *)var_3(0,"%F%P: %pB: could not read relocs: %E\n",5);
    var_4(pcVar5,abfd);
  }
  else if (var_2 == 0) {
    return;
  }
  var_7 = (type_3 *)var_5(var_2);
  var_2 = var_6(abfd,sec,var_7,*(type_3 *)((int)iarg + 0xc));
  if (var_2 < 0) {
    pcVar5 = (char *)var_3(0,"%F%P: %pB: could not read relocs: %E\n",5);
    var_4(pcVar5,abfd);
  }
  var_8 = var_7;
  while( true ) {
    if ((var_7 + var_2 <= var_8) || (var_9 = (int *)*var_8, var_9 == (int *)0x0))
    goto LAB_0002edfe;
    if (((int *)*var_9 != (int *)0x0) &&
       ((var_10 = *(int *)*var_9, var_10 != 0 &&
        (var_10 = var_11(*(char **)(var_10 + 4),*(char **)((int)iarg + 8)), var_10 == 0)))) break;
    var_8 = var_8 + 1;
  }
  uVar2 = *(type_3 *)((int)iarg + 4);
  uVar6 = var_3(0,"warning: ",5);
  var_4("%P: %C: %s%s\n",abfd,sec,var_9[1],var_9[2],uVar6,uVar2);
  *(type_3 *)iarg = 1;
LAB_0002edfe:
  var_12(var_7);
  return;
}


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

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

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

{
  int *piVar1;
  int iVar2;
  undefined4 *__ptr;
  int iVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  
  if (*param_3 != 0) {
    return;
  }
  iVar2 = bfd_get_reloc_upper_bound(param_1,param_2);
  if (iVar2 < 0) {
    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);
    FUN_00034d60(uVar4,param_1);
  }
  else if (iVar2 == 0) {
    return;
  }
  __ptr = (undefined4 *)xmalloc(iVar2);
  iVar2 = bfd_canonicalize_reloc(param_1,param_2,__ptr,param_3[3]);
  if (iVar2 < 0) {
    uVar4 = dcgettext(0,"%F%P: %pB: could not read relocs: %E\n",5);
    FUN_00034d60(uVar4,param_1);
  }
  puVar5 = __ptr;
  while( true ) {
    if ((__ptr + iVar2 <= puVar5) || (piVar1 = (int *)*puVar5, piVar1 == (int *)0x0))
    goto LAB_0002edfe;
    if (((int *)*piVar1 != (int *)0x0) &&
       ((iVar3 = *(int *)*piVar1, iVar3 != 0 &&
        (iVar3 = strcmp(*(char **)(iVar3 + 4),(char *)param_3[2]), iVar3 == 0)))) break;
    puVar5 = puVar5 + 1;
  }
  iVar2 = param_3[1];
  uVar4 = dcgettext(0,"warning: ",5);
  FUN_00034d60("%P: %C: %s%s\n",param_1,param_2,piVar1[1],piVar1[2],uVar4,iVar2);
  *param_3 = 1;
LAB_0002edfe:
  free(__ptr);
  return;
}

