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

void walk_wild_section_specs4_wild2
               (lang_wild_statement_type *ptr,lang_input_statement_type *file,callback_t callback,
               void *data)

{
  wildcard_list *pwVar1;
  wildcard_list *sec;
  wildcard_list *sec_00;
  wildcard_list *pwVar2;
  asection *s;
  asection *s_00;
  asection *s_01;
  bfd_boolean bVar3;
  char *name;
  wildcard_list *sec_01;
  section_iterator_callback_data cb_data;
  
  pwVar1 = ptr->handler_data[3];
  sec = ptr->handler_data[0];
  sec_00 = ptr->handler_data[1];
  pwVar2 = ptr->handler_data[2];
  cb_data.found_section = (asection *)0x0;
  cb_data.multiple_sections_found = 0;
  bfd_get_section_by_name_if(file->the_bfd,(sec->spec).name,0x1ffe0,&cb_data);
  s_00 = cb_data.found_section;
  if (cb_data.multiple_sections_found == 0) {
    cb_data.found_section = (asection *)0x0;
    bfd_get_section_by_name_if(file->the_bfd,(sec_00->spec).name,0x1ffe0,&cb_data);
    s_01 = cb_data.found_section;
    if (cb_data.multiple_sections_found == 0) {
      cb_data.multiple_sections_found = 0;
      for (s = file->the_bfd->sections; s != (asection *)0x0; s = s->next) {
        if (s_00 == s) {
          walk_wild_consider_section(ptr,file,s_00,sec,callback,data);
        }
        else if (s_01 == s) {
          walk_wild_consider_section(ptr,file,s_01,sec_00,callback,data);
        }
        else {
          bVar3 = match_simple_wild((pwVar2->spec).name,s->name);
          sec_01 = pwVar2;
          if ((bVar3 != 0) ||
             (bVar3 = match_simple_wild((pwVar1->spec).name,name), sec_01 = pwVar1, bVar3 != 0)) {
            walk_wild_consider_section(ptr,file,s,sec_01,callback,data);
          }
        }
      }
      return;
    }
  }
  walk_wild_section_general(ptr,file,callback,data);
  return;
}



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

void FUN_00022e90(int param_1,int param_2,undefined4 param_3,undefined4 param_4)

{
  undefined4 uVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  undefined4 uVar9;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x22e99;
  uVar1 = *(undefined4 *)(param_1 + 0x34);
  iVar2 = *(int *)(param_1 + 0x28);
  iVar3 = *(int *)(param_1 + 0x2c);
  uVar4 = *(undefined4 *)(param_1 + 0x30);
  local_24 = 0;
  local_20 = 0;
  bfd_get_section_by_name_if
            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar2 + 4),0x1ffe0,&local_24);
  iVar6 = local_24;
  if (local_20 == 0) {
    local_24 = 0;
    bfd_get_section_by_name_if
              (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar3 + 4),0x1ffe0,&local_24);
    iVar7 = local_24;
    if (local_20 == 0) {
      local_20 = 0;
      for (iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60); iVar5 != 0;
          iVar5 = *(int *)(iVar5 + 0xc)) {
        if (iVar6 == iVar5) {
          FUN_00022d60(iVar2,param_3,param_4);
        }
        else if (iVar7 == iVar5) {
          FUN_00022d60(iVar3,param_3,param_4);
        }
        else {
          iVar8 = FUN_00021220();
          uVar9 = uVar4;
          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {
            FUN_00022d60(uVar9,param_3,param_4);
          }
        }
      }
      return;
    }
  }
  FUN_00022e00(param_1,param_2,param_3,param_4);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00017c50
