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

bfd_boolean sort_def_symbol(bfd_link_hash_entry *hash_entry,void *info)

{
  bfd *pbVar1;
  bfd *pbVar2;
  undefined4 *puVar3;
  char *pcVar4;
  char *pcVar5;
  void *pvVar6;
  
  if ((byte)(hash_entry->field_0xc - 3) < 2) {
    pbVar1 = (hash_entry->u).undef.abfd;
    pbVar2 = (bfd *)pbVar1->build_id;
    if ((link_info.output_bfd != pbVar2) && (pbVar2 != (bfd *)0x0)) {
      pvVar6 = (void *)pbVar1->dynsymcount;
      if (pvVar6 == (void *)0x0) {
        pvVar6 = stat_alloc(0xc);
        ((hash_entry->u).def.section)->userdata = pvVar6;
        *(void **)((int)pvVar6 + 4) = pvVar6;
        *(undefined4 *)((int)pvVar6 + 8) = 0;
      }
      else if (*(int *)((int)pvVar6 + 4) == 0) {
        *(void **)((int)pvVar6 + 4) = pvVar6;
      }
      if ((uint)((int)map_obstack.chunk_limit - (int)map_obstack.next_free) < 8) {
        _obstack_newchunk(&map_obstack,8);
      }
      pcVar4 = map_obstack.object_base;
      if (map_obstack.next_free + 8 == map_obstack.object_base) {
        map_obstack._40_1_ = map_obstack._40_1_ | 2;
      }
      map_obstack.next_free =
           (char *)(~map_obstack.alignment_mask &
                   (uint)(map_obstack.next_free + 8 + map_obstack.alignment_mask));
      if ((uint)((int)map_obstack.chunk_limit - (int)map_obstack.chunk) <
          (uint)((int)map_obstack.next_free - (int)map_obstack.chunk)) {
        map_obstack.next_free = map_obstack.chunk_limit;
      }
      puVar3 = *(undefined4 **)((int)pvVar6 + 4);
      pcVar5 = map_obstack.next_free;
      *(bfd_link_hash_entry **)map_obstack.object_base = hash_entry;
      map_obstack.object_base = pcVar5;
      *puVar3 = pcVar4;
      *(char **)((int)pvVar6 + 4) = pcVar4 + 4;
      *(int *)((int)pvVar6 + 8) = *(int *)((int)pvVar6 + 8) + 1;
      return 1;
    }
  }
  return 1;
}



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

undefined4 FUN_000238c0(int param_1)

{
  int *piVar1;
  int *piVar2;
  uint uVar3;
  int iVar4;
  
  if ((byte)(*(char *)(param_1 + 0xc) - 3U) < 2) {
    iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0xac);
    if ((DAT_001c0e54 != iVar4) && (iVar4 != 0)) {
      iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80);
      if (iVar4 == 0) {
        iVar4 = FUN_00023800(0xc);
        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;
        *(int *)(iVar4 + 4) = iVar4;
        *(undefined4 *)(iVar4 + 8) = 0;
      }
      else if (*(int *)(iVar4 + 4) == 0) {
        *(int *)(iVar4 + 4) = iVar4;
      }
      if (DAT_001c0550 - DAT_001c054c < 8) {
        _obstack_newchunk(&DAT_001c0540,8);
      }
      piVar2 = DAT_001c0548;
      if ((int *)(DAT_001c054c + 8) == DAT_001c0548) {
        DAT_001c0568 = DAT_001c0568 | 2;
      }
      DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558;
      if (DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544) {
        DAT_001c054c = DAT_001c0550;
      }
      piVar1 = *(int **)(iVar4 + 4);
      uVar3 = DAT_001c054c;
      *DAT_001c0548 = param_1;
      DAT_001c0548 = (int *)uVar3;
      *piVar1 = (int)piVar2;
      *(int **)(iVar4 + 4) = piVar2 + 1;
      *(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1;
      return 1;
    }
  }
  return 1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00017bc0
