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

asection *
elf32_arm_add_stub_section
          (char *stub_sec_name,asection *output_section,asection *after_input_section,
          uint alignment_power)

{
  lang_statement_union *plVar1;
  asection *section;
  lang_output_section_statement_type *output;
  bfd_boolean bVar2;
  char *fmt;
  lang_statement_union *plVar3;
  hook_stub_info info;
  
  section = (asection *)
            bfd_make_section_anyway_with_flags(stub_file->the_bfd,stub_sec_name,0x20411f);
  if (section != (asection *)0x0) {
    section->alignment_power = alignment_power;
    output = lang_output_section_get(output_section);
    info.input_section = after_input_section;
    lang_list_init(&info.add);
    lang_add_section(&info.add,section,(flag_info *)0x0,output);
    if (info.add.head != (lang_statement_union *)0x0) {
      if (after_input_section == (asection *)0x0) {
        plVar1 = (output->children).head;
        if (plVar1 != (lang_statement_union *)0x0) {
          do {
            plVar3 = plVar1;
            plVar1 = (plVar3->header).next;
          } while (plVar1 != (lang_statement_union *)0x0);
          (plVar3->header).next = info.add.head;
          return section;
        }
        (output->children).head = info.add.head;
      }
      else {
        bVar2 = hook_in_stub(&info,&(output->children).head);
        if (bVar2 == 0) goto LAB_0004ee50;
      }
      return section;
    }
  }
LAB_0004ee50:
  fmt = (char *)dcgettext(0,"%X%P: can not make stub section: %E\n",5);
  einfo(fmt);
  return (asection *)0x0;
}



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

