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

thead_t * allocate_thead(void)

{
  small_free_t sVar1;
  int iVar2;
  
  if (alloc_counts[7].free_list.f_scope == (scope_t *)0x0) {
    if (alloc_counts[7].unallocated == 0) {
      alloc_counts[7].cur_page = allocate_page();
      iVar2 = 0x1fec;
      alloc_counts[7].unallocated = 0x2a9;
      alloc_counts[7].total_pages = alloc_counts[7].total_pages + 1;
    }
    else {
      alloc_counts[7].unallocated = alloc_counts[7].unallocated + -1;
      iVar2 = alloc_counts[7].unallocated * 0xc;
    }
    sVar1.f_scope = (scope_t *)((alloc_counts[7].cur_page)->byte + iVar2);
  }
  else {
    sVar1 = alloc_counts[7].free_list;
    alloc_counts[7].free_list = (small_free_t)(alloc_counts[7].free_list.f_scope)->free;
  }
  alloc_counts[7].total_alloc = alloc_counts[7].total_alloc + 1;
  (sVar1.f_thead)->prev = allocate_thead::initial_thead.prev;
  (sVar1.f_thead)->free = allocate_thead::initial_thead.free;
  (sVar1.f_thead)->first_tag = allocate_thead::initial_thead.first_tag;
  return (thead_t *)sVar1.f_scope;
}



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

void FUN_000200b0(void)

{
  undefined4 *puVar1;
  int iVar2;
  
  if (DAT_00080acc == (undefined4 *)0x0) {
    if (DAT_00080ad0 == 0) {
      DAT_00080ac8 = FUN_00020030();
      iVar2 = 0x1fec;
      DAT_00080ad0 = 0x2a9;
      DAT_00080adc = DAT_00080adc + 1;
    }
    else {
      DAT_00080ad0 = DAT_00080ad0 + -1;
      iVar2 = DAT_00080ad0 * 0xc;
    }
    puVar1 = (undefined4 *)(DAT_00080ac8 + iVar2);
  }
  else {
    puVar1 = DAT_00080acc;
    DAT_00080acc = (undefined4 *)DAT_00080acc[1];
  }
  DAT_00080ad4 = DAT_00080ad4 + 1;
  *puVar1 = DAT_0005837c;
  puVar1[1] = DAT_00058380;
  puVar1[2] = DAT_00058384;
  return;
}


