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

void lang_leave_overlay(etree_type *lma_expr,int nocrossrefs,fill_type *fill,char *memspec,
                       lang_output_section_phdr_list *phdrs,char *lma_memspec)

{
  undefined1 *puVar1;
  lang_output_section_statement_type *plVar2;
  etree_type *peVar3;
  lang_nocrossref_type *plVar4;
  lang_nocrossrefs *plVar5;
  overlay_list *__ptr;
  overlay_list *poVar6;
  lang_nocrossref_type *local_34;
  lang_memory_region_type *region;
  lang_memory_region_type *lma_region;
  undefined4 uStack_14;
  
  uStack_14 = 0x2a1bb;
  lang_get_regions(&region,&lma_region,memspec,lma_memspec,(uint)(lma_expr != (etree_type *)0x0),0);
  if (overlay_list != (overlay_list *)0x0) {
    puVar1 = &overlay_list->os->field_0x54;
    *puVar1 = *puVar1 | 0x10;
    peVar3 = exp_binop(0x2b,overlay_vma,overlay_max);
    plVar2 = overlay_list->os;
    peVar3 = exp_assign(".",peVar3,0);
    __ptr = overlay_list;
    plVar2->update_dot_tree = peVar3;
    if (__ptr != (overlay_list *)0x0) {
      local_34 = (lang_nocrossref_type *)0x0;
      do {
        plVar2 = __ptr->os;
        if ((fill != (fill_type *)0x0) && (plVar2->fill == (fill_type *)0x0)) {
          plVar2->fill = fill;
        }
        poVar6 = __ptr->next;
        plVar2->region = region;
        plVar2->lma_region = lma_region;
        if (poVar6 == (overlay_list *)0x0) {
          plVar2->sectype = normal_section;
          plVar2->load_base = lma_expr;
        }
        if ((phdrs != (lang_output_section_phdr_list *)0x0) &&
           (plVar2->phdrs == (lang_output_section_phdr_list *)0x0)) {
          plVar2->phdrs = phdrs;
        }
        if (nocrossrefs != 0) {
          plVar4 = (lang_nocrossref_type *)xmalloc(8);
          poVar6 = __ptr->next;
          plVar4->name = __ptr->os->name;
          plVar4->next = local_34;
          local_34 = plVar4;
        }
        free(__ptr);
        __ptr = poVar6;
      } while (poVar6 != (overlay_list *)0x0);
      if (local_34 != (lang_nocrossref_type *)0x0) {
        plVar5 = (lang_nocrossrefs *)xmalloc(0xc);
        plVar5->list = local_34;
        plVar5->onlyfirst = 0;
        plVar5->next = nocrossref_list;
        nocrossref_list = plVar5;
        link_info._1_1_ = link_info._1_1_ | 1;
      }
    }
  }
  overlay_vma = (etree_type *)0x0;
  overlay_list = (overlay_list *)0x0;
  overlay_max = (etree_type *)0x0;
  overlay_subalign = (etree_type *)0x0;
  return;
}



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

void FUN_0002a1b0(int param_1,int param_2,int param_3,undefined4 param_4,int param_5,
                 undefined4 param_6)

{
  int iVar1;
  undefined4 uVar2;
  int *piVar3;
  undefined4 *puVar4;
  int *__ptr;
  int *piVar5;
  int *local_34;
  undefined4 local_24;
  undefined4 local_20;
  
  FUN_00025510(param_6,param_1 != 0,0);
  if (DAT_001c3874 != (int *)0x0) {
    *(byte *)(DAT_001c3874[1] + 0x54) = *(byte *)(DAT_001c3874[1] + 0x54) | 0x10;
    uVar2 = FUN_00032b80(0x2b,DAT_001c3880,DAT_001c3878);
    iVar1 = DAT_001c3874[1];
    uVar2 = FUN_00032d50(".",uVar2,0);
    __ptr = DAT_001c3874;
    *(undefined4 *)(iVar1 + 0x34) = uVar2;
    if (__ptr != (int *)0x0) {
      local_34 = (int *)0x0;
      do {
        iVar1 = __ptr[1];
        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {
          *(int *)(iVar1 + 0x28) = param_3;
        }
        piVar5 = (int *)*__ptr;
        *(undefined4 *)(iVar1 + 0x20) = local_24;
        *(undefined4 *)(iVar1 + 0x24) = local_20;
        if (piVar5 == (int *)0x0) {
          *(undefined4 *)(iVar1 + 0x50) = 0;
          *(int *)(iVar1 + 0x30) = param_1;
        }
        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {
          *(int *)(iVar1 + 0x38) = param_5;
        }
        if (param_2 != 0) {
          piVar3 = (int *)xmalloc(8);
          piVar5 = (int *)*__ptr;
          piVar3[1] = *(int *)(__ptr[1] + 0x18);
          *piVar3 = (int)local_34;
          local_34 = piVar3;
        }
        free(__ptr);
        __ptr = piVar5;
      } while (piVar5 != (int *)0x0);
      if (local_34 != (int *)0x0) {
        puVar4 = (undefined4 *)xmalloc(0xc);
        puVar4[1] = local_34;
        puVar4[2] = 0;
        *puVar4 = DAT_001c4574;
        DAT_001c4574 = puVar4;
        DAT_001c45e1 = DAT_001c45e1 | 1;
      }
    }
  }
  DAT_001c3880 = 0;
  DAT_001c3874 = (int *)0x0;
  DAT_001c3878 = 0;
  DAT_001c387c = 0;
  return;
}


