
void add_varray_page(varray_t *vp)

{
  vlinks *pvVar1;
  undefined8 uVar2;
  undefined8 uVar3;
  undefined8 uVar4;
  page_type *ppVar5;
  long lVar6;
  vlinks_t *pvVar7;
  long lVar8;
  vlinks *pvVar9;
  
  if (alloc_counts[2].unallocated == 0) {
    alloc_counts[2].cur_page = allocate_page();
    lVar8 = 0x1fe0;
    alloc_counts[2].unallocated = 0xff;
    alloc_counts[2].total_pages = alloc_counts[2].total_pages + 1;
    lVar6 = 0xff;
  }
  else {
    alloc_counts[2].unallocated = alloc_counts[2].unallocated + -1;
    lVar6 = (long)alloc_counts[2].unallocated;
    lVar8 = lVar6 << 5;
  }
  uVar4 = initial_vlinks_15150._24_8_;
  uVar3 = initial_vlinks_15150._16_8_;
  uVar2 = initial_vlinks_15150._8_8_;
  pvVar9 = (vlinks *)((alloc_counts[2].cur_page)->byte + lVar8);
  pvVar7 = (alloc_counts[2].cur_page)->vlinks + lVar6;
  alloc_counts[2].total_alloc = alloc_counts[2].total_alloc + 1;
  pvVar7->prev = (vlinks *)initial_vlinks_15150._0_8_;
  pvVar7->next = (vlinks *)uVar2;
  pvVar7->datum = (page *)uVar3;
  pvVar7->start_index = uVar4;
  ppVar5 = allocate_page();
  alloc_counts[8].total_alloc = alloc_counts[8].total_alloc + 1;
  pvVar7->datum = ppVar5;
  alloc_counts[8].total_pages = alloc_counts[8].total_pages + 1;
  pvVar7->start_index = vp->num_allocated;
  vp->objects_last_page = 0;
  if (vp->first != (vlinks_t *)0x0) {
    pvVar1 = vp->last;
    pvVar7->prev = pvVar1;
    pvVar1->next = pvVar9;
    vp->last = pvVar9;
    return;
  }
  vp->last = pvVar9;
  vp->first = pvVar9;
  return;
}



/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

void FUN_00114210(long *param_1)

{
  long lVar1;
  long lVar2;
  long lVar3;
  long lVar4;
  long *plVar5;
  long lVar6;
  
  if (DAT_0016d368 == 0) {
    DAT_0016d358 = FUN_00114110();
    lVar6 = 0x1fe0;
    DAT_0016d368 = 0xff;
    _DAT_0016d374 = _DAT_0016d374 + 1;
    lVar4 = 0xff;
  }
  else {
    DAT_0016d368 = DAT_0016d368 + -1;
    lVar4 = (long)DAT_0016d368;
    lVar6 = lVar4 << 5;
  }
  lVar3 = _UNK_00147598;
  lVar2 = _DAT_00147590;
  lVar1 = _UNK_00147588;
  lVar6 = lVar6 + DAT_0016d358;
  plVar5 = (long *)(lVar4 * 0x20 + DAT_0016d358);
  _DAT_0016d36c = _DAT_0016d36c + 1;
  *plVar5 = _DAT_00147580;
  plVar5[1] = lVar1;
  plVar5[2] = lVar2;
  plVar5[3] = lVar3;
  lVar4 = FUN_00114110();
  _DAT_0016d45c = _DAT_0016d45c + 1;
  plVar5[2] = lVar4;
  _DAT_0016d464 = _DAT_0016d464 + 1;
  plVar5[3] = param_1[2];
  *(undefined2 *)((long)param_1 + 0x1c) = 0;
  if (*param_1 != 0) {
    lVar4 = param_1[1];
    *plVar5 = lVar4;
    *(long *)(lVar4 + 8) = lVar6;
    param_1[1] = lVar6;
    return;
  }
  param_1[1] = lVar6;
  *param_1 = lVar6;
  return;
}


