
/* WARNING: Unknown calling convention */

WORD_DESC * alloc_word_desc(void)

{
  int iVar1;
  WORD_DESC *pWVar2;
  int iVar3;
  
  iVar1 = *(int *)(PTR_wdcache_00144af4 + 8) + -1;
  if (0 < *(int *)(PTR_wdcache_00144af4 + 8)) {
    iVar3 = *(int *)PTR_wdcache_00144af4;
    *(int *)(PTR_wdcache_00144af4 + 8) = iVar1;
    pWVar2 = *(WORD_DESC **)(iVar3 + iVar1 * 4);
    pWVar2->flags = 0;
    pWVar2->word = (char *)0x0;
    return pWVar2;
  }
  pWVar2 = (WORD_DESC *)(*(code *)PTR_xmalloc_001445b0)(8);
  pWVar2->flags = 0;
  pWVar2->word = (char *)0x0;
  return pWVar2;
}



undefined4 * alloc_word_desc(void)

{
  int iVar1;
  undefined4 *puVar2;
  int iVar3;
  
  iVar1 = *(int *)(PTR_wdcache_00144af4 + 8) + -1;
  if (0 < *(int *)(PTR_wdcache_00144af4 + 8)) {
    iVar3 = *(int *)PTR_wdcache_00144af4;
    *(int *)(PTR_wdcache_00144af4 + 8) = iVar1;
    puVar2 = *(undefined4 **)(iVar3 + iVar1 * 4);
    puVar2[1] = 0;
    *puVar2 = 0;
    return puVar2;
  }
  puVar2 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(8);
  puVar2[1] = 0;
  *puVar2 = 0;
  return puVar2;
}