PUSH EBX
CALL 0x00016070
ADD EBX,0x57f4a
SUB ESP,0x8
MOV EAX,dword ptr [EBX + 0x8acc]
TEST EAX,EAX
JZ 0x00020100
MOV EDX,dword ptr [EAX + 0x4]
MOV dword ptr [EBX + 0x8acc],EDX
MOV EDX,dword ptr [EBX + 0xfffe037c]
ADD dword ptr [EBX + 0x8ad4],0x1
MOV dword ptr [EAX],EDX
MOV EDX,dword ptr [EBX + 0xfffe0380]
MOV dword ptr [EAX + 0x4],EDX
MOV EDX,dword ptr [EBX + 0xfffe0384]
MOV dword ptr [EAX + 0x8],EDX
ADD ESP,0x8
POP EBX
RET
MOV EDX,dword ptr [EBX + 0x8ad0]
TEST EDX,EDX
JZ 0x00020128
SUB EDX,0x1
MOV EAX,dword ptr [EBX + 0x8ac8]
LEA ECX,[EDX + EDX*0x2]
SHL ECX,0x2
ADD EAX,ECX
MOV dword ptr [EBX + 0x8ad0],EDX
JMP 0x000200d2
CALL 0x00020030
MOV ECX,0x1fec
MOV EDX,0x2a9
ADD dword ptr [EBX + 0x8adc],0x1
MOV dword ptr [EBX + 0x8ac8],EAX
JMP 0x00020119
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000200b0(void)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  if (DAT_00080acc == (undefined4 *)0x0) {\n    if (DAT_00080ad0 == 0) {\n      DAT_00080ac8 = FUN_00020030();\n      iVar2 = 0x1fec;\n      DAT_00080ad0 = 0x2a9;\n      DAT_00080adc = DAT_00080adc + 1;\n    }\n    else {\n      DAT_00080ad0 = DAT_00080ad0 + -1;\n      iVar2 = DAT_00080ad0 * 0xc;\n    }\n    puVar1 = (undefined4 *)(DAT_00080ac8 + iVar2);\n  }\n  else {\n    puVar1 = DAT_00080acc;\n    DAT_00080acc = (undefined4 *)DAT_00080acc[1];\n  }\n  DAT_00080ad4 = DAT_00080ad4 + 1;\n  *puVar1 = DAT_0005837c;\n  puVar1[1] = DAT_00058380;\n  puVar1[2] = DAT_00058384;\n  return;\n}\n\n" comment (function_definition "void FUN_000200b0(void)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  if (DAT_00080acc == (undefined4 *)0x0) {\n    if (DAT_00080ad0 == 0) {\n      DAT_00080ac8 = FUN_00020030();\n      iVar2 = 0x1fec;\n      DAT_00080ad0 = 0x2a9;\n      DAT_00080adc = DAT_00080adc + 1;\n    }\n    else {\n      DAT_00080ad0 = DAT_00080ad0 + -1;\n      iVar2 = DAT_00080ad0 * 0xc;\n    }\n    puVar1 = (undefined4 *)(DAT_00080ac8 + iVar2);\n  }\n  else {\n    puVar1 = DAT_00080acc;\n    DAT_00080acc = (undefined4 *)DAT_00080acc[1];\n  }\n  DAT_00080ad4 = DAT_00080ad4 + 1;\n  *puVar1 = DAT_0005837c;\n  puVar1[1] = DAT_00058380;\n  puVar1[2] = DAT_00058384;\n  return;\n}" primitive_type (function_declarator "FUN_000200b0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  if (DAT_00080acc == (undefined4 *)0x0) {\n    if (DAT_00080ad0 == 0) {\n      DAT_00080ac8 = FUN_00020030();\n      iVar2 = 0x1fec;\n      DAT_00080ad0 = 0x2a9;\n      DAT_00080adc = DAT_00080adc + 1;\n    }\n    else {\n      DAT_00080ad0 = DAT_00080ad0 + -1;\n      iVar2 = DAT_00080ad0 * 0xc;\n    }\n    puVar1 = (undefined4 *)(DAT_00080ac8 + iVar2);\n  }\n  else {\n    puVar1 = DAT_00080acc;\n    DAT_00080acc = (undefined4 *)DAT_00080acc[1];\n  }\n  DAT_00080ad4 = DAT_00080ad4 + 1;\n  *puVar1 = DAT_0005837c;\n  puVar1[1] = DAT_00058380;\n  puVar1[2] = DAT_00058384;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (DAT_00080acc == (undefined4 *)0x0) {\n    if (DAT_00080ad0 == 0) {\n      DAT_00080ac8 = FUN_00020030();\n      iVar2 = 0x1fec;\n      DAT_00080ad0 = 0x2a9;\n      DAT_00080adc = DAT_00080adc + 1;\n    }\n    else {\n      DAT_00080ad0 = DAT_00080ad0 + -1;\n      iVar2 = DAT_00080ad0 * 0xc;\n    }\n    puVar1 = (undefined4 *)(DAT_00080ac8 + iVar2);\n  }\n  else {\n    puVar1 = DAT_00080acc;\n    DAT_00080acc = (undefined4 *)DAT_00080acc[1];\n  }" if (parenthesized_expression "(DAT_00080acc == (undefined4 *)0x0)" ( (binary_expression "DAT_00080acc == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (DAT_00080ad0 == 0) {\n      DAT_00080ac8 = FUN_00020030();\n      iVar2 = 0x1fec;\n      DAT_00080ad0 = 0x2a9;\n      DAT_00080adc = DAT_00080adc + 1;\n    }\n    else {\n      DAT_00080ad0 = DAT_00080ad0 + -1;\n      iVar2 = DAT_00080ad0 * 0xc;\n    }\n    puVar1 = (undefined4 *)(DAT_00080ac8 + iVar2);\n  }" { (if_statement "if (DAT_00080ad0 == 0) {\n      DAT_00080ac8 = FUN_00020030();\n      iVar2 = 0x1fec;\n      DAT_00080ad0 = 0x2a9;\n      DAT_00080adc = DAT_00080adc + 1;\n    }\n    else {\n      DAT_00080ad0 = DAT_00080ad0 + -1;\n      iVar2 = DAT_00080ad0 * 0xc;\n    }" if (parenthesized_expression "(DAT_00080ad0 == 0)" ( (binary_expression "DAT_00080ad0 == 0" identifier == number_literal) )) (compound_statement "{\n      DAT_00080ac8 = FUN_00020030();\n      iVar2 = 0x1fec;\n      DAT_00080ad0 = 0x2a9;\n      DAT_00080adc = DAT_00080adc + 1;\n    }" { (expression_statement "DAT_00080ac8 = FUN_00020030();" (assignment_expression "DAT_00080ac8 = FUN_00020030()" identifier = (call_expression "FUN_00020030()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = 0x1fec;" (assignment_expression "iVar2 = 0x1fec" identifier = number_literal) ;) (expression_statement "DAT_00080ad0 = 0x2a9;" (assignment_expression "DAT_00080ad0 = 0x2a9" identifier = number_literal) ;) (expression_statement "DAT_00080adc = DAT_00080adc + 1;" (assignment_expression "DAT_00080adc = DAT_00080adc + 1" identifier = (binary_expression "DAT_00080adc + 1" identifier + number_literal)) ;) }) (else_clause "else {\n      DAT_00080ad0 = DAT_00080ad0 + -1;\n      iVar2 = DAT_00080ad0 * 0xc;\n    }" else (compound_statement "{\n      DAT_00080ad0 = DAT_00080ad0 + -1;\n      iVar2 = DAT_00080ad0 * 0xc;\n    }" { (expression_statement "DAT_00080ad0 = DAT_00080ad0 + -1;" (assignment_expression "DAT_00080ad0 = DAT_00080ad0 + -1" identifier = (binary_expression "DAT_00080ad0 + -1" identifier + number_literal)) ;) (expression_statement "iVar2 = DAT_00080ad0 * 0xc;" (assignment_expression "iVar2 = DAT_00080ad0 * 0xc" identifier = (binary_expression "DAT_00080ad0 * 0xc" identifier * number_literal)) ;) }))) (expression_statement "puVar1 = (undefined4 *)(DAT_00080ac8 + iVar2);" (assignment_expression "puVar1 = (undefined4 *)(DAT_00080ac8 + iVar2)" identifier = (cast_expression "(undefined4 *)(DAT_00080ac8 + iVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00080ac8 + iVar2)" ( (binary_expression "DAT_00080ac8 + iVar2" identifier + identifier) )))) ;) }) (else_clause "else {\n    puVar1 = DAT_00080acc;\n    DAT_00080acc = (undefined4 *)DAT_00080acc[1];\n  }" else (compound_statement "{\n    puVar1 = DAT_00080acc;\n    DAT_00080acc = (undefined4 *)DAT_00080acc[1];\n  }" { (expression_statement "puVar1 = DAT_00080acc;" (assignment_expression "puVar1 = DAT_00080acc" identifier = identifier) ;) (expression_statement "DAT_00080acc = (undefined4 *)DAT_00080acc[1];" (assignment_expression "DAT_00080acc = (undefined4 *)DAT_00080acc[1]" identifier = (cast_expression "(undefined4 *)DAT_00080acc[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "DAT_00080acc[1]" identifier [ number_literal ]))) ;) }))) (expression_statement "DAT_00080ad4 = DAT_00080ad4 + 1;" (assignment_expression "DAT_00080ad4 = DAT_00080ad4 + 1" identifier = (binary_expression "DAT_00080ad4 + 1" identifier + number_literal)) ;) (expression_statement "*puVar1 = DAT_0005837c;" (assignment_expression "*puVar1 = DAT_0005837c" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = DAT_00058380;" (assignment_expression "puVar1[1] = DAT_00058380" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[2] = DAT_00058384;" (assignment_expression "puVar1[2] = DAT_00058384" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nthead_t * allocate_thead(void)\n\n{\n  small_free_t sVar1;\n  int iVar2;\n  \n  if (alloc_counts[7].free_list.f_scope == (scope_t *)0x0) {\n    if (alloc_counts[7].unallocated == 0) {\n      alloc_counts[7].cur_page = allocate_page();\n      iVar2 = 0x1fec;\n      alloc_counts[7].unallocated = 0x2a9;\n      alloc_counts[7].total_pages = alloc_counts[7].total_pages + 1;\n    }\n    else {\n      alloc_counts[7].unallocated = alloc_counts[7].unallocated + -1;\n      iVar2 = alloc_counts[7].unallocated * 0xc;\n    }\n    sVar1.f_scope = (scope_t *)((alloc_counts[7].cur_page)->byte + iVar2);\n  }\n  else {\n    sVar1 = alloc_counts[7].free_list;\n    alloc_counts[7].free_list = (small_free_t)(alloc_counts[7].free_list.f_scope)->free;\n  }\n  alloc_counts[7].total_alloc = alloc_counts[7].total_alloc + 1;\n  (sVar1.f_thead)->prev = allocate_thead::initial_thead.prev;\n  (sVar1.f_thead)->free = allocate_thead::initial_thead.free;\n  (sVar1.f_thead)->first_tag = allocate_thead::initial_thead.first_tag;\n  return (thead_t *)sVar1.f_scope;\n}\n\n" comment comment (function_definition "thead_t * allocate_thead(void)\n\n{\n  small_free_t sVar1;\n  int iVar2;\n  \n  if (alloc_counts[7].free_list.f_scope == (scope_t *)0x0) {\n    if (alloc_counts[7].unallocated == 0) {\n      alloc_counts[7].cur_page = allocate_page();\n      iVar2 = 0x1fec;\n      alloc_counts[7].unallocated = 0x2a9;\n      alloc_counts[7].total_pages = alloc_counts[7].total_pages + 1;\n    }\n    else {\n      alloc_counts[7].unallocated = alloc_counts[7].unallocated + -1;\n      iVar2 = alloc_counts[7].unallocated * 0xc;\n    }\n    sVar1.f_scope = (scope_t *)((alloc_counts[7].cur_page)->byte + iVar2);\n  }\n  else {\n    sVar1 = alloc_counts[7].free_list;\n    alloc_counts[7].free_list = (small_free_t)(alloc_counts[7].free_list.f_scope)->free;\n  }\n  alloc_counts[7].total_alloc = alloc_counts[7].total_alloc + 1;\n  (sVar1.f_thead)->prev = allocate_thead::initial_thead.prev;\n  (sVar1.f_thead)->free = allocate_thead::initial_thead.free;\n  (sVar1.f_thead)->first_tag = allocate_thead::initial_thead.first_tag;\n  return (thead_t *)sVar1.f_scope;\n}" type_identifier (pointer_declarator "* allocate_thead(void)" * (function_declarator "allocate_thead(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  small_free_t sVar1;\n  int iVar2;\n  \n  if (alloc_counts[7].free_list.f_scope == (scope_t *)0x0) {\n    if (alloc_counts[7].unallocated == 0) {\n      alloc_counts[7].cur_page = allocate_page();\n      iVar2 = 0x1fec;\n      alloc_counts[7].unallocated = 0x2a9;\n      alloc_counts[7].total_pages = alloc_counts[7].total_pages + 1;\n    }\n    else {\n      alloc_counts[7].unallocated = alloc_counts[7].unallocated + -1;\n      iVar2 = alloc_counts[7].unallocated * 0xc;\n    }\n    sVar1.f_scope = (scope_t *)((alloc_counts[7].cur_page)->byte + iVar2);\n  }\n  else {\n    sVar1 = alloc_counts[7].free_list;\n    alloc_counts[7].free_list = (small_free_t)(alloc_counts[7].free_list.f_scope)->free;\n  }\n  alloc_counts[7].total_alloc = alloc_counts[7].total_alloc + 1;\n  (sVar1.f_thead)->prev = allocate_thead::initial_thead.prev;\n  (sVar1.f_thead)->free = allocate_thead::initial_thead.free;\n  (sVar1.f_thead)->first_tag = allocate_thead::initial_thead.first_tag;\n  return (thead_t *)sVar1.f_scope;\n}" { (declaration "small_free_t sVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (alloc_counts[7].free_list.f_scope == (scope_t *)0x0) {\n    if (alloc_counts[7].unallocated == 0) {\n      alloc_counts[7].cur_page = allocate_page();\n      iVar2 = 0x1fec;\n      alloc_counts[7].unallocated = 0x2a9;\n      alloc_counts[7].total_pages = alloc_counts[7].total_pages + 1;\n    }\n    else {\n      alloc_counts[7].unallocated = alloc_counts[7].unallocated + -1;\n      iVar2 = alloc_counts[7].unallocated * 0xc;\n    }\n    sVar1.f_scope = (scope_t *)((alloc_counts[7].cur_page)->byte + iVar2);\n  }\n  else {\n    sVar1 = alloc_counts[7].free_list;\n    alloc_counts[7].free_list = (small_free_t)(alloc_counts[7].free_list.f_scope)->free;\n  }" if (parenthesized_expression "(alloc_counts[7].free_list.f_scope == (scope_t *)0x0)" ( (binary_expression "alloc_counts[7].free_list.f_scope == (scope_t *)0x0" (field_expression "alloc_counts[7].free_list.f_scope" (field_expression "alloc_counts[7].free_list" (subscript_expression "alloc_counts[7]" identifier [ number_literal ]) . field_identifier) . field_identifier) == (cast_expression "(scope_t *)0x0" ( (type_descriptor "scope_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (alloc_counts[7].unallocated == 0) {\n      alloc_counts[7].cur_page = allocate_page();\n      iVar2 = 0x1fec;\n      alloc_counts[7].unallocated = 0x2a9;\n      alloc_counts[7].total_pages = alloc_counts[7].total_pages + 1;\n    }\n    else {\n      alloc_counts[7].unallocated = alloc_counts[7].unallocated + -1;\n      iVar2 = alloc_counts[7].unallocated * 0xc;\n    }\n    sVar1.f_scope = (scope_t *)((alloc_counts[7].cur_page)->byte + iVar2);\n  }" { (if_statement "if (alloc_counts[7].unallocated == 0) {\n      alloc_counts[7].cur_page = allocate_page();\n      iVar2 = 0x1fec;\n      alloc_counts[7].unallocated = 0x2a9;\n      alloc_counts[7].total_pages = alloc_counts[7].total_pages + 1;\n    }\n    else {\n      alloc_counts[7].unallocated = alloc_counts[7].unallocated + -1;\n      iVar2 = alloc_counts[7].unallocated * 0xc;\n    }" if (parenthesized_expression "(alloc_counts[7].unallocated == 0)" ( (binary_expression "alloc_counts[7].unallocated == 0" (field_expression "alloc_counts[7].unallocated" (subscript_expression "alloc_counts[7]" identifier [ number_literal ]) . field_identifier) == number_literal) )) (compound_statement "{\n      alloc_counts[7].cur_page = allocate_page();\n      iVar2 = 0x1fec;\n      alloc_counts[7].unallocated = 0x2a9;\n      alloc_counts[7].total_pages = alloc_counts[7].total_pages + 1;\n    }" { (expression_statement "alloc_counts[7].cur_page = allocate_page();" (assignment_expression "alloc_counts[7].cur_page = allocate_page()" (field_expression "alloc_counts[7].cur_page" (subscript_expression "alloc_counts[7]" identifier [ number_literal ]) . field_identifier) = (call_expression "allocate_page()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = 0x1fec;" (assignment_expression "iVar2 = 0x1fec" identifier = number_literal) ;) (expression_statement "alloc_counts[7].unallocated = 0x2a9;" (assignment_expression "alloc_counts[7].unallocated = 0x2a9" (field_expression "alloc_counts[7].unallocated" (subscript_expression "alloc_counts[7]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "alloc_counts[7].total_pages = alloc_counts[7].total_pages + 1;" (assignment_expression "alloc_counts[7].total_pages = alloc_counts[7].total_pages + 1" (field_expression "alloc_counts[7].total_pages" (subscript_expression "alloc_counts[7]" identifier [ number_literal ]) . field_identifier) = (binary_expression "alloc_counts[7].total_pages + 1" (field_expression "alloc_counts[7].total_pages" (subscript_expression "alloc_counts[7]" identifier [ number_literal ]) . field_identifier) + number_literal)) ;) }) (else_clause "else {\n      alloc_counts[7].unallocated = alloc_counts[7].unallocated + -1;\n      iVar2 = alloc_counts[7].unallocated * 0xc;\n    }" else (compound_statement "{\n      alloc_counts[7].unallocated = alloc_counts[7].unallocated + -1;\n      iVar2 = alloc_counts[7].unallocated * 0xc;\n    }" { (expression_statement "alloc_counts[7].unallocated = alloc_counts[7].unallocated + -1;" (assignment_expression "alloc_counts[7].unallocated = alloc_counts[7].unallocated + -1" (field_expression "alloc_counts[7].unallocated" (subscript_expression "alloc_counts[7]" identifier [ number_literal ]) . field_identifier) = (binary_expression "alloc_counts[7].unallocated + -1" (field_expression "alloc_counts[7].unallocated" (subscript_expression "alloc_counts[7]" identifier [ number_literal ]) . field_identifier) + number_literal)) ;) (expression_statement "iVar2 = alloc_counts[7].unallocated * 0xc;" (assignment_expression "iVar2 = alloc_counts[7].unallocated * 0xc" identifier = (binary_expression "alloc_counts[7].unallocated * 0xc" (field_expression "alloc_counts[7].unallocated" (subscript_expression "alloc_counts[7]" identifier [ number_literal ]) . field_identifier) * number_literal)) ;) }))) (expression_statement "sVar1.f_scope = (scope_t *)((alloc_counts[7].cur_page)->byte + iVar2);" (assignment_expression "sVar1.f_scope = (scope_t *)((alloc_counts[7].cur_page)->byte + iVar2)" (field_expression "sVar1.f_scope" identifier . field_identifier) = (cast_expression "(scope_t *)((alloc_counts[7].cur_page)->byte + iVar2)" ( (type_descriptor "scope_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((alloc_counts[7].cur_page)->byte + iVar2)" ( (binary_expression "(alloc_counts[7].cur_page)->byte + iVar2" (field_expression "(alloc_counts[7].cur_page)->byte" (parenthesized_expression "(alloc_counts[7].cur_page)" ( (field_expression "alloc_counts[7].cur_page" (subscript_expression "alloc_counts[7]" identifier [ number_literal ]) . field_identifier) )) -> field_identifier) + identifier) )))) ;) }) (else_clause "else {\n    sVar1 = alloc_counts[7].free_list;\n    alloc_counts[7].free_list = (small_free_t)(alloc_counts[7].free_list.f_scope)->free;\n  }" else (compound_statement "{\n    sVar1 = alloc_counts[7].free_list;\n    alloc_counts[7].free_list = (small_free_t)(alloc_counts[7].free_list.f_scope)->free;\n  }" { (expression_statement "sVar1 = alloc_counts[7].free_list;" (assignment_expression "sVar1 = alloc_counts[7].free_list" identifier = (field_expression "alloc_counts[7].free_list" (subscript_expression "alloc_counts[7]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "alloc_counts[7].free_list = (small_free_t)(alloc_counts[7].free_list.f_scope)->free;" (assignment_expression "alloc_counts[7].free_list = (small_free_t)(alloc_counts[7].free_list.f_scope)->free" (field_expression "alloc_counts[7].free_list" (subscript_expression "alloc_counts[7]" identifier [ number_literal ]) . field_identifier) = (field_expression "(small_free_t)(alloc_counts[7].free_list.f_scope)->free" (call_expression "(small_free_t)(alloc_counts[7].free_list.f_scope)" (parenthesized_expression "(small_free_t)" ( identifier )) (argument_list "(alloc_counts[7].free_list.f_scope)" ( (field_expression "alloc_counts[7].free_list.f_scope" (field_expression "alloc_counts[7].free_list" (subscript_expression "alloc_counts[7]" identifier [ number_literal ]) . field_identifier) . field_identifier) ))) -> field_identifier)) ;) }))) (expression_statement "alloc_counts[7].total_alloc = alloc_counts[7].total_alloc + 1;" (assignment_expression "alloc_counts[7].total_alloc = alloc_counts[7].total_alloc + 1" (field_expression "alloc_counts[7].total_alloc" (subscript_expression "alloc_counts[7]" identifier [ number_literal ]) . field_identifier) = (binary_expression "alloc_counts[7].total_alloc + 1" (field_expression "alloc_counts[7].total_alloc" (subscript_expression "alloc_counts[7]" identifier [ number_literal ]) . field_identifier) + number_literal)) ;) (expression_statement "(sVar1.f_thead)->prev = allocate_thead::initial_thead.prev;" (field_expression "(sVar1.f_thead)->prev = allocate_thead::initial_thead.prev" (assignment_expression "(sVar1.f_thead)->prev = allocate_thead" (field_expression "(sVar1.f_thead)->prev" (parenthesized_expression "(sVar1.f_thead)" ( (field_expression "sVar1.f_thead" identifier . field_identifier) )) -> field_identifier) = identifier) (ERROR "::initial_thead" : : identifier) . field_identifier) ;) (expression_statement "(sVar1.f_thead)->free = allocate_thead::initial_thead.free;" (field_expression "(sVar1.f_thead)->free = allocate_thead::initial_thead.free" (assignment_expression "(sVar1.f_thead)->free = allocate_thead" (field_expression "(sVar1.f_thead)->free" (parenthesized_expression "(sVar1.f_thead)" ( (field_expression "sVar1.f_thead" identifier . field_identifier) )) -> field_identifier) = identifier) (ERROR "::initial_thead" : : identifier) . field_identifier) ;) (expression_statement "(sVar1.f_thead)->first_tag = allocate_thead::initial_thead.first_tag;" (field_expression "(sVar1.f_thead)->first_tag = allocate_thead::initial_thead.first_tag" (assignment_expression "(sVar1.f_thead)->first_tag = allocate_thead" (field_expression "(sVar1.f_thead)->first_tag" (parenthesized_expression "(sVar1.f_thead)" ( (field_expression "sVar1.f_thead" identifier . field_identifier) )) -> field_identifier) = identifier) (ERROR "::initial_thead" : : identifier) . field_identifier) ;) (return_statement "return (thead_t *)sVar1.f_scope;" return (cast_expression "(thead_t *)sVar1.f_scope" ( (type_descriptor "thead_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "sVar1.f_scope" identifier . field_identifier)) ;) })))
(translation_unit "void FUN_000200b0(void)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  if (DAT_00080acc == (undefined4 *)0x0) {\n    if (DAT_00080ad0 == 0) {\n      DAT_00080ac8 = FUN_00020030();\n      iVar2 = 0x1fec;\n      DAT_00080ad0 = 0x2a9;\n      DAT_00080adc = DAT_00080adc + 1;\n    }\n    else {\n      DAT_00080ad0 = DAT_00080ad0 + -1;\n      iVar2 = DAT_00080ad0 * 0xc;\n    }\n    puVar1 = (undefined4 *)(DAT_00080ac8 + iVar2);\n  }\n  else {\n    puVar1 = DAT_00080acc;\n    DAT_00080acc = (undefined4 *)DAT_00080acc[1];\n  }\n  DAT_00080ad4 = DAT_00080ad4 + 1;\n  *puVar1 = DAT_0005837c;\n  puVar1[1] = DAT_00058380;\n  puVar1[2] = DAT_00058384;\n  return;\n}\n\n" (function_definition "void FUN_000200b0(void)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  if (DAT_00080acc == (undefined4 *)0x0) {\n    if (DAT_00080ad0 == 0) {\n      DAT_00080ac8 = FUN_00020030();\n      iVar2 = 0x1fec;\n      DAT_00080ad0 = 0x2a9;\n      DAT_00080adc = DAT_00080adc + 1;\n    }\n    else {\n      DAT_00080ad0 = DAT_00080ad0 + -1;\n      iVar2 = DAT_00080ad0 * 0xc;\n    }\n    puVar1 = (undefined4 *)(DAT_00080ac8 + iVar2);\n  }\n  else {\n    puVar1 = DAT_00080acc;\n    DAT_00080acc = (undefined4 *)DAT_00080acc[1];\n  }\n  DAT_00080ad4 = DAT_00080ad4 + 1;\n  *puVar1 = DAT_0005837c;\n  puVar1[1] = DAT_00058380;\n  puVar1[2] = DAT_00058384;\n  return;\n}" primitive_type (function_declarator "FUN_000200b0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  if (DAT_00080acc == (undefined4 *)0x0) {\n    if (DAT_00080ad0 == 0) {\n      DAT_00080ac8 = FUN_00020030();\n      iVar2 = 0x1fec;\n      DAT_00080ad0 = 0x2a9;\n      DAT_00080adc = DAT_00080adc + 1;\n    }\n    else {\n      DAT_00080ad0 = DAT_00080ad0 + -1;\n      iVar2 = DAT_00080ad0 * 0xc;\n    }\n    puVar1 = (undefined4 *)(DAT_00080ac8 + iVar2);\n  }\n  else {\n    puVar1 = DAT_00080acc;\n    DAT_00080acc = (undefined4 *)DAT_00080acc[1];\n  }\n  DAT_00080ad4 = DAT_00080ad4 + 1;\n  *puVar1 = DAT_0005837c;\n  puVar1[1] = DAT_00058380;\n  puVar1[2] = DAT_00058384;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (DAT_00080acc == (undefined4 *)0x0) {\n    if (DAT_00080ad0 == 0) {\n      DAT_00080ac8 = FUN_00020030();\n      iVar2 = 0x1fec;\n      DAT_00080ad0 = 0x2a9;\n      DAT_00080adc = DAT_00080adc + 1;\n    }\n    else {\n      DAT_00080ad0 = DAT_00080ad0 + -1;\n      iVar2 = DAT_00080ad0 * 0xc;\n    }\n    puVar1 = (undefined4 *)(DAT_00080ac8 + iVar2);\n  }\n  else {\n    puVar1 = DAT_00080acc;\n    DAT_00080acc = (undefined4 *)DAT_00080acc[1];\n  }" if (parenthesized_expression "(DAT_00080acc == (undefined4 *)0x0)" ( (binary_expression "DAT_00080acc == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (DAT_00080ad0 == 0) {\n      DAT_00080ac8 = FUN_00020030();\n      iVar2 = 0x1fec;\n      DAT_00080ad0 = 0x2a9;\n      DAT_00080adc = DAT_00080adc + 1;\n    }\n    else {\n      DAT_00080ad0 = DAT_00080ad0 + -1;\n      iVar2 = DAT_00080ad0 * 0xc;\n    }\n    puVar1 = (undefined4 *)(DAT_00080ac8 + iVar2);\n  }" { (if_statement "if (DAT_00080ad0 == 0) {\n      DAT_00080ac8 = FUN_00020030();\n      iVar2 = 0x1fec;\n      DAT_00080ad0 = 0x2a9;\n      DAT_00080adc = DAT_00080adc + 1;\n    }\n    else {\n      DAT_00080ad0 = DAT_00080ad0 + -1;\n      iVar2 = DAT_00080ad0 * 0xc;\n    }" if (parenthesized_expression "(DAT_00080ad0 == 0)" ( (binary_expression "DAT_00080ad0 == 0" identifier == number_literal) )) (compound_statement "{\n      DAT_00080ac8 = FUN_00020030();\n      iVar2 = 0x1fec;\n      DAT_00080ad0 = 0x2a9;\n      DAT_00080adc = DAT_00080adc + 1;\n    }" { (expression_statement "DAT_00080ac8 = FUN_00020030();" (assignment_expression "DAT_00080ac8 = FUN_00020030()" identifier = (call_expression "FUN_00020030()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = 0x1fec;" (assignment_expression "iVar2 = 0x1fec" identifier = number_literal) ;) (expression_statement "DAT_00080ad0 = 0x2a9;" (assignment_expression "DAT_00080ad0 = 0x2a9" identifier = number_literal) ;) (expression_statement "DAT_00080adc = DAT_00080adc + 1;" (assignment_expression "DAT_00080adc = DAT_00080adc + 1" identifier = (binary_expression "DAT_00080adc + 1" identifier + number_literal)) ;) }) (else_clause "else {\n      DAT_00080ad0 = DAT_00080ad0 + -1;\n      iVar2 = DAT_00080ad0 * 0xc;\n    }" else (compound_statement "{\n      DAT_00080ad0 = DAT_00080ad0 + -1;\n      iVar2 = DAT_00080ad0 * 0xc;\n    }" { (expression_statement "DAT_00080ad0 = DAT_00080ad0 + -1;" (assignment_expression "DAT_00080ad0 = DAT_00080ad0 + -1" identifier = (binary_expression "DAT_00080ad0 + -1" identifier + number_literal)) ;) (expression_statement "iVar2 = DAT_00080ad0 * 0xc;" (assignment_expression "iVar2 = DAT_00080ad0 * 0xc" identifier = (binary_expression "DAT_00080ad0 * 0xc" identifier * number_literal)) ;) }))) (expression_statement "puVar1 = (undefined4 *)(DAT_00080ac8 + iVar2);" (assignment_expression "puVar1 = (undefined4 *)(DAT_00080ac8 + iVar2)" identifier = (cast_expression "(undefined4 *)(DAT_00080ac8 + iVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00080ac8 + iVar2)" ( (binary_expression "DAT_00080ac8 + iVar2" identifier + identifier) )))) ;) }) (else_clause "else {\n    puVar1 = DAT_00080acc;\n    DAT_00080acc = (undefined4 *)DAT_00080acc[1];\n  }" else (compound_statement "{\n    puVar1 = DAT_00080acc;\n    DAT_00080acc = (undefined4 *)DAT_00080acc[1];\n  }" { (expression_statement "puVar1 = DAT_00080acc;" (assignment_expression "puVar1 = DAT_00080acc" identifier = identifier) ;) (expression_statement "DAT_00080acc = (undefined4 *)DAT_00080acc[1];" (assignment_expression "DAT_00080acc = (undefined4 *)DAT_00080acc[1]" identifier = (cast_expression "(undefined4 *)DAT_00080acc[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "DAT_00080acc[1]" identifier [ number_literal ]))) ;) }))) (expression_statement "DAT_00080ad4 = DAT_00080ad4 + 1;" (assignment_expression "DAT_00080ad4 = DAT_00080ad4 + 1" identifier = (binary_expression "DAT_00080ad4 + 1" identifier + number_literal)) ;) (expression_statement "*puVar1 = DAT_0005837c;" (assignment_expression "*puVar1 = DAT_0005837c" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = DAT_00058380;" (assignment_expression "puVar1[1] = DAT_00058380" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[2] = DAT_00058384;" (assignment_expression "puVar1[2] = DAT_00058384" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (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)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }))) (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) ;) (return_statement return ;) })))
(function_definition "void FUN_000200b0(void)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  if (DAT_00080acc == (undefined4 *)0x0) {\n    if (DAT_00080ad0 == 0) {\n      DAT_00080ac8 = FUN_00020030();\n      iVar2 = 0x1fec;\n      DAT_00080ad0 = 0x2a9;\n      DAT_00080adc = DAT_00080adc + 1;\n    }\n    else {\n      DAT_00080ad0 = DAT_00080ad0 + -1;\n      iVar2 = DAT_00080ad0 * 0xc;\n    }\n    puVar1 = (undefined4 *)(DAT_00080ac8 + iVar2);\n  }\n  else {\n    puVar1 = DAT_00080acc;\n    DAT_00080acc = (undefined4 *)DAT_00080acc[1];\n  }\n  DAT_00080ad4 = DAT_00080ad4 + 1;\n  *puVar1 = DAT_0005837c;\n  puVar1[1] = DAT_00058380;\n  puVar1[2] = DAT_00058384;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000200b0(void)" (identifier "FUN_000200b0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  if (DAT_00080acc == (undefined4 *)0x0) {\n    if (DAT_00080ad0 == 0) {\n      DAT_00080ac8 = FUN_00020030();\n      iVar2 = 0x1fec;\n      DAT_00080ad0 = 0x2a9;\n      DAT_00080adc = DAT_00080adc + 1;\n    }\n    else {\n      DAT_00080ad0 = DAT_00080ad0 + -1;\n      iVar2 = DAT_00080ad0 * 0xc;\n    }\n    puVar1 = (undefined4 *)(DAT_00080ac8 + iVar2);\n  }\n  else {\n    puVar1 = DAT_00080acc;\n    DAT_00080acc = (undefined4 *)DAT_00080acc[1];\n  }\n  DAT_00080ad4 = DAT_00080ad4 + 1;\n  *puVar1 = DAT_0005837c;\n  puVar1[1] = DAT_00058380;\n  puVar1[2] = DAT_00058384;\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if (DAT_00080acc == (undefined4 *)0x0) {\n    if (DAT_00080ad0 == 0) {\n      DAT_00080ac8 = FUN_00020030();\n      iVar2 = 0x1fec;\n      DAT_00080ad0 = 0x2a9;\n      DAT_00080adc = DAT_00080adc + 1;\n    }\n    else {\n      DAT_00080ad0 = DAT_00080ad0 + -1;\n      iVar2 = DAT_00080ad0 * 0xc;\n    }\n    puVar1 = (undefined4 *)(DAT_00080ac8 + iVar2);\n  }\n  else {\n    puVar1 = DAT_00080acc;\n    DAT_00080acc = (undefined4 *)DAT_00080acc[1];\n  }" (if "if") (parenthesized_expression "(DAT_00080acc == (undefined4 *)0x0)" (( "(") (binary_expression "DAT_00080acc == (undefined4 *)0x0" (identifier "DAT_00080acc") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if (DAT_00080ad0 == 0) {\n      DAT_00080ac8 = FUN_00020030();\n      iVar2 = 0x1fec;\n      DAT_00080ad0 = 0x2a9;\n      DAT_00080adc = DAT_00080adc + 1;\n    }\n    else {\n      DAT_00080ad0 = DAT_00080ad0 + -1;\n      iVar2 = DAT_00080ad0 * 0xc;\n    }\n    puVar1 = (undefined4 *)(DAT_00080ac8 + iVar2);\n  }" ({ "{") (if_statement "if (DAT_00080ad0 == 0) {\n      DAT_00080ac8 = FUN_00020030();\n      iVar2 = 0x1fec;\n      DAT_00080ad0 = 0x2a9;\n      DAT_00080adc = DAT_00080adc + 1;\n    }\n    else {\n      DAT_00080ad0 = DAT_00080ad0 + -1;\n      iVar2 = DAT_00080ad0 * 0xc;\n    }" (if "if") (parenthesized_expression "(DAT_00080ad0 == 0)" (( "(") (binary_expression "DAT_00080ad0 == 0" (identifier "DAT_00080ad0") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      DAT_00080ac8 = FUN_00020030();\n      iVar2 = 0x1fec;\n      DAT_00080ad0 = 0x2a9;\n      DAT_00080adc = DAT_00080adc + 1;\n    }" ({ "{") (expression_statement "DAT_00080ac8 = FUN_00020030();" (assignment_expression "DAT_00080ac8 = FUN_00020030()" (identifier "DAT_00080ac8") (= "=") (call_expression "FUN_00020030()" (identifier "FUN_00020030") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar2 = 0x1fec;" (assignment_expression "iVar2 = 0x1fec" (identifier "iVar2") (= "=") (number_literal "0x1fec")) (; ";")) (expression_statement "DAT_00080ad0 = 0x2a9;" (assignment_expression "DAT_00080ad0 = 0x2a9" (identifier "DAT_00080ad0") (= "=") (number_literal "0x2a9")) (; ";")) (expression_statement "DAT_00080adc = DAT_00080adc + 1;" (assignment_expression "DAT_00080adc = DAT_00080adc + 1" (identifier "DAT_00080adc") (= "=") (binary_expression "DAT_00080adc + 1" (identifier "DAT_00080adc") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n      DAT_00080ad0 = DAT_00080ad0 + -1;\n      iVar2 = DAT_00080ad0 * 0xc;\n    }" (else "else") (compound_statement "{\n      DAT_00080ad0 = DAT_00080ad0 + -1;\n      iVar2 = DAT_00080ad0 * 0xc;\n    }" ({ "{") (expression_statement "DAT_00080ad0 = DAT_00080ad0 + -1;" (assignment_expression "DAT_00080ad0 = DAT_00080ad0 + -1" (identifier "DAT_00080ad0") (= "=") (binary_expression "DAT_00080ad0 + -1" (identifier "DAT_00080ad0") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar2 = DAT_00080ad0 * 0xc;" (assignment_expression "iVar2 = DAT_00080ad0 * 0xc" (identifier "iVar2") (= "=") (binary_expression "DAT_00080ad0 * 0xc" (identifier "DAT_00080ad0") (* "*") (number_literal "0xc"))) (; ";")) (} "}")))) (expression_statement "puVar1 = (undefined4 *)(DAT_00080ac8 + iVar2);" (assignment_expression "puVar1 = (undefined4 *)(DAT_00080ac8 + iVar2)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(DAT_00080ac8 + iVar2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00080ac8 + iVar2)" (( "(") (binary_expression "DAT_00080ac8 + iVar2" (identifier "DAT_00080ac8") (+ "+") (identifier "iVar2")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n    puVar1 = DAT_00080acc;\n    DAT_00080acc = (undefined4 *)DAT_00080acc[1];\n  }" (else "else") (compound_statement "{\n    puVar1 = DAT_00080acc;\n    DAT_00080acc = (undefined4 *)DAT_00080acc[1];\n  }" ({ "{") (expression_statement "puVar1 = DAT_00080acc;" (assignment_expression "puVar1 = DAT_00080acc" (identifier "puVar1") (= "=") (identifier "DAT_00080acc")) (; ";")) (expression_statement "DAT_00080acc = (undefined4 *)DAT_00080acc[1];" (assignment_expression "DAT_00080acc = (undefined4 *)DAT_00080acc[1]" (identifier "DAT_00080acc") (= "=") (cast_expression "(undefined4 *)DAT_00080acc[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "DAT_00080acc[1]" (identifier "DAT_00080acc") ([ "[") (number_literal "1") (] "]")))) (; ";")) (} "}")))) (expression_statement "DAT_00080ad4 = DAT_00080ad4 + 1;" (assignment_expression "DAT_00080ad4 = DAT_00080ad4 + 1" (identifier "DAT_00080ad4") (= "=") (binary_expression "DAT_00080ad4 + 1" (identifier "DAT_00080ad4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar1 = DAT_0005837c;" (assignment_expression "*puVar1 = DAT_0005837c" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "DAT_0005837c")) (; ";")) (expression_statement "puVar1[1] = DAT_00058380;" (assignment_expression "puVar1[1] = DAT_00058380" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "DAT_00058380")) (; ";")) (expression_statement "puVar1[2] = DAT_00058384;" (assignment_expression "puVar1[2] = DAT_00058384" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "DAT_00058384")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

type_1 * function_1(void)

{
  type_2 sVar1;
  int var_2;
  
  if (alloc_counts[7].free_list.f_scope == (type_3 *)0x0) {
    if (alloc_counts[7].unallocated == 0) {
      alloc_counts[7].cur_page = var_1();
      var_2 = 0x1fec;
      alloc_counts[7].unallocated = 0x2a9;
      alloc_counts[7].total_pages = alloc_counts[7].total_pages + 1;
    }
    else {
      alloc_counts[7].unallocated = alloc_counts[7].unallocated + -1;
      var_2 = alloc_counts[7].unallocated * 0xc;
    }
    sVar1.f_scope = (type_3 *)((alloc_counts[7].cur_page)->byte + var_2);
  }
  else {
    sVar1 = alloc_counts[7].free_list;
    alloc_counts[7].free_list = (type_2)(alloc_counts[7].free_list.f_scope)->free;
  }
  alloc_counts[7].total_alloc = alloc_counts[7].total_alloc + 1;
  (sVar1.f_thead)->prev = function_1::initial_thead.prev;
  (sVar1.f_thead)->free = function_1::initial_thead.free;
  (sVar1.f_thead)->first_tag = function_1::initial_thead.first_tag;
  return (type_1 *)sVar1.f_scope;
}


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

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

void MASKED(void)

{
  undefined4 *puVar1;
  int iVar2;
  
  if (DAT_00080acc == (undefined4 *)0x0) {
    if (DAT_00080ad0 == 0) {
      DAT_00080ac8 = FUN_00020030();
      iVar2 = 0x1fec;
      DAT_00080ad0 = 0x2a9;
      DAT_00080adc = DAT_00080adc + 1;
    }
    else {
      DAT_00080ad0 = DAT_00080ad0 + -1;
      iVar2 = DAT_00080ad0 * 0xc;
    }
    puVar1 = (undefined4 *)(DAT_00080ac8 + iVar2);
  }
  else {
    puVar1 = DAT_00080acc;
    DAT_00080acc = (undefined4 *)DAT_00080acc[1];
  }
  DAT_00080ad4 = DAT_00080ad4 + 1;
  *puVar1 = DAT_0005837c;
  puVar1[1] = DAT_00058380;
  puVar1[2] = DAT_00058384;
  return;
}

