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

int itbl_get_val(e_processor processor,e_type type,char *name,ulong *pval)

{
  int iVar1;
  int iVar2;
  
  iVar2 = *(int *)(PTR_mips_opcodes_000b5cd0 + (processor * 6 + type) * 4 + -0x7ec);
  while( true ) {
    if (iVar2 == 0) {
      return 0;
    }
    iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),name);
    if (iVar1 == 0) break;
    iVar2 = *(int *)(iVar2 + 0x20);
  }
  *pval = *(ulong *)(iVar2 + 0xc);
  return 1;
}



undefined4 itbl_get_val(int param_1,int param_2,undefined4 param_3,undefined4 *param_4)

{
  int iVar1;
  int iVar2;
  
  iVar2 = *(int *)(PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec);
  while( true ) {
    if (iVar2 == 0) {
      return 0;
    }
    iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),param_3);
    if (iVar1 == 0) break;
    iVar2 = *(int *)(iVar2 + 0x20);
  }
  *param_4 = *(undefined4 *)(iVar2 + 0xc);
  return 1;
}


lui gp,0x3
addiu gp,gp,-0x1070
addu gp,gp,t9
sll v0,a0,0x1
addiu sp,sp,-0x28
addu a0,v0,a0
lw v0,-0x7fb0(gp)
sll a0,a0,0x1
sw s0,0x18(sp)
addiu v0,v0,-0x7ec
sw gp,0x10(sp)
addu a0,a0,a1
sw ra,0x24(sp)
sw s2,0x20(sp)
sll a0,a0,0x2
sw s1,0x1c(sp)
addu a0,a0,v0
lw s0,0x0(a0)
beq s0,zero,0x0008ed90
_or s1,a2,zero
b 0x0008ed54
_or s2,a3,zero
lw s0,0x20(s0)
beq s0,zero,0x0008ed94
_lw ra,0x24(sp)
lw t9,-0x74b8(gp)
or a1,s1,zero
jalr t9
_lw a0,0x8(s0)
bne v0,zero,0x0008ed48
_lw gp,0x10(sp)
lw v1,0xc(s0)
li v0,0x1
lw ra,0x24(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
sw v1,0x0(s2)
lw s2,0x20(sp)
jr ra
_addiu sp,sp,0x28
lw ra,0x24(sp)
or v0,zero,zero
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "undefined4 itbl_get_val(int param_1,int param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec);\n  while( true ) {\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),param_3);\n    if (iVar1 == 0) break;\n    iVar2 = *(int *)(iVar2 + 0x20);\n  }\n  *param_4 = *(undefined4 *)(iVar2 + 0xc);\n  return 1;\n}\n\n" (function_definition "undefined4 itbl_get_val(int param_1,int param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec);\n  while( true ) {\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),param_3);\n    if (iVar1 == 0) break;\n    iVar2 = *(int *)(iVar2 + 0x20);\n  }\n  *param_4 = *(undefined4 *)(iVar2 + 0xc);\n  return 1;\n}" type_identifier (function_declarator "itbl_get_val(int param_1,int param_2,undefined4 param_3,undefined4 *param_4)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3,undefined4 *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec);\n  while( true ) {\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),param_3);\n    if (iVar1 == 0) break;\n    iVar2 = *(int *)(iVar2 + 0x20);\n  }\n  *param_4 = *(undefined4 *)(iVar2 + 0xc);\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec);" (assignment_expression "iVar2 = *(int *)(PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec)" identifier = (pointer_expression "*(int *)(PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec)" * (cast_expression "(int *)(PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec)" ( (binary_expression "PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec" (binary_expression "PTR_mips_opcodes_000b5cd0 + (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) ))))) ;) (while_statement "while( true ) {\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),param_3);\n    if (iVar1 == 0) break;\n    iVar2 = *(int *)(iVar2 + 0x20);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),param_3);\n    if (iVar1 == 0) break;\n    iVar2 = *(int *)(iVar2 + 0x20);\n  }" { (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),param_3);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),param_3)" identifier = (call_expression "(*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),param_3)" (parenthesized_expression "(*(code *)PTR_strcmp_000b67c8)" ( (pointer_expression "*(code *)PTR_strcmp_000b67c8" * (cast_expression "(code *)PTR_strcmp_000b67c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(iVar2 + 8),param_3)" ( (pointer_expression "*(undefined4 *)(iVar2 + 8)" * (cast_expression "(undefined4 *)(iVar2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = *(int *)(iVar2 + 0x20);" (assignment_expression "iVar2 = *(int *)(iVar2 + 0x20)" identifier = (pointer_expression "*(int *)(iVar2 + 0x20)" * (cast_expression "(int *)(iVar2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x20)" ( (binary_expression "iVar2 + 0x20" identifier + number_literal) ))))) ;) })) (expression_statement "*param_4 = *(undefined4 *)(iVar2 + 0xc);" (assignment_expression "*param_4 = *(undefined4 *)(iVar2 + 0xc)" (pointer_expression "*param_4" * identifier) = (pointer_expression "*(undefined4 *)(iVar2 + 0xc)" * (cast_expression "(undefined4 *)(iVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) ))))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Enum "e_type": Some values do not have unique names */\n\nint itbl_get_val(e_processor processor,e_type type,char *name,ulong *pval)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(PTR_mips_opcodes_000b5cd0 + (processor * 6 + type) * 4 + -0x7ec);\n  while( true ) {\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),name);\n    if (iVar1 == 0) break;\n    iVar2 = *(int *)(iVar2 + 0x20);\n  }\n  *pval = *(ulong *)(iVar2 + 0xc);\n  return 1;\n}\n\n" comment (function_definition "int itbl_get_val(e_processor processor,e_type type,char *name,ulong *pval)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(PTR_mips_opcodes_000b5cd0 + (processor * 6 + type) * 4 + -0x7ec);\n  while( true ) {\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),name);\n    if (iVar1 == 0) break;\n    iVar2 = *(int *)(iVar2 + 0x20);\n  }\n  *pval = *(ulong *)(iVar2 + 0xc);\n  return 1;\n}" primitive_type (function_declarator "itbl_get_val(e_processor processor,e_type type,char *name,ulong *pval)" identifier (parameter_list "(e_processor processor,e_type type,char *name,ulong *pval)" ( (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 *pval" type_identifier (pointer_declarator "*pval" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(PTR_mips_opcodes_000b5cd0 + (processor * 6 + type) * 4 + -0x7ec);\n  while( true ) {\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),name);\n    if (iVar1 == 0) break;\n    iVar2 = *(int *)(iVar2 + 0x20);\n  }\n  *pval = *(ulong *)(iVar2 + 0xc);\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(PTR_mips_opcodes_000b5cd0 + (processor * 6 + type) * 4 + -0x7ec);" (assignment_expression "iVar2 = *(int *)(PTR_mips_opcodes_000b5cd0 + (processor * 6 + type) * 4 + -0x7ec)" identifier = (pointer_expression "*(int *)(PTR_mips_opcodes_000b5cd0 + (processor * 6 + type) * 4 + -0x7ec)" * (cast_expression "(int *)(PTR_mips_opcodes_000b5cd0 + (processor * 6 + type) * 4 + -0x7ec)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_mips_opcodes_000b5cd0 + (processor * 6 + type) * 4 + -0x7ec)" ( (binary_expression "PTR_mips_opcodes_000b5cd0 + (processor * 6 + type) * 4 + -0x7ec" (binary_expression "PTR_mips_opcodes_000b5cd0 + (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) ))))) ;) (while_statement "while( true ) {\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),name);\n    if (iVar1 == 0) break;\n    iVar2 = *(int *)(iVar2 + 0x20);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),name);\n    if (iVar1 == 0) break;\n    iVar2 = *(int *)(iVar2 + 0x20);\n  }" { (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),name);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),name)" identifier = (call_expression "(*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),name)" (parenthesized_expression "(*(code *)PTR_strcmp_000b67c8)" ( (pointer_expression "*(code *)PTR_strcmp_000b67c8" * (cast_expression "(code *)PTR_strcmp_000b67c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(iVar2 + 8),name)" ( (pointer_expression "*(undefined4 *)(iVar2 + 8)" * (cast_expression "(undefined4 *)(iVar2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = *(int *)(iVar2 + 0x20);" (assignment_expression "iVar2 = *(int *)(iVar2 + 0x20)" identifier = (pointer_expression "*(int *)(iVar2 + 0x20)" * (cast_expression "(int *)(iVar2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x20)" ( (binary_expression "iVar2 + 0x20" identifier + number_literal) ))))) ;) })) (expression_statement "*pval = *(ulong *)(iVar2 + 0xc);" (assignment_expression "*pval = *(ulong *)(iVar2 + 0xc)" (pointer_expression "*pval" * identifier) = (pointer_expression "*(ulong *)(iVar2 + 0xc)" * (cast_expression "(ulong *)(iVar2 + 0xc)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) ))))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 itbl_get_val(int param_1,int param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec);\n  while( true ) {\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),param_3);\n    if (iVar1 == 0) break;\n    iVar2 = *(int *)(iVar2 + 0x20);\n  }\n  *param_4 = *(undefined4 *)(iVar2 + 0xc);\n  return 1;\n}\n\n" (function_definition "undefined4 itbl_get_val(int param_1,int param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec);\n  while( true ) {\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),param_3);\n    if (iVar1 == 0) break;\n    iVar2 = *(int *)(iVar2 + 0x20);\n  }\n  *param_4 = *(undefined4 *)(iVar2 + 0xc);\n  return 1;\n}" type_identifier (function_declarator "itbl_get_val(int param_1,int param_2,undefined4 param_3,undefined4 *param_4)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3,undefined4 *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec);\n  while( true ) {\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),param_3);\n    if (iVar1 == 0) break;\n    iVar2 = *(int *)(iVar2 + 0x20);\n  }\n  *param_4 = *(undefined4 *)(iVar2 + 0xc);\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec);" (assignment_expression "iVar2 = *(int *)(PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec)" identifier = (pointer_expression "*(int *)(PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec)" * (cast_expression "(int *)(PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec)" ( (binary_expression "PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec" (binary_expression "PTR_mips_opcodes_000b5cd0 + (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) ))))) ;) (while_statement "while( true ) {\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),param_3);\n    if (iVar1 == 0) break;\n    iVar2 = *(int *)(iVar2 + 0x20);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),param_3);\n    if (iVar1 == 0) break;\n    iVar2 = *(int *)(iVar2 + 0x20);\n  }" { (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),param_3);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),param_3)" identifier = (call_expression "(*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),param_3)" (parenthesized_expression "(*(code *)PTR_strcmp_000b67c8)" ( (pointer_expression "*(code *)PTR_strcmp_000b67c8" * (cast_expression "(code *)PTR_strcmp_000b67c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(iVar2 + 8),param_3)" ( (pointer_expression "*(undefined4 *)(iVar2 + 8)" * (cast_expression "(undefined4 *)(iVar2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = *(int *)(iVar2 + 0x20);" (assignment_expression "iVar2 = *(int *)(iVar2 + 0x20)" identifier = (pointer_expression "*(int *)(iVar2 + 0x20)" * (cast_expression "(int *)(iVar2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x20)" ( (binary_expression "iVar2 + 0x20" identifier + number_literal) ))))) ;) })) (expression_statement "*param_4 = *(undefined4 *)(iVar2 + 0xc);" (assignment_expression "*param_4 = *(undefined4 *)(iVar2 + 0xc)" (pointer_expression "*param_4" * identifier) = (pointer_expression "*(undefined4 *)(iVar2 + 0xc)" * (cast_expression "(undefined4 *)(iVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) ))))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE 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) ))))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 itbl_get_val(int param_1,int param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec);\n  while( true ) {\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),param_3);\n    if (iVar1 == 0) break;\n    iVar2 = *(int *)(iVar2 + 0x20);\n  }\n  *param_4 = *(undefined4 *)(iVar2 + 0xc);\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "itbl_get_val(int param_1,int param_2,undefined4 param_3,undefined4 *param_4)" (identifier "itbl_get_val") (parameter_list "(int param_1,int param_2,undefined4 param_3,undefined4 *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 "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec);\n  while( true ) {\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),param_3);\n    if (iVar1 == 0) break;\n    iVar2 = *(int *)(iVar2 + 0x20);\n  }\n  *param_4 = *(undefined4 *)(iVar2 + 0xc);\n  return 1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = *(int *)(PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec);" (assignment_expression "iVar2 = *(int *)(PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec)" (* "*") (cast_expression "(int *)(PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec)" (( "(") (binary_expression "PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec" (binary_expression "PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4" (identifier "PTR_mips_opcodes_000b5cd0") (+ "+") (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")) () ")"))))) (; ";")) (while_statement "while( true ) {\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),param_3);\n    if (iVar1 == 0) break;\n    iVar2 = *(int *)(iVar2 + 0x20);\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),param_3);\n    if (iVar1 == 0) break;\n    iVar2 = *(int *)(iVar2 + 0x20);\n  }" ({ "{") (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),param_3);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),param_3)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),param_3)" (parenthesized_expression "(*(code *)PTR_strcmp_000b67c8)" (( "(") (pointer_expression "*(code *)PTR_strcmp_000b67c8" (* "*") (cast_expression "(code *)PTR_strcmp_000b67c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_000b67c8"))) () ")")) (argument_list "(*(undefined4 *)(iVar2 + 8),param_3)" (( "(") (pointer_expression "*(undefined4 *)(iVar2 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")")))) (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) break;" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar2 = *(int *)(iVar2 + 0x20);" (assignment_expression "iVar2 = *(int *)(iVar2 + 0x20)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar2 + 0x20)" (* "*") (cast_expression "(int *)(iVar2 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x20)" (( "(") (binary_expression "iVar2 + 0x20" (identifier "iVar2") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (} "}"))) (expression_statement "*param_4 = *(undefined4 *)(iVar2 + 0xc);" (assignment_expression "*param_4 = *(undefined4 *)(iVar2 + 0xc)" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (pointer_expression "*(undefined4 *)(iVar2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xc)" (( "(") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) 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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (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))))))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (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 (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))))) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (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: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (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))))))) (return_statement (number_literal)))))

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

{
  int iVar1;
  int iVar2;
  
  iVar2 = *(int *)(PTR_mips_opcodes_000b5cd0 + (param_1 * 6 + param_2) * 4 + -0x7ec);
  while( true ) {
    if (iVar2 == 0) {
      return 0;
    }
    iVar1 = (*(code *)PTR_strcmp_000b67c8)(*(undefined4 *)(iVar2 + 8),param_3);
    if (iVar1 == 0) break;
    iVar2 = *(int *)(iVar2 + 0x20);
  }
  *param_4 = *(undefined4 *)(iVar2 + 0xc);
  return 1;
}