int FUN_0004edc0(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  int *piVar5;
  int local_28 [2];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x4edc9;
  iVar2 = bfd_make_section_anyway_with_flags(*(undefined4 *)(DAT_001c3f8c + 0x10),param_1,0x20411f);
  if (iVar2 != 0) {
    *(undefined4 *)(iVar2 + 0x58) = param_4;
    iVar3 = FUN_00025760(param_2);
    local_20 = param_3;
    FUN_00023ea0(local_28);
    FUN_000265f0(local_28,iVar2,0,iVar3);
    if (local_28[0] != 0) {
      if (param_3 == 0) {
        piVar1 = *(int **)(iVar3 + 8);
        if (*(int **)(iVar3 + 8) != (int *)0x0) {
          do {
            piVar5 = piVar1;
            piVar1 = (int *)*piVar5;
          } while (piVar1 != (int *)0x0);
          *piVar5 = local_28[0];
          return iVar2;
        }
        *(int *)(iVar3 + 8) = local_28[0];
      }
      else {
        iVar3 = FUN_0004e060();
        if (iVar3 == 0) goto LAB_0004ee50;
      }
      return iVar2;
    }
  }
LAB_0004ee50:
  uVar4 = dcgettext(0,"%X%P: can not make stub section: %E\n",5);
  FUN_00034dc0(uVar4);
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00017c50
ADD EBX,0x173237
SUB ESP,0x20
PUSH 0x20411f
PUSH dword ptr [ESP + 0x38]
MOV EAX,dword ptr [EBX + 0x1f8c]
PUSH dword ptr [EAX + 0x10]
CALL 0x00016260
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0004ee50
MOV EBP,EAX
MOV EAX,dword ptr [ESP + 0x3c]
SUB ESP,0xc
MOV dword ptr [EBP + 0x58],EAX
PUSH dword ptr [ESP + 0x40]
CALL 0x00025760
MOV ESI,EAX
MOV EAX,dword ptr [ESP + 0x48]
MOV dword ptr [ESP + 0x1c],EAX
POP EDX
LEA EDI,[ESP + 0x10]
PUSH EDI
CALL 0x00023ea0
PUSH ESI
PUSH 0x0
PUSH EBP
PUSH EDI
CALL 0x000265f0
MOV EDX,dword ptr [ESP + 0x24]
ADD ESP,0x20
TEST EDX,EDX
JZ 0x0004ee50
MOV EAX,dword ptr [ESP + 0x38]
TEST EAX,EAX
JZ 0x0004ee80
LEA EDX,[ESI + 0x8]
MOV EAX,EDI
CALL 0x0004e060
TEST EAX,EAX
JZ 0x0004ee50
ADD ESP,0x1c
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xffeed398]
XOR EBP,EBP
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00016380
MOV dword ptr [ESP],EAX
CALL 0x00034dc0
ADD ESP,0x10
MOV EAX,EBP
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EBX,dword ptr [ESI + 0x8]
TEST EBX,EBX
JNZ 0x0004ee92
JMP 0x0004eea8
MOV EBX,EAX
MOV EAX,dword ptr [EBX]
TEST EAX,EAX
JNZ 0x0004ee90
MOV dword ptr [EBX],EDX
ADD ESP,0x1c
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESI + 0x8],EDX
JMP 0x0004ee45
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0004edc0(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int local_28 [2];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4edc9;\n  iVar2 = bfd_make_section_anyway_with_flags(*(undefined4 *)(DAT_001c3f8c + 0x10),param_1,0x20411f);\n  if (iVar2 != 0) {\n    *(undefined4 *)(iVar2 + 0x58) = param_4;\n    iVar3 = FUN_00025760(param_2);\n    local_20 = param_3;\n    FUN_00023ea0(local_28);\n    FUN_000265f0(local_28,iVar2,0,iVar3);\n    if (local_28[0] != 0) {\n      if (param_3 == 0) {\n        piVar1 = *(int **)(iVar3 + 8);\n        if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }\n        *(int *)(iVar3 + 8) = local_28[0];\n      }\n      else {\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }\n      return iVar2;\n    }\n  }\nLAB_0004ee50:\n  uVar4 = dcgettext(0,"%X%P: can not make stub section: %E\n",5);\n  FUN_00034dc0(uVar4);\n  return 0;\n}\n\n" comment (function_definition "int FUN_0004edc0(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int local_28 [2];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4edc9;\n  iVar2 = bfd_make_section_anyway_with_flags(*(undefined4 *)(DAT_001c3f8c + 0x10),param_1,0x20411f);\n  if (iVar2 != 0) {\n    *(undefined4 *)(iVar2 + 0x58) = param_4;\n    iVar3 = FUN_00025760(param_2);\n    local_20 = param_3;\n    FUN_00023ea0(local_28);\n    FUN_000265f0(local_28,iVar2,0,iVar3);\n    if (local_28[0] != 0) {\n      if (param_3 == 0) {\n        piVar1 = *(int **)(iVar3 + 8);\n        if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }\n        *(int *)(iVar3 + 8) = local_28[0];\n      }\n      else {\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }\n      return iVar2;\n    }\n  }\nLAB_0004ee50:\n  uVar4 = dcgettext(0,"%X%P: can not make stub section: %E\n",5);\n  FUN_00034dc0(uVar4);\n  return 0;\n}" primitive_type (function_declarator "FUN_0004edc0(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int local_28 [2];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4edc9;\n  iVar2 = bfd_make_section_anyway_with_flags(*(undefined4 *)(DAT_001c3f8c + 0x10),param_1,0x20411f);\n  if (iVar2 != 0) {\n    *(undefined4 *)(iVar2 + 0x58) = param_4;\n    iVar3 = FUN_00025760(param_2);\n    local_20 = param_3;\n    FUN_00023ea0(local_28);\n    FUN_000265f0(local_28,iVar2,0,iVar3);\n    if (local_28[0] != 0) {\n      if (param_3 == 0) {\n        piVar1 = *(int **)(iVar3 + 8);\n        if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }\n        *(int *)(iVar3 + 8) = local_28[0];\n      }\n      else {\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }\n      return iVar2;\n    }\n  }\nLAB_0004ee50:\n  uVar4 = dcgettext(0,"%X%P: can not make stub section: %E\n",5);\n  FUN_00034dc0(uVar4);\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int local_28 [2];" primitive_type (array_declarator "local_28 [2]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x4edc9;" (assignment_expression "uStack_14 = 0x4edc9" identifier = number_literal) ;) (expression_statement "iVar2 = bfd_make_section_anyway_with_flags(*(undefined4 *)(DAT_001c3f8c + 0x10),param_1,0x20411f);" (assignment_expression "iVar2 = bfd_make_section_anyway_with_flags(*(undefined4 *)(DAT_001c3f8c + 0x10),param_1,0x20411f)" identifier = (call_expression "bfd_make_section_anyway_with_flags(*(undefined4 *)(DAT_001c3f8c + 0x10),param_1,0x20411f)" identifier (argument_list "(*(undefined4 *)(DAT_001c3f8c + 0x10),param_1,0x20411f)" ( (pointer_expression "*(undefined4 *)(DAT_001c3f8c + 0x10)" * (cast_expression "(undefined4 *)(DAT_001c3f8c + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c3f8c + 0x10)" ( (binary_expression "DAT_001c3f8c + 0x10" identifier + number_literal) )))) , identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n    *(undefined4 *)(iVar2 + 0x58) = param_4;\n    iVar3 = FUN_00025760(param_2);\n    local_20 = param_3;\n    FUN_00023ea0(local_28);\n    FUN_000265f0(local_28,iVar2,0,iVar3);\n    if (local_28[0] != 0) {\n      if (param_3 == 0) {\n        piVar1 = *(int **)(iVar3 + 8);\n        if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }\n        *(int *)(iVar3 + 8) = local_28[0];\n      }\n      else {\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }\n      return iVar2;\n    }\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined4 *)(iVar2 + 0x58) = param_4;\n    iVar3 = FUN_00025760(param_2);\n    local_20 = param_3;\n    FUN_00023ea0(local_28);\n    FUN_000265f0(local_28,iVar2,0,iVar3);\n    if (local_28[0] != 0) {\n      if (param_3 == 0) {\n        piVar1 = *(int **)(iVar3 + 8);\n        if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }\n        *(int *)(iVar3 + 8) = local_28[0];\n      }\n      else {\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }\n      return iVar2;\n    }\n  }" { (expression_statement "*(undefined4 *)(iVar2 + 0x58) = param_4;" (assignment_expression "*(undefined4 *)(iVar2 + 0x58) = param_4" (pointer_expression "*(undefined4 *)(iVar2 + 0x58)" * (cast_expression "(undefined4 *)(iVar2 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x58)" ( (binary_expression "iVar2 + 0x58" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = FUN_00025760(param_2);" (assignment_expression "iVar3 = FUN_00025760(param_2)" identifier = (call_expression "FUN_00025760(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "local_20 = param_3;" (assignment_expression "local_20 = param_3" identifier = identifier) ;) (expression_statement "FUN_00023ea0(local_28);" (call_expression "FUN_00023ea0(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) (expression_statement "FUN_000265f0(local_28,iVar2,0,iVar3);" (call_expression "FUN_000265f0(local_28,iVar2,0,iVar3)" identifier (argument_list "(local_28,iVar2,0,iVar3)" ( identifier , identifier , number_literal , identifier ))) ;) (if_statement "if (local_28[0] != 0) {\n      if (param_3 == 0) {\n        piVar1 = *(int **)(iVar3 + 8);\n        if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }\n        *(int *)(iVar3 + 8) = local_28[0];\n      }\n      else {\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }\n      return iVar2;\n    }" if (parenthesized_expression "(local_28[0] != 0)" ( (binary_expression "local_28[0] != 0" (subscript_expression "local_28[0]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      if (param_3 == 0) {\n        piVar1 = *(int **)(iVar3 + 8);\n        if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }\n        *(int *)(iVar3 + 8) = local_28[0];\n      }\n      else {\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }\n      return iVar2;\n    }" { (if_statement "if (param_3 == 0) {\n        piVar1 = *(int **)(iVar3 + 8);\n        if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }\n        *(int *)(iVar3 + 8) = local_28[0];\n      }\n      else {\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n        piVar1 = *(int **)(iVar3 + 8);\n        if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }\n        *(int *)(iVar3 + 8) = local_28[0];\n      }" { (expression_statement "piVar1 = *(int **)(iVar3 + 8);" (assignment_expression "piVar1 = *(int **)(iVar3 + 8)" identifier = (pointer_expression "*(int **)(iVar3 + 8)" * (cast_expression "(int **)(iVar3 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) ))))) ;) (if_statement "if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }" if (parenthesized_expression "(*(int **)(iVar3 + 8) != (int *)0x0)" ( (binary_expression "*(int **)(iVar3 + 8) != (int *)0x0" (pointer_expression "*(int **)(iVar3 + 8)" * (cast_expression "(int **)(iVar3 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }" { (do_statement "do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);" do (compound_statement "{\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          }" { (expression_statement "piVar5 = piVar1;" (assignment_expression "piVar5 = piVar1" identifier = identifier) ;) (expression_statement "piVar1 = (int *)*piVar5;" (assignment_expression "piVar1 = (int *)*piVar5" identifier = (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier))) ;) }) while (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "*piVar5 = local_28[0];" (assignment_expression "*piVar5 = local_28[0]" (pointer_expression "*piVar5" * identifier) = (subscript_expression "local_28[0]" identifier [ number_literal ])) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "*(int *)(iVar3 + 8) = local_28[0];" (assignment_expression "*(int *)(iVar3 + 8) = local_28[0]" (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) = (subscript_expression "local_28[0]" identifier [ number_literal ])) ;) }) (else_clause "else {\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }" else (compound_statement "{\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }" { (expression_statement "iVar3 = FUN_0004e060();" (assignment_expression "iVar3 = FUN_0004e060()" identifier = (call_expression "FUN_0004e060()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == 0) goto LAB_0004ee50;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0004ee50;" goto statement_identifier ;)) }))) (return_statement "return iVar2;" return identifier ;) })) })) (labeled_statement "LAB_0004ee50:\n  uVar4 = dcgettext(0,"%X%P: can not make stub section: %E\n",5);" statement_identifier : (expression_statement "uVar4 = dcgettext(0,"%X%P: can not make stub section: %E\n",5);" (assignment_expression "uVar4 = dcgettext(0,"%X%P: can not make stub section: %E\n",5)" identifier = (call_expression "dcgettext(0,"%X%P: can not make stub section: %E\n",5)" identifier (argument_list "(0,"%X%P: can not make stub section: %E\n",5)" ( number_literal , (string_literal ""%X%P: can not make stub section: %E\n"" " string_content escape_sequence ") , number_literal )))) ;)) (expression_statement "FUN_00034dc0(uVar4);" (call_expression "FUN_00034dc0(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nasection *\nelf32_arm_add_stub_section\n          (char *stub_sec_name,asection *output_section,asection *after_input_section,\n          uint alignment_power)\n\n{\n  lang_statement_union *plVar1;\n  asection *section;\n  lang_output_section_statement_type *output;\n  bfd_boolean bVar2;\n  char *fmt;\n  lang_statement_union *plVar3;\n  hook_stub_info info;\n  \n  section = (asection *)\n            bfd_make_section_anyway_with_flags(stub_file->the_bfd,stub_sec_name,0x20411f);\n  if (section != (asection *)0x0) {\n    section->alignment_power = alignment_power;\n    output = lang_output_section_get(output_section);\n    info.input_section = after_input_section;\n    lang_list_init(&info.add);\n    lang_add_section(&info.add,section,(flag_info *)0x0,output);\n    if (info.add.head != (lang_statement_union *)0x0) {\n      if (after_input_section == (asection *)0x0) {\n        plVar1 = (output->children).head;\n        if (plVar1 != (lang_statement_union *)0x0) {\n          do {\n            plVar3 = plVar1;\n            plVar1 = (plVar3->header).next;\n          } while (plVar1 != (lang_statement_union *)0x0);\n          (plVar3->header).next = info.add.head;\n          return section;\n        }\n        (output->children).head = info.add.head;\n      }\n      else {\n        bVar2 = hook_in_stub(&info,&(output->children).head);\n        if (bVar2 == 0) goto LAB_0004ee50;\n      }\n      return section;\n    }\n  }\nLAB_0004ee50:\n  fmt = (char *)dcgettext(0,"%X%P: can not make stub section: %E\n",5);\n  einfo(fmt);\n  return (asection *)0x0;\n}\n\n" comment comment (function_definition "asection *\nelf32_arm_add_stub_section\n          (char *stub_sec_name,asection *output_section,asection *after_input_section,\n          uint alignment_power)\n\n{\n  lang_statement_union *plVar1;\n  asection *section;\n  lang_output_section_statement_type *output;\n  bfd_boolean bVar2;\n  char *fmt;\n  lang_statement_union *plVar3;\n  hook_stub_info info;\n  \n  section = (asection *)\n            bfd_make_section_anyway_with_flags(stub_file->the_bfd,stub_sec_name,0x20411f);\n  if (section != (asection *)0x0) {\n    section->alignment_power = alignment_power;\n    output = lang_output_section_get(output_section);\n    info.input_section = after_input_section;\n    lang_list_init(&info.add);\n    lang_add_section(&info.add,section,(flag_info *)0x0,output);\n    if (info.add.head != (lang_statement_union *)0x0) {\n      if (after_input_section == (asection *)0x0) {\n        plVar1 = (output->children).head;\n        if (plVar1 != (lang_statement_union *)0x0) {\n          do {\n            plVar3 = plVar1;\n            plVar1 = (plVar3->header).next;\n          } while (plVar1 != (lang_statement_union *)0x0);\n          (plVar3->header).next = info.add.head;\n          return section;\n        }\n        (output->children).head = info.add.head;\n      }\n      else {\n        bVar2 = hook_in_stub(&info,&(output->children).head);\n        if (bVar2 == 0) goto LAB_0004ee50;\n      }\n      return section;\n    }\n  }\nLAB_0004ee50:\n  fmt = (char *)dcgettext(0,"%X%P: can not make stub section: %E\n",5);\n  einfo(fmt);\n  return (asection *)0x0;\n}" type_identifier (pointer_declarator "*\nelf32_arm_add_stub_section\n          (char *stub_sec_name,asection *output_section,asection *after_input_section,\n          uint alignment_power)" * (function_declarator "elf32_arm_add_stub_section\n          (char *stub_sec_name,asection *output_section,asection *after_input_section,\n          uint alignment_power)" identifier (parameter_list "(char *stub_sec_name,asection *output_section,asection *after_input_section,\n          uint alignment_power)" ( (parameter_declaration "char *stub_sec_name" primitive_type (pointer_declarator "*stub_sec_name" * identifier)) , (parameter_declaration "asection *output_section" type_identifier (pointer_declarator "*output_section" * identifier)) , (parameter_declaration "asection *after_input_section" type_identifier (pointer_declarator "*after_input_section" * identifier)) , (parameter_declaration "uint alignment_power" type_identifier identifier) )))) (compound_statement "{\n  lang_statement_union *plVar1;\n  asection *section;\n  lang_output_section_statement_type *output;\n  bfd_boolean bVar2;\n  char *fmt;\n  lang_statement_union *plVar3;\n  hook_stub_info info;\n  \n  section = (asection *)\n            bfd_make_section_anyway_with_flags(stub_file->the_bfd,stub_sec_name,0x20411f);\n  if (section != (asection *)0x0) {\n    section->alignment_power = alignment_power;\n    output = lang_output_section_get(output_section);\n    info.input_section = after_input_section;\n    lang_list_init(&info.add);\n    lang_add_section(&info.add,section,(flag_info *)0x0,output);\n    if (info.add.head != (lang_statement_union *)0x0) {\n      if (after_input_section == (asection *)0x0) {\n        plVar1 = (output->children).head;\n        if (plVar1 != (lang_statement_union *)0x0) {\n          do {\n            plVar3 = plVar1;\n            plVar1 = (plVar3->header).next;\n          } while (plVar1 != (lang_statement_union *)0x0);\n          (plVar3->header).next = info.add.head;\n          return section;\n        }\n        (output->children).head = info.add.head;\n      }\n      else {\n        bVar2 = hook_in_stub(&info,&(output->children).head);\n        if (bVar2 == 0) goto LAB_0004ee50;\n      }\n      return section;\n    }\n  }\nLAB_0004ee50:\n  fmt = (char *)dcgettext(0,"%X%P: can not make stub section: %E\n",5);\n  einfo(fmt);\n  return (asection *)0x0;\n}" { (declaration "lang_statement_union *plVar1;" type_identifier (pointer_declarator "*plVar1" * identifier) ;) (declaration "asection *section;" type_identifier (pointer_declarator "*section" * identifier) ;) (declaration "lang_output_section_statement_type *output;" type_identifier (pointer_declarator "*output" * identifier) ;) (declaration "bfd_boolean bVar2;" type_identifier identifier ;) (declaration "char *fmt;" primitive_type (pointer_declarator "*fmt" * identifier) ;) (declaration "lang_statement_union *plVar3;" type_identifier (pointer_declarator "*plVar3" * identifier) ;) (declaration "hook_stub_info info;" type_identifier identifier ;) (expression_statement "section = (asection *)\n            bfd_make_section_anyway_with_flags(stub_file->the_bfd,stub_sec_name,0x20411f);" (assignment_expression "section = (asection *)\n            bfd_make_section_anyway_with_flags(stub_file->the_bfd,stub_sec_name,0x20411f)" identifier = (cast_expression "(asection *)\n            bfd_make_section_anyway_with_flags(stub_file->the_bfd,stub_sec_name,0x20411f)" ( (type_descriptor "asection *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_make_section_anyway_with_flags(stub_file->the_bfd,stub_sec_name,0x20411f)" identifier (argument_list "(stub_file->the_bfd,stub_sec_name,0x20411f)" ( (field_expression "stub_file->the_bfd" identifier -> field_identifier) , identifier , number_literal ))))) ;) (if_statement "if (section != (asection *)0x0) {\n    section->alignment_power = alignment_power;\n    output = lang_output_section_get(output_section);\n    info.input_section = after_input_section;\n    lang_list_init(&info.add);\n    lang_add_section(&info.add,section,(flag_info *)0x0,output);\n    if (info.add.head != (lang_statement_union *)0x0) {\n      if (after_input_section == (asection *)0x0) {\n        plVar1 = (output->children).head;\n        if (plVar1 != (lang_statement_union *)0x0) {\n          do {\n            plVar3 = plVar1;\n            plVar1 = (plVar3->header).next;\n          } while (plVar1 != (lang_statement_union *)0x0);\n          (plVar3->header).next = info.add.head;\n          return section;\n        }\n        (output->children).head = info.add.head;\n      }\n      else {\n        bVar2 = hook_in_stub(&info,&(output->children).head);\n        if (bVar2 == 0) goto LAB_0004ee50;\n      }\n      return section;\n    }\n  }" if (parenthesized_expression "(section != (asection *)0x0)" ( (binary_expression "section != (asection *)0x0" identifier != (cast_expression "(asection *)0x0" ( (type_descriptor "asection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    section->alignment_power = alignment_power;\n    output = lang_output_section_get(output_section);\n    info.input_section = after_input_section;\n    lang_list_init(&info.add);\n    lang_add_section(&info.add,section,(flag_info *)0x0,output);\n    if (info.add.head != (lang_statement_union *)0x0) {\n      if (after_input_section == (asection *)0x0) {\n        plVar1 = (output->children).head;\n        if (plVar1 != (lang_statement_union *)0x0) {\n          do {\n            plVar3 = plVar1;\n            plVar1 = (plVar3->header).next;\n          } while (plVar1 != (lang_statement_union *)0x0);\n          (plVar3->header).next = info.add.head;\n          return section;\n        }\n        (output->children).head = info.add.head;\n      }\n      else {\n        bVar2 = hook_in_stub(&info,&(output->children).head);\n        if (bVar2 == 0) goto LAB_0004ee50;\n      }\n      return section;\n    }\n  }" { (expression_statement "section->alignment_power = alignment_power;" (assignment_expression "section->alignment_power = alignment_power" (field_expression "section->alignment_power" identifier -> field_identifier) = identifier) ;) (expression_statement "output = lang_output_section_get(output_section);" (assignment_expression "output = lang_output_section_get(output_section)" identifier = (call_expression "lang_output_section_get(output_section)" identifier (argument_list "(output_section)" ( identifier )))) ;) (expression_statement "info.input_section = after_input_section;" (assignment_expression "info.input_section = after_input_section" (field_expression "info.input_section" identifier . field_identifier) = identifier) ;) (expression_statement "lang_list_init(&info.add);" (call_expression "lang_list_init(&info.add)" identifier (argument_list "(&info.add)" ( (pointer_expression "&info.add" & (field_expression "info.add" identifier . field_identifier)) ))) ;) (expression_statement "lang_add_section(&info.add,section,(flag_info *)0x0,output);" (call_expression "lang_add_section(&info.add,section,(flag_info *)0x0,output)" identifier (argument_list "(&info.add,section,(flag_info *)0x0,output)" ( (pointer_expression "&info.add" & (field_expression "info.add" identifier . field_identifier)) , identifier , (cast_expression "(flag_info *)0x0" ( (type_descriptor "flag_info *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier ))) ;) (if_statement "if (info.add.head != (lang_statement_union *)0x0) {\n      if (after_input_section == (asection *)0x0) {\n        plVar1 = (output->children).head;\n        if (plVar1 != (lang_statement_union *)0x0) {\n          do {\n            plVar3 = plVar1;\n            plVar1 = (plVar3->header).next;\n          } while (plVar1 != (lang_statement_union *)0x0);\n          (plVar3->header).next = info.add.head;\n          return section;\n        }\n        (output->children).head = info.add.head;\n      }\n      else {\n        bVar2 = hook_in_stub(&info,&(output->children).head);\n        if (bVar2 == 0) goto LAB_0004ee50;\n      }\n      return section;\n    }" if (parenthesized_expression "(info.add.head != (lang_statement_union *)0x0)" ( (binary_expression "info.add.head != (lang_statement_union *)0x0" (field_expression "info.add.head" (field_expression "info.add" identifier . field_identifier) . field_identifier) != (cast_expression "(lang_statement_union *)0x0" ( (type_descriptor "lang_statement_union *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (after_input_section == (asection *)0x0) {\n        plVar1 = (output->children).head;\n        if (plVar1 != (lang_statement_union *)0x0) {\n          do {\n            plVar3 = plVar1;\n            plVar1 = (plVar3->header).next;\n          } while (plVar1 != (lang_statement_union *)0x0);\n          (plVar3->header).next = info.add.head;\n          return section;\n        }\n        (output->children).head = info.add.head;\n      }\n      else {\n        bVar2 = hook_in_stub(&info,&(output->children).head);\n        if (bVar2 == 0) goto LAB_0004ee50;\n      }\n      return section;\n    }" { (if_statement "if (after_input_section == (asection *)0x0) {\n        plVar1 = (output->children).head;\n        if (plVar1 != (lang_statement_union *)0x0) {\n          do {\n            plVar3 = plVar1;\n            plVar1 = (plVar3->header).next;\n          } while (plVar1 != (lang_statement_union *)0x0);\n          (plVar3->header).next = info.add.head;\n          return section;\n        }\n        (output->children).head = info.add.head;\n      }\n      else {\n        bVar2 = hook_in_stub(&info,&(output->children).head);\n        if (bVar2 == 0) goto LAB_0004ee50;\n      }" if (parenthesized_expression "(after_input_section == (asection *)0x0)" ( (binary_expression "after_input_section == (asection *)0x0" identifier == (cast_expression "(asection *)0x0" ( (type_descriptor "asection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        plVar1 = (output->children).head;\n        if (plVar1 != (lang_statement_union *)0x0) {\n          do {\n            plVar3 = plVar1;\n            plVar1 = (plVar3->header).next;\n          } while (plVar1 != (lang_statement_union *)0x0);\n          (plVar3->header).next = info.add.head;\n          return section;\n        }\n        (output->children).head = info.add.head;\n      }" { (expression_statement "plVar1 = (output->children).head;" (assignment_expression "plVar1 = (output->children).head" identifier = (field_expression "(output->children).head" (parenthesized_expression "(output->children)" ( (field_expression "output->children" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if (plVar1 != (lang_statement_union *)0x0) {\n          do {\n            plVar3 = plVar1;\n            plVar1 = (plVar3->header).next;\n          } while (plVar1 != (lang_statement_union *)0x0);\n          (plVar3->header).next = info.add.head;\n          return section;\n        }" if (parenthesized_expression "(plVar1 != (lang_statement_union *)0x0)" ( (binary_expression "plVar1 != (lang_statement_union *)0x0" identifier != (cast_expression "(lang_statement_union *)0x0" ( (type_descriptor "lang_statement_union *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          do {\n            plVar3 = plVar1;\n            plVar1 = (plVar3->header).next;\n          } while (plVar1 != (lang_statement_union *)0x0);\n          (plVar3->header).next = info.add.head;\n          return section;\n        }" { (do_statement "do {\n            plVar3 = plVar1;\n            plVar1 = (plVar3->header).next;\n          } while (plVar1 != (lang_statement_union *)0x0);" do (compound_statement "{\n            plVar3 = plVar1;\n            plVar1 = (plVar3->header).next;\n          }" { (expression_statement "plVar3 = plVar1;" (assignment_expression "plVar3 = plVar1" identifier = identifier) ;) (expression_statement "plVar1 = (plVar3->header).next;" (assignment_expression "plVar1 = (plVar3->header).next" identifier = (field_expression "(plVar3->header).next" (parenthesized_expression "(plVar3->header)" ( (field_expression "plVar3->header" identifier -> field_identifier) )) . field_identifier)) ;) }) while (parenthesized_expression "(plVar1 != (lang_statement_union *)0x0)" ( (binary_expression "plVar1 != (lang_statement_union *)0x0" identifier != (cast_expression "(lang_statement_union *)0x0" ( (type_descriptor "lang_statement_union *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "(plVar3->header).next = info.add.head;" (assignment_expression "(plVar3->header).next = info.add.head" (field_expression "(plVar3->header).next" (parenthesized_expression "(plVar3->header)" ( (field_expression "plVar3->header" identifier -> field_identifier) )) . field_identifier) = (field_expression "info.add.head" (field_expression "info.add" identifier . field_identifier) . field_identifier)) ;) (return_statement "return section;" return identifier ;) })) (expression_statement "(output->children).head = info.add.head;" (assignment_expression "(output->children).head = info.add.head" (field_expression "(output->children).head" (parenthesized_expression "(output->children)" ( (field_expression "output->children" identifier -> field_identifier) )) . field_identifier) = (field_expression "info.add.head" (field_expression "info.add" identifier . field_identifier) . field_identifier)) ;) }) (else_clause "else {\n        bVar2 = hook_in_stub(&info,&(output->children).head);\n        if (bVar2 == 0) goto LAB_0004ee50;\n      }" else (compound_statement "{\n        bVar2 = hook_in_stub(&info,&(output->children).head);\n        if (bVar2 == 0) goto LAB_0004ee50;\n      }" { (expression_statement "bVar2 = hook_in_stub(&info,&(output->children).head);" (assignment_expression "bVar2 = hook_in_stub(&info,&(output->children).head)" identifier = (call_expression "hook_in_stub(&info,&(output->children).head)" identifier (argument_list "(&info,&(output->children).head)" ( (pointer_expression "&info" & identifier) , (pointer_expression "&(output->children).head" & (field_expression "(output->children).head" (parenthesized_expression "(output->children)" ( (field_expression "output->children" identifier -> field_identifier) )) . field_identifier)) )))) ;) (if_statement "if (bVar2 == 0) goto LAB_0004ee50;" if (parenthesized_expression "(bVar2 == 0)" ( (binary_expression "bVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0004ee50;" goto statement_identifier ;)) }))) (return_statement "return section;" return identifier ;) })) })) (labeled_statement "LAB_0004ee50:\n  fmt = (char *)dcgettext(0,"%X%P: can not make stub section: %E\n",5);" statement_identifier : (expression_statement "fmt = (char *)dcgettext(0,"%X%P: can not make stub section: %E\n",5);" (assignment_expression "fmt = (char *)dcgettext(0,"%X%P: can not make stub section: %E\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%X%P: can not make stub section: %E\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%X%P: can not make stub section: %E\n",5)" identifier (argument_list "(0,"%X%P: can not make stub section: %E\n",5)" ( number_literal , (string_literal ""%X%P: can not make stub section: %E\n"" " string_content escape_sequence ") , number_literal ))))) ;)) (expression_statement "einfo(fmt);" (call_expression "einfo(fmt)" identifier (argument_list "(fmt)" ( identifier ))) ;) (return_statement "return (asection *)0x0;" return (cast_expression "(asection *)0x0" ( (type_descriptor "asection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "int FUN_0004edc0(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int local_28 [2];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4edc9;\n  iVar2 = bfd_make_section_anyway_with_flags(*(undefined4 *)(DAT_001c3f8c + 0x10),param_1,0x20411f);\n  if (iVar2 != 0) {\n    *(undefined4 *)(iVar2 + 0x58) = param_4;\n    iVar3 = FUN_00025760(param_2);\n    local_20 = param_3;\n    FUN_00023ea0(local_28);\n    FUN_000265f0(local_28,iVar2,0,iVar3);\n    if (local_28[0] != 0) {\n      if (param_3 == 0) {\n        piVar1 = *(int **)(iVar3 + 8);\n        if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }\n        *(int *)(iVar3 + 8) = local_28[0];\n      }\n      else {\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }\n      return iVar2;\n    }\n  }\nLAB_0004ee50:\n  uVar4 = dcgettext(0,"%X%P: can not make stub section: %E\n",5);\n  FUN_00034dc0(uVar4);\n  return 0;\n}\n\n" (function_definition "int FUN_0004edc0(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int local_28 [2];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4edc9;\n  iVar2 = bfd_make_section_anyway_with_flags(*(undefined4 *)(DAT_001c3f8c + 0x10),param_1,0x20411f);\n  if (iVar2 != 0) {\n    *(undefined4 *)(iVar2 + 0x58) = param_4;\n    iVar3 = FUN_00025760(param_2);\n    local_20 = param_3;\n    FUN_00023ea0(local_28);\n    FUN_000265f0(local_28,iVar2,0,iVar3);\n    if (local_28[0] != 0) {\n      if (param_3 == 0) {\n        piVar1 = *(int **)(iVar3 + 8);\n        if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }\n        *(int *)(iVar3 + 8) = local_28[0];\n      }\n      else {\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }\n      return iVar2;\n    }\n  }\nLAB_0004ee50:\n  uVar4 = dcgettext(0,"%X%P: can not make stub section: %E\n",5);\n  FUN_00034dc0(uVar4);\n  return 0;\n}" primitive_type (function_declarator "FUN_0004edc0(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int local_28 [2];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4edc9;\n  iVar2 = bfd_make_section_anyway_with_flags(*(undefined4 *)(DAT_001c3f8c + 0x10),param_1,0x20411f);\n  if (iVar2 != 0) {\n    *(undefined4 *)(iVar2 + 0x58) = param_4;\n    iVar3 = FUN_00025760(param_2);\n    local_20 = param_3;\n    FUN_00023ea0(local_28);\n    FUN_000265f0(local_28,iVar2,0,iVar3);\n    if (local_28[0] != 0) {\n      if (param_3 == 0) {\n        piVar1 = *(int **)(iVar3 + 8);\n        if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }\n        *(int *)(iVar3 + 8) = local_28[0];\n      }\n      else {\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }\n      return iVar2;\n    }\n  }\nLAB_0004ee50:\n  uVar4 = dcgettext(0,"%X%P: can not make stub section: %E\n",5);\n  FUN_00034dc0(uVar4);\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int local_28 [2];" primitive_type (array_declarator "local_28 [2]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x4edc9;" (assignment_expression "uStack_14 = 0x4edc9" identifier = number_literal) ;) (expression_statement "iVar2 = bfd_make_section_anyway_with_flags(*(undefined4 *)(DAT_001c3f8c + 0x10),param_1,0x20411f);" (assignment_expression "iVar2 = bfd_make_section_anyway_with_flags(*(undefined4 *)(DAT_001c3f8c + 0x10),param_1,0x20411f)" identifier = (call_expression "bfd_make_section_anyway_with_flags(*(undefined4 *)(DAT_001c3f8c + 0x10),param_1,0x20411f)" identifier (argument_list "(*(undefined4 *)(DAT_001c3f8c + 0x10),param_1,0x20411f)" ( (pointer_expression "*(undefined4 *)(DAT_001c3f8c + 0x10)" * (cast_expression "(undefined4 *)(DAT_001c3f8c + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c3f8c + 0x10)" ( (binary_expression "DAT_001c3f8c + 0x10" identifier + number_literal) )))) , identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n    *(undefined4 *)(iVar2 + 0x58) = param_4;\n    iVar3 = FUN_00025760(param_2);\n    local_20 = param_3;\n    FUN_00023ea0(local_28);\n    FUN_000265f0(local_28,iVar2,0,iVar3);\n    if (local_28[0] != 0) {\n      if (param_3 == 0) {\n        piVar1 = *(int **)(iVar3 + 8);\n        if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }\n        *(int *)(iVar3 + 8) = local_28[0];\n      }\n      else {\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }\n      return iVar2;\n    }\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined4 *)(iVar2 + 0x58) = param_4;\n    iVar3 = FUN_00025760(param_2);\n    local_20 = param_3;\n    FUN_00023ea0(local_28);\n    FUN_000265f0(local_28,iVar2,0,iVar3);\n    if (local_28[0] != 0) {\n      if (param_3 == 0) {\n        piVar1 = *(int **)(iVar3 + 8);\n        if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }\n        *(int *)(iVar3 + 8) = local_28[0];\n      }\n      else {\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }\n      return iVar2;\n    }\n  }" { (expression_statement "*(undefined4 *)(iVar2 + 0x58) = param_4;" (assignment_expression "*(undefined4 *)(iVar2 + 0x58) = param_4" (pointer_expression "*(undefined4 *)(iVar2 + 0x58)" * (cast_expression "(undefined4 *)(iVar2 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x58)" ( (binary_expression "iVar2 + 0x58" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = FUN_00025760(param_2);" (assignment_expression "iVar3 = FUN_00025760(param_2)" identifier = (call_expression "FUN_00025760(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "local_20 = param_3;" (assignment_expression "local_20 = param_3" identifier = identifier) ;) (expression_statement "FUN_00023ea0(local_28);" (call_expression "FUN_00023ea0(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) (expression_statement "FUN_000265f0(local_28,iVar2,0,iVar3);" (call_expression "FUN_000265f0(local_28,iVar2,0,iVar3)" identifier (argument_list "(local_28,iVar2,0,iVar3)" ( identifier , identifier , number_literal , identifier ))) ;) (if_statement "if (local_28[0] != 0) {\n      if (param_3 == 0) {\n        piVar1 = *(int **)(iVar3 + 8);\n        if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }\n        *(int *)(iVar3 + 8) = local_28[0];\n      }\n      else {\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }\n      return iVar2;\n    }" if (parenthesized_expression "(local_28[0] != 0)" ( (binary_expression "local_28[0] != 0" (subscript_expression "local_28[0]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      if (param_3 == 0) {\n        piVar1 = *(int **)(iVar3 + 8);\n        if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }\n        *(int *)(iVar3 + 8) = local_28[0];\n      }\n      else {\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }\n      return iVar2;\n    }" { (if_statement "if (param_3 == 0) {\n        piVar1 = *(int **)(iVar3 + 8);\n        if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }\n        *(int *)(iVar3 + 8) = local_28[0];\n      }\n      else {\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n        piVar1 = *(int **)(iVar3 + 8);\n        if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }\n        *(int *)(iVar3 + 8) = local_28[0];\n      }" { (expression_statement "piVar1 = *(int **)(iVar3 + 8);" (assignment_expression "piVar1 = *(int **)(iVar3 + 8)" identifier = (pointer_expression "*(int **)(iVar3 + 8)" * (cast_expression "(int **)(iVar3 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) ))))) ;) (if_statement "if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }" if (parenthesized_expression "(*(int **)(iVar3 + 8) != (int *)0x0)" ( (binary_expression "*(int **)(iVar3 + 8) != (int *)0x0" (pointer_expression "*(int **)(iVar3 + 8)" * (cast_expression "(int **)(iVar3 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }" { (do_statement "do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);" do (compound_statement "{\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          }" { (expression_statement "piVar5 = piVar1;" (assignment_expression "piVar5 = piVar1" identifier = identifier) ;) (expression_statement "piVar1 = (int *)*piVar5;" (assignment_expression "piVar1 = (int *)*piVar5" identifier = (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier))) ;) }) while (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "*piVar5 = local_28[0];" (assignment_expression "*piVar5 = local_28[0]" (pointer_expression "*piVar5" * identifier) = (subscript_expression "local_28[0]" identifier [ number_literal ])) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "*(int *)(iVar3 + 8) = local_28[0];" (assignment_expression "*(int *)(iVar3 + 8) = local_28[0]" (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) = (subscript_expression "local_28[0]" identifier [ number_literal ])) ;) }) (else_clause "else {\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }" else (compound_statement "{\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }" { (expression_statement "iVar3 = FUN_0004e060();" (assignment_expression "iVar3 = FUN_0004e060()" identifier = (call_expression "FUN_0004e060()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == 0) goto LAB_0004ee50;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0004ee50;" goto statement_identifier ;)) }))) (return_statement "return iVar2;" return identifier ;) })) })) (labeled_statement "LAB_0004ee50:\n  uVar4 = dcgettext(0,"%X%P: can not make stub section: %E\n",5);" statement_identifier : (expression_statement "uVar4 = dcgettext(0,"%X%P: can not make stub section: %E\n",5);" (assignment_expression "uVar4 = dcgettext(0,"%X%P: can not make stub section: %E\n",5)" identifier = (call_expression "dcgettext(0,"%X%P: can not make stub section: %E\n",5)" identifier (argument_list "(0,"%X%P: can not make stub section: %E\n",5)" ( number_literal , (string_literal ""%X%P: can not make stub section: %E\n"" " string_content escape_sequence ") , number_literal )))) ;)) (expression_statement "FUN_00034dc0(uVar4);" (call_expression "FUN_00034dc0(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (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 *)) ) LIT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression IDENT [ LIT ])) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }))) (return_statement return IDENT ;) })) })) (labeled_statement statement_identifier : (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 ))) ;) (return_statement return LIT ;) })))
(function_definition "int FUN_0004edc0(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int local_28 [2];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4edc9;\n  iVar2 = bfd_make_section_anyway_with_flags(*(undefined4 *)(DAT_001c3f8c + 0x10),param_1,0x20411f);\n  if (iVar2 != 0) {\n    *(undefined4 *)(iVar2 + 0x58) = param_4;\n    iVar3 = FUN_00025760(param_2);\n    local_20 = param_3;\n    FUN_00023ea0(local_28);\n    FUN_000265f0(local_28,iVar2,0,iVar3);\n    if (local_28[0] != 0) {\n      if (param_3 == 0) {\n        piVar1 = *(int **)(iVar3 + 8);\n        if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }\n        *(int *)(iVar3 + 8) = local_28[0];\n      }\n      else {\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }\n      return iVar2;\n    }\n  }\nLAB_0004ee50:\n  uVar4 = dcgettext(0,"%X%P: can not make stub section: %E\n",5);\n  FUN_00034dc0(uVar4);\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_0004edc0(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4)" (identifier "FUN_0004edc0") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4)" (( "(") (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") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int local_28 [2];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4edc9;\n  iVar2 = bfd_make_section_anyway_with_flags(*(undefined4 *)(DAT_001c3f8c + 0x10),param_1,0x20411f);\n  if (iVar2 != 0) {\n    *(undefined4 *)(iVar2 + 0x58) = param_4;\n    iVar3 = FUN_00025760(param_2);\n    local_20 = param_3;\n    FUN_00023ea0(local_28);\n    FUN_000265f0(local_28,iVar2,0,iVar3);\n    if (local_28[0] != 0) {\n      if (param_3 == 0) {\n        piVar1 = *(int **)(iVar3 + 8);\n        if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }\n        *(int *)(iVar3 + 8) = local_28[0];\n      }\n      else {\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }\n      return iVar2;\n    }\n  }\nLAB_0004ee50:\n  uVar4 = dcgettext(0,"%X%P: can not make stub section: %E\n",5);\n  FUN_00034dc0(uVar4);\n  return 0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "int local_28 [2];" (primitive_type "int") (array_declarator "local_28 [2]" (identifier "local_28") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x4edc9;" (assignment_expression "uStack_14 = 0x4edc9" (identifier "uStack_14") (= "=") (number_literal "0x4edc9")) (; ";")) (expression_statement "iVar2 = bfd_make_section_anyway_with_flags(*(undefined4 *)(DAT_001c3f8c + 0x10),param_1,0x20411f);" (assignment_expression "iVar2 = bfd_make_section_anyway_with_flags(*(undefined4 *)(DAT_001c3f8c + 0x10),param_1,0x20411f)" (identifier "iVar2") (= "=") (call_expression "bfd_make_section_anyway_with_flags(*(undefined4 *)(DAT_001c3f8c + 0x10),param_1,0x20411f)" (identifier "bfd_make_section_anyway_with_flags") (argument_list "(*(undefined4 *)(DAT_001c3f8c + 0x10),param_1,0x20411f)" (( "(") (pointer_expression "*(undefined4 *)(DAT_001c3f8c + 0x10)" (* "*") (cast_expression "(undefined4 *)(DAT_001c3f8c + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001c3f8c + 0x10)" (( "(") (binary_expression "DAT_001c3f8c + 0x10" (identifier "DAT_001c3f8c") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (identifier "param_1") (, ",") (number_literal "0x20411f") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    *(undefined4 *)(iVar2 + 0x58) = param_4;\n    iVar3 = FUN_00025760(param_2);\n    local_20 = param_3;\n    FUN_00023ea0(local_28);\n    FUN_000265f0(local_28,iVar2,0,iVar3);\n    if (local_28[0] != 0) {\n      if (param_3 == 0) {\n        piVar1 = *(int **)(iVar3 + 8);\n        if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }\n        *(int *)(iVar3 + 8) = local_28[0];\n      }\n      else {\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }\n      return iVar2;\n    }\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)(iVar2 + 0x58) = param_4;\n    iVar3 = FUN_00025760(param_2);\n    local_20 = param_3;\n    FUN_00023ea0(local_28);\n    FUN_000265f0(local_28,iVar2,0,iVar3);\n    if (local_28[0] != 0) {\n      if (param_3 == 0) {\n        piVar1 = *(int **)(iVar3 + 8);\n        if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }\n        *(int *)(iVar3 + 8) = local_28[0];\n      }\n      else {\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }\n      return iVar2;\n    }\n  }" ({ "{") (expression_statement "*(undefined4 *)(iVar2 + 0x58) = param_4;" (assignment_expression "*(undefined4 *)(iVar2 + 0x58) = param_4" (pointer_expression "*(undefined4 *)(iVar2 + 0x58)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x58)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x58)" (( "(") (binary_expression "iVar2 + 0x58" (identifier "iVar2") (+ "+") (number_literal "0x58")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (expression_statement "iVar3 = FUN_00025760(param_2);" (assignment_expression "iVar3 = FUN_00025760(param_2)" (identifier "iVar3") (= "=") (call_expression "FUN_00025760(param_2)" (identifier "FUN_00025760") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "local_20 = param_3;" (assignment_expression "local_20 = param_3" (identifier "local_20") (= "=") (identifier "param_3")) (; ";")) (expression_statement "FUN_00023ea0(local_28);" (call_expression "FUN_00023ea0(local_28)" (identifier "FUN_00023ea0") (argument_list "(local_28)" (( "(") (identifier "local_28") () ")"))) (; ";")) (expression_statement "FUN_000265f0(local_28,iVar2,0,iVar3);" (call_expression "FUN_000265f0(local_28,iVar2,0,iVar3)" (identifier "FUN_000265f0") (argument_list "(local_28,iVar2,0,iVar3)" (( "(") (identifier "local_28") (, ",") (identifier "iVar2") (, ",") (number_literal "0") (, ",") (identifier "iVar3") () ")"))) (; ";")) (if_statement "if (local_28[0] != 0) {\n      if (param_3 == 0) {\n        piVar1 = *(int **)(iVar3 + 8);\n        if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }\n        *(int *)(iVar3 + 8) = local_28[0];\n      }\n      else {\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }\n      return iVar2;\n    }" (if "if") (parenthesized_expression "(local_28[0] != 0)" (( "(") (binary_expression "local_28[0] != 0" (subscript_expression "local_28[0]" (identifier "local_28") ([ "[") (number_literal "0") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (param_3 == 0) {\n        piVar1 = *(int **)(iVar3 + 8);\n        if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }\n        *(int *)(iVar3 + 8) = local_28[0];\n      }\n      else {\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }\n      return iVar2;\n    }" ({ "{") (if_statement "if (param_3 == 0) {\n        piVar1 = *(int **)(iVar3 + 8);\n        if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }\n        *(int *)(iVar3 + 8) = local_28[0];\n      }\n      else {\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        piVar1 = *(int **)(iVar3 + 8);\n        if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }\n        *(int *)(iVar3 + 8) = local_28[0];\n      }" ({ "{") (expression_statement "piVar1 = *(int **)(iVar3 + 8);" (assignment_expression "piVar1 = *(int **)(iVar3 + 8)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(iVar3 + 8)" (* "*") (cast_expression "(int **)(iVar3 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (*(int **)(iVar3 + 8) != (int *)0x0) {\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }" (if "if") (parenthesized_expression "(*(int **)(iVar3 + 8) != (int *)0x0)" (( "(") (binary_expression "*(int **)(iVar3 + 8) != (int *)0x0" (pointer_expression "*(int **)(iVar3 + 8)" (* "*") (cast_expression "(int **)(iVar3 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);\n          *piVar5 = local_28[0];\n          return iVar2;\n        }" ({ "{") (do_statement "do {\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          } while (piVar1 != (int *)0x0);" (do "do") (compound_statement "{\n            piVar5 = piVar1;\n            piVar1 = (int *)*piVar5;\n          }" ({ "{") (expression_statement "piVar5 = piVar1;" (assignment_expression "piVar5 = piVar1" (identifier "piVar5") (= "=") (identifier "piVar1")) (; ";")) (expression_statement "piVar1 = (int *)*piVar5;" (assignment_expression "piVar1 = (int *)*piVar5" (identifier "piVar1") (= "=") (cast_expression "(int *)*piVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar5" (* "*") (identifier "piVar5")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar1 != (int *)0x0)" (( "(") (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (expression_statement "*piVar5 = local_28[0];" (assignment_expression "*piVar5 = local_28[0]" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (subscript_expression "local_28[0]" (identifier "local_28") ([ "[") (number_literal "0") (] "]"))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (expression_statement "*(int *)(iVar3 + 8) = local_28[0];" (assignment_expression "*(int *)(iVar3 + 8) = local_28[0]" (pointer_expression "*(int *)(iVar3 + 8)" (* "*") (cast_expression "(int *)(iVar3 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")")))) (= "=") (subscript_expression "local_28[0]" (identifier "local_28") ([ "[") (number_literal "0") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }" (else "else") (compound_statement "{\n        iVar3 = FUN_0004e060();\n        if (iVar3 == 0) goto LAB_0004ee50;\n      }" ({ "{") (expression_statement "iVar3 = FUN_0004e060();" (assignment_expression "iVar3 = FUN_0004e060()" (identifier "iVar3") (= "=") (call_expression "FUN_0004e060()" (identifier "FUN_0004e060") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) goto LAB_0004ee50;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0004ee50;" (goto "goto") (statement_identifier "LAB_0004ee50") (; ";"))) (} "}")))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (} "}"))) (labeled_statement "LAB_0004ee50:\n  uVar4 = dcgettext(0,"%X%P: can not make stub section: %E\n",5);" (statement_identifier "LAB_0004ee50") (: ":") (expression_statement "uVar4 = dcgettext(0,"%X%P: can not make stub section: %E\n",5);" (assignment_expression "uVar4 = dcgettext(0,"%X%P: can not make stub section: %E\n",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"%X%P: can not make stub section: %E\n",5)" (identifier "dcgettext") (argument_list "(0,"%X%P: can not make stub section: %E\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%X%P: can not make stub section: %E\n"" (" """) (string_content "%X%P: can not make stub section: %E") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";"))) (expression_statement "FUN_00034dc0(uVar4);" (call_expression "FUN_00034dc0(uVar4)" (identifier "FUN_00034dc0") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

type_1 *
function_1
          (char *stub_sec_name,type_1 *output_section,type_1 *var_6,
          type_2 alignment_power)

{
  type_3 *var_7;
  type_1 *var_2;
  type_4 *output;
  type_5 var_9;
  char *fmt;
  type_3 *plVar3;
  type_6 info;
  
  var_2 = (type_1 *)
            var_1(stub_file->the_bfd,stub_sec_name,0x20411f);
  if (var_2 != (type_1 *)0x0) {
    var_2->alignment_power = alignment_power;
    output = var_3(output_section);
    info.input_section = var_6;
    var_4(&info.add);
    var_5(&info.add,var_2,(type_7 *)0x0,output);
    if (info.add.head != (type_3 *)0x0) {
      if (var_6 == (type_1 *)0x0) {
        var_7 = (output->children).head;
        if (var_7 != (type_3 *)0x0) {
          do {
            plVar3 = var_7;
            var_7 = (plVar3->header).next;
          } while (var_7 != (type_3 *)0x0);
          (plVar3->header).next = info.add.head;
          return var_2;
        }
        (output->children).head = info.add.head;
      }
      else {
        var_9 = var_8(&info,&(output->children).head);
        if (var_9 == 0) goto LAB_0004ee50;
      }
      return var_2;
    }
  }
LAB_0004ee50:
  fmt = (char *)var_10(0,"%X%P: can not make stub section: %E\n",5);
  var_11(fmt);
  return (type_1 *)0x0;
}


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

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

int MASKED(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  int *piVar5;
  int local_28 [2];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x4edc9;
  iVar2 = bfd_make_section_anyway_with_flags(*(undefined4 *)(DAT_001c3f8c + 0x10),param_1,0x20411f);
  if (iVar2 != 0) {
    *(undefined4 *)(iVar2 + 0x58) = param_4;
    iVar3 = FUN_00025760(param_2);
    local_20 = param_3;
    FUN_00023ea0(local_28);
    FUN_000265f0(local_28,iVar2,0,iVar3);
    if (local_28[0] != 0) {
      if (param_3 == 0) {
        piVar1 = *(int **)(iVar3 + 8);
        if (*(int **)(iVar3 + 8) != (int *)0x0) {
          do {
            piVar5 = piVar1;
            piVar1 = (int *)*piVar5;
          } while (piVar1 != (int *)0x0);
          *piVar5 = local_28[0];
          return iVar2;
        }
        *(int *)(iVar3 + 8) = local_28[0];
      }
      else {
        iVar3 = FUN_0004e060();
        if (iVar3 == 0) goto LAB_0004ee50;
      }
      return iVar2;
    }
  }
LAB_0004ee50:
  uVar4 = dcgettext(0,"%X%P: can not make stub section: %E\n",5);
  FUN_00034dc0(uVar4);
  return 0;
}

