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

hash_control * hash_new_sized(ulong size)

{
  undefined1 *puVar1;
  uint __n;
  _obstack_chunk *p_Var2;
  hash_control *phVar3;
  uint uVar4;
  char *pcVar5;
  hash_entry **pphVar6;
  char *pcVar7;
  hash_entry **local_24;
  
  phVar3 = (hash_control *)xmalloc(0x34);
  _obstack_begin(&phVar3->memory,chunksize,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58);
  pcVar7 = (phVar3->memory).chunk_limit;
  pcVar5 = (phVar3->memory).next_free;
  __n = size * 4;
  uVar4 = (int)pcVar7 - (int)pcVar5;
  if (__n < uVar4 || __n - uVar4 == 0) {
    local_24 = (hash_entry **)(phVar3->memory).object_base;
    pphVar6 = (hash_entry **)(pcVar5 + __n);
    (phVar3->memory).next_free = (char *)pphVar6;
    if (pphVar6 != local_24) goto LAB_00025157;
  }
  else {
    _obstack_newchunk(&phVar3->memory,__n);
    local_24 = (hash_entry **)(phVar3->memory).object_base;
    pcVar7 = (phVar3->memory).chunk_limit;
    pphVar6 = (hash_entry **)((phVar3->memory).next_free + __n);
    (phVar3->memory).next_free = (char *)pphVar6;
    if (pphVar6 != local_24) goto LAB_00025157;
  }
  puVar1 = &(phVar3->memory).field_0x28;
  *puVar1 = *puVar1 | 2;
LAB_00025157:
  uVar4 = (phVar3->memory).alignment_mask;
  p_Var2 = (phVar3->memory).chunk;
  pcVar5 = (char *)((uint)((int)pphVar6 + uVar4) & ~uVar4);
  (phVar3->memory).next_free = pcVar5;
  if ((uint)((int)pcVar7 - (int)p_Var2) < (uint)((int)pcVar5 - (int)p_Var2)) {
    (phVar3->memory).next_free = pcVar7;
    pcVar5 = pcVar7;
  }
  (phVar3->memory).object_base = pcVar5;
  phVar3->table = local_24;
  memset(local_24,0,__n);
  phVar3->size = size;
  return phVar3;
}



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

undefined4 * FUN_000250f0(int param_1)

