
/* WARNING: Enum "e_type": Some values do not have unique names */

itbl_entry * alloc_entry(e_processor processor,e_type type,char *name,ulong value)

{
  undefined *puVar1;
  itbl_entry *piVar2;
  char *pcVar3;
  itbl_entry *piVar4;
  
  if (name != (char *)0x0) {
    piVar2 = (itbl_entry *)(*(code *)PTR_xmalloc_000b66f8)(0x24);
    (*(code *)PTR_memset_000b664c)(piVar2,0,0x24);
    pcVar3 = (char *)(*(code *)PTR_xstrdup_000b66f0)(name);
    piVar2->name = pcVar3;
    piVar2->processor = processor;
    piVar2->type = type;
    puVar1 = PTR_mips_opcodes_000b5cd0;
    piVar2->value = value;
    piVar4 = *(itbl_entry **)(puVar1 + (processor * 6 + type) * 4 + -0x7ec);
    *(itbl_entry **)(puVar1 + (processor * 6 + type) * 4 + -0x7ec) = piVar2;
    piVar2->next = piVar4;
    return piVar2;
  }
  return (itbl_entry *)0x0;
}



int * FUN_0008e6f8(int param_1,int param_2,int param_3,int param_4)

{
  undefined *puVar1;
  int *piVar2;
  int iVar3;
  
  if (param_3 != 0) {
    piVar2 = (int *)(*(code *)PTR_xmalloc_000b66f8)(0x24);
    (*(code *)PTR_memset_000b664c)(piVar2,0,0x24);
    iVar3 = (*(code *)PTR_xstrdup_000b66f0)(param_3);
    piVar2[2] = iVar3;
    *piVar2 = param_1;
    piVar2[1] = param_2;
    puVar1 = PTR_mips_opcodes_000b5cd0;
    piVar2[3] = param_4;
    iVar3 = *(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec);
    *(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec) = piVar2;
    piVar2[8] = iVar3;
    return piVar2;
  }
  return (int *)0x0;
}


