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

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

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



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

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

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  undefined4 uVar7;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x22fa9;
  local_24 = 0;
  iVar1 = *(int *)(param_1 + 0x28);
  uVar2 = *(undefined4 *)(param_1 + 0x2c);
  uVar3 = *(undefined4 *)(param_1 + 0x30);
  local_20 = 0;
  bfd_get_section_by_name_if
            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001ff40,&local_24);
  iVar4 = local_24;
  if (local_20 != 0) {
    FUN_00022d60(param_1,param_2,param_3,param_4);
    return;
  }
  iVar6 = *(int *)(*(int *)(param_2 + 0x10) + 0x60);
  local_20 = 0;
  do {
    if (iVar6 == 0) {
      return;
    }
    while (iVar4 == iVar6) {
      FUN_00022cc0(iVar1,param_3,param_4);
      iVar6 = *(int *)(iVar6 + 0xc);
      if (iVar6 == 0) {
        return;
      }
    }
    iVar5 = FUN_00021180();
    uVar7 = uVar2;
    if ((iVar5 != 0) || (iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0)) {
      FUN_00022cc0(uVar7,param_3,param_4);
    }
    iVar6 = *(int *)(iVar6 + 0xc);
  } while( true );
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00017b80
ADD EBX,0x1ab057
SUB ESP,0x2c
MOV EAX,dword ptr [ESP + 0x40]
MOV ECX,dword ptr [ESP + 0x40]
LEA EDX,[ESP + 0x18]
MOV dword ptr [ESP + 0x18],0x0
MOV EAX,dword ptr [EAX + 0x28]
MOV EDI,dword ptr [ECX + 0x2c]
MOV ECX,dword ptr [ECX + 0x30]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [EAX + 0x4]
MOV dword ptr [ESP + 0x8],ECX
MOV dword ptr [ESP + 0x1c],0x0
PUSH EDX
LEA EDX,[EBX + 0xffe51f40]
PUSH EDX
PUSH EAX
MOV EAX,dword ptr [ESP + 0x50]
PUSH dword ptr [EAX + 0x10]
CALL 0x00016060
MOV EBP,dword ptr [ESP + 0x28]
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x1c]
TEST EAX,EAX
JNZ 0x000230b0
MOV EAX,dword ptr [ESP + 0x44]
MOV EAX,dword ptr [EAX + 0x10]
MOV EBX,dword ptr [EAX + 0x60]
TEST EBX,EBX
JNZ 0x00023045
JMP 0x000230a8
SUB ESP,0x4
PUSH dword ptr [ESP + 0x50]
PUSH dword ptr [ESP + 0x50]
PUSH EDI
MOV EDX,dword ptr [ESP + 0x54]
MOV EAX,dword ptr [ESP + 0x50]
MOV ECX,EBX
CALL 0x00022cc0
ADD ESP,0x10
MOV EBX,dword ptr [EBX + 0xc]
TEST EBX,EBX
JZ 0x000230a8
CMP EBP,EBX
JZ 0x00023080
MOV ESI,dword ptr [EBX]
MOV EAX,dword ptr [EDI + 0x4]
MOV EDX,ESI
CALL 0x00021180
TEST EAX,EAX
JNZ 0x00023020
MOV EAX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [EAX + 0x4]
CALL 0x00021180
TEST EAX,EAX
JZ 0x0002303e
SUB ESP,0x4
PUSH dword ptr [ESP + 0x50]
PUSH dword ptr [ESP + 0x50]
PUSH dword ptr [ESP + 0x14]
JMP 0x0002302c
SUB ESP,0x4
MOV ECX,EBP
PUSH dword ptr [ESP + 0x50]
PUSH dword ptr [ESP + 0x50]
PUSH dword ptr [ESP + 0x18]
MOV EDX,dword ptr [ESP + 0x54]
MOV EAX,dword ptr [ESP + 0x50]
CALL 0x00022cc0
MOV EBX,dword ptr [EBX + 0xc]
ADD ESP,0x10
TEST EBX,EBX
JNZ 0x00023045
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
PUSH dword ptr [ESP + 0x4c]
PUSH dword ptr [ESP + 0x4c]
PUSH dword ptr [ESP + 0x4c]
PUSH dword ptr [ESP + 0x4c]
CALL 0x00022d60
ADD ESP,0x10
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00022fa0(int param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x22fa9;\n  local_24 = 0;\n  iVar1 = *(int *)(param_1 + 0x28);\n  uVar2 = *(undefined4 *)(param_1 + 0x2c);\n  uVar3 = *(undefined4 *)(param_1 + 0x30);\n  local_20 = 0;\n  bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001ff40,&local_24);\n  iVar4 = local_24;\n  if (local_20 != 0) {\n    FUN_00022d60(param_1,param_2,param_3,param_4);\n    return;\n  }\n  iVar6 = *(int *)(*(int *)(param_2 + 0x10) + 0x60);\n  local_20 = 0;\n  do {\n    if (iVar6 == 0) {\n      return;\n    }\n    while (iVar4 == iVar6) {\n      FUN_00022cc0(iVar1,param_3,param_4);\n      iVar6 = *(int *)(iVar6 + 0xc);\n      if (iVar6 == 0) {\n        return;\n      }\n    }\n    iVar5 = FUN_00021180();\n    uVar7 = uVar2;\n    if ((iVar5 != 0) || (iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0)) {\n      FUN_00022cc0(uVar7,param_3,param_4);\n    }\n    iVar6 = *(int *)(iVar6 + 0xc);\n  } while( true );\n}\n\n" comment (function_definition "void FUN_00022fa0(int param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x22fa9;\n  local_24 = 0;\n  iVar1 = *(int *)(param_1 + 0x28);\n  uVar2 = *(undefined4 *)(param_1 + 0x2c);\n  uVar3 = *(undefined4 *)(param_1 + 0x30);\n  local_20 = 0;\n  bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001ff40,&local_24);\n  iVar4 = local_24;\n  if (local_20 != 0) {\n    FUN_00022d60(param_1,param_2,param_3,param_4);\n    return;\n  }\n  iVar6 = *(int *)(*(int *)(param_2 + 0x10) + 0x60);\n  local_20 = 0;\n  do {\n    if (iVar6 == 0) {\n      return;\n    }\n    while (iVar4 == iVar6) {\n      FUN_00022cc0(iVar1,param_3,param_4);\n      iVar6 = *(int *)(iVar6 + 0xc);\n      if (iVar6 == 0) {\n        return;\n      }\n    }\n    iVar5 = FUN_00021180();\n    uVar7 = uVar2;\n    if ((iVar5 != 0) || (iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0)) {\n      FUN_00022cc0(uVar7,param_3,param_4);\n    }\n    iVar6 = *(int *)(iVar6 + 0xc);\n  } while( true );\n}" primitive_type (function_declarator "FUN_00022fa0(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  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x22fa9;\n  local_24 = 0;\n  iVar1 = *(int *)(param_1 + 0x28);\n  uVar2 = *(undefined4 *)(param_1 + 0x2c);\n  uVar3 = *(undefined4 *)(param_1 + 0x30);\n  local_20 = 0;\n  bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001ff40,&local_24);\n  iVar4 = local_24;\n  if (local_20 != 0) {\n    FUN_00022d60(param_1,param_2,param_3,param_4);\n    return;\n  }\n  iVar6 = *(int *)(*(int *)(param_2 + 0x10) + 0x60);\n  local_20 = 0;\n  do {\n    if (iVar6 == 0) {\n      return;\n    }\n    while (iVar4 == iVar6) {\n      FUN_00022cc0(iVar1,param_3,param_4);\n      iVar6 = *(int *)(iVar6 + 0xc);\n      if (iVar6 == 0) {\n        return;\n      }\n    }\n    iVar5 = FUN_00021180();\n    uVar7 = uVar2;\n    if ((iVar5 != 0) || (iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0)) {\n      FUN_00022cc0(uVar7,param_3,param_4);\n    }\n    iVar6 = *(int *)(iVar6 + 0xc);\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" 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 = 0x22fa9;" (assignment_expression "uStack_14 = 0x22fa9" identifier = number_literal) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar1 = *(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 "uVar2 = *(undefined4 *)(param_1 + 0x2c);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x2c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x2c)" * (cast_expression "(undefined4 *)(param_1 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(undefined4 *)(param_1 + 0x30);" (assignment_expression "uVar3 = *(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_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001ff40,&local_24);" (call_expression "bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001ff40,&local_24)" identifier (argument_list "(*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001ff40,&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 *)(iVar1 + 4)" * (cast_expression "(undefined4 *)(iVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) , identifier , (pointer_expression "&local_24" & identifier) ))) ;) (expression_statement "iVar4 = local_24;" (assignment_expression "iVar4 = local_24" identifier = identifier) ;) (if_statement "if (local_20 != 0) {\n    FUN_00022d60(param_1,param_2,param_3,param_4);\n    return;\n  }" if (parenthesized_expression "(local_20 != 0)" ( (binary_expression "local_20 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00022d60(param_1,param_2,param_3,param_4);\n    return;\n  }" { (expression_statement "FUN_00022d60(param_1,param_2,param_3,param_4);" (call_expression "FUN_00022d60(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 ;) })) (expression_statement "iVar6 = *(int *)(*(int *)(param_2 + 0x10) + 0x60);" (assignment_expression "iVar6 = *(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) ))))) ;) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (do_statement "do {\n    if (iVar6 == 0) {\n      return;\n    }\n    while (iVar4 == iVar6) {\n      FUN_00022cc0(iVar1,param_3,param_4);\n      iVar6 = *(int *)(iVar6 + 0xc);\n      if (iVar6 == 0) {\n        return;\n      }\n    }\n    iVar5 = FUN_00021180();\n    uVar7 = uVar2;\n    if ((iVar5 != 0) || (iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0)) {\n      FUN_00022cc0(uVar7,param_3,param_4);\n    }\n    iVar6 = *(int *)(iVar6 + 0xc);\n  } while( true );" do (compound_statement "{\n    if (iVar6 == 0) {\n      return;\n    }\n    while (iVar4 == iVar6) {\n      FUN_00022cc0(iVar1,param_3,param_4);\n      iVar6 = *(int *)(iVar6 + 0xc);\n      if (iVar6 == 0) {\n        return;\n      }\n    }\n    iVar5 = FUN_00021180();\n    uVar7 = uVar2;\n    if ((iVar5 != 0) || (iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0)) {\n      FUN_00022cc0(uVar7,param_3,param_4);\n    }\n    iVar6 = *(int *)(iVar6 + 0xc);\n  }" { (if_statement "if (iVar6 == 0) {\n      return;\n    }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (while_statement "while (iVar4 == iVar6) {\n      FUN_00022cc0(iVar1,param_3,param_4);\n      iVar6 = *(int *)(iVar6 + 0xc);\n      if (iVar6 == 0) {\n        return;\n      }\n    }" while (parenthesized_expression "(iVar4 == iVar6)" ( (binary_expression "iVar4 == iVar6" identifier == identifier) )) (compound_statement "{\n      FUN_00022cc0(iVar1,param_3,param_4);\n      iVar6 = *(int *)(iVar6 + 0xc);\n      if (iVar6 == 0) {\n        return;\n      }\n    }" { (expression_statement "FUN_00022cc0(iVar1,param_3,param_4);" (call_expression "FUN_00022cc0(iVar1,param_3,param_4)" identifier (argument_list "(iVar1,param_3,param_4)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar6 = *(int *)(iVar6 + 0xc);" (assignment_expression "iVar6 = *(int *)(iVar6 + 0xc)" identifier = (pointer_expression "*(int *)(iVar6 + 0xc)" * (cast_expression "(int *)(iVar6 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar6 == 0) {\n        return;\n      }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (expression_statement "iVar5 = FUN_00021180();" (assignment_expression "iVar5 = FUN_00021180()" identifier = (call_expression "FUN_00021180()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar7 = uVar2;" (assignment_expression "uVar7 = uVar2" identifier = identifier) ;) (if_statement "if ((iVar5 != 0) || (iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0)) {\n      FUN_00022cc0(uVar7,param_3,param_4);\n    }" if (parenthesized_expression "((iVar5 != 0) || (iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0))" ( (binary_expression "(iVar5 != 0) || (iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0)" (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) || (parenthesized_expression "(iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0)" ( (comma_expression "iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0" (assignment_expression "iVar5 = FUN_00021180()" identifier = (call_expression "FUN_00021180()" identifier (argument_list "()" ( )))) , (comma_expression "uVar7 = uVar3, iVar5 != 0" (assignment_expression "uVar7 = uVar3" identifier = identifier) , (binary_expression "iVar5 != 0" identifier != number_literal))) ))) )) (compound_statement "{\n      FUN_00022cc0(uVar7,param_3,param_4);\n    }" { (expression_statement "FUN_00022cc0(uVar7,param_3,param_4);" (call_expression "FUN_00022cc0(uVar7,param_3,param_4)" identifier (argument_list "(uVar7,param_3,param_4)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "iVar6 = *(int *)(iVar6 + 0xc);" (assignment_expression "iVar6 = *(int *)(iVar6 + 0xc)" identifier = (pointer_expression "*(int *)(iVar6 + 0xc)" * (cast_expression "(int *)(iVar6 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid walk_wild_section_specs3_wild2\n               (lang_wild_statement_type *ptr,lang_input_statement_type *file,callback_t callback,\n               void *data)\n\n{\n  wildcard_list *sec;\n  wildcard_list *pwVar1;\n  wildcard_list *pwVar2;\n  asection *s;\n  bfd_boolean bVar3;\n  char *name;\n  bfd_section *s_00;\n  wildcard_list *sec_00;\n  section_iterator_callback_data cb_data;\n  \n  cb_data.found_section = (asection *)0x0;\n  sec = ptr->handler_data[0];\n  pwVar1 = ptr->handler_data[1];\n  pwVar2 = ptr->handler_data[2];\n  cb_data.multiple_sections_found = 0;\n  bfd_get_section_by_name_if(file->the_bfd,(sec->spec).name,section_iterator_callback,&cb_data);\n  s = cb_data.found_section;\n  if (cb_data.multiple_sections_found != 0) {\n    walk_wild_section_general(ptr,file,callback,data);\n    return;\n  }\n  s_00 = file->the_bfd->sections;\n  cb_data.multiple_sections_found = 0;\n  do {\n    if (s_00 == (bfd_section *)0x0) {\n      return;\n    }\n    while (s == s_00) {\n      walk_wild_consider_section(ptr,file,s,sec,callback,data);\n      s_00 = s_00->next;\n      if (s_00 == (bfd_section *)0x0) {\n        return;\n      }\n    }\n    bVar3 = match_simple_wild((pwVar1->spec).name,s_00->name);\n    sec_00 = pwVar1;\n    if ((bVar3 != 0) ||\n       (bVar3 = match_simple_wild((pwVar2->spec).name,name), sec_00 = pwVar2, bVar3 != 0)) {\n      walk_wild_consider_section(ptr,file,s_00,sec_00,callback,data);\n    }\n    s_00 = s_00->next;\n  } while( true );\n}\n\n" comment comment (function_definition "void walk_wild_section_specs3_wild2\n               (lang_wild_statement_type *ptr,lang_input_statement_type *file,callback_t callback,\n               void *data)\n\n{\n  wildcard_list *sec;\n  wildcard_list *pwVar1;\n  wildcard_list *pwVar2;\n  asection *s;\n  bfd_boolean bVar3;\n  char *name;\n  bfd_section *s_00;\n  wildcard_list *sec_00;\n  section_iterator_callback_data cb_data;\n  \n  cb_data.found_section = (asection *)0x0;\n  sec = ptr->handler_data[0];\n  pwVar1 = ptr->handler_data[1];\n  pwVar2 = ptr->handler_data[2];\n  cb_data.multiple_sections_found = 0;\n  bfd_get_section_by_name_if(file->the_bfd,(sec->spec).name,section_iterator_callback,&cb_data);\n  s = cb_data.found_section;\n  if (cb_data.multiple_sections_found != 0) {\n    walk_wild_section_general(ptr,file,callback,data);\n    return;\n  }\n  s_00 = file->the_bfd->sections;\n  cb_data.multiple_sections_found = 0;\n  do {\n    if (s_00 == (bfd_section *)0x0) {\n      return;\n    }\n    while (s == s_00) {\n      walk_wild_consider_section(ptr,file,s,sec,callback,data);\n      s_00 = s_00->next;\n      if (s_00 == (bfd_section *)0x0) {\n        return;\n      }\n    }\n    bVar3 = match_simple_wild((pwVar1->spec).name,s_00->name);\n    sec_00 = pwVar1;\n    if ((bVar3 != 0) ||\n       (bVar3 = match_simple_wild((pwVar2->spec).name,name), sec_00 = pwVar2, bVar3 != 0)) {\n      walk_wild_consider_section(ptr,file,s_00,sec_00,callback,data);\n    }\n    s_00 = s_00->next;\n  } while( true );\n}" primitive_type (function_declarator "walk_wild_section_specs3_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 *sec;\n  wildcard_list *pwVar1;\n  wildcard_list *pwVar2;\n  asection *s;\n  bfd_boolean bVar3;\n  char *name;\n  bfd_section *s_00;\n  wildcard_list *sec_00;\n  section_iterator_callback_data cb_data;\n  \n  cb_data.found_section = (asection *)0x0;\n  sec = ptr->handler_data[0];\n  pwVar1 = ptr->handler_data[1];\n  pwVar2 = ptr->handler_data[2];\n  cb_data.multiple_sections_found = 0;\n  bfd_get_section_by_name_if(file->the_bfd,(sec->spec).name,section_iterator_callback,&cb_data);\n  s = cb_data.found_section;\n  if (cb_data.multiple_sections_found != 0) {\n    walk_wild_section_general(ptr,file,callback,data);\n    return;\n  }\n  s_00 = file->the_bfd->sections;\n  cb_data.multiple_sections_found = 0;\n  do {\n    if (s_00 == (bfd_section *)0x0) {\n      return;\n    }\n    while (s == s_00) {\n      walk_wild_consider_section(ptr,file,s,sec,callback,data);\n      s_00 = s_00->next;\n      if (s_00 == (bfd_section *)0x0) {\n        return;\n      }\n    }\n    bVar3 = match_simple_wild((pwVar1->spec).name,s_00->name);\n    sec_00 = pwVar1;\n    if ((bVar3 != 0) ||\n       (bVar3 = match_simple_wild((pwVar2->spec).name,name), sec_00 = pwVar2, bVar3 != 0)) {\n      walk_wild_consider_section(ptr,file,s_00,sec_00,callback,data);\n    }\n    s_00 = s_00->next;\n  } while( true );\n}" { (declaration "wildcard_list *sec;" type_identifier (pointer_declarator "*sec" * identifier) ;) (declaration "wildcard_list *pwVar1;" type_identifier (pointer_declarator "*pwVar1" * identifier) ;) (declaration "wildcard_list *pwVar2;" type_identifier (pointer_declarator "*pwVar2" * identifier) ;) (declaration "asection *s;" type_identifier (pointer_declarator "*s" * identifier) ;) (declaration "bfd_boolean bVar3;" type_identifier identifier ;) (declaration "char *name;" primitive_type (pointer_declarator "*name" * identifier) ;) (declaration "bfd_section *s_00;" type_identifier (pointer_declarator "*s_00" * identifier) ;) (declaration "wildcard_list *sec_00;" type_identifier (pointer_declarator "*sec_00" * identifier) ;) (declaration "section_iterator_callback_data cb_data;" type_identifier identifier ;) (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 "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 "pwVar1 = ptr->handler_data[1];" (assignment_expression "pwVar1 = 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.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,section_iterator_callback,&cb_data);" (call_expression "bfd_get_section_by_name_if(file->the_bfd,(sec->spec).name,section_iterator_callback,&cb_data)" identifier (argument_list "(file->the_bfd,(sec->spec).name,section_iterator_callback,&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) , identifier , (pointer_expression "&cb_data" & identifier) ))) ;) (expression_statement "s = cb_data.found_section;" (assignment_expression "s = cb_data.found_section" identifier = (field_expression "cb_data.found_section" identifier . field_identifier)) ;) (if_statement "if (cb_data.multiple_sections_found != 0) {\n    walk_wild_section_general(ptr,file,callback,data);\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    walk_wild_section_general(ptr,file,callback,data);\n    return;\n  }" { (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 ;) })) (expression_statement "s_00 = file->the_bfd->sections;" (assignment_expression "s_00 = file->the_bfd->sections" identifier = (field_expression "file->the_bfd->sections" (field_expression "file->the_bfd" identifier -> field_identifier) -> field_identifier)) ;) (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) ;) (do_statement "do {\n    if (s_00 == (bfd_section *)0x0) {\n      return;\n    }\n    while (s == s_00) {\n      walk_wild_consider_section(ptr,file,s,sec,callback,data);\n      s_00 = s_00->next;\n      if (s_00 == (bfd_section *)0x0) {\n        return;\n      }\n    }\n    bVar3 = match_simple_wild((pwVar1->spec).name,s_00->name);\n    sec_00 = pwVar1;\n    if ((bVar3 != 0) ||\n       (bVar3 = match_simple_wild((pwVar2->spec).name,name), sec_00 = pwVar2, bVar3 != 0)) {\n      walk_wild_consider_section(ptr,file,s_00,sec_00,callback,data);\n    }\n    s_00 = s_00->next;\n  } while( true );" do (compound_statement "{\n    if (s_00 == (bfd_section *)0x0) {\n      return;\n    }\n    while (s == s_00) {\n      walk_wild_consider_section(ptr,file,s,sec,callback,data);\n      s_00 = s_00->next;\n      if (s_00 == (bfd_section *)0x0) {\n        return;\n      }\n    }\n    bVar3 = match_simple_wild((pwVar1->spec).name,s_00->name);\n    sec_00 = pwVar1;\n    if ((bVar3 != 0) ||\n       (bVar3 = match_simple_wild((pwVar2->spec).name,name), sec_00 = pwVar2, bVar3 != 0)) {\n      walk_wild_consider_section(ptr,file,s_00,sec_00,callback,data);\n    }\n    s_00 = s_00->next;\n  }" { (if_statement "if (s_00 == (bfd_section *)0x0) {\n      return;\n    }" if (parenthesized_expression "(s_00 == (bfd_section *)0x0)" ( (binary_expression "s_00 == (bfd_section *)0x0" identifier == (cast_expression "(bfd_section *)0x0" ( (type_descriptor "bfd_section *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (while_statement "while (s == s_00) {\n      walk_wild_consider_section(ptr,file,s,sec,callback,data);\n      s_00 = s_00->next;\n      if (s_00 == (bfd_section *)0x0) {\n        return;\n      }\n    }" while (parenthesized_expression "(s == s_00)" ( (binary_expression "s == s_00" identifier == identifier) )) (compound_statement "{\n      walk_wild_consider_section(ptr,file,s,sec,callback,data);\n      s_00 = s_00->next;\n      if (s_00 == (bfd_section *)0x0) {\n        return;\n      }\n    }" { (expression_statement "walk_wild_consider_section(ptr,file,s,sec,callback,data);" (call_expression "walk_wild_consider_section(ptr,file,s,sec,callback,data)" identifier (argument_list "(ptr,file,s,sec,callback,data)" ( identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (expression_statement "s_00 = s_00->next;" (assignment_expression "s_00 = s_00->next" identifier = (field_expression "s_00->next" identifier -> field_identifier)) ;) (if_statement "if (s_00 == (bfd_section *)0x0) {\n        return;\n      }" if (parenthesized_expression "(s_00 == (bfd_section *)0x0)" ( (binary_expression "s_00 == (bfd_section *)0x0" identifier == (cast_expression "(bfd_section *)0x0" ( (type_descriptor "bfd_section *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (expression_statement "bVar3 = match_simple_wild((pwVar1->spec).name,s_00->name);" (assignment_expression "bVar3 = match_simple_wild((pwVar1->spec).name,s_00->name)" identifier = (call_expression "match_simple_wild((pwVar1->spec).name,s_00->name)" identifier (argument_list "((pwVar1->spec).name,s_00->name)" ( (field_expression "(pwVar1->spec).name" (parenthesized_expression "(pwVar1->spec)" ( (field_expression "pwVar1->spec" identifier -> field_identifier) )) . field_identifier) , (field_expression "s_00->name" identifier -> field_identifier) )))) ;) (expression_statement "sec_00 = pwVar1;" (assignment_expression "sec_00 = pwVar1" identifier = identifier) ;) (if_statement "if ((bVar3 != 0) ||\n       (bVar3 = match_simple_wild((pwVar2->spec).name,name), sec_00 = pwVar2, bVar3 != 0)) {\n      walk_wild_consider_section(ptr,file,s_00,sec_00,callback,data);\n    }" if (parenthesized_expression "((bVar3 != 0) ||\n       (bVar3 = match_simple_wild((pwVar2->spec).name,name), sec_00 = pwVar2, bVar3 != 0))" ( (binary_expression "(bVar3 != 0) ||\n       (bVar3 = match_simple_wild((pwVar2->spec).name,name), sec_00 = pwVar2, bVar3 != 0)" (parenthesized_expression "(bVar3 != 0)" ( (binary_expression "bVar3 != 0" identifier != number_literal) )) || (parenthesized_expression "(bVar3 = match_simple_wild((pwVar2->spec).name,name), sec_00 = pwVar2, bVar3 != 0)" ( (comma_expression "bVar3 = match_simple_wild((pwVar2->spec).name,name), sec_00 = pwVar2, bVar3 != 0" (assignment_expression "bVar3 = match_simple_wild((pwVar2->spec).name,name)" identifier = (call_expression "match_simple_wild((pwVar2->spec).name,name)" identifier (argument_list "((pwVar2->spec).name,name)" ( (field_expression "(pwVar2->spec).name" (parenthesized_expression "(pwVar2->spec)" ( (field_expression "pwVar2->spec" identifier -> field_identifier) )) . field_identifier) , identifier )))) , (comma_expression "sec_00 = pwVar2, bVar3 != 0" (assignment_expression "sec_00 = pwVar2" identifier = identifier) , (binary_expression "bVar3 != 0" identifier != number_literal))) ))) )) (compound_statement "{\n      walk_wild_consider_section(ptr,file,s_00,sec_00,callback,data);\n    }" { (expression_statement "walk_wild_consider_section(ptr,file,s_00,sec_00,callback,data);" (call_expression "walk_wild_consider_section(ptr,file,s_00,sec_00,callback,data)" identifier (argument_list "(ptr,file,s_00,sec_00,callback,data)" ( identifier , identifier , identifier , identifier , identifier , identifier ))) ;) })) (expression_statement "s_00 = s_00->next;" (assignment_expression "s_00 = s_00->next" identifier = (field_expression "s_00->next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void FUN_00022fa0(int param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x22fa9;\n  local_24 = 0;\n  iVar1 = *(int *)(param_1 + 0x28);\n  uVar2 = *(undefined4 *)(param_1 + 0x2c);\n  uVar3 = *(undefined4 *)(param_1 + 0x30);\n  local_20 = 0;\n  bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001ff40,&local_24);\n  iVar4 = local_24;\n  if (local_20 != 0) {\n    FUN_00022d60(param_1,param_2,param_3,param_4);\n    return;\n  }\n  iVar6 = *(int *)(*(int *)(param_2 + 0x10) + 0x60);\n  local_20 = 0;\n  do {\n    if (iVar6 == 0) {\n      return;\n    }\n    while (iVar4 == iVar6) {\n      FUN_00022cc0(iVar1,param_3,param_4);\n      iVar6 = *(int *)(iVar6 + 0xc);\n      if (iVar6 == 0) {\n        return;\n      }\n    }\n    iVar5 = FUN_00021180();\n    uVar7 = uVar2;\n    if ((iVar5 != 0) || (iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0)) {\n      FUN_00022cc0(uVar7,param_3,param_4);\n    }\n    iVar6 = *(int *)(iVar6 + 0xc);\n  } while( true );\n}\n\n" (function_definition "void FUN_00022fa0(int param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x22fa9;\n  local_24 = 0;\n  iVar1 = *(int *)(param_1 + 0x28);\n  uVar2 = *(undefined4 *)(param_1 + 0x2c);\n  uVar3 = *(undefined4 *)(param_1 + 0x30);\n  local_20 = 0;\n  bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001ff40,&local_24);\n  iVar4 = local_24;\n  if (local_20 != 0) {\n    FUN_00022d60(param_1,param_2,param_3,param_4);\n    return;\n  }\n  iVar6 = *(int *)(*(int *)(param_2 + 0x10) + 0x60);\n  local_20 = 0;\n  do {\n    if (iVar6 == 0) {\n      return;\n    }\n    while (iVar4 == iVar6) {\n      FUN_00022cc0(iVar1,param_3,param_4);\n      iVar6 = *(int *)(iVar6 + 0xc);\n      if (iVar6 == 0) {\n        return;\n      }\n    }\n    iVar5 = FUN_00021180();\n    uVar7 = uVar2;\n    if ((iVar5 != 0) || (iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0)) {\n      FUN_00022cc0(uVar7,param_3,param_4);\n    }\n    iVar6 = *(int *)(iVar6 + 0xc);\n  } while( true );\n}" primitive_type (function_declarator "FUN_00022fa0(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  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x22fa9;\n  local_24 = 0;\n  iVar1 = *(int *)(param_1 + 0x28);\n  uVar2 = *(undefined4 *)(param_1 + 0x2c);\n  uVar3 = *(undefined4 *)(param_1 + 0x30);\n  local_20 = 0;\n  bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001ff40,&local_24);\n  iVar4 = local_24;\n  if (local_20 != 0) {\n    FUN_00022d60(param_1,param_2,param_3,param_4);\n    return;\n  }\n  iVar6 = *(int *)(*(int *)(param_2 + 0x10) + 0x60);\n  local_20 = 0;\n  do {\n    if (iVar6 == 0) {\n      return;\n    }\n    while (iVar4 == iVar6) {\n      FUN_00022cc0(iVar1,param_3,param_4);\n      iVar6 = *(int *)(iVar6 + 0xc);\n      if (iVar6 == 0) {\n        return;\n      }\n    }\n    iVar5 = FUN_00021180();\n    uVar7 = uVar2;\n    if ((iVar5 != 0) || (iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0)) {\n      FUN_00022cc0(uVar7,param_3,param_4);\n    }\n    iVar6 = *(int *)(iVar6 + 0xc);\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" 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 = 0x22fa9;" (assignment_expression "uStack_14 = 0x22fa9" identifier = number_literal) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar1 = *(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 "uVar2 = *(undefined4 *)(param_1 + 0x2c);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x2c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x2c)" * (cast_expression "(undefined4 *)(param_1 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(undefined4 *)(param_1 + 0x30);" (assignment_expression "uVar3 = *(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_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001ff40,&local_24);" (call_expression "bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001ff40,&local_24)" identifier (argument_list "(*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001ff40,&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 *)(iVar1 + 4)" * (cast_expression "(undefined4 *)(iVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) , identifier , (pointer_expression "&local_24" & identifier) ))) ;) (expression_statement "iVar4 = local_24;" (assignment_expression "iVar4 = local_24" identifier = identifier) ;) (if_statement "if (local_20 != 0) {\n    FUN_00022d60(param_1,param_2,param_3,param_4);\n    return;\n  }" if (parenthesized_expression "(local_20 != 0)" ( (binary_expression "local_20 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00022d60(param_1,param_2,param_3,param_4);\n    return;\n  }" { (expression_statement "FUN_00022d60(param_1,param_2,param_3,param_4);" (call_expression "FUN_00022d60(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 ;) })) (expression_statement "iVar6 = *(int *)(*(int *)(param_2 + 0x10) + 0x60);" (assignment_expression "iVar6 = *(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) ))))) ;) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (do_statement "do {\n    if (iVar6 == 0) {\n      return;\n    }\n    while (iVar4 == iVar6) {\n      FUN_00022cc0(iVar1,param_3,param_4);\n      iVar6 = *(int *)(iVar6 + 0xc);\n      if (iVar6 == 0) {\n        return;\n      }\n    }\n    iVar5 = FUN_00021180();\n    uVar7 = uVar2;\n    if ((iVar5 != 0) || (iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0)) {\n      FUN_00022cc0(uVar7,param_3,param_4);\n    }\n    iVar6 = *(int *)(iVar6 + 0xc);\n  } while( true );" do (compound_statement "{\n    if (iVar6 == 0) {\n      return;\n    }\n    while (iVar4 == iVar6) {\n      FUN_00022cc0(iVar1,param_3,param_4);\n      iVar6 = *(int *)(iVar6 + 0xc);\n      if (iVar6 == 0) {\n        return;\n      }\n    }\n    iVar5 = FUN_00021180();\n    uVar7 = uVar2;\n    if ((iVar5 != 0) || (iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0)) {\n      FUN_00022cc0(uVar7,param_3,param_4);\n    }\n    iVar6 = *(int *)(iVar6 + 0xc);\n  }" { (if_statement "if (iVar6 == 0) {\n      return;\n    }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (while_statement "while (iVar4 == iVar6) {\n      FUN_00022cc0(iVar1,param_3,param_4);\n      iVar6 = *(int *)(iVar6 + 0xc);\n      if (iVar6 == 0) {\n        return;\n      }\n    }" while (parenthesized_expression "(iVar4 == iVar6)" ( (binary_expression "iVar4 == iVar6" identifier == identifier) )) (compound_statement "{\n      FUN_00022cc0(iVar1,param_3,param_4);\n      iVar6 = *(int *)(iVar6 + 0xc);\n      if (iVar6 == 0) {\n        return;\n      }\n    }" { (expression_statement "FUN_00022cc0(iVar1,param_3,param_4);" (call_expression "FUN_00022cc0(iVar1,param_3,param_4)" identifier (argument_list "(iVar1,param_3,param_4)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar6 = *(int *)(iVar6 + 0xc);" (assignment_expression "iVar6 = *(int *)(iVar6 + 0xc)" identifier = (pointer_expression "*(int *)(iVar6 + 0xc)" * (cast_expression "(int *)(iVar6 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar6 == 0) {\n        return;\n      }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (expression_statement "iVar5 = FUN_00021180();" (assignment_expression "iVar5 = FUN_00021180()" identifier = (call_expression "FUN_00021180()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar7 = uVar2;" (assignment_expression "uVar7 = uVar2" identifier = identifier) ;) (if_statement "if ((iVar5 != 0) || (iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0)) {\n      FUN_00022cc0(uVar7,param_3,param_4);\n    }" if (parenthesized_expression "((iVar5 != 0) || (iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0))" ( (binary_expression "(iVar5 != 0) || (iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0)" (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) || (parenthesized_expression "(iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0)" ( (comma_expression "iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0" (assignment_expression "iVar5 = FUN_00021180()" identifier = (call_expression "FUN_00021180()" identifier (argument_list "()" ( )))) , (comma_expression "uVar7 = uVar3, iVar5 != 0" (assignment_expression "uVar7 = uVar3" identifier = identifier) , (binary_expression "iVar5 != 0" identifier != number_literal))) ))) )) (compound_statement "{\n      FUN_00022cc0(uVar7,param_3,param_4);\n    }" { (expression_statement "FUN_00022cc0(uVar7,param_3,param_4);" (call_expression "FUN_00022cc0(uVar7,param_3,param_4)" identifier (argument_list "(uVar7,param_3,param_4)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "iVar6 = *(int *)(iVar6 + 0xc);" (assignment_expression "iVar6 = *(int *)(iVar6 + 0xc)" identifier = (pointer_expression "*(int *)(iVar6 + 0xc)" * (cast_expression "(int *)(iVar6 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(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 ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })) (expression_statement (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) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (while_statement while (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) })) (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 ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void FUN_00022fa0(int param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x22fa9;\n  local_24 = 0;\n  iVar1 = *(int *)(param_1 + 0x28);\n  uVar2 = *(undefined4 *)(param_1 + 0x2c);\n  uVar3 = *(undefined4 *)(param_1 + 0x30);\n  local_20 = 0;\n  bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001ff40,&local_24);\n  iVar4 = local_24;\n  if (local_20 != 0) {\n    FUN_00022d60(param_1,param_2,param_3,param_4);\n    return;\n  }\n  iVar6 = *(int *)(*(int *)(param_2 + 0x10) + 0x60);\n  local_20 = 0;\n  do {\n    if (iVar6 == 0) {\n      return;\n    }\n    while (iVar4 == iVar6) {\n      FUN_00022cc0(iVar1,param_3,param_4);\n      iVar6 = *(int *)(iVar6 + 0xc);\n      if (iVar6 == 0) {\n        return;\n      }\n    }\n    iVar5 = FUN_00021180();\n    uVar7 = uVar2;\n    if ((iVar5 != 0) || (iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0)) {\n      FUN_00022cc0(uVar7,param_3,param_4);\n    }\n    iVar6 = *(int *)(iVar6 + 0xc);\n  } while( true );\n}" (primitive_type "void") (function_declarator "FUN_00022fa0(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_00022fa0") (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  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x22fa9;\n  local_24 = 0;\n  iVar1 = *(int *)(param_1 + 0x28);\n  uVar2 = *(undefined4 *)(param_1 + 0x2c);\n  uVar3 = *(undefined4 *)(param_1 + 0x30);\n  local_20 = 0;\n  bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001ff40,&local_24);\n  iVar4 = local_24;\n  if (local_20 != 0) {\n    FUN_00022d60(param_1,param_2,param_3,param_4);\n    return;\n  }\n  iVar6 = *(int *)(*(int *)(param_2 + 0x10) + 0x60);\n  local_20 = 0;\n  do {\n    if (iVar6 == 0) {\n      return;\n    }\n    while (iVar4 == iVar6) {\n      FUN_00022cc0(iVar1,param_3,param_4);\n      iVar6 = *(int *)(iVar6 + 0xc);\n      if (iVar6 == 0) {\n        return;\n      }\n    }\n    iVar5 = FUN_00021180();\n    uVar7 = uVar2;\n    if ((iVar5 != 0) || (iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0)) {\n      FUN_00022cc0(uVar7,param_3,param_4);\n    }\n    iVar6 = *(int *)(iVar6 + 0xc);\n  } while( true );\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (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 = 0x22fa9;" (assignment_expression "uStack_14 = 0x22fa9" (identifier "uStack_14") (= "=") (number_literal "0x22fa9")) (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x28)" (identifier "iVar1") (= "=") (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 "uVar2 = *(undefined4 *)(param_1 + 0x2c);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x2c)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x2c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")"))))) (; ";")) (expression_statement "uVar3 = *(undefined4 *)(param_1 + 0x30);" (assignment_expression "uVar3 = *(undefined4 *)(param_1 + 0x30)" (identifier "uVar3") (= "=") (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_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 *)(iVar1 + 4),FUN_0001ff40,&local_24);" (call_expression "bfd_get_section_by_name_if\n            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001ff40,&local_24)" (identifier "bfd_get_section_by_name_if") (argument_list "(*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001ff40,&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 *)(iVar1 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")")))) (, ",") (identifier "FUN_0001ff40") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")"))) (; ";")) (expression_statement "iVar4 = local_24;" (assignment_expression "iVar4 = local_24" (identifier "iVar4") (= "=") (identifier "local_24")) (; ";")) (if_statement "if (local_20 != 0) {\n    FUN_00022d60(param_1,param_2,param_3,param_4);\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 != 0)" (( "(") (binary_expression "local_20 != 0" (identifier "local_20") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00022d60(param_1,param_2,param_3,param_4);\n    return;\n  }" ({ "{") (expression_statement "FUN_00022d60(param_1,param_2,param_3,param_4);" (call_expression "FUN_00022d60(param_1,param_2,param_3,param_4)" (identifier "FUN_00022d60") (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") (; ";")) (} "}"))) (expression_statement "iVar6 = *(int *)(*(int *)(param_2 + 0x10) + 0x60);" (assignment_expression "iVar6 = *(int *)(*(int *)(param_2 + 0x10) + 0x60)" (identifier "iVar6") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" (identifier "local_20") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    if (iVar6 == 0) {\n      return;\n    }\n    while (iVar4 == iVar6) {\n      FUN_00022cc0(iVar1,param_3,param_4);\n      iVar6 = *(int *)(iVar6 + 0xc);\n      if (iVar6 == 0) {\n        return;\n      }\n    }\n    iVar5 = FUN_00021180();\n    uVar7 = uVar2;\n    if ((iVar5 != 0) || (iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0)) {\n      FUN_00022cc0(uVar7,param_3,param_4);\n    }\n    iVar6 = *(int *)(iVar6 + 0xc);\n  } while( true );" (do "do") (compound_statement "{\n    if (iVar6 == 0) {\n      return;\n    }\n    while (iVar4 == iVar6) {\n      FUN_00022cc0(iVar1,param_3,param_4);\n      iVar6 = *(int *)(iVar6 + 0xc);\n      if (iVar6 == 0) {\n        return;\n      }\n    }\n    iVar5 = FUN_00021180();\n    uVar7 = uVar2;\n    if ((iVar5 != 0) || (iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0)) {\n      FUN_00022cc0(uVar7,param_3,param_4);\n    }\n    iVar6 = *(int *)(iVar6 + 0xc);\n  }" ({ "{") (if_statement "if (iVar6 == 0) {\n      return;\n    }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (while_statement "while (iVar4 == iVar6) {\n      FUN_00022cc0(iVar1,param_3,param_4);\n      iVar6 = *(int *)(iVar6 + 0xc);\n      if (iVar6 == 0) {\n        return;\n      }\n    }" (while "while") (parenthesized_expression "(iVar4 == iVar6)" (( "(") (binary_expression "iVar4 == iVar6" (identifier "iVar4") (== "==") (identifier "iVar6")) () ")")) (compound_statement "{\n      FUN_00022cc0(iVar1,param_3,param_4);\n      iVar6 = *(int *)(iVar6 + 0xc);\n      if (iVar6 == 0) {\n        return;\n      }\n    }" ({ "{") (expression_statement "FUN_00022cc0(iVar1,param_3,param_4);" (call_expression "FUN_00022cc0(iVar1,param_3,param_4)" (identifier "FUN_00022cc0") (argument_list "(iVar1,param_3,param_4)" (( "(") (identifier "iVar1") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (expression_statement "iVar6 = *(int *)(iVar6 + 0xc);" (assignment_expression "iVar6 = *(int *)(iVar6 + 0xc)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(iVar6 + 0xc)" (* "*") (cast_expression "(int *)(iVar6 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0xc)" (( "(") (binary_expression "iVar6 + 0xc" (identifier "iVar6") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (iVar6 == 0) {\n        return;\n      }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar5 = FUN_00021180();" (assignment_expression "iVar5 = FUN_00021180()" (identifier "iVar5") (= "=") (call_expression "FUN_00021180()" (identifier "FUN_00021180") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar7 = uVar2;" (assignment_expression "uVar7 = uVar2" (identifier "uVar7") (= "=") (identifier "uVar2")) (; ";")) (if_statement "if ((iVar5 != 0) || (iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0)) {\n      FUN_00022cc0(uVar7,param_3,param_4);\n    }" (if "if") (parenthesized_expression "((iVar5 != 0) || (iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0))" (( "(") (binary_expression "(iVar5 != 0) || (iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0)" (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0)" (( "(") (comma_expression "iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0" (assignment_expression "iVar5 = FUN_00021180()" (identifier "iVar5") (= "=") (call_expression "FUN_00021180()" (identifier "FUN_00021180") (argument_list "()" (( "(") () ")")))) (, ",") (comma_expression "uVar7 = uVar3, iVar5 != 0" (assignment_expression "uVar7 = uVar3" (identifier "uVar7") (= "=") (identifier "uVar3")) (, ",") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")))) () ")"))) () ")")) (compound_statement "{\n      FUN_00022cc0(uVar7,param_3,param_4);\n    }" ({ "{") (expression_statement "FUN_00022cc0(uVar7,param_3,param_4);" (call_expression "FUN_00022cc0(uVar7,param_3,param_4)" (identifier "FUN_00022cc0") (argument_list "(uVar7,param_3,param_4)" (( "(") (identifier "uVar7") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar6 = *(int *)(iVar6 + 0xc);" (assignment_expression "iVar6 = *(int *)(iVar6 + 0xc)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(iVar6 + 0xc)" (* "*") (cast_expression "(int *)(iVar6 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0xc)" (( "(") (binary_expression "iVar6 + 0xc" (identifier "iVar6") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

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

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

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


(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: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (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: (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: (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 (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier) (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 (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier)))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_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)))))) (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)))))))) condition: (parenthesized_expression (true))))))

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

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  undefined4 uVar7;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x22fa9;
  local_24 = 0;
  iVar1 = *(int *)(param_1 + 0x28);
  uVar2 = *(undefined4 *)(param_1 + 0x2c);
  uVar3 = *(undefined4 *)(param_1 + 0x30);
  local_20 = 0;
  bfd_get_section_by_name_if
            (*(undefined4 *)(param_2 + 0x10),*(undefined4 *)(iVar1 + 4),FUN_0001ff40,&local_24);
  iVar4 = local_24;
  if (local_20 != 0) {
    FUN_00022d60(param_1,param_2,param_3,param_4);
    return;
  }
  iVar6 = *(int *)(*(int *)(param_2 + 0x10) + 0x60);
  local_20 = 0;
  do {
    if (iVar6 == 0) {
      return;
    }
    while (iVar4 == iVar6) {
      FUN_00022cc0(iVar1,param_3,param_4);
      iVar6 = *(int *)(iVar6 + 0xc);
      if (iVar6 == 0) {
        return;
      }
    }
    iVar5 = FUN_00021180();
    uVar7 = uVar2;
    if ((iVar5 != 0) || (iVar5 = FUN_00021180(), uVar7 = uVar3, iVar5 != 0)) {
      FUN_00022cc0(uVar7,param_3,param_4);
    }
    iVar6 = *(int *)(iVar6 + 0xc);
  } while( true );
}

