
i64 sqlite3VdbeIntValue(Mem *pMem)

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



undefined8 FUN_0010f3b8(undefined8 *param_1)

{
  ushort uVar1;
  undefined8 uVar2;
  
  uVar1 = *(ushort *)(param_1 + 1);
  if ((uVar1 & 0x24) == 0) {
    if ((uVar1 & 8) == 0) {
      uVar2 = 0;
      if (((uVar1 & 0x12) != 0) && (param_1[2] != 0)) {
        uVar2 = FUN_0010f36b();
      }
    }
    else {
      uVar2 = FUN_0010f337(*param_1);
    }
    return uVar2;
  }
  return *param_1;
}


MOVZX EDX,word ptr [RDI + 0x8]
TEST DL,0x24
JNZ 0x0010f3e2
SUB RSP,0x8
TEST DL,0x8
JNZ 0x0010f3e6
MOV EAX,0x0
TEST DL,0x12
JZ 0x0010f3ef
CMP qword ptr [RDI + 0x10],0x0
JZ 0x0010f3ef
CALL 0x0010f36b
JMP 0x0010f3ef
MOV RAX,qword ptr [RDI]
RET
MOVSD XMM0,qword ptr [RDI]
CALL 0x0010f337
ADD RSP,0x8
RET
(translation_unit "undefined8 FUN_0010f3b8(undefined8 *param_1)\n\n{\n  ushort uVar1;\n  undefined8 uVar2;\n  \n  uVar1 = *(ushort *)(param_1 + 1);\n  if ((uVar1 & 0x24) == 0) {\n    if ((uVar1 & 8) == 0) {\n      uVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (param_1[2] != 0)) {\n        uVar2 = FUN_0010f36b();\n      }\n    }\n    else {\n      uVar2 = FUN_0010f337(*param_1);\n    }\n    return uVar2;\n  }\n  return *param_1;\n}\n\n" (function_definition "undefined8 FUN_0010f3b8(undefined8 *param_1)\n\n{\n  ushort uVar1;\n  undefined8 uVar2;\n  \n  uVar1 = *(ushort *)(param_1 + 1);\n  if ((uVar1 & 0x24) == 0) {\n    if ((uVar1 & 8) == 0) {\n      uVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (param_1[2] != 0)) {\n        uVar2 = FUN_0010f36b();\n      }\n    }\n    else {\n      uVar2 = FUN_0010f337(*param_1);\n    }\n    return uVar2;\n  }\n  return *param_1;\n}" type_identifier (function_declarator "FUN_0010f3b8(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  undefined8 uVar2;\n  \n  uVar1 = *(ushort *)(param_1 + 1);\n  if ((uVar1 & 0x24) == 0) {\n    if ((uVar1 & 8) == 0) {\n      uVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (param_1[2] != 0)) {\n        uVar2 = FUN_0010f36b();\n      }\n    }\n    else {\n      uVar2 = FUN_0010f337(*param_1);\n    }\n    return uVar2;\n  }\n  return *param_1;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "undefined8 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    if ((uVar1 & 8) == 0) {\n      uVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (param_1[2] != 0)) {\n        uVar2 = FUN_0010f36b();\n      }\n    }\n    else {\n      uVar2 = FUN_0010f337(*param_1);\n    }\n    return uVar2;\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    if ((uVar1 & 8) == 0) {\n      uVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (param_1[2] != 0)) {\n        uVar2 = FUN_0010f36b();\n      }\n    }\n    else {\n      uVar2 = FUN_0010f337(*param_1);\n    }\n    return uVar2;\n  }" { (if_statement "if ((uVar1 & 8) == 0) {\n      uVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (param_1[2] != 0)) {\n        uVar2 = FUN_0010f36b();\n      }\n    }\n    else {\n      uVar2 = FUN_0010f337(*param_1);\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      uVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (param_1[2] != 0)) {\n        uVar2 = FUN_0010f36b();\n      }\n    }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (if_statement "if (((uVar1 & 0x12) != 0) && (param_1[2] != 0)) {\n        uVar2 = FUN_0010f36b();\n      }" if (parenthesized_expression "(((uVar1 & 0x12) != 0) && (param_1[2] != 0))" ( (binary_expression "((uVar1 & 0x12) != 0) && (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 "(param_1[2] != 0)" ( (binary_expression "param_1[2] != 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n        uVar2 = FUN_0010f36b();\n      }" { (expression_statement "uVar2 = FUN_0010f36b();" (assignment_expression "uVar2 = FUN_0010f36b()" identifier = (call_expression "FUN_0010f36b()" identifier (argument_list "()" ( )))) ;) })) }) (else_clause "else {\n      uVar2 = FUN_0010f337(*param_1);\n    }" else (compound_statement "{\n      uVar2 = FUN_0010f337(*param_1);\n    }" { (expression_statement "uVar2 = FUN_0010f337(*param_1);" (assignment_expression "uVar2 = FUN_0010f337(*param_1)" identifier = (call_expression "FUN_0010f337(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) )))) ;) }))) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return *param_1;" return (pointer_expression "*param_1" * 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    if ((uVar1 & 8) == 0) {\n      iVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (pMem->z != (char *)0x0)) {\n        iVar2 = memIntValue(pMem);\n      }\n    }\n    else {\n      iVar2 = doubleToInt64((pMem->u).r);\n    }\n    return iVar2;\n  }\n  return (i64)(pMem->u).r;\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    if ((uVar1 & 8) == 0) {\n      iVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (pMem->z != (char *)0x0)) {\n        iVar2 = memIntValue(pMem);\n      }\n    }\n    else {\n      iVar2 = doubleToInt64((pMem->u).r);\n    }\n    return iVar2;\n  }\n  return (i64)(pMem->u).r;\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    if ((uVar1 & 8) == 0) {\n      iVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (pMem->z != (char *)0x0)) {\n        iVar2 = memIntValue(pMem);\n      }\n    }\n    else {\n      iVar2 = doubleToInt64((pMem->u).r);\n    }\n    return iVar2;\n  }\n  return (i64)(pMem->u).r;\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    if ((uVar1 & 8) == 0) {\n      iVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (pMem->z != (char *)0x0)) {\n        iVar2 = memIntValue(pMem);\n      }\n    }\n    else {\n      iVar2 = doubleToInt64((pMem->u).r);\n    }\n    return iVar2;\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    if ((uVar1 & 8) == 0) {\n      iVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (pMem->z != (char *)0x0)) {\n        iVar2 = memIntValue(pMem);\n      }\n    }\n    else {\n      iVar2 = doubleToInt64((pMem->u).r);\n    }\n    return iVar2;\n  }" { (if_statement "if ((uVar1 & 8) == 0) {\n      iVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (pMem->z != (char *)0x0)) {\n        iVar2 = memIntValue(pMem);\n      }\n    }\n    else {\n      iVar2 = doubleToInt64((pMem->u).r);\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      iVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (pMem->z != (char *)0x0)) {\n        iVar2 = memIntValue(pMem);\n      }\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (((uVar1 & 0x12) != 0) && (pMem->z != (char *)0x0)) {\n        iVar2 = memIntValue(pMem);\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      }" { (expression_statement "iVar2 = memIntValue(pMem);" (assignment_expression "iVar2 = memIntValue(pMem)" identifier = (call_expression "memIntValue(pMem)" identifier (argument_list "(pMem)" ( identifier )))) ;) })) }) (else_clause "else {\n      iVar2 = doubleToInt64((pMem->u).r);\n    }" else (compound_statement "{\n      iVar2 = doubleToInt64((pMem->u).r);\n    }" { (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 ;) })) (return_statement "return (i64)(pMem->u).r;" return (field_expression "(i64)(pMem->u).r" (call_expression "(i64)(pMem->u)" (parenthesized_expression "(i64)" ( identifier )) (argument_list "(pMem->u)" ( (field_expression "pMem->u" identifier -> field_identifier) ))) . field_identifier) ;) })))
(translation_unit "undefined8 FUN_0010f3b8(undefined8 *param_1)\n\n{\n  ushort uVar1;\n  undefined8 uVar2;\n  \n  uVar1 = *(ushort *)(param_1 + 1);\n  if ((uVar1 & 0x24) == 0) {\n    if ((uVar1 & 8) == 0) {\n      uVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (param_1[2] != 0)) {\n        uVar2 = FUN_0010f36b();\n      }\n    }\n    else {\n      uVar2 = FUN_0010f337(*param_1);\n    }\n    return uVar2;\n  }\n  return *param_1;\n}\n\n" (function_definition "undefined8 FUN_0010f3b8(undefined8 *param_1)\n\n{\n  ushort uVar1;\n  undefined8 uVar2;\n  \n  uVar1 = *(ushort *)(param_1 + 1);\n  if ((uVar1 & 0x24) == 0) {\n    if ((uVar1 & 8) == 0) {\n      uVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (param_1[2] != 0)) {\n        uVar2 = FUN_0010f36b();\n      }\n    }\n    else {\n      uVar2 = FUN_0010f337(*param_1);\n    }\n    return uVar2;\n  }\n  return *param_1;\n}" type_identifier (function_declarator "FUN_0010f3b8(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  undefined8 uVar2;\n  \n  uVar1 = *(ushort *)(param_1 + 1);\n  if ((uVar1 & 0x24) == 0) {\n    if ((uVar1 & 8) == 0) {\n      uVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (param_1[2] != 0)) {\n        uVar2 = FUN_0010f36b();\n      }\n    }\n    else {\n      uVar2 = FUN_0010f337(*param_1);\n    }\n    return uVar2;\n  }\n  return *param_1;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "undefined8 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    if ((uVar1 & 8) == 0) {\n      uVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (param_1[2] != 0)) {\n        uVar2 = FUN_0010f36b();\n      }\n    }\n    else {\n      uVar2 = FUN_0010f337(*param_1);\n    }\n    return uVar2;\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    if ((uVar1 & 8) == 0) {\n      uVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (param_1[2] != 0)) {\n        uVar2 = FUN_0010f36b();\n      }\n    }\n    else {\n      uVar2 = FUN_0010f337(*param_1);\n    }\n    return uVar2;\n  }" { (if_statement "if ((uVar1 & 8) == 0) {\n      uVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (param_1[2] != 0)) {\n        uVar2 = FUN_0010f36b();\n      }\n    }\n    else {\n      uVar2 = FUN_0010f337(*param_1);\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      uVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (param_1[2] != 0)) {\n        uVar2 = FUN_0010f36b();\n      }\n    }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (if_statement "if (((uVar1 & 0x12) != 0) && (param_1[2] != 0)) {\n        uVar2 = FUN_0010f36b();\n      }" if (parenthesized_expression "(((uVar1 & 0x12) != 0) && (param_1[2] != 0))" ( (binary_expression "((uVar1 & 0x12) != 0) && (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 "(param_1[2] != 0)" ( (binary_expression "param_1[2] != 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n        uVar2 = FUN_0010f36b();\n      }" { (expression_statement "uVar2 = FUN_0010f36b();" (assignment_expression "uVar2 = FUN_0010f36b()" identifier = (call_expression "FUN_0010f36b()" identifier (argument_list "()" ( )))) ;) })) }) (else_clause "else {\n      uVar2 = FUN_0010f337(*param_1);\n    }" else (compound_statement "{\n      uVar2 = FUN_0010f337(*param_1);\n    }" { (expression_statement "uVar2 = FUN_0010f337(*param_1);" (assignment_expression "uVar2 = FUN_0010f337(*param_1)" identifier = (call_expression "FUN_0010f337(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) )))) ;) }))) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return *param_1;" return (pointer_expression "*param_1" * 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 { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) }))) (return_statement return IDENT ;) })) (return_statement return (pointer_expression * IDENT) ;) })))
(function_definition "undefined8 FUN_0010f3b8(undefined8 *param_1)\n\n{\n  ushort uVar1;\n  undefined8 uVar2;\n  \n  uVar1 = *(ushort *)(param_1 + 1);\n  if ((uVar1 & 0x24) == 0) {\n    if ((uVar1 & 8) == 0) {\n      uVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (param_1[2] != 0)) {\n        uVar2 = FUN_0010f36b();\n      }\n    }\n    else {\n      uVar2 = FUN_0010f337(*param_1);\n    }\n    return uVar2;\n  }\n  return *param_1;\n}" (type_identifier "undefined8") (function_declarator "FUN_0010f3b8(undefined8 *param_1)" (identifier "FUN_0010f3b8") (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  undefined8 uVar2;\n  \n  uVar1 = *(ushort *)(param_1 + 1);\n  if ((uVar1 & 0x24) == 0) {\n    if ((uVar1 & 8) == 0) {\n      uVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (param_1[2] != 0)) {\n        uVar2 = FUN_0010f36b();\n      }\n    }\n    else {\n      uVar2 = FUN_0010f337(*param_1);\n    }\n    return uVar2;\n  }\n  return *param_1;\n}" ({ "{") (declaration "ushort uVar1;" (type_identifier "ushort") (identifier "uVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (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    if ((uVar1 & 8) == 0) {\n      uVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (param_1[2] != 0)) {\n        uVar2 = FUN_0010f36b();\n      }\n    }\n    else {\n      uVar2 = FUN_0010f337(*param_1);\n    }\n    return uVar2;\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    if ((uVar1 & 8) == 0) {\n      uVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (param_1[2] != 0)) {\n        uVar2 = FUN_0010f36b();\n      }\n    }\n    else {\n      uVar2 = FUN_0010f337(*param_1);\n    }\n    return uVar2;\n  }" ({ "{") (if_statement "if ((uVar1 & 8) == 0) {\n      uVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (param_1[2] != 0)) {\n        uVar2 = FUN_0010f36b();\n      }\n    }\n    else {\n      uVar2 = FUN_0010f337(*param_1);\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      uVar2 = 0;\n      if (((uVar1 & 0x12) != 0) && (param_1[2] != 0)) {\n        uVar2 = FUN_0010f36b();\n      }\n    }" ({ "{") (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (if_statement "if (((uVar1 & 0x12) != 0) && (param_1[2] != 0)) {\n        uVar2 = FUN_0010f36b();\n      }" (if "if") (parenthesized_expression "(((uVar1 & 0x12) != 0) && (param_1[2] != 0))" (( "(") (binary_expression "((uVar1 & 0x12) != 0) && (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 "(param_1[2] != 0)" (( "(") (binary_expression "param_1[2] != 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        uVar2 = FUN_0010f36b();\n      }" ({ "{") (expression_statement "uVar2 = FUN_0010f36b();" (assignment_expression "uVar2 = FUN_0010f36b()" (identifier "uVar2") (= "=") (call_expression "FUN_0010f36b()" (identifier "FUN_0010f36b") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      uVar2 = FUN_0010f337(*param_1);\n    }" (else "else") (compound_statement "{\n      uVar2 = FUN_0010f337(*param_1);\n    }" ({ "{") (expression_statement "uVar2 = FUN_0010f337(*param_1);" (assignment_expression "uVar2 = FUN_0010f337(*param_1)" (identifier "uVar2") (= "=") (call_expression "FUN_0010f337(*param_1)" (identifier "FUN_0010f337") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")")))) (; ";")) (} "}")))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (return_statement "return *param_1;" (return "return") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (; ";")) (} "}")))

type_1 function_1(type_2 *pMem)

{
  type_3 var_1;
  type_1 iVar2;
  
  var_1 = pMem->flags;
  if ((var_1 & 0x24) == 0) {
    if ((var_1 & 8) == 0) {
      iVar2 = 0;
      if (((var_1 & 0x12) != 0) && (pMem->z != (char *)0x0)) {
        iVar2 = var_2(pMem);
      }
    }
    else {
      iVar2 = var_3((pMem->u).r);
    }
    return iVar2;
  }
  return (type_1)(pMem->u).r;
}


(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 (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))))))) (return_statement (identifier)))) (return_statement (pointer_expression argument: (identifier))))))

undefined8 MASKED(undefined8 *param_1)

{
  ushort uVar1;
  undefined8 uVar2;
  
  uVar1 = *(ushort *)(param_1 + 1);
  if ((uVar1 & 0x24) == 0) {
    if ((uVar1 & 8) == 0) {
      uVar2 = 0;
      if (((uVar1 & 0x12) != 0) && (param_1[2] != 0)) {
        uVar2 = FUN_0010f36b();
      }
    }
    else {
      uVar2 = FUN_0010f337(*param_1);
    }
    return uVar2;
  }
  return *param_1;
}