PUSH EBP
XOR ECX,ECX
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00017c50
ADD EBX,0x197e45
SUB ESP,0x2c
MOV ESI,dword ptr [ESP + 0x48]
MOV EDI,dword ptr [ESP + 0x50]
LEA EAX,[ESP + 0x18]
LEA EDX,[ESP + 0x1c]
SUB ESP,0x4
PUSH 0x0
MOV EBP,dword ptr [ESP + 0x48]
TEST EBP,EBP
SETNZ CL
PUSH ECX
PUSH dword ptr [ESP + 0x60]
MOV ECX,dword ptr [ESP + 0x5c]
CALL 0x00025510
MOV EAX,dword ptr [EBX + 0x1874]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0002a335
MOV EAX,dword ptr [EAX + 0x4]
SUB ESP,0x4
OR byte ptr [EAX + 0x54],0x10
PUSH dword ptr [EBX + 0x1878]
PUSH dword ptr [EBX + 0x1880]
PUSH 0x2b
CALL 0x00032b80
MOV EDX,dword ptr [EBX + 0x1874]
ADD ESP,0xc
MOV EBP,dword ptr [EDX + 0x4]
PUSH 0x0
PUSH EAX
LEA EAX,[EBX + 0xffeed85e]
PUSH EAX
CALL 0x00032d50
MOV EDX,dword ptr [EBX + 0x1874]
ADD ESP,0x10
MOV dword ptr [EBP + 0x34],EAX
TEST EDX,EDX
JZ 0x0002a335
MOV dword ptr [ESP + 0x8],0x0
JMP 0x0002a276
SUB ESP,0xc
PUSH EDX
CALL 0x00016e80
MOV EDX,EBP
ADD ESP,0x10
TEST EBP,EBP
JZ 0x0002a300
MOV EAX,dword ptr [EDX + 0x4]
TEST ESI,ESI
JZ 0x0002a284
MOV EBP,dword ptr [EAX + 0x28]
TEST EBP,EBP
JZ 0x0002a2f8
MOV ECX,dword ptr [ESP + 0x18]
MOV EBP,dword ptr [EDX]
MOV dword ptr [EAX + 0x20],ECX
MOV ECX,dword ptr [ESP + 0x1c]
MOV dword ptr [EAX + 0x24],ECX
TEST EBP,EBP
JZ 0x0002a2e0
TEST EDI,EDI
JZ 0x0002a2a3
MOV ECX,dword ptr [EAX + 0x38]
TEST ECX,ECX
JZ 0x0002a2f0
MOV EAX,dword ptr [ESP + 0x44]
TEST EAX,EAX
JZ 0x0002a260
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0xc
PUSH 0x8
CALL 0x00016e98
MOV EDX,dword ptr [ESP + 0x1c]
MOV ECX,dword ptr [EDX + 0x4]
MOV EBP,dword ptr [EDX]
MOV ECX,dword ptr [ECX + 0x18]
MOV dword ptr [EAX + 0x4],ECX
MOV ECX,dword ptr [ESP + 0x18]
ADD ESP,0x10
MOV dword ptr [EAX],ECX
MOV dword ptr [ESP + 0x8],EAX
JMP 0x0002a260
MOV ECX,dword ptr [ESP + 0x40]
MOV dword ptr [EAX + 0x50],0x0
MOV dword ptr [EAX + 0x30],ECX
JMP 0x0002a298
MOV dword ptr [EAX + 0x38],EDI
JMP 0x0002a2a3
MOV dword ptr [EAX + 0x28],ESI
JMP 0x0002a284
MOV ESI,dword ptr [ESP + 0x8]
TEST ESI,ESI
JZ 0x0002a335
SUB ESP,0xc
PUSH 0xc
CALL 0x00016e98
LEA EDX,[EBX + 0x2574]
ADD ESP,0x10
MOV dword ptr [EAX + 0x4],ESI
MOV ECX,dword ptr [EDX]
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [EDX],EAX
MOV dword ptr [EAX],ECX
LEA EAX,[EBX + 0x25e0]
OR byte ptr [EAX + 0x1],0x1
MOV dword ptr [EBX + 0x1880],0x0
MOV dword ptr [EBX + 0x1874],0x0
MOV dword ptr [EBX + 0x1878],0x0
MOV dword ptr [EBX + 0x187c],0x0
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_0002a1b0(int param_1,int param_2,int param_3,undefined4 param_4,int param_5,\n                 undefined4 param_6)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  int *__ptr;\n  int *piVar5;\n  int *local_34;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  FUN_00025510(param_6,param_1 != 0,0);\n  if (DAT_001c3874 != (int *)0x0) {\n    *(byte *)(DAT_001c3874[1] + 0x54) = *(byte *)(DAT_001c3874[1] + 0x54) | 0x10;\n    uVar2 = FUN_00032b80(0x2b,DAT_001c3880,DAT_001c3878);\n    iVar1 = DAT_001c3874[1];\n    uVar2 = FUN_00032d50(".",uVar2,0);\n    __ptr = DAT_001c3874;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    if (__ptr != (int *)0x0) {\n      local_34 = (int *)0x0;\n      do {\n        iVar1 = __ptr[1];\n        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }\n        piVar5 = (int *)*__ptr;\n        *(undefined4 *)(iVar1 + 0x20) = local_24;\n        *(undefined4 *)(iVar1 + 0x24) = local_20;\n        if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }\n        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }\n        if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }\n        free(__ptr);\n        __ptr = piVar5;\n      } while (piVar5 != (int *)0x0);\n      if (local_34 != (int *)0x0) {\n        puVar4 = (undefined4 *)xmalloc(0xc);\n        puVar4[1] = local_34;\n        puVar4[2] = 0;\n        *puVar4 = DAT_001c4574;\n        DAT_001c4574 = puVar4;\n        DAT_001c45e1 = DAT_001c45e1 | 1;\n      }\n    }\n  }\n  DAT_001c3880 = 0;\n  DAT_001c3874 = (int *)0x0;\n  DAT_001c3878 = 0;\n  DAT_001c387c = 0;\n  return;\n}\n\n" comment (function_definition "void FUN_0002a1b0(int param_1,int param_2,int param_3,undefined4 param_4,int param_5,\n                 undefined4 param_6)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  int *__ptr;\n  int *piVar5;\n  int *local_34;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  FUN_00025510(param_6,param_1 != 0,0);\n  if (DAT_001c3874 != (int *)0x0) {\n    *(byte *)(DAT_001c3874[1] + 0x54) = *(byte *)(DAT_001c3874[1] + 0x54) | 0x10;\n    uVar2 = FUN_00032b80(0x2b,DAT_001c3880,DAT_001c3878);\n    iVar1 = DAT_001c3874[1];\n    uVar2 = FUN_00032d50(".",uVar2,0);\n    __ptr = DAT_001c3874;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    if (__ptr != (int *)0x0) {\n      local_34 = (int *)0x0;\n      do {\n        iVar1 = __ptr[1];\n        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }\n        piVar5 = (int *)*__ptr;\n        *(undefined4 *)(iVar1 + 0x20) = local_24;\n        *(undefined4 *)(iVar1 + 0x24) = local_20;\n        if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }\n        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }\n        if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }\n        free(__ptr);\n        __ptr = piVar5;\n      } while (piVar5 != (int *)0x0);\n      if (local_34 != (int *)0x0) {\n        puVar4 = (undefined4 *)xmalloc(0xc);\n        puVar4[1] = local_34;\n        puVar4[2] = 0;\n        *puVar4 = DAT_001c4574;\n        DAT_001c4574 = puVar4;\n        DAT_001c45e1 = DAT_001c45e1 | 1;\n      }\n    }\n  }\n  DAT_001c3880 = 0;\n  DAT_001c3874 = (int *)0x0;\n  DAT_001c3878 = 0;\n  DAT_001c387c = 0;\n  return;\n}" primitive_type (function_declarator "FUN_0002a1b0(int param_1,int param_2,int param_3,undefined4 param_4,int param_5,\n                 undefined4 param_6)" identifier (parameter_list "(int param_1,int param_2,int param_3,undefined4 param_4,int param_5,\n                 undefined4 param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  int *__ptr;\n  int *piVar5;\n  int *local_34;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  FUN_00025510(param_6,param_1 != 0,0);\n  if (DAT_001c3874 != (int *)0x0) {\n    *(byte *)(DAT_001c3874[1] + 0x54) = *(byte *)(DAT_001c3874[1] + 0x54) | 0x10;\n    uVar2 = FUN_00032b80(0x2b,DAT_001c3880,DAT_001c3878);\n    iVar1 = DAT_001c3874[1];\n    uVar2 = FUN_00032d50(".",uVar2,0);\n    __ptr = DAT_001c3874;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    if (__ptr != (int *)0x0) {\n      local_34 = (int *)0x0;\n      do {\n        iVar1 = __ptr[1];\n        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }\n        piVar5 = (int *)*__ptr;\n        *(undefined4 *)(iVar1 + 0x20) = local_24;\n        *(undefined4 *)(iVar1 + 0x24) = local_20;\n        if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }\n        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }\n        if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }\n        free(__ptr);\n        __ptr = piVar5;\n      } while (piVar5 != (int *)0x0);\n      if (local_34 != (int *)0x0) {\n        puVar4 = (undefined4 *)xmalloc(0xc);\n        puVar4[1] = local_34;\n        puVar4[2] = 0;\n        *puVar4 = DAT_001c4574;\n        DAT_001c4574 = puVar4;\n        DAT_001c45e1 = DAT_001c45e1 | 1;\n      }\n    }\n  }\n  DAT_001c3880 = 0;\n  DAT_001c3874 = (int *)0x0;\n  DAT_001c3878 = 0;\n  DAT_001c387c = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int *local_34;" primitive_type (pointer_declarator "*local_34" * identifier) ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (expression_statement "FUN_00025510(param_6,param_1 != 0,0);" (call_expression "FUN_00025510(param_6,param_1 != 0,0)" identifier (argument_list "(param_6,param_1 != 0,0)" ( identifier , (binary_expression "param_1 != 0" identifier != number_literal) , number_literal ))) ;) (if_statement "if (DAT_001c3874 != (int *)0x0) {\n    *(byte *)(DAT_001c3874[1] + 0x54) = *(byte *)(DAT_001c3874[1] + 0x54) | 0x10;\n    uVar2 = FUN_00032b80(0x2b,DAT_001c3880,DAT_001c3878);\n    iVar1 = DAT_001c3874[1];\n    uVar2 = FUN_00032d50(".",uVar2,0);\n    __ptr = DAT_001c3874;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    if (__ptr != (int *)0x0) {\n      local_34 = (int *)0x0;\n      do {\n        iVar1 = __ptr[1];\n        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }\n        piVar5 = (int *)*__ptr;\n        *(undefined4 *)(iVar1 + 0x20) = local_24;\n        *(undefined4 *)(iVar1 + 0x24) = local_20;\n        if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }\n        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }\n        if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }\n        free(__ptr);\n        __ptr = piVar5;\n      } while (piVar5 != (int *)0x0);\n      if (local_34 != (int *)0x0) {\n        puVar4 = (undefined4 *)xmalloc(0xc);\n        puVar4[1] = local_34;\n        puVar4[2] = 0;\n        *puVar4 = DAT_001c4574;\n        DAT_001c4574 = puVar4;\n        DAT_001c45e1 = DAT_001c45e1 | 1;\n      }\n    }\n  }" if (parenthesized_expression "(DAT_001c3874 != (int *)0x0)" ( (binary_expression "DAT_001c3874 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *(byte *)(DAT_001c3874[1] + 0x54) = *(byte *)(DAT_001c3874[1] + 0x54) | 0x10;\n    uVar2 = FUN_00032b80(0x2b,DAT_001c3880,DAT_001c3878);\n    iVar1 = DAT_001c3874[1];\n    uVar2 = FUN_00032d50(".",uVar2,0);\n    __ptr = DAT_001c3874;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    if (__ptr != (int *)0x0) {\n      local_34 = (int *)0x0;\n      do {\n        iVar1 = __ptr[1];\n        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }\n        piVar5 = (int *)*__ptr;\n        *(undefined4 *)(iVar1 + 0x20) = local_24;\n        *(undefined4 *)(iVar1 + 0x24) = local_20;\n        if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }\n        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }\n        if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }\n        free(__ptr);\n        __ptr = piVar5;\n      } while (piVar5 != (int *)0x0);\n      if (local_34 != (int *)0x0) {\n        puVar4 = (undefined4 *)xmalloc(0xc);\n        puVar4[1] = local_34;\n        puVar4[2] = 0;\n        *puVar4 = DAT_001c4574;\n        DAT_001c4574 = puVar4;\n        DAT_001c45e1 = DAT_001c45e1 | 1;\n      }\n    }\n  }" { (expression_statement "*(byte *)(DAT_001c3874[1] + 0x54) = *(byte *)(DAT_001c3874[1] + 0x54) | 0x10;" (assignment_expression "*(byte *)(DAT_001c3874[1] + 0x54) = *(byte *)(DAT_001c3874[1] + 0x54) | 0x10" (pointer_expression "*(byte *)(DAT_001c3874[1] + 0x54)" * (cast_expression "(byte *)(DAT_001c3874[1] + 0x54)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c3874[1] + 0x54)" ( (binary_expression "DAT_001c3874[1] + 0x54" (subscript_expression "DAT_001c3874[1]" identifier [ number_literal ]) + number_literal) )))) = (binary_expression "*(byte *)(DAT_001c3874[1] + 0x54) | 0x10" (pointer_expression "*(byte *)(DAT_001c3874[1] + 0x54)" * (cast_expression "(byte *)(DAT_001c3874[1] + 0x54)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c3874[1] + 0x54)" ( (binary_expression "DAT_001c3874[1] + 0x54" (subscript_expression "DAT_001c3874[1]" identifier [ number_literal ]) + number_literal) )))) | number_literal)) ;) (expression_statement "uVar2 = FUN_00032b80(0x2b,DAT_001c3880,DAT_001c3878);" (assignment_expression "uVar2 = FUN_00032b80(0x2b,DAT_001c3880,DAT_001c3878)" identifier = (call_expression "FUN_00032b80(0x2b,DAT_001c3880,DAT_001c3878)" identifier (argument_list "(0x2b,DAT_001c3880,DAT_001c3878)" ( number_literal , identifier , identifier )))) ;) (expression_statement "iVar1 = DAT_001c3874[1];" (assignment_expression "iVar1 = DAT_001c3874[1]" identifier = (subscript_expression "DAT_001c3874[1]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = FUN_00032d50(".",uVar2,0);" (assignment_expression "uVar2 = FUN_00032d50(".",uVar2,0)" identifier = (call_expression "FUN_00032d50(".",uVar2,0)" identifier (argument_list "(".",uVar2,0)" ( (string_literal ""."" " string_content ") , identifier , number_literal )))) ;) (expression_statement "__ptr = DAT_001c3874;" (assignment_expression "__ptr = DAT_001c3874" identifier = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x34) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x34) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x34)" * (cast_expression "(undefined4 *)(iVar1 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x34)" ( (binary_expression "iVar1 + 0x34" identifier + number_literal) )))) = identifier) ;) (if_statement "if (__ptr != (int *)0x0) {\n      local_34 = (int *)0x0;\n      do {\n        iVar1 = __ptr[1];\n        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }\n        piVar5 = (int *)*__ptr;\n        *(undefined4 *)(iVar1 + 0x20) = local_24;\n        *(undefined4 *)(iVar1 + 0x24) = local_20;\n        if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }\n        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }\n        if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }\n        free(__ptr);\n        __ptr = piVar5;\n      } while (piVar5 != (int *)0x0);\n      if (local_34 != (int *)0x0) {\n        puVar4 = (undefined4 *)xmalloc(0xc);\n        puVar4[1] = local_34;\n        puVar4[2] = 0;\n        *puVar4 = DAT_001c4574;\n        DAT_001c4574 = puVar4;\n        DAT_001c45e1 = DAT_001c45e1 | 1;\n      }\n    }" if (parenthesized_expression "(__ptr != (int *)0x0)" ( (binary_expression "__ptr != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      local_34 = (int *)0x0;\n      do {\n        iVar1 = __ptr[1];\n        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }\n        piVar5 = (int *)*__ptr;\n        *(undefined4 *)(iVar1 + 0x20) = local_24;\n        *(undefined4 *)(iVar1 + 0x24) = local_20;\n        if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }\n        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }\n        if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }\n        free(__ptr);\n        __ptr = piVar5;\n      } while (piVar5 != (int *)0x0);\n      if (local_34 != (int *)0x0) {\n        puVar4 = (undefined4 *)xmalloc(0xc);\n        puVar4[1] = local_34;\n        puVar4[2] = 0;\n        *puVar4 = DAT_001c4574;\n        DAT_001c4574 = puVar4;\n        DAT_001c45e1 = DAT_001c45e1 | 1;\n      }\n    }" { (expression_statement "local_34 = (int *)0x0;" (assignment_expression "local_34 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n        iVar1 = __ptr[1];\n        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }\n        piVar5 = (int *)*__ptr;\n        *(undefined4 *)(iVar1 + 0x20) = local_24;\n        *(undefined4 *)(iVar1 + 0x24) = local_20;\n        if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }\n        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }\n        if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }\n        free(__ptr);\n        __ptr = piVar5;\n      } while (piVar5 != (int *)0x0);" do (compound_statement "{\n        iVar1 = __ptr[1];\n        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }\n        piVar5 = (int *)*__ptr;\n        *(undefined4 *)(iVar1 + 0x20) = local_24;\n        *(undefined4 *)(iVar1 + 0x24) = local_20;\n        if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }\n        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }\n        if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }\n        free(__ptr);\n        __ptr = piVar5;\n      }" { (expression_statement "iVar1 = __ptr[1];" (assignment_expression "iVar1 = __ptr[1]" identifier = (subscript_expression "__ptr[1]" identifier [ number_literal ])) ;) (if_statement "if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }" if (parenthesized_expression "((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0))" ( (binary_expression "(param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)" (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(iVar1 + 0x28) == 0)" ( (binary_expression "*(int *)(iVar1 + 0x28) == 0" (pointer_expression "*(int *)(iVar1 + 0x28)" * (cast_expression "(int *)(iVar1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x28)" ( (binary_expression "iVar1 + 0x28" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n          *(int *)(iVar1 + 0x28) = param_3;\n        }" { (expression_statement "*(int *)(iVar1 + 0x28) = param_3;" (assignment_expression "*(int *)(iVar1 + 0x28) = param_3" (pointer_expression "*(int *)(iVar1 + 0x28)" * (cast_expression "(int *)(iVar1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x28)" ( (binary_expression "iVar1 + 0x28" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "piVar5 = (int *)*__ptr;" (assignment_expression "piVar5 = (int *)*__ptr" identifier = (cast_expression "(int *)*__ptr" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*__ptr" * identifier))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x20) = local_24;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = local_24" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x24) = local_20;" (assignment_expression "*(undefined4 *)(iVar1 + 0x24) = local_20" (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" * (cast_expression "(undefined4 *)(iVar1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) = identifier) ;) (if_statement "if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }" { (expression_statement "*(undefined4 *)(iVar1 + 0x50) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x50) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x50)" * (cast_expression "(undefined4 *)(iVar1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x50)" ( (binary_expression "iVar1 + 0x50" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(iVar1 + 0x30) = param_1;" (assignment_expression "*(int *)(iVar1 + 0x30) = param_1" (pointer_expression "*(int *)(iVar1 + 0x30)" * (cast_expression "(int *)(iVar1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) )))) = identifier) ;) })) (if_statement "if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }" if (parenthesized_expression "((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0))" ( (binary_expression "(param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)" (parenthesized_expression "(param_5 != 0)" ( (binary_expression "param_5 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(iVar1 + 0x38) == 0)" ( (binary_expression "*(int *)(iVar1 + 0x38) == 0" (pointer_expression "*(int *)(iVar1 + 0x38)" * (cast_expression "(int *)(iVar1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x38)" ( (binary_expression "iVar1 + 0x38" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n          *(int *)(iVar1 + 0x38) = param_5;\n        }" { (expression_statement "*(int *)(iVar1 + 0x38) = param_5;" (assignment_expression "*(int *)(iVar1 + 0x38) = param_5" (pointer_expression "*(int *)(iVar1 + 0x38)" * (cast_expression "(int *)(iVar1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x38)" ( (binary_expression "iVar1 + 0x38" identifier + number_literal) )))) = identifier) ;) })) (if_statement "if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }" { (expression_statement "piVar3 = (int *)xmalloc(8);" (assignment_expression "piVar3 = (int *)xmalloc(8)" identifier = (cast_expression "(int *)xmalloc(8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "piVar5 = (int *)*__ptr;" (assignment_expression "piVar5 = (int *)*__ptr" identifier = (cast_expression "(int *)*__ptr" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*__ptr" * identifier))) ;) (expression_statement "piVar3[1] = *(int *)(__ptr[1] + 0x18);" (assignment_expression "piVar3[1] = *(int *)(__ptr[1] + 0x18)" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = (pointer_expression "*(int *)(__ptr[1] + 0x18)" * (cast_expression "(int *)(__ptr[1] + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__ptr[1] + 0x18)" ( (binary_expression "__ptr[1] + 0x18" (subscript_expression "__ptr[1]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "*piVar3 = (int)local_34;" (assignment_expression "*piVar3 = (int)local_34" (pointer_expression "*piVar3" * identifier) = (cast_expression "(int)local_34" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "local_34 = piVar3;" (assignment_expression "local_34 = piVar3" identifier = identifier) ;) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "__ptr = piVar5;" (assignment_expression "__ptr = piVar5" identifier = identifier) ;) }) while (parenthesized_expression "(piVar5 != (int *)0x0)" ( (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if (local_34 != (int *)0x0) {\n        puVar4 = (undefined4 *)xmalloc(0xc);\n        puVar4[1] = local_34;\n        puVar4[2] = 0;\n        *puVar4 = DAT_001c4574;\n        DAT_001c4574 = puVar4;\n        DAT_001c45e1 = DAT_001c45e1 | 1;\n      }" if (parenthesized_expression "(local_34 != (int *)0x0)" ( (binary_expression "local_34 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        puVar4 = (undefined4 *)xmalloc(0xc);\n        puVar4[1] = local_34;\n        puVar4[2] = 0;\n        *puVar4 = DAT_001c4574;\n        DAT_001c4574 = puVar4;\n        DAT_001c45e1 = DAT_001c45e1 | 1;\n      }" { (expression_statement "puVar4 = (undefined4 *)xmalloc(0xc);" (assignment_expression "puVar4 = (undefined4 *)xmalloc(0xc)" identifier = (cast_expression "(undefined4 *)xmalloc(0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "puVar4[1] = local_34;" (assignment_expression "puVar4[1] = local_34" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[2] = 0;" (assignment_expression "puVar4[2] = 0" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar4 = DAT_001c4574;" (assignment_expression "*puVar4 = DAT_001c4574" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "DAT_001c4574 = puVar4;" (assignment_expression "DAT_001c4574 = puVar4" identifier = identifier) ;) (expression_statement "DAT_001c45e1 = DAT_001c45e1 | 1;" (assignment_expression "DAT_001c45e1 = DAT_001c45e1 | 1" identifier = (binary_expression "DAT_001c45e1 | 1" identifier | number_literal)) ;) })) })) })) (expression_statement "DAT_001c3880 = 0;" (assignment_expression "DAT_001c3880 = 0" identifier = number_literal) ;) (expression_statement "DAT_001c3874 = (int *)0x0;" (assignment_expression "DAT_001c3874 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "DAT_001c3878 = 0;" (assignment_expression "DAT_001c3878 = 0" identifier = number_literal) ;) (expression_statement "DAT_001c387c = 0;" (assignment_expression "DAT_001c387c = 0" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid lang_leave_overlay(etree_type *lma_expr,int nocrossrefs,fill_type *fill,char *memspec,\n                       lang_output_section_phdr_list *phdrs,char *lma_memspec)\n\n{\n  undefined1 *puVar1;\n  lang_output_section_statement_type *plVar2;\n  etree_type *peVar3;\n  lang_nocrossref_type *plVar4;\n  lang_nocrossrefs *plVar5;\n  overlay_list *__ptr;\n  overlay_list *poVar6;\n  lang_nocrossref_type *local_34;\n  lang_memory_region_type *region;\n  lang_memory_region_type *lma_region;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2a1bb;\n  lang_get_regions(&region,&lma_region,memspec,lma_memspec,(uint)(lma_expr != (etree_type *)0x0),0);\n  if (overlay_list != (overlay_list *)0x0) {\n    puVar1 = &overlay_list->os->field_0x54;\n    *puVar1 = *puVar1 | 0x10;\n    peVar3 = exp_binop(0x2b,overlay_vma,overlay_max);\n    plVar2 = overlay_list->os;\n    peVar3 = exp_assign(".",peVar3,0);\n    __ptr = overlay_list;\n    plVar2->update_dot_tree = peVar3;\n    if (__ptr != (overlay_list *)0x0) {\n      local_34 = (lang_nocrossref_type *)0x0;\n      do {\n        plVar2 = __ptr->os;\n        if ((fill != (fill_type *)0x0) && (plVar2->fill == (fill_type *)0x0)) {\n          plVar2->fill = fill;\n        }\n        poVar6 = __ptr->next;\n        plVar2->region = region;\n        plVar2->lma_region = lma_region;\n        if (poVar6 == (overlay_list *)0x0) {\n          plVar2->sectype = normal_section;\n          plVar2->load_base = lma_expr;\n        }\n        if ((phdrs != (lang_output_section_phdr_list *)0x0) &&\n           (plVar2->phdrs == (lang_output_section_phdr_list *)0x0)) {\n          plVar2->phdrs = phdrs;\n        }\n        if (nocrossrefs != 0) {\n          plVar4 = (lang_nocrossref_type *)xmalloc(8);\n          poVar6 = __ptr->next;\n          plVar4->name = __ptr->os->name;\n          plVar4->next = local_34;\n          local_34 = plVar4;\n        }\n        free(__ptr);\n        __ptr = poVar6;\n      } while (poVar6 != (overlay_list *)0x0);\n      if (local_34 != (lang_nocrossref_type *)0x0) {\n        plVar5 = (lang_nocrossrefs *)xmalloc(0xc);\n        plVar5->list = local_34;\n        plVar5->onlyfirst = 0;\n        plVar5->next = nocrossref_list;\n        nocrossref_list = plVar5;\n        link_info._1_1_ = link_info._1_1_ | 1;\n      }\n    }\n  }\n  overlay_vma = (etree_type *)0x0;\n  overlay_list = (overlay_list *)0x0;\n  overlay_max = (etree_type *)0x0;\n  overlay_subalign = (etree_type *)0x0;\n  return;\n}\n\n" comment comment (function_definition "void lang_leave_overlay(etree_type *lma_expr,int nocrossrefs,fill_type *fill,char *memspec,\n                       lang_output_section_phdr_list *phdrs,char *lma_memspec)\n\n{\n  undefined1 *puVar1;\n  lang_output_section_statement_type *plVar2;\n  etree_type *peVar3;\n  lang_nocrossref_type *plVar4;\n  lang_nocrossrefs *plVar5;\n  overlay_list *__ptr;\n  overlay_list *poVar6;\n  lang_nocrossref_type *local_34;\n  lang_memory_region_type *region;\n  lang_memory_region_type *lma_region;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2a1bb;\n  lang_get_regions(&region,&lma_region,memspec,lma_memspec,(uint)(lma_expr != (etree_type *)0x0),0);\n  if (overlay_list != (overlay_list *)0x0) {\n    puVar1 = &overlay_list->os->field_0x54;\n    *puVar1 = *puVar1 | 0x10;\n    peVar3 = exp_binop(0x2b,overlay_vma,overlay_max);\n    plVar2 = overlay_list->os;\n    peVar3 = exp_assign(".",peVar3,0);\n    __ptr = overlay_list;\n    plVar2->update_dot_tree = peVar3;\n    if (__ptr != (overlay_list *)0x0) {\n      local_34 = (lang_nocrossref_type *)0x0;\n      do {\n        plVar2 = __ptr->os;\n        if ((fill != (fill_type *)0x0) && (plVar2->fill == (fill_type *)0x0)) {\n          plVar2->fill = fill;\n        }\n        poVar6 = __ptr->next;\n        plVar2->region = region;\n        plVar2->lma_region = lma_region;\n        if (poVar6 == (overlay_list *)0x0) {\n          plVar2->sectype = normal_section;\n          plVar2->load_base = lma_expr;\n        }\n        if ((phdrs != (lang_output_section_phdr_list *)0x0) &&\n           (plVar2->phdrs == (lang_output_section_phdr_list *)0x0)) {\n          plVar2->phdrs = phdrs;\n        }\n        if (nocrossrefs != 0) {\n          plVar4 = (lang_nocrossref_type *)xmalloc(8);\n          poVar6 = __ptr->next;\n          plVar4->name = __ptr->os->name;\n          plVar4->next = local_34;\n          local_34 = plVar4;\n        }\n        free(__ptr);\n        __ptr = poVar6;\n      } while (poVar6 != (overlay_list *)0x0);\n      if (local_34 != (lang_nocrossref_type *)0x0) {\n        plVar5 = (lang_nocrossrefs *)xmalloc(0xc);\n        plVar5->list = local_34;\n        plVar5->onlyfirst = 0;\n        plVar5->next = nocrossref_list;\n        nocrossref_list = plVar5;\n        link_info._1_1_ = link_info._1_1_ | 1;\n      }\n    }\n  }\n  overlay_vma = (etree_type *)0x0;\n  overlay_list = (overlay_list *)0x0;\n  overlay_max = (etree_type *)0x0;\n  overlay_subalign = (etree_type *)0x0;\n  return;\n}" primitive_type (function_declarator "lang_leave_overlay(etree_type *lma_expr,int nocrossrefs,fill_type *fill,char *memspec,\n                       lang_output_section_phdr_list *phdrs,char *lma_memspec)" identifier (parameter_list "(etree_type *lma_expr,int nocrossrefs,fill_type *fill,char *memspec,\n                       lang_output_section_phdr_list *phdrs,char *lma_memspec)" ( (parameter_declaration "etree_type *lma_expr" type_identifier (pointer_declarator "*lma_expr" * identifier)) , (parameter_declaration "int nocrossrefs" primitive_type identifier) , (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  undefined1 *puVar1;\n  lang_output_section_statement_type *plVar2;\n  etree_type *peVar3;\n  lang_nocrossref_type *plVar4;\n  lang_nocrossrefs *plVar5;\n  overlay_list *__ptr;\n  overlay_list *poVar6;\n  lang_nocrossref_type *local_34;\n  lang_memory_region_type *region;\n  lang_memory_region_type *lma_region;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2a1bb;\n  lang_get_regions(&region,&lma_region,memspec,lma_memspec,(uint)(lma_expr != (etree_type *)0x0),0);\n  if (overlay_list != (overlay_list *)0x0) {\n    puVar1 = &overlay_list->os->field_0x54;\n    *puVar1 = *puVar1 | 0x10;\n    peVar3 = exp_binop(0x2b,overlay_vma,overlay_max);\n    plVar2 = overlay_list->os;\n    peVar3 = exp_assign(".",peVar3,0);\n    __ptr = overlay_list;\n    plVar2->update_dot_tree = peVar3;\n    if (__ptr != (overlay_list *)0x0) {\n      local_34 = (lang_nocrossref_type *)0x0;\n      do {\n        plVar2 = __ptr->os;\n        if ((fill != (fill_type *)0x0) && (plVar2->fill == (fill_type *)0x0)) {\n          plVar2->fill = fill;\n        }\n        poVar6 = __ptr->next;\n        plVar2->region = region;\n        plVar2->lma_region = lma_region;\n        if (poVar6 == (overlay_list *)0x0) {\n          plVar2->sectype = normal_section;\n          plVar2->load_base = lma_expr;\n        }\n        if ((phdrs != (lang_output_section_phdr_list *)0x0) &&\n           (plVar2->phdrs == (lang_output_section_phdr_list *)0x0)) {\n          plVar2->phdrs = phdrs;\n        }\n        if (nocrossrefs != 0) {\n          plVar4 = (lang_nocrossref_type *)xmalloc(8);\n          poVar6 = __ptr->next;\n          plVar4->name = __ptr->os->name;\n          plVar4->next = local_34;\n          local_34 = plVar4;\n        }\n        free(__ptr);\n        __ptr = poVar6;\n      } while (poVar6 != (overlay_list *)0x0);\n      if (local_34 != (lang_nocrossref_type *)0x0) {\n        plVar5 = (lang_nocrossrefs *)xmalloc(0xc);\n        plVar5->list = local_34;\n        plVar5->onlyfirst = 0;\n        plVar5->next = nocrossref_list;\n        nocrossref_list = plVar5;\n        link_info._1_1_ = link_info._1_1_ | 1;\n      }\n    }\n  }\n  overlay_vma = (etree_type *)0x0;\n  overlay_list = (overlay_list *)0x0;\n  overlay_max = (etree_type *)0x0;\n  overlay_subalign = (etree_type *)0x0;\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "lang_output_section_statement_type *plVar2;" type_identifier (pointer_declarator "*plVar2" * identifier) ;) (declaration "etree_type *peVar3;" type_identifier (pointer_declarator "*peVar3" * identifier) ;) (declaration "lang_nocrossref_type *plVar4;" type_identifier (pointer_declarator "*plVar4" * identifier) ;) (declaration "lang_nocrossrefs *plVar5;" type_identifier (pointer_declarator "*plVar5" * identifier) ;) (declaration "overlay_list *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "overlay_list *poVar6;" type_identifier (pointer_declarator "*poVar6" * identifier) ;) (declaration "lang_nocrossref_type *local_34;" type_identifier (pointer_declarator "*local_34" * identifier) ;) (declaration "lang_memory_region_type *region;" type_identifier (pointer_declarator "*region" * identifier) ;) (declaration "lang_memory_region_type *lma_region;" type_identifier (pointer_declarator "*lma_region" * identifier) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x2a1bb;" (assignment_expression "uStack_14 = 0x2a1bb" identifier = number_literal) ;) (expression_statement "lang_get_regions(&region,&lma_region,memspec,lma_memspec,(uint)(lma_expr != (etree_type *)0x0),0);" (call_expression "lang_get_regions(&region,&lma_region,memspec,lma_memspec,(uint)(lma_expr != (etree_type *)0x0),0)" identifier (argument_list "(&region,&lma_region,memspec,lma_memspec,(uint)(lma_expr != (etree_type *)0x0),0)" ( (pointer_expression "&region" & identifier) , (pointer_expression "&lma_region" & identifier) , identifier , identifier , (call_expression "(uint)(lma_expr != (etree_type *)0x0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(lma_expr != (etree_type *)0x0)" ( (binary_expression "lma_expr != (etree_type *)0x0" identifier != (cast_expression "(etree_type *)0x0" ( (type_descriptor "etree_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) , number_literal ))) ;) (if_statement "if (overlay_list != (overlay_list *)0x0) {\n    puVar1 = &overlay_list->os->field_0x54;\n    *puVar1 = *puVar1 | 0x10;\n    peVar3 = exp_binop(0x2b,overlay_vma,overlay_max);\n    plVar2 = overlay_list->os;\n    peVar3 = exp_assign(".",peVar3,0);\n    __ptr = overlay_list;\n    plVar2->update_dot_tree = peVar3;\n    if (__ptr != (overlay_list *)0x0) {\n      local_34 = (lang_nocrossref_type *)0x0;\n      do {\n        plVar2 = __ptr->os;\n        if ((fill != (fill_type *)0x0) && (plVar2->fill == (fill_type *)0x0)) {\n          plVar2->fill = fill;\n        }\n        poVar6 = __ptr->next;\n        plVar2->region = region;\n        plVar2->lma_region = lma_region;\n        if (poVar6 == (overlay_list *)0x0) {\n          plVar2->sectype = normal_section;\n          plVar2->load_base = lma_expr;\n        }\n        if ((phdrs != (lang_output_section_phdr_list *)0x0) &&\n           (plVar2->phdrs == (lang_output_section_phdr_list *)0x0)) {\n          plVar2->phdrs = phdrs;\n        }\n        if (nocrossrefs != 0) {\n          plVar4 = (lang_nocrossref_type *)xmalloc(8);\n          poVar6 = __ptr->next;\n          plVar4->name = __ptr->os->name;\n          plVar4->next = local_34;\n          local_34 = plVar4;\n        }\n        free(__ptr);\n        __ptr = poVar6;\n      } while (poVar6 != (overlay_list *)0x0);\n      if (local_34 != (lang_nocrossref_type *)0x0) {\n        plVar5 = (lang_nocrossrefs *)xmalloc(0xc);\n        plVar5->list = local_34;\n        plVar5->onlyfirst = 0;\n        plVar5->next = nocrossref_list;\n        nocrossref_list = plVar5;\n        link_info._1_1_ = link_info._1_1_ | 1;\n      }\n    }\n  }" if (parenthesized_expression "(overlay_list != (overlay_list *)0x0)" ( (binary_expression "overlay_list != (overlay_list *)0x0" identifier != (cast_expression "(overlay_list *)0x0" ( (type_descriptor "overlay_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1 = &overlay_list->os->field_0x54;\n    *puVar1 = *puVar1 | 0x10;\n    peVar3 = exp_binop(0x2b,overlay_vma,overlay_max);\n    plVar2 = overlay_list->os;\n    peVar3 = exp_assign(".",peVar3,0);\n    __ptr = overlay_list;\n    plVar2->update_dot_tree = peVar3;\n    if (__ptr != (overlay_list *)0x0) {\n      local_34 = (lang_nocrossref_type *)0x0;\n      do {\n        plVar2 = __ptr->os;\n        if ((fill != (fill_type *)0x0) && (plVar2->fill == (fill_type *)0x0)) {\n          plVar2->fill = fill;\n        }\n        poVar6 = __ptr->next;\n        plVar2->region = region;\n        plVar2->lma_region = lma_region;\n        if (poVar6 == (overlay_list *)0x0) {\n          plVar2->sectype = normal_section;\n          plVar2->load_base = lma_expr;\n        }\n        if ((phdrs != (lang_output_section_phdr_list *)0x0) &&\n           (plVar2->phdrs == (lang_output_section_phdr_list *)0x0)) {\n          plVar2->phdrs = phdrs;\n        }\n        if (nocrossrefs != 0) {\n          plVar4 = (lang_nocrossref_type *)xmalloc(8);\n          poVar6 = __ptr->next;\n          plVar4->name = __ptr->os->name;\n          plVar4->next = local_34;\n          local_34 = plVar4;\n        }\n        free(__ptr);\n        __ptr = poVar6;\n      } while (poVar6 != (overlay_list *)0x0);\n      if (local_34 != (lang_nocrossref_type *)0x0) {\n        plVar5 = (lang_nocrossrefs *)xmalloc(0xc);\n        plVar5->list = local_34;\n        plVar5->onlyfirst = 0;\n        plVar5->next = nocrossref_list;\n        nocrossref_list = plVar5;\n        link_info._1_1_ = link_info._1_1_ | 1;\n      }\n    }\n  }" { (expression_statement "puVar1 = &overlay_list->os->field_0x54;" (assignment_expression "puVar1 = &overlay_list->os->field_0x54" identifier = (pointer_expression "&overlay_list->os->field_0x54" & (field_expression "overlay_list->os->field_0x54" (field_expression "overlay_list->os" identifier -> field_identifier) -> field_identifier))) ;) (expression_statement "*puVar1 = *puVar1 | 0x10;" (assignment_expression "*puVar1 = *puVar1 | 0x10" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 | 0x10" (pointer_expression "*puVar1" * identifier) | number_literal)) ;) (expression_statement "peVar3 = exp_binop(0x2b,overlay_vma,overlay_max);" (assignment_expression "peVar3 = exp_binop(0x2b,overlay_vma,overlay_max)" identifier = (call_expression "exp_binop(0x2b,overlay_vma,overlay_max)" identifier (argument_list "(0x2b,overlay_vma,overlay_max)" ( number_literal , identifier , identifier )))) ;) (expression_statement "plVar2 = overlay_list->os;" (assignment_expression "plVar2 = overlay_list->os" identifier = (field_expression "overlay_list->os" identifier -> field_identifier)) ;) (expression_statement "peVar3 = exp_assign(".",peVar3,0);" (assignment_expression "peVar3 = exp_assign(".",peVar3,0)" identifier = (call_expression "exp_assign(".",peVar3,0)" identifier (argument_list "(".",peVar3,0)" ( (string_literal ""."" " string_content ") , identifier , number_literal )))) ;) (expression_statement "__ptr = overlay_list;" (assignment_expression "__ptr = overlay_list" identifier = identifier) ;) (expression_statement "plVar2->update_dot_tree = peVar3;" (assignment_expression "plVar2->update_dot_tree = peVar3" (field_expression "plVar2->update_dot_tree" identifier -> field_identifier) = identifier) ;) (if_statement "if (__ptr != (overlay_list *)0x0) {\n      local_34 = (lang_nocrossref_type *)0x0;\n      do {\n        plVar2 = __ptr->os;\n        if ((fill != (fill_type *)0x0) && (plVar2->fill == (fill_type *)0x0)) {\n          plVar2->fill = fill;\n        }\n        poVar6 = __ptr->next;\n        plVar2->region = region;\n        plVar2->lma_region = lma_region;\n        if (poVar6 == (overlay_list *)0x0) {\n          plVar2->sectype = normal_section;\n          plVar2->load_base = lma_expr;\n        }\n        if ((phdrs != (lang_output_section_phdr_list *)0x0) &&\n           (plVar2->phdrs == (lang_output_section_phdr_list *)0x0)) {\n          plVar2->phdrs = phdrs;\n        }\n        if (nocrossrefs != 0) {\n          plVar4 = (lang_nocrossref_type *)xmalloc(8);\n          poVar6 = __ptr->next;\n          plVar4->name = __ptr->os->name;\n          plVar4->next = local_34;\n          local_34 = plVar4;\n        }\n        free(__ptr);\n        __ptr = poVar6;\n      } while (poVar6 != (overlay_list *)0x0);\n      if (local_34 != (lang_nocrossref_type *)0x0) {\n        plVar5 = (lang_nocrossrefs *)xmalloc(0xc);\n        plVar5->list = local_34;\n        plVar5->onlyfirst = 0;\n        plVar5->next = nocrossref_list;\n        nocrossref_list = plVar5;\n        link_info._1_1_ = link_info._1_1_ | 1;\n      }\n    }" if (parenthesized_expression "(__ptr != (overlay_list *)0x0)" ( (binary_expression "__ptr != (overlay_list *)0x0" identifier != (cast_expression "(overlay_list *)0x0" ( (type_descriptor "overlay_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      local_34 = (lang_nocrossref_type *)0x0;\n      do {\n        plVar2 = __ptr->os;\n        if ((fill != (fill_type *)0x0) && (plVar2->fill == (fill_type *)0x0)) {\n          plVar2->fill = fill;\n        }\n        poVar6 = __ptr->next;\n        plVar2->region = region;\n        plVar2->lma_region = lma_region;\n        if (poVar6 == (overlay_list *)0x0) {\n          plVar2->sectype = normal_section;\n          plVar2->load_base = lma_expr;\n        }\n        if ((phdrs != (lang_output_section_phdr_list *)0x0) &&\n           (plVar2->phdrs == (lang_output_section_phdr_list *)0x0)) {\n          plVar2->phdrs = phdrs;\n        }\n        if (nocrossrefs != 0) {\n          plVar4 = (lang_nocrossref_type *)xmalloc(8);\n          poVar6 = __ptr->next;\n          plVar4->name = __ptr->os->name;\n          plVar4->next = local_34;\n          local_34 = plVar4;\n        }\n        free(__ptr);\n        __ptr = poVar6;\n      } while (poVar6 != (overlay_list *)0x0);\n      if (local_34 != (lang_nocrossref_type *)0x0) {\n        plVar5 = (lang_nocrossrefs *)xmalloc(0xc);\n        plVar5->list = local_34;\n        plVar5->onlyfirst = 0;\n        plVar5->next = nocrossref_list;\n        nocrossref_list = plVar5;\n        link_info._1_1_ = link_info._1_1_ | 1;\n      }\n    }" { (expression_statement "local_34 = (lang_nocrossref_type *)0x0;" (assignment_expression "local_34 = (lang_nocrossref_type *)0x0" identifier = (cast_expression "(lang_nocrossref_type *)0x0" ( (type_descriptor "lang_nocrossref_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n        plVar2 = __ptr->os;\n        if ((fill != (fill_type *)0x0) && (plVar2->fill == (fill_type *)0x0)) {\n          plVar2->fill = fill;\n        }\n        poVar6 = __ptr->next;\n        plVar2->region = region;\n        plVar2->lma_region = lma_region;\n        if (poVar6 == (overlay_list *)0x0) {\n          plVar2->sectype = normal_section;\n          plVar2->load_base = lma_expr;\n        }\n        if ((phdrs != (lang_output_section_phdr_list *)0x0) &&\n           (plVar2->phdrs == (lang_output_section_phdr_list *)0x0)) {\n          plVar2->phdrs = phdrs;\n        }\n        if (nocrossrefs != 0) {\n          plVar4 = (lang_nocrossref_type *)xmalloc(8);\n          poVar6 = __ptr->next;\n          plVar4->name = __ptr->os->name;\n          plVar4->next = local_34;\n          local_34 = plVar4;\n        }\n        free(__ptr);\n        __ptr = poVar6;\n      } while (poVar6 != (overlay_list *)0x0);" do (compound_statement "{\n        plVar2 = __ptr->os;\n        if ((fill != (fill_type *)0x0) && (plVar2->fill == (fill_type *)0x0)) {\n          plVar2->fill = fill;\n        }\n        poVar6 = __ptr->next;\n        plVar2->region = region;\n        plVar2->lma_region = lma_region;\n        if (poVar6 == (overlay_list *)0x0) {\n          plVar2->sectype = normal_section;\n          plVar2->load_base = lma_expr;\n        }\n        if ((phdrs != (lang_output_section_phdr_list *)0x0) &&\n           (plVar2->phdrs == (lang_output_section_phdr_list *)0x0)) {\n          plVar2->phdrs = phdrs;\n        }\n        if (nocrossrefs != 0) {\n          plVar4 = (lang_nocrossref_type *)xmalloc(8);\n          poVar6 = __ptr->next;\n          plVar4->name = __ptr->os->name;\n          plVar4->next = local_34;\n          local_34 = plVar4;\n        }\n        free(__ptr);\n        __ptr = poVar6;\n      }" { (expression_statement "plVar2 = __ptr->os;" (assignment_expression "plVar2 = __ptr->os" identifier = (field_expression "__ptr->os" identifier -> field_identifier)) ;) (if_statement "if ((fill != (fill_type *)0x0) && (plVar2->fill == (fill_type *)0x0)) {\n          plVar2->fill = fill;\n        }" if (parenthesized_expression "((fill != (fill_type *)0x0) && (plVar2->fill == (fill_type *)0x0))" ( (binary_expression "(fill != (fill_type *)0x0) && (plVar2->fill == (fill_type *)0x0)" (parenthesized_expression "(fill != (fill_type *)0x0)" ( (binary_expression "fill != (fill_type *)0x0" identifier != (cast_expression "(fill_type *)0x0" ( (type_descriptor "fill_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(plVar2->fill == (fill_type *)0x0)" ( (binary_expression "plVar2->fill == (fill_type *)0x0" (field_expression "plVar2->fill" identifier -> field_identifier) == (cast_expression "(fill_type *)0x0" ( (type_descriptor "fill_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n          plVar2->fill = fill;\n        }" { (expression_statement "plVar2->fill = fill;" (assignment_expression "plVar2->fill = fill" (field_expression "plVar2->fill" identifier -> field_identifier) = identifier) ;) })) (expression_statement "poVar6 = __ptr->next;" (assignment_expression "poVar6 = __ptr->next" identifier = (field_expression "__ptr->next" identifier -> field_identifier)) ;) (expression_statement "plVar2->region = region;" (assignment_expression "plVar2->region = region" (field_expression "plVar2->region" identifier -> field_identifier) = identifier) ;) (expression_statement "plVar2->lma_region = lma_region;" (assignment_expression "plVar2->lma_region = lma_region" (field_expression "plVar2->lma_region" identifier -> field_identifier) = identifier) ;) (if_statement "if (poVar6 == (overlay_list *)0x0) {\n          plVar2->sectype = normal_section;\n          plVar2->load_base = lma_expr;\n        }" if (parenthesized_expression "(poVar6 == (overlay_list *)0x0)" ( (binary_expression "poVar6 == (overlay_list *)0x0" identifier == (cast_expression "(overlay_list *)0x0" ( (type_descriptor "overlay_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          plVar2->sectype = normal_section;\n          plVar2->load_base = lma_expr;\n        }" { (expression_statement "plVar2->sectype = normal_section;" (assignment_expression "plVar2->sectype = normal_section" (field_expression "plVar2->sectype" identifier -> field_identifier) = identifier) ;) (expression_statement "plVar2->load_base = lma_expr;" (assignment_expression "plVar2->load_base = lma_expr" (field_expression "plVar2->load_base" identifier -> field_identifier) = identifier) ;) })) (if_statement "if ((phdrs != (lang_output_section_phdr_list *)0x0) &&\n           (plVar2->phdrs == (lang_output_section_phdr_list *)0x0)) {\n          plVar2->phdrs = phdrs;\n        }" if (parenthesized_expression "((phdrs != (lang_output_section_phdr_list *)0x0) &&\n           (plVar2->phdrs == (lang_output_section_phdr_list *)0x0))" ( (binary_expression "(phdrs != (lang_output_section_phdr_list *)0x0) &&\n           (plVar2->phdrs == (lang_output_section_phdr_list *)0x0)" (parenthesized_expression "(phdrs != (lang_output_section_phdr_list *)0x0)" ( (binary_expression "phdrs != (lang_output_section_phdr_list *)0x0" identifier != (cast_expression "(lang_output_section_phdr_list *)0x0" ( (type_descriptor "lang_output_section_phdr_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(plVar2->phdrs == (lang_output_section_phdr_list *)0x0)" ( (binary_expression "plVar2->phdrs == (lang_output_section_phdr_list *)0x0" (field_expression "plVar2->phdrs" identifier -> field_identifier) == (cast_expression "(lang_output_section_phdr_list *)0x0" ( (type_descriptor "lang_output_section_phdr_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n          plVar2->phdrs = phdrs;\n        }" { (expression_statement "plVar2->phdrs = phdrs;" (assignment_expression "plVar2->phdrs = phdrs" (field_expression "plVar2->phdrs" identifier -> field_identifier) = identifier) ;) })) (if_statement "if (nocrossrefs != 0) {\n          plVar4 = (lang_nocrossref_type *)xmalloc(8);\n          poVar6 = __ptr->next;\n          plVar4->name = __ptr->os->name;\n          plVar4->next = local_34;\n          local_34 = plVar4;\n        }" if (parenthesized_expression "(nocrossrefs != 0)" ( (binary_expression "nocrossrefs != 0" identifier != number_literal) )) (compound_statement "{\n          plVar4 = (lang_nocrossref_type *)xmalloc(8);\n          poVar6 = __ptr->next;\n          plVar4->name = __ptr->os->name;\n          plVar4->next = local_34;\n          local_34 = plVar4;\n        }" { (expression_statement "plVar4 = (lang_nocrossref_type *)xmalloc(8);" (assignment_expression "plVar4 = (lang_nocrossref_type *)xmalloc(8)" identifier = (cast_expression "(lang_nocrossref_type *)xmalloc(8)" ( (type_descriptor "lang_nocrossref_type *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "poVar6 = __ptr->next;" (assignment_expression "poVar6 = __ptr->next" identifier = (field_expression "__ptr->next" identifier -> field_identifier)) ;) (expression_statement "plVar4->name = __ptr->os->name;" (assignment_expression "plVar4->name = __ptr->os->name" (field_expression "plVar4->name" identifier -> field_identifier) = (field_expression "__ptr->os->name" (field_expression "__ptr->os" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "plVar4->next = local_34;" (assignment_expression "plVar4->next = local_34" (field_expression "plVar4->next" identifier -> field_identifier) = identifier) ;) (expression_statement "local_34 = plVar4;" (assignment_expression "local_34 = plVar4" identifier = identifier) ;) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "__ptr = poVar6;" (assignment_expression "__ptr = poVar6" identifier = identifier) ;) }) while (parenthesized_expression "(poVar6 != (overlay_list *)0x0)" ( (binary_expression "poVar6 != (overlay_list *)0x0" identifier != (cast_expression "(overlay_list *)0x0" ( (type_descriptor "overlay_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if (local_34 != (lang_nocrossref_type *)0x0) {\n        plVar5 = (lang_nocrossrefs *)xmalloc(0xc);\n        plVar5->list = local_34;\n        plVar5->onlyfirst = 0;\n        plVar5->next = nocrossref_list;\n        nocrossref_list = plVar5;\n        link_info._1_1_ = link_info._1_1_ | 1;\n      }" if (parenthesized_expression "(local_34 != (lang_nocrossref_type *)0x0)" ( (binary_expression "local_34 != (lang_nocrossref_type *)0x0" identifier != (cast_expression "(lang_nocrossref_type *)0x0" ( (type_descriptor "lang_nocrossref_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        plVar5 = (lang_nocrossrefs *)xmalloc(0xc);\n        plVar5->list = local_34;\n        plVar5->onlyfirst = 0;\n        plVar5->next = nocrossref_list;\n        nocrossref_list = plVar5;\n        link_info._1_1_ = link_info._1_1_ | 1;\n      }" { (expression_statement "plVar5 = (lang_nocrossrefs *)xmalloc(0xc);" (assignment_expression "plVar5 = (lang_nocrossrefs *)xmalloc(0xc)" identifier = (cast_expression "(lang_nocrossrefs *)xmalloc(0xc)" ( (type_descriptor "lang_nocrossrefs *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "plVar5->list = local_34;" (assignment_expression "plVar5->list = local_34" (field_expression "plVar5->list" identifier -> field_identifier) = identifier) ;) (expression_statement "plVar5->onlyfirst = 0;" (assignment_expression "plVar5->onlyfirst = 0" (field_expression "plVar5->onlyfirst" identifier -> field_identifier) = number_literal) ;) (expression_statement "plVar5->next = nocrossref_list;" (assignment_expression "plVar5->next = nocrossref_list" (field_expression "plVar5->next" identifier -> field_identifier) = identifier) ;) (expression_statement "nocrossref_list = plVar5;" (assignment_expression "nocrossref_list = plVar5" identifier = identifier) ;) (expression_statement "link_info._1_1_ = link_info._1_1_ | 1;" (assignment_expression "link_info._1_1_ = link_info._1_1_ | 1" (field_expression "link_info._1_1_" identifier . field_identifier) = (binary_expression "link_info._1_1_ | 1" (field_expression "link_info._1_1_" identifier . field_identifier) | number_literal)) ;) })) })) })) (expression_statement "overlay_vma = (etree_type *)0x0;" (assignment_expression "overlay_vma = (etree_type *)0x0" identifier = (cast_expression "(etree_type *)0x0" ( (type_descriptor "etree_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "overlay_list = (overlay_list *)0x0;" (assignment_expression "overlay_list = (overlay_list *)0x0" identifier = (cast_expression "(overlay_list *)0x0" ( (type_descriptor "overlay_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "overlay_max = (etree_type *)0x0;" (assignment_expression "overlay_max = (etree_type *)0x0" identifier = (cast_expression "(etree_type *)0x0" ( (type_descriptor "etree_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "overlay_subalign = (etree_type *)0x0;" (assignment_expression "overlay_subalign = (etree_type *)0x0" identifier = (cast_expression "(etree_type *)0x0" ( (type_descriptor "etree_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0002a1b0(int param_1,int param_2,int param_3,undefined4 param_4,int param_5,\n                 undefined4 param_6)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  int *__ptr;\n  int *piVar5;\n  int *local_34;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  FUN_00025510(param_6,param_1 != 0,0);\n  if (DAT_001c3874 != (int *)0x0) {\n    *(byte *)(DAT_001c3874[1] + 0x54) = *(byte *)(DAT_001c3874[1] + 0x54) | 0x10;\n    uVar2 = FUN_00032b80(0x2b,DAT_001c3880,DAT_001c3878);\n    iVar1 = DAT_001c3874[1];\n    uVar2 = FUN_00032d50(".",uVar2,0);\n    __ptr = DAT_001c3874;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    if (__ptr != (int *)0x0) {\n      local_34 = (int *)0x0;\n      do {\n        iVar1 = __ptr[1];\n        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }\n        piVar5 = (int *)*__ptr;\n        *(undefined4 *)(iVar1 + 0x20) = local_24;\n        *(undefined4 *)(iVar1 + 0x24) = local_20;\n        if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }\n        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }\n        if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }\n        free(__ptr);\n        __ptr = piVar5;\n      } while (piVar5 != (int *)0x0);\n      if (local_34 != (int *)0x0) {\n        puVar4 = (undefined4 *)xmalloc(0xc);\n        puVar4[1] = local_34;\n        puVar4[2] = 0;\n        *puVar4 = DAT_001c4574;\n        DAT_001c4574 = puVar4;\n        DAT_001c45e1 = DAT_001c45e1 | 1;\n      }\n    }\n  }\n  DAT_001c3880 = 0;\n  DAT_001c3874 = (int *)0x0;\n  DAT_001c3878 = 0;\n  DAT_001c387c = 0;\n  return;\n}\n\n" (function_definition "void FUN_0002a1b0(int param_1,int param_2,int param_3,undefined4 param_4,int param_5,\n                 undefined4 param_6)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  int *__ptr;\n  int *piVar5;\n  int *local_34;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  FUN_00025510(param_6,param_1 != 0,0);\n  if (DAT_001c3874 != (int *)0x0) {\n    *(byte *)(DAT_001c3874[1] + 0x54) = *(byte *)(DAT_001c3874[1] + 0x54) | 0x10;\n    uVar2 = FUN_00032b80(0x2b,DAT_001c3880,DAT_001c3878);\n    iVar1 = DAT_001c3874[1];\n    uVar2 = FUN_00032d50(".",uVar2,0);\n    __ptr = DAT_001c3874;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    if (__ptr != (int *)0x0) {\n      local_34 = (int *)0x0;\n      do {\n        iVar1 = __ptr[1];\n        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }\n        piVar5 = (int *)*__ptr;\n        *(undefined4 *)(iVar1 + 0x20) = local_24;\n        *(undefined4 *)(iVar1 + 0x24) = local_20;\n        if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }\n        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }\n        if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }\n        free(__ptr);\n        __ptr = piVar5;\n      } while (piVar5 != (int *)0x0);\n      if (local_34 != (int *)0x0) {\n        puVar4 = (undefined4 *)xmalloc(0xc);\n        puVar4[1] = local_34;\n        puVar4[2] = 0;\n        *puVar4 = DAT_001c4574;\n        DAT_001c4574 = puVar4;\n        DAT_001c45e1 = DAT_001c45e1 | 1;\n      }\n    }\n  }\n  DAT_001c3880 = 0;\n  DAT_001c3874 = (int *)0x0;\n  DAT_001c3878 = 0;\n  DAT_001c387c = 0;\n  return;\n}" primitive_type (function_declarator "FUN_0002a1b0(int param_1,int param_2,int param_3,undefined4 param_4,int param_5,\n                 undefined4 param_6)" identifier (parameter_list "(int param_1,int param_2,int param_3,undefined4 param_4,int param_5,\n                 undefined4 param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  int *__ptr;\n  int *piVar5;\n  int *local_34;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  FUN_00025510(param_6,param_1 != 0,0);\n  if (DAT_001c3874 != (int *)0x0) {\n    *(byte *)(DAT_001c3874[1] + 0x54) = *(byte *)(DAT_001c3874[1] + 0x54) | 0x10;\n    uVar2 = FUN_00032b80(0x2b,DAT_001c3880,DAT_001c3878);\n    iVar1 = DAT_001c3874[1];\n    uVar2 = FUN_00032d50(".",uVar2,0);\n    __ptr = DAT_001c3874;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    if (__ptr != (int *)0x0) {\n      local_34 = (int *)0x0;\n      do {\n        iVar1 = __ptr[1];\n        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }\n        piVar5 = (int *)*__ptr;\n        *(undefined4 *)(iVar1 + 0x20) = local_24;\n        *(undefined4 *)(iVar1 + 0x24) = local_20;\n        if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }\n        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }\n        if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }\n        free(__ptr);\n        __ptr = piVar5;\n      } while (piVar5 != (int *)0x0);\n      if (local_34 != (int *)0x0) {\n        puVar4 = (undefined4 *)xmalloc(0xc);\n        puVar4[1] = local_34;\n        puVar4[2] = 0;\n        *puVar4 = DAT_001c4574;\n        DAT_001c4574 = puVar4;\n        DAT_001c45e1 = DAT_001c45e1 | 1;\n      }\n    }\n  }\n  DAT_001c3880 = 0;\n  DAT_001c3874 = (int *)0x0;\n  DAT_001c3878 = 0;\n  DAT_001c387c = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int *local_34;" primitive_type (pointer_declarator "*local_34" * identifier) ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (expression_statement "FUN_00025510(param_6,param_1 != 0,0);" (call_expression "FUN_00025510(param_6,param_1 != 0,0)" identifier (argument_list "(param_6,param_1 != 0,0)" ( identifier , (binary_expression "param_1 != 0" identifier != number_literal) , number_literal ))) ;) (if_statement "if (DAT_001c3874 != (int *)0x0) {\n    *(byte *)(DAT_001c3874[1] + 0x54) = *(byte *)(DAT_001c3874[1] + 0x54) | 0x10;\n    uVar2 = FUN_00032b80(0x2b,DAT_001c3880,DAT_001c3878);\n    iVar1 = DAT_001c3874[1];\n    uVar2 = FUN_00032d50(".",uVar2,0);\n    __ptr = DAT_001c3874;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    if (__ptr != (int *)0x0) {\n      local_34 = (int *)0x0;\n      do {\n        iVar1 = __ptr[1];\n        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }\n        piVar5 = (int *)*__ptr;\n        *(undefined4 *)(iVar1 + 0x20) = local_24;\n        *(undefined4 *)(iVar1 + 0x24) = local_20;\n        if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }\n        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }\n        if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }\n        free(__ptr);\n        __ptr = piVar5;\n      } while (piVar5 != (int *)0x0);\n      if (local_34 != (int *)0x0) {\n        puVar4 = (undefined4 *)xmalloc(0xc);\n        puVar4[1] = local_34;\n        puVar4[2] = 0;\n        *puVar4 = DAT_001c4574;\n        DAT_001c4574 = puVar4;\n        DAT_001c45e1 = DAT_001c45e1 | 1;\n      }\n    }\n  }" if (parenthesized_expression "(DAT_001c3874 != (int *)0x0)" ( (binary_expression "DAT_001c3874 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *(byte *)(DAT_001c3874[1] + 0x54) = *(byte *)(DAT_001c3874[1] + 0x54) | 0x10;\n    uVar2 = FUN_00032b80(0x2b,DAT_001c3880,DAT_001c3878);\n    iVar1 = DAT_001c3874[1];\n    uVar2 = FUN_00032d50(".",uVar2,0);\n    __ptr = DAT_001c3874;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    if (__ptr != (int *)0x0) {\n      local_34 = (int *)0x0;\n      do {\n        iVar1 = __ptr[1];\n        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }\n        piVar5 = (int *)*__ptr;\n        *(undefined4 *)(iVar1 + 0x20) = local_24;\n        *(undefined4 *)(iVar1 + 0x24) = local_20;\n        if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }\n        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }\n        if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }\n        free(__ptr);\n        __ptr = piVar5;\n      } while (piVar5 != (int *)0x0);\n      if (local_34 != (int *)0x0) {\n        puVar4 = (undefined4 *)xmalloc(0xc);\n        puVar4[1] = local_34;\n        puVar4[2] = 0;\n        *puVar4 = DAT_001c4574;\n        DAT_001c4574 = puVar4;\n        DAT_001c45e1 = DAT_001c45e1 | 1;\n      }\n    }\n  }" { (expression_statement "*(byte *)(DAT_001c3874[1] + 0x54) = *(byte *)(DAT_001c3874[1] + 0x54) | 0x10;" (assignment_expression "*(byte *)(DAT_001c3874[1] + 0x54) = *(byte *)(DAT_001c3874[1] + 0x54) | 0x10" (pointer_expression "*(byte *)(DAT_001c3874[1] + 0x54)" * (cast_expression "(byte *)(DAT_001c3874[1] + 0x54)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c3874[1] + 0x54)" ( (binary_expression "DAT_001c3874[1] + 0x54" (subscript_expression "DAT_001c3874[1]" identifier [ number_literal ]) + number_literal) )))) = (binary_expression "*(byte *)(DAT_001c3874[1] + 0x54) | 0x10" (pointer_expression "*(byte *)(DAT_001c3874[1] + 0x54)" * (cast_expression "(byte *)(DAT_001c3874[1] + 0x54)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c3874[1] + 0x54)" ( (binary_expression "DAT_001c3874[1] + 0x54" (subscript_expression "DAT_001c3874[1]" identifier [ number_literal ]) + number_literal) )))) | number_literal)) ;) (expression_statement "uVar2 = FUN_00032b80(0x2b,DAT_001c3880,DAT_001c3878);" (assignment_expression "uVar2 = FUN_00032b80(0x2b,DAT_001c3880,DAT_001c3878)" identifier = (call_expression "FUN_00032b80(0x2b,DAT_001c3880,DAT_001c3878)" identifier (argument_list "(0x2b,DAT_001c3880,DAT_001c3878)" ( number_literal , identifier , identifier )))) ;) (expression_statement "iVar1 = DAT_001c3874[1];" (assignment_expression "iVar1 = DAT_001c3874[1]" identifier = (subscript_expression "DAT_001c3874[1]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = FUN_00032d50(".",uVar2,0);" (assignment_expression "uVar2 = FUN_00032d50(".",uVar2,0)" identifier = (call_expression "FUN_00032d50(".",uVar2,0)" identifier (argument_list "(".",uVar2,0)" ( (string_literal ""."" " string_content ") , identifier , number_literal )))) ;) (expression_statement "__ptr = DAT_001c3874;" (assignment_expression "__ptr = DAT_001c3874" identifier = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x34) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x34) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x34)" * (cast_expression "(undefined4 *)(iVar1 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x34)" ( (binary_expression "iVar1 + 0x34" identifier + number_literal) )))) = identifier) ;) (if_statement "if (__ptr != (int *)0x0) {\n      local_34 = (int *)0x0;\n      do {\n        iVar1 = __ptr[1];\n        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }\n        piVar5 = (int *)*__ptr;\n        *(undefined4 *)(iVar1 + 0x20) = local_24;\n        *(undefined4 *)(iVar1 + 0x24) = local_20;\n        if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }\n        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }\n        if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }\n        free(__ptr);\n        __ptr = piVar5;\n      } while (piVar5 != (int *)0x0);\n      if (local_34 != (int *)0x0) {\n        puVar4 = (undefined4 *)xmalloc(0xc);\n        puVar4[1] = local_34;\n        puVar4[2] = 0;\n        *puVar4 = DAT_001c4574;\n        DAT_001c4574 = puVar4;\n        DAT_001c45e1 = DAT_001c45e1 | 1;\n      }\n    }" if (parenthesized_expression "(__ptr != (int *)0x0)" ( (binary_expression "__ptr != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      local_34 = (int *)0x0;\n      do {\n        iVar1 = __ptr[1];\n        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }\n        piVar5 = (int *)*__ptr;\n        *(undefined4 *)(iVar1 + 0x20) = local_24;\n        *(undefined4 *)(iVar1 + 0x24) = local_20;\n        if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }\n        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }\n        if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }\n        free(__ptr);\n        __ptr = piVar5;\n      } while (piVar5 != (int *)0x0);\n      if (local_34 != (int *)0x0) {\n        puVar4 = (undefined4 *)xmalloc(0xc);\n        puVar4[1] = local_34;\n        puVar4[2] = 0;\n        *puVar4 = DAT_001c4574;\n        DAT_001c4574 = puVar4;\n        DAT_001c45e1 = DAT_001c45e1 | 1;\n      }\n    }" { (expression_statement "local_34 = (int *)0x0;" (assignment_expression "local_34 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n        iVar1 = __ptr[1];\n        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }\n        piVar5 = (int *)*__ptr;\n        *(undefined4 *)(iVar1 + 0x20) = local_24;\n        *(undefined4 *)(iVar1 + 0x24) = local_20;\n        if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }\n        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }\n        if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }\n        free(__ptr);\n        __ptr = piVar5;\n      } while (piVar5 != (int *)0x0);" do (compound_statement "{\n        iVar1 = __ptr[1];\n        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }\n        piVar5 = (int *)*__ptr;\n        *(undefined4 *)(iVar1 + 0x20) = local_24;\n        *(undefined4 *)(iVar1 + 0x24) = local_20;\n        if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }\n        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }\n        if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }\n        free(__ptr);\n        __ptr = piVar5;\n      }" { (expression_statement "iVar1 = __ptr[1];" (assignment_expression "iVar1 = __ptr[1]" identifier = (subscript_expression "__ptr[1]" identifier [ number_literal ])) ;) (if_statement "if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }" if (parenthesized_expression "((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0))" ( (binary_expression "(param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)" (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(iVar1 + 0x28) == 0)" ( (binary_expression "*(int *)(iVar1 + 0x28) == 0" (pointer_expression "*(int *)(iVar1 + 0x28)" * (cast_expression "(int *)(iVar1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x28)" ( (binary_expression "iVar1 + 0x28" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n          *(int *)(iVar1 + 0x28) = param_3;\n        }" { (expression_statement "*(int *)(iVar1 + 0x28) = param_3;" (assignment_expression "*(int *)(iVar1 + 0x28) = param_3" (pointer_expression "*(int *)(iVar1 + 0x28)" * (cast_expression "(int *)(iVar1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x28)" ( (binary_expression "iVar1 + 0x28" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "piVar5 = (int *)*__ptr;" (assignment_expression "piVar5 = (int *)*__ptr" identifier = (cast_expression "(int *)*__ptr" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*__ptr" * identifier))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x20) = local_24;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = local_24" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x24) = local_20;" (assignment_expression "*(undefined4 *)(iVar1 + 0x24) = local_20" (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" * (cast_expression "(undefined4 *)(iVar1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) = identifier) ;) (if_statement "if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }" { (expression_statement "*(undefined4 *)(iVar1 + 0x50) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x50) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x50)" * (cast_expression "(undefined4 *)(iVar1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x50)" ( (binary_expression "iVar1 + 0x50" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(iVar1 + 0x30) = param_1;" (assignment_expression "*(int *)(iVar1 + 0x30) = param_1" (pointer_expression "*(int *)(iVar1 + 0x30)" * (cast_expression "(int *)(iVar1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) )))) = identifier) ;) })) (if_statement "if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }" if (parenthesized_expression "((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0))" ( (binary_expression "(param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)" (parenthesized_expression "(param_5 != 0)" ( (binary_expression "param_5 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(iVar1 + 0x38) == 0)" ( (binary_expression "*(int *)(iVar1 + 0x38) == 0" (pointer_expression "*(int *)(iVar1 + 0x38)" * (cast_expression "(int *)(iVar1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x38)" ( (binary_expression "iVar1 + 0x38" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n          *(int *)(iVar1 + 0x38) = param_5;\n        }" { (expression_statement "*(int *)(iVar1 + 0x38) = param_5;" (assignment_expression "*(int *)(iVar1 + 0x38) = param_5" (pointer_expression "*(int *)(iVar1 + 0x38)" * (cast_expression "(int *)(iVar1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x38)" ( (binary_expression "iVar1 + 0x38" identifier + number_literal) )))) = identifier) ;) })) (if_statement "if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }" { (expression_statement "piVar3 = (int *)xmalloc(8);" (assignment_expression "piVar3 = (int *)xmalloc(8)" identifier = (cast_expression "(int *)xmalloc(8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "piVar5 = (int *)*__ptr;" (assignment_expression "piVar5 = (int *)*__ptr" identifier = (cast_expression "(int *)*__ptr" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*__ptr" * identifier))) ;) (expression_statement "piVar3[1] = *(int *)(__ptr[1] + 0x18);" (assignment_expression "piVar3[1] = *(int *)(__ptr[1] + 0x18)" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = (pointer_expression "*(int *)(__ptr[1] + 0x18)" * (cast_expression "(int *)(__ptr[1] + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__ptr[1] + 0x18)" ( (binary_expression "__ptr[1] + 0x18" (subscript_expression "__ptr[1]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "*piVar3 = (int)local_34;" (assignment_expression "*piVar3 = (int)local_34" (pointer_expression "*piVar3" * identifier) = (cast_expression "(int)local_34" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "local_34 = piVar3;" (assignment_expression "local_34 = piVar3" identifier = identifier) ;) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "__ptr = piVar5;" (assignment_expression "__ptr = piVar5" identifier = identifier) ;) }) while (parenthesized_expression "(piVar5 != (int *)0x0)" ( (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if (local_34 != (int *)0x0) {\n        puVar4 = (undefined4 *)xmalloc(0xc);\n        puVar4[1] = local_34;\n        puVar4[2] = 0;\n        *puVar4 = DAT_001c4574;\n        DAT_001c4574 = puVar4;\n        DAT_001c45e1 = DAT_001c45e1 | 1;\n      }" if (parenthesized_expression "(local_34 != (int *)0x0)" ( (binary_expression "local_34 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        puVar4 = (undefined4 *)xmalloc(0xc);\n        puVar4[1] = local_34;\n        puVar4[2] = 0;\n        *puVar4 = DAT_001c4574;\n        DAT_001c4574 = puVar4;\n        DAT_001c45e1 = DAT_001c45e1 | 1;\n      }" { (expression_statement "puVar4 = (undefined4 *)xmalloc(0xc);" (assignment_expression "puVar4 = (undefined4 *)xmalloc(0xc)" identifier = (cast_expression "(undefined4 *)xmalloc(0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "puVar4[1] = local_34;" (assignment_expression "puVar4[1] = local_34" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[2] = 0;" (assignment_expression "puVar4[2] = 0" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar4 = DAT_001c4574;" (assignment_expression "*puVar4 = DAT_001c4574" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "DAT_001c4574 = puVar4;" (assignment_expression "DAT_001c4574 = puVar4" identifier = identifier) ;) (expression_statement "DAT_001c45e1 = DAT_001c45e1 | 1;" (assignment_expression "DAT_001c45e1 = DAT_001c45e1 | 1" identifier = (binary_expression "DAT_001c45e1 | 1" identifier | number_literal)) ;) })) })) })) (expression_statement "DAT_001c3880 = 0;" (assignment_expression "DAT_001c3880 = 0" identifier = number_literal) ;) (expression_statement "DAT_001c3874 = (int *)0x0;" (assignment_expression "DAT_001c3874 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "DAT_001c3878 = 0;" (assignment_expression "DAT_001c3878 = 0" identifier = number_literal) ;) (expression_statement "DAT_001c387c = 0;" (assignment_expression "DAT_001c387c = 0" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT != LIT) , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) | LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT , 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) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * 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 IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (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 (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) (compound_statement { (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 IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) })) })) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_0002a1b0(int param_1,int param_2,int param_3,undefined4 param_4,int param_5,\n                 undefined4 param_6)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  int *__ptr;\n  int *piVar5;\n  int *local_34;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  FUN_00025510(param_6,param_1 != 0,0);\n  if (DAT_001c3874 != (int *)0x0) {\n    *(byte *)(DAT_001c3874[1] + 0x54) = *(byte *)(DAT_001c3874[1] + 0x54) | 0x10;\n    uVar2 = FUN_00032b80(0x2b,DAT_001c3880,DAT_001c3878);\n    iVar1 = DAT_001c3874[1];\n    uVar2 = FUN_00032d50(".",uVar2,0);\n    __ptr = DAT_001c3874;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    if (__ptr != (int *)0x0) {\n      local_34 = (int *)0x0;\n      do {\n        iVar1 = __ptr[1];\n        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }\n        piVar5 = (int *)*__ptr;\n        *(undefined4 *)(iVar1 + 0x20) = local_24;\n        *(undefined4 *)(iVar1 + 0x24) = local_20;\n        if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }\n        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }\n        if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }\n        free(__ptr);\n        __ptr = piVar5;\n      } while (piVar5 != (int *)0x0);\n      if (local_34 != (int *)0x0) {\n        puVar4 = (undefined4 *)xmalloc(0xc);\n        puVar4[1] = local_34;\n        puVar4[2] = 0;\n        *puVar4 = DAT_001c4574;\n        DAT_001c4574 = puVar4;\n        DAT_001c45e1 = DAT_001c45e1 | 1;\n      }\n    }\n  }\n  DAT_001c3880 = 0;\n  DAT_001c3874 = (int *)0x0;\n  DAT_001c3878 = 0;\n  DAT_001c387c = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0002a1b0(int param_1,int param_2,int param_3,undefined4 param_4,int param_5,\n                 undefined4 param_6)" (identifier "FUN_0002a1b0") (parameter_list "(int param_1,int param_2,int param_3,undefined4 param_4,int param_5,\n                 undefined4 param_6)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  int *__ptr;\n  int *piVar5;\n  int *local_34;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  FUN_00025510(param_6,param_1 != 0,0);\n  if (DAT_001c3874 != (int *)0x0) {\n    *(byte *)(DAT_001c3874[1] + 0x54) = *(byte *)(DAT_001c3874[1] + 0x54) | 0x10;\n    uVar2 = FUN_00032b80(0x2b,DAT_001c3880,DAT_001c3878);\n    iVar1 = DAT_001c3874[1];\n    uVar2 = FUN_00032d50(".",uVar2,0);\n    __ptr = DAT_001c3874;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    if (__ptr != (int *)0x0) {\n      local_34 = (int *)0x0;\n      do {\n        iVar1 = __ptr[1];\n        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }\n        piVar5 = (int *)*__ptr;\n        *(undefined4 *)(iVar1 + 0x20) = local_24;\n        *(undefined4 *)(iVar1 + 0x24) = local_20;\n        if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }\n        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }\n        if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }\n        free(__ptr);\n        __ptr = piVar5;\n      } while (piVar5 != (int *)0x0);\n      if (local_34 != (int *)0x0) {\n        puVar4 = (undefined4 *)xmalloc(0xc);\n        puVar4[1] = local_34;\n        puVar4[2] = 0;\n        *puVar4 = DAT_001c4574;\n        DAT_001c4574 = puVar4;\n        DAT_001c45e1 = DAT_001c45e1 | 1;\n      }\n    }\n  }\n  DAT_001c3880 = 0;\n  DAT_001c3874 = (int *)0x0;\n  DAT_001c3878 = 0;\n  DAT_001c387c = 0;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int *__ptr;" (primitive_type "int") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "int *local_34;" (primitive_type "int") (pointer_declarator "*local_34" (* "*") (identifier "local_34")) (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (expression_statement "FUN_00025510(param_6,param_1 != 0,0);" (call_expression "FUN_00025510(param_6,param_1 != 0,0)" (identifier "FUN_00025510") (argument_list "(param_6,param_1 != 0,0)" (( "(") (identifier "param_6") (, ",") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (DAT_001c3874 != (int *)0x0) {\n    *(byte *)(DAT_001c3874[1] + 0x54) = *(byte *)(DAT_001c3874[1] + 0x54) | 0x10;\n    uVar2 = FUN_00032b80(0x2b,DAT_001c3880,DAT_001c3878);\n    iVar1 = DAT_001c3874[1];\n    uVar2 = FUN_00032d50(".",uVar2,0);\n    __ptr = DAT_001c3874;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    if (__ptr != (int *)0x0) {\n      local_34 = (int *)0x0;\n      do {\n        iVar1 = __ptr[1];\n        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }\n        piVar5 = (int *)*__ptr;\n        *(undefined4 *)(iVar1 + 0x20) = local_24;\n        *(undefined4 *)(iVar1 + 0x24) = local_20;\n        if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }\n        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }\n        if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }\n        free(__ptr);\n        __ptr = piVar5;\n      } while (piVar5 != (int *)0x0);\n      if (local_34 != (int *)0x0) {\n        puVar4 = (undefined4 *)xmalloc(0xc);\n        puVar4[1] = local_34;\n        puVar4[2] = 0;\n        *puVar4 = DAT_001c4574;\n        DAT_001c4574 = puVar4;\n        DAT_001c45e1 = DAT_001c45e1 | 1;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(DAT_001c3874 != (int *)0x0)" (( "(") (binary_expression "DAT_001c3874 != (int *)0x0" (identifier "DAT_001c3874") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *(byte *)(DAT_001c3874[1] + 0x54) = *(byte *)(DAT_001c3874[1] + 0x54) | 0x10;\n    uVar2 = FUN_00032b80(0x2b,DAT_001c3880,DAT_001c3878);\n    iVar1 = DAT_001c3874[1];\n    uVar2 = FUN_00032d50(".",uVar2,0);\n    __ptr = DAT_001c3874;\n    *(undefined4 *)(iVar1 + 0x34) = uVar2;\n    if (__ptr != (int *)0x0) {\n      local_34 = (int *)0x0;\n      do {\n        iVar1 = __ptr[1];\n        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }\n        piVar5 = (int *)*__ptr;\n        *(undefined4 *)(iVar1 + 0x20) = local_24;\n        *(undefined4 *)(iVar1 + 0x24) = local_20;\n        if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }\n        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }\n        if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }\n        free(__ptr);\n        __ptr = piVar5;\n      } while (piVar5 != (int *)0x0);\n      if (local_34 != (int *)0x0) {\n        puVar4 = (undefined4 *)xmalloc(0xc);\n        puVar4[1] = local_34;\n        puVar4[2] = 0;\n        *puVar4 = DAT_001c4574;\n        DAT_001c4574 = puVar4;\n        DAT_001c45e1 = DAT_001c45e1 | 1;\n      }\n    }\n  }" ({ "{") (expression_statement "*(byte *)(DAT_001c3874[1] + 0x54) = *(byte *)(DAT_001c3874[1] + 0x54) | 0x10;" (assignment_expression "*(byte *)(DAT_001c3874[1] + 0x54) = *(byte *)(DAT_001c3874[1] + 0x54) | 0x10" (pointer_expression "*(byte *)(DAT_001c3874[1] + 0x54)" (* "*") (cast_expression "(byte *)(DAT_001c3874[1] + 0x54)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001c3874[1] + 0x54)" (( "(") (binary_expression "DAT_001c3874[1] + 0x54" (subscript_expression "DAT_001c3874[1]" (identifier "DAT_001c3874") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "0x54")) () ")")))) (= "=") (binary_expression "*(byte *)(DAT_001c3874[1] + 0x54) | 0x10" (pointer_expression "*(byte *)(DAT_001c3874[1] + 0x54)" (* "*") (cast_expression "(byte *)(DAT_001c3874[1] + 0x54)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001c3874[1] + 0x54)" (( "(") (binary_expression "DAT_001c3874[1] + 0x54" (subscript_expression "DAT_001c3874[1]" (identifier "DAT_001c3874") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "0x54")) () ")")))) (| "|") (number_literal "0x10"))) (; ";")) (expression_statement "uVar2 = FUN_00032b80(0x2b,DAT_001c3880,DAT_001c3878);" (assignment_expression "uVar2 = FUN_00032b80(0x2b,DAT_001c3880,DAT_001c3878)" (identifier "uVar2") (= "=") (call_expression "FUN_00032b80(0x2b,DAT_001c3880,DAT_001c3878)" (identifier "FUN_00032b80") (argument_list "(0x2b,DAT_001c3880,DAT_001c3878)" (( "(") (number_literal "0x2b") (, ",") (identifier "DAT_001c3880") (, ",") (identifier "DAT_001c3878") () ")")))) (; ";")) (expression_statement "iVar1 = DAT_001c3874[1];" (assignment_expression "iVar1 = DAT_001c3874[1]" (identifier "iVar1") (= "=") (subscript_expression "DAT_001c3874[1]" (identifier "DAT_001c3874") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar2 = FUN_00032d50(".",uVar2,0);" (assignment_expression "uVar2 = FUN_00032d50(".",uVar2,0)" (identifier "uVar2") (= "=") (call_expression "FUN_00032d50(".",uVar2,0)" (identifier "FUN_00032d50") (argument_list "(".",uVar2,0)" (( "(") (string_literal ""."" (" """) (string_content ".") (" """)) (, ",") (identifier "uVar2") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "__ptr = DAT_001c3874;" (assignment_expression "__ptr = DAT_001c3874" (identifier "__ptr") (= "=") (identifier "DAT_001c3874")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x34) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x34) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x34)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x34)" (( "(") (binary_expression "iVar1 + 0x34" (identifier "iVar1") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (if_statement "if (__ptr != (int *)0x0) {\n      local_34 = (int *)0x0;\n      do {\n        iVar1 = __ptr[1];\n        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }\n        piVar5 = (int *)*__ptr;\n        *(undefined4 *)(iVar1 + 0x20) = local_24;\n        *(undefined4 *)(iVar1 + 0x24) = local_20;\n        if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }\n        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }\n        if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }\n        free(__ptr);\n        __ptr = piVar5;\n      } while (piVar5 != (int *)0x0);\n      if (local_34 != (int *)0x0) {\n        puVar4 = (undefined4 *)xmalloc(0xc);\n        puVar4[1] = local_34;\n        puVar4[2] = 0;\n        *puVar4 = DAT_001c4574;\n        DAT_001c4574 = puVar4;\n        DAT_001c45e1 = DAT_001c45e1 | 1;\n      }\n    }" (if "if") (parenthesized_expression "(__ptr != (int *)0x0)" (( "(") (binary_expression "__ptr != (int *)0x0" (identifier "__ptr") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      local_34 = (int *)0x0;\n      do {\n        iVar1 = __ptr[1];\n        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }\n        piVar5 = (int *)*__ptr;\n        *(undefined4 *)(iVar1 + 0x20) = local_24;\n        *(undefined4 *)(iVar1 + 0x24) = local_20;\n        if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }\n        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }\n        if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }\n        free(__ptr);\n        __ptr = piVar5;\n      } while (piVar5 != (int *)0x0);\n      if (local_34 != (int *)0x0) {\n        puVar4 = (undefined4 *)xmalloc(0xc);\n        puVar4[1] = local_34;\n        puVar4[2] = 0;\n        *puVar4 = DAT_001c4574;\n        DAT_001c4574 = puVar4;\n        DAT_001c45e1 = DAT_001c45e1 | 1;\n      }\n    }" ({ "{") (expression_statement "local_34 = (int *)0x0;" (assignment_expression "local_34 = (int *)0x0" (identifier "local_34") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (do_statement "do {\n        iVar1 = __ptr[1];\n        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }\n        piVar5 = (int *)*__ptr;\n        *(undefined4 *)(iVar1 + 0x20) = local_24;\n        *(undefined4 *)(iVar1 + 0x24) = local_20;\n        if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }\n        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }\n        if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }\n        free(__ptr);\n        __ptr = piVar5;\n      } while (piVar5 != (int *)0x0);" (do "do") (compound_statement "{\n        iVar1 = __ptr[1];\n        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }\n        piVar5 = (int *)*__ptr;\n        *(undefined4 *)(iVar1 + 0x20) = local_24;\n        *(undefined4 *)(iVar1 + 0x24) = local_20;\n        if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }\n        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }\n        if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }\n        free(__ptr);\n        __ptr = piVar5;\n      }" ({ "{") (expression_statement "iVar1 = __ptr[1];" (assignment_expression "iVar1 = __ptr[1]" (identifier "iVar1") (= "=") (subscript_expression "__ptr[1]" (identifier "__ptr") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {\n          *(int *)(iVar1 + 0x28) = param_3;\n        }" (if "if") (parenthesized_expression "((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0))" (( "(") (binary_expression "(param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)" (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(iVar1 + 0x28) == 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x28) == 0" (pointer_expression "*(int *)(iVar1 + 0x28)" (* "*") (cast_expression "(int *)(iVar1 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x28)" (( "(") (binary_expression "iVar1 + 0x28" (identifier "iVar1") (+ "+") (number_literal "0x28")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n          *(int *)(iVar1 + 0x28) = param_3;\n        }" ({ "{") (expression_statement "*(int *)(iVar1 + 0x28) = param_3;" (assignment_expression "*(int *)(iVar1 + 0x28) = param_3" (pointer_expression "*(int *)(iVar1 + 0x28)" (* "*") (cast_expression "(int *)(iVar1 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x28)" (( "(") (binary_expression "iVar1 + 0x28" (identifier "iVar1") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (} "}"))) (expression_statement "piVar5 = (int *)*__ptr;" (assignment_expression "piVar5 = (int *)*__ptr" (identifier "piVar5") (= "=") (cast_expression "(int *)*__ptr" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*__ptr" (* "*") (identifier "__ptr")))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x20) = local_24;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = local_24" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "local_24")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x24) = local_20;" (assignment_expression "*(undefined4 *)(iVar1 + 0x24) = local_20" (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x24)" (( "(") (binary_expression "iVar1 + 0x24" (identifier "iVar1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (identifier "local_20")) (; ";")) (if_statement "if (piVar5 == (int *)0x0) {\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }" (if "if") (parenthesized_expression "(piVar5 == (int *)0x0)" (( "(") (binary_expression "piVar5 == (int *)0x0" (identifier "piVar5") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          *(undefined4 *)(iVar1 + 0x50) = 0;\n          *(int *)(iVar1 + 0x30) = param_1;\n        }" ({ "{") (expression_statement "*(undefined4 *)(iVar1 + 0x50) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x50) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x50)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x50)" (( "(") (binary_expression "iVar1 + 0x50" (identifier "iVar1") (+ "+") (number_literal "0x50")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int *)(iVar1 + 0x30) = param_1;" (assignment_expression "*(int *)(iVar1 + 0x30) = param_1" (pointer_expression "*(int *)(iVar1 + 0x30)" (* "*") (cast_expression "(int *)(iVar1 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x30)" (( "(") (binary_expression "iVar1 + 0x30" (identifier "iVar1") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (} "}"))) (if_statement "if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {\n          *(int *)(iVar1 + 0x38) = param_5;\n        }" (if "if") (parenthesized_expression "((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0))" (( "(") (binary_expression "(param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)" (parenthesized_expression "(param_5 != 0)" (( "(") (binary_expression "param_5 != 0" (identifier "param_5") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(iVar1 + 0x38) == 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x38) == 0" (pointer_expression "*(int *)(iVar1 + 0x38)" (* "*") (cast_expression "(int *)(iVar1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x38)" (( "(") (binary_expression "iVar1 + 0x38" (identifier "iVar1") (+ "+") (number_literal "0x38")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n          *(int *)(iVar1 + 0x38) = param_5;\n        }" ({ "{") (expression_statement "*(int *)(iVar1 + 0x38) = param_5;" (assignment_expression "*(int *)(iVar1 + 0x38) = param_5" (pointer_expression "*(int *)(iVar1 + 0x38)" (* "*") (cast_expression "(int *)(iVar1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x38)" (( "(") (binary_expression "iVar1 + 0x38" (identifier "iVar1") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (identifier "param_5")) (; ";")) (} "}"))) (if_statement "if (param_2 != 0) {\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          piVar3 = (int *)xmalloc(8);\n          piVar5 = (int *)*__ptr;\n          piVar3[1] = *(int *)(__ptr[1] + 0x18);\n          *piVar3 = (int)local_34;\n          local_34 = piVar3;\n        }" ({ "{") (expression_statement "piVar3 = (int *)xmalloc(8);" (assignment_expression "piVar3 = (int *)xmalloc(8)" (identifier "piVar3") (= "=") (cast_expression "(int *)xmalloc(8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(8)" (identifier "xmalloc") (argument_list "(8)" (( "(") (number_literal "8") () ")"))))) (; ";")) (expression_statement "piVar5 = (int *)*__ptr;" (assignment_expression "piVar5 = (int *)*__ptr" (identifier "piVar5") (= "=") (cast_expression "(int *)*__ptr" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*__ptr" (* "*") (identifier "__ptr")))) (; ";")) (expression_statement "piVar3[1] = *(int *)(__ptr[1] + 0x18);" (assignment_expression "piVar3[1] = *(int *)(__ptr[1] + 0x18)" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "*(int *)(__ptr[1] + 0x18)" (* "*") (cast_expression "(int *)(__ptr[1] + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(__ptr[1] + 0x18)" (( "(") (binary_expression "__ptr[1] + 0x18" (subscript_expression "__ptr[1]" (identifier "__ptr") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "*piVar3 = (int)local_34;" (assignment_expression "*piVar3 = (int)local_34" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (cast_expression "(int)local_34" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_34"))) (; ";")) (expression_statement "local_34 = piVar3;" (assignment_expression "local_34 = piVar3" (identifier "local_34") (= "=") (identifier "piVar3")) (; ";")) (} "}"))) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "__ptr = piVar5;" (assignment_expression "__ptr = piVar5" (identifier "__ptr") (= "=") (identifier "piVar5")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar5 != (int *)0x0)" (( "(") (binary_expression "piVar5 != (int *)0x0" (identifier "piVar5") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (if_statement "if (local_34 != (int *)0x0) {\n        puVar4 = (undefined4 *)xmalloc(0xc);\n        puVar4[1] = local_34;\n        puVar4[2] = 0;\n        *puVar4 = DAT_001c4574;\n        DAT_001c4574 = puVar4;\n        DAT_001c45e1 = DAT_001c45e1 | 1;\n      }" (if "if") (parenthesized_expression "(local_34 != (int *)0x0)" (( "(") (binary_expression "local_34 != (int *)0x0" (identifier "local_34") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        puVar4 = (undefined4 *)xmalloc(0xc);\n        puVar4[1] = local_34;\n        puVar4[2] = 0;\n        *puVar4 = DAT_001c4574;\n        DAT_001c4574 = puVar4;\n        DAT_001c45e1 = DAT_001c45e1 | 1;\n      }" ({ "{") (expression_statement "puVar4 = (undefined4 *)xmalloc(0xc);" (assignment_expression "puVar4 = (undefined4 *)xmalloc(0xc)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)xmalloc(0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0xc)" (identifier "xmalloc") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")"))))) (; ";")) (expression_statement "puVar4[1] = local_34;" (assignment_expression "puVar4[1] = local_34" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "local_34")) (; ";")) (expression_statement "puVar4[2] = 0;" (assignment_expression "puVar4[2] = 0" (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar4 = DAT_001c4574;" (assignment_expression "*puVar4 = DAT_001c4574" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "DAT_001c4574")) (; ";")) (expression_statement "DAT_001c4574 = puVar4;" (assignment_expression "DAT_001c4574 = puVar4" (identifier "DAT_001c4574") (= "=") (identifier "puVar4")) (; ";")) (expression_statement "DAT_001c45e1 = DAT_001c45e1 | 1;" (assignment_expression "DAT_001c45e1 = DAT_001c45e1 | 1" (identifier "DAT_001c45e1") (= "=") (binary_expression "DAT_001c45e1 | 1" (identifier "DAT_001c45e1") (| "|") (number_literal "1"))) (; ";")) (} "}"))) (} "}"))) (} "}"))) (expression_statement "DAT_001c3880 = 0;" (assignment_expression "DAT_001c3880 = 0" (identifier "DAT_001c3880") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_001c3874 = (int *)0x0;" (assignment_expression "DAT_001c3874 = (int *)0x0" (identifier "DAT_001c3874") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "DAT_001c3878 = 0;" (assignment_expression "DAT_001c3878 = 0" (identifier "DAT_001c3878") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_001c387c = 0;" (assignment_expression "DAT_001c387c = 0" (identifier "DAT_001c387c") (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *var_2,int var_9,type_2 *var_6,char *memspec,
                       type_3 *var_8,char *lma_memspec)

{
  type_4 *puVar1;
  type_5 *plVar2;
  type_1 *peVar3;
  type_6 *plVar4;
  type_7 *plVar5;
  type_8 *var_5;
  type_8 *var_7;
  type_6 *var_12;
  type_9 *region;
  type_9 *lma_region;
  type_10 uStack_14;
  
  uStack_14 = 0x2a1bb;
  var_1(&region,&lma_region,memspec,lma_memspec,(uint)(var_2 != (type_1 *)0x0),0);
  if (type_8 != (type_8 *)0x0) {
    puVar1 = &type_8->os->field_0x54;
    *puVar1 = *puVar1 | 0x10;
    peVar3 = var_3(0x2b,overlay_vma,overlay_max);
    plVar2 = type_8->os;
    peVar3 = var_4(".",peVar3,0);
    var_5 = type_8;
    plVar2->update_dot_tree = peVar3;
    if (var_5 != (type_8 *)0x0) {
      var_12 = (type_6 *)0x0;
      do {
        plVar2 = var_5->os;
        if ((var_6 != (type_2 *)0x0) && (plVar2->var_6 == (type_2 *)0x0)) {
          plVar2->var_6 = var_6;
        }
        var_7 = var_5->next;
        plVar2->region = region;
        plVar2->lma_region = lma_region;
        if (var_7 == (type_8 *)0x0) {
          plVar2->sectype = normal_section;
          plVar2->load_base = var_2;
        }
        if ((var_8 != (type_3 *)0x0) &&
           (plVar2->var_8 == (type_3 *)0x0)) {
          plVar2->var_8 = var_8;
        }
        if (var_9 != 0) {
          plVar4 = (type_6 *)var_10(8);
          var_7 = var_5->next;
          plVar4->name = var_5->os->name;
          plVar4->next = var_12;
          var_12 = plVar4;
        }
        var_11(var_5);
        var_5 = var_7;
      } while (var_7 != (type_8 *)0x0);
      if (var_12 != (type_6 *)0x0) {
        plVar5 = (type_7 *)var_10(0xc);
        plVar5->list = var_12;
        plVar5->onlyfirst = 0;
        plVar5->next = nocrossref_list;
        nocrossref_list = plVar5;
        link_info._1_1_ = link_info._1_1_ | 1;
      }
    }
  }
  overlay_vma = (type_1 *)0x0;
  type_8 = (type_8 *)0x0;
  overlay_max = (type_1 *)0x0;
  overlay_subalign = (type_1 *)0x0;
  return;
}


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

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

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

{
  int iVar1;
  undefined4 uVar2;
  int *piVar3;
  undefined4 *puVar4;
  int *__ptr;
  int *piVar5;
  int *local_34;
  undefined4 local_24;
  undefined4 local_20;
  
  FUN_00025510(param_6,param_1 != 0,0);
  if (DAT_001c3874 != (int *)0x0) {
    *(byte *)(DAT_001c3874[1] + 0x54) = *(byte *)(DAT_001c3874[1] + 0x54) | 0x10;
    uVar2 = FUN_00032b80(0x2b,DAT_001c3880,DAT_001c3878);
    iVar1 = DAT_001c3874[1];
    uVar2 = FUN_00032d50(".",uVar2,0);
    __ptr = DAT_001c3874;
    *(undefined4 *)(iVar1 + 0x34) = uVar2;
    if (__ptr != (int *)0x0) {
      local_34 = (int *)0x0;
      do {
        iVar1 = __ptr[1];
        if ((param_3 != 0) && (*(int *)(iVar1 + 0x28) == 0)) {
          *(int *)(iVar1 + 0x28) = param_3;
        }
        piVar5 = (int *)*__ptr;
        *(undefined4 *)(iVar1 + 0x20) = local_24;
        *(undefined4 *)(iVar1 + 0x24) = local_20;
        if (piVar5 == (int *)0x0) {
          *(undefined4 *)(iVar1 + 0x50) = 0;
          *(int *)(iVar1 + 0x30) = param_1;
        }
        if ((param_5 != 0) && (*(int *)(iVar1 + 0x38) == 0)) {
          *(int *)(iVar1 + 0x38) = param_5;
        }
        if (param_2 != 0) {
          piVar3 = (int *)xmalloc(8);
          piVar5 = (int *)*__ptr;
          piVar3[1] = *(int *)(__ptr[1] + 0x18);
          *piVar3 = (int)local_34;
          local_34 = piVar3;
        }
        free(__ptr);
        __ptr = piVar5;
      } while (piVar5 != (int *)0x0);
      if (local_34 != (int *)0x0) {
        puVar4 = (undefined4 *)xmalloc(0xc);
        puVar4[1] = local_34;
        puVar4[2] = 0;
        *puVar4 = DAT_001c4574;
        DAT_001c4574 = puVar4;
        DAT_001c45e1 = DAT_001c45e1 | 1;
      }
    }
  }
  DAT_001c3880 = 0;
  DAT_001c3874 = (int *)0x0;
  DAT_001c3878 = 0;
  DAT_001c387c = 0;
  return;
}