ADD EBX,0x19b737
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
MOVZX EAX,byte ptr [ESI + 0xc]
SUB EAX,0x3
CMP AL,0x1
JBE 0x000238f0
ADD ESP,0x1c
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,dword ptr [ESI + 0x14]
LEA ECX,[EBX + 0x1e20]
MOV EAX,dword ptr [EDX + 0xac]
CMP dword ptr [ECX + 0x34],EAX
JZ 0x000238e1
TEST EAX,EAX
JZ 0x000238e1
MOV EDI,dword ptr [EDX + 0x80]
TEST EDI,EDI
JZ 0x000239f0
MOV EAX,dword ptr [EDI + 0x4]
TEST EAX,EAX
JZ 0x00023a20
MOV EAX,dword ptr [EBX + 0x1550]
MOV EBP,dword ptr [EBX + 0x154c]
MOV dword ptr [ESP + 0x8],EAX
SUB EAX,EBP
CMP EAX,0x7
JBE 0x000239b0
MOV EAX,dword ptr [EBX + 0x1548]
ADD EBP,0x8
MOV dword ptr [EBX + 0x154c],EBP
CMP EBP,EAX
JZ 0x000239e0
MOV EDX,dword ptr [EBX + 0x1558]
ADD EBP,EDX
NOT EDX
AND EDX,EBP
MOV EBP,dword ptr [EBX + 0x1544]
MOV ECX,EDX
MOV dword ptr [EBX + 0x154c],EDX
SUB ECX,EBP
MOV dword ptr [ESP + 0xc],ECX
MOV ECX,dword ptr [ESP + 0x8]
SUB ECX,EBP
CMP dword ptr [ESP + 0xc],ECX
JBE 0x00023987
MOV ECX,dword ptr [ESP + 0x8]
MOV dword ptr [EBX + 0x154c],ECX
MOV EDX,ECX
MOV dword ptr [EBX + 0x1548],EDX
MOV EDX,dword ptr [EDI + 0x4]
MOV dword ptr [EAX],ESI
MOV dword ptr [EDX],EAX
ADD EAX,0x4
MOV dword ptr [EDI + 0x4],EAX
MOV EAX,0x1
ADD dword ptr [EDI + 0x8],0x1
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
LEA EAX,[EBX + 0x1540]
PUSH 0x8
PUSH EAX
CALL 0x00016350
MOV EAX,dword ptr [EBX + 0x1550]
MOV EBP,dword ptr [EBX + 0x154c]
MOV dword ptr [ESP + 0x18],EAX
ADD ESP,0x10
JMP 0x00023938
OR byte ptr [EBX + 0x1568],0x2
JMP 0x0002394f
SUB ESP,0xc
PUSH 0xc
CALL 0x00023800
ADD ESP,0x10
MOV EDI,EAX
MOV EAX,dword ptr [ESI + 0x14]
MOV dword ptr [EAX + 0x80],EDI
MOV dword ptr [EDI + 0x4],EDI
MOV dword ptr [EDI + 0x8],0x0
JMP 0x00023921
MOV dword ptr [EDI + 0x4],EDI
JMP 0x00023921
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_000238c0(int param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  \n  if ((byte)(*(char *)(param_1 + 0xc) - 3U) < 2) {\n    iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0xac);\n    if ((DAT_001c0e54 != iVar4) && (iVar4 != 0)) {\n      iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80);\n      if (iVar4 == 0) {\n        iVar4 = FUN_00023800(0xc);\n        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;\n        *(int *)(iVar4 + 4) = iVar4;\n        *(undefined4 *)(iVar4 + 8) = 0;\n      }\n      else if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }\n      if (DAT_001c0550 - DAT_001c054c < 8) {\n        _obstack_newchunk(&DAT_001c0540,8);\n      }\n      piVar2 = DAT_001c0548;\n      if ((int *)(DAT_001c054c + 8) == DAT_001c0548) {\n        DAT_001c0568 = DAT_001c0568 | 2;\n      }\n      DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558;\n      if (DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544) {\n        DAT_001c054c = DAT_001c0550;\n      }\n      piVar1 = *(int **)(iVar4 + 4);\n      uVar3 = DAT_001c054c;\n      *DAT_001c0548 = param_1;\n      DAT_001c0548 = (int *)uVar3;\n      *piVar1 = (int)piVar2;\n      *(int **)(iVar4 + 4) = piVar2 + 1;\n      *(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1;\n      return 1;\n    }\n  }\n  return 1;\n}\n\n" comment (function_definition "undefined4 FUN_000238c0(int param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  \n  if ((byte)(*(char *)(param_1 + 0xc) - 3U) < 2) {\n    iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0xac);\n    if ((DAT_001c0e54 != iVar4) && (iVar4 != 0)) {\n      iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80);\n      if (iVar4 == 0) {\n        iVar4 = FUN_00023800(0xc);\n        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;\n        *(int *)(iVar4 + 4) = iVar4;\n        *(undefined4 *)(iVar4 + 8) = 0;\n      }\n      else if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }\n      if (DAT_001c0550 - DAT_001c054c < 8) {\n        _obstack_newchunk(&DAT_001c0540,8);\n      }\n      piVar2 = DAT_001c0548;\n      if ((int *)(DAT_001c054c + 8) == DAT_001c0548) {\n        DAT_001c0568 = DAT_001c0568 | 2;\n      }\n      DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558;\n      if (DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544) {\n        DAT_001c054c = DAT_001c0550;\n      }\n      piVar1 = *(int **)(iVar4 + 4);\n      uVar3 = DAT_001c054c;\n      *DAT_001c0548 = param_1;\n      DAT_001c0548 = (int *)uVar3;\n      *piVar1 = (int)piVar2;\n      *(int **)(iVar4 + 4) = piVar2 + 1;\n      *(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1;\n      return 1;\n    }\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_000238c0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  \n  if ((byte)(*(char *)(param_1 + 0xc) - 3U) < 2) {\n    iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0xac);\n    if ((DAT_001c0e54 != iVar4) && (iVar4 != 0)) {\n      iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80);\n      if (iVar4 == 0) {\n        iVar4 = FUN_00023800(0xc);\n        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;\n        *(int *)(iVar4 + 4) = iVar4;\n        *(undefined4 *)(iVar4 + 8) = 0;\n      }\n      else if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }\n      if (DAT_001c0550 - DAT_001c054c < 8) {\n        _obstack_newchunk(&DAT_001c0540,8);\n      }\n      piVar2 = DAT_001c0548;\n      if ((int *)(DAT_001c054c + 8) == DAT_001c0548) {\n        DAT_001c0568 = DAT_001c0568 | 2;\n      }\n      DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558;\n      if (DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544) {\n        DAT_001c054c = DAT_001c0550;\n      }\n      piVar1 = *(int **)(iVar4 + 4);\n      uVar3 = DAT_001c054c;\n      *DAT_001c0548 = param_1;\n      DAT_001c0548 = (int *)uVar3;\n      *piVar1 = (int)piVar2;\n      *(int **)(iVar4 + 4) = piVar2 + 1;\n      *(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1;\n      return 1;\n    }\n  }\n  return 1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if ((byte)(*(char *)(param_1 + 0xc) - 3U) < 2) {\n    iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0xac);\n    if ((DAT_001c0e54 != iVar4) && (iVar4 != 0)) {\n      iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80);\n      if (iVar4 == 0) {\n        iVar4 = FUN_00023800(0xc);\n        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;\n        *(int *)(iVar4 + 4) = iVar4;\n        *(undefined4 *)(iVar4 + 8) = 0;\n      }\n      else if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }\n      if (DAT_001c0550 - DAT_001c054c < 8) {\n        _obstack_newchunk(&DAT_001c0540,8);\n      }\n      piVar2 = DAT_001c0548;\n      if ((int *)(DAT_001c054c + 8) == DAT_001c0548) {\n        DAT_001c0568 = DAT_001c0568 | 2;\n      }\n      DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558;\n      if (DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544) {\n        DAT_001c054c = DAT_001c0550;\n      }\n      piVar1 = *(int **)(iVar4 + 4);\n      uVar3 = DAT_001c054c;\n      *DAT_001c0548 = param_1;\n      DAT_001c0548 = (int *)uVar3;\n      *piVar1 = (int)piVar2;\n      *(int **)(iVar4 + 4) = piVar2 + 1;\n      *(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1;\n      return 1;\n    }\n  }" if (parenthesized_expression "((byte)(*(char *)(param_1 + 0xc) - 3U) < 2)" ( (binary_expression "(byte)(*(char *)(param_1 + 0xc) - 3U) < 2" (call_expression "(byte)(*(char *)(param_1 + 0xc) - 3U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(*(char *)(param_1 + 0xc) - 3U)" ( (binary_expression "*(char *)(param_1 + 0xc) - 3U" (pointer_expression "*(char *)(param_1 + 0xc)" * (cast_expression "(char *)(param_1 + 0xc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) - number_literal) ))) < number_literal) )) (compound_statement "{\n    iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0xac);\n    if ((DAT_001c0e54 != iVar4) && (iVar4 != 0)) {\n      iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80);\n      if (iVar4 == 0) {\n        iVar4 = FUN_00023800(0xc);\n        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;\n        *(int *)(iVar4 + 4) = iVar4;\n        *(undefined4 *)(iVar4 + 8) = 0;\n      }\n      else if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }\n      if (DAT_001c0550 - DAT_001c054c < 8) {\n        _obstack_newchunk(&DAT_001c0540,8);\n      }\n      piVar2 = DAT_001c0548;\n      if ((int *)(DAT_001c054c + 8) == DAT_001c0548) {\n        DAT_001c0568 = DAT_001c0568 | 2;\n      }\n      DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558;\n      if (DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544) {\n        DAT_001c054c = DAT_001c0550;\n      }\n      piVar1 = *(int **)(iVar4 + 4);\n      uVar3 = DAT_001c054c;\n      *DAT_001c0548 = param_1;\n      DAT_001c0548 = (int *)uVar3;\n      *piVar1 = (int)piVar2;\n      *(int **)(iVar4 + 4) = piVar2 + 1;\n      *(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1;\n      return 1;\n    }\n  }" { (expression_statement "iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0xac);" (assignment_expression "iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0xac)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x14) + 0xac)" * (cast_expression "(int *)(*(int *)(param_1 + 0x14) + 0xac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x14) + 0xac)" ( (binary_expression "*(int *)(param_1 + 0x14) + 0xac" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if ((DAT_001c0e54 != iVar4) && (iVar4 != 0)) {\n      iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80);\n      if (iVar4 == 0) {\n        iVar4 = FUN_00023800(0xc);\n        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;\n        *(int *)(iVar4 + 4) = iVar4;\n        *(undefined4 *)(iVar4 + 8) = 0;\n      }\n      else if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }\n      if (DAT_001c0550 - DAT_001c054c < 8) {\n        _obstack_newchunk(&DAT_001c0540,8);\n      }\n      piVar2 = DAT_001c0548;\n      if ((int *)(DAT_001c054c + 8) == DAT_001c0548) {\n        DAT_001c0568 = DAT_001c0568 | 2;\n      }\n      DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558;\n      if (DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544) {\n        DAT_001c054c = DAT_001c0550;\n      }\n      piVar1 = *(int **)(iVar4 + 4);\n      uVar3 = DAT_001c054c;\n      *DAT_001c0548 = param_1;\n      DAT_001c0548 = (int *)uVar3;\n      *piVar1 = (int)piVar2;\n      *(int **)(iVar4 + 4) = piVar2 + 1;\n      *(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1;\n      return 1;\n    }" if (parenthesized_expression "((DAT_001c0e54 != iVar4) && (iVar4 != 0))" ( (binary_expression "(DAT_001c0e54 != iVar4) && (iVar4 != 0)" (parenthesized_expression "(DAT_001c0e54 != iVar4)" ( (binary_expression "DAT_001c0e54 != iVar4" identifier != identifier) )) && (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) ))) )) (compound_statement "{\n      iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80);\n      if (iVar4 == 0) {\n        iVar4 = FUN_00023800(0xc);\n        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;\n        *(int *)(iVar4 + 4) = iVar4;\n        *(undefined4 *)(iVar4 + 8) = 0;\n      }\n      else if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }\n      if (DAT_001c0550 - DAT_001c054c < 8) {\n        _obstack_newchunk(&DAT_001c0540,8);\n      }\n      piVar2 = DAT_001c0548;\n      if ((int *)(DAT_001c054c + 8) == DAT_001c0548) {\n        DAT_001c0568 = DAT_001c0568 | 2;\n      }\n      DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558;\n      if (DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544) {\n        DAT_001c054c = DAT_001c0550;\n      }\n      piVar1 = *(int **)(iVar4 + 4);\n      uVar3 = DAT_001c054c;\n      *DAT_001c0548 = param_1;\n      DAT_001c0548 = (int *)uVar3;\n      *piVar1 = (int)piVar2;\n      *(int **)(iVar4 + 4) = piVar2 + 1;\n      *(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1;\n      return 1;\n    }" { (expression_statement "iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80);" (assignment_expression "iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x14) + 0x80)" * (cast_expression "(int *)(*(int *)(param_1 + 0x14) + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x14) + 0x80)" ( (binary_expression "*(int *)(param_1 + 0x14) + 0x80" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (iVar4 == 0) {\n        iVar4 = FUN_00023800(0xc);\n        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;\n        *(int *)(iVar4 + 4) = iVar4;\n        *(undefined4 *)(iVar4 + 8) = 0;\n      }\n      else if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar4 = FUN_00023800(0xc);\n        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;\n        *(int *)(iVar4 + 4) = iVar4;\n        *(undefined4 *)(iVar4 + 8) = 0;\n      }" { (expression_statement "iVar4 = FUN_00023800(0xc);" (assignment_expression "iVar4 = FUN_00023800(0xc)" identifier = (call_expression "FUN_00023800(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "*(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;" (assignment_expression "*(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4" (pointer_expression "*(int *)(*(int *)(param_1 + 0x14) + 0x80)" * (cast_expression "(int *)(*(int *)(param_1 + 0x14) + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x14) + 0x80)" ( (binary_expression "*(int *)(param_1 + 0x14) + 0x80" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar4 + 4) = iVar4;" (assignment_expression "*(int *)(iVar4 + 4) = iVar4" (pointer_expression "*(int *)(iVar4 + 4)" * (cast_expression "(int *)(iVar4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar4 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 8)" * (cast_expression "(undefined4 *)(iVar4 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }" else (if_statement "if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }" if (parenthesized_expression "(*(int *)(iVar4 + 4) == 0)" ( (binary_expression "*(int *)(iVar4 + 4) == 0" (pointer_expression "*(int *)(iVar4 + 4)" * (cast_expression "(int *)(iVar4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        *(int *)(iVar4 + 4) = iVar4;\n      }" { (expression_statement "*(int *)(iVar4 + 4) = iVar4;" (assignment_expression "*(int *)(iVar4 + 4) = iVar4" (pointer_expression "*(int *)(iVar4 + 4)" * (cast_expression "(int *)(iVar4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) = identifier) ;) })))) (if_statement "if (DAT_001c0550 - DAT_001c054c < 8) {\n        _obstack_newchunk(&DAT_001c0540,8);\n      }" if (parenthesized_expression "(DAT_001c0550 - DAT_001c054c < 8)" ( (binary_expression "DAT_001c0550 - DAT_001c054c < 8" (binary_expression "DAT_001c0550 - DAT_001c054c" identifier - identifier) < number_literal) )) (compound_statement "{\n        _obstack_newchunk(&DAT_001c0540,8);\n      }" { (expression_statement "_obstack_newchunk(&DAT_001c0540,8);" (call_expression "_obstack_newchunk(&DAT_001c0540,8)" identifier (argument_list "(&DAT_001c0540,8)" ( (pointer_expression "&DAT_001c0540" & identifier) , number_literal ))) ;) })) (expression_statement "piVar2 = DAT_001c0548;" (assignment_expression "piVar2 = DAT_001c0548" identifier = identifier) ;) (if_statement "if ((int *)(DAT_001c054c + 8) == DAT_001c0548) {\n        DAT_001c0568 = DAT_001c0568 | 2;\n      }" if (parenthesized_expression "((int *)(DAT_001c054c + 8) == DAT_001c0548)" ( (binary_expression "(int *)(DAT_001c054c + 8) == DAT_001c0548" (cast_expression "(int *)(DAT_001c054c + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c054c + 8)" ( (binary_expression "DAT_001c054c + 8" identifier + number_literal) ))) == identifier) )) (compound_statement "{\n        DAT_001c0568 = DAT_001c0568 | 2;\n      }" { (expression_statement "DAT_001c0568 = DAT_001c0568 | 2;" (assignment_expression "DAT_001c0568 = DAT_001c0568 | 2" identifier = (binary_expression "DAT_001c0568 | 2" identifier | number_literal)) ;) })) (expression_statement "DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558;" (assignment_expression "DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558" identifier = (binary_expression "~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558" (unary_expression "~DAT_001c0558" ~ identifier) & (binary_expression "(int)(DAT_001c054c + 8) + DAT_001c0558" (cast_expression "(int)(DAT_001c054c + 8)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(DAT_001c054c + 8)" ( (binary_expression "DAT_001c054c + 8" identifier + number_literal) ))) + identifier))) ;) (if_statement "if (DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544) {\n        DAT_001c054c = DAT_001c0550;\n      }" if (parenthesized_expression "(DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544)" ( (binary_expression "DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544" (binary_expression "DAT_001c0550 - DAT_001c0544" identifier - identifier) < (binary_expression "DAT_001c054c - DAT_001c0544" identifier - identifier)) )) (compound_statement "{\n        DAT_001c054c = DAT_001c0550;\n      }" { (expression_statement "DAT_001c054c = DAT_001c0550;" (assignment_expression "DAT_001c054c = DAT_001c0550" identifier = identifier) ;) })) (expression_statement "piVar1 = *(int **)(iVar4 + 4);" (assignment_expression "piVar1 = *(int **)(iVar4 + 4)" identifier = (pointer_expression "*(int **)(iVar4 + 4)" * (cast_expression "(int **)(iVar4 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = DAT_001c054c;" (assignment_expression "uVar3 = DAT_001c054c" identifier = identifier) ;) (expression_statement "*DAT_001c0548 = param_1;" (assignment_expression "*DAT_001c0548 = param_1" (pointer_expression "*DAT_001c0548" * identifier) = identifier) ;) (expression_statement "DAT_001c0548 = (int *)uVar3;" (assignment_expression "DAT_001c0548 = (int *)uVar3" identifier = (cast_expression "(int *)uVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "*piVar1 = (int)piVar2;" (assignment_expression "*piVar1 = (int)piVar2" (pointer_expression "*piVar1" * identifier) = (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(int **)(iVar4 + 4) = piVar2 + 1;" (assignment_expression "*(int **)(iVar4 + 4) = piVar2 + 1" (pointer_expression "*(int **)(iVar4 + 4)" * (cast_expression "(int **)(iVar4 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1;" (assignment_expression "*(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1" (pointer_expression "*(int *)(iVar4 + 8)" * (cast_expression "(int *)(iVar4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar4 + 8) + 1" (pointer_expression "*(int *)(iVar4 + 8)" * (cast_expression "(int *)(iVar4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) + number_literal)) ;) (return_statement "return 1;" return number_literal ;) })) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nbfd_boolean sort_def_symbol(bfd_link_hash_entry *hash_entry,void *info)\n\n{\n  bfd *pbVar1;\n  bfd *pbVar2;\n  undefined4 *puVar3;\n  char *pcVar4;\n  char *pcVar5;\n  void *pvVar6;\n  \n  if ((byte)(hash_entry->field_0xc - 3) < 2) {\n    pbVar1 = (hash_entry->u).undef.abfd;\n    pbVar2 = (bfd *)pbVar1->build_id;\n    if ((link_info.output_bfd != pbVar2) && (pbVar2 != (bfd *)0x0)) {\n      pvVar6 = (void *)pbVar1->dynsymcount;\n      if (pvVar6 == (void *)0x0) {\n        pvVar6 = stat_alloc(0xc);\n        ((hash_entry->u).def.section)->userdata = pvVar6;\n        *(void **)((int)pvVar6 + 4) = pvVar6;\n        *(undefined4 *)((int)pvVar6 + 8) = 0;\n      }\n      else if (*(int *)((int)pvVar6 + 4) == 0) {\n        *(void **)((int)pvVar6 + 4) = pvVar6;\n      }\n      if ((uint)((int)map_obstack.chunk_limit - (int)map_obstack.next_free) < 8) {\n        _obstack_newchunk(&map_obstack,8);\n      }\n      pcVar4 = map_obstack.object_base;\n      if (map_obstack.next_free + 8 == map_obstack.object_base) {\n        map_obstack._40_1_ = map_obstack._40_1_ | 2;\n      }\n      map_obstack.next_free =\n           (char *)(~map_obstack.alignment_mask &\n                   (uint)(map_obstack.next_free + 8 + map_obstack.alignment_mask));\n      if ((uint)((int)map_obstack.chunk_limit - (int)map_obstack.chunk) <\n          (uint)((int)map_obstack.next_free - (int)map_obstack.chunk)) {\n        map_obstack.next_free = map_obstack.chunk_limit;\n      }\n      puVar3 = *(undefined4 **)((int)pvVar6 + 4);\n      pcVar5 = map_obstack.next_free;\n      *(bfd_link_hash_entry **)map_obstack.object_base = hash_entry;\n      map_obstack.object_base = pcVar5;\n      *puVar3 = pcVar4;\n      *(char **)((int)pvVar6 + 4) = pcVar4 + 4;\n      *(int *)((int)pvVar6 + 8) = *(int *)((int)pvVar6 + 8) + 1;\n      return 1;\n    }\n  }\n  return 1;\n}\n\n" comment comment (function_definition "bfd_boolean sort_def_symbol(bfd_link_hash_entry *hash_entry,void *info)\n\n{\n  bfd *pbVar1;\n  bfd *pbVar2;\n  undefined4 *puVar3;\n  char *pcVar4;\n  char *pcVar5;\n  void *pvVar6;\n  \n  if ((byte)(hash_entry->field_0xc - 3) < 2) {\n    pbVar1 = (hash_entry->u).undef.abfd;\n    pbVar2 = (bfd *)pbVar1->build_id;\n    if ((link_info.output_bfd != pbVar2) && (pbVar2 != (bfd *)0x0)) {\n      pvVar6 = (void *)pbVar1->dynsymcount;\n      if (pvVar6 == (void *)0x0) {\n        pvVar6 = stat_alloc(0xc);\n        ((hash_entry->u).def.section)->userdata = pvVar6;\n        *(void **)((int)pvVar6 + 4) = pvVar6;\n        *(undefined4 *)((int)pvVar6 + 8) = 0;\n      }\n      else if (*(int *)((int)pvVar6 + 4) == 0) {\n        *(void **)((int)pvVar6 + 4) = pvVar6;\n      }\n      if ((uint)((int)map_obstack.chunk_limit - (int)map_obstack.next_free) < 8) {\n        _obstack_newchunk(&map_obstack,8);\n      }\n      pcVar4 = map_obstack.object_base;\n      if (map_obstack.next_free + 8 == map_obstack.object_base) {\n        map_obstack._40_1_ = map_obstack._40_1_ | 2;\n      }\n      map_obstack.next_free =\n           (char *)(~map_obstack.alignment_mask &\n                   (uint)(map_obstack.next_free + 8 + map_obstack.alignment_mask));\n      if ((uint)((int)map_obstack.chunk_limit - (int)map_obstack.chunk) <\n          (uint)((int)map_obstack.next_free - (int)map_obstack.chunk)) {\n        map_obstack.next_free = map_obstack.chunk_limit;\n      }\n      puVar3 = *(undefined4 **)((int)pvVar6 + 4);\n      pcVar5 = map_obstack.next_free;\n      *(bfd_link_hash_entry **)map_obstack.object_base = hash_entry;\n      map_obstack.object_base = pcVar5;\n      *puVar3 = pcVar4;\n      *(char **)((int)pvVar6 + 4) = pcVar4 + 4;\n      *(int *)((int)pvVar6 + 8) = *(int *)((int)pvVar6 + 8) + 1;\n      return 1;\n    }\n  }\n  return 1;\n}" type_identifier (function_declarator "sort_def_symbol(bfd_link_hash_entry *hash_entry,void *info)" identifier (parameter_list "(bfd_link_hash_entry *hash_entry,void *info)" ( (parameter_declaration "bfd_link_hash_entry *hash_entry" type_identifier (pointer_declarator "*hash_entry" * identifier)) , (parameter_declaration "void *info" primitive_type (pointer_declarator "*info" * identifier)) ))) (compound_statement "{\n  bfd *pbVar1;\n  bfd *pbVar2;\n  undefined4 *puVar3;\n  char *pcVar4;\n  char *pcVar5;\n  void *pvVar6;\n  \n  if ((byte)(hash_entry->field_0xc - 3) < 2) {\n    pbVar1 = (hash_entry->u).undef.abfd;\n    pbVar2 = (bfd *)pbVar1->build_id;\n    if ((link_info.output_bfd != pbVar2) && (pbVar2 != (bfd *)0x0)) {\n      pvVar6 = (void *)pbVar1->dynsymcount;\n      if (pvVar6 == (void *)0x0) {\n        pvVar6 = stat_alloc(0xc);\n        ((hash_entry->u).def.section)->userdata = pvVar6;\n        *(void **)((int)pvVar6 + 4) = pvVar6;\n        *(undefined4 *)((int)pvVar6 + 8) = 0;\n      }\n      else if (*(int *)((int)pvVar6 + 4) == 0) {\n        *(void **)((int)pvVar6 + 4) = pvVar6;\n      }\n      if ((uint)((int)map_obstack.chunk_limit - (int)map_obstack.next_free) < 8) {\n        _obstack_newchunk(&map_obstack,8);\n      }\n      pcVar4 = map_obstack.object_base;\n      if (map_obstack.next_free + 8 == map_obstack.object_base) {\n        map_obstack._40_1_ = map_obstack._40_1_ | 2;\n      }\n      map_obstack.next_free =\n           (char *)(~map_obstack.alignment_mask &\n                   (uint)(map_obstack.next_free + 8 + map_obstack.alignment_mask));\n      if ((uint)((int)map_obstack.chunk_limit - (int)map_obstack.chunk) <\n          (uint)((int)map_obstack.next_free - (int)map_obstack.chunk)) {\n        map_obstack.next_free = map_obstack.chunk_limit;\n      }\n      puVar3 = *(undefined4 **)((int)pvVar6 + 4);\n      pcVar5 = map_obstack.next_free;\n      *(bfd_link_hash_entry **)map_obstack.object_base = hash_entry;\n      map_obstack.object_base = pcVar5;\n      *puVar3 = pcVar4;\n      *(char **)((int)pvVar6 + 4) = pcVar4 + 4;\n      *(int *)((int)pvVar6 + 8) = *(int *)((int)pvVar6 + 8) + 1;\n      return 1;\n    }\n  }\n  return 1;\n}" { (declaration "bfd *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "bfd *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "void *pvVar6;" primitive_type (pointer_declarator "*pvVar6" * identifier) ;) (if_statement "if ((byte)(hash_entry->field_0xc - 3) < 2) {\n    pbVar1 = (hash_entry->u).undef.abfd;\n    pbVar2 = (bfd *)pbVar1->build_id;\n    if ((link_info.output_bfd != pbVar2) && (pbVar2 != (bfd *)0x0)) {\n      pvVar6 = (void *)pbVar1->dynsymcount;\n      if (pvVar6 == (void *)0x0) {\n        pvVar6 = stat_alloc(0xc);\n        ((hash_entry->u).def.section)->userdata = pvVar6;\n        *(void **)((int)pvVar6 + 4) = pvVar6;\n        *(undefined4 *)((int)pvVar6 + 8) = 0;\n      }\n      else if (*(int *)((int)pvVar6 + 4) == 0) {\n        *(void **)((int)pvVar6 + 4) = pvVar6;\n      }\n      if ((uint)((int)map_obstack.chunk_limit - (int)map_obstack.next_free) < 8) {\n        _obstack_newchunk(&map_obstack,8);\n      }\n      pcVar4 = map_obstack.object_base;\n      if (map_obstack.next_free + 8 == map_obstack.object_base) {\n        map_obstack._40_1_ = map_obstack._40_1_ | 2;\n      }\n      map_obstack.next_free =\n           (char *)(~map_obstack.alignment_mask &\n                   (uint)(map_obstack.next_free + 8 + map_obstack.alignment_mask));\n      if ((uint)((int)map_obstack.chunk_limit - (int)map_obstack.chunk) <\n          (uint)((int)map_obstack.next_free - (int)map_obstack.chunk)) {\n        map_obstack.next_free = map_obstack.chunk_limit;\n      }\n      puVar3 = *(undefined4 **)((int)pvVar6 + 4);\n      pcVar5 = map_obstack.next_free;\n      *(bfd_link_hash_entry **)map_obstack.object_base = hash_entry;\n      map_obstack.object_base = pcVar5;\n      *puVar3 = pcVar4;\n      *(char **)((int)pvVar6 + 4) = pcVar4 + 4;\n      *(int *)((int)pvVar6 + 8) = *(int *)((int)pvVar6 + 8) + 1;\n      return 1;\n    }\n  }" if (parenthesized_expression "((byte)(hash_entry->field_0xc - 3) < 2)" ( (binary_expression "(byte)(hash_entry->field_0xc - 3) < 2" (call_expression "(byte)(hash_entry->field_0xc - 3)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(hash_entry->field_0xc - 3)" ( (binary_expression "hash_entry->field_0xc - 3" (field_expression "hash_entry->field_0xc" identifier -> field_identifier) - number_literal) ))) < number_literal) )) (compound_statement "{\n    pbVar1 = (hash_entry->u).undef.abfd;\n    pbVar2 = (bfd *)pbVar1->build_id;\n    if ((link_info.output_bfd != pbVar2) && (pbVar2 != (bfd *)0x0)) {\n      pvVar6 = (void *)pbVar1->dynsymcount;\n      if (pvVar6 == (void *)0x0) {\n        pvVar6 = stat_alloc(0xc);\n        ((hash_entry->u).def.section)->userdata = pvVar6;\n        *(void **)((int)pvVar6 + 4) = pvVar6;\n        *(undefined4 *)((int)pvVar6 + 8) = 0;\n      }\n      else if (*(int *)((int)pvVar6 + 4) == 0) {\n        *(void **)((int)pvVar6 + 4) = pvVar6;\n      }\n      if ((uint)((int)map_obstack.chunk_limit - (int)map_obstack.next_free) < 8) {\n        _obstack_newchunk(&map_obstack,8);\n      }\n      pcVar4 = map_obstack.object_base;\n      if (map_obstack.next_free + 8 == map_obstack.object_base) {\n        map_obstack._40_1_ = map_obstack._40_1_ | 2;\n      }\n      map_obstack.next_free =\n           (char *)(~map_obstack.alignment_mask &\n                   (uint)(map_obstack.next_free + 8 + map_obstack.alignment_mask));\n      if ((uint)((int)map_obstack.chunk_limit - (int)map_obstack.chunk) <\n          (uint)((int)map_obstack.next_free - (int)map_obstack.chunk)) {\n        map_obstack.next_free = map_obstack.chunk_limit;\n      }\n      puVar3 = *(undefined4 **)((int)pvVar6 + 4);\n      pcVar5 = map_obstack.next_free;\n      *(bfd_link_hash_entry **)map_obstack.object_base = hash_entry;\n      map_obstack.object_base = pcVar5;\n      *puVar3 = pcVar4;\n      *(char **)((int)pvVar6 + 4) = pcVar4 + 4;\n      *(int *)((int)pvVar6 + 8) = *(int *)((int)pvVar6 + 8) + 1;\n      return 1;\n    }\n  }" { (expression_statement "pbVar1 = (hash_entry->u).undef.abfd;" (assignment_expression "pbVar1 = (hash_entry->u).undef.abfd" identifier = (field_expression "(hash_entry->u).undef.abfd" (field_expression "(hash_entry->u).undef" (parenthesized_expression "(hash_entry->u)" ( (field_expression "hash_entry->u" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "pbVar2 = (bfd *)pbVar1->build_id;" (assignment_expression "pbVar2 = (bfd *)pbVar1->build_id" identifier = (cast_expression "(bfd *)pbVar1->build_id" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pbVar1->build_id" identifier -> field_identifier))) ;) (if_statement "if ((link_info.output_bfd != pbVar2) && (pbVar2 != (bfd *)0x0)) {\n      pvVar6 = (void *)pbVar1->dynsymcount;\n      if (pvVar6 == (void *)0x0) {\n        pvVar6 = stat_alloc(0xc);\n        ((hash_entry->u).def.section)->userdata = pvVar6;\n        *(void **)((int)pvVar6 + 4) = pvVar6;\n        *(undefined4 *)((int)pvVar6 + 8) = 0;\n      }\n      else if (*(int *)((int)pvVar6 + 4) == 0) {\n        *(void **)((int)pvVar6 + 4) = pvVar6;\n      }\n      if ((uint)((int)map_obstack.chunk_limit - (int)map_obstack.next_free) < 8) {\n        _obstack_newchunk(&map_obstack,8);\n      }\n      pcVar4 = map_obstack.object_base;\n      if (map_obstack.next_free + 8 == map_obstack.object_base) {\n        map_obstack._40_1_ = map_obstack._40_1_ | 2;\n      }\n      map_obstack.next_free =\n           (char *)(~map_obstack.alignment_mask &\n                   (uint)(map_obstack.next_free + 8 + map_obstack.alignment_mask));\n      if ((uint)((int)map_obstack.chunk_limit - (int)map_obstack.chunk) <\n          (uint)((int)map_obstack.next_free - (int)map_obstack.chunk)) {\n        map_obstack.next_free = map_obstack.chunk_limit;\n      }\n      puVar3 = *(undefined4 **)((int)pvVar6 + 4);\n      pcVar5 = map_obstack.next_free;\n      *(bfd_link_hash_entry **)map_obstack.object_base = hash_entry;\n      map_obstack.object_base = pcVar5;\n      *puVar3 = pcVar4;\n      *(char **)((int)pvVar6 + 4) = pcVar4 + 4;\n      *(int *)((int)pvVar6 + 8) = *(int *)((int)pvVar6 + 8) + 1;\n      return 1;\n    }" if (parenthesized_expression "((link_info.output_bfd != pbVar2) && (pbVar2 != (bfd *)0x0))" ( (binary_expression "(link_info.output_bfd != pbVar2) && (pbVar2 != (bfd *)0x0)" (parenthesized_expression "(link_info.output_bfd != pbVar2)" ( (binary_expression "link_info.output_bfd != pbVar2" (field_expression "link_info.output_bfd" identifier . field_identifier) != identifier) )) && (parenthesized_expression "(pbVar2 != (bfd *)0x0)" ( (binary_expression "pbVar2 != (bfd *)0x0" identifier != (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      pvVar6 = (void *)pbVar1->dynsymcount;\n      if (pvVar6 == (void *)0x0) {\n        pvVar6 = stat_alloc(0xc);\n        ((hash_entry->u).def.section)->userdata = pvVar6;\n        *(void **)((int)pvVar6 + 4) = pvVar6;\n        *(undefined4 *)((int)pvVar6 + 8) = 0;\n      }\n      else if (*(int *)((int)pvVar6 + 4) == 0) {\n        *(void **)((int)pvVar6 + 4) = pvVar6;\n      }\n      if ((uint)((int)map_obstack.chunk_limit - (int)map_obstack.next_free) < 8) {\n        _obstack_newchunk(&map_obstack,8);\n      }\n      pcVar4 = map_obstack.object_base;\n      if (map_obstack.next_free + 8 == map_obstack.object_base) {\n        map_obstack._40_1_ = map_obstack._40_1_ | 2;\n      }\n      map_obstack.next_free =\n           (char *)(~map_obstack.alignment_mask &\n                   (uint)(map_obstack.next_free + 8 + map_obstack.alignment_mask));\n      if ((uint)((int)map_obstack.chunk_limit - (int)map_obstack.chunk) <\n          (uint)((int)map_obstack.next_free - (int)map_obstack.chunk)) {\n        map_obstack.next_free = map_obstack.chunk_limit;\n      }\n      puVar3 = *(undefined4 **)((int)pvVar6 + 4);\n      pcVar5 = map_obstack.next_free;\n      *(bfd_link_hash_entry **)map_obstack.object_base = hash_entry;\n      map_obstack.object_base = pcVar5;\n      *puVar3 = pcVar4;\n      *(char **)((int)pvVar6 + 4) = pcVar4 + 4;\n      *(int *)((int)pvVar6 + 8) = *(int *)((int)pvVar6 + 8) + 1;\n      return 1;\n    }" { (expression_statement "pvVar6 = (void *)pbVar1->dynsymcount;" (assignment_expression "pvVar6 = (void *)pbVar1->dynsymcount" identifier = (cast_expression "(void *)pbVar1->dynsymcount" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "pbVar1->dynsymcount" identifier -> field_identifier))) ;) (if_statement "if (pvVar6 == (void *)0x0) {\n        pvVar6 = stat_alloc(0xc);\n        ((hash_entry->u).def.section)->userdata = pvVar6;\n        *(void **)((int)pvVar6 + 4) = pvVar6;\n        *(undefined4 *)((int)pvVar6 + 8) = 0;\n      }\n      else if (*(int *)((int)pvVar6 + 4) == 0) {\n        *(void **)((int)pvVar6 + 4) = pvVar6;\n      }" if (parenthesized_expression "(pvVar6 == (void *)0x0)" ( (binary_expression "pvVar6 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pvVar6 = stat_alloc(0xc);\n        ((hash_entry->u).def.section)->userdata = pvVar6;\n        *(void **)((int)pvVar6 + 4) = pvVar6;\n        *(undefined4 *)((int)pvVar6 + 8) = 0;\n      }" { (expression_statement "pvVar6 = stat_alloc(0xc);" (assignment_expression "pvVar6 = stat_alloc(0xc)" identifier = (call_expression "stat_alloc(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "((hash_entry->u).def.section)->userdata = pvVar6;" (assignment_expression "((hash_entry->u).def.section)->userdata = pvVar6" (field_expression "((hash_entry->u).def.section)->userdata" (parenthesized_expression "((hash_entry->u).def.section)" ( (field_expression "(hash_entry->u).def.section" (field_expression "(hash_entry->u).def" (parenthesized_expression "(hash_entry->u)" ( (field_expression "hash_entry->u" identifier -> field_identifier) )) . field_identifier) . field_identifier) )) -> field_identifier) = identifier) ;) (expression_statement "*(void **)((int)pvVar6 + 4) = pvVar6;" (assignment_expression "*(void **)((int)pvVar6 + 4) = pvVar6" (pointer_expression "*(void **)((int)pvVar6 + 4)" * (cast_expression "(void **)((int)pvVar6 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar6 + 4)" ( (binary_expression "(int)pvVar6 + 4" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)pvVar6 + 8) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar6 + 8) = 0" (pointer_expression "*(undefined4 *)((int)pvVar6 + 8)" * (cast_expression "(undefined4 *)((int)pvVar6 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 8)" ( (binary_expression "(int)pvVar6 + 8" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) }) (else_clause "else if (*(int *)((int)pvVar6 + 4) == 0) {\n        *(void **)((int)pvVar6 + 4) = pvVar6;\n      }" else (if_statement "if (*(int *)((int)pvVar6 + 4) == 0) {\n        *(void **)((int)pvVar6 + 4) = pvVar6;\n      }" if (parenthesized_expression "(*(int *)((int)pvVar6 + 4) == 0)" ( (binary_expression "*(int *)((int)pvVar6 + 4) == 0" (pointer_expression "*(int *)((int)pvVar6 + 4)" * (cast_expression "(int *)((int)pvVar6 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 4)" ( (binary_expression "(int)pvVar6 + 4" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n        *(void **)((int)pvVar6 + 4) = pvVar6;\n      }" { (expression_statement "*(void **)((int)pvVar6 + 4) = pvVar6;" (assignment_expression "*(void **)((int)pvVar6 + 4) = pvVar6" (pointer_expression "*(void **)((int)pvVar6 + 4)" * (cast_expression "(void **)((int)pvVar6 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar6 + 4)" ( (binary_expression "(int)pvVar6 + 4" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) })))) (if_statement "if ((uint)((int)map_obstack.chunk_limit - (int)map_obstack.next_free) < 8) {\n        _obstack_newchunk(&map_obstack,8);\n      }" if (parenthesized_expression "((uint)((int)map_obstack.chunk_limit - (int)map_obstack.next_free) < 8)" ( (binary_expression "(uint)((int)map_obstack.chunk_limit - (int)map_obstack.next_free) < 8" (call_expression "(uint)((int)map_obstack.chunk_limit - (int)map_obstack.next_free)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)map_obstack.chunk_limit - (int)map_obstack.next_free)" ( (binary_expression "(int)map_obstack.chunk_limit - (int)map_obstack.next_free" (cast_expression "(int)map_obstack.chunk_limit" ( (type_descriptor "int" primitive_type) ) (field_expression "map_obstack.chunk_limit" identifier . field_identifier)) - (cast_expression "(int)map_obstack.next_free" ( (type_descriptor "int" primitive_type) ) (field_expression "map_obstack.next_free" identifier . field_identifier))) ))) < number_literal) )) (compound_statement "{\n        _obstack_newchunk(&map_obstack,8);\n      }" { (expression_statement "_obstack_newchunk(&map_obstack,8);" (call_expression "_obstack_newchunk(&map_obstack,8)" identifier (argument_list "(&map_obstack,8)" ( (pointer_expression "&map_obstack" & identifier) , number_literal ))) ;) })) (expression_statement "pcVar4 = map_obstack.object_base;" (assignment_expression "pcVar4 = map_obstack.object_base" identifier = (field_expression "map_obstack.object_base" identifier . field_identifier)) ;) (if_statement "if (map_obstack.next_free + 8 == map_obstack.object_base) {\n        map_obstack._40_1_ = map_obstack._40_1_ | 2;\n      }" if (parenthesized_expression "(map_obstack.next_free + 8 == map_obstack.object_base)" ( (binary_expression "map_obstack.next_free + 8 == map_obstack.object_base" (binary_expression "map_obstack.next_free + 8" (field_expression "map_obstack.next_free" identifier . field_identifier) + number_literal) == (field_expression "map_obstack.object_base" identifier . field_identifier)) )) (compound_statement "{\n        map_obstack._40_1_ = map_obstack._40_1_ | 2;\n      }" { (expression_statement "map_obstack._40_1_ = map_obstack._40_1_ | 2;" (assignment_expression "map_obstack._40_1_ = map_obstack._40_1_ | 2" (field_expression "map_obstack._40_1_" identifier . field_identifier) = (binary_expression "map_obstack._40_1_ | 2" (field_expression "map_obstack._40_1_" identifier . field_identifier) | number_literal)) ;) })) (expression_statement "map_obstack.next_free =\n           (char *)(~map_obstack.alignment_mask &\n                   (uint)(map_obstack.next_free + 8 + map_obstack.alignment_mask));" (assignment_expression "map_obstack.next_free =\n           (char *)(~map_obstack.alignment_mask &\n                   (uint)(map_obstack.next_free + 8 + map_obstack.alignment_mask))" (field_expression "map_obstack.next_free" identifier . field_identifier) = (cast_expression "(char *)(~map_obstack.alignment_mask &\n                   (uint)(map_obstack.next_free + 8 + map_obstack.alignment_mask))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(~map_obstack.alignment_mask &\n                   (uint)(map_obstack.next_free + 8 + map_obstack.alignment_mask))" ( (binary_expression "~map_obstack.alignment_mask &\n                   (uint)(map_obstack.next_free + 8 + map_obstack.alignment_mask)" (unary_expression "~map_obstack.alignment_mask" ~ (field_expression "map_obstack.alignment_mask" identifier . field_identifier)) & (call_expression "(uint)(map_obstack.next_free + 8 + map_obstack.alignment_mask)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(map_obstack.next_free + 8 + map_obstack.alignment_mask)" ( (binary_expression "map_obstack.next_free + 8 + map_obstack.alignment_mask" (binary_expression "map_obstack.next_free + 8" (field_expression "map_obstack.next_free" identifier . field_identifier) + number_literal) + (field_expression "map_obstack.alignment_mask" identifier . field_identifier)) )))) )))) ;) (if_statement "if ((uint)((int)map_obstack.chunk_limit - (int)map_obstack.chunk) <\n          (uint)((int)map_obstack.next_free - (int)map_obstack.chunk)) {\n        map_obstack.next_free = map_obstack.chunk_limit;\n      }" if (parenthesized_expression "((uint)((int)map_obstack.chunk_limit - (int)map_obstack.chunk) <\n          (uint)((int)map_obstack.next_free - (int)map_obstack.chunk))" ( (binary_expression "(uint)((int)map_obstack.chunk_limit - (int)map_obstack.chunk) <\n          (uint)((int)map_obstack.next_free - (int)map_obstack.chunk)" (call_expression "(uint)((int)map_obstack.chunk_limit - (int)map_obstack.chunk)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)map_obstack.chunk_limit - (int)map_obstack.chunk)" ( (binary_expression "(int)map_obstack.chunk_limit - (int)map_obstack.chunk" (cast_expression "(int)map_obstack.chunk_limit" ( (type_descriptor "int" primitive_type) ) (field_expression "map_obstack.chunk_limit" identifier . field_identifier)) - (cast_expression "(int)map_obstack.chunk" ( (type_descriptor "int" primitive_type) ) (field_expression "map_obstack.chunk" identifier . field_identifier))) ))) < (call_expression "(uint)((int)map_obstack.next_free - (int)map_obstack.chunk)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)map_obstack.next_free - (int)map_obstack.chunk)" ( (binary_expression "(int)map_obstack.next_free - (int)map_obstack.chunk" (cast_expression "(int)map_obstack.next_free" ( (type_descriptor "int" primitive_type) ) (field_expression "map_obstack.next_free" identifier . field_identifier)) - (cast_expression "(int)map_obstack.chunk" ( (type_descriptor "int" primitive_type) ) (field_expression "map_obstack.chunk" identifier . field_identifier))) )))) )) (compound_statement "{\n        map_obstack.next_free = map_obstack.chunk_limit;\n      }" { (expression_statement "map_obstack.next_free = map_obstack.chunk_limit;" (assignment_expression "map_obstack.next_free = map_obstack.chunk_limit" (field_expression "map_obstack.next_free" identifier . field_identifier) = (field_expression "map_obstack.chunk_limit" identifier . field_identifier)) ;) })) (expression_statement "puVar3 = *(undefined4 **)((int)pvVar6 + 4);" (assignment_expression "puVar3 = *(undefined4 **)((int)pvVar6 + 4)" identifier = (pointer_expression "*(undefined4 **)((int)pvVar6 + 4)" * (cast_expression "(undefined4 **)((int)pvVar6 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar6 + 4)" ( (binary_expression "(int)pvVar6 + 4" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "pcVar5 = map_obstack.next_free;" (assignment_expression "pcVar5 = map_obstack.next_free" identifier = (field_expression "map_obstack.next_free" identifier . field_identifier)) ;) (expression_statement "*(bfd_link_hash_entry **)map_obstack.object_base = hash_entry;" (assignment_expression "*(bfd_link_hash_entry **)map_obstack.object_base = hash_entry" (pointer_expression "*(bfd_link_hash_entry **)map_obstack.object_base" * (cast_expression "(bfd_link_hash_entry **)map_obstack.object_base" ( (type_descriptor "bfd_link_hash_entry **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (field_expression "map_obstack.object_base" identifier . field_identifier))) = identifier) ;) (expression_statement "map_obstack.object_base = pcVar5;" (assignment_expression "map_obstack.object_base = pcVar5" (field_expression "map_obstack.object_base" identifier . field_identifier) = identifier) ;) (expression_statement "*puVar3 = pcVar4;" (assignment_expression "*puVar3 = pcVar4" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "*(char **)((int)pvVar6 + 4) = pcVar4 + 4;" (assignment_expression "*(char **)((int)pvVar6 + 4) = pcVar4 + 4" (pointer_expression "*(char **)((int)pvVar6 + 4)" * (cast_expression "(char **)((int)pvVar6 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar6 + 4)" ( (binary_expression "(int)pvVar6 + 4" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "pcVar4 + 4" identifier + number_literal)) ;) (expression_statement "*(int *)((int)pvVar6 + 8) = *(int *)((int)pvVar6 + 8) + 1;" (assignment_expression "*(int *)((int)pvVar6 + 8) = *(int *)((int)pvVar6 + 8) + 1" (pointer_expression "*(int *)((int)pvVar6 + 8)" * (cast_expression "(int *)((int)pvVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 8)" ( (binary_expression "(int)pvVar6 + 8" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(int *)((int)pvVar6 + 8) + 1" (pointer_expression "*(int *)((int)pvVar6 + 8)" * (cast_expression "(int *)((int)pvVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + 8)" ( (binary_expression "(int)pvVar6 + 8" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal)) ;) (return_statement "return 1;" return number_literal ;) })) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_000238c0(int param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  \n  if ((byte)(*(char *)(param_1 + 0xc) - 3U) < 2) {\n    iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0xac);\n    if ((DAT_001c0e54 != iVar4) && (iVar4 != 0)) {\n      iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80);\n      if (iVar4 == 0) {\n        iVar4 = FUN_00023800(0xc);\n        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;\n        *(int *)(iVar4 + 4) = iVar4;\n        *(undefined4 *)(iVar4 + 8) = 0;\n      }\n      else if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }\n      if (DAT_001c0550 - DAT_001c054c < 8) {\n        _obstack_newchunk(&DAT_001c0540,8);\n      }\n      piVar2 = DAT_001c0548;\n      if ((int *)(DAT_001c054c + 8) == DAT_001c0548) {\n        DAT_001c0568 = DAT_001c0568 | 2;\n      }\n      DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558;\n      if (DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544) {\n        DAT_001c054c = DAT_001c0550;\n      }\n      piVar1 = *(int **)(iVar4 + 4);\n      uVar3 = DAT_001c054c;\n      *DAT_001c0548 = param_1;\n      DAT_001c0548 = (int *)uVar3;\n      *piVar1 = (int)piVar2;\n      *(int **)(iVar4 + 4) = piVar2 + 1;\n      *(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1;\n      return 1;\n    }\n  }\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_000238c0(int param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  \n  if ((byte)(*(char *)(param_1 + 0xc) - 3U) < 2) {\n    iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0xac);\n    if ((DAT_001c0e54 != iVar4) && (iVar4 != 0)) {\n      iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80);\n      if (iVar4 == 0) {\n        iVar4 = FUN_00023800(0xc);\n        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;\n        *(int *)(iVar4 + 4) = iVar4;\n        *(undefined4 *)(iVar4 + 8) = 0;\n      }\n      else if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }\n      if (DAT_001c0550 - DAT_001c054c < 8) {\n        _obstack_newchunk(&DAT_001c0540,8);\n      }\n      piVar2 = DAT_001c0548;\n      if ((int *)(DAT_001c054c + 8) == DAT_001c0548) {\n        DAT_001c0568 = DAT_001c0568 | 2;\n      }\n      DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558;\n      if (DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544) {\n        DAT_001c054c = DAT_001c0550;\n      }\n      piVar1 = *(int **)(iVar4 + 4);\n      uVar3 = DAT_001c054c;\n      *DAT_001c0548 = param_1;\n      DAT_001c0548 = (int *)uVar3;\n      *piVar1 = (int)piVar2;\n      *(int **)(iVar4 + 4) = piVar2 + 1;\n      *(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1;\n      return 1;\n    }\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_000238c0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  \n  if ((byte)(*(char *)(param_1 + 0xc) - 3U) < 2) {\n    iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0xac);\n    if ((DAT_001c0e54 != iVar4) && (iVar4 != 0)) {\n      iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80);\n      if (iVar4 == 0) {\n        iVar4 = FUN_00023800(0xc);\n        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;\n        *(int *)(iVar4 + 4) = iVar4;\n        *(undefined4 *)(iVar4 + 8) = 0;\n      }\n      else if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }\n      if (DAT_001c0550 - DAT_001c054c < 8) {\n        _obstack_newchunk(&DAT_001c0540,8);\n      }\n      piVar2 = DAT_001c0548;\n      if ((int *)(DAT_001c054c + 8) == DAT_001c0548) {\n        DAT_001c0568 = DAT_001c0568 | 2;\n      }\n      DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558;\n      if (DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544) {\n        DAT_001c054c = DAT_001c0550;\n      }\n      piVar1 = *(int **)(iVar4 + 4);\n      uVar3 = DAT_001c054c;\n      *DAT_001c0548 = param_1;\n      DAT_001c0548 = (int *)uVar3;\n      *piVar1 = (int)piVar2;\n      *(int **)(iVar4 + 4) = piVar2 + 1;\n      *(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1;\n      return 1;\n    }\n  }\n  return 1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if ((byte)(*(char *)(param_1 + 0xc) - 3U) < 2) {\n    iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0xac);\n    if ((DAT_001c0e54 != iVar4) && (iVar4 != 0)) {\n      iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80);\n      if (iVar4 == 0) {\n        iVar4 = FUN_00023800(0xc);\n        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;\n        *(int *)(iVar4 + 4) = iVar4;\n        *(undefined4 *)(iVar4 + 8) = 0;\n      }\n      else if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }\n      if (DAT_001c0550 - DAT_001c054c < 8) {\n        _obstack_newchunk(&DAT_001c0540,8);\n      }\n      piVar2 = DAT_001c0548;\n      if ((int *)(DAT_001c054c + 8) == DAT_001c0548) {\n        DAT_001c0568 = DAT_001c0568 | 2;\n      }\n      DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558;\n      if (DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544) {\n        DAT_001c054c = DAT_001c0550;\n      }\n      piVar1 = *(int **)(iVar4 + 4);\n      uVar3 = DAT_001c054c;\n      *DAT_001c0548 = param_1;\n      DAT_001c0548 = (int *)uVar3;\n      *piVar1 = (int)piVar2;\n      *(int **)(iVar4 + 4) = piVar2 + 1;\n      *(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1;\n      return 1;\n    }\n  }" if (parenthesized_expression "((byte)(*(char *)(param_1 + 0xc) - 3U) < 2)" ( (binary_expression "(byte)(*(char *)(param_1 + 0xc) - 3U) < 2" (call_expression "(byte)(*(char *)(param_1 + 0xc) - 3U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(*(char *)(param_1 + 0xc) - 3U)" ( (binary_expression "*(char *)(param_1 + 0xc) - 3U" (pointer_expression "*(char *)(param_1 + 0xc)" * (cast_expression "(char *)(param_1 + 0xc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) - number_literal) ))) < number_literal) )) (compound_statement "{\n    iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0xac);\n    if ((DAT_001c0e54 != iVar4) && (iVar4 != 0)) {\n      iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80);\n      if (iVar4 == 0) {\n        iVar4 = FUN_00023800(0xc);\n        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;\n        *(int *)(iVar4 + 4) = iVar4;\n        *(undefined4 *)(iVar4 + 8) = 0;\n      }\n      else if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }\n      if (DAT_001c0550 - DAT_001c054c < 8) {\n        _obstack_newchunk(&DAT_001c0540,8);\n      }\n      piVar2 = DAT_001c0548;\n      if ((int *)(DAT_001c054c + 8) == DAT_001c0548) {\n        DAT_001c0568 = DAT_001c0568 | 2;\n      }\n      DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558;\n      if (DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544) {\n        DAT_001c054c = DAT_001c0550;\n      }\n      piVar1 = *(int **)(iVar4 + 4);\n      uVar3 = DAT_001c054c;\n      *DAT_001c0548 = param_1;\n      DAT_001c0548 = (int *)uVar3;\n      *piVar1 = (int)piVar2;\n      *(int **)(iVar4 + 4) = piVar2 + 1;\n      *(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1;\n      return 1;\n    }\n  }" { (expression_statement "iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0xac);" (assignment_expression "iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0xac)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x14) + 0xac)" * (cast_expression "(int *)(*(int *)(param_1 + 0x14) + 0xac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x14) + 0xac)" ( (binary_expression "*(int *)(param_1 + 0x14) + 0xac" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if ((DAT_001c0e54 != iVar4) && (iVar4 != 0)) {\n      iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80);\n      if (iVar4 == 0) {\n        iVar4 = FUN_00023800(0xc);\n        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;\n        *(int *)(iVar4 + 4) = iVar4;\n        *(undefined4 *)(iVar4 + 8) = 0;\n      }\n      else if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }\n      if (DAT_001c0550 - DAT_001c054c < 8) {\n        _obstack_newchunk(&DAT_001c0540,8);\n      }\n      piVar2 = DAT_001c0548;\n      if ((int *)(DAT_001c054c + 8) == DAT_001c0548) {\n        DAT_001c0568 = DAT_001c0568 | 2;\n      }\n      DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558;\n      if (DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544) {\n        DAT_001c054c = DAT_001c0550;\n      }\n      piVar1 = *(int **)(iVar4 + 4);\n      uVar3 = DAT_001c054c;\n      *DAT_001c0548 = param_1;\n      DAT_001c0548 = (int *)uVar3;\n      *piVar1 = (int)piVar2;\n      *(int **)(iVar4 + 4) = piVar2 + 1;\n      *(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1;\n      return 1;\n    }" if (parenthesized_expression "((DAT_001c0e54 != iVar4) && (iVar4 != 0))" ( (binary_expression "(DAT_001c0e54 != iVar4) && (iVar4 != 0)" (parenthesized_expression "(DAT_001c0e54 != iVar4)" ( (binary_expression "DAT_001c0e54 != iVar4" identifier != identifier) )) && (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) ))) )) (compound_statement "{\n      iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80);\n      if (iVar4 == 0) {\n        iVar4 = FUN_00023800(0xc);\n        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;\n        *(int *)(iVar4 + 4) = iVar4;\n        *(undefined4 *)(iVar4 + 8) = 0;\n      }\n      else if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }\n      if (DAT_001c0550 - DAT_001c054c < 8) {\n        _obstack_newchunk(&DAT_001c0540,8);\n      }\n      piVar2 = DAT_001c0548;\n      if ((int *)(DAT_001c054c + 8) == DAT_001c0548) {\n        DAT_001c0568 = DAT_001c0568 | 2;\n      }\n      DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558;\n      if (DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544) {\n        DAT_001c054c = DAT_001c0550;\n      }\n      piVar1 = *(int **)(iVar4 + 4);\n      uVar3 = DAT_001c054c;\n      *DAT_001c0548 = param_1;\n      DAT_001c0548 = (int *)uVar3;\n      *piVar1 = (int)piVar2;\n      *(int **)(iVar4 + 4) = piVar2 + 1;\n      *(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1;\n      return 1;\n    }" { (expression_statement "iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80);" (assignment_expression "iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x14) + 0x80)" * (cast_expression "(int *)(*(int *)(param_1 + 0x14) + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x14) + 0x80)" ( (binary_expression "*(int *)(param_1 + 0x14) + 0x80" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (iVar4 == 0) {\n        iVar4 = FUN_00023800(0xc);\n        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;\n        *(int *)(iVar4 + 4) = iVar4;\n        *(undefined4 *)(iVar4 + 8) = 0;\n      }\n      else if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar4 = FUN_00023800(0xc);\n        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;\n        *(int *)(iVar4 + 4) = iVar4;\n        *(undefined4 *)(iVar4 + 8) = 0;\n      }" { (expression_statement "iVar4 = FUN_00023800(0xc);" (assignment_expression "iVar4 = FUN_00023800(0xc)" identifier = (call_expression "FUN_00023800(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "*(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;" (assignment_expression "*(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4" (pointer_expression "*(int *)(*(int *)(param_1 + 0x14) + 0x80)" * (cast_expression "(int *)(*(int *)(param_1 + 0x14) + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x14) + 0x80)" ( (binary_expression "*(int *)(param_1 + 0x14) + 0x80" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar4 + 4) = iVar4;" (assignment_expression "*(int *)(iVar4 + 4) = iVar4" (pointer_expression "*(int *)(iVar4 + 4)" * (cast_expression "(int *)(iVar4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar4 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 8)" * (cast_expression "(undefined4 *)(iVar4 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }" else (if_statement "if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }" if (parenthesized_expression "(*(int *)(iVar4 + 4) == 0)" ( (binary_expression "*(int *)(iVar4 + 4) == 0" (pointer_expression "*(int *)(iVar4 + 4)" * (cast_expression "(int *)(iVar4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        *(int *)(iVar4 + 4) = iVar4;\n      }" { (expression_statement "*(int *)(iVar4 + 4) = iVar4;" (assignment_expression "*(int *)(iVar4 + 4) = iVar4" (pointer_expression "*(int *)(iVar4 + 4)" * (cast_expression "(int *)(iVar4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) = identifier) ;) })))) (if_statement "if (DAT_001c0550 - DAT_001c054c < 8) {\n        _obstack_newchunk(&DAT_001c0540,8);\n      }" if (parenthesized_expression "(DAT_001c0550 - DAT_001c054c < 8)" ( (binary_expression "DAT_001c0550 - DAT_001c054c < 8" (binary_expression "DAT_001c0550 - DAT_001c054c" identifier - identifier) < number_literal) )) (compound_statement "{\n        _obstack_newchunk(&DAT_001c0540,8);\n      }" { (expression_statement "_obstack_newchunk(&DAT_001c0540,8);" (call_expression "_obstack_newchunk(&DAT_001c0540,8)" identifier (argument_list "(&DAT_001c0540,8)" ( (pointer_expression "&DAT_001c0540" & identifier) , number_literal ))) ;) })) (expression_statement "piVar2 = DAT_001c0548;" (assignment_expression "piVar2 = DAT_001c0548" identifier = identifier) ;) (if_statement "if ((int *)(DAT_001c054c + 8) == DAT_001c0548) {\n        DAT_001c0568 = DAT_001c0568 | 2;\n      }" if (parenthesized_expression "((int *)(DAT_001c054c + 8) == DAT_001c0548)" ( (binary_expression "(int *)(DAT_001c054c + 8) == DAT_001c0548" (cast_expression "(int *)(DAT_001c054c + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c054c + 8)" ( (binary_expression "DAT_001c054c + 8" identifier + number_literal) ))) == identifier) )) (compound_statement "{\n        DAT_001c0568 = DAT_001c0568 | 2;\n      }" { (expression_statement "DAT_001c0568 = DAT_001c0568 | 2;" (assignment_expression "DAT_001c0568 = DAT_001c0568 | 2" identifier = (binary_expression "DAT_001c0568 | 2" identifier | number_literal)) ;) })) (expression_statement "DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558;" (assignment_expression "DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558" identifier = (binary_expression "~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558" (unary_expression "~DAT_001c0558" ~ identifier) & (binary_expression "(int)(DAT_001c054c + 8) + DAT_001c0558" (cast_expression "(int)(DAT_001c054c + 8)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(DAT_001c054c + 8)" ( (binary_expression "DAT_001c054c + 8" identifier + number_literal) ))) + identifier))) ;) (if_statement "if (DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544) {\n        DAT_001c054c = DAT_001c0550;\n      }" if (parenthesized_expression "(DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544)" ( (binary_expression "DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544" (binary_expression "DAT_001c0550 - DAT_001c0544" identifier - identifier) < (binary_expression "DAT_001c054c - DAT_001c0544" identifier - identifier)) )) (compound_statement "{\n        DAT_001c054c = DAT_001c0550;\n      }" { (expression_statement "DAT_001c054c = DAT_001c0550;" (assignment_expression "DAT_001c054c = DAT_001c0550" identifier = identifier) ;) })) (expression_statement "piVar1 = *(int **)(iVar4 + 4);" (assignment_expression "piVar1 = *(int **)(iVar4 + 4)" identifier = (pointer_expression "*(int **)(iVar4 + 4)" * (cast_expression "(int **)(iVar4 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = DAT_001c054c;" (assignment_expression "uVar3 = DAT_001c054c" identifier = identifier) ;) (expression_statement "*DAT_001c0548 = param_1;" (assignment_expression "*DAT_001c0548 = param_1" (pointer_expression "*DAT_001c0548" * identifier) = identifier) ;) (expression_statement "DAT_001c0548 = (int *)uVar3;" (assignment_expression "DAT_001c0548 = (int *)uVar3" identifier = (cast_expression "(int *)uVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "*piVar1 = (int)piVar2;" (assignment_expression "*piVar1 = (int)piVar2" (pointer_expression "*piVar1" * identifier) = (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(int **)(iVar4 + 4) = piVar2 + 1;" (assignment_expression "*(int **)(iVar4 + 4) = piVar2 + 1" (pointer_expression "*(int **)(iVar4 + 4)" * (cast_expression "(int **)(iVar4 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1;" (assignment_expression "*(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1" (pointer_expression "*(int *)(iVar4 + 8)" * (cast_expression "(int *)(iVar4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar4 + 8) + 1" (pointer_expression "*(int *)(iVar4 + 8)" * (cast_expression "(int *)(iVar4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) + number_literal)) ;) (return_statement "return 1;" return number_literal ;) })) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - LIT) ))) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != IDENT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = 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) )))) = LIT) ;) }) (else_clause else (if_statement if (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 (binary_expression IDENT - IDENT) < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT ))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (unary_expression ~ IDENT) & (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) + IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - IDENT) < (binary_expression IDENT - IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (return_statement return LIT ;) })) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_000238c0(int param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  \n  if ((byte)(*(char *)(param_1 + 0xc) - 3U) < 2) {\n    iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0xac);\n    if ((DAT_001c0e54 != iVar4) && (iVar4 != 0)) {\n      iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80);\n      if (iVar4 == 0) {\n        iVar4 = FUN_00023800(0xc);\n        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;\n        *(int *)(iVar4 + 4) = iVar4;\n        *(undefined4 *)(iVar4 + 8) = 0;\n      }\n      else if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }\n      if (DAT_001c0550 - DAT_001c054c < 8) {\n        _obstack_newchunk(&DAT_001c0540,8);\n      }\n      piVar2 = DAT_001c0548;\n      if ((int *)(DAT_001c054c + 8) == DAT_001c0548) {\n        DAT_001c0568 = DAT_001c0568 | 2;\n      }\n      DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558;\n      if (DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544) {\n        DAT_001c054c = DAT_001c0550;\n      }\n      piVar1 = *(int **)(iVar4 + 4);\n      uVar3 = DAT_001c054c;\n      *DAT_001c0548 = param_1;\n      DAT_001c0548 = (int *)uVar3;\n      *piVar1 = (int)piVar2;\n      *(int **)(iVar4 + 4) = piVar2 + 1;\n      *(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1;\n      return 1;\n    }\n  }\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_000238c0(int param_1)" (identifier "FUN_000238c0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  \n  if ((byte)(*(char *)(param_1 + 0xc) - 3U) < 2) {\n    iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0xac);\n    if ((DAT_001c0e54 != iVar4) && (iVar4 != 0)) {\n      iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80);\n      if (iVar4 == 0) {\n        iVar4 = FUN_00023800(0xc);\n        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;\n        *(int *)(iVar4 + 4) = iVar4;\n        *(undefined4 *)(iVar4 + 8) = 0;\n      }\n      else if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }\n      if (DAT_001c0550 - DAT_001c054c < 8) {\n        _obstack_newchunk(&DAT_001c0540,8);\n      }\n      piVar2 = DAT_001c0548;\n      if ((int *)(DAT_001c054c + 8) == DAT_001c0548) {\n        DAT_001c0568 = DAT_001c0568 | 2;\n      }\n      DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558;\n      if (DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544) {\n        DAT_001c054c = DAT_001c0550;\n      }\n      piVar1 = *(int **)(iVar4 + 4);\n      uVar3 = DAT_001c054c;\n      *DAT_001c0548 = param_1;\n      DAT_001c0548 = (int *)uVar3;\n      *piVar1 = (int)piVar2;\n      *(int **)(iVar4 + 4) = piVar2 + 1;\n      *(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1;\n      return 1;\n    }\n  }\n  return 1;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (if_statement "if ((byte)(*(char *)(param_1 + 0xc) - 3U) < 2) {\n    iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0xac);\n    if ((DAT_001c0e54 != iVar4) && (iVar4 != 0)) {\n      iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80);\n      if (iVar4 == 0) {\n        iVar4 = FUN_00023800(0xc);\n        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;\n        *(int *)(iVar4 + 4) = iVar4;\n        *(undefined4 *)(iVar4 + 8) = 0;\n      }\n      else if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }\n      if (DAT_001c0550 - DAT_001c054c < 8) {\n        _obstack_newchunk(&DAT_001c0540,8);\n      }\n      piVar2 = DAT_001c0548;\n      if ((int *)(DAT_001c054c + 8) == DAT_001c0548) {\n        DAT_001c0568 = DAT_001c0568 | 2;\n      }\n      DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558;\n      if (DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544) {\n        DAT_001c054c = DAT_001c0550;\n      }\n      piVar1 = *(int **)(iVar4 + 4);\n      uVar3 = DAT_001c054c;\n      *DAT_001c0548 = param_1;\n      DAT_001c0548 = (int *)uVar3;\n      *piVar1 = (int)piVar2;\n      *(int **)(iVar4 + 4) = piVar2 + 1;\n      *(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1;\n      return 1;\n    }\n  }" (if "if") (parenthesized_expression "((byte)(*(char *)(param_1 + 0xc) - 3U) < 2)" (( "(") (binary_expression "(byte)(*(char *)(param_1 + 0xc) - 3U) < 2" (call_expression "(byte)(*(char *)(param_1 + 0xc) - 3U)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(*(char *)(param_1 + 0xc) - 3U)" (( "(") (binary_expression "*(char *)(param_1 + 0xc) - 3U" (pointer_expression "*(char *)(param_1 + 0xc)" (* "*") (cast_expression "(char *)(param_1 + 0xc)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (- "-") (number_literal "3U")) () ")"))) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n    iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0xac);\n    if ((DAT_001c0e54 != iVar4) && (iVar4 != 0)) {\n      iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80);\n      if (iVar4 == 0) {\n        iVar4 = FUN_00023800(0xc);\n        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;\n        *(int *)(iVar4 + 4) = iVar4;\n        *(undefined4 *)(iVar4 + 8) = 0;\n      }\n      else if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }\n      if (DAT_001c0550 - DAT_001c054c < 8) {\n        _obstack_newchunk(&DAT_001c0540,8);\n      }\n      piVar2 = DAT_001c0548;\n      if ((int *)(DAT_001c054c + 8) == DAT_001c0548) {\n        DAT_001c0568 = DAT_001c0568 | 2;\n      }\n      DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558;\n      if (DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544) {\n        DAT_001c054c = DAT_001c0550;\n      }\n      piVar1 = *(int **)(iVar4 + 4);\n      uVar3 = DAT_001c054c;\n      *DAT_001c0548 = param_1;\n      DAT_001c0548 = (int *)uVar3;\n      *piVar1 = (int)piVar2;\n      *(int **)(iVar4 + 4) = piVar2 + 1;\n      *(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1;\n      return 1;\n    }\n  }" ({ "{") (expression_statement "iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0xac);" (assignment_expression "iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0xac)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(*(int *)(param_1 + 0x14) + 0xac)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x14) + 0xac)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x14) + 0xac)" (( "(") (binary_expression "*(int *)(param_1 + 0x14) + 0xac" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (number_literal "0xac")) () ")"))))) (; ";")) (if_statement "if ((DAT_001c0e54 != iVar4) && (iVar4 != 0)) {\n      iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80);\n      if (iVar4 == 0) {\n        iVar4 = FUN_00023800(0xc);\n        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;\n        *(int *)(iVar4 + 4) = iVar4;\n        *(undefined4 *)(iVar4 + 8) = 0;\n      }\n      else if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }\n      if (DAT_001c0550 - DAT_001c054c < 8) {\n        _obstack_newchunk(&DAT_001c0540,8);\n      }\n      piVar2 = DAT_001c0548;\n      if ((int *)(DAT_001c054c + 8) == DAT_001c0548) {\n        DAT_001c0568 = DAT_001c0568 | 2;\n      }\n      DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558;\n      if (DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544) {\n        DAT_001c054c = DAT_001c0550;\n      }\n      piVar1 = *(int **)(iVar4 + 4);\n      uVar3 = DAT_001c054c;\n      *DAT_001c0548 = param_1;\n      DAT_001c0548 = (int *)uVar3;\n      *piVar1 = (int)piVar2;\n      *(int **)(iVar4 + 4) = piVar2 + 1;\n      *(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1;\n      return 1;\n    }" (if "if") (parenthesized_expression "((DAT_001c0e54 != iVar4) && (iVar4 != 0))" (( "(") (binary_expression "(DAT_001c0e54 != iVar4) && (iVar4 != 0)" (parenthesized_expression "(DAT_001c0e54 != iVar4)" (( "(") (binary_expression "DAT_001c0e54 != iVar4" (identifier "DAT_001c0e54") (!= "!=") (identifier "iVar4")) () ")")) (&& "&&") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80);\n      if (iVar4 == 0) {\n        iVar4 = FUN_00023800(0xc);\n        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;\n        *(int *)(iVar4 + 4) = iVar4;\n        *(undefined4 *)(iVar4 + 8) = 0;\n      }\n      else if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }\n      if (DAT_001c0550 - DAT_001c054c < 8) {\n        _obstack_newchunk(&DAT_001c0540,8);\n      }\n      piVar2 = DAT_001c0548;\n      if ((int *)(DAT_001c054c + 8) == DAT_001c0548) {\n        DAT_001c0568 = DAT_001c0568 | 2;\n      }\n      DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558;\n      if (DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544) {\n        DAT_001c054c = DAT_001c0550;\n      }\n      piVar1 = *(int **)(iVar4 + 4);\n      uVar3 = DAT_001c054c;\n      *DAT_001c0548 = param_1;\n      DAT_001c0548 = (int *)uVar3;\n      *piVar1 = (int)piVar2;\n      *(int **)(iVar4 + 4) = piVar2 + 1;\n      *(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1;\n      return 1;\n    }" ({ "{") (expression_statement "iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80);" (assignment_expression "iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(*(int *)(param_1 + 0x14) + 0x80)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x14) + 0x80)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x14) + 0x80)" (( "(") (binary_expression "*(int *)(param_1 + 0x14) + 0x80" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (number_literal "0x80")) () ")"))))) (; ";")) (if_statement "if (iVar4 == 0) {\n        iVar4 = FUN_00023800(0xc);\n        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;\n        *(int *)(iVar4 + 4) = iVar4;\n        *(undefined4 *)(iVar4 + 8) = 0;\n      }\n      else if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar4 = FUN_00023800(0xc);\n        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;\n        *(int *)(iVar4 + 4) = iVar4;\n        *(undefined4 *)(iVar4 + 8) = 0;\n      }" ({ "{") (expression_statement "iVar4 = FUN_00023800(0xc);" (assignment_expression "iVar4 = FUN_00023800(0xc)" (identifier "iVar4") (= "=") (call_expression "FUN_00023800(0xc)" (identifier "FUN_00023800") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")")))) (; ";")) (expression_statement "*(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;" (assignment_expression "*(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4" (pointer_expression "*(int *)(*(int *)(param_1 + 0x14) + 0x80)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x14) + 0x80)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x14) + 0x80)" (( "(") (binary_expression "*(int *)(param_1 + 0x14) + 0x80" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (number_literal "0x80")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "*(int *)(iVar4 + 4) = iVar4;" (assignment_expression "*(int *)(iVar4 + 4) = iVar4" (pointer_expression "*(int *)(iVar4 + 4)" (* "*") (cast_expression "(int *)(iVar4 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 4)" (( "(") (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "*(undefined4 *)(iVar4 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 8)" (( "(") (binary_expression "iVar4 + 8" (identifier "iVar4") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }" (else "else") (if_statement "if (*(int *)(iVar4 + 4) == 0) {\n        *(int *)(iVar4 + 4) = iVar4;\n      }" (if "if") (parenthesized_expression "(*(int *)(iVar4 + 4) == 0)" (( "(") (binary_expression "*(int *)(iVar4 + 4) == 0" (pointer_expression "*(int *)(iVar4 + 4)" (* "*") (cast_expression "(int *)(iVar4 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 4)" (( "(") (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        *(int *)(iVar4 + 4) = iVar4;\n      }" ({ "{") (expression_statement "*(int *)(iVar4 + 4) = iVar4;" (assignment_expression "*(int *)(iVar4 + 4) = iVar4" (pointer_expression "*(int *)(iVar4 + 4)" (* "*") (cast_expression "(int *)(iVar4 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 4)" (( "(") (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (} "}"))))) (if_statement "if (DAT_001c0550 - DAT_001c054c < 8) {\n        _obstack_newchunk(&DAT_001c0540,8);\n      }" (if "if") (parenthesized_expression "(DAT_001c0550 - DAT_001c054c < 8)" (( "(") (binary_expression "DAT_001c0550 - DAT_001c054c < 8" (binary_expression "DAT_001c0550 - DAT_001c054c" (identifier "DAT_001c0550") (- "-") (identifier "DAT_001c054c")) (< "<") (number_literal "8")) () ")")) (compound_statement "{\n        _obstack_newchunk(&DAT_001c0540,8);\n      }" ({ "{") (expression_statement "_obstack_newchunk(&DAT_001c0540,8);" (call_expression "_obstack_newchunk(&DAT_001c0540,8)" (identifier "_obstack_newchunk") (argument_list "(&DAT_001c0540,8)" (( "(") (pointer_expression "&DAT_001c0540" (& "&") (identifier "DAT_001c0540")) (, ",") (number_literal "8") () ")"))) (; ";")) (} "}"))) (expression_statement "piVar2 = DAT_001c0548;" (assignment_expression "piVar2 = DAT_001c0548" (identifier "piVar2") (= "=") (identifier "DAT_001c0548")) (; ";")) (if_statement "if ((int *)(DAT_001c054c + 8) == DAT_001c0548) {\n        DAT_001c0568 = DAT_001c0568 | 2;\n      }" (if "if") (parenthesized_expression "((int *)(DAT_001c054c + 8) == DAT_001c0548)" (( "(") (binary_expression "(int *)(DAT_001c054c + 8) == DAT_001c0548" (cast_expression "(int *)(DAT_001c054c + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001c054c + 8)" (( "(") (binary_expression "DAT_001c054c + 8" (identifier "DAT_001c054c") (+ "+") (number_literal "8")) () ")"))) (== "==") (identifier "DAT_001c0548")) () ")")) (compound_statement "{\n        DAT_001c0568 = DAT_001c0568 | 2;\n      }" ({ "{") (expression_statement "DAT_001c0568 = DAT_001c0568 | 2;" (assignment_expression "DAT_001c0568 = DAT_001c0568 | 2" (identifier "DAT_001c0568") (= "=") (binary_expression "DAT_001c0568 | 2" (identifier "DAT_001c0568") (| "|") (number_literal "2"))) (; ";")) (} "}"))) (expression_statement "DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558;" (assignment_expression "DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558" (identifier "DAT_001c054c") (= "=") (binary_expression "~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558" (unary_expression "~DAT_001c0558" (~ "~") (identifier "DAT_001c0558")) (& "&") (binary_expression "(int)(DAT_001c054c + 8) + DAT_001c0558" (cast_expression "(int)(DAT_001c054c + 8)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(DAT_001c054c + 8)" (( "(") (binary_expression "DAT_001c054c + 8" (identifier "DAT_001c054c") (+ "+") (number_literal "8")) () ")"))) (+ "+") (identifier "DAT_001c0558")))) (; ";")) (if_statement "if (DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544) {\n        DAT_001c054c = DAT_001c0550;\n      }" (if "if") (parenthesized_expression "(DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544)" (( "(") (binary_expression "DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544" (binary_expression "DAT_001c0550 - DAT_001c0544" (identifier "DAT_001c0550") (- "-") (identifier "DAT_001c0544")) (< "<") (binary_expression "DAT_001c054c - DAT_001c0544" (identifier "DAT_001c054c") (- "-") (identifier "DAT_001c0544"))) () ")")) (compound_statement "{\n        DAT_001c054c = DAT_001c0550;\n      }" ({ "{") (expression_statement "DAT_001c054c = DAT_001c0550;" (assignment_expression "DAT_001c054c = DAT_001c0550" (identifier "DAT_001c054c") (= "=") (identifier "DAT_001c0550")) (; ";")) (} "}"))) (expression_statement "piVar1 = *(int **)(iVar4 + 4);" (assignment_expression "piVar1 = *(int **)(iVar4 + 4)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(iVar4 + 4)" (* "*") (cast_expression "(int **)(iVar4 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + 4)" (( "(") (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "uVar3 = DAT_001c054c;" (assignment_expression "uVar3 = DAT_001c054c" (identifier "uVar3") (= "=") (identifier "DAT_001c054c")) (; ";")) (expression_statement "*DAT_001c0548 = param_1;" (assignment_expression "*DAT_001c0548 = param_1" (pointer_expression "*DAT_001c0548" (* "*") (identifier "DAT_001c0548")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "DAT_001c0548 = (int *)uVar3;" (assignment_expression "DAT_001c0548 = (int *)uVar3" (identifier "DAT_001c0548") (= "=") (cast_expression "(int *)uVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "uVar3"))) (; ";")) (expression_statement "*piVar1 = (int)piVar2;" (assignment_expression "*piVar1 = (int)piVar2" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (cast_expression "(int)piVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar2"))) (; ";")) (expression_statement "*(int **)(iVar4 + 4) = piVar2 + 1;" (assignment_expression "*(int **)(iVar4 + 4) = piVar2 + 1" (pointer_expression "*(int **)(iVar4 + 4)" (* "*") (cast_expression "(int **)(iVar4 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + 4)" (( "(") (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1;" (assignment_expression "*(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1" (pointer_expression "*(int *)(iVar4 + 8)" (* "*") (cast_expression "(int *)(iVar4 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 8)" (( "(") (binary_expression "iVar4 + 8" (identifier "iVar4") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "*(int *)(iVar4 + 8) + 1" (pointer_expression "*(int *)(iVar4 + 8)" (* "*") (cast_expression "(int *)(iVar4 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 8)" (( "(") (binary_expression "iVar4 + 8" (identifier "iVar4") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

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

type_1 function_1(type_2 *hash_entry,void *info)

{
  type_3 *pbVar1;
  type_3 *var_1;
  type_4 *puVar3;
  char *var_5;
  char *pcVar5;
  void *var_2;
  
  if ((byte)(hash_entry->field_0xc - 3) < 2) {
    pbVar1 = (hash_entry->u).undef.abfd;
    var_1 = (type_3 *)pbVar1->build_id;
    if ((link_info.output_bfd != var_1) && (var_1 != (type_3 *)0x0)) {
      var_2 = (void *)pbVar1->dynsymcount;
      if (var_2 == (void *)0x0) {
        var_2 = var_3(0xc);
        ((hash_entry->u).def.section)->userdata = var_2;
        *(void **)((int)var_2 + 4) = var_2;
        *(type_4 *)((int)var_2 + 8) = 0;
      }
      else if (*(int *)((int)var_2 + 4) == 0) {
        *(void **)((int)var_2 + 4) = var_2;
      }
      if ((uint)((int)map_obstack.chunk_limit - (int)map_obstack.next_free) < 8) {
        var_4(&map_obstack,8);
      }
      var_5 = map_obstack.object_base;
      if (map_obstack.next_free + 8 == map_obstack.object_base) {
        map_obstack._40_1_ = map_obstack._40_1_ | 2;
      }
      map_obstack.next_free =
           (char *)(~map_obstack.alignment_mask &
                   (uint)(map_obstack.next_free + 8 + map_obstack.alignment_mask));
      if ((uint)((int)map_obstack.chunk_limit - (int)map_obstack.chunk) <
          (uint)((int)map_obstack.next_free - (int)map_obstack.chunk)) {
        map_obstack.next_free = map_obstack.chunk_limit;
      }
      puVar3 = *(type_4 **)((int)var_2 + 4);
      pcVar5 = map_obstack.next_free;
      *(type_2 **)map_obstack.object_base = hash_entry;
      map_obstack.object_base = pcVar5;
      *puVar3 = var_5;
      *(char **)((int)var_2 + 4) = var_5 + 4;
      *(int *)((int)var_2 + 8) = *(int *)((int)var_2 + 8) + 1;
      return 1;
    }
  }
  return 1;
}


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

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

undefined4 MASKED(int param_1)

{
  int *piVar1;
  int *piVar2;
  uint uVar3;
  int iVar4;
  
  if ((byte)(*(char *)(param_1 + 0xc) - 3U) < 2) {
    iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0xac);
    if ((DAT_001c0e54 != iVar4) && (iVar4 != 0)) {
      iVar4 = *(int *)(*(int *)(param_1 + 0x14) + 0x80);
      if (iVar4 == 0) {
        iVar4 = FUN_00023800(0xc);
        *(int *)(*(int *)(param_1 + 0x14) + 0x80) = iVar4;
        *(int *)(iVar4 + 4) = iVar4;
        *(undefined4 *)(iVar4 + 8) = 0;
      }
      else if (*(int *)(iVar4 + 4) == 0) {
        *(int *)(iVar4 + 4) = iVar4;
      }
      if (DAT_001c0550 - DAT_001c054c < 8) {
        _obstack_newchunk(&DAT_001c0540,8);
      }
      piVar2 = DAT_001c0548;
      if ((int *)(DAT_001c054c + 8) == DAT_001c0548) {
        DAT_001c0568 = DAT_001c0568 | 2;
      }
      DAT_001c054c = ~DAT_001c0558 & (int)(DAT_001c054c + 8) + DAT_001c0558;
      if (DAT_001c0550 - DAT_001c0544 < DAT_001c054c - DAT_001c0544) {
        DAT_001c054c = DAT_001c0550;
      }
      piVar1 = *(int **)(iVar4 + 4);
      uVar3 = DAT_001c054c;
      *DAT_001c0548 = param_1;
      DAT_001c0548 = (int *)uVar3;
      *piVar1 = (int)piVar2;
      *(int **)(iVar4 + 4) = piVar2 + 1;
      *(int *)(iVar4 + 8) = *(int *)(iVar4 + 8) + 1;
      return 1;
    }
  }
  return 1;
}

