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

void lang_leave_output_section_statement
               (fill_type *fill,char *memspec,lang_output_section_phdr_list *phdrs,char *lma_memspec
               )

{
  lang_statement_list_type **pplVar1;
  lang_output_section_statement_type *plVar2;
  
  lang_get_regions(&current_section->region,&current_section->lma_region,memspec,lma_memspec,
                   (uint)(current_section->load_base != (etree_union *)0x0),
                   (uint)(current_section->addr_tree != (etree_union *)0x0));
  plVar2 = current_section;
  current_section->fill = fill;
  plVar2->phdrs = phdrs;
  if (stat_save < stat_save_ptr) {
    pplVar1 = stat_save_ptr + -1;
    stat_save_ptr = stat_save_ptr + -1;
    stat_ptr = *pplVar1;
    return;
  }
                    /* WARNING: Subroutine does not return */
  pop_stat_ptr();
}



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

void FUN_00026af0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  undefined4 *puVar1;
  int iVar2;
  
  FUN_00022a60(param_4,*(int *)(DAT_000bb918 + 0x30) != 0,*(int *)(DAT_000bb918 + 0x2c) != 0);
  iVar2 = DAT_000bb918;
  *(undefined4 *)(DAT_000bb918 + 0x28) = param_1;
  *(undefined4 *)(iVar2 + 0x38) = param_3;
  if (&DAT_000bb960 < PTR_DAT_000bb33c) {
    puVar1 = (undefined4 *)(PTR_DAT_000bb33c + -4);
    PTR_DAT_000bb33c = PTR_DAT_000bb33c + -4;
    PTR_DAT_000bb338 = (undefined *)*puVar1;
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00021100();
}