lui gp,0x11
addiu gp,gp,-0x6570
addu gp,gp,t9
lw v1,-0x7a4c(gp)
addiu sp,sp,-0x20
sw gp,0x10(sp)
sw ra,0x1c(sp)
lw v0,0x8(v1)
blez v0,0x00042b04
_addiu v0,v0,-0x1
lw a0,0x0(v1)
lw ra,0x1c(sp)
sll a1,v0,0x2
sw v0,0x8(v1)
addu v0,a0,a1
lw v1,0x0(v0)
or v0,v1,zero
sw zero,0x4(v1)
sw zero,0x0(v1)
jr ra
_addiu sp,sp,0x20
lw t9,-0x7f90(gp)
jalr t9
_li a0,0x8
lw ra,0x1c(sp)
or v1,v0,zero
or v0,v1,zero
sw zero,0x4(v1)
sw zero,0x0(v1)
jr ra
_addiu sp,sp,0x20
(translation_unit "undefined4 * alloc_word_desc(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  iVar1 = *(int *)(PTR_wdcache_00144af4 + 8) + -1;\n  if (0 < *(int *)(PTR_wdcache_00144af4 + 8)) {\n    iVar3 = *(int *)PTR_wdcache_00144af4;\n    *(int *)(PTR_wdcache_00144af4 + 8) = iVar1;\n    puVar2 = *(undefined4 **)(iVar3 + iVar1 * 4);\n    puVar2[1] = 0;\n    *puVar2 = 0;\n    return puVar2;\n  }\n  puVar2 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(8);\n  puVar2[1] = 0;\n  *puVar2 = 0;\n  return puVar2;\n}\n\n" (function_definition "undefined4 * alloc_word_desc(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  iVar1 = *(int *)(PTR_wdcache_00144af4 + 8) + -1;\n  if (0 < *(int *)(PTR_wdcache_00144af4 + 8)) {\n    iVar3 = *(int *)PTR_wdcache_00144af4;\n    *(int *)(PTR_wdcache_00144af4 + 8) = iVar1;\n    puVar2 = *(undefined4 **)(iVar3 + iVar1 * 4);\n    puVar2[1] = 0;\n    *puVar2 = 0;\n    return puVar2;\n  }\n  puVar2 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(8);\n  puVar2[1] = 0;\n  *puVar2 = 0;\n  return puVar2;\n}" type_identifier (pointer_declarator "* alloc_word_desc(void)" * (function_declarator "alloc_word_desc(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  iVar1 = *(int *)(PTR_wdcache_00144af4 + 8) + -1;\n  if (0 < *(int *)(PTR_wdcache_00144af4 + 8)) {\n    iVar3 = *(int *)PTR_wdcache_00144af4;\n    *(int *)(PTR_wdcache_00144af4 + 8) = iVar1;\n    puVar2 = *(undefined4 **)(iVar3 + iVar1 * 4);\n    puVar2[1] = 0;\n    *puVar2 = 0;\n    return puVar2;\n  }\n  puVar2 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(8);\n  puVar2[1] = 0;\n  *puVar2 = 0;\n  return puVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(PTR_wdcache_00144af4 + 8) + -1;" (assignment_expression "iVar1 = *(int *)(PTR_wdcache_00144af4 + 8) + -1" identifier = (binary_expression "*(int *)(PTR_wdcache_00144af4 + 8) + -1" (pointer_expression "*(int *)(PTR_wdcache_00144af4 + 8)" * (cast_expression "(int *)(PTR_wdcache_00144af4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_wdcache_00144af4 + 8)" ( (binary_expression "PTR_wdcache_00144af4 + 8" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (0 < *(int *)(PTR_wdcache_00144af4 + 8)) {\n    iVar3 = *(int *)PTR_wdcache_00144af4;\n    *(int *)(PTR_wdcache_00144af4 + 8) = iVar1;\n    puVar2 = *(undefined4 **)(iVar3 + iVar1 * 4);\n    puVar2[1] = 0;\n    *puVar2 = 0;\n    return puVar2;\n  }" if (parenthesized_expression "(0 < *(int *)(PTR_wdcache_00144af4 + 8))" ( (binary_expression "0 < *(int *)(PTR_wdcache_00144af4 + 8)" number_literal < (pointer_expression "*(int *)(PTR_wdcache_00144af4 + 8)" * (cast_expression "(int *)(PTR_wdcache_00144af4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_wdcache_00144af4 + 8)" ( (binary_expression "PTR_wdcache_00144af4 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n    iVar3 = *(int *)PTR_wdcache_00144af4;\n    *(int *)(PTR_wdcache_00144af4 + 8) = iVar1;\n    puVar2 = *(undefined4 **)(iVar3 + iVar1 * 4);\n    puVar2[1] = 0;\n    *puVar2 = 0;\n    return puVar2;\n  }" { (expression_statement "iVar3 = *(int *)PTR_wdcache_00144af4;" (assignment_expression "iVar3 = *(int *)PTR_wdcache_00144af4" identifier = (pointer_expression "*(int *)PTR_wdcache_00144af4" * (cast_expression "(int *)PTR_wdcache_00144af4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(int *)(PTR_wdcache_00144af4 + 8) = iVar1;" (assignment_expression "*(int *)(PTR_wdcache_00144af4 + 8) = iVar1" (pointer_expression "*(int *)(PTR_wdcache_00144af4 + 8)" * (cast_expression "(int *)(PTR_wdcache_00144af4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_wdcache_00144af4 + 8)" ( (binary_expression "PTR_wdcache_00144af4 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar2 = *(undefined4 **)(iVar3 + iVar1 * 4);" (assignment_expression "puVar2 = *(undefined4 **)(iVar3 + iVar1 * 4)" identifier = (pointer_expression "*(undefined4 **)(iVar3 + iVar1 * 4)" * (cast_expression "(undefined4 **)(iVar3 + iVar1 * 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + iVar1 * 4)" ( (binary_expression "iVar3 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) ))))) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (return_statement "return puVar2;" return identifier ;) })) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(8);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(8)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_xmalloc_001445b0)(8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_001445b0)(8)" (parenthesized_expression "(*(code *)PTR_xmalloc_001445b0)" ( (pointer_expression "*(code *)PTR_xmalloc_001445b0" * (cast_expression "(code *)PTR_xmalloc_001445b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nWORD_DESC * alloc_word_desc(void)\n\n{\n  int iVar1;\n  WORD_DESC *pWVar2;\n  int iVar3;\n  \n  iVar1 = *(int *)(PTR_wdcache_00144af4 + 8) + -1;\n  if (0 < *(int *)(PTR_wdcache_00144af4 + 8)) {\n    iVar3 = *(int *)PTR_wdcache_00144af4;\n    *(int *)(PTR_wdcache_00144af4 + 8) = iVar1;\n    pWVar2 = *(WORD_DESC **)(iVar3 + iVar1 * 4);\n    pWVar2->flags = 0;\n    pWVar2->word = (char *)0x0;\n    return pWVar2;\n  }\n  pWVar2 = (WORD_DESC *)(*(code *)PTR_xmalloc_001445b0)(8);\n  pWVar2->flags = 0;\n  pWVar2->word = (char *)0x0;\n  return pWVar2;\n}\n\n" comment (function_definition "WORD_DESC * alloc_word_desc(void)\n\n{\n  int iVar1;\n  WORD_DESC *pWVar2;\n  int iVar3;\n  \n  iVar1 = *(int *)(PTR_wdcache_00144af4 + 8) + -1;\n  if (0 < *(int *)(PTR_wdcache_00144af4 + 8)) {\n    iVar3 = *(int *)PTR_wdcache_00144af4;\n    *(int *)(PTR_wdcache_00144af4 + 8) = iVar1;\n    pWVar2 = *(WORD_DESC **)(iVar3 + iVar1 * 4);\n    pWVar2->flags = 0;\n    pWVar2->word = (char *)0x0;\n    return pWVar2;\n  }\n  pWVar2 = (WORD_DESC *)(*(code *)PTR_xmalloc_001445b0)(8);\n  pWVar2->flags = 0;\n  pWVar2->word = (char *)0x0;\n  return pWVar2;\n}" type_identifier (pointer_declarator "* alloc_word_desc(void)" * (function_declarator "alloc_word_desc(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  int iVar1;\n  WORD_DESC *pWVar2;\n  int iVar3;\n  \n  iVar1 = *(int *)(PTR_wdcache_00144af4 + 8) + -1;\n  if (0 < *(int *)(PTR_wdcache_00144af4 + 8)) {\n    iVar3 = *(int *)PTR_wdcache_00144af4;\n    *(int *)(PTR_wdcache_00144af4 + 8) = iVar1;\n    pWVar2 = *(WORD_DESC **)(iVar3 + iVar1 * 4);\n    pWVar2->flags = 0;\n    pWVar2->word = (char *)0x0;\n    return pWVar2;\n  }\n  pWVar2 = (WORD_DESC *)(*(code *)PTR_xmalloc_001445b0)(8);\n  pWVar2->flags = 0;\n  pWVar2->word = (char *)0x0;\n  return pWVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "WORD_DESC *pWVar2;" type_identifier (pointer_declarator "*pWVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(PTR_wdcache_00144af4 + 8) + -1;" (assignment_expression "iVar1 = *(int *)(PTR_wdcache_00144af4 + 8) + -1" identifier = (binary_expression "*(int *)(PTR_wdcache_00144af4 + 8) + -1" (pointer_expression "*(int *)(PTR_wdcache_00144af4 + 8)" * (cast_expression "(int *)(PTR_wdcache_00144af4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_wdcache_00144af4 + 8)" ( (binary_expression "PTR_wdcache_00144af4 + 8" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (0 < *(int *)(PTR_wdcache_00144af4 + 8)) {\n    iVar3 = *(int *)PTR_wdcache_00144af4;\n    *(int *)(PTR_wdcache_00144af4 + 8) = iVar1;\n    pWVar2 = *(WORD_DESC **)(iVar3 + iVar1 * 4);\n    pWVar2->flags = 0;\n    pWVar2->word = (char *)0x0;\n    return pWVar2;\n  }" if (parenthesized_expression "(0 < *(int *)(PTR_wdcache_00144af4 + 8))" ( (binary_expression "0 < *(int *)(PTR_wdcache_00144af4 + 8)" number_literal < (pointer_expression "*(int *)(PTR_wdcache_00144af4 + 8)" * (cast_expression "(int *)(PTR_wdcache_00144af4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_wdcache_00144af4 + 8)" ( (binary_expression "PTR_wdcache_00144af4 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n    iVar3 = *(int *)PTR_wdcache_00144af4;\n    *(int *)(PTR_wdcache_00144af4 + 8) = iVar1;\n    pWVar2 = *(WORD_DESC **)(iVar3 + iVar1 * 4);\n    pWVar2->flags = 0;\n    pWVar2->word = (char *)0x0;\n    return pWVar2;\n  }" { (expression_statement "iVar3 = *(int *)PTR_wdcache_00144af4;" (assignment_expression "iVar3 = *(int *)PTR_wdcache_00144af4" identifier = (pointer_expression "*(int *)PTR_wdcache_00144af4" * (cast_expression "(int *)PTR_wdcache_00144af4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(int *)(PTR_wdcache_00144af4 + 8) = iVar1;" (assignment_expression "*(int *)(PTR_wdcache_00144af4 + 8) = iVar1" (pointer_expression "*(int *)(PTR_wdcache_00144af4 + 8)" * (cast_expression "(int *)(PTR_wdcache_00144af4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_wdcache_00144af4 + 8)" ( (binary_expression "PTR_wdcache_00144af4 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "pWVar2 = *(WORD_DESC **)(iVar3 + iVar1 * 4);" (assignment_expression "pWVar2 = *(WORD_DESC **)(iVar3 + iVar1 * 4)" identifier = (pointer_expression "*(WORD_DESC **)(iVar3 + iVar1 * 4)" * (cast_expression "(WORD_DESC **)(iVar3 + iVar1 * 4)" ( (type_descriptor "WORD_DESC **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + iVar1 * 4)" ( (binary_expression "iVar3 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) ))))) ;) (expression_statement "pWVar2->flags = 0;" (assignment_expression "pWVar2->flags = 0" (field_expression "pWVar2->flags" identifier -> field_identifier) = number_literal) ;) (expression_statement "pWVar2->word = (char *)0x0;" (assignment_expression "pWVar2->word = (char *)0x0" (field_expression "pWVar2->word" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return pWVar2;" return identifier ;) })) (expression_statement "pWVar2 = (WORD_DESC *)(*(code *)PTR_xmalloc_001445b0)(8);" (assignment_expression "pWVar2 = (WORD_DESC *)(*(code *)PTR_xmalloc_001445b0)(8)" identifier = (cast_expression "(WORD_DESC *)(*(code *)PTR_xmalloc_001445b0)(8)" ( (type_descriptor "WORD_DESC *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_001445b0)(8)" (parenthesized_expression "(*(code *)PTR_xmalloc_001445b0)" ( (pointer_expression "*(code *)PTR_xmalloc_001445b0" * (cast_expression "(code *)PTR_xmalloc_001445b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "pWVar2->flags = 0;" (assignment_expression "pWVar2->flags = 0" (field_expression "pWVar2->flags" identifier -> field_identifier) = number_literal) ;) (expression_statement "pWVar2->word = (char *)0x0;" (assignment_expression "pWVar2->word = (char *)0x0" (field_expression "pWVar2->word" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return pWVar2;" return identifier ;) })))
(translation_unit "undefined4 * alloc_word_desc(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  iVar1 = *(int *)(PTR_wdcache_00144af4 + 8) + -1;\n  if (0 < *(int *)(PTR_wdcache_00144af4 + 8)) {\n    iVar3 = *(int *)PTR_wdcache_00144af4;\n    *(int *)(PTR_wdcache_00144af4 + 8) = iVar1;\n    puVar2 = *(undefined4 **)(iVar3 + iVar1 * 4);\n    puVar2[1] = 0;\n    *puVar2 = 0;\n    return puVar2;\n  }\n  puVar2 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(8);\n  puVar2[1] = 0;\n  *puVar2 = 0;\n  return puVar2;\n}\n\n" (function_definition "undefined4 * alloc_word_desc(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  iVar1 = *(int *)(PTR_wdcache_00144af4 + 8) + -1;\n  if (0 < *(int *)(PTR_wdcache_00144af4 + 8)) {\n    iVar3 = *(int *)PTR_wdcache_00144af4;\n    *(int *)(PTR_wdcache_00144af4 + 8) = iVar1;\n    puVar2 = *(undefined4 **)(iVar3 + iVar1 * 4);\n    puVar2[1] = 0;\n    *puVar2 = 0;\n    return puVar2;\n  }\n  puVar2 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(8);\n  puVar2[1] = 0;\n  *puVar2 = 0;\n  return puVar2;\n}" type_identifier (pointer_declarator "* alloc_word_desc(void)" * (function_declarator "alloc_word_desc(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  iVar1 = *(int *)(PTR_wdcache_00144af4 + 8) + -1;\n  if (0 < *(int *)(PTR_wdcache_00144af4 + 8)) {\n    iVar3 = *(int *)PTR_wdcache_00144af4;\n    *(int *)(PTR_wdcache_00144af4 + 8) = iVar1;\n    puVar2 = *(undefined4 **)(iVar3 + iVar1 * 4);\n    puVar2[1] = 0;\n    *puVar2 = 0;\n    return puVar2;\n  }\n  puVar2 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(8);\n  puVar2[1] = 0;\n  *puVar2 = 0;\n  return puVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(PTR_wdcache_00144af4 + 8) + -1;" (assignment_expression "iVar1 = *(int *)(PTR_wdcache_00144af4 + 8) + -1" identifier = (binary_expression "*(int *)(PTR_wdcache_00144af4 + 8) + -1" (pointer_expression "*(int *)(PTR_wdcache_00144af4 + 8)" * (cast_expression "(int *)(PTR_wdcache_00144af4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_wdcache_00144af4 + 8)" ( (binary_expression "PTR_wdcache_00144af4 + 8" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (0 < *(int *)(PTR_wdcache_00144af4 + 8)) {\n    iVar3 = *(int *)PTR_wdcache_00144af4;\n    *(int *)(PTR_wdcache_00144af4 + 8) = iVar1;\n    puVar2 = *(undefined4 **)(iVar3 + iVar1 * 4);\n    puVar2[1] = 0;\n    *puVar2 = 0;\n    return puVar2;\n  }" if (parenthesized_expression "(0 < *(int *)(PTR_wdcache_00144af4 + 8))" ( (binary_expression "0 < *(int *)(PTR_wdcache_00144af4 + 8)" number_literal < (pointer_expression "*(int *)(PTR_wdcache_00144af4 + 8)" * (cast_expression "(int *)(PTR_wdcache_00144af4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_wdcache_00144af4 + 8)" ( (binary_expression "PTR_wdcache_00144af4 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n    iVar3 = *(int *)PTR_wdcache_00144af4;\n    *(int *)(PTR_wdcache_00144af4 + 8) = iVar1;\n    puVar2 = *(undefined4 **)(iVar3 + iVar1 * 4);\n    puVar2[1] = 0;\n    *puVar2 = 0;\n    return puVar2;\n  }" { (expression_statement "iVar3 = *(int *)PTR_wdcache_00144af4;" (assignment_expression "iVar3 = *(int *)PTR_wdcache_00144af4" identifier = (pointer_expression "*(int *)PTR_wdcache_00144af4" * (cast_expression "(int *)PTR_wdcache_00144af4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(int *)(PTR_wdcache_00144af4 + 8) = iVar1;" (assignment_expression "*(int *)(PTR_wdcache_00144af4 + 8) = iVar1" (pointer_expression "*(int *)(PTR_wdcache_00144af4 + 8)" * (cast_expression "(int *)(PTR_wdcache_00144af4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_wdcache_00144af4 + 8)" ( (binary_expression "PTR_wdcache_00144af4 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar2 = *(undefined4 **)(iVar3 + iVar1 * 4);" (assignment_expression "puVar2 = *(undefined4 **)(iVar3 + iVar1 * 4)" identifier = (pointer_expression "*(undefined4 **)(iVar3 + iVar1 * 4)" * (cast_expression "(undefined4 **)(iVar3 + iVar1 * 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + iVar1 * 4)" ( (binary_expression "iVar3 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) ))))) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (return_statement "return puVar2;" return identifier ;) })) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(8);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(8)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_xmalloc_001445b0)(8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_001445b0)(8)" (parenthesized_expression "(*(code *)PTR_xmalloc_001445b0)" ( (pointer_expression "*(code *)PTR_xmalloc_001445b0" * (cast_expression "(code *)PTR_xmalloc_001445b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 * alloc_word_desc(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  iVar1 = *(int *)(PTR_wdcache_00144af4 + 8) + -1;\n  if (0 < *(int *)(PTR_wdcache_00144af4 + 8)) {\n    iVar3 = *(int *)PTR_wdcache_00144af4;\n    *(int *)(PTR_wdcache_00144af4 + 8) = iVar1;\n    puVar2 = *(undefined4 **)(iVar3 + iVar1 * 4);\n    puVar2[1] = 0;\n    *puVar2 = 0;\n    return puVar2;\n  }\n  puVar2 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(8);\n  puVar2[1] = 0;\n  *puVar2 = 0;\n  return puVar2;\n}" (type_identifier "undefined4") (pointer_declarator "* alloc_word_desc(void)" (* "*") (function_declarator "alloc_word_desc(void)" (identifier "alloc_word_desc") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")")))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  iVar1 = *(int *)(PTR_wdcache_00144af4 + 8) + -1;\n  if (0 < *(int *)(PTR_wdcache_00144af4 + 8)) {\n    iVar3 = *(int *)PTR_wdcache_00144af4;\n    *(int *)(PTR_wdcache_00144af4 + 8) = iVar1;\n    puVar2 = *(undefined4 **)(iVar3 + iVar1 * 4);\n    puVar2[1] = 0;\n    *puVar2 = 0;\n    return puVar2;\n  }\n  puVar2 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(8);\n  puVar2[1] = 0;\n  *puVar2 = 0;\n  return puVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar1 = *(int *)(PTR_wdcache_00144af4 + 8) + -1;" (assignment_expression "iVar1 = *(int *)(PTR_wdcache_00144af4 + 8) + -1" (identifier "iVar1") (= "=") (binary_expression "*(int *)(PTR_wdcache_00144af4 + 8) + -1" (pointer_expression "*(int *)(PTR_wdcache_00144af4 + 8)" (* "*") (cast_expression "(int *)(PTR_wdcache_00144af4 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_wdcache_00144af4 + 8)" (( "(") (binary_expression "PTR_wdcache_00144af4 + 8" (identifier "PTR_wdcache_00144af4") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (0 < *(int *)(PTR_wdcache_00144af4 + 8)) {\n    iVar3 = *(int *)PTR_wdcache_00144af4;\n    *(int *)(PTR_wdcache_00144af4 + 8) = iVar1;\n    puVar2 = *(undefined4 **)(iVar3 + iVar1 * 4);\n    puVar2[1] = 0;\n    *puVar2 = 0;\n    return puVar2;\n  }" (if "if") (parenthesized_expression "(0 < *(int *)(PTR_wdcache_00144af4 + 8))" (( "(") (binary_expression "0 < *(int *)(PTR_wdcache_00144af4 + 8)" (number_literal "0") (< "<") (pointer_expression "*(int *)(PTR_wdcache_00144af4 + 8)" (* "*") (cast_expression "(int *)(PTR_wdcache_00144af4 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_wdcache_00144af4 + 8)" (( "(") (binary_expression "PTR_wdcache_00144af4 + 8" (identifier "PTR_wdcache_00144af4") (+ "+") (number_literal "8")) () ")"))))) () ")")) (compound_statement "{\n    iVar3 = *(int *)PTR_wdcache_00144af4;\n    *(int *)(PTR_wdcache_00144af4 + 8) = iVar1;\n    puVar2 = *(undefined4 **)(iVar3 + iVar1 * 4);\n    puVar2[1] = 0;\n    *puVar2 = 0;\n    return puVar2;\n  }" ({ "{") (expression_statement "iVar3 = *(int *)PTR_wdcache_00144af4;" (assignment_expression "iVar3 = *(int *)PTR_wdcache_00144af4" (identifier "iVar3") (= "=") (pointer_expression "*(int *)PTR_wdcache_00144af4" (* "*") (cast_expression "(int *)PTR_wdcache_00144af4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_wdcache_00144af4")))) (; ";")) (expression_statement "*(int *)(PTR_wdcache_00144af4 + 8) = iVar1;" (assignment_expression "*(int *)(PTR_wdcache_00144af4 + 8) = iVar1" (pointer_expression "*(int *)(PTR_wdcache_00144af4 + 8)" (* "*") (cast_expression "(int *)(PTR_wdcache_00144af4 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_wdcache_00144af4 + 8)" (( "(") (binary_expression "PTR_wdcache_00144af4 + 8" (identifier "PTR_wdcache_00144af4") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "puVar2 = *(undefined4 **)(iVar3 + iVar1 * 4);" (assignment_expression "puVar2 = *(undefined4 **)(iVar3 + iVar1 * 4)" (identifier "puVar2") (= "=") (pointer_expression "*(undefined4 **)(iVar3 + iVar1 * 4)" (* "*") (cast_expression "(undefined4 **)(iVar3 + iVar1 * 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + iVar1 * 4)" (( "(") (binary_expression "iVar3 + iVar1 * 4" (identifier "iVar3") (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(8);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(8)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR_xmalloc_001445b0)(8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_xmalloc_001445b0)(8)" (parenthesized_expression "(*(code *)PTR_xmalloc_001445b0)" (( "(") (pointer_expression "*(code *)PTR_xmalloc_001445b0" (* "*") (cast_expression "(code *)PTR_xmalloc_001445b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xmalloc_001445b0"))) () ")")) (argument_list "(8)" (( "(") (number_literal "8") () ")"))))) (; ";")) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

type_1 * function_1(void)

{
  int var_3;
  type_1 *pWVar2;
  int var_2;
  
  var_3 = *(int *)(var_1 + 8) + -1;
  if (0 < *(int *)(var_1 + 8)) {
    var_2 = *(int *)var_1;
    *(int *)(var_1 + 8) = var_3;
    pWVar2 = *(type_1 **)(var_2 + var_3 * 4);
    pWVar2->flags = 0;
    pWVar2->word = (char *)0x0;
    return pWVar2;
  }
  pWVar2 = (type_1 *)(*(type_2 *)PTR_xmalloc_001445b0)(8);
  pWVar2->flags = 0;
  pWVar2->word = (char *)0x0;
  return pWVar2;
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement (identifier)))))

undefined4 * MASKED(void)

{
  int iVar1;
  undefined4 *puVar2;
  int iVar3;
  
  iVar1 = *(int *)(PTR_wdcache_00144af4 + 8) + -1;
  if (0 < *(int *)(PTR_wdcache_00144af4 + 8)) {
    iVar3 = *(int *)PTR_wdcache_00144af4;
    *(int *)(PTR_wdcache_00144af4 + 8) = iVar1;
    puVar2 = *(undefined4 **)(iVar3 + iVar1 * 4);
    puVar2[1] = 0;
    *puVar2 = 0;
    return puVar2;
  }
  puVar2 = (undefined4 *)(*(code *)PTR_xmalloc_001445b0)(8);
  puVar2[1] = 0;
  *puVar2 = 0;
  return puVar2;
}