lui gp,0x3
addiu gp,gp,-0xa78
addu gp,gp,t9
addiu sp,sp,-0x30
sw gp,0x10(sp)
sw ra,0x2c(sp)
sw s4,0x28(sp)
sw s3,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
beq a2,zero,0x0008e7d4
_sw s0,0x18(sp)
lw t9,-0x7588(gp)
or s1,a0,zero
li a0,0x24
or s4,a3,zero
or s3,a1,zero
jalr t9
_or s2,a2,zero
lw gp,0x10(sp)
li a2,0x24
or a1,zero,zero
or a0,v0,zero
lw t9,-0x7634(gp)
jalr t9
_or s0,v0,zero
lw gp,0x10(sp)
lw t9,-0x7590(gp)
jalr t9
_or a0,s2,zero
sll v1,s1,0x1
lw gp,0x10(sp)
addu v1,v1,s1
sw v0,0x8(s0)
sw s1,0x0(s0)
sll v0,v1,0x1
sw s3,0x4(s0)
lw v1,-0x7fb0(gp)
addu v0,v0,s3
lw ra,0x2c(sp)
lw s3,0x24(sp)
addiu v1,v1,-0x7ec
lw s2,0x20(sp)
sll v0,v0,0x2
lw s1,0x1c(sp)
sw s4,0xc(s0)
addu v0,v0,v1
lw s4,0x28(sp)
lw v1,0x0(v0)
sw s0,0x0(v0)
or v0,s0,zero
sw v1,0x20(s0)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
lw ra,0x2c(sp)
or s0,zero,zero
lw s4,0x28(sp)
or v0,s0,zero
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "int * FUN_0008e6f8(int param_1,int param_2,int param_3,int param_4)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  \n  if (param_3 != 0) {\n    piVar2 = (int *)(*(code *)PTR_xmalloc_000b66f8)(0x24);\n    (*(code *)PTR_memset_000b664c)(piVar2,0,0x24);\n    iVar3 = (*(code *)PTR_xstrdup_000b66f0)(param_3);\n    piVar2[2] = iVar3;\n    *piVar2 = param_1;\n    piVar2[1] = param_2;\n    puVar1 = PTR_mips_opcodes_000b5cd0;\n    piVar2[3] = param_4;\n    iVar3 = *(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec);\n    *(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec) = piVar2;\n    piVar2[8] = iVar3;\n    return piVar2;\n  }\n  return (int *)0x0;\n}\n\n" (function_definition "int * FUN_0008e6f8(int param_1,int param_2,int param_3,int param_4)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  \n  if (param_3 != 0) {\n    piVar2 = (int *)(*(code *)PTR_xmalloc_000b66f8)(0x24);\n    (*(code *)PTR_memset_000b664c)(piVar2,0,0x24);\n    iVar3 = (*(code *)PTR_xstrdup_000b66f0)(param_3);\n    piVar2[2] = iVar3;\n    *piVar2 = param_1;\n    piVar2[1] = param_2;\n    puVar1 = PTR_mips_opcodes_000b5cd0;\n    piVar2[3] = param_4;\n    iVar3 = *(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec);\n    *(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec) = piVar2;\n    piVar2[8] = iVar3;\n    return piVar2;\n  }\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* FUN_0008e6f8(int param_1,int param_2,int param_3,int param_4)" * (function_declarator "FUN_0008e6f8(int param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  \n  if (param_3 != 0) {\n    piVar2 = (int *)(*(code *)PTR_xmalloc_000b66f8)(0x24);\n    (*(code *)PTR_memset_000b664c)(piVar2,0,0x24);\n    iVar3 = (*(code *)PTR_xstrdup_000b66f0)(param_3);\n    piVar2[2] = iVar3;\n    *piVar2 = param_1;\n    piVar2[1] = param_2;\n    puVar1 = PTR_mips_opcodes_000b5cd0;\n    piVar2[3] = param_4;\n    iVar3 = *(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec);\n    *(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec) = piVar2;\n    piVar2[8] = iVar3;\n    return piVar2;\n  }\n  return (int *)0x0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (param_3 != 0) {\n    piVar2 = (int *)(*(code *)PTR_xmalloc_000b66f8)(0x24);\n    (*(code *)PTR_memset_000b664c)(piVar2,0,0x24);\n    iVar3 = (*(code *)PTR_xstrdup_000b66f0)(param_3);\n    piVar2[2] = iVar3;\n    *piVar2 = param_1;\n    piVar2[1] = param_2;\n    puVar1 = PTR_mips_opcodes_000b5cd0;\n    piVar2[3] = param_4;\n    iVar3 = *(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec);\n    *(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec) = piVar2;\n    piVar2[8] = iVar3;\n    return piVar2;\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar2 = (int *)(*(code *)PTR_xmalloc_000b66f8)(0x24);\n    (*(code *)PTR_memset_000b664c)(piVar2,0,0x24);\n    iVar3 = (*(code *)PTR_xstrdup_000b66f0)(param_3);\n    piVar2[2] = iVar3;\n    *piVar2 = param_1;\n    piVar2[1] = param_2;\n    puVar1 = PTR_mips_opcodes_000b5cd0;\n    piVar2[3] = param_4;\n    iVar3 = *(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec);\n    *(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec) = piVar2;\n    piVar2[8] = iVar3;\n    return piVar2;\n  }" { (expression_statement "piVar2 = (int *)(*(code *)PTR_xmalloc_000b66f8)(0x24);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_xmalloc_000b66f8)(0x24)" identifier = (cast_expression "(int *)(*(code *)PTR_xmalloc_000b66f8)(0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_000b66f8)(0x24)" (parenthesized_expression "(*(code *)PTR_xmalloc_000b66f8)" ( (pointer_expression "*(code *)PTR_xmalloc_000b66f8" * (cast_expression "(code *)PTR_xmalloc_000b66f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x24)" ( number_literal ))))) ;) (expression_statement "(*(code *)PTR_memset_000b664c)(piVar2,0,0x24);" (call_expression "(*(code *)PTR_memset_000b664c)(piVar2,0,0x24)" (parenthesized_expression "(*(code *)PTR_memset_000b664c)" ( (pointer_expression "*(code *)PTR_memset_000b664c" * (cast_expression "(code *)PTR_memset_000b664c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar2,0,0x24)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "iVar3 = (*(code *)PTR_xstrdup_000b66f0)(param_3);" (assignment_expression "iVar3 = (*(code *)PTR_xstrdup_000b66f0)(param_3)" identifier = (call_expression "(*(code *)PTR_xstrdup_000b66f0)(param_3)" (parenthesized_expression "(*(code *)PTR_xstrdup_000b66f0)" ( (pointer_expression "*(code *)PTR_xstrdup_000b66f0" * (cast_expression "(code *)PTR_xstrdup_000b66f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "piVar2[2] = iVar3;" (assignment_expression "piVar2[2] = iVar3" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar2 = param_1;" (assignment_expression "*piVar2 = param_1" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "piVar2[1] = param_2;" (assignment_expression "piVar2[1] = param_2" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1 = PTR_mips_opcodes_000b5cd0;" (assignment_expression "puVar1 = PTR_mips_opcodes_000b5cd0" identifier = identifier) ;) (expression_statement "piVar2[3] = param_4;" (assignment_expression "piVar2[3] = param_4" (subscript_expression "piVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar3 = *(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec);" (assignment_expression "iVar3 = *(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec)" identifier = (pointer_expression "*(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec)" * (cast_expression "(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec)" ( (binary_expression "puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec" (binary_expression "puVar1 + (param_1 * 6 + param_2) * 4" identifier + (binary_expression "(param_1 * 6 + param_2) * 4" (parenthesized_expression "(param_1 * 6 + param_2)" ( (binary_expression "param_1 * 6 + param_2" (binary_expression "param_1 * 6" identifier * number_literal) + identifier) )) * number_literal)) + number_literal) ))))) ;) (expression_statement "*(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec) = piVar2;" (assignment_expression "*(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec) = piVar2" (pointer_expression "*(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec)" * (cast_expression "(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec)" ( (binary_expression "puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec" (binary_expression "puVar1 + (param_1 * 6 + param_2) * 4" identifier + (binary_expression "(param_1 * 6 + param_2) * 4" (parenthesized_expression "(param_1 * 6 + param_2)" ( (binary_expression "param_1 * 6 + param_2" (binary_expression "param_1 * 6" identifier * number_literal) + identifier) )) * number_literal)) + number_literal) )))) = identifier) ;) (expression_statement "piVar2[8] = iVar3;" (assignment_expression "piVar2[8] = iVar3" (subscript_expression "piVar2[8]" identifier [ number_literal ]) = identifier) ;) (return_statement "return piVar2;" return identifier ;) })) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "/* WARNING: Enum "e_type": Some values do not have unique names */\n\nitbl_entry * alloc_entry(e_processor processor,e_type type,char *name,ulong value)\n\n{\n  undefined *puVar1;\n  itbl_entry *piVar2;\n  char *pcVar3;\n  itbl_entry *piVar4;\n  \n  if (name != (char *)0x0) {\n    piVar2 = (itbl_entry *)(*(code *)PTR_xmalloc_000b66f8)(0x24);\n    (*(code *)PTR_memset_000b664c)(piVar2,0,0x24);\n    pcVar3 = (char *)(*(code *)PTR_xstrdup_000b66f0)(name);\n    piVar2->name = pcVar3;\n    piVar2->processor = processor;\n    piVar2->type = type;\n    puVar1 = PTR_mips_opcodes_000b5cd0;\n    piVar2->value = value;\n    piVar4 = *(itbl_entry **)(puVar1 + (processor * 6 + type) * 4 + -0x7ec);\n    *(itbl_entry **)(puVar1 + (processor * 6 + type) * 4 + -0x7ec) = piVar2;\n    piVar2->next = piVar4;\n    return piVar2;\n  }\n  return (itbl_entry *)0x0;\n}\n\n" comment (function_definition "itbl_entry * alloc_entry(e_processor processor,e_type type,char *name,ulong value)\n\n{\n  undefined *puVar1;\n  itbl_entry *piVar2;\n  char *pcVar3;\n  itbl_entry *piVar4;\n  \n  if (name != (char *)0x0) {\n    piVar2 = (itbl_entry *)(*(code *)PTR_xmalloc_000b66f8)(0x24);\n    (*(code *)PTR_memset_000b664c)(piVar2,0,0x24);\n    pcVar3 = (char *)(*(code *)PTR_xstrdup_000b66f0)(name);\n    piVar2->name = pcVar3;\n    piVar2->processor = processor;\n    piVar2->type = type;\n    puVar1 = PTR_mips_opcodes_000b5cd0;\n    piVar2->value = value;\n    piVar4 = *(itbl_entry **)(puVar1 + (processor * 6 + type) * 4 + -0x7ec);\n    *(itbl_entry **)(puVar1 + (processor * 6 + type) * 4 + -0x7ec) = piVar2;\n    piVar2->next = piVar4;\n    return piVar2;\n  }\n  return (itbl_entry *)0x0;\n}" type_identifier (pointer_declarator "* alloc_entry(e_processor processor,e_type type,char *name,ulong value)" * (function_declarator "alloc_entry(e_processor processor,e_type type,char *name,ulong value)" identifier (parameter_list "(e_processor processor,e_type type,char *name,ulong value)" ( (parameter_declaration "e_processor processor" type_identifier identifier) , (parameter_declaration "e_type type" type_identifier identifier) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "ulong value" type_identifier identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  itbl_entry *piVar2;\n  char *pcVar3;\n  itbl_entry *piVar4;\n  \n  if (name != (char *)0x0) {\n    piVar2 = (itbl_entry *)(*(code *)PTR_xmalloc_000b66f8)(0x24);\n    (*(code *)PTR_memset_000b664c)(piVar2,0,0x24);\n    pcVar3 = (char *)(*(code *)PTR_xstrdup_000b66f0)(name);\n    piVar2->name = pcVar3;\n    piVar2->processor = processor;\n    piVar2->type = type;\n    puVar1 = PTR_mips_opcodes_000b5cd0;\n    piVar2->value = value;\n    piVar4 = *(itbl_entry **)(puVar1 + (processor * 6 + type) * 4 + -0x7ec);\n    *(itbl_entry **)(puVar1 + (processor * 6 + type) * 4 + -0x7ec) = piVar2;\n    piVar2->next = piVar4;\n    return piVar2;\n  }\n  return (itbl_entry *)0x0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "itbl_entry *piVar2;" type_identifier (pointer_declarator "*piVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "itbl_entry *piVar4;" type_identifier (pointer_declarator "*piVar4" * identifier) ;) (if_statement "if (name != (char *)0x0) {\n    piVar2 = (itbl_entry *)(*(code *)PTR_xmalloc_000b66f8)(0x24);\n    (*(code *)PTR_memset_000b664c)(piVar2,0,0x24);\n    pcVar3 = (char *)(*(code *)PTR_xstrdup_000b66f0)(name);\n    piVar2->name = pcVar3;\n    piVar2->processor = processor;\n    piVar2->type = type;\n    puVar1 = PTR_mips_opcodes_000b5cd0;\n    piVar2->value = value;\n    piVar4 = *(itbl_entry **)(puVar1 + (processor * 6 + type) * 4 + -0x7ec);\n    *(itbl_entry **)(puVar1 + (processor * 6 + type) * 4 + -0x7ec) = piVar2;\n    piVar2->next = piVar4;\n    return piVar2;\n  }" if (parenthesized_expression "(name != (char *)0x0)" ( (binary_expression "name != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar2 = (itbl_entry *)(*(code *)PTR_xmalloc_000b66f8)(0x24);\n    (*(code *)PTR_memset_000b664c)(piVar2,0,0x24);\n    pcVar3 = (char *)(*(code *)PTR_xstrdup_000b66f0)(name);\n    piVar2->name = pcVar3;\n    piVar2->processor = processor;\n    piVar2->type = type;\n    puVar1 = PTR_mips_opcodes_000b5cd0;\n    piVar2->value = value;\n    piVar4 = *(itbl_entry **)(puVar1 + (processor * 6 + type) * 4 + -0x7ec);\n    *(itbl_entry **)(puVar1 + (processor * 6 + type) * 4 + -0x7ec) = piVar2;\n    piVar2->next = piVar4;\n    return piVar2;\n  }" { (expression_statement "piVar2 = (itbl_entry *)(*(code *)PTR_xmalloc_000b66f8)(0x24);" (assignment_expression "piVar2 = (itbl_entry *)(*(code *)PTR_xmalloc_000b66f8)(0x24)" identifier = (cast_expression "(itbl_entry *)(*(code *)PTR_xmalloc_000b66f8)(0x24)" ( (type_descriptor "itbl_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_000b66f8)(0x24)" (parenthesized_expression "(*(code *)PTR_xmalloc_000b66f8)" ( (pointer_expression "*(code *)PTR_xmalloc_000b66f8" * (cast_expression "(code *)PTR_xmalloc_000b66f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x24)" ( number_literal ))))) ;) (expression_statement "(*(code *)PTR_memset_000b664c)(piVar2,0,0x24);" (call_expression "(*(code *)PTR_memset_000b664c)(piVar2,0,0x24)" (parenthesized_expression "(*(code *)PTR_memset_000b664c)" ( (pointer_expression "*(code *)PTR_memset_000b664c" * (cast_expression "(code *)PTR_memset_000b664c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar2,0,0x24)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "pcVar3 = (char *)(*(code *)PTR_xstrdup_000b66f0)(name);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_xstrdup_000b66f0)(name)" identifier = (cast_expression "(char *)(*(code *)PTR_xstrdup_000b66f0)(name)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xstrdup_000b66f0)(name)" (parenthesized_expression "(*(code *)PTR_xstrdup_000b66f0)" ( (pointer_expression "*(code *)PTR_xstrdup_000b66f0" * (cast_expression "(code *)PTR_xstrdup_000b66f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(name)" ( identifier ))))) ;) (expression_statement "piVar2->name = pcVar3;" (assignment_expression "piVar2->name = pcVar3" (field_expression "piVar2->name" identifier -> field_identifier) = identifier) ;) (expression_statement "piVar2->processor = processor;" (assignment_expression "piVar2->processor = processor" (field_expression "piVar2->processor" identifier -> field_identifier) = identifier) ;) (expression_statement "piVar2->type = type;" (assignment_expression "piVar2->type = type" (field_expression "piVar2->type" identifier -> field_identifier) = identifier) ;) (expression_statement "puVar1 = PTR_mips_opcodes_000b5cd0;" (assignment_expression "puVar1 = PTR_mips_opcodes_000b5cd0" identifier = identifier) ;) (expression_statement "piVar2->value = value;" (assignment_expression "piVar2->value = value" (field_expression "piVar2->value" identifier -> field_identifier) = identifier) ;) (expression_statement "piVar4 = *(itbl_entry **)(puVar1 + (processor * 6 + type) * 4 + -0x7ec);" (assignment_expression "piVar4 = *(itbl_entry **)(puVar1 + (processor * 6 + type) * 4 + -0x7ec)" identifier = (pointer_expression "*(itbl_entry **)(puVar1 + (processor * 6 + type) * 4 + -0x7ec)" * (cast_expression "(itbl_entry **)(puVar1 + (processor * 6 + type) * 4 + -0x7ec)" ( (type_descriptor "itbl_entry **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + (processor * 6 + type) * 4 + -0x7ec)" ( (binary_expression "puVar1 + (processor * 6 + type) * 4 + -0x7ec" (binary_expression "puVar1 + (processor * 6 + type) * 4" identifier + (binary_expression "(processor * 6 + type) * 4" (parenthesized_expression "(processor * 6 + type)" ( (binary_expression "processor * 6 + type" (binary_expression "processor * 6" identifier * number_literal) + identifier) )) * number_literal)) + number_literal) ))))) ;) (expression_statement "*(itbl_entry **)(puVar1 + (processor * 6 + type) * 4 + -0x7ec) = piVar2;" (assignment_expression "*(itbl_entry **)(puVar1 + (processor * 6 + type) * 4 + -0x7ec) = piVar2" (pointer_expression "*(itbl_entry **)(puVar1 + (processor * 6 + type) * 4 + -0x7ec)" * (cast_expression "(itbl_entry **)(puVar1 + (processor * 6 + type) * 4 + -0x7ec)" ( (type_descriptor "itbl_entry **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + (processor * 6 + type) * 4 + -0x7ec)" ( (binary_expression "puVar1 + (processor * 6 + type) * 4 + -0x7ec" (binary_expression "puVar1 + (processor * 6 + type) * 4" identifier + (binary_expression "(processor * 6 + type) * 4" (parenthesized_expression "(processor * 6 + type)" ( (binary_expression "processor * 6 + type" (binary_expression "processor * 6" identifier * number_literal) + identifier) )) * number_literal)) + number_literal) )))) = identifier) ;) (expression_statement "piVar2->next = piVar4;" (assignment_expression "piVar2->next = piVar4" (field_expression "piVar2->next" identifier -> field_identifier) = identifier) ;) (return_statement "return piVar2;" return identifier ;) })) (return_statement "return (itbl_entry *)0x0;" return (cast_expression "(itbl_entry *)0x0" ( (type_descriptor "itbl_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "int * FUN_0008e6f8(int param_1,int param_2,int param_3,int param_4)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  \n  if (param_3 != 0) {\n    piVar2 = (int *)(*(code *)PTR_xmalloc_000b66f8)(0x24);\n    (*(code *)PTR_memset_000b664c)(piVar2,0,0x24);\n    iVar3 = (*(code *)PTR_xstrdup_000b66f0)(param_3);\n    piVar2[2] = iVar3;\n    *piVar2 = param_1;\n    piVar2[1] = param_2;\n    puVar1 = PTR_mips_opcodes_000b5cd0;\n    piVar2[3] = param_4;\n    iVar3 = *(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec);\n    *(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec) = piVar2;\n    piVar2[8] = iVar3;\n    return piVar2;\n  }\n  return (int *)0x0;\n}\n\n" (function_definition "int * FUN_0008e6f8(int param_1,int param_2,int param_3,int param_4)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  \n  if (param_3 != 0) {\n    piVar2 = (int *)(*(code *)PTR_xmalloc_000b66f8)(0x24);\n    (*(code *)PTR_memset_000b664c)(piVar2,0,0x24);\n    iVar3 = (*(code *)PTR_xstrdup_000b66f0)(param_3);\n    piVar2[2] = iVar3;\n    *piVar2 = param_1;\n    piVar2[1] = param_2;\n    puVar1 = PTR_mips_opcodes_000b5cd0;\n    piVar2[3] = param_4;\n    iVar3 = *(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec);\n    *(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec) = piVar2;\n    piVar2[8] = iVar3;\n    return piVar2;\n  }\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* FUN_0008e6f8(int param_1,int param_2,int param_3,int param_4)" * (function_declarator "FUN_0008e6f8(int param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  \n  if (param_3 != 0) {\n    piVar2 = (int *)(*(code *)PTR_xmalloc_000b66f8)(0x24);\n    (*(code *)PTR_memset_000b664c)(piVar2,0,0x24);\n    iVar3 = (*(code *)PTR_xstrdup_000b66f0)(param_3);\n    piVar2[2] = iVar3;\n    *piVar2 = param_1;\n    piVar2[1] = param_2;\n    puVar1 = PTR_mips_opcodes_000b5cd0;\n    piVar2[3] = param_4;\n    iVar3 = *(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec);\n    *(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec) = piVar2;\n    piVar2[8] = iVar3;\n    return piVar2;\n  }\n  return (int *)0x0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (param_3 != 0) {\n    piVar2 = (int *)(*(code *)PTR_xmalloc_000b66f8)(0x24);\n    (*(code *)PTR_memset_000b664c)(piVar2,0,0x24);\n    iVar3 = (*(code *)PTR_xstrdup_000b66f0)(param_3);\n    piVar2[2] = iVar3;\n    *piVar2 = param_1;\n    piVar2[1] = param_2;\n    puVar1 = PTR_mips_opcodes_000b5cd0;\n    piVar2[3] = param_4;\n    iVar3 = *(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec);\n    *(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec) = piVar2;\n    piVar2[8] = iVar3;\n    return piVar2;\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar2 = (int *)(*(code *)PTR_xmalloc_000b66f8)(0x24);\n    (*(code *)PTR_memset_000b664c)(piVar2,0,0x24);\n    iVar3 = (*(code *)PTR_xstrdup_000b66f0)(param_3);\n    piVar2[2] = iVar3;\n    *piVar2 = param_1;\n    piVar2[1] = param_2;\n    puVar1 = PTR_mips_opcodes_000b5cd0;\n    piVar2[3] = param_4;\n    iVar3 = *(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec);\n    *(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec) = piVar2;\n    piVar2[8] = iVar3;\n    return piVar2;\n  }" { (expression_statement "piVar2 = (int *)(*(code *)PTR_xmalloc_000b66f8)(0x24);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_xmalloc_000b66f8)(0x24)" identifier = (cast_expression "(int *)(*(code *)PTR_xmalloc_000b66f8)(0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_000b66f8)(0x24)" (parenthesized_expression "(*(code *)PTR_xmalloc_000b66f8)" ( (pointer_expression "*(code *)PTR_xmalloc_000b66f8" * (cast_expression "(code *)PTR_xmalloc_000b66f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x24)" ( number_literal ))))) ;) (expression_statement "(*(code *)PTR_memset_000b664c)(piVar2,0,0x24);" (call_expression "(*(code *)PTR_memset_000b664c)(piVar2,0,0x24)" (parenthesized_expression "(*(code *)PTR_memset_000b664c)" ( (pointer_expression "*(code *)PTR_memset_000b664c" * (cast_expression "(code *)PTR_memset_000b664c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar2,0,0x24)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "iVar3 = (*(code *)PTR_xstrdup_000b66f0)(param_3);" (assignment_expression "iVar3 = (*(code *)PTR_xstrdup_000b66f0)(param_3)" identifier = (call_expression "(*(code *)PTR_xstrdup_000b66f0)(param_3)" (parenthesized_expression "(*(code *)PTR_xstrdup_000b66f0)" ( (pointer_expression "*(code *)PTR_xstrdup_000b66f0" * (cast_expression "(code *)PTR_xstrdup_000b66f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "piVar2[2] = iVar3;" (assignment_expression "piVar2[2] = iVar3" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar2 = param_1;" (assignment_expression "*piVar2 = param_1" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "piVar2[1] = param_2;" (assignment_expression "piVar2[1] = param_2" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1 = PTR_mips_opcodes_000b5cd0;" (assignment_expression "puVar1 = PTR_mips_opcodes_000b5cd0" identifier = identifier) ;) (expression_statement "piVar2[3] = param_4;" (assignment_expression "piVar2[3] = param_4" (subscript_expression "piVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar3 = *(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec);" (assignment_expression "iVar3 = *(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec)" identifier = (pointer_expression "*(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec)" * (cast_expression "(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec)" ( (binary_expression "puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec" (binary_expression "puVar1 + (param_1 * 6 + param_2) * 4" identifier + (binary_expression "(param_1 * 6 + param_2) * 4" (parenthesized_expression "(param_1 * 6 + param_2)" ( (binary_expression "param_1 * 6 + param_2" (binary_expression "param_1 * 6" identifier * number_literal) + identifier) )) * number_literal)) + number_literal) ))))) ;) (expression_statement "*(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec) = piVar2;" (assignment_expression "*(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec) = piVar2" (pointer_expression "*(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec)" * (cast_expression "(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec)" ( (binary_expression "puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec" (binary_expression "puVar1 + (param_1 * 6 + param_2) * 4" identifier + (binary_expression "(param_1 * 6 + param_2) * 4" (parenthesized_expression "(param_1 * 6 + param_2)" ( (binary_expression "param_1 * 6 + param_2" (binary_expression "param_1 * 6" identifier * number_literal) + identifier) )) * number_literal)) + number_literal) )))) = identifier) ;) (expression_statement "piVar2[8] = iVar3;" (assignment_expression "piVar2[8] = iVar3" (subscript_expression "piVar2[8]" identifier [ number_literal ]) = identifier) ;) (return_statement "return piVar2;" return identifier ;) })) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (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 (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (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 IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT * LIT) + IDENT) )) * LIT)) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT * LIT) + IDENT) )) * LIT)) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return IDENT ;) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "int * FUN_0008e6f8(int param_1,int param_2,int param_3,int param_4)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  \n  if (param_3 != 0) {\n    piVar2 = (int *)(*(code *)PTR_xmalloc_000b66f8)(0x24);\n    (*(code *)PTR_memset_000b664c)(piVar2,0,0x24);\n    iVar3 = (*(code *)PTR_xstrdup_000b66f0)(param_3);\n    piVar2[2] = iVar3;\n    *piVar2 = param_1;\n    piVar2[1] = param_2;\n    puVar1 = PTR_mips_opcodes_000b5cd0;\n    piVar2[3] = param_4;\n    iVar3 = *(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec);\n    *(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec) = piVar2;\n    piVar2[8] = iVar3;\n    return piVar2;\n  }\n  return (int *)0x0;\n}" (primitive_type "int") (pointer_declarator "* FUN_0008e6f8(int param_1,int param_2,int param_3,int param_4)" (* "*") (function_declarator "FUN_0008e6f8(int param_1,int param_2,int param_3,int param_4)" (identifier "FUN_0008e6f8") (parameter_list "(int param_1,int param_2,int param_3,int param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  \n  if (param_3 != 0) {\n    piVar2 = (int *)(*(code *)PTR_xmalloc_000b66f8)(0x24);\n    (*(code *)PTR_memset_000b664c)(piVar2,0,0x24);\n    iVar3 = (*(code *)PTR_xstrdup_000b66f0)(param_3);\n    piVar2[2] = iVar3;\n    *piVar2 = param_1;\n    piVar2[1] = param_2;\n    puVar1 = PTR_mips_opcodes_000b5cd0;\n    piVar2[3] = param_4;\n    iVar3 = *(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec);\n    *(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec) = piVar2;\n    piVar2[8] = iVar3;\n    return piVar2;\n  }\n  return (int *)0x0;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (if_statement "if (param_3 != 0) {\n    piVar2 = (int *)(*(code *)PTR_xmalloc_000b66f8)(0x24);\n    (*(code *)PTR_memset_000b664c)(piVar2,0,0x24);\n    iVar3 = (*(code *)PTR_xstrdup_000b66f0)(param_3);\n    piVar2[2] = iVar3;\n    *piVar2 = param_1;\n    piVar2[1] = param_2;\n    puVar1 = PTR_mips_opcodes_000b5cd0;\n    piVar2[3] = param_4;\n    iVar3 = *(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec);\n    *(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec) = piVar2;\n    piVar2[8] = iVar3;\n    return piVar2;\n  }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    piVar2 = (int *)(*(code *)PTR_xmalloc_000b66f8)(0x24);\n    (*(code *)PTR_memset_000b664c)(piVar2,0,0x24);\n    iVar3 = (*(code *)PTR_xstrdup_000b66f0)(param_3);\n    piVar2[2] = iVar3;\n    *piVar2 = param_1;\n    piVar2[1] = param_2;\n    puVar1 = PTR_mips_opcodes_000b5cd0;\n    piVar2[3] = param_4;\n    iVar3 = *(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec);\n    *(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec) = piVar2;\n    piVar2[8] = iVar3;\n    return piVar2;\n  }" ({ "{") (expression_statement "piVar2 = (int *)(*(code *)PTR_xmalloc_000b66f8)(0x24);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_xmalloc_000b66f8)(0x24)" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(code *)PTR_xmalloc_000b66f8)(0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_xmalloc_000b66f8)(0x24)" (parenthesized_expression "(*(code *)PTR_xmalloc_000b66f8)" (( "(") (pointer_expression "*(code *)PTR_xmalloc_000b66f8" (* "*") (cast_expression "(code *)PTR_xmalloc_000b66f8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xmalloc_000b66f8"))) () ")")) (argument_list "(0x24)" (( "(") (number_literal "0x24") () ")"))))) (; ";")) (expression_statement "(*(code *)PTR_memset_000b664c)(piVar2,0,0x24);" (call_expression "(*(code *)PTR_memset_000b664c)(piVar2,0,0x24)" (parenthesized_expression "(*(code *)PTR_memset_000b664c)" (( "(") (pointer_expression "*(code *)PTR_memset_000b664c" (* "*") (cast_expression "(code *)PTR_memset_000b664c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_000b664c"))) () ")")) (argument_list "(piVar2,0,0x24)" (( "(") (identifier "piVar2") (, ",") (number_literal "0") (, ",") (number_literal "0x24") () ")"))) (; ";")) (expression_statement "iVar3 = (*(code *)PTR_xstrdup_000b66f0)(param_3);" (assignment_expression "iVar3 = (*(code *)PTR_xstrdup_000b66f0)(param_3)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_xstrdup_000b66f0)(param_3)" (parenthesized_expression "(*(code *)PTR_xstrdup_000b66f0)" (( "(") (pointer_expression "*(code *)PTR_xstrdup_000b66f0" (* "*") (cast_expression "(code *)PTR_xstrdup_000b66f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xstrdup_000b66f0"))) () ")")) (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (expression_statement "piVar2[2] = iVar3;" (assignment_expression "piVar2[2] = iVar3" (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*piVar2 = param_1;" (assignment_expression "*piVar2 = param_1" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "piVar2[1] = param_2;" (assignment_expression "piVar2[1] = param_2" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "puVar1 = PTR_mips_opcodes_000b5cd0;" (assignment_expression "puVar1 = PTR_mips_opcodes_000b5cd0" (identifier "puVar1") (= "=") (identifier "PTR_mips_opcodes_000b5cd0")) (; ";")) (expression_statement "piVar2[3] = param_4;" (assignment_expression "piVar2[3] = param_4" (subscript_expression "piVar2[3]" (identifier "piVar2") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "iVar3 = *(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec);" (assignment_expression "iVar3 = *(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec)" (* "*") (cast_expression "(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec)" (( "(") (binary_expression "puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec" (binary_expression "puVar1 + (param_1 * 6 + param_2) * 4" (identifier "puVar1") (+ "+") (binary_expression "(param_1 * 6 + param_2) * 4" (parenthesized_expression "(param_1 * 6 + param_2)" (( "(") (binary_expression "param_1 * 6 + param_2" (binary_expression "param_1 * 6" (identifier "param_1") (* "*") (number_literal "6")) (+ "+") (identifier "param_2")) () ")")) (* "*") (number_literal "4"))) (+ "+") (number_literal "-0x7ec")) () ")"))))) (; ";")) (expression_statement "*(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec) = piVar2;" (assignment_expression "*(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec) = piVar2" (pointer_expression "*(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec)" (* "*") (cast_expression "(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec)" (( "(") (binary_expression "puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec" (binary_expression "puVar1 + (param_1 * 6 + param_2) * 4" (identifier "puVar1") (+ "+") (binary_expression "(param_1 * 6 + param_2) * 4" (parenthesized_expression "(param_1 * 6 + param_2)" (( "(") (binary_expression "param_1 * 6 + param_2" (binary_expression "param_1 * 6" (identifier "param_1") (* "*") (number_literal "6")) (+ "+") (identifier "param_2")) () ")")) (* "*") (number_literal "4"))) (+ "+") (number_literal "-0x7ec")) () ")")))) (= "=") (identifier "piVar2")) (; ";")) (expression_statement "piVar2[8] = iVar3;" (assignment_expression "piVar2[8] = iVar3" (subscript_expression "piVar2[8]" (identifier "piVar2") ([ "[") (number_literal "8") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (return_statement "return piVar2;" (return "return") (identifier "piVar2") (; ";")) (} "}"))) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))

/* WARNING: Enum "e_type": Some values do not have unique names */

type_1 * function_1(type_2 var_3,type_3 var_4,char *var_1,type_4 value)

{
  type_5 *var_2;
  type_1 *piVar2;
  char *pcVar3;
  type_1 *piVar4;
  
  if (var_1 != (char *)0x0) {
    piVar2 = (type_1 *)(*(type_6 *)PTR_xmalloc_000b66f8)(0x24);
    (*(type_6 *)PTR_memset_000b664c)(piVar2,0,0x24);
    pcVar3 = (char *)(*(type_6 *)PTR_xstrdup_000b66f0)(var_1);
    piVar2->var_1 = pcVar3;
    piVar2->var_3 = var_3;
    piVar2->var_4 = var_4;
    var_2 = PTR_mips_opcodes_000b5cd0;
    piVar2->value = value;
    piVar4 = *(type_1 **)(var_2 + (var_3 * 6 + var_4) * 4 + -0x7ec);
    *(type_1 **)(var_2 + (var_3 * 6 + var_4) * 4 + -0x7ec) = piVar2;
    piVar2->next = piVar4;
    return piVar2;
  }
  return (type_1 *)0x0;
}


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

int * MASKED(int param_1,int param_2,int param_3,int param_4)

{
  undefined *puVar1;
  int *piVar2;
  int iVar3;
  
  if (param_3 != 0) {
    piVar2 = (int *)(*(code *)PTR_xmalloc_000b66f8)(0x24);
    (*(code *)PTR_memset_000b664c)(piVar2,0,0x24);
    iVar3 = (*(code *)PTR_xstrdup_000b66f0)(param_3);
    piVar2[2] = iVar3;
    *piVar2 = param_1;
    piVar2[1] = param_2;
    puVar1 = PTR_mips_opcodes_000b5cd0;
    piVar2[3] = param_4;
    iVar3 = *(int *)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec);
    *(int **)(puVar1 + (param_1 * 6 + param_2) * 4 + -0x7ec) = piVar2;
    piVar2[8] = iVar3;
    return piVar2;
  }
  return (int *)0x0;
}