PUSH EDI
XOR EAX,EAX
PUSH ESI
PUSH EBX
CALL 0x00015a10
ADD EBX,0x94506
SUB ESP,0x4
MOV ECX,dword ptr [EBX + 0x918]
MOV ESI,dword ptr [ECX + 0x2c]
LEA EDX,[ECX + 0x24]
LEA EDI,[ECX + 0x20]
TEST ESI,ESI
SETNZ AL
PUSH EAX
MOV EAX,dword ptr [ECX + 0x30]
XOR ECX,ECX
TEST EAX,EAX
MOV EAX,EDI
SETNZ CL
PUSH ECX
PUSH dword ptr [ESP + 0x28]
MOV ECX,dword ptr [ESP + 0x24]
CALL 0x00022a60
MOV EAX,dword ptr [EBX + 0x918]
MOV EDX,dword ptr [ESP + 0x20]
MOV dword ptr [EAX + 0x28],EDX
MOV EDX,dword ptr [ESP + 0x28]
ADD ESP,0x10
MOV dword ptr [EAX + 0x38],EDX
MOV EAX,dword ptr [EBX + 0x33c]
LEA EDX,[EBX + 0x960]
CMP EAX,EDX
JBE 0x00026b6f
LEA EDX,[EAX + -0x4]
MOV EAX,dword ptr [EAX + -0x4]
MOV dword ptr [EBX + 0x33c],EDX
MOV dword ptr [EBX + 0x338],EAX
POP EBX
POP ESI
POP EDI
RET
CALL 0x00021100
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00026af0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  FUN_00022a60(param_4,*(int *)(DAT_000bb918 + 0x30) != 0,*(int *)(DAT_000bb918 + 0x2c) != 0);\n  iVar2 = DAT_000bb918;\n  *(undefined4 *)(DAT_000bb918 + 0x28) = param_1;\n  *(undefined4 *)(iVar2 + 0x38) = param_3;\n  if (&DAT_000bb960 < PTR_DAT_000bb33c) {\n    puVar1 = (undefined4 *)(PTR_DAT_000bb33c + -4);\n    PTR_DAT_000bb33c = PTR_DAT_000bb33c + -4;\n    PTR_DAT_000bb338 = (undefined *)*puVar1;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00021100();\n}\n\n" comment (function_definition "void FUN_00026af0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  FUN_00022a60(param_4,*(int *)(DAT_000bb918 + 0x30) != 0,*(int *)(DAT_000bb918 + 0x2c) != 0);\n  iVar2 = DAT_000bb918;\n  *(undefined4 *)(DAT_000bb918 + 0x28) = param_1;\n  *(undefined4 *)(iVar2 + 0x38) = param_3;\n  if (&DAT_000bb960 < PTR_DAT_000bb33c) {\n    puVar1 = (undefined4 *)(PTR_DAT_000bb33c + -4);\n    PTR_DAT_000bb33c = PTR_DAT_000bb33c + -4;\n    PTR_DAT_000bb338 = (undefined *)*puVar1;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00021100();\n}" primitive_type (function_declarator "FUN_00026af0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  FUN_00022a60(param_4,*(int *)(DAT_000bb918 + 0x30) != 0,*(int *)(DAT_000bb918 + 0x2c) != 0);\n  iVar2 = DAT_000bb918;\n  *(undefined4 *)(DAT_000bb918 + 0x28) = param_1;\n  *(undefined4 *)(iVar2 + 0x38) = param_3;\n  if (&DAT_000bb960 < PTR_DAT_000bb33c) {\n    puVar1 = (undefined4 *)(PTR_DAT_000bb33c + -4);\n    PTR_DAT_000bb33c = PTR_DAT_000bb33c + -4;\n    PTR_DAT_000bb338 = (undefined *)*puVar1;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00021100();\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "FUN_00022a60(param_4,*(int *)(DAT_000bb918 + 0x30) != 0,*(int *)(DAT_000bb918 + 0x2c) != 0);" (call_expression "FUN_00022a60(param_4,*(int *)(DAT_000bb918 + 0x30) != 0,*(int *)(DAT_000bb918 + 0x2c) != 0)" identifier (argument_list "(param_4,*(int *)(DAT_000bb918 + 0x30) != 0,*(int *)(DAT_000bb918 + 0x2c) != 0)" ( identifier , (binary_expression "*(int *)(DAT_000bb918 + 0x30) != 0" (pointer_expression "*(int *)(DAT_000bb918 + 0x30)" * (cast_expression "(int *)(DAT_000bb918 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000bb918 + 0x30)" ( (binary_expression "DAT_000bb918 + 0x30" identifier + number_literal) )))) != number_literal) , (binary_expression "*(int *)(DAT_000bb918 + 0x2c) != 0" (pointer_expression "*(int *)(DAT_000bb918 + 0x2c)" * (cast_expression "(int *)(DAT_000bb918 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000bb918 + 0x2c)" ( (binary_expression "DAT_000bb918 + 0x2c" identifier + number_literal) )))) != number_literal) ))) ;) (expression_statement "iVar2 = DAT_000bb918;" (assignment_expression "iVar2 = DAT_000bb918" identifier = identifier) ;) (expression_statement "*(undefined4 *)(DAT_000bb918 + 0x28) = param_1;" (assignment_expression "*(undefined4 *)(DAT_000bb918 + 0x28) = param_1" (pointer_expression "*(undefined4 *)(DAT_000bb918 + 0x28)" * (cast_expression "(undefined4 *)(DAT_000bb918 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000bb918 + 0x28)" ( (binary_expression "DAT_000bb918 + 0x28" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x38) = param_3;" (assignment_expression "*(undefined4 *)(iVar2 + 0x38) = param_3" (pointer_expression "*(undefined4 *)(iVar2 + 0x38)" * (cast_expression "(undefined4 *)(iVar2 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x38)" ( (binary_expression "iVar2 + 0x38" identifier + number_literal) )))) = identifier) ;) (if_statement "if (&DAT_000bb960 < PTR_DAT_000bb33c) {\n    puVar1 = (undefined4 *)(PTR_DAT_000bb33c + -4);\n    PTR_DAT_000bb33c = PTR_DAT_000bb33c + -4;\n    PTR_DAT_000bb338 = (undefined *)*puVar1;\n    return;\n  }" if (parenthesized_expression "(&DAT_000bb960 < PTR_DAT_000bb33c)" ( (binary_expression "&DAT_000bb960 < PTR_DAT_000bb33c" (pointer_expression "&DAT_000bb960" & identifier) < identifier) )) (compound_statement "{\n    puVar1 = (undefined4 *)(PTR_DAT_000bb33c + -4);\n    PTR_DAT_000bb33c = PTR_DAT_000bb33c + -4;\n    PTR_DAT_000bb338 = (undefined *)*puVar1;\n    return;\n  }" { (expression_statement "puVar1 = (undefined4 *)(PTR_DAT_000bb33c + -4);" (assignment_expression "puVar1 = (undefined4 *)(PTR_DAT_000bb33c + -4)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_000bb33c + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000bb33c + -4)" ( (binary_expression "PTR_DAT_000bb33c + -4" identifier + number_literal) )))) ;) (expression_statement "PTR_DAT_000bb33c = PTR_DAT_000bb33c + -4;" (assignment_expression "PTR_DAT_000bb33c = PTR_DAT_000bb33c + -4" identifier = (binary_expression "PTR_DAT_000bb33c + -4" identifier + number_literal)) ;) (expression_statement "PTR_DAT_000bb338 = (undefined *)*puVar1;" (assignment_expression "PTR_DAT_000bb338 = (undefined *)*puVar1" identifier = (cast_expression "(undefined *)*puVar1" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_00021100();" (call_expression "FUN_00021100()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid lang_leave_output_section_statement\n               (fill_type *fill,char *memspec,lang_output_section_phdr_list *phdrs,char *lma_memspec\n               )\n\n{\n  lang_statement_list_type **pplVar1;\n  lang_output_section_statement_type *plVar2;\n  \n  lang_get_regions(&current_section->region,&current_section->lma_region,memspec,lma_memspec,\n                   (uint)(current_section->load_base != (etree_union *)0x0),\n                   (uint)(current_section->addr_tree != (etree_union *)0x0));\n  plVar2 = current_section;\n  current_section->fill = fill;\n  plVar2->phdrs = phdrs;\n  if (stat_save < stat_save_ptr) {\n    pplVar1 = stat_save_ptr + -1;\n    stat_save_ptr = stat_save_ptr + -1;\n    stat_ptr = *pplVar1;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  pop_stat_ptr();\n}\n\n" comment comment (function_definition "void lang_leave_output_section_statement\n               (fill_type *fill,char *memspec,lang_output_section_phdr_list *phdrs,char *lma_memspec\n               )\n\n{\n  lang_statement_list_type **pplVar1;\n  lang_output_section_statement_type *plVar2;\n  \n  lang_get_regions(&current_section->region,&current_section->lma_region,memspec,lma_memspec,\n                   (uint)(current_section->load_base != (etree_union *)0x0),\n                   (uint)(current_section->addr_tree != (etree_union *)0x0));\n  plVar2 = current_section;\n  current_section->fill = fill;\n  plVar2->phdrs = phdrs;\n  if (stat_save < stat_save_ptr) {\n    pplVar1 = stat_save_ptr + -1;\n    stat_save_ptr = stat_save_ptr + -1;\n    stat_ptr = *pplVar1;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  pop_stat_ptr();\n}" primitive_type (function_declarator "lang_leave_output_section_statement\n               (fill_type *fill,char *memspec,lang_output_section_phdr_list *phdrs,char *lma_memspec\n               )" identifier (parameter_list "(fill_type *fill,char *memspec,lang_output_section_phdr_list *phdrs,char *lma_memspec\n               )" ( (parameter_declaration "fill_type *fill" type_identifier (pointer_declarator "*fill" * identifier)) , (parameter_declaration "char *memspec" primitive_type (pointer_declarator "*memspec" * identifier)) , (parameter_declaration "lang_output_section_phdr_list *phdrs" type_identifier (pointer_declarator "*phdrs" * identifier)) , (parameter_declaration "char *lma_memspec" primitive_type (pointer_declarator "*lma_memspec" * identifier)) ))) (compound_statement "{\n  lang_statement_list_type **pplVar1;\n  lang_output_section_statement_type *plVar2;\n  \n  lang_get_regions(&current_section->region,&current_section->lma_region,memspec,lma_memspec,\n                   (uint)(current_section->load_base != (etree_union *)0x0),\n                   (uint)(current_section->addr_tree != (etree_union *)0x0));\n  plVar2 = current_section;\n  current_section->fill = fill;\n  plVar2->phdrs = phdrs;\n  if (stat_save < stat_save_ptr) {\n    pplVar1 = stat_save_ptr + -1;\n    stat_save_ptr = stat_save_ptr + -1;\n    stat_ptr = *pplVar1;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  pop_stat_ptr();\n}" { (declaration "lang_statement_list_type **pplVar1;" type_identifier (pointer_declarator "**pplVar1" * (pointer_declarator "*pplVar1" * identifier)) ;) (declaration "lang_output_section_statement_type *plVar2;" type_identifier (pointer_declarator "*plVar2" * identifier) ;) (expression_statement "lang_get_regions(&current_section->region,&current_section->lma_region,memspec,lma_memspec,\n                   (uint)(current_section->load_base != (etree_union *)0x0),\n                   (uint)(current_section->addr_tree != (etree_union *)0x0));" (call_expression "lang_get_regions(&current_section->region,&current_section->lma_region,memspec,lma_memspec,\n                   (uint)(current_section->load_base != (etree_union *)0x0),\n                   (uint)(current_section->addr_tree != (etree_union *)0x0))" identifier (argument_list "(&current_section->region,&current_section->lma_region,memspec,lma_memspec,\n                   (uint)(current_section->load_base != (etree_union *)0x0),\n                   (uint)(current_section->addr_tree != (etree_union *)0x0))" ( (pointer_expression "&current_section->region" & (field_expression "current_section->region" identifier -> field_identifier)) , (pointer_expression "&current_section->lma_region" & (field_expression "current_section->lma_region" identifier -> field_identifier)) , identifier , identifier , (call_expression "(uint)(current_section->load_base != (etree_union *)0x0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(current_section->load_base != (etree_union *)0x0)" ( (binary_expression "current_section->load_base != (etree_union *)0x0" (field_expression "current_section->load_base" identifier -> field_identifier) != (cast_expression "(etree_union *)0x0" ( (type_descriptor "etree_union *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) , (call_expression "(uint)(current_section->addr_tree != (etree_union *)0x0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(current_section->addr_tree != (etree_union *)0x0)" ( (binary_expression "current_section->addr_tree != (etree_union *)0x0" (field_expression "current_section->addr_tree" identifier -> field_identifier) != (cast_expression "(etree_union *)0x0" ( (type_descriptor "etree_union *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) ))) ;) (expression_statement "plVar2 = current_section;" (assignment_expression "plVar2 = current_section" identifier = identifier) ;) (expression_statement "current_section->fill = fill;" (assignment_expression "current_section->fill = fill" (field_expression "current_section->fill" identifier -> field_identifier) = identifier) ;) (expression_statement "plVar2->phdrs = phdrs;" (assignment_expression "plVar2->phdrs = phdrs" (field_expression "plVar2->phdrs" identifier -> field_identifier) = identifier) ;) (if_statement "if (stat_save < stat_save_ptr) {\n    pplVar1 = stat_save_ptr + -1;\n    stat_save_ptr = stat_save_ptr + -1;\n    stat_ptr = *pplVar1;\n    return;\n  }" if (parenthesized_expression "(stat_save < stat_save_ptr)" ( (binary_expression "stat_save < stat_save_ptr" identifier < identifier) )) (compound_statement "{\n    pplVar1 = stat_save_ptr + -1;\n    stat_save_ptr = stat_save_ptr + -1;\n    stat_ptr = *pplVar1;\n    return;\n  }" { (expression_statement "pplVar1 = stat_save_ptr + -1;" (assignment_expression "pplVar1 = stat_save_ptr + -1" identifier = (binary_expression "stat_save_ptr + -1" identifier + number_literal)) ;) (expression_statement "stat_save_ptr = stat_save_ptr + -1;" (assignment_expression "stat_save_ptr = stat_save_ptr + -1" identifier = (binary_expression "stat_save_ptr + -1" identifier + number_literal)) ;) (expression_statement "stat_ptr = *pplVar1;" (assignment_expression "stat_ptr = *pplVar1" identifier = (pointer_expression "*pplVar1" * identifier)) ;) (return_statement "return;" return ;) })) comment (expression_statement "pop_stat_ptr();" (call_expression "pop_stat_ptr()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_00026af0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  FUN_00022a60(param_4,*(int *)(DAT_000bb918 + 0x30) != 0,*(int *)(DAT_000bb918 + 0x2c) != 0);\n  iVar2 = DAT_000bb918;\n  *(undefined4 *)(DAT_000bb918 + 0x28) = param_1;\n  *(undefined4 *)(iVar2 + 0x38) = param_3;\n  if (&DAT_000bb960 < PTR_DAT_000bb33c) {\n    puVar1 = (undefined4 *)(PTR_DAT_000bb33c + -4);\n    PTR_DAT_000bb33c = PTR_DAT_000bb33c + -4;\n    PTR_DAT_000bb338 = (undefined *)*puVar1;\n    return;\n  }\n                    \n  FUN_00021100();\n}\n\n" (function_definition "void FUN_00026af0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  FUN_00022a60(param_4,*(int *)(DAT_000bb918 + 0x30) != 0,*(int *)(DAT_000bb918 + 0x2c) != 0);\n  iVar2 = DAT_000bb918;\n  *(undefined4 *)(DAT_000bb918 + 0x28) = param_1;\n  *(undefined4 *)(iVar2 + 0x38) = param_3;\n  if (&DAT_000bb960 < PTR_DAT_000bb33c) {\n    puVar1 = (undefined4 *)(PTR_DAT_000bb33c + -4);\n    PTR_DAT_000bb33c = PTR_DAT_000bb33c + -4;\n    PTR_DAT_000bb338 = (undefined *)*puVar1;\n    return;\n  }\n                    \n  FUN_00021100();\n}" primitive_type (function_declarator "FUN_00026af0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  FUN_00022a60(param_4,*(int *)(DAT_000bb918 + 0x30) != 0,*(int *)(DAT_000bb918 + 0x2c) != 0);\n  iVar2 = DAT_000bb918;\n  *(undefined4 *)(DAT_000bb918 + 0x28) = param_1;\n  *(undefined4 *)(iVar2 + 0x38) = param_3;\n  if (&DAT_000bb960 < PTR_DAT_000bb33c) {\n    puVar1 = (undefined4 *)(PTR_DAT_000bb33c + -4);\n    PTR_DAT_000bb33c = PTR_DAT_000bb33c + -4;\n    PTR_DAT_000bb338 = (undefined *)*puVar1;\n    return;\n  }\n                    \n  FUN_00021100();\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "FUN_00022a60(param_4,*(int *)(DAT_000bb918 + 0x30) != 0,*(int *)(DAT_000bb918 + 0x2c) != 0);" (call_expression "FUN_00022a60(param_4,*(int *)(DAT_000bb918 + 0x30) != 0,*(int *)(DAT_000bb918 + 0x2c) != 0)" identifier (argument_list "(param_4,*(int *)(DAT_000bb918 + 0x30) != 0,*(int *)(DAT_000bb918 + 0x2c) != 0)" ( identifier , (binary_expression "*(int *)(DAT_000bb918 + 0x30) != 0" (pointer_expression "*(int *)(DAT_000bb918 + 0x30)" * (cast_expression "(int *)(DAT_000bb918 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000bb918 + 0x30)" ( (binary_expression "DAT_000bb918 + 0x30" identifier + number_literal) )))) != number_literal) , (binary_expression "*(int *)(DAT_000bb918 + 0x2c) != 0" (pointer_expression "*(int *)(DAT_000bb918 + 0x2c)" * (cast_expression "(int *)(DAT_000bb918 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000bb918 + 0x2c)" ( (binary_expression "DAT_000bb918 + 0x2c" identifier + number_literal) )))) != number_literal) ))) ;) (expression_statement "iVar2 = DAT_000bb918;" (assignment_expression "iVar2 = DAT_000bb918" identifier = identifier) ;) (expression_statement "*(undefined4 *)(DAT_000bb918 + 0x28) = param_1;" (assignment_expression "*(undefined4 *)(DAT_000bb918 + 0x28) = param_1" (pointer_expression "*(undefined4 *)(DAT_000bb918 + 0x28)" * (cast_expression "(undefined4 *)(DAT_000bb918 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000bb918 + 0x28)" ( (binary_expression "DAT_000bb918 + 0x28" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x38) = param_3;" (assignment_expression "*(undefined4 *)(iVar2 + 0x38) = param_3" (pointer_expression "*(undefined4 *)(iVar2 + 0x38)" * (cast_expression "(undefined4 *)(iVar2 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x38)" ( (binary_expression "iVar2 + 0x38" identifier + number_literal) )))) = identifier) ;) (if_statement "if (&DAT_000bb960 < PTR_DAT_000bb33c) {\n    puVar1 = (undefined4 *)(PTR_DAT_000bb33c + -4);\n    PTR_DAT_000bb33c = PTR_DAT_000bb33c + -4;\n    PTR_DAT_000bb338 = (undefined *)*puVar1;\n    return;\n  }" if (parenthesized_expression "(&DAT_000bb960 < PTR_DAT_000bb33c)" ( (binary_expression "&DAT_000bb960 < PTR_DAT_000bb33c" (pointer_expression "&DAT_000bb960" & identifier) < identifier) )) (compound_statement "{\n    puVar1 = (undefined4 *)(PTR_DAT_000bb33c + -4);\n    PTR_DAT_000bb33c = PTR_DAT_000bb33c + -4;\n    PTR_DAT_000bb338 = (undefined *)*puVar1;\n    return;\n  }" { (expression_statement "puVar1 = (undefined4 *)(PTR_DAT_000bb33c + -4);" (assignment_expression "puVar1 = (undefined4 *)(PTR_DAT_000bb33c + -4)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_000bb33c + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000bb33c + -4)" ( (binary_expression "PTR_DAT_000bb33c + -4" identifier + number_literal) )))) ;) (expression_statement "PTR_DAT_000bb33c = PTR_DAT_000bb33c + -4;" (assignment_expression "PTR_DAT_000bb33c = PTR_DAT_000bb33c + -4" identifier = (binary_expression "PTR_DAT_000bb33c + -4" identifier + number_literal)) ;) (expression_statement "PTR_DAT_000bb338 = (undefined *)*puVar1;" (assignment_expression "PTR_DAT_000bb338 = (undefined *)*puVar1" identifier = (cast_expression "(undefined *)*puVar1" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00021100();" (call_expression "FUN_00021100()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_00026af0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  FUN_00022a60(param_4,*(int *)(DAT_000bb918 + 0x30) != 0,*(int *)(DAT_000bb918 + 0x2c) != 0);\n  iVar2 = DAT_000bb918;\n  *(undefined4 *)(DAT_000bb918 + 0x28) = param_1;\n  *(undefined4 *)(iVar2 + 0x38) = param_3;\n  if (&DAT_000bb960 < PTR_DAT_000bb33c) {\n    puVar1 = (undefined4 *)(PTR_DAT_000bb33c + -4);\n    PTR_DAT_000bb33c = PTR_DAT_000bb33c + -4;\n    PTR_DAT_000bb338 = (undefined *)*puVar1;\n    return;\n  }\n                    \n  FUN_00021100();\n}" (primitive_type "void") (function_declarator "FUN_00026af0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_00026af0") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  FUN_00022a60(param_4,*(int *)(DAT_000bb918 + 0x30) != 0,*(int *)(DAT_000bb918 + 0x2c) != 0);\n  iVar2 = DAT_000bb918;\n  *(undefined4 *)(DAT_000bb918 + 0x28) = param_1;\n  *(undefined4 *)(iVar2 + 0x38) = param_3;\n  if (&DAT_000bb960 < PTR_DAT_000bb33c) {\n    puVar1 = (undefined4 *)(PTR_DAT_000bb33c + -4);\n    PTR_DAT_000bb33c = PTR_DAT_000bb33c + -4;\n    PTR_DAT_000bb338 = (undefined *)*puVar1;\n    return;\n  }\n                    \n  FUN_00021100();\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "FUN_00022a60(param_4,*(int *)(DAT_000bb918 + 0x30) != 0,*(int *)(DAT_000bb918 + 0x2c) != 0);" (call_expression "FUN_00022a60(param_4,*(int *)(DAT_000bb918 + 0x30) != 0,*(int *)(DAT_000bb918 + 0x2c) != 0)" (identifier "FUN_00022a60") (argument_list "(param_4,*(int *)(DAT_000bb918 + 0x30) != 0,*(int *)(DAT_000bb918 + 0x2c) != 0)" (( "(") (identifier "param_4") (, ",") (binary_expression "*(int *)(DAT_000bb918 + 0x30) != 0" (pointer_expression "*(int *)(DAT_000bb918 + 0x30)" (* "*") (cast_expression "(int *)(DAT_000bb918 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_000bb918 + 0x30)" (( "(") (binary_expression "DAT_000bb918 + 0x30" (identifier "DAT_000bb918") (+ "+") (number_literal "0x30")) () ")")))) (!= "!=") (number_literal "0")) (, ",") (binary_expression "*(int *)(DAT_000bb918 + 0x2c) != 0" (pointer_expression "*(int *)(DAT_000bb918 + 0x2c)" (* "*") (cast_expression "(int *)(DAT_000bb918 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_000bb918 + 0x2c)" (( "(") (binary_expression "DAT_000bb918 + 0x2c" (identifier "DAT_000bb918") (+ "+") (number_literal "0x2c")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) (; ";")) (expression_statement "iVar2 = DAT_000bb918;" (assignment_expression "iVar2 = DAT_000bb918" (identifier "iVar2") (= "=") (identifier "DAT_000bb918")) (; ";")) (expression_statement "*(undefined4 *)(DAT_000bb918 + 0x28) = param_1;" (assignment_expression "*(undefined4 *)(DAT_000bb918 + 0x28) = param_1" (pointer_expression "*(undefined4 *)(DAT_000bb918 + 0x28)" (* "*") (cast_expression "(undefined4 *)(DAT_000bb918 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_000bb918 + 0x28)" (( "(") (binary_expression "DAT_000bb918 + 0x28" (identifier "DAT_000bb918") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0x38) = param_3;" (assignment_expression "*(undefined4 *)(iVar2 + 0x38) = param_3" (pointer_expression "*(undefined4 *)(iVar2 + 0x38)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x38)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x38)" (( "(") (binary_expression "iVar2 + 0x38" (identifier "iVar2") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (if_statement "if (&DAT_000bb960 < PTR_DAT_000bb33c) {\n    puVar1 = (undefined4 *)(PTR_DAT_000bb33c + -4);\n    PTR_DAT_000bb33c = PTR_DAT_000bb33c + -4;\n    PTR_DAT_000bb338 = (undefined *)*puVar1;\n    return;\n  }" (if "if") (parenthesized_expression "(&DAT_000bb960 < PTR_DAT_000bb33c)" (( "(") (binary_expression "&DAT_000bb960 < PTR_DAT_000bb33c" (pointer_expression "&DAT_000bb960" (& "&") (identifier "DAT_000bb960")) (< "<") (identifier "PTR_DAT_000bb33c")) () ")")) (compound_statement "{\n    puVar1 = (undefined4 *)(PTR_DAT_000bb33c + -4);\n    PTR_DAT_000bb33c = PTR_DAT_000bb33c + -4;\n    PTR_DAT_000bb338 = (undefined *)*puVar1;\n    return;\n  }" ({ "{") (expression_statement "puVar1 = (undefined4 *)(PTR_DAT_000bb33c + -4);" (assignment_expression "puVar1 = (undefined4 *)(PTR_DAT_000bb33c + -4)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(PTR_DAT_000bb33c + -4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000bb33c + -4)" (( "(") (binary_expression "PTR_DAT_000bb33c + -4" (identifier "PTR_DAT_000bb33c") (+ "+") (number_literal "-4")) () ")")))) (; ";")) (expression_statement "PTR_DAT_000bb33c = PTR_DAT_000bb33c + -4;" (assignment_expression "PTR_DAT_000bb33c = PTR_DAT_000bb33c + -4" (identifier "PTR_DAT_000bb33c") (= "=") (binary_expression "PTR_DAT_000bb33c + -4" (identifier "PTR_DAT_000bb33c") (+ "+") (number_literal "-4"))) (; ";")) (expression_statement "PTR_DAT_000bb338 = (undefined *)*puVar1;" (assignment_expression "PTR_DAT_000bb338 = (undefined *)*puVar1" (identifier "PTR_DAT_000bb338") (= "=") (cast_expression "(undefined *)*puVar1" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00021100();" (call_expression "FUN_00021100()" (identifier "FUN_00021100") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void function_1
               (type_1 *fill,char *memspec,type_2 *phdrs,char *lma_memspec
               )

{
  type_3 **pplVar1;
  type_4 *plVar2;
  
  var_1(&current_section->region,&current_section->lma_region,memspec,lma_memspec,
                   (uint)(current_section->load_base != (type_5 *)0x0),
                   (uint)(current_section->addr_tree != (type_5 *)0x0));
  plVar2 = current_section;
  current_section->fill = fill;
  plVar2->phdrs = phdrs;
  if (var_2 < var_3) {
    pplVar1 = var_3 + -1;
    var_3 = var_3 + -1;
    stat_ptr = *pplVar1;
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_4();
}


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

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

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

{
  undefined4 *puVar1;
  int iVar2;
  
  FUN_00022a60(param_4,*(int *)(DAT_000bb918 + 0x30) != 0,*(int *)(DAT_000bb918 + 0x2c) != 0);
  iVar2 = DAT_000bb918;
  *(undefined4 *)(DAT_000bb918 + 0x28) = param_1;
  *(undefined4 *)(iVar2 + 0x38) = param_3;
  if (&DAT_000bb960 < PTR_DAT_000bb33c) {
    puVar1 = (undefined4 *)(PTR_DAT_000bb33c + -4);
    PTR_DAT_000bb33c = PTR_DAT_000bb33c + -4;
    PTR_DAT_000bb338 = (undefined *)*puVar1;
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00021100();
}

