
int sg_lib_pdt_decay(int pdt)

{
  if ((uint)pdt < 0x20) {
    return *(int *)(PTR_sg_lib_pdt_decay_arr_00054a04 + pdt * 4);
  }
  return 0;
}



undefined4 sg_lib_pdt_decay(uint param_1)

{
  if (param_1 < 0x20) {
    return *(undefined4 *)(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4);
  }
  return 0;
}


lui gp,0x4
addiu gp,gp,0x4aa0
addu gp,gp,t9
sltiu v0,a0,0x20
beq v0,zero,0x00017d98
_sll a0,a0,0x2
lw v0,-0x7e0c(gp)
addu a0,v0,a0
jr ra
_lw v0,0x0(a0)
jr ra
_or v0,zero,zero
(translation_unit "undefined4 sg_lib_pdt_decay(uint param_1)\n\n{\n  if (param_1 < 0x20) {\n    return *(undefined4 *)(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4);\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 sg_lib_pdt_decay(uint param_1)\n\n{\n  if (param_1 < 0x20) {\n    return *(undefined4 *)(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4);\n  }\n  return 0;\n}" type_identifier (function_declarator "sg_lib_pdt_decay(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  if (param_1 < 0x20) {\n    return *(undefined4 *)(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4);\n  }\n  return 0;\n}" { (if_statement "if (param_1 < 0x20) {\n    return *(undefined4 *)(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4);\n  }" if (parenthesized_expression "(param_1 < 0x20)" ( (binary_expression "param_1 < 0x20" identifier < number_literal) )) (compound_statement "{\n    return *(undefined4 *)(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4);\n  }" { (return_statement "return *(undefined4 *)(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4);" return (pointer_expression "*(undefined4 *)(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4)" * (cast_expression "(undefined4 *)(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4)" ( (binary_expression "PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4" identifier + (binary_expression "param_1 * 4" identifier * number_literal)) )))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int sg_lib_pdt_decay(int pdt)\n\n{\n  if ((uint)pdt < 0x20) {\n    return *(int *)(PTR_sg_lib_pdt_decay_arr_00054a04 + pdt * 4);\n  }\n  return 0;\n}\n\n" (function_definition "int sg_lib_pdt_decay(int pdt)\n\n{\n  if ((uint)pdt < 0x20) {\n    return *(int *)(PTR_sg_lib_pdt_decay_arr_00054a04 + pdt * 4);\n  }\n  return 0;\n}" primitive_type (function_declarator "sg_lib_pdt_decay(int pdt)" identifier (parameter_list "(int pdt)" ( (parameter_declaration "int pdt" primitive_type identifier) ))) (compound_statement "{\n  if ((uint)pdt < 0x20) {\n    return *(int *)(PTR_sg_lib_pdt_decay_arr_00054a04 + pdt * 4);\n  }\n  return 0;\n}" { (if_statement "if ((uint)pdt < 0x20) {\n    return *(int *)(PTR_sg_lib_pdt_decay_arr_00054a04 + pdt * 4);\n  }" if (parenthesized_expression "((uint)pdt < 0x20)" ( (binary_expression "(uint)pdt < 0x20" (cast_expression "(uint)pdt" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) )) (compound_statement "{\n    return *(int *)(PTR_sg_lib_pdt_decay_arr_00054a04 + pdt * 4);\n  }" { (return_statement "return *(int *)(PTR_sg_lib_pdt_decay_arr_00054a04 + pdt * 4);" return (pointer_expression "*(int *)(PTR_sg_lib_pdt_decay_arr_00054a04 + pdt * 4)" * (cast_expression "(int *)(PTR_sg_lib_pdt_decay_arr_00054a04 + pdt * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_sg_lib_pdt_decay_arr_00054a04 + pdt * 4)" ( (binary_expression "PTR_sg_lib_pdt_decay_arr_00054a04 + pdt * 4" identifier + (binary_expression "pdt * 4" identifier * number_literal)) )))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 sg_lib_pdt_decay(uint param_1)\n\n{\n  if (param_1 < 0x20) {\n    return *(undefined4 *)(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4);\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 sg_lib_pdt_decay(uint param_1)\n\n{\n  if (param_1 < 0x20) {\n    return *(undefined4 *)(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4);\n  }\n  return 0;\n}" type_identifier (function_declarator "sg_lib_pdt_decay(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  if (param_1 < 0x20) {\n    return *(undefined4 *)(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4);\n  }\n  return 0;\n}" { (if_statement "if (param_1 < 0x20) {\n    return *(undefined4 *)(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4);\n  }" if (parenthesized_expression "(param_1 < 0x20)" ( (binary_expression "param_1 < 0x20" identifier < number_literal) )) (compound_statement "{\n    return *(undefined4 *)(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4);\n  }" { (return_statement "return *(undefined4 *)(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4);" return (pointer_expression "*(undefined4 *)(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4)" * (cast_expression "(undefined4 *)(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4)" ( (binary_expression "PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4" identifier + (binary_expression "param_1 * 4" identifier * number_literal)) )))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 sg_lib_pdt_decay(uint param_1)\n\n{\n  if (param_1 < 0x20) {\n    return *(undefined4 *)(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4);\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "sg_lib_pdt_decay(uint param_1)" (identifier "sg_lib_pdt_decay") (parameter_list "(uint param_1)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) () ")"))) (compound_statement "{\n  if (param_1 < 0x20) {\n    return *(undefined4 *)(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4);\n  }\n  return 0;\n}" ({ "{") (if_statement "if (param_1 < 0x20) {\n    return *(undefined4 *)(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4);\n  }" (if "if") (parenthesized_expression "(param_1 < 0x20)" (( "(") (binary_expression "param_1 < 0x20" (identifier "param_1") (< "<") (number_literal "0x20")) () ")")) (compound_statement "{\n    return *(undefined4 *)(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4);\n  }" ({ "{") (return_statement "return *(undefined4 *)(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4);" (return "return") (pointer_expression "*(undefined4 *)(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4)" (* "*") (cast_expression "(undefined4 *)(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4)" (( "(") (binary_expression "PTR_sg_lib_pdt_decay_arr_00054a04 + param_1 * 4" (identifier "PTR_sg_lib_pdt_decay_arr_00054a04") (+ "+") (binary_expression "param_1 * 4" (identifier "param_1") (* "*") (number_literal "4"))) () ")")))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(int var_2)

{
  if ((type_1)var_2 < 0x20) {
    return *(int *)(var_1 + var_2 * 4);
  }
  return 0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))))) (return_statement (number_literal)))))

undefined4 MASKED(uint param_1)

{
  if (param_1 < 0x20) {
    return *(undefined4 *)(PTR_MASKED_arr_00054a04 + param_1 * 4);
  }
  return 0;
}

