
void * sqlite3ValueText(sqlite3_value *pVal,u8 enc)

{
  void *pvVar1;
  undefined3 in_register_00000014;
  
  if (pVal == (sqlite3_value *)0x0) {
    return (void *)0x0;
  }
  if (((pVal->flags & 0x202) == 0x202) && ((uint)pVal->enc == CONCAT31(in_register_00000014,enc))) {
    return pVal->z;
  }
  if ((pVal->flags & 1) == 0) {
    pvVar1 = valueToText(pVal,enc);
    return pvVar1;
  }
  return (void *)0x0;
}



undefined4 FUN_00063794(int param_1,uint param_2)

{
  undefined4 uVar1;
  
  if (param_1 == 0) {
    return 0;
  }
  if (((*(ushort *)(param_1 + 8) & 0x202) == 0x202) && (*(byte *)(param_1 + 10) == param_2)) {
    return *(undefined4 *)(param_1 + 0x10);
  }
  if ((*(ushort *)(param_1 + 8) & 1) == 0) {
    uVar1 = FUN_00063350();
    return uVar1;
  }
  return 0;
}


lui gp,0x10
addiu gp,gp,0xe1c
addu gp,gp,t9
beq a0,zero,0x000637f4
_nop
lhu v0,0x8(a0)
li v1,0x202
andi a2,v0,0x202
beq a2,v1,0x000637d8
_nop
andi v0,v0,0x1
bne v0,zero,0x000637ec
_nop
lw t9,-0x7e9c(gp)
addiu t9,t9,0x3350
b 0x00063350
_nop
lbu v1,0xa(a0)
bne v1,a1,0x000637bc
_nop
jr ra
_lw v0,0x10(a0)
jr ra
_or v0,zero,zero
jr ra
_or v0,zero,zero
(translation_unit "undefined4 FUN_00063794(int param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if (((*(ushort *)(param_1 + 8) & 0x202) == 0x202) && (*(byte *)(param_1 + 10) == param_2)) {\n    return *(undefined4 *)(param_1 + 0x10);\n  }\n  if ((*(ushort *)(param_1 + 8) & 1) == 0) {\n    uVar1 = FUN_00063350();\n    return uVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00063794(int param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if (((*(ushort *)(param_1 + 8) & 0x202) == 0x202) && (*(byte *)(param_1 + 10) == param_2)) {\n    return *(undefined4 *)(param_1 + 0x10);\n  }\n  if ((*(ushort *)(param_1 + 8) & 1) == 0) {\n    uVar1 = FUN_00063350();\n    return uVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00063794(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if (((*(ushort *)(param_1 + 8) & 0x202) == 0x202) && (*(byte *)(param_1 + 10) == param_2)) {\n    return *(undefined4 *)(param_1 + 0x10);\n  }\n  if ((*(ushort *)(param_1 + 8) & 1) == 0) {\n    uVar1 = FUN_00063350();\n    return uVar1;\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (((*(ushort *)(param_1 + 8) & 0x202) == 0x202) && (*(byte *)(param_1 + 10) == param_2)) {\n    return *(undefined4 *)(param_1 + 0x10);\n  }" if (parenthesized_expression "(((*(ushort *)(param_1 + 8) & 0x202) == 0x202) && (*(byte *)(param_1 + 10) == param_2))" ( (binary_expression "((*(ushort *)(param_1 + 8) & 0x202) == 0x202) && (*(byte *)(param_1 + 10) == param_2)" (parenthesized_expression "((*(ushort *)(param_1 + 8) & 0x202) == 0x202)" ( (binary_expression "(*(ushort *)(param_1 + 8) & 0x202) == 0x202" (parenthesized_expression "(*(ushort *)(param_1 + 8) & 0x202)" ( (binary_expression "*(ushort *)(param_1 + 8) & 0x202" (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) & number_literal) )) == number_literal) )) && (parenthesized_expression "(*(byte *)(param_1 + 10) == param_2)" ( (binary_expression "*(byte *)(param_1 + 10) == param_2" (pointer_expression "*(byte *)(param_1 + 10)" * (cast_expression "(byte *)(param_1 + 10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) )))) == identifier) ))) )) (compound_statement "{\n    return *(undefined4 *)(param_1 + 0x10);\n  }" { (return_statement "return *(undefined4 *)(param_1 + 0x10);" return (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ;) })) (if_statement "if ((*(ushort *)(param_1 + 8) & 1) == 0) {\n    uVar1 = FUN_00063350();\n    return uVar1;\n  }" if (parenthesized_expression "((*(ushort *)(param_1 + 8) & 1) == 0)" ( (binary_expression "(*(ushort *)(param_1 + 8) & 1) == 0" (parenthesized_expression "(*(ushort *)(param_1 + 8) & 1)" ( (binary_expression "*(ushort *)(param_1 + 8) & 1" (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar1 = FUN_00063350();\n    return uVar1;\n  }" { (expression_statement "uVar1 = FUN_00063350();" (assignment_expression "uVar1 = FUN_00063350()" identifier = (call_expression "FUN_00063350()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "void * sqlite3ValueText(sqlite3_value *pVal,u8 enc)\n\n{\n  void *pvVar1;\n  undefined3 in_register_00000014;\n  \n  if (pVal == (sqlite3_value *)0x0) {\n    return (void *)0x0;\n  }\n  if (((pVal->flags & 0x202) == 0x202) && ((uint)pVal->enc == CONCAT31(in_register_00000014,enc))) {\n    return pVal->z;\n  }\n  if ((pVal->flags & 1) == 0) {\n    pvVar1 = valueToText(pVal,enc);\n    return pvVar1;\n  }\n  return (void *)0x0;\n}\n\n" (function_definition "void * sqlite3ValueText(sqlite3_value *pVal,u8 enc)\n\n{\n  void *pvVar1;\n  undefined3 in_register_00000014;\n  \n  if (pVal == (sqlite3_value *)0x0) {\n    return (void *)0x0;\n  }\n  if (((pVal->flags & 0x202) == 0x202) && ((uint)pVal->enc == CONCAT31(in_register_00000014,enc))) {\n    return pVal->z;\n  }\n  if ((pVal->flags & 1) == 0) {\n    pvVar1 = valueToText(pVal,enc);\n    return pvVar1;\n  }\n  return (void *)0x0;\n}" primitive_type (pointer_declarator "* sqlite3ValueText(sqlite3_value *pVal,u8 enc)" * (function_declarator "sqlite3ValueText(sqlite3_value *pVal,u8 enc)" identifier (parameter_list "(sqlite3_value *pVal,u8 enc)" ( (parameter_declaration "sqlite3_value *pVal" type_identifier (pointer_declarator "*pVal" * identifier)) , (parameter_declaration "u8 enc" type_identifier identifier) )))) (compound_statement "{\n  void *pvVar1;\n  undefined3 in_register_00000014;\n  \n  if (pVal == (sqlite3_value *)0x0) {\n    return (void *)0x0;\n  }\n  if (((pVal->flags & 0x202) == 0x202) && ((uint)pVal->enc == CONCAT31(in_register_00000014,enc))) {\n    return pVal->z;\n  }\n  if ((pVal->flags & 1) == 0) {\n    pvVar1 = valueToText(pVal,enc);\n    return pvVar1;\n  }\n  return (void *)0x0;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "undefined3 in_register_00000014;" type_identifier identifier ;) (if_statement "if (pVal == (sqlite3_value *)0x0) {\n    return (void *)0x0;\n  }" if (parenthesized_expression "(pVal == (sqlite3_value *)0x0)" ( (binary_expression "pVal == (sqlite3_value *)0x0" identifier == (cast_expression "(sqlite3_value *)0x0" ( (type_descriptor "sqlite3_value *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return (void *)0x0;\n  }" { (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (((pVal->flags & 0x202) == 0x202) && ((uint)pVal->enc == CONCAT31(in_register_00000014,enc))) {\n    return pVal->z;\n  }" if (parenthesized_expression "(((pVal->flags & 0x202) == 0x202) && ((uint)pVal->enc == CONCAT31(in_register_00000014,enc)))" ( (binary_expression "((pVal->flags & 0x202) == 0x202) && ((uint)pVal->enc == CONCAT31(in_register_00000014,enc))" (parenthesized_expression "((pVal->flags & 0x202) == 0x202)" ( (binary_expression "(pVal->flags & 0x202) == 0x202" (parenthesized_expression "(pVal->flags & 0x202)" ( (binary_expression "pVal->flags & 0x202" (field_expression "pVal->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) && (parenthesized_expression "((uint)pVal->enc == CONCAT31(in_register_00000014,enc))" ( (binary_expression "(uint)pVal->enc == CONCAT31(in_register_00000014,enc)" (cast_expression "(uint)pVal->enc" ( (type_descriptor "uint" type_identifier) ) (field_expression "pVal->enc" identifier -> field_identifier)) == (call_expression "CONCAT31(in_register_00000014,enc)" identifier (argument_list "(in_register_00000014,enc)" ( identifier , identifier )))) ))) )) (compound_statement "{\n    return pVal->z;\n  }" { (return_statement "return pVal->z;" return (field_expression "pVal->z" identifier -> field_identifier) ;) })) (if_statement "if ((pVal->flags & 1) == 0) {\n    pvVar1 = valueToText(pVal,enc);\n    return pvVar1;\n  }" if (parenthesized_expression "((pVal->flags & 1) == 0)" ( (binary_expression "(pVal->flags & 1) == 0" (parenthesized_expression "(pVal->flags & 1)" ( (binary_expression "pVal->flags & 1" (field_expression "pVal->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    pvVar1 = valueToText(pVal,enc);\n    return pvVar1;\n  }" { (expression_statement "pvVar1 = valueToText(pVal,enc);" (assignment_expression "pvVar1 = valueToText(pVal,enc)" identifier = (call_expression "valueToText(pVal,enc)" identifier (argument_list "(pVal,enc)" ( identifier , identifier )))) ;) (return_statement "return pvVar1;" return identifier ;) })) (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined4 FUN_00063794(int param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if (((*(ushort *)(param_1 + 8) & 0x202) == 0x202) && (*(byte *)(param_1 + 10) == param_2)) {\n    return *(undefined4 *)(param_1 + 0x10);\n  }\n  if ((*(ushort *)(param_1 + 8) & 1) == 0) {\n    uVar1 = FUN_00063350();\n    return uVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00063794(int param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if (((*(ushort *)(param_1 + 8) & 0x202) == 0x202) && (*(byte *)(param_1 + 10) == param_2)) {\n    return *(undefined4 *)(param_1 + 0x10);\n  }\n  if ((*(ushort *)(param_1 + 8) & 1) == 0) {\n    uVar1 = FUN_00063350();\n    return uVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00063794(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if (((*(ushort *)(param_1 + 8) & 0x202) == 0x202) && (*(byte *)(param_1 + 10) == param_2)) {\n    return *(undefined4 *)(param_1 + 0x10);\n  }\n  if ((*(ushort *)(param_1 + 8) & 1) == 0) {\n    uVar1 = FUN_00063350();\n    return uVar1;\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (((*(ushort *)(param_1 + 8) & 0x202) == 0x202) && (*(byte *)(param_1 + 10) == param_2)) {\n    return *(undefined4 *)(param_1 + 0x10);\n  }" if (parenthesized_expression "(((*(ushort *)(param_1 + 8) & 0x202) == 0x202) && (*(byte *)(param_1 + 10) == param_2))" ( (binary_expression "((*(ushort *)(param_1 + 8) & 0x202) == 0x202) && (*(byte *)(param_1 + 10) == param_2)" (parenthesized_expression "((*(ushort *)(param_1 + 8) & 0x202) == 0x202)" ( (binary_expression "(*(ushort *)(param_1 + 8) & 0x202) == 0x202" (parenthesized_expression "(*(ushort *)(param_1 + 8) & 0x202)" ( (binary_expression "*(ushort *)(param_1 + 8) & 0x202" (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) & number_literal) )) == number_literal) )) && (parenthesized_expression "(*(byte *)(param_1 + 10) == param_2)" ( (binary_expression "*(byte *)(param_1 + 10) == param_2" (pointer_expression "*(byte *)(param_1 + 10)" * (cast_expression "(byte *)(param_1 + 10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) )))) == identifier) ))) )) (compound_statement "{\n    return *(undefined4 *)(param_1 + 0x10);\n  }" { (return_statement "return *(undefined4 *)(param_1 + 0x10);" return (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ;) })) (if_statement "if ((*(ushort *)(param_1 + 8) & 1) == 0) {\n    uVar1 = FUN_00063350();\n    return uVar1;\n  }" if (parenthesized_expression "((*(ushort *)(param_1 + 8) & 1) == 0)" ( (binary_expression "(*(ushort *)(param_1 + 8) & 1) == 0" (parenthesized_expression "(*(ushort *)(param_1 + 8) & 1)" ( (binary_expression "*(ushort *)(param_1 + 8) & 1" (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar1 = FUN_00063350();\n    return uVar1;\n  }" { (expression_statement "uVar1 = FUN_00063350();" (assignment_expression "uVar1 = FUN_00063350()" identifier = (call_expression "FUN_00063350()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) ))) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00063794(int param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if (((*(ushort *)(param_1 + 8) & 0x202) == 0x202) && (*(byte *)(param_1 + 10) == param_2)) {\n    return *(undefined4 *)(param_1 + 0x10);\n  }\n  if ((*(ushort *)(param_1 + 8) & 1) == 0) {\n    uVar1 = FUN_00063350();\n    return uVar1;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00063794(int param_1,uint param_2)" (identifier "FUN_00063794") (parameter_list "(int param_1,uint param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if (((*(ushort *)(param_1 + 8) & 0x202) == 0x202) && (*(byte *)(param_1 + 10) == param_2)) {\n    return *(undefined4 *)(param_1 + 0x10);\n  }\n  if ((*(ushort *)(param_1 + 8) & 1) == 0) {\n    uVar1 = FUN_00063350();\n    return uVar1;\n  }\n  return 0;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if (param_1 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (((*(ushort *)(param_1 + 8) & 0x202) == 0x202) && (*(byte *)(param_1 + 10) == param_2)) {\n    return *(undefined4 *)(param_1 + 0x10);\n  }" (if "if") (parenthesized_expression "(((*(ushort *)(param_1 + 8) & 0x202) == 0x202) && (*(byte *)(param_1 + 10) == param_2))" (( "(") (binary_expression "((*(ushort *)(param_1 + 8) & 0x202) == 0x202) && (*(byte *)(param_1 + 10) == param_2)" (parenthesized_expression "((*(ushort *)(param_1 + 8) & 0x202) == 0x202)" (( "(") (binary_expression "(*(ushort *)(param_1 + 8) & 0x202) == 0x202" (parenthesized_expression "(*(ushort *)(param_1 + 8) & 0x202)" (( "(") (binary_expression "*(ushort *)(param_1 + 8) & 0x202" (pointer_expression "*(ushort *)(param_1 + 8)" (* "*") (cast_expression "(ushort *)(param_1 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "0x202")) () ")")) (== "==") (number_literal "0x202")) () ")")) (&& "&&") (parenthesized_expression "(*(byte *)(param_1 + 10) == param_2)" (( "(") (binary_expression "*(byte *)(param_1 + 10) == param_2" (pointer_expression "*(byte *)(param_1 + 10)" (* "*") (cast_expression "(byte *)(param_1 + 10)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 10)" (( "(") (binary_expression "param_1 + 10" (identifier "param_1") (+ "+") (number_literal "10")) () ")")))) (== "==") (identifier "param_2")) () ")"))) () ")")) (compound_statement "{\n    return *(undefined4 *)(param_1 + 0x10);\n  }" ({ "{") (return_statement "return *(undefined4 *)(param_1 + 0x10);" (return "return") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (; ";")) (} "}"))) (if_statement "if ((*(ushort *)(param_1 + 8) & 1) == 0) {\n    uVar1 = FUN_00063350();\n    return uVar1;\n  }" (if "if") (parenthesized_expression "((*(ushort *)(param_1 + 8) & 1) == 0)" (( "(") (binary_expression "(*(ushort *)(param_1 + 8) & 1) == 0" (parenthesized_expression "(*(ushort *)(param_1 + 8) & 1)" (( "(") (binary_expression "*(ushort *)(param_1 + 8) & 1" (pointer_expression "*(ushort *)(param_1 + 8)" (* "*") (cast_expression "(ushort *)(param_1 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = FUN_00063350();\n    return uVar1;\n  }" ({ "{") (expression_statement "uVar1 = FUN_00063350();" (assignment_expression "uVar1 = FUN_00063350()" (identifier "uVar1") (= "=") (call_expression "FUN_00063350()" (identifier "FUN_00063350") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(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: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))) 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: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (return_statement (identifier)))) (return_statement (number_literal)))))

undefined4 MASKED(int param_1,uint param_2)

{
  undefined4 uVar1;
  
  if (param_1 == 0) {
    return 0;
  }
  if (((*(ushort *)(param_1 + 8) & 0x202) == 0x202) && (*(byte *)(param_1 + 10) == param_2)) {
    return *(undefined4 *)(param_1 + 0x10);
  }
  if ((*(ushort *)(param_1 + 8) & 1) == 0) {
    uVar1 = FUN_00063350();
    return uVar1;
  }
  return 0;
}

