
i64 sqlite3VdbeIntValue(Mem *pMem)

{
  ushort uVar1;
  i64 iVar2;
  
  uVar1 = pMem->flags;
  if ((uVar1 & 0x24) != 0) {
    return (pMem->u).i;
  }
  if ((uVar1 & 8) == 0) {
    if (((uVar1 & 0x12) != 0) && (pMem->z != (char *)0x0)) {
      iVar2 = memIntValue(pMem);
      return iVar2;
    }
    return 0;
  }
  iVar2 = doubleToInt64((pMem->u).r);
  return iVar2;
}



undefined4 FUN_0002deb8(undefined8 *param_1)

{
  ushort uVar1;
  undefined4 uVar2;
  
  uVar1 = *(ushort *)(param_1 + 1);
  if ((uVar1 & 0x24) != 0) {
    return *(undefined4 *)param_1;
  }
  if ((uVar1 & 8) == 0) {
    if (((uVar1 & 0x12) != 0) && (*(int *)(param_1 + 2) != 0)) {
      uVar2 = FUN_000223e4();
      return uVar2;
    }
    return 0;
  }
  uVar2 = FUN_00022370(*param_1);
  return uVar2;
}


lui gp,0xd
addiu gp,gp,-0xc18
addu gp,gp,t9
lhu v0,0x8(a0)
andi a1,v0,0x24
bne a1,zero,0x0002df14
_andi a1,v0,0x8
bne a1,zero,0x0002df00
_lw t9,-0x7fd8(gp)
andi v0,v0,0x12
beq v0,zero,0x0002df0c
_or v1,zero,zero
lw v0,0x10(a0)
beq v0,zero,0x0002df0c
_lw t9,-0x7fd8(gp)
addiu t9,t9,0x23e4
b 0x000223e4
_nop
addiu t9,t9,0x2370
b 0x00022370
_ldc1 f12,0x0(a0)
jr ra
_or v0,zero,zero
lw v0,0x0(a0)
jr ra
_lw v1,0x4(a0)
(translation_unit "undefined4 FUN_0002deb8(undefined8 *param_1)\n\n{\n  ushort uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = *(ushort *)(param_1 + 1);\n  if ((uVar1 & 0x24) != 0) {\n    return *(undefined4 *)param_1;\n  }\n  if ((uVar1 & 8) == 0) {\n    if (((uVar1 & 0x12) != 0) && (*(int *)(param_1 + 2) != 0)) {\n      uVar2 = FUN_000223e4();\n      return uVar2;\n    }\n    return 0;\n  }\n  uVar2 = FUN_00022370(*param_1);\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_0002deb8(undefined8 *param_1)\n\n{\n  ushort uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = *(ushort *)(param_1 + 1);\n  if ((uVar1 & 0x24) != 0) {\n    return *(undefined4 *)param_1;\n  }\n  if ((uVar1 & 8) == 0) {\n    if (((uVar1 & 0x12) != 0) && (*(int *)(param_1 + 2) != 0)) {\n      uVar2 = FUN_000223e4();\n      return uVar2;\n    }\n    return 0;\n  }\n  uVar2 = FUN_00022370(*param_1);\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0002deb8(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  ushort uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = *(ushort *)(param_1 + 1);\n  if ((uVar1 & 0x24) != 0) {\n    return *(undefined4 *)param_1;\n  }\n  if ((uVar1 & 8) == 0) {\n    if (((uVar1 & 0x12) != 0) && (*(int *)(param_1 + 2) != 0)) {\n      uVar2 = FUN_000223e4();\n      return uVar2;\n    }\n    return 0;\n  }\n  uVar2 = FUN_00022370(*param_1);\n  return uVar2;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar1 = *(ushort *)(param_1 + 1);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 1)" identifier = (pointer_expression "*(ushort *)(param_1 + 1)" * (cast_expression "(ushort *)(param_1 + 1)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))))) ;) (if_statement "if ((uVar1 & 0x24) != 0) {\n    return *(undefined4 *)param_1;\n  }" if (parenthesized_expression "((uVar1 & 0x24) != 0)" ( (binary_expression "(uVar1 & 0x24) != 0" (parenthesized_expression "(uVar1 & 0x24)" ( (binary_expression "uVar1 & 0x24" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    return *(undefined4 *)param_1;\n  }" { (return_statement "return *(undefined4 *)param_1;" return (pointer_expression "*(undefined4 *)param_1" * (cast_expression "(undefined4 *)param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (if_statement "if ((uVar1 & 8) == 0) {\n    if (((uVar1 & 0x12) != 0) && (*(int *)(param_1 + 2) != 0)) {\n      uVar2 = FUN_000223e4();\n      return uVar2;\n    }\n    return 0;\n  }" if (parenthesized_expression "((uVar1 & 8) == 0)" ( (binary_expression "(uVar1 & 8) == 0" (parenthesized_expression "(uVar1 & 8)" ( (binary_expression "uVar1 & 8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if (((uVar1 & 0x12) != 0) && (*(int *)(param_1 + 2) != 0)) {\n      uVar2 = FUN_000223e4();\n      return uVar2;\n    }\n    return 0;\n  }" { (if_statement "if (((uVar1 & 0x12) != 0) && (*(int *)(param_1 + 2) != 0)) {\n      uVar2 = FUN_000223e4();\n      return uVar2;\n    }" if (parenthesized_expression "(((uVar1 & 0x12) != 0) && (*(int *)(param_1 + 2) != 0))" ( (binary_expression "((uVar1 & 0x12) != 0) && (*(int *)(param_1 + 2) != 0)" (parenthesized_expression "((uVar1 & 0x12) != 0)" ( (binary_expression "(uVar1 & 0x12) != 0" (parenthesized_expression "(uVar1 & 0x12)" ( (binary_expression "uVar1 & 0x12" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 2) != 0)" ( (binary_expression "*(int *)(param_1 + 2) != 0" (pointer_expression "*(int *)(param_1 + 2)" * (cast_expression "(int *)(param_1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n      uVar2 = FUN_000223e4();\n      return uVar2;\n    }" { (expression_statement "uVar2 = FUN_000223e4();" (assignment_expression "uVar2 = FUN_000223e4()" identifier = (call_expression "FUN_000223e4()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar2 = FUN_00022370(*param_1);" (assignment_expression "uVar2 = FUN_00022370(*param_1)" identifier = (call_expression "FUN_00022370(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) )))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "i64 sqlite3VdbeIntValue(Mem *pMem)\n\n{\n  ushort uVar1;\n  i64 iVar2;\n  \n  uVar1 = pMem->flags;\n  if ((uVar1 & 0x24) != 0) {\n    return (pMem->u).i;\n  }\n  if ((uVar1 & 8) == 0) {\n    if (((uVar1 & 0x12) != 0) && (pMem->z != (char *)0x0)) {\n      iVar2 = memIntValue(pMem);\n      return iVar2;\n    }\n    return 0;\n  }\n  iVar2 = doubleToInt64((pMem->u).r);\n  return iVar2;\n}\n\n" (function_definition "i64 sqlite3VdbeIntValue(Mem *pMem)\n\n{\n  ushort uVar1;\n  i64 iVar2;\n  \n  uVar1 = pMem->flags;\n  if ((uVar1 & 0x24) != 0) {\n    return (pMem->u).i;\n  }\n  if ((uVar1 & 8) == 0) {\n    if (((uVar1 & 0x12) != 0) && (pMem->z != (char *)0x0)) {\n      iVar2 = memIntValue(pMem);\n      return iVar2;\n    }\n    return 0;\n  }\n  iVar2 = doubleToInt64((pMem->u).r);\n  return iVar2;\n}" type_identifier (function_declarator "sqlite3VdbeIntValue(Mem *pMem)" identifier (parameter_list "(Mem *pMem)" ( (parameter_declaration "Mem *pMem" type_identifier (pointer_declarator "*pMem" * identifier)) ))) (compound_statement "{\n  ushort uVar1;\n  i64 iVar2;\n  \n  uVar1 = pMem->flags;\n  if ((uVar1 & 0x24) != 0) {\n    return (pMem->u).i;\n  }\n  if ((uVar1 & 8) == 0) {\n    if (((uVar1 & 0x12) != 0) && (pMem->z != (char *)0x0)) {\n      iVar2 = memIntValue(pMem);\n      return iVar2;\n    }\n    return 0;\n  }\n  iVar2 = doubleToInt64((pMem->u).r);\n  return iVar2;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "i64 iVar2;" type_identifier identifier ;) (expression_statement "uVar1 = pMem->flags;" (assignment_expression "uVar1 = pMem->flags" identifier = (field_expression "pMem->flags" identifier -> field_identifier)) ;) (if_statement "if ((uVar1 & 0x24) != 0) {\n    return (pMem->u).i;\n  }" if (parenthesized_expression "((uVar1 & 0x24) != 0)" ( (binary_expression "(uVar1 & 0x24) != 0" (parenthesized_expression "(uVar1 & 0x24)" ( (binary_expression "uVar1 & 0x24" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    return (pMem->u).i;\n  }" { (return_statement "return (pMem->u).i;" return (field_expression "(pMem->u).i" (parenthesized_expression "(pMem->u)" ( (field_expression "pMem->u" identifier -> field_identifier) )) . field_identifier) ;) })) (if_statement "if ((uVar1 & 8) == 0) {\n    if (((uVar1 & 0x12) != 0) && (pMem->z != (char *)0x0)) {\n      iVar2 = memIntValue(pMem);\n      return iVar2;\n    }\n    return 0;\n  }" if (parenthesized_expression "((uVar1 & 8) == 0)" ( (binary_expression "(uVar1 & 8) == 0" (parenthesized_expression "(uVar1 & 8)" ( (binary_expression "uVar1 & 8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if (((uVar1 & 0x12) != 0) && (pMem->z != (char *)0x0)) {\n      iVar2 = memIntValue(pMem);\n      return iVar2;\n    }\n    return 0;\n  }" { (if_statement "if (((uVar1 & 0x12) != 0) && (pMem->z != (char *)0x0)) {\n      iVar2 = memIntValue(pMem);\n      return iVar2;\n    }" if (parenthesized_expression "(((uVar1 & 0x12) != 0) && (pMem->z != (char *)0x0))" ( (binary_expression "((uVar1 & 0x12) != 0) && (pMem->z != (char *)0x0)" (parenthesized_expression "((uVar1 & 0x12) != 0)" ( (binary_expression "(uVar1 & 0x12) != 0" (parenthesized_expression "(uVar1 & 0x12)" ( (binary_expression "uVar1 & 0x12" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(pMem->z != (char *)0x0)" ( (binary_expression "pMem->z != (char *)0x0" (field_expression "pMem->z" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      iVar2 = memIntValue(pMem);\n      return iVar2;\n    }" { (expression_statement "iVar2 = memIntValue(pMem);" (assignment_expression "iVar2 = memIntValue(pMem)" identifier = (call_expression "memIntValue(pMem)" identifier (argument_list "(pMem)" ( identifier )))) ;) (return_statement "return iVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = doubleToInt64((pMem->u).r);" (assignment_expression "iVar2 = doubleToInt64((pMem->u).r)" identifier = (call_expression "doubleToInt64((pMem->u).r)" identifier (argument_list "((pMem->u).r)" ( (field_expression "(pMem->u).r" (parenthesized_expression "(pMem->u)" ( (field_expression "pMem->u" identifier -> field_identifier) )) . field_identifier) )))) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "undefined4 FUN_0002deb8(undefined8 *param_1)\n\n{\n  ushort uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = *(ushort *)(param_1 + 1);\n  if ((uVar1 & 0x24) != 0) {\n    return *(undefined4 *)param_1;\n  }\n  if ((uVar1 & 8) == 0) {\n    if (((uVar1 & 0x12) != 0) && (*(int *)(param_1 + 2) != 0)) {\n      uVar2 = FUN_000223e4();\n      return uVar2;\n    }\n    return 0;\n  }\n  uVar2 = FUN_00022370(*param_1);\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_0002deb8(undefined8 *param_1)\n\n{\n  ushort uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = *(ushort *)(param_1 + 1);\n  if ((uVar1 & 0x24) != 0) {\n    return *(undefined4 *)param_1;\n  }\n  if ((uVar1 & 8) == 0) {\n    if (((uVar1 & 0x12) != 0) && (*(int *)(param_1 + 2) != 0)) {\n      uVar2 = FUN_000223e4();\n      return uVar2;\n    }\n    return 0;\n  }\n  uVar2 = FUN_00022370(*param_1);\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0002deb8(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  ushort uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = *(ushort *)(param_1 + 1);\n  if ((uVar1 & 0x24) != 0) {\n    return *(undefined4 *)param_1;\n  }\n  if ((uVar1 & 8) == 0) {\n    if (((uVar1 & 0x12) != 0) && (*(int *)(param_1 + 2) != 0)) {\n      uVar2 = FUN_000223e4();\n      return uVar2;\n    }\n    return 0;\n  }\n  uVar2 = FUN_00022370(*param_1);\n  return uVar2;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar1 = *(ushort *)(param_1 + 1);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 1)" identifier = (pointer_expression "*(ushort *)(param_1 + 1)" * (cast_expression "(ushort *)(param_1 + 1)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))))) ;) (if_statement "if ((uVar1 & 0x24) != 0) {\n    return *(undefined4 *)param_1;\n  }" if (parenthesized_expression "((uVar1 & 0x24) != 0)" ( (binary_expression "(uVar1 & 0x24) != 0" (parenthesized_expression "(uVar1 & 0x24)" ( (binary_expression "uVar1 & 0x24" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    return *(undefined4 *)param_1;\n  }" { (return_statement "return *(undefined4 *)param_1;" return (pointer_expression "*(undefined4 *)param_1" * (cast_expression "(undefined4 *)param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (if_statement "if ((uVar1 & 8) == 0) {\n    if (((uVar1 & 0x12) != 0) && (*(int *)(param_1 + 2) != 0)) {\n      uVar2 = FUN_000223e4();\n      return uVar2;\n    }\n    return 0;\n  }" if (parenthesized_expression "((uVar1 & 8) == 0)" ( (binary_expression "(uVar1 & 8) == 0" (parenthesized_expression "(uVar1 & 8)" ( (binary_expression "uVar1 & 8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if (((uVar1 & 0x12) != 0) && (*(int *)(param_1 + 2) != 0)) {\n      uVar2 = FUN_000223e4();\n      return uVar2;\n    }\n    return 0;\n  }" { (if_statement "if (((uVar1 & 0x12) != 0) && (*(int *)(param_1 + 2) != 0)) {\n      uVar2 = FUN_000223e4();\n      return uVar2;\n    }" if (parenthesized_expression "(((uVar1 & 0x12) != 0) && (*(int *)(param_1 + 2) != 0))" ( (binary_expression "((uVar1 & 0x12) != 0) && (*(int *)(param_1 + 2) != 0)" (parenthesized_expression "((uVar1 & 0x12) != 0)" ( (binary_expression "(uVar1 & 0x12) != 0" (parenthesized_expression "(uVar1 & 0x12)" ( (binary_expression "uVar1 & 0x12" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 2) != 0)" ( (binary_expression "*(int *)(param_1 + 2) != 0" (pointer_expression "*(int *)(param_1 + 2)" * (cast_expression "(int *)(param_1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n      uVar2 = FUN_000223e4();\n      return uVar2;\n    }" { (expression_statement "uVar2 = FUN_000223e4();" (assignment_expression "uVar2 = FUN_000223e4()" identifier = (call_expression "FUN_000223e4()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar2 = FUN_00022370(*param_1);" (assignment_expression "uVar2 = FUN_00022370(*param_1)" identifier = (call_expression "FUN_00022370(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) )))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (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 IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0002deb8(undefined8 *param_1)\n\n{\n  ushort uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = *(ushort *)(param_1 + 1);\n  if ((uVar1 & 0x24) != 0) {\n    return *(undefined4 *)param_1;\n  }\n  if ((uVar1 & 8) == 0) {\n    if (((uVar1 & 0x12) != 0) && (*(int *)(param_1 + 2) != 0)) {\n      uVar2 = FUN_000223e4();\n      return uVar2;\n    }\n    return 0;\n  }\n  uVar2 = FUN_00022370(*param_1);\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_0002deb8(undefined8 *param_1)" (identifier "FUN_0002deb8") (parameter_list "(undefined8 *param_1)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  ushort uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = *(ushort *)(param_1 + 1);\n  if ((uVar1 & 0x24) != 0) {\n    return *(undefined4 *)param_1;\n  }\n  if ((uVar1 & 8) == 0) {\n    if (((uVar1 & 0x12) != 0) && (*(int *)(param_1 + 2) != 0)) {\n      uVar2 = FUN_000223e4();\n      return uVar2;\n    }\n    return 0;\n  }\n  uVar2 = FUN_00022370(*param_1);\n  return uVar2;\n}" ({ "{") (declaration "ushort uVar1;" (type_identifier "ushort") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "uVar1 = *(ushort *)(param_1 + 1);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 1)" (identifier "uVar1") (= "=") (pointer_expression "*(ushort *)(param_1 + 1)" (* "*") (cast_expression "(ushort *)(param_1 + 1)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (if_statement "if ((uVar1 & 0x24) != 0) {\n    return *(undefined4 *)param_1;\n  }" (if "if") (parenthesized_expression "((uVar1 & 0x24) != 0)" (( "(") (binary_expression "(uVar1 & 0x24) != 0" (parenthesized_expression "(uVar1 & 0x24)" (( "(") (binary_expression "uVar1 & 0x24" (identifier "uVar1") (& "&") (number_literal "0x24")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return *(undefined4 *)param_1;\n  }" ({ "{") (return_statement "return *(undefined4 *)param_1;" (return "return") (pointer_expression "*(undefined4 *)param_1" (* "*") (cast_expression "(undefined4 *)param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1"))) (; ";")) (} "}"))) (if_statement "if ((uVar1 & 8) == 0) {\n    if (((uVar1 & 0x12) != 0) && (*(int *)(param_1 + 2) != 0)) {\n      uVar2 = FUN_000223e4();\n      return uVar2;\n    }\n    return 0;\n  }" (if "if") (parenthesized_expression "((uVar1 & 8) == 0)" (( "(") (binary_expression "(uVar1 & 8) == 0" (parenthesized_expression "(uVar1 & 8)" (( "(") (binary_expression "uVar1 & 8" (identifier "uVar1") (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (((uVar1 & 0x12) != 0) && (*(int *)(param_1 + 2) != 0)) {\n      uVar2 = FUN_000223e4();\n      return uVar2;\n    }\n    return 0;\n  }" ({ "{") (if_statement "if (((uVar1 & 0x12) != 0) && (*(int *)(param_1 + 2) != 0)) {\n      uVar2 = FUN_000223e4();\n      return uVar2;\n    }" (if "if") (parenthesized_expression "(((uVar1 & 0x12) != 0) && (*(int *)(param_1 + 2) != 0))" (( "(") (binary_expression "((uVar1 & 0x12) != 0) && (*(int *)(param_1 + 2) != 0)" (parenthesized_expression "((uVar1 & 0x12) != 0)" (( "(") (binary_expression "(uVar1 & 0x12) != 0" (parenthesized_expression "(uVar1 & 0x12)" (( "(") (binary_expression "uVar1 & 0x12" (identifier "uVar1") (& "&") (number_literal "0x12")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 2) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 2) != 0" (pointer_expression "*(int *)(param_1 + 2)" (* "*") (cast_expression "(int *)(param_1 + 2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      uVar2 = FUN_000223e4();\n      return uVar2;\n    }" ({ "{") (expression_statement "uVar2 = FUN_000223e4();" (assignment_expression "uVar2 = FUN_000223e4()" (identifier "uVar2") (= "=") (call_expression "FUN_000223e4()" (identifier "FUN_000223e4") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar2 = FUN_00022370(*param_1);" (assignment_expression "uVar2 = FUN_00022370(*param_1)" (identifier "uVar2") (= "=") (call_expression "FUN_00022370(*param_1)" (identifier "FUN_00022370") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (return_statement (identifier)))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (return_statement (identifier)))))

undefined4 MASKED(undefined8 *param_1)

{
  ushort uVar1;
  undefined4 uVar2;
  
  uVar1 = *(ushort *)(param_1 + 1);
  if ((uVar1 & 0x24) != 0) {
    return *(undefined4 *)param_1;
  }
  if ((uVar1 & 8) == 0) {
    if (((uVar1 & 0x12) != 0) && (*(int *)(param_1 + 2) != 0)) {
      uVar2 = FUN_000223e4();
      return uVar2;
    }
    return 0;
  }
  uVar2 = FUN_00022370(*param_1);
  return uVar2;
}