{
  uint __n;
  undefined4 *puVar1;
  uint uVar2;
  void *pvVar3;
  uint uVar4;
  void *local_24;
  
  puVar1 = (undefined4 *)xmalloc(0x34);
  _obstack_begin(puVar1 + 2,DAT_00077690,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58);
  uVar4 = puVar1[6];
  __n = param_1 * 4;
  uVar2 = uVar4 - puVar1[5];
  if (__n < uVar2 || __n - uVar2 == 0) {
    local_24 = (void *)puVar1[4];
    pvVar3 = (void *)(puVar1[5] + __n);
    puVar1[5] = pvVar3;
    if (pvVar3 != local_24) goto LAB_00025157;
  }
  else {
    _obstack_newchunk(puVar1 + 2,__n);
    local_24 = (void *)puVar1[4];
    uVar4 = puVar1[6];
    pvVar3 = (void *)(puVar1[5] + __n);
    puVar1[5] = pvVar3;
    if (pvVar3 != local_24) goto LAB_00025157;
  }
  *(byte *)(puVar1 + 0xc) = *(byte *)(puVar1 + 0xc) | 2;
LAB_00025157:
  uVar2 = (int)pvVar3 + puVar1[8] & ~puVar1[8];
  puVar1[5] = uVar2;
  if (uVar4 - puVar1[3] < uVar2 - puVar1[3]) {
    puVar1[5] = uVar4;
    uVar2 = uVar4;
  }
  puVar1[4] = uVar2;
  *puVar1 = local_24;
  memset(local_24,0,__n);
  puVar1[1] = param_1;
  return puVar1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00016090
ADD EBX,0x49f07
SUB ESP,0x28
PUSH 0x34
CALL 0x00014820
MOV ESI,EAX
LEA EBP,[EAX + 0x8]
POP EAX
LEA EAX,[EBX + 0x8690]
PUSH dword ptr [EBX + 0xffffff58]
PUSH dword ptr [EBX + 0xffffff7c]
PUSH 0x0
PUSH dword ptr [EAX]
PUSH EBP
CALL 0x000141f0
MOV EAX,dword ptr [ESP + 0x50]
MOV EDX,dword ptr [ESI + 0x18]
ADD ESP,0x20
MOV ECX,dword ptr [ESI + 0x14]
LEA EDI,[EAX*0x4 + 0x0]
MOV EAX,EDX
SUB EAX,ECX
CMP EDI,EAX
JA 0x000251a8
MOV EAX,dword ptr [ESI + 0x10]
ADD ECX,EDI
MOV dword ptr [ESI + 0x14],ECX
MOV dword ptr [ESP + 0x8],EAX
CMP ECX,EAX
JZ 0x000251cb
MOV EBP,dword ptr [ESI + 0x20]
LEA EAX,[ECX + EBP*0x1]
NOT EBP
MOV ECX,dword ptr [ESI + 0xc]
AND EAX,EBP
MOV EBP,EAX
MOV dword ptr [ESI + 0x14],EAX
SUB EBP,ECX
MOV dword ptr [ESP + 0xc],EBP
MOV EBP,EDX
SUB EBP,ECX
CMP dword ptr [ESP + 0xc],EBP
JBE 0x0002517e
MOV dword ptr [ESI + 0x14],EDX
MOV EAX,EDX
MOV dword ptr [ESI + 0x10],EAX
MOV EAX,dword ptr [ESP + 0x8]
SUB ESP,0x4
PUSH EDI
PUSH 0x0
PUSH EAX
MOV dword ptr [ESI],EAX
CALL 0x00014500
MOV EAX,dword ptr [ESP + 0x40]
MOV dword ptr [ESI + 0x4],EAX
ADD ESP,0x2c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH EDI
PUSH EBP
CALL 0x000141b0
MOV ECX,dword ptr [ESI + 0x14]
MOV EAX,dword ptr [ESI + 0x10]
ADD ESP,0x10
MOV EDX,dword ptr [ESI + 0x18]
ADD ECX,EDI
MOV dword ptr [ESP + 0x8],EAX
MOV dword ptr [ESI + 0x14],ECX
CMP ECX,EAX
JNZ 0x00025157
OR byte ptr [ESI + 0x30],0x2
JMP 0x00025157
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * FUN_000250f0(int param_1)\n\n{\n  uint __n;\n  undefined4 *puVar1;\n  uint uVar2;\n  void *pvVar3;\n  uint uVar4;\n  void *local_24;\n  \n  puVar1 = (undefined4 *)xmalloc(0x34);\n  _obstack_begin(puVar1 + 2,DAT_00077690,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58);\n  uVar4 = puVar1[6];\n  __n = param_1 * 4;\n  uVar2 = uVar4 - puVar1[5];\n  if (__n < uVar2 || __n - uVar2 == 0) {\n    local_24 = (void *)puVar1[4];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }\n  else {\n    _obstack_newchunk(puVar1 + 2,__n);\n    local_24 = (void *)puVar1[4];\n    uVar4 = puVar1[6];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }\n  *(byte *)(puVar1 + 0xc) = *(byte *)(puVar1 + 0xc) | 2;\nLAB_00025157:\n  uVar2 = (int)pvVar3 + puVar1[8] & ~puVar1[8];\n  puVar1[5] = uVar2;\n  if (uVar4 - puVar1[3] < uVar2 - puVar1[3]) {\n    puVar1[5] = uVar4;\n    uVar2 = uVar4;\n  }\n  puVar1[4] = uVar2;\n  *puVar1 = local_24;\n  memset(local_24,0,__n);\n  puVar1[1] = param_1;\n  return puVar1;\n}\n\n" comment (function_definition "undefined4 * FUN_000250f0(int param_1)\n\n{\n  uint __n;\n  undefined4 *puVar1;\n  uint uVar2;\n  void *pvVar3;\n  uint uVar4;\n  void *local_24;\n  \n  puVar1 = (undefined4 *)xmalloc(0x34);\n  _obstack_begin(puVar1 + 2,DAT_00077690,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58);\n  uVar4 = puVar1[6];\n  __n = param_1 * 4;\n  uVar2 = uVar4 - puVar1[5];\n  if (__n < uVar2 || __n - uVar2 == 0) {\n    local_24 = (void *)puVar1[4];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }\n  else {\n    _obstack_newchunk(puVar1 + 2,__n);\n    local_24 = (void *)puVar1[4];\n    uVar4 = puVar1[6];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }\n  *(byte *)(puVar1 + 0xc) = *(byte *)(puVar1 + 0xc) | 2;\nLAB_00025157:\n  uVar2 = (int)pvVar3 + puVar1[8] & ~puVar1[8];\n  puVar1[5] = uVar2;\n  if (uVar4 - puVar1[3] < uVar2 - puVar1[3]) {\n    puVar1[5] = uVar4;\n    uVar2 = uVar4;\n  }\n  puVar1[4] = uVar2;\n  *puVar1 = local_24;\n  memset(local_24,0,__n);\n  puVar1[1] = param_1;\n  return puVar1;\n}" type_identifier (pointer_declarator "* FUN_000250f0(int param_1)" * (function_declarator "FUN_000250f0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  uint __n;\n  undefined4 *puVar1;\n  uint uVar2;\n  void *pvVar3;\n  uint uVar4;\n  void *local_24;\n  \n  puVar1 = (undefined4 *)xmalloc(0x34);\n  _obstack_begin(puVar1 + 2,DAT_00077690,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58);\n  uVar4 = puVar1[6];\n  __n = param_1 * 4;\n  uVar2 = uVar4 - puVar1[5];\n  if (__n < uVar2 || __n - uVar2 == 0) {\n    local_24 = (void *)puVar1[4];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }\n  else {\n    _obstack_newchunk(puVar1 + 2,__n);\n    local_24 = (void *)puVar1[4];\n    uVar4 = puVar1[6];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }\n  *(byte *)(puVar1 + 0xc) = *(byte *)(puVar1 + 0xc) | 2;\nLAB_00025157:\n  uVar2 = (int)pvVar3 + puVar1[8] & ~puVar1[8];\n  puVar1[5] = uVar2;\n  if (uVar4 - puVar1[3] < uVar2 - puVar1[3]) {\n    puVar1[5] = uVar4;\n    uVar2 = uVar4;\n  }\n  puVar1[4] = uVar2;\n  *puVar1 = local_24;\n  memset(local_24,0,__n);\n  puVar1[1] = param_1;\n  return puVar1;\n}" { (declaration "uint __n;" type_identifier identifier ;) (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "void *local_24;" primitive_type (pointer_declarator "*local_24" * identifier) ;) (expression_statement "puVar1 = (undefined4 *)xmalloc(0x34);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0x34)" identifier = (cast_expression "(undefined4 *)xmalloc(0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x34)" identifier (argument_list "(0x34)" ( number_literal ))))) ;) (expression_statement "_obstack_begin(puVar1 + 2,DAT_00077690,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58);" (call_expression "_obstack_begin(puVar1 + 2,DAT_00077690,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58)" identifier (argument_list "(puVar1 + 2,DAT_00077690,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58)" ( (binary_expression "puVar1 + 2" identifier + number_literal) , identifier , number_literal , identifier , identifier ))) ;) (expression_statement "uVar4 = puVar1[6];" (assignment_expression "uVar4 = puVar1[6]" identifier = (subscript_expression "puVar1[6]" identifier [ number_literal ])) ;) (expression_statement "__n = param_1 * 4;" (assignment_expression "__n = param_1 * 4" identifier = (binary_expression "param_1 * 4" identifier * number_literal)) ;) (expression_statement "uVar2 = uVar4 - puVar1[5];" (assignment_expression "uVar2 = uVar4 - puVar1[5]" identifier = (binary_expression "uVar4 - puVar1[5]" identifier - (subscript_expression "puVar1[5]" identifier [ number_literal ]))) ;) (if_statement "if (__n < uVar2 || __n - uVar2 == 0) {\n    local_24 = (void *)puVar1[4];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }\n  else {\n    _obstack_newchunk(puVar1 + 2,__n);\n    local_24 = (void *)puVar1[4];\n    uVar4 = puVar1[6];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }" if (parenthesized_expression "(__n < uVar2 || __n - uVar2 == 0)" ( (binary_expression "__n < uVar2 || __n - uVar2 == 0" (binary_expression "__n < uVar2" identifier < identifier) || (binary_expression "__n - uVar2 == 0" (binary_expression "__n - uVar2" identifier - identifier) == number_literal)) )) (compound_statement "{\n    local_24 = (void *)puVar1[4];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }" { (expression_statement "local_24 = (void *)puVar1[4];" (assignment_expression "local_24 = (void *)puVar1[4]" identifier = (cast_expression "(void *)puVar1[4]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[4]" identifier [ number_literal ]))) ;) (expression_statement "pvVar3 = (void *)(puVar1[5] + __n);" (assignment_expression "pvVar3 = (void *)(puVar1[5] + __n)" identifier = (cast_expression "(void *)(puVar1[5] + __n)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1[5] + __n)" ( (binary_expression "puVar1[5] + __n" (subscript_expression "puVar1[5]" identifier [ number_literal ]) + identifier) )))) ;) (expression_statement "puVar1[5] = pvVar3;" (assignment_expression "puVar1[5] = pvVar3" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (pvVar3 != local_24) goto LAB_00025157;" if (parenthesized_expression "(pvVar3 != local_24)" ( (binary_expression "pvVar3 != local_24" identifier != identifier) )) (goto_statement "goto LAB_00025157;" goto statement_identifier ;)) }) (else_clause "else {\n    _obstack_newchunk(puVar1 + 2,__n);\n    local_24 = (void *)puVar1[4];\n    uVar4 = puVar1[6];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }" else (compound_statement "{\n    _obstack_newchunk(puVar1 + 2,__n);\n    local_24 = (void *)puVar1[4];\n    uVar4 = puVar1[6];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }" { (expression_statement "_obstack_newchunk(puVar1 + 2,__n);" (call_expression "_obstack_newchunk(puVar1 + 2,__n)" identifier (argument_list "(puVar1 + 2,__n)" ( (binary_expression "puVar1 + 2" identifier + number_literal) , identifier ))) ;) (expression_statement "local_24 = (void *)puVar1[4];" (assignment_expression "local_24 = (void *)puVar1[4]" identifier = (cast_expression "(void *)puVar1[4]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[4]" identifier [ number_literal ]))) ;) (expression_statement "uVar4 = puVar1[6];" (assignment_expression "uVar4 = puVar1[6]" identifier = (subscript_expression "puVar1[6]" identifier [ number_literal ])) ;) (expression_statement "pvVar3 = (void *)(puVar1[5] + __n);" (assignment_expression "pvVar3 = (void *)(puVar1[5] + __n)" identifier = (cast_expression "(void *)(puVar1[5] + __n)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1[5] + __n)" ( (binary_expression "puVar1[5] + __n" (subscript_expression "puVar1[5]" identifier [ number_literal ]) + identifier) )))) ;) (expression_statement "puVar1[5] = pvVar3;" (assignment_expression "puVar1[5] = pvVar3" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (pvVar3 != local_24) goto LAB_00025157;" if (parenthesized_expression "(pvVar3 != local_24)" ( (binary_expression "pvVar3 != local_24" identifier != identifier) )) (goto_statement "goto LAB_00025157;" goto statement_identifier ;)) }))) (expression_statement "*(byte *)(puVar1 + 0xc) = *(byte *)(puVar1 + 0xc) | 2;" (assignment_expression "*(byte *)(puVar1 + 0xc) = *(byte *)(puVar1 + 0xc) | 2" (pointer_expression "*(byte *)(puVar1 + 0xc)" * (cast_expression "(byte *)(puVar1 + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0xc)" ( (binary_expression "puVar1 + 0xc" identifier + number_literal) )))) = (binary_expression "*(byte *)(puVar1 + 0xc) | 2" (pointer_expression "*(byte *)(puVar1 + 0xc)" * (cast_expression "(byte *)(puVar1 + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0xc)" ( (binary_expression "puVar1 + 0xc" identifier + number_literal) )))) | number_literal)) ;) (labeled_statement "LAB_00025157:\n  uVar2 = (int)pvVar3 + puVar1[8] & ~puVar1[8];" statement_identifier : (expression_statement "uVar2 = (int)pvVar3 + puVar1[8] & ~puVar1[8];" (assignment_expression "uVar2 = (int)pvVar3 + puVar1[8] & ~puVar1[8]" identifier = (binary_expression "(int)pvVar3 + puVar1[8] & ~puVar1[8]" (binary_expression "(int)pvVar3 + puVar1[8]" (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (subscript_expression "puVar1[8]" identifier [ number_literal ])) & (unary_expression "~puVar1[8]" ~ (subscript_expression "puVar1[8]" identifier [ number_literal ])))) ;)) (expression_statement "puVar1[5] = uVar2;" (assignment_expression "puVar1[5] = uVar2" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (uVar4 - puVar1[3] < uVar2 - puVar1[3]) {\n    puVar1[5] = uVar4;\n    uVar2 = uVar4;\n  }" if (parenthesized_expression "(uVar4 - puVar1[3] < uVar2 - puVar1[3])" ( (binary_expression "uVar4 - puVar1[3] < uVar2 - puVar1[3]" (binary_expression "uVar4 - puVar1[3]" identifier - (subscript_expression "puVar1[3]" identifier [ number_literal ])) < (binary_expression "uVar2 - puVar1[3]" identifier - (subscript_expression "puVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n    puVar1[5] = uVar4;\n    uVar2 = uVar4;\n  }" { (expression_statement "puVar1[5] = uVar4;" (assignment_expression "puVar1[5] = uVar4" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = uVar4;" (assignment_expression "uVar2 = uVar4" identifier = identifier) ;) })) (expression_statement "puVar1[4] = uVar2;" (assignment_expression "puVar1[4] = uVar2" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar1 = local_24;" (assignment_expression "*puVar1 = local_24" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "memset(local_24,0,__n);" (call_expression "memset(local_24,0,__n)" identifier (argument_list "(local_24,0,__n)" ( identifier , number_literal , identifier ))) ;) (expression_statement "puVar1[1] = param_1;" (assignment_expression "puVar1[1] = param_1" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return puVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nhash_control * hash_new_sized(ulong size)\n\n{\n  undefined1 *puVar1;\n  uint __n;\n  _obstack_chunk *p_Var2;\n  hash_control *phVar3;\n  uint uVar4;\n  char *pcVar5;\n  hash_entry **pphVar6;\n  char *pcVar7;\n  hash_entry **local_24;\n  \n  phVar3 = (hash_control *)xmalloc(0x34);\n  _obstack_begin(&phVar3->memory,chunksize,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58);\n  pcVar7 = (phVar3->memory).chunk_limit;\n  pcVar5 = (phVar3->memory).next_free;\n  __n = size * 4;\n  uVar4 = (int)pcVar7 - (int)pcVar5;\n  if (__n < uVar4 || __n - uVar4 == 0) {\n    local_24 = (hash_entry **)(phVar3->memory).object_base;\n    pphVar6 = (hash_entry **)(pcVar5 + __n);\n    (phVar3->memory).next_free = (char *)pphVar6;\n    if (pphVar6 != local_24) goto LAB_00025157;\n  }\n  else {\n    _obstack_newchunk(&phVar3->memory,__n);\n    local_24 = (hash_entry **)(phVar3->memory).object_base;\n    pcVar7 = (phVar3->memory).chunk_limit;\n    pphVar6 = (hash_entry **)((phVar3->memory).next_free + __n);\n    (phVar3->memory).next_free = (char *)pphVar6;\n    if (pphVar6 != local_24) goto LAB_00025157;\n  }\n  puVar1 = &(phVar3->memory).field_0x28;\n  *puVar1 = *puVar1 | 2;\nLAB_00025157:\n  uVar4 = (phVar3->memory).alignment_mask;\n  p_Var2 = (phVar3->memory).chunk;\n  pcVar5 = (char *)((uint)((int)pphVar6 + uVar4) & ~uVar4);\n  (phVar3->memory).next_free = pcVar5;\n  if ((uint)((int)pcVar7 - (int)p_Var2) < (uint)((int)pcVar5 - (int)p_Var2)) {\n    (phVar3->memory).next_free = pcVar7;\n    pcVar5 = pcVar7;\n  }\n  (phVar3->memory).object_base = pcVar5;\n  phVar3->table = local_24;\n  memset(local_24,0,__n);\n  phVar3->size = size;\n  return phVar3;\n}\n\n" comment comment (function_definition "hash_control * hash_new_sized(ulong size)\n\n{\n  undefined1 *puVar1;\n  uint __n;\n  _obstack_chunk *p_Var2;\n  hash_control *phVar3;\n  uint uVar4;\n  char *pcVar5;\n  hash_entry **pphVar6;\n  char *pcVar7;\n  hash_entry **local_24;\n  \n  phVar3 = (hash_control *)xmalloc(0x34);\n  _obstack_begin(&phVar3->memory,chunksize,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58);\n  pcVar7 = (phVar3->memory).chunk_limit;\n  pcVar5 = (phVar3->memory).next_free;\n  __n = size * 4;\n  uVar4 = (int)pcVar7 - (int)pcVar5;\n  if (__n < uVar4 || __n - uVar4 == 0) {\n    local_24 = (hash_entry **)(phVar3->memory).object_base;\n    pphVar6 = (hash_entry **)(pcVar5 + __n);\n    (phVar3->memory).next_free = (char *)pphVar6;\n    if (pphVar6 != local_24) goto LAB_00025157;\n  }\n  else {\n    _obstack_newchunk(&phVar3->memory,__n);\n    local_24 = (hash_entry **)(phVar3->memory).object_base;\n    pcVar7 = (phVar3->memory).chunk_limit;\n    pphVar6 = (hash_entry **)((phVar3->memory).next_free + __n);\n    (phVar3->memory).next_free = (char *)pphVar6;\n    if (pphVar6 != local_24) goto LAB_00025157;\n  }\n  puVar1 = &(phVar3->memory).field_0x28;\n  *puVar1 = *puVar1 | 2;\nLAB_00025157:\n  uVar4 = (phVar3->memory).alignment_mask;\n  p_Var2 = (phVar3->memory).chunk;\n  pcVar5 = (char *)((uint)((int)pphVar6 + uVar4) & ~uVar4);\n  (phVar3->memory).next_free = pcVar5;\n  if ((uint)((int)pcVar7 - (int)p_Var2) < (uint)((int)pcVar5 - (int)p_Var2)) {\n    (phVar3->memory).next_free = pcVar7;\n    pcVar5 = pcVar7;\n  }\n  (phVar3->memory).object_base = pcVar5;\n  phVar3->table = local_24;\n  memset(local_24,0,__n);\n  phVar3->size = size;\n  return phVar3;\n}" type_identifier (pointer_declarator "* hash_new_sized(ulong size)" * (function_declarator "hash_new_sized(ulong size)" identifier (parameter_list "(ulong size)" ( (parameter_declaration "ulong size" type_identifier identifier) )))) (compound_statement "{\n  undefined1 *puVar1;\n  uint __n;\n  _obstack_chunk *p_Var2;\n  hash_control *phVar3;\n  uint uVar4;\n  char *pcVar5;\n  hash_entry **pphVar6;\n  char *pcVar7;\n  hash_entry **local_24;\n  \n  phVar3 = (hash_control *)xmalloc(0x34);\n  _obstack_begin(&phVar3->memory,chunksize,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58);\n  pcVar7 = (phVar3->memory).chunk_limit;\n  pcVar5 = (phVar3->memory).next_free;\n  __n = size * 4;\n  uVar4 = (int)pcVar7 - (int)pcVar5;\n  if (__n < uVar4 || __n - uVar4 == 0) {\n    local_24 = (hash_entry **)(phVar3->memory).object_base;\n    pphVar6 = (hash_entry **)(pcVar5 + __n);\n    (phVar3->memory).next_free = (char *)pphVar6;\n    if (pphVar6 != local_24) goto LAB_00025157;\n  }\n  else {\n    _obstack_newchunk(&phVar3->memory,__n);\n    local_24 = (hash_entry **)(phVar3->memory).object_base;\n    pcVar7 = (phVar3->memory).chunk_limit;\n    pphVar6 = (hash_entry **)((phVar3->memory).next_free + __n);\n    (phVar3->memory).next_free = (char *)pphVar6;\n    if (pphVar6 != local_24) goto LAB_00025157;\n  }\n  puVar1 = &(phVar3->memory).field_0x28;\n  *puVar1 = *puVar1 | 2;\nLAB_00025157:\n  uVar4 = (phVar3->memory).alignment_mask;\n  p_Var2 = (phVar3->memory).chunk;\n  pcVar5 = (char *)((uint)((int)pphVar6 + uVar4) & ~uVar4);\n  (phVar3->memory).next_free = pcVar5;\n  if ((uint)((int)pcVar7 - (int)p_Var2) < (uint)((int)pcVar5 - (int)p_Var2)) {\n    (phVar3->memory).next_free = pcVar7;\n    pcVar5 = pcVar7;\n  }\n  (phVar3->memory).object_base = pcVar5;\n  phVar3->table = local_24;\n  memset(local_24,0,__n);\n  phVar3->size = size;\n  return phVar3;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint __n;" type_identifier identifier ;) (declaration "_obstack_chunk *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "hash_control *phVar3;" type_identifier (pointer_declarator "*phVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "hash_entry **pphVar6;" type_identifier (pointer_declarator "**pphVar6" * (pointer_declarator "*pphVar6" * identifier)) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "hash_entry **local_24;" type_identifier (pointer_declarator "**local_24" * (pointer_declarator "*local_24" * identifier)) ;) (expression_statement "phVar3 = (hash_control *)xmalloc(0x34);" (assignment_expression "phVar3 = (hash_control *)xmalloc(0x34)" identifier = (cast_expression "(hash_control *)xmalloc(0x34)" ( (type_descriptor "hash_control *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x34)" identifier (argument_list "(0x34)" ( number_literal ))))) ;) (expression_statement "_obstack_begin(&phVar3->memory,chunksize,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58);" (call_expression "_obstack_begin(&phVar3->memory,chunksize,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58)" identifier (argument_list "(&phVar3->memory,chunksize,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58)" ( (pointer_expression "&phVar3->memory" & (field_expression "phVar3->memory" identifier -> field_identifier)) , identifier , number_literal , identifier , identifier ))) ;) (expression_statement "pcVar7 = (phVar3->memory).chunk_limit;" (assignment_expression "pcVar7 = (phVar3->memory).chunk_limit" identifier = (field_expression "(phVar3->memory).chunk_limit" (parenthesized_expression "(phVar3->memory)" ( (field_expression "phVar3->memory" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "pcVar5 = (phVar3->memory).next_free;" (assignment_expression "pcVar5 = (phVar3->memory).next_free" identifier = (field_expression "(phVar3->memory).next_free" (parenthesized_expression "(phVar3->memory)" ( (field_expression "phVar3->memory" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "__n = size * 4;" (assignment_expression "__n = size * 4" identifier = (binary_expression "size * 4" identifier * number_literal)) ;) (expression_statement "uVar4 = (int)pcVar7 - (int)pcVar5;" (assignment_expression "uVar4 = (int)pcVar7 - (int)pcVar5" identifier = (binary_expression "(int)pcVar7 - (int)pcVar5" (cast_expression "(int)pcVar7" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (__n < uVar4 || __n - uVar4 == 0) {\n    local_24 = (hash_entry **)(phVar3->memory).object_base;\n    pphVar6 = (hash_entry **)(pcVar5 + __n);\n    (phVar3->memory).next_free = (char *)pphVar6;\n    if (pphVar6 != local_24) goto LAB_00025157;\n  }\n  else {\n    _obstack_newchunk(&phVar3->memory,__n);\n    local_24 = (hash_entry **)(phVar3->memory).object_base;\n    pcVar7 = (phVar3->memory).chunk_limit;\n    pphVar6 = (hash_entry **)((phVar3->memory).next_free + __n);\n    (phVar3->memory).next_free = (char *)pphVar6;\n    if (pphVar6 != local_24) goto LAB_00025157;\n  }" if (parenthesized_expression "(__n < uVar4 || __n - uVar4 == 0)" ( (binary_expression "__n < uVar4 || __n - uVar4 == 0" (binary_expression "__n < uVar4" identifier < identifier) || (binary_expression "__n - uVar4 == 0" (binary_expression "__n - uVar4" identifier - identifier) == number_literal)) )) (compound_statement "{\n    local_24 = (hash_entry **)(phVar3->memory).object_base;\n    pphVar6 = (hash_entry **)(pcVar5 + __n);\n    (phVar3->memory).next_free = (char *)pphVar6;\n    if (pphVar6 != local_24) goto LAB_00025157;\n  }" { (expression_statement "local_24 = (hash_entry **)(phVar3->memory).object_base;" (assignment_expression "local_24 = (hash_entry **)(phVar3->memory).object_base" identifier = (cast_expression "(hash_entry **)(phVar3->memory).object_base" ( (type_descriptor "hash_entry **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (field_expression "(phVar3->memory).object_base" (parenthesized_expression "(phVar3->memory)" ( (field_expression "phVar3->memory" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "pphVar6 = (hash_entry **)(pcVar5 + __n);" (assignment_expression "pphVar6 = (hash_entry **)(pcVar5 + __n)" identifier = (cast_expression "(hash_entry **)(pcVar5 + __n)" ( (type_descriptor "hash_entry **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar5 + __n)" ( (binary_expression "pcVar5 + __n" identifier + identifier) )))) ;) (expression_statement "(phVar3->memory).next_free = (char *)pphVar6;" (assignment_expression "(phVar3->memory).next_free = (char *)pphVar6" (field_expression "(phVar3->memory).next_free" (parenthesized_expression "(phVar3->memory)" ( (field_expression "phVar3->memory" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(char *)pphVar6" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (pphVar6 != local_24) goto LAB_00025157;" if (parenthesized_expression "(pphVar6 != local_24)" ( (binary_expression "pphVar6 != local_24" identifier != identifier) )) (goto_statement "goto LAB_00025157;" goto statement_identifier ;)) }) (else_clause "else {\n    _obstack_newchunk(&phVar3->memory,__n);\n    local_24 = (hash_entry **)(phVar3->memory).object_base;\n    pcVar7 = (phVar3->memory).chunk_limit;\n    pphVar6 = (hash_entry **)((phVar3->memory).next_free + __n);\n    (phVar3->memory).next_free = (char *)pphVar6;\n    if (pphVar6 != local_24) goto LAB_00025157;\n  }" else (compound_statement "{\n    _obstack_newchunk(&phVar3->memory,__n);\n    local_24 = (hash_entry **)(phVar3->memory).object_base;\n    pcVar7 = (phVar3->memory).chunk_limit;\n    pphVar6 = (hash_entry **)((phVar3->memory).next_free + __n);\n    (phVar3->memory).next_free = (char *)pphVar6;\n    if (pphVar6 != local_24) goto LAB_00025157;\n  }" { (expression_statement "_obstack_newchunk(&phVar3->memory,__n);" (call_expression "_obstack_newchunk(&phVar3->memory,__n)" identifier (argument_list "(&phVar3->memory,__n)" ( (pointer_expression "&phVar3->memory" & (field_expression "phVar3->memory" identifier -> field_identifier)) , identifier ))) ;) (expression_statement "local_24 = (hash_entry **)(phVar3->memory).object_base;" (assignment_expression "local_24 = (hash_entry **)(phVar3->memory).object_base" identifier = (cast_expression "(hash_entry **)(phVar3->memory).object_base" ( (type_descriptor "hash_entry **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (field_expression "(phVar3->memory).object_base" (parenthesized_expression "(phVar3->memory)" ( (field_expression "phVar3->memory" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "pcVar7 = (phVar3->memory).chunk_limit;" (assignment_expression "pcVar7 = (phVar3->memory).chunk_limit" identifier = (field_expression "(phVar3->memory).chunk_limit" (parenthesized_expression "(phVar3->memory)" ( (field_expression "phVar3->memory" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "pphVar6 = (hash_entry **)((phVar3->memory).next_free + __n);" (assignment_expression "pphVar6 = (hash_entry **)((phVar3->memory).next_free + __n)" identifier = (cast_expression "(hash_entry **)((phVar3->memory).next_free + __n)" ( (type_descriptor "hash_entry **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((phVar3->memory).next_free + __n)" ( (binary_expression "(phVar3->memory).next_free + __n" (field_expression "(phVar3->memory).next_free" (parenthesized_expression "(phVar3->memory)" ( (field_expression "phVar3->memory" identifier -> field_identifier) )) . field_identifier) + identifier) )))) ;) (expression_statement "(phVar3->memory).next_free = (char *)pphVar6;" (assignment_expression "(phVar3->memory).next_free = (char *)pphVar6" (field_expression "(phVar3->memory).next_free" (parenthesized_expression "(phVar3->memory)" ( (field_expression "phVar3->memory" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(char *)pphVar6" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (pphVar6 != local_24) goto LAB_00025157;" if (parenthesized_expression "(pphVar6 != local_24)" ( (binary_expression "pphVar6 != local_24" identifier != identifier) )) (goto_statement "goto LAB_00025157;" goto statement_identifier ;)) }))) (expression_statement "puVar1 = &(phVar3->memory).field_0x28;" (assignment_expression "puVar1 = &(phVar3->memory).field_0x28" identifier = (pointer_expression "&(phVar3->memory).field_0x28" & (field_expression "(phVar3->memory).field_0x28" (parenthesized_expression "(phVar3->memory)" ( (field_expression "phVar3->memory" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "*puVar1 = *puVar1 | 2;" (assignment_expression "*puVar1 = *puVar1 | 2" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 | 2" (pointer_expression "*puVar1" * identifier) | number_literal)) ;) (labeled_statement "LAB_00025157:\n  uVar4 = (phVar3->memory).alignment_mask;" statement_identifier : (expression_statement "uVar4 = (phVar3->memory).alignment_mask;" (assignment_expression "uVar4 = (phVar3->memory).alignment_mask" identifier = (field_expression "(phVar3->memory).alignment_mask" (parenthesized_expression "(phVar3->memory)" ( (field_expression "phVar3->memory" identifier -> field_identifier) )) . field_identifier)) ;)) (expression_statement "p_Var2 = (phVar3->memory).chunk;" (assignment_expression "p_Var2 = (phVar3->memory).chunk" identifier = (field_expression "(phVar3->memory).chunk" (parenthesized_expression "(phVar3->memory)" ( (field_expression "phVar3->memory" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "pcVar5 = (char *)((uint)((int)pphVar6 + uVar4) & ~uVar4);" (assignment_expression "pcVar5 = (char *)((uint)((int)pphVar6 + uVar4) & ~uVar4)" identifier = (cast_expression "(char *)((uint)((int)pphVar6 + uVar4) & ~uVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)((int)pphVar6 + uVar4) & ~uVar4)" ( (binary_expression "(uint)((int)pphVar6 + uVar4) & ~uVar4" (call_expression "(uint)((int)pphVar6 + uVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pphVar6 + uVar4)" ( (binary_expression "(int)pphVar6 + uVar4" (cast_expression "(int)pphVar6" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))) & (unary_expression "~uVar4" ~ identifier)) )))) ;) (expression_statement "(phVar3->memory).next_free = pcVar5;" (assignment_expression "(phVar3->memory).next_free = pcVar5" (field_expression "(phVar3->memory).next_free" (parenthesized_expression "(phVar3->memory)" ( (field_expression "phVar3->memory" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (if_statement "if ((uint)((int)pcVar7 - (int)p_Var2) < (uint)((int)pcVar5 - (int)p_Var2)) {\n    (phVar3->memory).next_free = pcVar7;\n    pcVar5 = pcVar7;\n  }" if (parenthesized_expression "((uint)((int)pcVar7 - (int)p_Var2) < (uint)((int)pcVar5 - (int)p_Var2))" ( (binary_expression "(uint)((int)pcVar7 - (int)p_Var2) < (uint)((int)pcVar5 - (int)p_Var2)" (call_expression "(uint)((int)pcVar7 - (int)p_Var2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar7 - (int)p_Var2)" ( (binary_expression "(int)pcVar7 - (int)p_Var2" (cast_expression "(int)pcVar7" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)p_Var2" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < (call_expression "(uint)((int)pcVar5 - (int)p_Var2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar5 - (int)p_Var2)" ( (binary_expression "(int)pcVar5 - (int)p_Var2" (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)p_Var2" ( (type_descriptor "int" primitive_type) ) identifier)) )))) )) (compound_statement "{\n    (phVar3->memory).next_free = pcVar7;\n    pcVar5 = pcVar7;\n  }" { (expression_statement "(phVar3->memory).next_free = pcVar7;" (assignment_expression "(phVar3->memory).next_free = pcVar7" (field_expression "(phVar3->memory).next_free" (parenthesized_expression "(phVar3->memory)" ( (field_expression "phVar3->memory" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "pcVar5 = pcVar7;" (assignment_expression "pcVar5 = pcVar7" identifier = identifier) ;) })) (expression_statement "(phVar3->memory).object_base = pcVar5;" (assignment_expression "(phVar3->memory).object_base = pcVar5" (field_expression "(phVar3->memory).object_base" (parenthesized_expression "(phVar3->memory)" ( (field_expression "phVar3->memory" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "phVar3->table = local_24;" (assignment_expression "phVar3->table = local_24" (field_expression "phVar3->table" identifier -> field_identifier) = identifier) ;) (expression_statement "memset(local_24,0,__n);" (call_expression "memset(local_24,0,__n)" identifier (argument_list "(local_24,0,__n)" ( identifier , number_literal , identifier ))) ;) (expression_statement "phVar3->size = size;" (assignment_expression "phVar3->size = size" (field_expression "phVar3->size" identifier -> field_identifier) = identifier) ;) (return_statement "return phVar3;" return identifier ;) })))
(translation_unit "undefined4 * FUN_000250f0(int param_1)\n\n{\n  uint __n;\n  undefined4 *puVar1;\n  uint uVar2;\n  void *pvVar3;\n  uint uVar4;\n  void *local_24;\n  \n  puVar1 = (undefined4 *)xmalloc(0x34);\n  _obstack_begin(puVar1 + 2,DAT_00077690,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58);\n  uVar4 = puVar1[6];\n  __n = param_1 * 4;\n  uVar2 = uVar4 - puVar1[5];\n  if (__n < uVar2 || __n - uVar2 == 0) {\n    local_24 = (void *)puVar1[4];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }\n  else {\n    _obstack_newchunk(puVar1 + 2,__n);\n    local_24 = (void *)puVar1[4];\n    uVar4 = puVar1[6];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }\n  *(byte *)(puVar1 + 0xc) = *(byte *)(puVar1 + 0xc) | 2;\nLAB_00025157:\n  uVar2 = (int)pvVar3 + puVar1[8] & ~puVar1[8];\n  puVar1[5] = uVar2;\n  if (uVar4 - puVar1[3] < uVar2 - puVar1[3]) {\n    puVar1[5] = uVar4;\n    uVar2 = uVar4;\n  }\n  puVar1[4] = uVar2;\n  *puVar1 = local_24;\n  memset(local_24,0,__n);\n  puVar1[1] = param_1;\n  return puVar1;\n}\n\n" (function_definition "undefined4 * FUN_000250f0(int param_1)\n\n{\n  uint __n;\n  undefined4 *puVar1;\n  uint uVar2;\n  void *pvVar3;\n  uint uVar4;\n  void *local_24;\n  \n  puVar1 = (undefined4 *)xmalloc(0x34);\n  _obstack_begin(puVar1 + 2,DAT_00077690,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58);\n  uVar4 = puVar1[6];\n  __n = param_1 * 4;\n  uVar2 = uVar4 - puVar1[5];\n  if (__n < uVar2 || __n - uVar2 == 0) {\n    local_24 = (void *)puVar1[4];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }\n  else {\n    _obstack_newchunk(puVar1 + 2,__n);\n    local_24 = (void *)puVar1[4];\n    uVar4 = puVar1[6];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }\n  *(byte *)(puVar1 + 0xc) = *(byte *)(puVar1 + 0xc) | 2;\nLAB_00025157:\n  uVar2 = (int)pvVar3 + puVar1[8] & ~puVar1[8];\n  puVar1[5] = uVar2;\n  if (uVar4 - puVar1[3] < uVar2 - puVar1[3]) {\n    puVar1[5] = uVar4;\n    uVar2 = uVar4;\n  }\n  puVar1[4] = uVar2;\n  *puVar1 = local_24;\n  memset(local_24,0,__n);\n  puVar1[1] = param_1;\n  return puVar1;\n}" type_identifier (pointer_declarator "* FUN_000250f0(int param_1)" * (function_declarator "FUN_000250f0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  uint __n;\n  undefined4 *puVar1;\n  uint uVar2;\n  void *pvVar3;\n  uint uVar4;\n  void *local_24;\n  \n  puVar1 = (undefined4 *)xmalloc(0x34);\n  _obstack_begin(puVar1 + 2,DAT_00077690,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58);\n  uVar4 = puVar1[6];\n  __n = param_1 * 4;\n  uVar2 = uVar4 - puVar1[5];\n  if (__n < uVar2 || __n - uVar2 == 0) {\n    local_24 = (void *)puVar1[4];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }\n  else {\n    _obstack_newchunk(puVar1 + 2,__n);\n    local_24 = (void *)puVar1[4];\n    uVar4 = puVar1[6];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }\n  *(byte *)(puVar1 + 0xc) = *(byte *)(puVar1 + 0xc) | 2;\nLAB_00025157:\n  uVar2 = (int)pvVar3 + puVar1[8] & ~puVar1[8];\n  puVar1[5] = uVar2;\n  if (uVar4 - puVar1[3] < uVar2 - puVar1[3]) {\n    puVar1[5] = uVar4;\n    uVar2 = uVar4;\n  }\n  puVar1[4] = uVar2;\n  *puVar1 = local_24;\n  memset(local_24,0,__n);\n  puVar1[1] = param_1;\n  return puVar1;\n}" { (declaration "uint __n;" type_identifier identifier ;) (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "void *local_24;" primitive_type (pointer_declarator "*local_24" * identifier) ;) (expression_statement "puVar1 = (undefined4 *)xmalloc(0x34);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0x34)" identifier = (cast_expression "(undefined4 *)xmalloc(0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x34)" identifier (argument_list "(0x34)" ( number_literal ))))) ;) (expression_statement "_obstack_begin(puVar1 + 2,DAT_00077690,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58);" (call_expression "_obstack_begin(puVar1 + 2,DAT_00077690,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58)" identifier (argument_list "(puVar1 + 2,DAT_00077690,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58)" ( (binary_expression "puVar1 + 2" identifier + number_literal) , identifier , number_literal , identifier , identifier ))) ;) (expression_statement "uVar4 = puVar1[6];" (assignment_expression "uVar4 = puVar1[6]" identifier = (subscript_expression "puVar1[6]" identifier [ number_literal ])) ;) (expression_statement "__n = param_1 * 4;" (assignment_expression "__n = param_1 * 4" identifier = (binary_expression "param_1 * 4" identifier * number_literal)) ;) (expression_statement "uVar2 = uVar4 - puVar1[5];" (assignment_expression "uVar2 = uVar4 - puVar1[5]" identifier = (binary_expression "uVar4 - puVar1[5]" identifier - (subscript_expression "puVar1[5]" identifier [ number_literal ]))) ;) (if_statement "if (__n < uVar2 || __n - uVar2 == 0) {\n    local_24 = (void *)puVar1[4];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }\n  else {\n    _obstack_newchunk(puVar1 + 2,__n);\n    local_24 = (void *)puVar1[4];\n    uVar4 = puVar1[6];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }" if (parenthesized_expression "(__n < uVar2 || __n - uVar2 == 0)" ( (binary_expression "__n < uVar2 || __n - uVar2 == 0" (binary_expression "__n < uVar2" identifier < identifier) || (binary_expression "__n - uVar2 == 0" (binary_expression "__n - uVar2" identifier - identifier) == number_literal)) )) (compound_statement "{\n    local_24 = (void *)puVar1[4];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }" { (expression_statement "local_24 = (void *)puVar1[4];" (assignment_expression "local_24 = (void *)puVar1[4]" identifier = (cast_expression "(void *)puVar1[4]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[4]" identifier [ number_literal ]))) ;) (expression_statement "pvVar3 = (void *)(puVar1[5] + __n);" (assignment_expression "pvVar3 = (void *)(puVar1[5] + __n)" identifier = (cast_expression "(void *)(puVar1[5] + __n)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1[5] + __n)" ( (binary_expression "puVar1[5] + __n" (subscript_expression "puVar1[5]" identifier [ number_literal ]) + identifier) )))) ;) (expression_statement "puVar1[5] = pvVar3;" (assignment_expression "puVar1[5] = pvVar3" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (pvVar3 != local_24) goto LAB_00025157;" if (parenthesized_expression "(pvVar3 != local_24)" ( (binary_expression "pvVar3 != local_24" identifier != identifier) )) (goto_statement "goto LAB_00025157;" goto statement_identifier ;)) }) (else_clause "else {\n    _obstack_newchunk(puVar1 + 2,__n);\n    local_24 = (void *)puVar1[4];\n    uVar4 = puVar1[6];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }" else (compound_statement "{\n    _obstack_newchunk(puVar1 + 2,__n);\n    local_24 = (void *)puVar1[4];\n    uVar4 = puVar1[6];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }" { (expression_statement "_obstack_newchunk(puVar1 + 2,__n);" (call_expression "_obstack_newchunk(puVar1 + 2,__n)" identifier (argument_list "(puVar1 + 2,__n)" ( (binary_expression "puVar1 + 2" identifier + number_literal) , identifier ))) ;) (expression_statement "local_24 = (void *)puVar1[4];" (assignment_expression "local_24 = (void *)puVar1[4]" identifier = (cast_expression "(void *)puVar1[4]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[4]" identifier [ number_literal ]))) ;) (expression_statement "uVar4 = puVar1[6];" (assignment_expression "uVar4 = puVar1[6]" identifier = (subscript_expression "puVar1[6]" identifier [ number_literal ])) ;) (expression_statement "pvVar3 = (void *)(puVar1[5] + __n);" (assignment_expression "pvVar3 = (void *)(puVar1[5] + __n)" identifier = (cast_expression "(void *)(puVar1[5] + __n)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1[5] + __n)" ( (binary_expression "puVar1[5] + __n" (subscript_expression "puVar1[5]" identifier [ number_literal ]) + identifier) )))) ;) (expression_statement "puVar1[5] = pvVar3;" (assignment_expression "puVar1[5] = pvVar3" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (pvVar3 != local_24) goto LAB_00025157;" if (parenthesized_expression "(pvVar3 != local_24)" ( (binary_expression "pvVar3 != local_24" identifier != identifier) )) (goto_statement "goto LAB_00025157;" goto statement_identifier ;)) }))) (expression_statement "*(byte *)(puVar1 + 0xc) = *(byte *)(puVar1 + 0xc) | 2;" (assignment_expression "*(byte *)(puVar1 + 0xc) = *(byte *)(puVar1 + 0xc) | 2" (pointer_expression "*(byte *)(puVar1 + 0xc)" * (cast_expression "(byte *)(puVar1 + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0xc)" ( (binary_expression "puVar1 + 0xc" identifier + number_literal) )))) = (binary_expression "*(byte *)(puVar1 + 0xc) | 2" (pointer_expression "*(byte *)(puVar1 + 0xc)" * (cast_expression "(byte *)(puVar1 + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0xc)" ( (binary_expression "puVar1 + 0xc" identifier + number_literal) )))) | number_literal)) ;) (labeled_statement "LAB_00025157:\n  uVar2 = (int)pvVar3 + puVar1[8] & ~puVar1[8];" statement_identifier : (expression_statement "uVar2 = (int)pvVar3 + puVar1[8] & ~puVar1[8];" (assignment_expression "uVar2 = (int)pvVar3 + puVar1[8] & ~puVar1[8]" identifier = (binary_expression "(int)pvVar3 + puVar1[8] & ~puVar1[8]" (binary_expression "(int)pvVar3 + puVar1[8]" (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (subscript_expression "puVar1[8]" identifier [ number_literal ])) & (unary_expression "~puVar1[8]" ~ (subscript_expression "puVar1[8]" identifier [ number_literal ])))) ;)) (expression_statement "puVar1[5] = uVar2;" (assignment_expression "puVar1[5] = uVar2" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (uVar4 - puVar1[3] < uVar2 - puVar1[3]) {\n    puVar1[5] = uVar4;\n    uVar2 = uVar4;\n  }" if (parenthesized_expression "(uVar4 - puVar1[3] < uVar2 - puVar1[3])" ( (binary_expression "uVar4 - puVar1[3] < uVar2 - puVar1[3]" (binary_expression "uVar4 - puVar1[3]" identifier - (subscript_expression "puVar1[3]" identifier [ number_literal ])) < (binary_expression "uVar2 - puVar1[3]" identifier - (subscript_expression "puVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n    puVar1[5] = uVar4;\n    uVar2 = uVar4;\n  }" { (expression_statement "puVar1[5] = uVar4;" (assignment_expression "puVar1[5] = uVar4" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = uVar4;" (assignment_expression "uVar2 = uVar4" identifier = identifier) ;) })) (expression_statement "puVar1[4] = uVar2;" (assignment_expression "puVar1[4] = uVar2" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar1 = local_24;" (assignment_expression "*puVar1 = local_24" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "memset(local_24,0,__n);" (call_expression "memset(local_24,0,__n)" identifier (argument_list "(local_24,0,__n)" ( identifier , number_literal , identifier ))) ;) (expression_statement "puVar1[1] = param_1;" (assignment_expression "puVar1[1] = param_1" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return puVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , LIT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT < IDENT) || (binary_expression (binary_expression IDENT - IDENT) == LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (subscript_expression IDENT [ LIT ])) & (unary_expression ~ (subscript_expression IDENT [ LIT ])))) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - (subscript_expression IDENT [ LIT ])) < (binary_expression IDENT - (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 * FUN_000250f0(int param_1)\n\n{\n  uint __n;\n  undefined4 *puVar1;\n  uint uVar2;\n  void *pvVar3;\n  uint uVar4;\n  void *local_24;\n  \n  puVar1 = (undefined4 *)xmalloc(0x34);\n  _obstack_begin(puVar1 + 2,DAT_00077690,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58);\n  uVar4 = puVar1[6];\n  __n = param_1 * 4;\n  uVar2 = uVar4 - puVar1[5];\n  if (__n < uVar2 || __n - uVar2 == 0) {\n    local_24 = (void *)puVar1[4];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }\n  else {\n    _obstack_newchunk(puVar1 + 2,__n);\n    local_24 = (void *)puVar1[4];\n    uVar4 = puVar1[6];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }\n  *(byte *)(puVar1 + 0xc) = *(byte *)(puVar1 + 0xc) | 2;\nLAB_00025157:\n  uVar2 = (int)pvVar3 + puVar1[8] & ~puVar1[8];\n  puVar1[5] = uVar2;\n  if (uVar4 - puVar1[3] < uVar2 - puVar1[3]) {\n    puVar1[5] = uVar4;\n    uVar2 = uVar4;\n  }\n  puVar1[4] = uVar2;\n  *puVar1 = local_24;\n  memset(local_24,0,__n);\n  puVar1[1] = param_1;\n  return puVar1;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_000250f0(int param_1)" (* "*") (function_declarator "FUN_000250f0(int param_1)" (identifier "FUN_000250f0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")")))) (compound_statement "{\n  uint __n;\n  undefined4 *puVar1;\n  uint uVar2;\n  void *pvVar3;\n  uint uVar4;\n  void *local_24;\n  \n  puVar1 = (undefined4 *)xmalloc(0x34);\n  _obstack_begin(puVar1 + 2,DAT_00077690,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58);\n  uVar4 = puVar1[6];\n  __n = param_1 * 4;\n  uVar2 = uVar4 - puVar1[5];\n  if (__n < uVar2 || __n - uVar2 == 0) {\n    local_24 = (void *)puVar1[4];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }\n  else {\n    _obstack_newchunk(puVar1 + 2,__n);\n    local_24 = (void *)puVar1[4];\n    uVar4 = puVar1[6];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }\n  *(byte *)(puVar1 + 0xc) = *(byte *)(puVar1 + 0xc) | 2;\nLAB_00025157:\n  uVar2 = (int)pvVar3 + puVar1[8] & ~puVar1[8];\n  puVar1[5] = uVar2;\n  if (uVar4 - puVar1[3] < uVar2 - puVar1[3]) {\n    puVar1[5] = uVar4;\n    uVar2 = uVar4;\n  }\n  puVar1[4] = uVar2;\n  *puVar1 = local_24;\n  memset(local_24,0,__n);\n  puVar1[1] = param_1;\n  return puVar1;\n}" ({ "{") (declaration "uint __n;" (type_identifier "uint") (identifier "__n") (; ";")) (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "void *pvVar3;" (primitive_type "void") (pointer_declarator "*pvVar3" (* "*") (identifier "pvVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "void *local_24;" (primitive_type "void") (pointer_declarator "*local_24" (* "*") (identifier "local_24")) (; ";")) (expression_statement "puVar1 = (undefined4 *)xmalloc(0x34);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0x34)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)xmalloc(0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x34)" (identifier "xmalloc") (argument_list "(0x34)" (( "(") (number_literal "0x34") () ")"))))) (; ";")) (expression_statement "_obstack_begin(puVar1 + 2,DAT_00077690,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58);" (call_expression "_obstack_begin(puVar1 + 2,DAT_00077690,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58)" (identifier "_obstack_begin") (argument_list "(puVar1 + 2,DAT_00077690,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58)" (( "(") (binary_expression "puVar1 + 2" (identifier "puVar1") (+ "+") (number_literal "2")) (, ",") (identifier "DAT_00077690") (, ",") (number_literal "0") (, ",") (identifier "PTR_xmalloc_0006ef7c") (, ",") (identifier "PTR_free_0006ef58") () ")"))) (; ";")) (expression_statement "uVar4 = puVar1[6];" (assignment_expression "uVar4 = puVar1[6]" (identifier "uVar4") (= "=") (subscript_expression "puVar1[6]" (identifier "puVar1") ([ "[") (number_literal "6") (] "]"))) (; ";")) (expression_statement "__n = param_1 * 4;" (assignment_expression "__n = param_1 * 4" (identifier "__n") (= "=") (binary_expression "param_1 * 4" (identifier "param_1") (* "*") (number_literal "4"))) (; ";")) (expression_statement "uVar2 = uVar4 - puVar1[5];" (assignment_expression "uVar2 = uVar4 - puVar1[5]" (identifier "uVar2") (= "=") (binary_expression "uVar4 - puVar1[5]" (identifier "uVar4") (- "-") (subscript_expression "puVar1[5]" (identifier "puVar1") ([ "[") (number_literal "5") (] "]")))) (; ";")) (if_statement "if (__n < uVar2 || __n - uVar2 == 0) {\n    local_24 = (void *)puVar1[4];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }\n  else {\n    _obstack_newchunk(puVar1 + 2,__n);\n    local_24 = (void *)puVar1[4];\n    uVar4 = puVar1[6];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }" (if "if") (parenthesized_expression "(__n < uVar2 || __n - uVar2 == 0)" (( "(") (binary_expression "__n < uVar2 || __n - uVar2 == 0" (binary_expression "__n < uVar2" (identifier "__n") (< "<") (identifier "uVar2")) (|| "||") (binary_expression "__n - uVar2 == 0" (binary_expression "__n - uVar2" (identifier "__n") (- "-") (identifier "uVar2")) (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n    local_24 = (void *)puVar1[4];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }" ({ "{") (expression_statement "local_24 = (void *)puVar1[4];" (assignment_expression "local_24 = (void *)puVar1[4]" (identifier "local_24") (= "=") (cast_expression "(void *)puVar1[4]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")))) (; ";")) (expression_statement "pvVar3 = (void *)(puVar1[5] + __n);" (assignment_expression "pvVar3 = (void *)(puVar1[5] + __n)" (identifier "pvVar3") (= "=") (cast_expression "(void *)(puVar1[5] + __n)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1[5] + __n)" (( "(") (binary_expression "puVar1[5] + __n" (subscript_expression "puVar1[5]" (identifier "puVar1") ([ "[") (number_literal "5") (] "]")) (+ "+") (identifier "__n")) () ")")))) (; ";")) (expression_statement "puVar1[5] = pvVar3;" (assignment_expression "puVar1[5] = pvVar3" (subscript_expression "puVar1[5]" (identifier "puVar1") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "pvVar3")) (; ";")) (if_statement "if (pvVar3 != local_24) goto LAB_00025157;" (if "if") (parenthesized_expression "(pvVar3 != local_24)" (( "(") (binary_expression "pvVar3 != local_24" (identifier "pvVar3") (!= "!=") (identifier "local_24")) () ")")) (goto_statement "goto LAB_00025157;" (goto "goto") (statement_identifier "LAB_00025157") (; ";"))) (} "}")) (else_clause "else {\n    _obstack_newchunk(puVar1 + 2,__n);\n    local_24 = (void *)puVar1[4];\n    uVar4 = puVar1[6];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }" (else "else") (compound_statement "{\n    _obstack_newchunk(puVar1 + 2,__n);\n    local_24 = (void *)puVar1[4];\n    uVar4 = puVar1[6];\n    pvVar3 = (void *)(puVar1[5] + __n);\n    puVar1[5] = pvVar3;\n    if (pvVar3 != local_24) goto LAB_00025157;\n  }" ({ "{") (expression_statement "_obstack_newchunk(puVar1 + 2,__n);" (call_expression "_obstack_newchunk(puVar1 + 2,__n)" (identifier "_obstack_newchunk") (argument_list "(puVar1 + 2,__n)" (( "(") (binary_expression "puVar1 + 2" (identifier "puVar1") (+ "+") (number_literal "2")) (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "local_24 = (void *)puVar1[4];" (assignment_expression "local_24 = (void *)puVar1[4]" (identifier "local_24") (= "=") (cast_expression "(void *)puVar1[4]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")))) (; ";")) (expression_statement "uVar4 = puVar1[6];" (assignment_expression "uVar4 = puVar1[6]" (identifier "uVar4") (= "=") (subscript_expression "puVar1[6]" (identifier "puVar1") ([ "[") (number_literal "6") (] "]"))) (; ";")) (expression_statement "pvVar3 = (void *)(puVar1[5] + __n);" (assignment_expression "pvVar3 = (void *)(puVar1[5] + __n)" (identifier "pvVar3") (= "=") (cast_expression "(void *)(puVar1[5] + __n)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1[5] + __n)" (( "(") (binary_expression "puVar1[5] + __n" (subscript_expression "puVar1[5]" (identifier "puVar1") ([ "[") (number_literal "5") (] "]")) (+ "+") (identifier "__n")) () ")")))) (; ";")) (expression_statement "puVar1[5] = pvVar3;" (assignment_expression "puVar1[5] = pvVar3" (subscript_expression "puVar1[5]" (identifier "puVar1") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "pvVar3")) (; ";")) (if_statement "if (pvVar3 != local_24) goto LAB_00025157;" (if "if") (parenthesized_expression "(pvVar3 != local_24)" (( "(") (binary_expression "pvVar3 != local_24" (identifier "pvVar3") (!= "!=") (identifier "local_24")) () ")")) (goto_statement "goto LAB_00025157;" (goto "goto") (statement_identifier "LAB_00025157") (; ";"))) (} "}")))) (expression_statement "*(byte *)(puVar1 + 0xc) = *(byte *)(puVar1 + 0xc) | 2;" (assignment_expression "*(byte *)(puVar1 + 0xc) = *(byte *)(puVar1 + 0xc) | 2" (pointer_expression "*(byte *)(puVar1 + 0xc)" (* "*") (cast_expression "(byte *)(puVar1 + 0xc)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0xc)" (( "(") (binary_expression "puVar1 + 0xc" (identifier "puVar1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "*(byte *)(puVar1 + 0xc) | 2" (pointer_expression "*(byte *)(puVar1 + 0xc)" (* "*") (cast_expression "(byte *)(puVar1 + 0xc)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0xc)" (( "(") (binary_expression "puVar1 + 0xc" (identifier "puVar1") (+ "+") (number_literal "0xc")) () ")")))) (| "|") (number_literal "2"))) (; ";")) (labeled_statement "LAB_00025157:\n  uVar2 = (int)pvVar3 + puVar1[8] & ~puVar1[8];" (statement_identifier "LAB_00025157") (: ":") (expression_statement "uVar2 = (int)pvVar3 + puVar1[8] & ~puVar1[8];" (assignment_expression "uVar2 = (int)pvVar3 + puVar1[8] & ~puVar1[8]" (identifier "uVar2") (= "=") (binary_expression "(int)pvVar3 + puVar1[8] & ~puVar1[8]" (binary_expression "(int)pvVar3 + puVar1[8]" (cast_expression "(int)pvVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar3")) (+ "+") (subscript_expression "puVar1[8]" (identifier "puVar1") ([ "[") (number_literal "8") (] "]"))) (& "&") (unary_expression "~puVar1[8]" (~ "~") (subscript_expression "puVar1[8]" (identifier "puVar1") ([ "[") (number_literal "8") (] "]"))))) (; ";"))) (expression_statement "puVar1[5] = uVar2;" (assignment_expression "puVar1[5] = uVar2" (subscript_expression "puVar1[5]" (identifier "puVar1") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (if_statement "if (uVar4 - puVar1[3] < uVar2 - puVar1[3]) {\n    puVar1[5] = uVar4;\n    uVar2 = uVar4;\n  }" (if "if") (parenthesized_expression "(uVar4 - puVar1[3] < uVar2 - puVar1[3])" (( "(") (binary_expression "uVar4 - puVar1[3] < uVar2 - puVar1[3]" (binary_expression "uVar4 - puVar1[3]" (identifier "uVar4") (- "-") (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]"))) (< "<") (binary_expression "uVar2 - puVar1[3]" (identifier "uVar2") (- "-") (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n    puVar1[5] = uVar4;\n    uVar2 = uVar4;\n  }" ({ "{") (expression_statement "puVar1[5] = uVar4;" (assignment_expression "puVar1[5] = uVar4" (subscript_expression "puVar1[5]" (identifier "puVar1") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "uVar2 = uVar4;" (assignment_expression "uVar2 = uVar4" (identifier "uVar2") (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (expression_statement "puVar1[4] = uVar2;" (assignment_expression "puVar1[4] = uVar2" (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*puVar1 = local_24;" (assignment_expression "*puVar1 = local_24" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "local_24")) (; ";")) (expression_statement "memset(local_24,0,__n);" (call_expression "memset(local_24,0,__n)" (identifier "memset") (argument_list "(local_24,0,__n)" (( "(") (identifier "local_24") (, ",") (number_literal "0") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "puVar1[1] = param_1;" (assignment_expression "puVar1[1] = param_1" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_1")) (; ";")) (return_statement "return puVar1;" (return "return") (identifier "puVar1") (; ";")) (} "}")))

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

type_1 * function_1(type_2 var_3)

{
  type_3 *puVar1;
  type_4 var_4;
  type_5 *p_Var2;
  type_1 *phVar3;
  type_4 var_5;
  char *var_6;
  type_6 **var_7;
  char *pcVar7;
  type_6 **var_8;
  
  phVar3 = (type_1 *)var_1(0x34);
  var_2(&phVar3->memory,chunksize,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58);
  pcVar7 = (phVar3->memory).chunk_limit;
  var_6 = (phVar3->memory).next_free;
  var_4 = var_3 * 4;
  var_5 = (int)pcVar7 - (int)var_6;
  if (var_4 < var_5 || var_4 - var_5 == 0) {
    var_8 = (type_6 **)(phVar3->memory).object_base;
    var_7 = (type_6 **)(var_6 + var_4);
    (phVar3->memory).next_free = (char *)var_7;
    if (var_7 != var_8) goto LAB_00025157;
  }
  else {
    var_9(&phVar3->memory,var_4);
    var_8 = (type_6 **)(phVar3->memory).object_base;
    pcVar7 = (phVar3->memory).chunk_limit;
    var_7 = (type_6 **)((phVar3->memory).next_free + var_4);
    (phVar3->memory).next_free = (char *)var_7;
    if (var_7 != var_8) goto LAB_00025157;
  }
  puVar1 = &(phVar3->memory).field_0x28;
  *puVar1 = *puVar1 | 2;
LAB_00025157:
  var_5 = (phVar3->memory).alignment_mask;
  p_Var2 = (phVar3->memory).chunk;
  var_6 = (char *)((type_4)((int)var_7 + var_5) & ~var_5);
  (phVar3->memory).next_free = var_6;
  if ((type_4)((int)pcVar7 - (int)p_Var2) < (type_4)((int)var_6 - (int)p_Var2)) {
    (phVar3->memory).next_free = pcVar7;
    var_6 = pcVar7;
  }
  (phVar3->memory).object_base = var_6;
  phVar3->table = var_8;
  var_10(var_8,0,var_4);
  phVar3->var_3 = var_3;
  return phVar3;
}


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

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

undefined4 * MASKED(int param_1)

{
  uint __n;
  undefined4 *puVar1;
  uint uVar2;
  void *pvVar3;
  uint uVar4;
  void *local_24;
  
  puVar1 = (undefined4 *)xmalloc(0x34);
  _obstack_begin(puVar1 + 2,DAT_00077690,0,PTR_xmalloc_0006ef7c,PTR_free_0006ef58);
  uVar4 = puVar1[6];
  __n = param_1 * 4;
  uVar2 = uVar4 - puVar1[5];
  if (__n < uVar2 || __n - uVar2 == 0) {
    local_24 = (void *)puVar1[4];
    pvVar3 = (void *)(puVar1[5] + __n);
    puVar1[5] = pvVar3;
    if (pvVar3 != local_24) goto LAB_00025157;
  }
  else {
    _obstack_newchunk(puVar1 + 2,__n);
    local_24 = (void *)puVar1[4];
    uVar4 = puVar1[6];
    pvVar3 = (void *)(puVar1[5] + __n);
    puVar1[5] = pvVar3;
    if (pvVar3 != local_24) goto LAB_00025157;
  }
  *(byte *)(puVar1 + 0xc) = *(byte *)(puVar1 + 0xc) | 2;
LAB_00025157:
  uVar2 = (int)pvVar3 + puVar1[8] & ~puVar1[8];
  puVar1[5] = uVar2;
  if (uVar4 - puVar1[3] < uVar2 - puVar1[3]) {
    puVar1[5] = uVar4;
    uVar2 = uVar4;
  }
  puVar1[4] = uVar2;
  *puVar1 = local_24;
  memset(local_24,0,__n);
  puVar1[1] = param_1;
  return puVar1;
}