MOV EDX,dword ptr [0x0016d368]
PUSH R12
PUSH RBP
MOV RBP,RDI
PUSH RBX
TEST EDX,EDX
JZ 0x001142b0
SUB EDX,0x1
MOV RAX,qword ptr [0x0016d358]
MOVSXD RBX,EDX
MOV R12,RBX
SHL R12,0x5
SHL RBX,0x5
MOVDQA XMM0,xmmword ptr [0x00147580]
ADD R12,RAX
MOVDQA XMM1,xmmword ptr [0x00147590]
ADD RBX,RAX
ADD dword ptr [0x0016d36c],0x1
MOVUPS xmmword ptr [RBX],XMM0
MOVUPS xmmword ptr [RBX + 0x10],XMM1
MOV dword ptr [0x0016d368],EDX
CALL 0x00114110
ADD dword ptr [0x0016d45c],0x1
MOV qword ptr [RBX + 0x10],RAX
MOV RAX,qword ptr [RBP + 0x10]
ADD dword ptr [0x0016d464],0x1
MOV qword ptr [RBX + 0x18],RAX
XOR EAX,EAX
CMP qword ptr [RBP],0x0
MOV word ptr [RBP + 0x1c],AX
JZ 0x001142e0
MOV RAX,qword ptr [RBP + 0x8]
MOV qword ptr [RBX],RAX
MOV qword ptr [RAX + 0x8],R12
POP RBX
MOV qword ptr [RBP + 0x8],R12
POP RBP
POP R12
RET
CALL 0x00114110
MOV R12D,0x1fe0
MOV EDX,0xff
ADD dword ptr [0x0016d374],0x1
MOV qword ptr [0x0016d358],RAX
MOV EBX,0xff
JMP 0x00114239
MOV qword ptr [RBP + 0x8],R12
POP RBX
MOV qword ptr [RBP],R12
POP RBP
POP R12
RET
(translation_unit "/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n\nvoid FUN_00114210(long *param_1)\n\n{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  long *plVar5;\n  long lVar6;\n  \n  if (DAT_0016d368 == 0) {\n    DAT_0016d358 = FUN_00114110();\n    lVar6 = 0x1fe0;\n    DAT_0016d368 = 0xff;\n    _DAT_0016d374 = _DAT_0016d374 + 1;\n    lVar4 = 0xff;\n  }\n  else {\n    DAT_0016d368 = DAT_0016d368 + -1;\n    lVar4 = (long)DAT_0016d368;\n    lVar6 = lVar4 << 5;\n  }\n  lVar3 = _UNK_00147598;\n  lVar2 = _DAT_00147590;\n  lVar1 = _UNK_00147588;\n  lVar6 = lVar6 + DAT_0016d358;\n  plVar5 = (long *)(lVar4 * 0x20 + DAT_0016d358);\n  _DAT_0016d36c = _DAT_0016d36c + 1;\n  *plVar5 = _DAT_00147580;\n  plVar5[1] = lVar1;\n  plVar5[2] = lVar2;\n  plVar5[3] = lVar3;\n  lVar4 = FUN_00114110();\n  _DAT_0016d45c = _DAT_0016d45c + 1;\n  plVar5[2] = lVar4;\n  _DAT_0016d464 = _DAT_0016d464 + 1;\n  plVar5[3] = param_1[2];\n  *(undefined2 *)((long)param_1 + 0x1c) = 0;\n  if (*param_1 != 0) {\n    lVar4 = param_1[1];\n    *plVar5 = lVar4;\n    *(long *)(lVar4 + 8) = lVar6;\n    param_1[1] = lVar6;\n    return;\n  }\n  param_1[1] = lVar6;\n  *param_1 = lVar6;\n  return;\n}\n\n" comment (function_definition "void FUN_00114210(long *param_1)\n\n{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  long *plVar5;\n  long lVar6;\n  \n  if (DAT_0016d368 == 0) {\n    DAT_0016d358 = FUN_00114110();\n    lVar6 = 0x1fe0;\n    DAT_0016d368 = 0xff;\n    _DAT_0016d374 = _DAT_0016d374 + 1;\n    lVar4 = 0xff;\n  }\n  else {\n    DAT_0016d368 = DAT_0016d368 + -1;\n    lVar4 = (long)DAT_0016d368;\n    lVar6 = lVar4 << 5;\n  }\n  lVar3 = _UNK_00147598;\n  lVar2 = _DAT_00147590;\n  lVar1 = _UNK_00147588;\n  lVar6 = lVar6 + DAT_0016d358;\n  plVar5 = (long *)(lVar4 * 0x20 + DAT_0016d358);\n  _DAT_0016d36c = _DAT_0016d36c + 1;\n  *plVar5 = _DAT_00147580;\n  plVar5[1] = lVar1;\n  plVar5[2] = lVar2;\n  plVar5[3] = lVar3;\n  lVar4 = FUN_00114110();\n  _DAT_0016d45c = _DAT_0016d45c + 1;\n  plVar5[2] = lVar4;\n  _DAT_0016d464 = _DAT_0016d464 + 1;\n  plVar5[3] = param_1[2];\n  *(undefined2 *)((long)param_1 + 0x1c) = 0;\n  if (*param_1 != 0) {\n    lVar4 = param_1[1];\n    *plVar5 = lVar4;\n    *(long *)(lVar4 + 8) = lVar6;\n    param_1[1] = lVar6;\n    return;\n  }\n  param_1[1] = lVar6;\n  *param_1 = lVar6;\n  return;\n}" primitive_type (function_declarator "FUN_00114210(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  long *plVar5;\n  long lVar6;\n  \n  if (DAT_0016d368 == 0) {\n    DAT_0016d358 = FUN_00114110();\n    lVar6 = 0x1fe0;\n    DAT_0016d368 = 0xff;\n    _DAT_0016d374 = _DAT_0016d374 + 1;\n    lVar4 = 0xff;\n  }\n  else {\n    DAT_0016d368 = DAT_0016d368 + -1;\n    lVar4 = (long)DAT_0016d368;\n    lVar6 = lVar4 << 5;\n  }\n  lVar3 = _UNK_00147598;\n  lVar2 = _DAT_00147590;\n  lVar1 = _UNK_00147588;\n  lVar6 = lVar6 + DAT_0016d358;\n  plVar5 = (long *)(lVar4 * 0x20 + DAT_0016d358);\n  _DAT_0016d36c = _DAT_0016d36c + 1;\n  *plVar5 = _DAT_00147580;\n  plVar5[1] = lVar1;\n  plVar5[2] = lVar2;\n  plVar5[3] = lVar3;\n  lVar4 = FUN_00114110();\n  _DAT_0016d45c = _DAT_0016d45c + 1;\n  plVar5[2] = lVar4;\n  _DAT_0016d464 = _DAT_0016d464 + 1;\n  plVar5[3] = param_1[2];\n  *(undefined2 *)((long)param_1 + 0x1c) = 0;\n  if (*param_1 != 0) {\n    lVar4 = param_1[1];\n    *plVar5 = lVar4;\n    *(long *)(lVar4 + 8) = lVar6;\n    param_1[1] = lVar6;\n    return;\n  }\n  param_1[1] = lVar6;\n  *param_1 = lVar6;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "long *plVar5;" (sized_type_specifier "long" long) (pointer_declarator "*plVar5" * identifier) ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (DAT_0016d368 == 0) {\n    DAT_0016d358 = FUN_00114110();\n    lVar6 = 0x1fe0;\n    DAT_0016d368 = 0xff;\n    _DAT_0016d374 = _DAT_0016d374 + 1;\n    lVar4 = 0xff;\n  }\n  else {\n    DAT_0016d368 = DAT_0016d368 + -1;\n    lVar4 = (long)DAT_0016d368;\n    lVar6 = lVar4 << 5;\n  }" if (parenthesized_expression "(DAT_0016d368 == 0)" ( (binary_expression "DAT_0016d368 == 0" identifier == number_literal) )) (compound_statement "{\n    DAT_0016d358 = FUN_00114110();\n    lVar6 = 0x1fe0;\n    DAT_0016d368 = 0xff;\n    _DAT_0016d374 = _DAT_0016d374 + 1;\n    lVar4 = 0xff;\n  }" { (expression_statement "DAT_0016d358 = FUN_00114110();" (assignment_expression "DAT_0016d358 = FUN_00114110()" identifier = (call_expression "FUN_00114110()" identifier (argument_list "()" ( )))) ;) (expression_statement "lVar6 = 0x1fe0;" (assignment_expression "lVar6 = 0x1fe0" identifier = number_literal) ;) (expression_statement "DAT_0016d368 = 0xff;" (assignment_expression "DAT_0016d368 = 0xff" identifier = number_literal) ;) (expression_statement "_DAT_0016d374 = _DAT_0016d374 + 1;" (assignment_expression "_DAT_0016d374 = _DAT_0016d374 + 1" identifier = (binary_expression "_DAT_0016d374 + 1" identifier + number_literal)) ;) (expression_statement "lVar4 = 0xff;" (assignment_expression "lVar4 = 0xff" identifier = number_literal) ;) }) (else_clause "else {\n    DAT_0016d368 = DAT_0016d368 + -1;\n    lVar4 = (long)DAT_0016d368;\n    lVar6 = lVar4 << 5;\n  }" else (compound_statement "{\n    DAT_0016d368 = DAT_0016d368 + -1;\n    lVar4 = (long)DAT_0016d368;\n    lVar6 = lVar4 << 5;\n  }" { (expression_statement "DAT_0016d368 = DAT_0016d368 + -1;" (assignment_expression "DAT_0016d368 = DAT_0016d368 + -1" identifier = (binary_expression "DAT_0016d368 + -1" identifier + number_literal)) ;) (expression_statement "lVar4 = (long)DAT_0016d368;" (assignment_expression "lVar4 = (long)DAT_0016d368" identifier = (cast_expression "(long)DAT_0016d368" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "lVar6 = lVar4 << 5;" (assignment_expression "lVar6 = lVar4 << 5" identifier = (binary_expression "lVar4 << 5" identifier << number_literal)) ;) }))) (expression_statement "lVar3 = _UNK_00147598;" (assignment_expression "lVar3 = _UNK_00147598" identifier = identifier) ;) (expression_statement "lVar2 = _DAT_00147590;" (assignment_expression "lVar2 = _DAT_00147590" identifier = identifier) ;) (expression_statement "lVar1 = _UNK_00147588;" (assignment_expression "lVar1 = _UNK_00147588" identifier = identifier) ;) (expression_statement "lVar6 = lVar6 + DAT_0016d358;" (assignment_expression "lVar6 = lVar6 + DAT_0016d358" identifier = (binary_expression "lVar6 + DAT_0016d358" identifier + identifier)) ;) (expression_statement "plVar5 = (long *)(lVar4 * 0x20 + DAT_0016d358);" (assignment_expression "plVar5 = (long *)(lVar4 * 0x20 + DAT_0016d358)" identifier = (cast_expression "(long *)(lVar4 * 0x20 + DAT_0016d358)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 * 0x20 + DAT_0016d358)" ( (binary_expression "lVar4 * 0x20 + DAT_0016d358" (binary_expression "lVar4 * 0x20" identifier * number_literal) + identifier) )))) ;) (expression_statement "_DAT_0016d36c = _DAT_0016d36c + 1;" (assignment_expression "_DAT_0016d36c = _DAT_0016d36c + 1" identifier = (binary_expression "_DAT_0016d36c + 1" identifier + number_literal)) ;) (expression_statement "*plVar5 = _DAT_00147580;" (assignment_expression "*plVar5 = _DAT_00147580" (pointer_expression "*plVar5" * identifier) = identifier) ;) (expression_statement "plVar5[1] = lVar1;" (assignment_expression "plVar5[1] = lVar1" (subscript_expression "plVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "plVar5[2] = lVar2;" (assignment_expression "plVar5[2] = lVar2" (subscript_expression "plVar5[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "plVar5[3] = lVar3;" (assignment_expression "plVar5[3] = lVar3" (subscript_expression "plVar5[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "lVar4 = FUN_00114110();" (assignment_expression "lVar4 = FUN_00114110()" identifier = (call_expression "FUN_00114110()" identifier (argument_list "()" ( )))) ;) (expression_statement "_DAT_0016d45c = _DAT_0016d45c + 1;" (assignment_expression "_DAT_0016d45c = _DAT_0016d45c + 1" identifier = (binary_expression "_DAT_0016d45c + 1" identifier + number_literal)) ;) (expression_statement "plVar5[2] = lVar4;" (assignment_expression "plVar5[2] = lVar4" (subscript_expression "plVar5[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "_DAT_0016d464 = _DAT_0016d464 + 1;" (assignment_expression "_DAT_0016d464 = _DAT_0016d464 + 1" identifier = (binary_expression "_DAT_0016d464 + 1" identifier + number_literal)) ;) (expression_statement "plVar5[3] = param_1[2];" (assignment_expression "plVar5[3] = param_1[2]" (subscript_expression "plVar5[3]" identifier [ number_literal ]) = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "*(undefined2 *)((long)param_1 + 0x1c) = 0;" (assignment_expression "*(undefined2 *)((long)param_1 + 0x1c) = 0" (pointer_expression "*(undefined2 *)((long)param_1 + 0x1c)" * (cast_expression "(undefined2 *)((long)param_1 + 0x1c)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x1c)" ( (binary_expression "(long)param_1 + 0x1c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if (*param_1 != 0) {\n    lVar4 = param_1[1];\n    *plVar5 = lVar4;\n    *(long *)(lVar4 + 8) = lVar6;\n    param_1[1] = lVar6;\n    return;\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    lVar4 = param_1[1];\n    *plVar5 = lVar4;\n    *(long *)(lVar4 + 8) = lVar6;\n    param_1[1] = lVar6;\n    return;\n  }" { (expression_statement "lVar4 = param_1[1];" (assignment_expression "lVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "*plVar5 = lVar4;" (assignment_expression "*plVar5 = lVar4" (pointer_expression "*plVar5" * identifier) = identifier) ;) (expression_statement "*(long *)(lVar4 + 8) = lVar6;" (assignment_expression "*(long *)(lVar4 + 8) = lVar6" (pointer_expression "*(long *)(lVar4 + 8)" * (cast_expression "(long *)(lVar4 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 8)" ( (binary_expression "lVar4 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "param_1[1] = lVar6;" (assignment_expression "param_1[1] = lVar6" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "param_1[1] = lVar6;" (assignment_expression "param_1[1] = lVar6" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_1 = lVar6;" (assignment_expression "*param_1 = lVar6" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void add_varray_page(varray_t *vp)\n\n{\n  vlinks *pvVar1;\n  undefined8 uVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  page_type *ppVar5;\n  long lVar6;\n  vlinks_t *pvVar7;\n  long lVar8;\n  vlinks *pvVar9;\n  \n  if (alloc_counts[2].unallocated == 0) {\n    alloc_counts[2].cur_page = allocate_page();\n    lVar8 = 0x1fe0;\n    alloc_counts[2].unallocated = 0xff;\n    alloc_counts[2].total_pages = alloc_counts[2].total_pages + 1;\n    lVar6 = 0xff;\n  }\n  else {\n    alloc_counts[2].unallocated = alloc_counts[2].unallocated + -1;\n    lVar6 = (long)alloc_counts[2].unallocated;\n    lVar8 = lVar6 << 5;\n  }\n  uVar4 = initial_vlinks_15150._24_8_;\n  uVar3 = initial_vlinks_15150._16_8_;\n  uVar2 = initial_vlinks_15150._8_8_;\n  pvVar9 = (vlinks *)((alloc_counts[2].cur_page)->byte + lVar8);\n  pvVar7 = (alloc_counts[2].cur_page)->vlinks + lVar6;\n  alloc_counts[2].total_alloc = alloc_counts[2].total_alloc + 1;\n  pvVar7->prev = (vlinks *)initial_vlinks_15150._0_8_;\n  pvVar7->next = (vlinks *)uVar2;\n  pvVar7->datum = (page *)uVar3;\n  pvVar7->start_index = uVar4;\n  ppVar5 = allocate_page();\n  alloc_counts[8].total_alloc = alloc_counts[8].total_alloc + 1;\n  pvVar7->datum = ppVar5;\n  alloc_counts[8].total_pages = alloc_counts[8].total_pages + 1;\n  pvVar7->start_index = vp->num_allocated;\n  vp->objects_last_page = 0;\n  if (vp->first != (vlinks_t *)0x0) {\n    pvVar1 = vp->last;\n    pvVar7->prev = pvVar1;\n    pvVar1->next = pvVar9;\n    vp->last = pvVar9;\n    return;\n  }\n  vp->last = pvVar9;\n  vp->first = pvVar9;\n  return;\n}\n\n" (function_definition "void add_varray_page(varray_t *vp)\n\n{\n  vlinks *pvVar1;\n  undefined8 uVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  page_type *ppVar5;\n  long lVar6;\n  vlinks_t *pvVar7;\n  long lVar8;\n  vlinks *pvVar9;\n  \n  if (alloc_counts[2].unallocated == 0) {\n    alloc_counts[2].cur_page = allocate_page();\n    lVar8 = 0x1fe0;\n    alloc_counts[2].unallocated = 0xff;\n    alloc_counts[2].total_pages = alloc_counts[2].total_pages + 1;\n    lVar6 = 0xff;\n  }\n  else {\n    alloc_counts[2].unallocated = alloc_counts[2].unallocated + -1;\n    lVar6 = (long)alloc_counts[2].unallocated;\n    lVar8 = lVar6 << 5;\n  }\n  uVar4 = initial_vlinks_15150._24_8_;\n  uVar3 = initial_vlinks_15150._16_8_;\n  uVar2 = initial_vlinks_15150._8_8_;\n  pvVar9 = (vlinks *)((alloc_counts[2].cur_page)->byte + lVar8);\n  pvVar7 = (alloc_counts[2].cur_page)->vlinks + lVar6;\n  alloc_counts[2].total_alloc = alloc_counts[2].total_alloc + 1;\n  pvVar7->prev = (vlinks *)initial_vlinks_15150._0_8_;\n  pvVar7->next = (vlinks *)uVar2;\n  pvVar7->datum = (page *)uVar3;\n  pvVar7->start_index = uVar4;\n  ppVar5 = allocate_page();\n  alloc_counts[8].total_alloc = alloc_counts[8].total_alloc + 1;\n  pvVar7->datum = ppVar5;\n  alloc_counts[8].total_pages = alloc_counts[8].total_pages + 1;\n  pvVar7->start_index = vp->num_allocated;\n  vp->objects_last_page = 0;\n  if (vp->first != (vlinks_t *)0x0) {\n    pvVar1 = vp->last;\n    pvVar7->prev = pvVar1;\n    pvVar1->next = pvVar9;\n    vp->last = pvVar9;\n    return;\n  }\n  vp->last = pvVar9;\n  vp->first = pvVar9;\n  return;\n}" primitive_type (function_declarator "add_varray_page(varray_t *vp)" identifier (parameter_list "(varray_t *vp)" ( (parameter_declaration "varray_t *vp" type_identifier (pointer_declarator "*vp" * identifier)) ))) (compound_statement "{\n  vlinks *pvVar1;\n  undefined8 uVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  page_type *ppVar5;\n  long lVar6;\n  vlinks_t *pvVar7;\n  long lVar8;\n  vlinks *pvVar9;\n  \n  if (alloc_counts[2].unallocated == 0) {\n    alloc_counts[2].cur_page = allocate_page();\n    lVar8 = 0x1fe0;\n    alloc_counts[2].unallocated = 0xff;\n    alloc_counts[2].total_pages = alloc_counts[2].total_pages + 1;\n    lVar6 = 0xff;\n  }\n  else {\n    alloc_counts[2].unallocated = alloc_counts[2].unallocated + -1;\n    lVar6 = (long)alloc_counts[2].unallocated;\n    lVar8 = lVar6 << 5;\n  }\n  uVar4 = initial_vlinks_15150._24_8_;\n  uVar3 = initial_vlinks_15150._16_8_;\n  uVar2 = initial_vlinks_15150._8_8_;\n  pvVar9 = (vlinks *)((alloc_counts[2].cur_page)->byte + lVar8);\n  pvVar7 = (alloc_counts[2].cur_page)->vlinks + lVar6;\n  alloc_counts[2].total_alloc = alloc_counts[2].total_alloc + 1;\n  pvVar7->prev = (vlinks *)initial_vlinks_15150._0_8_;\n  pvVar7->next = (vlinks *)uVar2;\n  pvVar7->datum = (page *)uVar3;\n  pvVar7->start_index = uVar4;\n  ppVar5 = allocate_page();\n  alloc_counts[8].total_alloc = alloc_counts[8].total_alloc + 1;\n  pvVar7->datum = ppVar5;\n  alloc_counts[8].total_pages = alloc_counts[8].total_pages + 1;\n  pvVar7->start_index = vp->num_allocated;\n  vp->objects_last_page = 0;\n  if (vp->first != (vlinks_t *)0x0) {\n    pvVar1 = vp->last;\n    pvVar7->prev = pvVar1;\n    pvVar1->next = pvVar9;\n    vp->last = pvVar9;\n    return;\n  }\n  vp->last = pvVar9;\n  vp->first = pvVar9;\n  return;\n}" { (declaration "vlinks *pvVar1;" type_identifier (pointer_declarator "*pvVar1" * identifier) ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "page_type *ppVar5;" type_identifier (pointer_declarator "*ppVar5" * identifier) ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "vlinks_t *pvVar7;" type_identifier (pointer_declarator "*pvVar7" * identifier) ;) (declaration "long lVar8;" (sized_type_specifier "long" long) identifier ;) (declaration "vlinks *pvVar9;" type_identifier (pointer_declarator "*pvVar9" * identifier) ;) (if_statement "if (alloc_counts[2].unallocated == 0) {\n    alloc_counts[2].cur_page = allocate_page();\n    lVar8 = 0x1fe0;\n    alloc_counts[2].unallocated = 0xff;\n    alloc_counts[2].total_pages = alloc_counts[2].total_pages + 1;\n    lVar6 = 0xff;\n  }\n  else {\n    alloc_counts[2].unallocated = alloc_counts[2].unallocated + -1;\n    lVar6 = (long)alloc_counts[2].unallocated;\n    lVar8 = lVar6 << 5;\n  }" if (parenthesized_expression "(alloc_counts[2].unallocated == 0)" ( (binary_expression "alloc_counts[2].unallocated == 0" (field_expression "alloc_counts[2].unallocated" (subscript_expression "alloc_counts[2]" identifier [ number_literal ]) . field_identifier) == number_literal) )) (compound_statement "{\n    alloc_counts[2].cur_page = allocate_page();\n    lVar8 = 0x1fe0;\n    alloc_counts[2].unallocated = 0xff;\n    alloc_counts[2].total_pages = alloc_counts[2].total_pages + 1;\n    lVar6 = 0xff;\n  }" { (expression_statement "alloc_counts[2].cur_page = allocate_page();" (assignment_expression "alloc_counts[2].cur_page = allocate_page()" (field_expression "alloc_counts[2].cur_page" (subscript_expression "alloc_counts[2]" identifier [ number_literal ]) . field_identifier) = (call_expression "allocate_page()" identifier (argument_list "()" ( )))) ;) (expression_statement "lVar8 = 0x1fe0;" (assignment_expression "lVar8 = 0x1fe0" identifier = number_literal) ;) (expression_statement "alloc_counts[2].unallocated = 0xff;" (assignment_expression "alloc_counts[2].unallocated = 0xff" (field_expression "alloc_counts[2].unallocated" (subscript_expression "alloc_counts[2]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "alloc_counts[2].total_pages = alloc_counts[2].total_pages + 1;" (assignment_expression "alloc_counts[2].total_pages = alloc_counts[2].total_pages + 1" (field_expression "alloc_counts[2].total_pages" (subscript_expression "alloc_counts[2]" identifier [ number_literal ]) . field_identifier) = (binary_expression "alloc_counts[2].total_pages + 1" (field_expression "alloc_counts[2].total_pages" (subscript_expression "alloc_counts[2]" identifier [ number_literal ]) . field_identifier) + number_literal)) ;) (expression_statement "lVar6 = 0xff;" (assignment_expression "lVar6 = 0xff" identifier = number_literal) ;) }) (else_clause "else {\n    alloc_counts[2].unallocated = alloc_counts[2].unallocated + -1;\n    lVar6 = (long)alloc_counts[2].unallocated;\n    lVar8 = lVar6 << 5;\n  }" else (compound_statement "{\n    alloc_counts[2].unallocated = alloc_counts[2].unallocated + -1;\n    lVar6 = (long)alloc_counts[2].unallocated;\n    lVar8 = lVar6 << 5;\n  }" { (expression_statement "alloc_counts[2].unallocated = alloc_counts[2].unallocated + -1;" (assignment_expression "alloc_counts[2].unallocated = alloc_counts[2].unallocated + -1" (field_expression "alloc_counts[2].unallocated" (subscript_expression "alloc_counts[2]" identifier [ number_literal ]) . field_identifier) = (binary_expression "alloc_counts[2].unallocated + -1" (field_expression "alloc_counts[2].unallocated" (subscript_expression "alloc_counts[2]" identifier [ number_literal ]) . field_identifier) + number_literal)) ;) (expression_statement "lVar6 = (long)alloc_counts[2].unallocated;" (assignment_expression "lVar6 = (long)alloc_counts[2].unallocated" identifier = (cast_expression "(long)alloc_counts[2].unallocated" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "alloc_counts[2].unallocated" (subscript_expression "alloc_counts[2]" identifier [ number_literal ]) . field_identifier))) ;) (expression_statement "lVar8 = lVar6 << 5;" (assignment_expression "lVar8 = lVar6 << 5" identifier = (binary_expression "lVar6 << 5" identifier << number_literal)) ;) }))) (expression_statement "uVar4 = initial_vlinks_15150._24_8_;" (assignment_expression "uVar4 = initial_vlinks_15150._24_8_" identifier = (field_expression "initial_vlinks_15150._24_8_" identifier . field_identifier)) ;) (expression_statement "uVar3 = initial_vlinks_15150._16_8_;" (assignment_expression "uVar3 = initial_vlinks_15150._16_8_" identifier = (field_expression "initial_vlinks_15150._16_8_" identifier . field_identifier)) ;) (expression_statement "uVar2 = initial_vlinks_15150._8_8_;" (assignment_expression "uVar2 = initial_vlinks_15150._8_8_" identifier = (field_expression "initial_vlinks_15150._8_8_" identifier . field_identifier)) ;) (expression_statement "pvVar9 = (vlinks *)((alloc_counts[2].cur_page)->byte + lVar8);" (assignment_expression "pvVar9 = (vlinks *)((alloc_counts[2].cur_page)->byte + lVar8)" identifier = (cast_expression "(vlinks *)((alloc_counts[2].cur_page)->byte + lVar8)" ( (type_descriptor "vlinks *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((alloc_counts[2].cur_page)->byte + lVar8)" ( (binary_expression "(alloc_counts[2].cur_page)->byte + lVar8" (field_expression "(alloc_counts[2].cur_page)->byte" (parenthesized_expression "(alloc_counts[2].cur_page)" ( (field_expression "alloc_counts[2].cur_page" (subscript_expression "alloc_counts[2]" identifier [ number_literal ]) . field_identifier) )) -> field_identifier) + identifier) )))) ;) (expression_statement "pvVar7 = (alloc_counts[2].cur_page)->vlinks + lVar6;" (assignment_expression "pvVar7 = (alloc_counts[2].cur_page)->vlinks + lVar6" identifier = (binary_expression "(alloc_counts[2].cur_page)->vlinks + lVar6" (field_expression "(alloc_counts[2].cur_page)->vlinks" (parenthesized_expression "(alloc_counts[2].cur_page)" ( (field_expression "alloc_counts[2].cur_page" (subscript_expression "alloc_counts[2]" identifier [ number_literal ]) . field_identifier) )) -> field_identifier) + identifier)) ;) (expression_statement "alloc_counts[2].total_alloc = alloc_counts[2].total_alloc + 1;" (assignment_expression "alloc_counts[2].total_alloc = alloc_counts[2].total_alloc + 1" (field_expression "alloc_counts[2].total_alloc" (subscript_expression "alloc_counts[2]" identifier [ number_literal ]) . field_identifier) = (binary_expression "alloc_counts[2].total_alloc + 1" (field_expression "alloc_counts[2].total_alloc" (subscript_expression "alloc_counts[2]" identifier [ number_literal ]) . field_identifier) + number_literal)) ;) (expression_statement "pvVar7->prev = (vlinks *)initial_vlinks_15150._0_8_;" (assignment_expression "pvVar7->prev = (vlinks *)initial_vlinks_15150._0_8_" (field_expression "pvVar7->prev" identifier -> field_identifier) = (cast_expression "(vlinks *)initial_vlinks_15150._0_8_" ( (type_descriptor "vlinks *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "initial_vlinks_15150._0_8_" identifier . field_identifier))) ;) (expression_statement "pvVar7->next = (vlinks *)uVar2;" (assignment_expression "pvVar7->next = (vlinks *)uVar2" (field_expression "pvVar7->next" identifier -> field_identifier) = (cast_expression "(vlinks *)uVar2" ( (type_descriptor "vlinks *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pvVar7->datum = (page *)uVar3;" (assignment_expression "pvVar7->datum = (page *)uVar3" (field_expression "pvVar7->datum" identifier -> field_identifier) = (cast_expression "(page *)uVar3" ( (type_descriptor "page *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pvVar7->start_index = uVar4;" (assignment_expression "pvVar7->start_index = uVar4" (field_expression "pvVar7->start_index" identifier -> field_identifier) = identifier) ;) (expression_statement "ppVar5 = allocate_page();" (assignment_expression "ppVar5 = allocate_page()" identifier = (call_expression "allocate_page()" identifier (argument_list "()" ( )))) ;) (expression_statement "alloc_counts[8].total_alloc = alloc_counts[8].total_alloc + 1;" (assignment_expression "alloc_counts[8].total_alloc = alloc_counts[8].total_alloc + 1" (field_expression "alloc_counts[8].total_alloc" (subscript_expression "alloc_counts[8]" identifier [ number_literal ]) . field_identifier) = (binary_expression "alloc_counts[8].total_alloc + 1" (field_expression "alloc_counts[8].total_alloc" (subscript_expression "alloc_counts[8]" identifier [ number_literal ]) . field_identifier) + number_literal)) ;) (expression_statement "pvVar7->datum = ppVar5;" (assignment_expression "pvVar7->datum = ppVar5" (field_expression "pvVar7->datum" identifier -> field_identifier) = identifier) ;) (expression_statement "alloc_counts[8].total_pages = alloc_counts[8].total_pages + 1;" (assignment_expression "alloc_counts[8].total_pages = alloc_counts[8].total_pages + 1" (field_expression "alloc_counts[8].total_pages" (subscript_expression "alloc_counts[8]" identifier [ number_literal ]) . field_identifier) = (binary_expression "alloc_counts[8].total_pages + 1" (field_expression "alloc_counts[8].total_pages" (subscript_expression "alloc_counts[8]" identifier [ number_literal ]) . field_identifier) + number_literal)) ;) (expression_statement "pvVar7->start_index = vp->num_allocated;" (assignment_expression "pvVar7->start_index = vp->num_allocated" (field_expression "pvVar7->start_index" identifier -> field_identifier) = (field_expression "vp->num_allocated" identifier -> field_identifier)) ;) (expression_statement "vp->objects_last_page = 0;" (assignment_expression "vp->objects_last_page = 0" (field_expression "vp->objects_last_page" identifier -> field_identifier) = number_literal) ;) (if_statement "if (vp->first != (vlinks_t *)0x0) {\n    pvVar1 = vp->last;\n    pvVar7->prev = pvVar1;\n    pvVar1->next = pvVar9;\n    vp->last = pvVar9;\n    return;\n  }" if (parenthesized_expression "(vp->first != (vlinks_t *)0x0)" ( (binary_expression "vp->first != (vlinks_t *)0x0" (field_expression "vp->first" identifier -> field_identifier) != (cast_expression "(vlinks_t *)0x0" ( (type_descriptor "vlinks_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pvVar1 = vp->last;\n    pvVar7->prev = pvVar1;\n    pvVar1->next = pvVar9;\n    vp->last = pvVar9;\n    return;\n  }" { (expression_statement "pvVar1 = vp->last;" (assignment_expression "pvVar1 = vp->last" identifier = (field_expression "vp->last" identifier -> field_identifier)) ;) (expression_statement "pvVar7->prev = pvVar1;" (assignment_expression "pvVar7->prev = pvVar1" (field_expression "pvVar7->prev" identifier -> field_identifier) = identifier) ;) (expression_statement "pvVar1->next = pvVar9;" (assignment_expression "pvVar1->next = pvVar9" (field_expression "pvVar1->next" identifier -> field_identifier) = identifier) ;) (expression_statement "vp->last = pvVar9;" (assignment_expression "vp->last = pvVar9" (field_expression "vp->last" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "vp->last = pvVar9;" (assignment_expression "vp->last = pvVar9" (field_expression "vp->last" identifier -> field_identifier) = identifier) ;) (expression_statement "vp->first = pvVar9;" (assignment_expression "vp->first = pvVar9" (field_expression "vp->first" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00114210(long *param_1)\n\n{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  long *plVar5;\n  long lVar6;\n  \n  if (DAT_0016d368 == 0) {\n    DAT_0016d358 = FUN_00114110();\n    lVar6 = 0x1fe0;\n    DAT_0016d368 = 0xff;\n    _DAT_0016d374 = _DAT_0016d374 + 1;\n    lVar4 = 0xff;\n  }\n  else {\n    DAT_0016d368 = DAT_0016d368 + -1;\n    lVar4 = (long)DAT_0016d368;\n    lVar6 = lVar4 << 5;\n  }\n  lVar3 = _UNK_00147598;\n  lVar2 = _DAT_00147590;\n  lVar1 = _UNK_00147588;\n  lVar6 = lVar6 + DAT_0016d358;\n  plVar5 = (long *)(lVar4 * 0x20 + DAT_0016d358);\n  _DAT_0016d36c = _DAT_0016d36c + 1;\n  *plVar5 = _DAT_00147580;\n  plVar5[1] = lVar1;\n  plVar5[2] = lVar2;\n  plVar5[3] = lVar3;\n  lVar4 = FUN_00114110();\n  _DAT_0016d45c = _DAT_0016d45c + 1;\n  plVar5[2] = lVar4;\n  _DAT_0016d464 = _DAT_0016d464 + 1;\n  plVar5[3] = param_1[2];\n  *(undefined2 *)((long)param_1 + 0x1c) = 0;\n  if (*param_1 != 0) {\n    lVar4 = param_1[1];\n    *plVar5 = lVar4;\n    *(long *)(lVar4 + 8) = lVar6;\n    param_1[1] = lVar6;\n    return;\n  }\n  param_1[1] = lVar6;\n  *param_1 = lVar6;\n  return;\n}\n\n" (function_definition "void FUN_00114210(long *param_1)\n\n{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  long *plVar5;\n  long lVar6;\n  \n  if (DAT_0016d368 == 0) {\n    DAT_0016d358 = FUN_00114110();\n    lVar6 = 0x1fe0;\n    DAT_0016d368 = 0xff;\n    _DAT_0016d374 = _DAT_0016d374 + 1;\n    lVar4 = 0xff;\n  }\n  else {\n    DAT_0016d368 = DAT_0016d368 + -1;\n    lVar4 = (long)DAT_0016d368;\n    lVar6 = lVar4 << 5;\n  }\n  lVar3 = _UNK_00147598;\n  lVar2 = _DAT_00147590;\n  lVar1 = _UNK_00147588;\n  lVar6 = lVar6 + DAT_0016d358;\n  plVar5 = (long *)(lVar4 * 0x20 + DAT_0016d358);\n  _DAT_0016d36c = _DAT_0016d36c + 1;\n  *plVar5 = _DAT_00147580;\n  plVar5[1] = lVar1;\n  plVar5[2] = lVar2;\n  plVar5[3] = lVar3;\n  lVar4 = FUN_00114110();\n  _DAT_0016d45c = _DAT_0016d45c + 1;\n  plVar5[2] = lVar4;\n  _DAT_0016d464 = _DAT_0016d464 + 1;\n  plVar5[3] = param_1[2];\n  *(undefined2 *)((long)param_1 + 0x1c) = 0;\n  if (*param_1 != 0) {\n    lVar4 = param_1[1];\n    *plVar5 = lVar4;\n    *(long *)(lVar4 + 8) = lVar6;\n    param_1[1] = lVar6;\n    return;\n  }\n  param_1[1] = lVar6;\n  *param_1 = lVar6;\n  return;\n}" primitive_type (function_declarator "FUN_00114210(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  long *plVar5;\n  long lVar6;\n  \n  if (DAT_0016d368 == 0) {\n    DAT_0016d358 = FUN_00114110();\n    lVar6 = 0x1fe0;\n    DAT_0016d368 = 0xff;\n    _DAT_0016d374 = _DAT_0016d374 + 1;\n    lVar4 = 0xff;\n  }\n  else {\n    DAT_0016d368 = DAT_0016d368 + -1;\n    lVar4 = (long)DAT_0016d368;\n    lVar6 = lVar4 << 5;\n  }\n  lVar3 = _UNK_00147598;\n  lVar2 = _DAT_00147590;\n  lVar1 = _UNK_00147588;\n  lVar6 = lVar6 + DAT_0016d358;\n  plVar5 = (long *)(lVar4 * 0x20 + DAT_0016d358);\n  _DAT_0016d36c = _DAT_0016d36c + 1;\n  *plVar5 = _DAT_00147580;\n  plVar5[1] = lVar1;\n  plVar5[2] = lVar2;\n  plVar5[3] = lVar3;\n  lVar4 = FUN_00114110();\n  _DAT_0016d45c = _DAT_0016d45c + 1;\n  plVar5[2] = lVar4;\n  _DAT_0016d464 = _DAT_0016d464 + 1;\n  plVar5[3] = param_1[2];\n  *(undefined2 *)((long)param_1 + 0x1c) = 0;\n  if (*param_1 != 0) {\n    lVar4 = param_1[1];\n    *plVar5 = lVar4;\n    *(long *)(lVar4 + 8) = lVar6;\n    param_1[1] = lVar6;\n    return;\n  }\n  param_1[1] = lVar6;\n  *param_1 = lVar6;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "long *plVar5;" (sized_type_specifier "long" long) (pointer_declarator "*plVar5" * identifier) ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (DAT_0016d368 == 0) {\n    DAT_0016d358 = FUN_00114110();\n    lVar6 = 0x1fe0;\n    DAT_0016d368 = 0xff;\n    _DAT_0016d374 = _DAT_0016d374 + 1;\n    lVar4 = 0xff;\n  }\n  else {\n    DAT_0016d368 = DAT_0016d368 + -1;\n    lVar4 = (long)DAT_0016d368;\n    lVar6 = lVar4 << 5;\n  }" if (parenthesized_expression "(DAT_0016d368 == 0)" ( (binary_expression "DAT_0016d368 == 0" identifier == number_literal) )) (compound_statement "{\n    DAT_0016d358 = FUN_00114110();\n    lVar6 = 0x1fe0;\n    DAT_0016d368 = 0xff;\n    _DAT_0016d374 = _DAT_0016d374 + 1;\n    lVar4 = 0xff;\n  }" { (expression_statement "DAT_0016d358 = FUN_00114110();" (assignment_expression "DAT_0016d358 = FUN_00114110()" identifier = (call_expression "FUN_00114110()" identifier (argument_list "()" ( )))) ;) (expression_statement "lVar6 = 0x1fe0;" (assignment_expression "lVar6 = 0x1fe0" identifier = number_literal) ;) (expression_statement "DAT_0016d368 = 0xff;" (assignment_expression "DAT_0016d368 = 0xff" identifier = number_literal) ;) (expression_statement "_DAT_0016d374 = _DAT_0016d374 + 1;" (assignment_expression "_DAT_0016d374 = _DAT_0016d374 + 1" identifier = (binary_expression "_DAT_0016d374 + 1" identifier + number_literal)) ;) (expression_statement "lVar4 = 0xff;" (assignment_expression "lVar4 = 0xff" identifier = number_literal) ;) }) (else_clause "else {\n    DAT_0016d368 = DAT_0016d368 + -1;\n    lVar4 = (long)DAT_0016d368;\n    lVar6 = lVar4 << 5;\n  }" else (compound_statement "{\n    DAT_0016d368 = DAT_0016d368 + -1;\n    lVar4 = (long)DAT_0016d368;\n    lVar6 = lVar4 << 5;\n  }" { (expression_statement "DAT_0016d368 = DAT_0016d368 + -1;" (assignment_expression "DAT_0016d368 = DAT_0016d368 + -1" identifier = (binary_expression "DAT_0016d368 + -1" identifier + number_literal)) ;) (expression_statement "lVar4 = (long)DAT_0016d368;" (assignment_expression "lVar4 = (long)DAT_0016d368" identifier = (cast_expression "(long)DAT_0016d368" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "lVar6 = lVar4 << 5;" (assignment_expression "lVar6 = lVar4 << 5" identifier = (binary_expression "lVar4 << 5" identifier << number_literal)) ;) }))) (expression_statement "lVar3 = _UNK_00147598;" (assignment_expression "lVar3 = _UNK_00147598" identifier = identifier) ;) (expression_statement "lVar2 = _DAT_00147590;" (assignment_expression "lVar2 = _DAT_00147590" identifier = identifier) ;) (expression_statement "lVar1 = _UNK_00147588;" (assignment_expression "lVar1 = _UNK_00147588" identifier = identifier) ;) (expression_statement "lVar6 = lVar6 + DAT_0016d358;" (assignment_expression "lVar6 = lVar6 + DAT_0016d358" identifier = (binary_expression "lVar6 + DAT_0016d358" identifier + identifier)) ;) (expression_statement "plVar5 = (long *)(lVar4 * 0x20 + DAT_0016d358);" (assignment_expression "plVar5 = (long *)(lVar4 * 0x20 + DAT_0016d358)" identifier = (cast_expression "(long *)(lVar4 * 0x20 + DAT_0016d358)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 * 0x20 + DAT_0016d358)" ( (binary_expression "lVar4 * 0x20 + DAT_0016d358" (binary_expression "lVar4 * 0x20" identifier * number_literal) + identifier) )))) ;) (expression_statement "_DAT_0016d36c = _DAT_0016d36c + 1;" (assignment_expression "_DAT_0016d36c = _DAT_0016d36c + 1" identifier = (binary_expression "_DAT_0016d36c + 1" identifier + number_literal)) ;) (expression_statement "*plVar5 = _DAT_00147580;" (assignment_expression "*plVar5 = _DAT_00147580" (pointer_expression "*plVar5" * identifier) = identifier) ;) (expression_statement "plVar5[1] = lVar1;" (assignment_expression "plVar5[1] = lVar1" (subscript_expression "plVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "plVar5[2] = lVar2;" (assignment_expression "plVar5[2] = lVar2" (subscript_expression "plVar5[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "plVar5[3] = lVar3;" (assignment_expression "plVar5[3] = lVar3" (subscript_expression "plVar5[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "lVar4 = FUN_00114110();" (assignment_expression "lVar4 = FUN_00114110()" identifier = (call_expression "FUN_00114110()" identifier (argument_list "()" ( )))) ;) (expression_statement "_DAT_0016d45c = _DAT_0016d45c + 1;" (assignment_expression "_DAT_0016d45c = _DAT_0016d45c + 1" identifier = (binary_expression "_DAT_0016d45c + 1" identifier + number_literal)) ;) (expression_statement "plVar5[2] = lVar4;" (assignment_expression "plVar5[2] = lVar4" (subscript_expression "plVar5[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "_DAT_0016d464 = _DAT_0016d464 + 1;" (assignment_expression "_DAT_0016d464 = _DAT_0016d464 + 1" identifier = (binary_expression "_DAT_0016d464 + 1" identifier + number_literal)) ;) (expression_statement "plVar5[3] = param_1[2];" (assignment_expression "plVar5[3] = param_1[2]" (subscript_expression "plVar5[3]" identifier [ number_literal ]) = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "*(undefined2 *)((long)param_1 + 0x1c) = 0;" (assignment_expression "*(undefined2 *)((long)param_1 + 0x1c) = 0" (pointer_expression "*(undefined2 *)((long)param_1 + 0x1c)" * (cast_expression "(undefined2 *)((long)param_1 + 0x1c)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x1c)" ( (binary_expression "(long)param_1 + 0x1c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if (*param_1 != 0) {\n    lVar4 = param_1[1];\n    *plVar5 = lVar4;\n    *(long *)(lVar4 + 8) = lVar6;\n    param_1[1] = lVar6;\n    return;\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    lVar4 = param_1[1];\n    *plVar5 = lVar4;\n    *(long *)(lVar4 + 8) = lVar6;\n    param_1[1] = lVar6;\n    return;\n  }" { (expression_statement "lVar4 = param_1[1];" (assignment_expression "lVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "*plVar5 = lVar4;" (assignment_expression "*plVar5 = lVar4" (pointer_expression "*plVar5" * identifier) = identifier) ;) (expression_statement "*(long *)(lVar4 + 8) = lVar6;" (assignment_expression "*(long *)(lVar4 + 8) = lVar6" (pointer_expression "*(long *)(lVar4 + 8)" * (cast_expression "(long *)(lVar4 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 8)" ( (binary_expression "lVar4 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "param_1[1] = lVar6;" (assignment_expression "param_1[1] = lVar6" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "param_1[1] = lVar6;" (assignment_expression "param_1[1] = lVar6" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_1 = lVar6;" (assignment_expression "*param_1 = lVar6" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT * LIT) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_00114210(long *param_1)\n\n{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  long *plVar5;\n  long lVar6;\n  \n  if (DAT_0016d368 == 0) {\n    DAT_0016d358 = FUN_00114110();\n    lVar6 = 0x1fe0;\n    DAT_0016d368 = 0xff;\n    _DAT_0016d374 = _DAT_0016d374 + 1;\n    lVar4 = 0xff;\n  }\n  else {\n    DAT_0016d368 = DAT_0016d368 + -1;\n    lVar4 = (long)DAT_0016d368;\n    lVar6 = lVar4 << 5;\n  }\n  lVar3 = _UNK_00147598;\n  lVar2 = _DAT_00147590;\n  lVar1 = _UNK_00147588;\n  lVar6 = lVar6 + DAT_0016d358;\n  plVar5 = (long *)(lVar4 * 0x20 + DAT_0016d358);\n  _DAT_0016d36c = _DAT_0016d36c + 1;\n  *plVar5 = _DAT_00147580;\n  plVar5[1] = lVar1;\n  plVar5[2] = lVar2;\n  plVar5[3] = lVar3;\n  lVar4 = FUN_00114110();\n  _DAT_0016d45c = _DAT_0016d45c + 1;\n  plVar5[2] = lVar4;\n  _DAT_0016d464 = _DAT_0016d464 + 1;\n  plVar5[3] = param_1[2];\n  *(undefined2 *)((long)param_1 + 0x1c) = 0;\n  if (*param_1 != 0) {\n    lVar4 = param_1[1];\n    *plVar5 = lVar4;\n    *(long *)(lVar4 + 8) = lVar6;\n    param_1[1] = lVar6;\n    return;\n  }\n  param_1[1] = lVar6;\n  *param_1 = lVar6;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00114210(long *param_1)" (identifier "FUN_00114210") (parameter_list "(long *param_1)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  long *plVar5;\n  long lVar6;\n  \n  if (DAT_0016d368 == 0) {\n    DAT_0016d358 = FUN_00114110();\n    lVar6 = 0x1fe0;\n    DAT_0016d368 = 0xff;\n    _DAT_0016d374 = _DAT_0016d374 + 1;\n    lVar4 = 0xff;\n  }\n  else {\n    DAT_0016d368 = DAT_0016d368 + -1;\n    lVar4 = (long)DAT_0016d368;\n    lVar6 = lVar4 << 5;\n  }\n  lVar3 = _UNK_00147598;\n  lVar2 = _DAT_00147590;\n  lVar1 = _UNK_00147588;\n  lVar6 = lVar6 + DAT_0016d358;\n  plVar5 = (long *)(lVar4 * 0x20 + DAT_0016d358);\n  _DAT_0016d36c = _DAT_0016d36c + 1;\n  *plVar5 = _DAT_00147580;\n  plVar5[1] = lVar1;\n  plVar5[2] = lVar2;\n  plVar5[3] = lVar3;\n  lVar4 = FUN_00114110();\n  _DAT_0016d45c = _DAT_0016d45c + 1;\n  plVar5[2] = lVar4;\n  _DAT_0016d464 = _DAT_0016d464 + 1;\n  plVar5[3] = param_1[2];\n  *(undefined2 *)((long)param_1 + 0x1c) = 0;\n  if (*param_1 != 0) {\n    lVar4 = param_1[1];\n    *plVar5 = lVar4;\n    *(long *)(lVar4 + 8) = lVar6;\n    param_1[1] = lVar6;\n    return;\n  }\n  param_1[1] = lVar6;\n  *param_1 = lVar6;\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "long *plVar5;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar5" (* "*") (identifier "plVar5")) (; ";")) (declaration "long lVar6;" (sized_type_specifier "long" (long "long")) (identifier "lVar6") (; ";")) (if_statement "if (DAT_0016d368 == 0) {\n    DAT_0016d358 = FUN_00114110();\n    lVar6 = 0x1fe0;\n    DAT_0016d368 = 0xff;\n    _DAT_0016d374 = _DAT_0016d374 + 1;\n    lVar4 = 0xff;\n  }\n  else {\n    DAT_0016d368 = DAT_0016d368 + -1;\n    lVar4 = (long)DAT_0016d368;\n    lVar6 = lVar4 << 5;\n  }" (if "if") (parenthesized_expression "(DAT_0016d368 == 0)" (( "(") (binary_expression "DAT_0016d368 == 0" (identifier "DAT_0016d368") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    DAT_0016d358 = FUN_00114110();\n    lVar6 = 0x1fe0;\n    DAT_0016d368 = 0xff;\n    _DAT_0016d374 = _DAT_0016d374 + 1;\n    lVar4 = 0xff;\n  }" ({ "{") (expression_statement "DAT_0016d358 = FUN_00114110();" (assignment_expression "DAT_0016d358 = FUN_00114110()" (identifier "DAT_0016d358") (= "=") (call_expression "FUN_00114110()" (identifier "FUN_00114110") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "lVar6 = 0x1fe0;" (assignment_expression "lVar6 = 0x1fe0" (identifier "lVar6") (= "=") (number_literal "0x1fe0")) (; ";")) (expression_statement "DAT_0016d368 = 0xff;" (assignment_expression "DAT_0016d368 = 0xff" (identifier "DAT_0016d368") (= "=") (number_literal "0xff")) (; ";")) (expression_statement "_DAT_0016d374 = _DAT_0016d374 + 1;" (assignment_expression "_DAT_0016d374 = _DAT_0016d374 + 1" (identifier "_DAT_0016d374") (= "=") (binary_expression "_DAT_0016d374 + 1" (identifier "_DAT_0016d374") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "lVar4 = 0xff;" (assignment_expression "lVar4 = 0xff" (identifier "lVar4") (= "=") (number_literal "0xff")) (; ";")) (} "}")) (else_clause "else {\n    DAT_0016d368 = DAT_0016d368 + -1;\n    lVar4 = (long)DAT_0016d368;\n    lVar6 = lVar4 << 5;\n  }" (else "else") (compound_statement "{\n    DAT_0016d368 = DAT_0016d368 + -1;\n    lVar4 = (long)DAT_0016d368;\n    lVar6 = lVar4 << 5;\n  }" ({ "{") (expression_statement "DAT_0016d368 = DAT_0016d368 + -1;" (assignment_expression "DAT_0016d368 = DAT_0016d368 + -1" (identifier "DAT_0016d368") (= "=") (binary_expression "DAT_0016d368 + -1" (identifier "DAT_0016d368") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "lVar4 = (long)DAT_0016d368;" (assignment_expression "lVar4 = (long)DAT_0016d368" (identifier "lVar4") (= "=") (cast_expression "(long)DAT_0016d368" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "DAT_0016d368"))) (; ";")) (expression_statement "lVar6 = lVar4 << 5;" (assignment_expression "lVar6 = lVar4 << 5" (identifier "lVar6") (= "=") (binary_expression "lVar4 << 5" (identifier "lVar4") (<< "<<") (number_literal "5"))) (; ";")) (} "}")))) (expression_statement "lVar3 = _UNK_00147598;" (assignment_expression "lVar3 = _UNK_00147598" (identifier "lVar3") (= "=") (identifier "_UNK_00147598")) (; ";")) (expression_statement "lVar2 = _DAT_00147590;" (assignment_expression "lVar2 = _DAT_00147590" (identifier "lVar2") (= "=") (identifier "_DAT_00147590")) (; ";")) (expression_statement "lVar1 = _UNK_00147588;" (assignment_expression "lVar1 = _UNK_00147588" (identifier "lVar1") (= "=") (identifier "_UNK_00147588")) (; ";")) (expression_statement "lVar6 = lVar6 + DAT_0016d358;" (assignment_expression "lVar6 = lVar6 + DAT_0016d358" (identifier "lVar6") (= "=") (binary_expression "lVar6 + DAT_0016d358" (identifier "lVar6") (+ "+") (identifier "DAT_0016d358"))) (; ";")) (expression_statement "plVar5 = (long *)(lVar4 * 0x20 + DAT_0016d358);" (assignment_expression "plVar5 = (long *)(lVar4 * 0x20 + DAT_0016d358)" (identifier "plVar5") (= "=") (cast_expression "(long *)(lVar4 * 0x20 + DAT_0016d358)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 * 0x20 + DAT_0016d358)" (( "(") (binary_expression "lVar4 * 0x20 + DAT_0016d358" (binary_expression "lVar4 * 0x20" (identifier "lVar4") (* "*") (number_literal "0x20")) (+ "+") (identifier "DAT_0016d358")) () ")")))) (; ";")) (expression_statement "_DAT_0016d36c = _DAT_0016d36c + 1;" (assignment_expression "_DAT_0016d36c = _DAT_0016d36c + 1" (identifier "_DAT_0016d36c") (= "=") (binary_expression "_DAT_0016d36c + 1" (identifier "_DAT_0016d36c") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*plVar5 = _DAT_00147580;" (assignment_expression "*plVar5 = _DAT_00147580" (pointer_expression "*plVar5" (* "*") (identifier "plVar5")) (= "=") (identifier "_DAT_00147580")) (; ";")) (expression_statement "plVar5[1] = lVar1;" (assignment_expression "plVar5[1] = lVar1" (subscript_expression "plVar5[1]" (identifier "plVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "lVar1")) (; ";")) (expression_statement "plVar5[2] = lVar2;" (assignment_expression "plVar5[2] = lVar2" (subscript_expression "plVar5[2]" (identifier "plVar5") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "lVar2")) (; ";")) (expression_statement "plVar5[3] = lVar3;" (assignment_expression "plVar5[3] = lVar3" (subscript_expression "plVar5[3]" (identifier "plVar5") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "lVar3")) (; ";")) (expression_statement "lVar4 = FUN_00114110();" (assignment_expression "lVar4 = FUN_00114110()" (identifier "lVar4") (= "=") (call_expression "FUN_00114110()" (identifier "FUN_00114110") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "_DAT_0016d45c = _DAT_0016d45c + 1;" (assignment_expression "_DAT_0016d45c = _DAT_0016d45c + 1" (identifier "_DAT_0016d45c") (= "=") (binary_expression "_DAT_0016d45c + 1" (identifier "_DAT_0016d45c") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "plVar5[2] = lVar4;" (assignment_expression "plVar5[2] = lVar4" (subscript_expression "plVar5[2]" (identifier "plVar5") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "lVar4")) (; ";")) (expression_statement "_DAT_0016d464 = _DAT_0016d464 + 1;" (assignment_expression "_DAT_0016d464 = _DAT_0016d464 + 1" (identifier "_DAT_0016d464") (= "=") (binary_expression "_DAT_0016d464 + 1" (identifier "_DAT_0016d464") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "plVar5[3] = param_1[2];" (assignment_expression "plVar5[3] = param_1[2]" (subscript_expression "plVar5[3]" (identifier "plVar5") ([ "[") (number_literal "3") (] "]")) (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "*(undefined2 *)((long)param_1 + 0x1c) = 0;" (assignment_expression "*(undefined2 *)((long)param_1 + 0x1c) = 0" (pointer_expression "*(undefined2 *)((long)param_1 + 0x1c)" (* "*") (cast_expression "(undefined2 *)((long)param_1 + 0x1c)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x1c)" (( "(") (binary_expression "(long)param_1 + 0x1c" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (*param_1 != 0) {\n    lVar4 = param_1[1];\n    *plVar5 = lVar4;\n    *(long *)(lVar4 + 8) = lVar6;\n    param_1[1] = lVar6;\n    return;\n  }" (if "if") (parenthesized_expression "(*param_1 != 0)" (( "(") (binary_expression "*param_1 != 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    lVar4 = param_1[1];\n    *plVar5 = lVar4;\n    *(long *)(lVar4 + 8) = lVar6;\n    param_1[1] = lVar6;\n    return;\n  }" ({ "{") (expression_statement "lVar4 = param_1[1];" (assignment_expression "lVar4 = param_1[1]" (identifier "lVar4") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*plVar5 = lVar4;" (assignment_expression "*plVar5 = lVar4" (pointer_expression "*plVar5" (* "*") (identifier "plVar5")) (= "=") (identifier "lVar4")) (; ";")) (expression_statement "*(long *)(lVar4 + 8) = lVar6;" (assignment_expression "*(long *)(lVar4 + 8) = lVar6" (pointer_expression "*(long *)(lVar4 + 8)" (* "*") (cast_expression "(long *)(lVar4 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 8)" (( "(") (binary_expression "lVar4 + 8" (identifier "lVar4") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "lVar6")) (; ";")) (expression_statement "param_1[1] = lVar6;" (assignment_expression "param_1[1] = lVar6" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "lVar6")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "param_1[1] = lVar6;" (assignment_expression "param_1[1] = lVar6" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "lVar6")) (; ";")) (expression_statement "*param_1 = lVar6;" (assignment_expression "*param_1 = lVar6" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "lVar6")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *vp)

{
  type_2 *pvVar1;
  type_3 uVar2;
  type_3 uVar3;
  type_3 uVar4;
  type_4 *ppVar5;
  long var_2;
  type_5 *pvVar7;
  long var_3;
  type_2 *pvVar9;
  
  if (alloc_counts[2].unallocated == 0) {
    alloc_counts[2].cur_page = var_1();
    var_3 = 0x1fe0;
    alloc_counts[2].unallocated = 0xff;
    alloc_counts[2].total_pages = alloc_counts[2].total_pages + 1;
    var_2 = 0xff;
  }
  else {
    alloc_counts[2].unallocated = alloc_counts[2].unallocated + -1;
    var_2 = (long)alloc_counts[2].unallocated;
    var_3 = var_2 << 5;
  }
  uVar4 = initial_vlinks_15150._24_8_;
  uVar3 = initial_vlinks_15150._16_8_;
  uVar2 = initial_vlinks_15150._8_8_;
  pvVar9 = (type_2 *)((alloc_counts[2].cur_page)->byte + var_3);
  pvVar7 = (alloc_counts[2].cur_page)->type_2 + var_2;
  alloc_counts[2].total_alloc = alloc_counts[2].total_alloc + 1;
  pvVar7->prev = (type_2 *)initial_vlinks_15150._0_8_;
  pvVar7->next = (type_2 *)uVar2;
  pvVar7->datum = (type_6 *)uVar3;
  pvVar7->start_index = uVar4;
  ppVar5 = var_1();
  alloc_counts[8].total_alloc = alloc_counts[8].total_alloc + 1;
  pvVar7->datum = ppVar5;
  alloc_counts[8].total_pages = alloc_counts[8].total_pages + 1;
  pvVar7->start_index = vp->num_allocated;
  vp->objects_last_page = 0;
  if (vp->first != (type_5 *)0x0) {
    pvVar1 = vp->last;
    pvVar7->prev = pvVar1;
    pvVar1->next = pvVar9;
    vp->last = pvVar9;
    return;
  }
  vp->last = pvVar9;
  vp->first = pvVar9;
  return;
}


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

/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

void MASKED(long *param_1)

{
  long lVar1;
  long lVar2;
  long lVar3;
  long lVar4;
  long *plVar5;
  long lVar6;
  
  if (DAT_0016d368 == 0) {
    DAT_0016d358 = FUN_00114110();
    lVar6 = 0x1fe0;
    DAT_0016d368 = 0xff;
    _DAT_0016d374 = _DAT_0016d374 + 1;
    lVar4 = 0xff;
  }
  else {
    DAT_0016d368 = DAT_0016d368 + -1;
    lVar4 = (long)DAT_0016d368;
    lVar6 = lVar4 << 5;
  }
  lVar3 = _UNK_00147598;
  lVar2 = _DAT_00147590;
  lVar1 = _UNK_00147588;
  lVar6 = lVar6 + DAT_0016d358;
  plVar5 = (long *)(lVar4 * 0x20 + DAT_0016d358);
  _DAT_0016d36c = _DAT_0016d36c + 1;
  *plVar5 = _DAT_00147580;
  plVar5[1] = lVar1;
  plVar5[2] = lVar2;
  plVar5[3] = lVar3;
  lVar4 = FUN_00114110();
  _DAT_0016d45c = _DAT_0016d45c + 1;
  plVar5[2] = lVar4;
  _DAT_0016d464 = _DAT_0016d464 + 1;
  plVar5[3] = param_1[2];
  *(undefined2 *)((long)param_1 + 0x1c) = 0;
  if (*param_1 != 0) {
    lVar4 = param_1[1];
    *plVar5 = lVar4;
    *(long *)(lVar4 + 8) = lVar6;
    param_1[1] = lVar6;
    return;
  }
  param_1[1] = lVar6;
  *param_1 = lVar6;
  return;
}