ADD EBX,0x19f167
SUB ESP,0x3c
MOV ESI,dword ptr [ESP + 0x50]
MOV ECX,dword ptr [ESI + 0x34]
MOV EAX,dword ptr [ESI + 0x28]
MOV EDI,dword ptr [ESI + 0x2c]
MOV EBP,dword ptr [ESI + 0x30]
LEA EDX,[EBX + 0xffe5dfe0]
MOV dword ptr [ESP + 0x14],ECX
LEA ECX,[ESP + 0x28]
MOV dword ptr [ESP + 0x1c],EAX
MOV EAX,dword ptr [EAX + 0x4]
MOV dword ptr [ESP + 0x10],EDI
MOV dword ptr [ESP + 0x28],0x0
MOV dword ptr [ESP + 0x2c],0x0
PUSH ECX
MOV dword ptr [ESP + 0x1c],ECX
PUSH EDX
MOV dword ptr [ESP + 0x14],EDX
PUSH EAX
MOV EAX,dword ptr [ESP + 0x60]
PUSH dword ptr [EAX + 0x10]
CALL 0x00016090
MOV EDI,dword ptr [ESP + 0x38]
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x2c]
MOV ECX,dword ptr [ESP + 0x18]
TEST EDX,EDX
MOV EDX,dword ptr [ESP + 0xc]
JNZ 0x00022fc8
MOV EAX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EAX + 0x4]
MOV dword ptr [ESP + 0x28],0x0
PUSH ECX
PUSH EDX
PUSH EAX
MOV EAX,dword ptr [ESP + 0x60]
PUSH dword ptr [EAX + 0x10]
CALL 0x00016090
MOV EAX,dword ptr [ESP + 0x38]
MOV dword ptr [ESP + 0x1c],EAX
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x2c]
TEST EAX,EAX
JNZ 0x00022fc8
MOV EAX,dword ptr [ESP + 0x54]
MOV EAX,dword ptr [EAX + 0x10]
MOV EBX,dword ptr [EAX + 0x60]
TEST EBX,EBX
JZ 0x00022fdd
MOV dword ptr [ESP + 0x50],ESI
JMP 0x00022f85
SUB ESP,0x4
PUSH dword ptr [ESP + 0x60]
PUSH dword ptr [ESP + 0x60]
PUSH EBP
MOV EDX,dword ptr [ESP + 0x64]
MOV EAX,dword ptr [ESP + 0x60]
MOV ECX,EBX
CALL 0x00022d60
ADD ESP,0x10
MOV EBX,dword ptr [EBX + 0xc]
TEST EBX,EBX
JZ 0x00022fdd
CMP EDI,EBX
JZ 0x00023010
CMP dword ptr [ESP + 0xc],EBX
JZ 0x00022fe8
MOV ESI,dword ptr [EBX]
MOV EAX,dword ptr [EBP + 0x4]
MOV EDX,ESI
CALL 0x00021220
TEST EAX,EAX
JNZ 0x00022f60
MOV EAX,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [EAX + 0x4]
CALL 0x00021220
TEST EAX,EAX
JZ 0x00022f7e
SUB ESP,0x4
PUSH dword ptr [ESP + 0x60]
PUSH dword ptr [ESP + 0x60]
PUSH dword ptr [ESP + 0x20]
JMP 0x00022f6c
PUSH dword ptr [ESP + 0x5c]
PUSH dword ptr [ESP + 0x5c]
PUSH dword ptr [ESP + 0x5c]
PUSH ESI
CALL 0x00022e00
ADD ESP,0x10
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH dword ptr [ESP + 0x60]
PUSH dword ptr [ESP + 0x60]
PUSH dword ptr [ESP + 0x1c]
MOV ECX,dword ptr [ESP + 0x1c]
MOV EDX,dword ptr [ESP + 0x64]
MOV EAX,dword ptr [ESP + 0x60]
CALL 0x00022d60
ADD ESP,0x10
JMP 0x00022f7e
SUB ESP,0x4
MOV ECX,EDI
PUSH dword ptr [ESP + 0x60]
PUSH dword ptr [ESP + 0x60]
PUSH dword ptr [ESP + 0x28]
MOV EDX,dword ptr [ESP + 0x64]
MOV EAX,dword ptr [ESP + 0x60]
CALL 0x00022d60
ADD ESP,0x10
JMP 0x00022f7e
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00022e90(int param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x22e99;\n  uVar1 = *(undefined4 *)(param_1 + 0x34);\n  iVar2 = *(int *)(param_1 + 0x28);\n  iVar3 = *(int *)(param_1 + 0x2c);\n  uVar4 = *(undefined4 *)(param_1 + 0x30);\n  local_24 = 0;\n  local_20 = 0;\n  bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar2 + 4),0x1ffe0,&local_24);\n  iVar6 = local_24;\n  if (local_20 == 0) {\n    local_24 = 0;\n    bfd_get_section_by_name_if\n              (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar3 + 4),0x1ffe0,&local_24);\n    iVar7 = local_24;\n    if (local_20 == 0) {\n      local_20 = 0;\n      for (iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60); iVar5 != 0;\n          iVar5 = *(int *)(iVar5 + 0xc)) {\n        if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }\n      }\n      return;\n    }\n  }\n  FUN_00022e00(param_1,param_2,param_3,param_4);\n  return;\n}\n\n" comment (function_definition "void FUN_00022e90(int param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x22e99;\n  uVar1 = *(undefined4 *)(param_1 + 0x34);\n  iVar2 = *(int *)(param_1 + 0x28);\n  iVar3 = *(int *)(param_1 + 0x2c);\n  uVar4 = *(undefined4 *)(param_1 + 0x30);\n  local_24 = 0;\n  local_20 = 0;\n  bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar2 + 4),0x1ffe0,&local_24);\n  iVar6 = local_24;\n  if (local_20 == 0) {\n    local_24 = 0;\n    bfd_get_section_by_name_if\n              (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar3 + 4),0x1ffe0,&local_24);\n    iVar7 = local_24;\n    if (local_20 == 0) {\n      local_20 = 0;\n      for (iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60); iVar5 != 0;\n          iVar5 = *(int *)(iVar5 + 0xc)) {\n        if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }\n      }\n      return;\n    }\n  }\n  FUN_00022e00(param_1,param_2,param_3,param_4);\n  return;\n}" primitive_type (function_declarator "FUN_00022e90(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x22e99;\n  uVar1 = *(undefined4 *)(param_1 + 0x34);\n  iVar2 = *(int *)(param_1 + 0x28);\n  iVar3 = *(int *)(param_1 + 0x2c);\n  uVar4 = *(undefined4 *)(param_1 + 0x30);\n  local_24 = 0;\n  local_20 = 0;\n  bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar2 + 4),0x1ffe0,&local_24);\n  iVar6 = local_24;\n  if (local_20 == 0) {\n    local_24 = 0;\n    bfd_get_section_by_name_if\n              (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar3 + 4),0x1ffe0,&local_24);\n    iVar7 = local_24;\n    if (local_20 == 0) {\n      local_20 = 0;\n      for (iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60); iVar5 != 0;\n          iVar5 = *(int *)(iVar5 + 0xc)) {\n        if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }\n      }\n      return;\n    }\n  }\n  FUN_00022e00(param_1,param_2,param_3,param_4);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x22e99;" (assignment_expression "uStack_14 = 0x22e99" identifier = number_literal) ;) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x34);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x34)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x34)" * (cast_expression "(undefined4 *)(param_1 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x28)" identifier = (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x2c);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x2c)" identifier = (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 0x30);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 0x30)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x30)" * (cast_expression "(undefined4 *)(param_1 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar2 + 4),0x1ffe0,&local_24);" (call_expression "bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar2 + 4),0x1ffe0,&local_24)" identifier (argument_list "(*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar2 + 4),0x1ffe0,&local_24)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x10)" * (cast_expression "(undefined4 *)(param_2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar2 + 4)" * (cast_expression "(undefined4 *)(iVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) , number_literal , (pointer_expression "&local_24" & identifier) ))) ;) (expression_statement "iVar6 = local_24;" (assignment_expression "iVar6 = local_24" identifier = identifier) ;) (if_statement "if (local_20 == 0) {\n    local_24 = 0;\n    bfd_get_section_by_name_if\n              (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar3 + 4),0x1ffe0,&local_24);\n    iVar7 = local_24;\n    if (local_20 == 0) {\n      local_20 = 0;\n      for (iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60); iVar5 != 0;\n          iVar5 = *(int *)(iVar5 + 0xc)) {\n        if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }\n      }\n      return;\n    }\n  }" if (parenthesized_expression "(local_20 == 0)" ( (binary_expression "local_20 == 0" identifier == number_literal) )) (compound_statement "{\n    local_24 = 0;\n    bfd_get_section_by_name_if\n              (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar3 + 4),0x1ffe0,&local_24);\n    iVar7 = local_24;\n    if (local_20 == 0) {\n      local_20 = 0;\n      for (iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60); iVar5 != 0;\n          iVar5 = *(int *)(iVar5 + 0xc)) {\n        if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }\n      }\n      return;\n    }\n  }" { (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "bfd_get_section_by_name_if\n              (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar3 + 4),0x1ffe0,&local_24);" (call_expression "bfd_get_section_by_name_if\n              (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar3 + 4),0x1ffe0,&local_24)" identifier (argument_list "(*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar3 + 4),0x1ffe0,&local_24)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x10)" * (cast_expression "(undefined4 *)(param_2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar3 + 4)" * (cast_expression "(undefined4 *)(iVar3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) , number_literal , (pointer_expression "&local_24" & identifier) ))) ;) (expression_statement "iVar7 = local_24;" (assignment_expression "iVar7 = local_24" identifier = identifier) ;) (if_statement "if (local_20 == 0) {\n      local_20 = 0;\n      for (iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60); iVar5 != 0;\n          iVar5 = *(int *)(iVar5 + 0xc)) {\n        if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }\n      }\n      return;\n    }" if (parenthesized_expression "(local_20 == 0)" ( (binary_expression "local_20 == 0" identifier == number_literal) )) (compound_statement "{\n      local_20 = 0;\n      for (iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60); iVar5 != 0;\n          iVar5 = *(int *)(iVar5 + 0xc)) {\n        if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }\n      }\n      return;\n    }" { (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (for_statement "for (iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60); iVar5 != 0;\n          iVar5 = *(int *)(iVar5 + 0xc)) {\n        if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }\n      }" for ( (assignment_expression "iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60)" identifier = (pointer_expression "*(int *)(*(int *)(param_2 + 0x10) + 0x60)" * (cast_expression "(int *)(*(int *)(param_2 + 0x10) + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0x10) + 0x60)" ( (binary_expression "*(int *)(param_2 + 0x10) + 0x60" (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) + number_literal) ))))) ; (binary_expression "iVar5 != 0" identifier != number_literal) ; (assignment_expression "iVar5 = *(int *)(iVar5 + 0xc)" identifier = (pointer_expression "*(int *)(iVar5 + 0xc)" * (cast_expression "(int *)(iVar5 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xc)" ( (binary_expression "iVar5 + 0xc" identifier + number_literal) ))))) ) (compound_statement "{\n        if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }\n      }" { (if_statement "if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }" if (parenthesized_expression "(iVar6 == iVar5)" ( (binary_expression "iVar6 == iVar5" identifier == identifier) )) (compound_statement "{\n          FUN_00022d60(iVar2,param_3,param_4);\n        }" { (expression_statement "FUN_00022d60(iVar2,param_3,param_4);" (call_expression "FUN_00022d60(iVar2,param_3,param_4)" identifier (argument_list "(iVar2,param_3,param_4)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }" else (if_statement "if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }" if (parenthesized_expression "(iVar7 == iVar5)" ( (binary_expression "iVar7 == iVar5" identifier == identifier) )) (compound_statement "{\n          FUN_00022d60(iVar3,param_3,param_4);\n        }" { (expression_statement "FUN_00022d60(iVar3,param_3,param_4);" (call_expression "FUN_00022d60(iVar3,param_3,param_4)" identifier (argument_list "(iVar3,param_3,param_4)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }" else (compound_statement "{\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }" { (expression_statement "iVar8 = FUN_00021220();" (assignment_expression "iVar8 = FUN_00021220()" identifier = (call_expression "FUN_00021220()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar9 = uVar4;" (assignment_expression "uVar9 = uVar4" identifier = identifier) ;) (if_statement "if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }" if (parenthesized_expression "((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0))" ( (binary_expression "(iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)" (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) || (parenthesized_expression "(iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)" ( (comma_expression "iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0" (assignment_expression "iVar8 = FUN_00021220()" identifier = (call_expression "FUN_00021220()" identifier (argument_list "()" ( )))) , (comma_expression "uVar9 = uVar1, iVar8 != 0" (assignment_expression "uVar9 = uVar1" identifier = identifier) , (binary_expression "iVar8 != 0" identifier != number_literal))) ))) )) (compound_statement "{\n            FUN_00022d60(uVar9,param_3,param_4);\n          }" { (expression_statement "FUN_00022d60(uVar9,param_3,param_4);" (call_expression "FUN_00022d60(uVar9,param_3,param_4)" identifier (argument_list "(uVar9,param_3,param_4)" ( identifier , identifier , identifier ))) ;) })) }))))) })) (return_statement "return;" return ;) })) })) (expression_statement "FUN_00022e00(param_1,param_2,param_3,param_4);" (call_expression "FUN_00022e00(param_1,param_2,param_3,param_4)" identifier (argument_list "(param_1,param_2,param_3,param_4)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid walk_wild_section_specs4_wild2\n               (lang_wild_statement_type *ptr,lang_input_statement_type *file,callback_t callback,\n               void *data)\n\n{\n  wildcard_list *pwVar1;\n  wildcard_list *sec;\n  wildcard_list *sec_00;\n  wildcard_list *pwVar2;\n  asection *s;\n  asection *s_00;\n  asection *s_01;\n  bfd_boolean bVar3;\n  char *name;\n  wildcard_list *sec_01;\n  section_iterator_callback_data cb_data;\n  \n  pwVar1 = ptr->handler_data[3];\n  sec = ptr->handler_data[0];\n  sec_00 = ptr->handler_data[1];\n  pwVar2 = ptr->handler_data[2];\n  cb_data.found_section = (asection *)0x0;\n  cb_data.multiple_sections_found = 0;\n  bfd_get_section_by_name_if(file->the_bfd,(sec->spec).name,0x1ffe0,&cb_data);\n  s_00 = cb_data.found_section;\n  if (cb_data.multiple_sections_found == 0) {\n    cb_data.found_section = (asection *)0x0;\n    bfd_get_section_by_name_if(file->the_bfd,(sec_00->spec).name,0x1ffe0,&cb_data);\n    s_01 = cb_data.found_section;\n    if (cb_data.multiple_sections_found == 0) {\n      cb_data.multiple_sections_found = 0;\n      for (s = file->the_bfd->sections; s != (asection *)0x0; s = s->next) {\n        if (s_00 == s) {\n          walk_wild_consider_section(ptr,file,s_00,sec,callback,data);\n        }\n        else if (s_01 == s) {\n          walk_wild_consider_section(ptr,file,s_01,sec_00,callback,data);\n        }\n        else {\n          bVar3 = match_simple_wild((pwVar2->spec).name,s->name);\n          sec_01 = pwVar2;\n          if ((bVar3 != 0) ||\n             (bVar3 = match_simple_wild((pwVar1->spec).name,name), sec_01 = pwVar1, bVar3 != 0)) {\n            walk_wild_consider_section(ptr,file,s,sec_01,callback,data);\n          }\n        }\n      }\n      return;\n    }\n  }\n  walk_wild_section_general(ptr,file,callback,data);\n  return;\n}\n\n" comment (function_definition "void walk_wild_section_specs4_wild2\n               (lang_wild_statement_type *ptr,lang_input_statement_type *file,callback_t callback,\n               void *data)\n\n{\n  wildcard_list *pwVar1;\n  wildcard_list *sec;\n  wildcard_list *sec_00;\n  wildcard_list *pwVar2;\n  asection *s;\n  asection *s_00;\n  asection *s_01;\n  bfd_boolean bVar3;\n  char *name;\n  wildcard_list *sec_01;\n  section_iterator_callback_data cb_data;\n  \n  pwVar1 = ptr->handler_data[3];\n  sec = ptr->handler_data[0];\n  sec_00 = ptr->handler_data[1];\n  pwVar2 = ptr->handler_data[2];\n  cb_data.found_section = (asection *)0x0;\n  cb_data.multiple_sections_found = 0;\n  bfd_get_section_by_name_if(file->the_bfd,(sec->spec).name,0x1ffe0,&cb_data);\n  s_00 = cb_data.found_section;\n  if (cb_data.multiple_sections_found == 0) {\n    cb_data.found_section = (asection *)0x0;\n    bfd_get_section_by_name_if(file->the_bfd,(sec_00->spec).name,0x1ffe0,&cb_data);\n    s_01 = cb_data.found_section;\n    if (cb_data.multiple_sections_found == 0) {\n      cb_data.multiple_sections_found = 0;\n      for (s = file->the_bfd->sections; s != (asection *)0x0; s = s->next) {\n        if (s_00 == s) {\n          walk_wild_consider_section(ptr,file,s_00,sec,callback,data);\n        }\n        else if (s_01 == s) {\n          walk_wild_consider_section(ptr,file,s_01,sec_00,callback,data);\n        }\n        else {\n          bVar3 = match_simple_wild((pwVar2->spec).name,s->name);\n          sec_01 = pwVar2;\n          if ((bVar3 != 0) ||\n             (bVar3 = match_simple_wild((pwVar1->spec).name,name), sec_01 = pwVar1, bVar3 != 0)) {\n            walk_wild_consider_section(ptr,file,s,sec_01,callback,data);\n          }\n        }\n      }\n      return;\n    }\n  }\n  walk_wild_section_general(ptr,file,callback,data);\n  return;\n}" primitive_type (function_declarator "walk_wild_section_specs4_wild2\n               (lang_wild_statement_type *ptr,lang_input_statement_type *file,callback_t callback,\n               void *data)" identifier (parameter_list "(lang_wild_statement_type *ptr,lang_input_statement_type *file,callback_t callback,\n               void *data)" ( (parameter_declaration "lang_wild_statement_type *ptr" type_identifier (pointer_declarator "*ptr" * identifier)) , (parameter_declaration "lang_input_statement_type *file" type_identifier (pointer_declarator "*file" * identifier)) , (parameter_declaration "callback_t callback" type_identifier identifier) , (parameter_declaration "void *data" primitive_type (pointer_declarator "*data" * identifier)) ))) (compound_statement "{\n  wildcard_list *pwVar1;\n  wildcard_list *sec;\n  wildcard_list *sec_00;\n  wildcard_list *pwVar2;\n  asection *s;\n  asection *s_00;\n  asection *s_01;\n  bfd_boolean bVar3;\n  char *name;\n  wildcard_list *sec_01;\n  section_iterator_callback_data cb_data;\n  \n  pwVar1 = ptr->handler_data[3];\n  sec = ptr->handler_data[0];\n  sec_00 = ptr->handler_data[1];\n  pwVar2 = ptr->handler_data[2];\n  cb_data.found_section = (asection *)0x0;\n  cb_data.multiple_sections_found = 0;\n  bfd_get_section_by_name_if(file->the_bfd,(sec->spec).name,0x1ffe0,&cb_data);\n  s_00 = cb_data.found_section;\n  if (cb_data.multiple_sections_found == 0) {\n    cb_data.found_section = (asection *)0x0;\n    bfd_get_section_by_name_if(file->the_bfd,(sec_00->spec).name,0x1ffe0,&cb_data);\n    s_01 = cb_data.found_section;\n    if (cb_data.multiple_sections_found == 0) {\n      cb_data.multiple_sections_found = 0;\n      for (s = file->the_bfd->sections; s != (asection *)0x0; s = s->next) {\n        if (s_00 == s) {\n          walk_wild_consider_section(ptr,file,s_00,sec,callback,data);\n        }\n        else if (s_01 == s) {\n          walk_wild_consider_section(ptr,file,s_01,sec_00,callback,data);\n        }\n        else {\n          bVar3 = match_simple_wild((pwVar2->spec).name,s->name);\n          sec_01 = pwVar2;\n          if ((bVar3 != 0) ||\n             (bVar3 = match_simple_wild((pwVar1->spec).name,name), sec_01 = pwVar1, bVar3 != 0)) {\n            walk_wild_consider_section(ptr,file,s,sec_01,callback,data);\n          }\n        }\n      }\n      return;\n    }\n  }\n  walk_wild_section_general(ptr,file,callback,data);\n  return;\n}" { (declaration "wildcard_list *pwVar1;" type_identifier (pointer_declarator "*pwVar1" * identifier) ;) (declaration "wildcard_list *sec;" type_identifier (pointer_declarator "*sec" * identifier) ;) (declaration "wildcard_list *sec_00;" type_identifier (pointer_declarator "*sec_00" * identifier) ;) (declaration "wildcard_list *pwVar2;" type_identifier (pointer_declarator "*pwVar2" * identifier) ;) (declaration "asection *s;" type_identifier (pointer_declarator "*s" * identifier) ;) (declaration "asection *s_00;" type_identifier (pointer_declarator "*s_00" * identifier) ;) (declaration "asection *s_01;" type_identifier (pointer_declarator "*s_01" * identifier) ;) (declaration "bfd_boolean bVar3;" type_identifier identifier ;) (declaration "char *name;" primitive_type (pointer_declarator "*name" * identifier) ;) (declaration "wildcard_list *sec_01;" type_identifier (pointer_declarator "*sec_01" * identifier) ;) (declaration "section_iterator_callback_data cb_data;" type_identifier identifier ;) (expression_statement "pwVar1 = ptr->handler_data[3];" (assignment_expression "pwVar1 = ptr->handler_data[3]" identifier = (subscript_expression "ptr->handler_data[3]" (field_expression "ptr->handler_data" identifier -> field_identifier) [ number_literal ])) ;) (expression_statement "sec = ptr->handler_data[0];" (assignment_expression "sec = ptr->handler_data[0]" identifier = (subscript_expression "ptr->handler_data[0]" (field_expression "ptr->handler_data" identifier -> field_identifier) [ number_literal ])) ;) (expression_statement "sec_00 = ptr->handler_data[1];" (assignment_expression "sec_00 = ptr->handler_data[1]" identifier = (subscript_expression "ptr->handler_data[1]" (field_expression "ptr->handler_data" identifier -> field_identifier) [ number_literal ])) ;) (expression_statement "pwVar2 = ptr->handler_data[2];" (assignment_expression "pwVar2 = ptr->handler_data[2]" identifier = (subscript_expression "ptr->handler_data[2]" (field_expression "ptr->handler_data" identifier -> field_identifier) [ number_literal ])) ;) (expression_statement "cb_data.found_section = (asection *)0x0;" (assignment_expression "cb_data.found_section = (asection *)0x0" (field_expression "cb_data.found_section" identifier . field_identifier) = (cast_expression "(asection *)0x0" ( (type_descriptor "asection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "cb_data.multiple_sections_found = 0;" (assignment_expression "cb_data.multiple_sections_found = 0" (field_expression "cb_data.multiple_sections_found" identifier . field_identifier) = number_literal) ;) (expression_statement "bfd_get_section_by_name_if(file->the_bfd,(sec->spec).name,0x1ffe0,&cb_data);" (call_expression "bfd_get_section_by_name_if(file->the_bfd,(sec->spec).name,0x1ffe0,&cb_data)" identifier (argument_list "(file->the_bfd,(sec->spec).name,0x1ffe0,&cb_data)" ( (field_expression "file->the_bfd" identifier -> field_identifier) , (field_expression "(sec->spec).name" (parenthesized_expression "(sec->spec)" ( (field_expression "sec->spec" identifier -> field_identifier) )) . field_identifier) , number_literal , (pointer_expression "&cb_data" & identifier) ))) ;) (expression_statement "s_00 = cb_data.found_section;" (assignment_expression "s_00 = cb_data.found_section" identifier = (field_expression "cb_data.found_section" identifier . field_identifier)) ;) (if_statement "if (cb_data.multiple_sections_found == 0) {\n    cb_data.found_section = (asection *)0x0;\n    bfd_get_section_by_name_if(file->the_bfd,(sec_00->spec).name,0x1ffe0,&cb_data);\n    s_01 = cb_data.found_section;\n    if (cb_data.multiple_sections_found == 0) {\n      cb_data.multiple_sections_found = 0;\n      for (s = file->the_bfd->sections; s != (asection *)0x0; s = s->next) {\n        if (s_00 == s) {\n          walk_wild_consider_section(ptr,file,s_00,sec,callback,data);\n        }\n        else if (s_01 == s) {\n          walk_wild_consider_section(ptr,file,s_01,sec_00,callback,data);\n        }\n        else {\n          bVar3 = match_simple_wild((pwVar2->spec).name,s->name);\n          sec_01 = pwVar2;\n          if ((bVar3 != 0) ||\n             (bVar3 = match_simple_wild((pwVar1->spec).name,name), sec_01 = pwVar1, bVar3 != 0)) {\n            walk_wild_consider_section(ptr,file,s,sec_01,callback,data);\n          }\n        }\n      }\n      return;\n    }\n  }" if (parenthesized_expression "(cb_data.multiple_sections_found == 0)" ( (binary_expression "cb_data.multiple_sections_found == 0" (field_expression "cb_data.multiple_sections_found" identifier . field_identifier) == number_literal) )) (compound_statement "{\n    cb_data.found_section = (asection *)0x0;\n    bfd_get_section_by_name_if(file->the_bfd,(sec_00->spec).name,0x1ffe0,&cb_data);\n    s_01 = cb_data.found_section;\n    if (cb_data.multiple_sections_found == 0) {\n      cb_data.multiple_sections_found = 0;\n      for (s = file->the_bfd->sections; s != (asection *)0x0; s = s->next) {\n        if (s_00 == s) {\n          walk_wild_consider_section(ptr,file,s_00,sec,callback,data);\n        }\n        else if (s_01 == s) {\n          walk_wild_consider_section(ptr,file,s_01,sec_00,callback,data);\n        }\n        else {\n          bVar3 = match_simple_wild((pwVar2->spec).name,s->name);\n          sec_01 = pwVar2;\n          if ((bVar3 != 0) ||\n             (bVar3 = match_simple_wild((pwVar1->spec).name,name), sec_01 = pwVar1, bVar3 != 0)) {\n            walk_wild_consider_section(ptr,file,s,sec_01,callback,data);\n          }\n        }\n      }\n      return;\n    }\n  }" { (expression_statement "cb_data.found_section = (asection *)0x0;" (assignment_expression "cb_data.found_section = (asection *)0x0" (field_expression "cb_data.found_section" identifier . field_identifier) = (cast_expression "(asection *)0x0" ( (type_descriptor "asection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "bfd_get_section_by_name_if(file->the_bfd,(sec_00->spec).name,0x1ffe0,&cb_data);" (call_expression "bfd_get_section_by_name_if(file->the_bfd,(sec_00->spec).name,0x1ffe0,&cb_data)" identifier (argument_list "(file->the_bfd,(sec_00->spec).name,0x1ffe0,&cb_data)" ( (field_expression "file->the_bfd" identifier -> field_identifier) , (field_expression "(sec_00->spec).name" (parenthesized_expression "(sec_00->spec)" ( (field_expression "sec_00->spec" identifier -> field_identifier) )) . field_identifier) , number_literal , (pointer_expression "&cb_data" & identifier) ))) ;) (expression_statement "s_01 = cb_data.found_section;" (assignment_expression "s_01 = cb_data.found_section" identifier = (field_expression "cb_data.found_section" identifier . field_identifier)) ;) (if_statement "if (cb_data.multiple_sections_found == 0) {\n      cb_data.multiple_sections_found = 0;\n      for (s = file->the_bfd->sections; s != (asection *)0x0; s = s->next) {\n        if (s_00 == s) {\n          walk_wild_consider_section(ptr,file,s_00,sec,callback,data);\n        }\n        else if (s_01 == s) {\n          walk_wild_consider_section(ptr,file,s_01,sec_00,callback,data);\n        }\n        else {\n          bVar3 = match_simple_wild((pwVar2->spec).name,s->name);\n          sec_01 = pwVar2;\n          if ((bVar3 != 0) ||\n             (bVar3 = match_simple_wild((pwVar1->spec).name,name), sec_01 = pwVar1, bVar3 != 0)) {\n            walk_wild_consider_section(ptr,file,s,sec_01,callback,data);\n          }\n        }\n      }\n      return;\n    }" if (parenthesized_expression "(cb_data.multiple_sections_found == 0)" ( (binary_expression "cb_data.multiple_sections_found == 0" (field_expression "cb_data.multiple_sections_found" identifier . field_identifier) == number_literal) )) (compound_statement "{\n      cb_data.multiple_sections_found = 0;\n      for (s = file->the_bfd->sections; s != (asection *)0x0; s = s->next) {\n        if (s_00 == s) {\n          walk_wild_consider_section(ptr,file,s_00,sec,callback,data);\n        }\n        else if (s_01 == s) {\n          walk_wild_consider_section(ptr,file,s_01,sec_00,callback,data);\n        }\n        else {\n          bVar3 = match_simple_wild((pwVar2->spec).name,s->name);\n          sec_01 = pwVar2;\n          if ((bVar3 != 0) ||\n             (bVar3 = match_simple_wild((pwVar1->spec).name,name), sec_01 = pwVar1, bVar3 != 0)) {\n            walk_wild_consider_section(ptr,file,s,sec_01,callback,data);\n          }\n        }\n      }\n      return;\n    }" { (expression_statement "cb_data.multiple_sections_found = 0;" (assignment_expression "cb_data.multiple_sections_found = 0" (field_expression "cb_data.multiple_sections_found" identifier . field_identifier) = number_literal) ;) (for_statement "for (s = file->the_bfd->sections; s != (asection *)0x0; s = s->next) {\n        if (s_00 == s) {\n          walk_wild_consider_section(ptr,file,s_00,sec,callback,data);\n        }\n        else if (s_01 == s) {\n          walk_wild_consider_section(ptr,file,s_01,sec_00,callback,data);\n        }\n        else {\n          bVar3 = match_simple_wild((pwVar2->spec).name,s->name);\n          sec_01 = pwVar2;\n          if ((bVar3 != 0) ||\n             (bVar3 = match_simple_wild((pwVar1->spec).name,name), sec_01 = pwVar1, bVar3 != 0)) {\n            walk_wild_consider_section(ptr,file,s,sec_01,callback,data);\n          }\n        }\n      }" for ( (assignment_expression "s = file->the_bfd->sections" identifier = (field_expression "file->the_bfd->sections" (field_expression "file->the_bfd" identifier -> field_identifier) -> field_identifier)) ; (binary_expression "s != (asection *)0x0" identifier != (cast_expression "(asection *)0x0" ( (type_descriptor "asection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "s = s->next" identifier = (field_expression "s->next" identifier -> field_identifier)) ) (compound_statement "{\n        if (s_00 == s) {\n          walk_wild_consider_section(ptr,file,s_00,sec,callback,data);\n        }\n        else if (s_01 == s) {\n          walk_wild_consider_section(ptr,file,s_01,sec_00,callback,data);\n        }\n        else {\n          bVar3 = match_simple_wild((pwVar2->spec).name,s->name);\n          sec_01 = pwVar2;\n          if ((bVar3 != 0) ||\n             (bVar3 = match_simple_wild((pwVar1->spec).name,name), sec_01 = pwVar1, bVar3 != 0)) {\n            walk_wild_consider_section(ptr,file,s,sec_01,callback,data);\n          }\n        }\n      }" { (if_statement "if (s_00 == s) {\n          walk_wild_consider_section(ptr,file,s_00,sec,callback,data);\n        }\n        else if (s_01 == s) {\n          walk_wild_consider_section(ptr,file,s_01,sec_00,callback,data);\n        }\n        else {\n          bVar3 = match_simple_wild((pwVar2->spec).name,s->name);\n          sec_01 = pwVar2;\n          if ((bVar3 != 0) ||\n             (bVar3 = match_simple_wild((pwVar1->spec).name,name), sec_01 = pwVar1, bVar3 != 0)) {\n            walk_wild_consider_section(ptr,file,s,sec_01,callback,data);\n          }\n        }" if (parenthesized_expression "(s_00 == s)" ( (binary_expression "s_00 == s" identifier == identifier) )) (compound_statement "{\n          walk_wild_consider_section(ptr,file,s_00,sec,callback,data);\n        }" { (expression_statement "walk_wild_consider_section(ptr,file,s_00,sec,callback,data);" (call_expression "walk_wild_consider_section(ptr,file,s_00,sec,callback,data)" identifier (argument_list "(ptr,file,s_00,sec,callback,data)" ( identifier , identifier , identifier , identifier , identifier , identifier ))) ;) }) (else_clause "else if (s_01 == s) {\n          walk_wild_consider_section(ptr,file,s_01,sec_00,callback,data);\n        }\n        else {\n          bVar3 = match_simple_wild((pwVar2->spec).name,s->name);\n          sec_01 = pwVar2;\n          if ((bVar3 != 0) ||\n             (bVar3 = match_simple_wild((pwVar1->spec).name,name), sec_01 = pwVar1, bVar3 != 0)) {\n            walk_wild_consider_section(ptr,file,s,sec_01,callback,data);\n          }\n        }" else (if_statement "if (s_01 == s) {\n          walk_wild_consider_section(ptr,file,s_01,sec_00,callback,data);\n        }\n        else {\n          bVar3 = match_simple_wild((pwVar2->spec).name,s->name);\n          sec_01 = pwVar2;\n          if ((bVar3 != 0) ||\n             (bVar3 = match_simple_wild((pwVar1->spec).name,name), sec_01 = pwVar1, bVar3 != 0)) {\n            walk_wild_consider_section(ptr,file,s,sec_01,callback,data);\n          }\n        }" if (parenthesized_expression "(s_01 == s)" ( (binary_expression "s_01 == s" identifier == identifier) )) (compound_statement "{\n          walk_wild_consider_section(ptr,file,s_01,sec_00,callback,data);\n        }" { (expression_statement "walk_wild_consider_section(ptr,file,s_01,sec_00,callback,data);" (call_expression "walk_wild_consider_section(ptr,file,s_01,sec_00,callback,data)" identifier (argument_list "(ptr,file,s_01,sec_00,callback,data)" ( identifier , identifier , identifier , identifier , identifier , identifier ))) ;) }) (else_clause "else {\n          bVar3 = match_simple_wild((pwVar2->spec).name,s->name);\n          sec_01 = pwVar2;\n          if ((bVar3 != 0) ||\n             (bVar3 = match_simple_wild((pwVar1->spec).name,name), sec_01 = pwVar1, bVar3 != 0)) {\n            walk_wild_consider_section(ptr,file,s,sec_01,callback,data);\n          }\n        }" else (compound_statement "{\n          bVar3 = match_simple_wild((pwVar2->spec).name,s->name);\n          sec_01 = pwVar2;\n          if ((bVar3 != 0) ||\n             (bVar3 = match_simple_wild((pwVar1->spec).name,name), sec_01 = pwVar1, bVar3 != 0)) {\n            walk_wild_consider_section(ptr,file,s,sec_01,callback,data);\n          }\n        }" { (expression_statement "bVar3 = match_simple_wild((pwVar2->spec).name,s->name);" (assignment_expression "bVar3 = match_simple_wild((pwVar2->spec).name,s->name)" identifier = (call_expression "match_simple_wild((pwVar2->spec).name,s->name)" identifier (argument_list "((pwVar2->spec).name,s->name)" ( (field_expression "(pwVar2->spec).name" (parenthesized_expression "(pwVar2->spec)" ( (field_expression "pwVar2->spec" identifier -> field_identifier) )) . field_identifier) , (field_expression "s->name" identifier -> field_identifier) )))) ;) (expression_statement "sec_01 = pwVar2;" (assignment_expression "sec_01 = pwVar2" identifier = identifier) ;) (if_statement "if ((bVar3 != 0) ||\n             (bVar3 = match_simple_wild((pwVar1->spec).name,name), sec_01 = pwVar1, bVar3 != 0)) {\n            walk_wild_consider_section(ptr,file,s,sec_01,callback,data);\n          }" if (parenthesized_expression "((bVar3 != 0) ||\n             (bVar3 = match_simple_wild((pwVar1->spec).name,name), sec_01 = pwVar1, bVar3 != 0))" ( (binary_expression "(bVar3 != 0) ||\n             (bVar3 = match_simple_wild((pwVar1->spec).name,name), sec_01 = pwVar1, bVar3 != 0)" (parenthesized_expression "(bVar3 != 0)" ( (binary_expression "bVar3 != 0" identifier != number_literal) )) || (parenthesized_expression "(bVar3 = match_simple_wild((pwVar1->spec).name,name), sec_01 = pwVar1, bVar3 != 0)" ( (comma_expression "bVar3 = match_simple_wild((pwVar1->spec).name,name), sec_01 = pwVar1, bVar3 != 0" (assignment_expression "bVar3 = match_simple_wild((pwVar1->spec).name,name)" identifier = (call_expression "match_simple_wild((pwVar1->spec).name,name)" identifier (argument_list "((pwVar1->spec).name,name)" ( (field_expression "(pwVar1->spec).name" (parenthesized_expression "(pwVar1->spec)" ( (field_expression "pwVar1->spec" identifier -> field_identifier) )) . field_identifier) , identifier )))) , (comma_expression "sec_01 = pwVar1, bVar3 != 0" (assignment_expression "sec_01 = pwVar1" identifier = identifier) , (binary_expression "bVar3 != 0" identifier != number_literal))) ))) )) (compound_statement "{\n            walk_wild_consider_section(ptr,file,s,sec_01,callback,data);\n          }" { (expression_statement "walk_wild_consider_section(ptr,file,s,sec_01,callback,data);" (call_expression "walk_wild_consider_section(ptr,file,s,sec_01,callback,data)" identifier (argument_list "(ptr,file,s,sec_01,callback,data)" ( identifier , identifier , identifier , identifier , identifier , identifier ))) ;) })) }))))) })) (return_statement "return;" return ;) })) })) (expression_statement "walk_wild_section_general(ptr,file,callback,data);" (call_expression "walk_wild_section_general(ptr,file,callback,data)" identifier (argument_list "(ptr,file,callback,data)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00022e90(int param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x22e99;\n  uVar1 = *(undefined4 *)(param_1 + 0x34);\n  iVar2 = *(int *)(param_1 + 0x28);\n  iVar3 = *(int *)(param_1 + 0x2c);\n  uVar4 = *(undefined4 *)(param_1 + 0x30);\n  local_24 = 0;\n  local_20 = 0;\n  bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar2 + 4),0x1ffe0,&local_24);\n  iVar6 = local_24;\n  if (local_20 == 0) {\n    local_24 = 0;\n    bfd_get_section_by_name_if\n              (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar3 + 4),0x1ffe0,&local_24);\n    iVar7 = local_24;\n    if (local_20 == 0) {\n      local_20 = 0;\n      for (iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60); iVar5 != 0;\n          iVar5 = *(int *)(iVar5 + 0xc)) {\n        if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }\n      }\n      return;\n    }\n  }\n  FUN_00022e00(param_1,param_2,param_3,param_4);\n  return;\n}\n\n" (function_definition "void FUN_00022e90(int param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x22e99;\n  uVar1 = *(undefined4 *)(param_1 + 0x34);\n  iVar2 = *(int *)(param_1 + 0x28);\n  iVar3 = *(int *)(param_1 + 0x2c);\n  uVar4 = *(undefined4 *)(param_1 + 0x30);\n  local_24 = 0;\n  local_20 = 0;\n  bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar2 + 4),0x1ffe0,&local_24);\n  iVar6 = local_24;\n  if (local_20 == 0) {\n    local_24 = 0;\n    bfd_get_section_by_name_if\n              (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar3 + 4),0x1ffe0,&local_24);\n    iVar7 = local_24;\n    if (local_20 == 0) {\n      local_20 = 0;\n      for (iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60); iVar5 != 0;\n          iVar5 = *(int *)(iVar5 + 0xc)) {\n        if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }\n      }\n      return;\n    }\n  }\n  FUN_00022e00(param_1,param_2,param_3,param_4);\n  return;\n}" primitive_type (function_declarator "FUN_00022e90(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x22e99;\n  uVar1 = *(undefined4 *)(param_1 + 0x34);\n  iVar2 = *(int *)(param_1 + 0x28);\n  iVar3 = *(int *)(param_1 + 0x2c);\n  uVar4 = *(undefined4 *)(param_1 + 0x30);\n  local_24 = 0;\n  local_20 = 0;\n  bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar2 + 4),0x1ffe0,&local_24);\n  iVar6 = local_24;\n  if (local_20 == 0) {\n    local_24 = 0;\n    bfd_get_section_by_name_if\n              (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar3 + 4),0x1ffe0,&local_24);\n    iVar7 = local_24;\n    if (local_20 == 0) {\n      local_20 = 0;\n      for (iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60); iVar5 != 0;\n          iVar5 = *(int *)(iVar5 + 0xc)) {\n        if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }\n      }\n      return;\n    }\n  }\n  FUN_00022e00(param_1,param_2,param_3,param_4);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x22e99;" (assignment_expression "uStack_14 = 0x22e99" identifier = number_literal) ;) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x34);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x34)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x34)" * (cast_expression "(undefined4 *)(param_1 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x28)" identifier = (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x2c);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x2c)" identifier = (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 0x30);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 0x30)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x30)" * (cast_expression "(undefined4 *)(param_1 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar2 + 4),0x1ffe0,&local_24);" (call_expression "bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar2 + 4),0x1ffe0,&local_24)" identifier (argument_list "(*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar2 + 4),0x1ffe0,&local_24)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x10)" * (cast_expression "(undefined4 *)(param_2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar2 + 4)" * (cast_expression "(undefined4 *)(iVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) , number_literal , (pointer_expression "&local_24" & identifier) ))) ;) (expression_statement "iVar6 = local_24;" (assignment_expression "iVar6 = local_24" identifier = identifier) ;) (if_statement "if (local_20 == 0) {\n    local_24 = 0;\n    bfd_get_section_by_name_if\n              (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar3 + 4),0x1ffe0,&local_24);\n    iVar7 = local_24;\n    if (local_20 == 0) {\n      local_20 = 0;\n      for (iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60); iVar5 != 0;\n          iVar5 = *(int *)(iVar5 + 0xc)) {\n        if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }\n      }\n      return;\n    }\n  }" if (parenthesized_expression "(local_20 == 0)" ( (binary_expression "local_20 == 0" identifier == number_literal) )) (compound_statement "{\n    local_24 = 0;\n    bfd_get_section_by_name_if\n              (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar3 + 4),0x1ffe0,&local_24);\n    iVar7 = local_24;\n    if (local_20 == 0) {\n      local_20 = 0;\n      for (iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60); iVar5 != 0;\n          iVar5 = *(int *)(iVar5 + 0xc)) {\n        if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }\n      }\n      return;\n    }\n  }" { (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "bfd_get_section_by_name_if\n              (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar3 + 4),0x1ffe0,&local_24);" (call_expression "bfd_get_section_by_name_if\n              (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar3 + 4),0x1ffe0,&local_24)" identifier (argument_list "(*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar3 + 4),0x1ffe0,&local_24)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x10)" * (cast_expression "(undefined4 *)(param_2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar3 + 4)" * (cast_expression "(undefined4 *)(iVar3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) , number_literal , (pointer_expression "&local_24" & identifier) ))) ;) (expression_statement "iVar7 = local_24;" (assignment_expression "iVar7 = local_24" identifier = identifier) ;) (if_statement "if (local_20 == 0) {\n      local_20 = 0;\n      for (iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60); iVar5 != 0;\n          iVar5 = *(int *)(iVar5 + 0xc)) {\n        if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }\n      }\n      return;\n    }" if (parenthesized_expression "(local_20 == 0)" ( (binary_expression "local_20 == 0" identifier == number_literal) )) (compound_statement "{\n      local_20 = 0;\n      for (iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60); iVar5 != 0;\n          iVar5 = *(int *)(iVar5 + 0xc)) {\n        if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }\n      }\n      return;\n    }" { (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (for_statement "for (iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60); iVar5 != 0;\n          iVar5 = *(int *)(iVar5 + 0xc)) {\n        if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }\n      }" for ( (assignment_expression "iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60)" identifier = (pointer_expression "*(int *)(*(int *)(param_2 + 0x10) + 0x60)" * (cast_expression "(int *)(*(int *)(param_2 + 0x10) + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0x10) + 0x60)" ( (binary_expression "*(int *)(param_2 + 0x10) + 0x60" (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) + number_literal) ))))) ; (binary_expression "iVar5 != 0" identifier != number_literal) ; (assignment_expression "iVar5 = *(int *)(iVar5 + 0xc)" identifier = (pointer_expression "*(int *)(iVar5 + 0xc)" * (cast_expression "(int *)(iVar5 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xc)" ( (binary_expression "iVar5 + 0xc" identifier + number_literal) ))))) ) (compound_statement "{\n        if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }\n      }" { (if_statement "if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }" if (parenthesized_expression "(iVar6 == iVar5)" ( (binary_expression "iVar6 == iVar5" identifier == identifier) )) (compound_statement "{\n          FUN_00022d60(iVar2,param_3,param_4);\n        }" { (expression_statement "FUN_00022d60(iVar2,param_3,param_4);" (call_expression "FUN_00022d60(iVar2,param_3,param_4)" identifier (argument_list "(iVar2,param_3,param_4)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }" else (if_statement "if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }" if (parenthesized_expression "(iVar7 == iVar5)" ( (binary_expression "iVar7 == iVar5" identifier == identifier) )) (compound_statement "{\n          FUN_00022d60(iVar3,param_3,param_4);\n        }" { (expression_statement "FUN_00022d60(iVar3,param_3,param_4);" (call_expression "FUN_00022d60(iVar3,param_3,param_4)" identifier (argument_list "(iVar3,param_3,param_4)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }" else (compound_statement "{\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }" { (expression_statement "iVar8 = FUN_00021220();" (assignment_expression "iVar8 = FUN_00021220()" identifier = (call_expression "FUN_00021220()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar9 = uVar4;" (assignment_expression "uVar9 = uVar4" identifier = identifier) ;) (if_statement "if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }" if (parenthesized_expression "((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0))" ( (binary_expression "(iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)" (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) || (parenthesized_expression "(iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)" ( (comma_expression "iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0" (assignment_expression "iVar8 = FUN_00021220()" identifier = (call_expression "FUN_00021220()" identifier (argument_list "()" ( )))) , (comma_expression "uVar9 = uVar1, iVar8 != 0" (assignment_expression "uVar9 = uVar1" identifier = identifier) , (binary_expression "iVar8 != 0" identifier != number_literal))) ))) )) (compound_statement "{\n            FUN_00022d60(uVar9,param_3,param_4);\n          }" { (expression_statement "FUN_00022d60(uVar9,param_3,param_4);" (call_expression "FUN_00022d60(uVar9,param_3,param_4)" identifier (argument_list "(uVar9,param_3,param_4)" ( identifier , identifier , identifier ))) ;) })) }))))) })) (return_statement "return;" return ;) })) })) (expression_statement "FUN_00022e00(param_1,param_2,param_3,param_4);" (call_expression "FUN_00022e00(param_1,param_2,param_3,param_4)" identifier (argument_list "(param_1,param_2,param_3,param_4)" ( identifier , identifier , identifier , 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 IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (for_statement for ( (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT != LIT))) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) }))))) })) (return_statement return ;) })) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00022e90(int param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x22e99;\n  uVar1 = *(undefined4 *)(param_1 + 0x34);\n  iVar2 = *(int *)(param_1 + 0x28);\n  iVar3 = *(int *)(param_1 + 0x2c);\n  uVar4 = *(undefined4 *)(param_1 + 0x30);\n  local_24 = 0;\n  local_20 = 0;\n  bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar2 + 4),0x1ffe0,&local_24);\n  iVar6 = local_24;\n  if (local_20 == 0) {\n    local_24 = 0;\n    bfd_get_section_by_name_if\n              (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar3 + 4),0x1ffe0,&local_24);\n    iVar7 = local_24;\n    if (local_20 == 0) {\n      local_20 = 0;\n      for (iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60); iVar5 != 0;\n          iVar5 = *(int *)(iVar5 + 0xc)) {\n        if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }\n      }\n      return;\n    }\n  }\n  FUN_00022e00(param_1,param_2,param_3,param_4);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00022e90(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_00022e90") (parameter_list "(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x22e99;\n  uVar1 = *(undefined4 *)(param_1 + 0x34);\n  iVar2 = *(int *)(param_1 + 0x28);\n  iVar3 = *(int *)(param_1 + 0x2c);\n  uVar4 = *(undefined4 *)(param_1 + 0x30);\n  local_24 = 0;\n  local_20 = 0;\n  bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar2 + 4),0x1ffe0,&local_24);\n  iVar6 = local_24;\n  if (local_20 == 0) {\n    local_24 = 0;\n    bfd_get_section_by_name_if\n              (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar3 + 4),0x1ffe0,&local_24);\n    iVar7 = local_24;\n    if (local_20 == 0) {\n      local_20 = 0;\n      for (iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60); iVar5 != 0;\n          iVar5 = *(int *)(iVar5 + 0xc)) {\n        if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }\n      }\n      return;\n    }\n  }\n  FUN_00022e00(param_1,param_2,param_3,param_4);\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (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 iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "undefined4 uVar9;" (type_identifier "undefined4") (identifier "uVar9") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x22e99;" (assignment_expression "uStack_14 = 0x22e99" (identifier "uStack_14") (= "=") (number_literal "0x22e99")) (; ";")) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x34);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x34)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x34)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")"))))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x28)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x28)" (* "*") (cast_expression "(int *)(param_1 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 0x2c);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x2c)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")"))))) (; ";")) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 0x30);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 0x30)" (identifier "uVar4") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x30)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" (identifier "local_20") (= "=") (number_literal "0")) (; ";")) (expression_statement "bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar2 + 4),0x1ffe0,&local_24);" (call_expression "bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar2 + 4),0x1ffe0,&local_24)" (identifier "bfd_get_section_by_name_if") (argument_list "(*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar2 + 4),0x1ffe0,&local_24)" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(iVar2 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) (, ",") (number_literal "0x1ffe0") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")"))) (; ";")) (expression_statement "iVar6 = local_24;" (assignment_expression "iVar6 = local_24" (identifier "iVar6") (= "=") (identifier "local_24")) (; ";")) (if_statement "if (local_20 == 0) {\n    local_24 = 0;\n    bfd_get_section_by_name_if\n              (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar3 + 4),0x1ffe0,&local_24);\n    iVar7 = local_24;\n    if (local_20 == 0) {\n      local_20 = 0;\n      for (iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60); iVar5 != 0;\n          iVar5 = *(int *)(iVar5 + 0xc)) {\n        if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }\n      }\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(local_20 == 0)" (( "(") (binary_expression "local_20 == 0" (identifier "local_20") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_24 = 0;\n    bfd_get_section_by_name_if\n              (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar3 + 4),0x1ffe0,&local_24);\n    iVar7 = local_24;\n    if (local_20 == 0) {\n      local_20 = 0;\n      for (iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60); iVar5 != 0;\n          iVar5 = *(int *)(iVar5 + 0xc)) {\n        if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }\n      }\n      return;\n    }\n  }" ({ "{") (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "bfd_get_section_by_name_if\n              (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar3 + 4),0x1ffe0,&local_24);" (call_expression "bfd_get_section_by_name_if\n              (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar3 + 4),0x1ffe0,&local_24)" (identifier "bfd_get_section_by_name_if") (argument_list "(*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar3 + 4),0x1ffe0,&local_24)" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(iVar3 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 4)" (( "(") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) () ")")))) (, ",") (number_literal "0x1ffe0") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")"))) (; ";")) (expression_statement "iVar7 = local_24;" (assignment_expression "iVar7 = local_24" (identifier "iVar7") (= "=") (identifier "local_24")) (; ";")) (if_statement "if (local_20 == 0) {\n      local_20 = 0;\n      for (iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60); iVar5 != 0;\n          iVar5 = *(int *)(iVar5 + 0xc)) {\n        if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }\n      }\n      return;\n    }" (if "if") (parenthesized_expression "(local_20 == 0)" (( "(") (binary_expression "local_20 == 0" (identifier "local_20") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      local_20 = 0;\n      for (iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60); iVar5 != 0;\n          iVar5 = *(int *)(iVar5 + 0xc)) {\n        if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }\n      }\n      return;\n    }" ({ "{") (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" (identifier "local_20") (= "=") (number_literal "0")) (; ";")) (for_statement "for (iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60); iVar5 != 0;\n          iVar5 = *(int *)(iVar5 + 0xc)) {\n        if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }\n      }" (for "for") (( "(") (assignment_expression "iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(*(int *)(param_2 + 0x10) + 0x60)" (* "*") (cast_expression "(int *)(*(int *)(param_2 + 0x10) + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_2 + 0x10) + 0x60)" (( "(") (binary_expression "*(int *)(param_2 + 0x10) + 0x60" (pointer_expression "*(int *)(param_2 + 0x10)" (* "*") (cast_expression "(int *)(param_2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "0x60")) () ")"))))) (; ";") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar5 = *(int *)(iVar5 + 0xc)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(iVar5 + 0xc)" (* "*") (cast_expression "(int *)(iVar5 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0xc)" (( "(") (binary_expression "iVar5 + 0xc" (identifier "iVar5") (+ "+") (number_literal "0xc")) () ")"))))) () ")") (compound_statement "{\n        if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }\n      }" ({ "{") (if_statement "if (iVar6 == iVar5) {\n          FUN_00022d60(iVar2,param_3,param_4);\n        }\n        else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }" (if "if") (parenthesized_expression "(iVar6 == iVar5)" (( "(") (binary_expression "iVar6 == iVar5" (identifier "iVar6") (== "==") (identifier "iVar5")) () ")")) (compound_statement "{\n          FUN_00022d60(iVar2,param_3,param_4);\n        }" ({ "{") (expression_statement "FUN_00022d60(iVar2,param_3,param_4);" (call_expression "FUN_00022d60(iVar2,param_3,param_4)" (identifier "FUN_00022d60") (argument_list "(iVar2,param_3,param_4)" (( "(") (identifier "iVar2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (} "}")) (else_clause "else if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }" (else "else") (if_statement "if (iVar7 == iVar5) {\n          FUN_00022d60(iVar3,param_3,param_4);\n        }\n        else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }" (if "if") (parenthesized_expression "(iVar7 == iVar5)" (( "(") (binary_expression "iVar7 == iVar5" (identifier "iVar7") (== "==") (identifier "iVar5")) () ")")) (compound_statement "{\n          FUN_00022d60(iVar3,param_3,param_4);\n        }" ({ "{") (expression_statement "FUN_00022d60(iVar3,param_3,param_4);" (call_expression "FUN_00022d60(iVar3,param_3,param_4)" (identifier "FUN_00022d60") (argument_list "(iVar3,param_3,param_4)" (( "(") (identifier "iVar3") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (} "}")) (else_clause "else {\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }" (else "else") (compound_statement "{\n          iVar8 = FUN_00021220();\n          uVar9 = uVar4;\n          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }\n        }" ({ "{") (expression_statement "iVar8 = FUN_00021220();" (assignment_expression "iVar8 = FUN_00021220()" (identifier "iVar8") (= "=") (call_expression "FUN_00021220()" (identifier "FUN_00021220") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar9 = uVar4;" (assignment_expression "uVar9 = uVar4" (identifier "uVar9") (= "=") (identifier "uVar4")) (; ";")) (if_statement "if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {\n            FUN_00022d60(uVar9,param_3,param_4);\n          }" (if "if") (parenthesized_expression "((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0))" (( "(") (binary_expression "(iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)" (parenthesized_expression "(iVar8 != 0)" (( "(") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)" (( "(") (comma_expression "iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0" (assignment_expression "iVar8 = FUN_00021220()" (identifier "iVar8") (= "=") (call_expression "FUN_00021220()" (identifier "FUN_00021220") (argument_list "()" (( "(") () ")")))) (, ",") (comma_expression "uVar9 = uVar1, iVar8 != 0" (assignment_expression "uVar9 = uVar1" (identifier "uVar9") (= "=") (identifier "uVar1")) (, ",") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")))) () ")"))) () ")")) (compound_statement "{\n            FUN_00022d60(uVar9,param_3,param_4);\n          }" ({ "{") (expression_statement "FUN_00022d60(uVar9,param_3,param_4);" (call_expression "FUN_00022d60(uVar9,param_3,param_4)" (identifier "FUN_00022d60") (argument_list "(uVar9,param_3,param_4)" (( "(") (identifier "uVar9") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (} "}"))) (} "}")))))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_00022e00(param_1,param_2,param_3,param_4);" (call_expression "FUN_00022e00(param_1,param_2,param_3,param_4)" (identifier "FUN_00022e00") (argument_list "(param_1,param_2,param_3,param_4)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1
               (type_1 *ptr,type_2 *file,type_3 callback,
               void *data)

{
  type_4 *pwVar1;
  type_4 *sec;
  type_4 *sec_00;
  type_4 *pwVar2;
  type_5 *var_2;
  type_5 *var_3;
  type_5 *var_5;
  type_6 var_7;
  char *name;
  type_4 *sec_01;
  type_7 cb_data;
  
  pwVar1 = ptr->handler_data[3];
  sec = ptr->handler_data[0];
  sec_00 = ptr->handler_data[1];
  pwVar2 = ptr->handler_data[2];
  cb_data.found_section = (type_5 *)0x0;
  cb_data.multiple_sections_found = 0;
  var_1(file->the_bfd,(sec->spec).name,0x1ffe0,&cb_data);
  var_3 = cb_data.found_section;
  if (cb_data.multiple_sections_found == 0) {
    cb_data.found_section = (type_5 *)0x0;
    var_1(file->the_bfd,(sec_00->spec).name,0x1ffe0,&cb_data);
    var_5 = cb_data.found_section;
    if (cb_data.multiple_sections_found == 0) {
      cb_data.multiple_sections_found = 0;
      for (var_2 = file->the_bfd->sections; var_2 != (type_5 *)0x0; var_2 = var_2->next) {
        if (var_3 == var_2) {
          var_4(ptr,file,var_3,sec,callback,data);
        }
        else if (var_5 == var_2) {
          var_4(ptr,file,var_5,sec_00,callback,data);
        }
        else {
          var_7 = var_6((pwVar2->spec).name,var_2->name);
          sec_01 = pwVar2;
          if ((var_7 != 0) ||
             (var_7 = var_6((pwVar1->spec).name,name), sec_01 = pwVar1, var_7 != 0)) {
            var_4(ptr,file,var_2,sec_01,callback,data);
          }
        }
      }
      return;
    }
  }
  var_8(ptr,file,callback,data);
  return;
}


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

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

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

{
  undefined4 uVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  undefined4 uVar9;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x22e99;
  uVar1 = *(undefined4 *)(param_1 + 0x34);
  iVar2 = *(int *)(param_1 + 0x28);
  iVar3 = *(int *)(param_1 + 0x2c);
  uVar4 = *(undefined4 *)(param_1 + 0x30);
  local_24 = 0;
  local_20 = 0;
  bfd_get_section_by_name_if
            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar2 + 4),0x1ffe0,&local_24);
  iVar6 = local_24;
  if (local_20 == 0) {
    local_24 = 0;
    bfd_get_section_by_name_if
              (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar3 + 4),0x1ffe0,&local_24);
    iVar7 = local_24;
    if (local_20 == 0) {
      local_20 = 0;
      for (iVar5 = *(int *)(*(int *)(param_2 + 0x10) + 0x60); iVar5 != 0;
          iVar5 = *(int *)(iVar5 + 0xc)) {
        if (iVar6 == iVar5) {
          FUN_00022d60(iVar2,param_3,param_4);
        }
        else if (iVar7 == iVar5) {
          FUN_00022d60(iVar3,param_3,param_4);
        }
        else {
          iVar8 = FUN_00021220();
          uVar9 = uVar4;
          if ((iVar8 != 0) || (iVar8 = FUN_00021220(), uVar9 = uVar1, iVar8 != 0)) {
            FUN_00022d60(uVar9,param_3,param_4);
          }
        }
      }
      return;
    }
  }
  FUN_00022e00(param_1,param_2,param_3,param_4);
  return;
}

