
/* WARNING: Unknown calling convention */

int sqlite3_errcode(sqlite3 *db)

{
  u32 uVar1;
  int iVar2;
  sqlite3 *in_stack_fffffff4;
  
  if (db != (sqlite3 *)0x0) {
    uVar1 = db->magic;
    if ((uVar1 != 0x4b771290 && uVar1 != 0xa029a697) && (uVar1 != 0xf03b7906)) {
      iVar2 = sqlite3SafetyCheckSickOrOk(in_stack_fffffff4);
      if (iVar2 == 0) {
        iVar2 = sqlite3MisuseError(0x26223);
        return iVar2;
      }
    }
    if (db->mallocFailed == '\0') {
      return db->errCode & db->errMask;
    }
  }
  return 7;
}



uint FUN_000573f0(int param_1)

{
  int iVar1;
  uint uVar2;
  
  if (param_1 != 0) {
    iVar1 = *(int *)(param_1 + 0x5c);
    if ((iVar1 != 0x4b771290 && iVar1 != -0x5fd65969) && (iVar1 != -0xfc486fa)) {
      iVar1 = FUN_000573c0();
      if (iVar1 == 0) {
        uVar2 = FUN_00052440();
        return uVar2;
      }
    }
    if (*(char *)(param_1 + 0x4d) == '\0') {
      return *(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40);
    }
  }
  return 7;
}


PUSH EBX
SUB ESP,0x8
MOV EBX,dword ptr [ESP + 0x10]
TEST EBX,EBX
JZ 0x00057438
MOV EAX,dword ptr [EBX + 0x5c]
CMP EAX,0x4b771290
SETNZ CL
CMP EAX,0xa029a697
SETNZ DL
TEST CL,DL
JZ 0x00057423
CMP EAX,0xf03b7906
JZ 0x00057423
CALL 0x000573c0
TEST EAX,EAX
JZ 0x00057448
CMP byte ptr [EBX + 0x4d],0x0
JNZ 0x00057438
MOV EAX,dword ptr [EBX + 0x3c]
AND EAX,dword ptr [EBX + 0x40]
ADD ESP,0x8
POP EBX
RET
ADD ESP,0x8
MOV EAX,0x7
POP EBX
RET
ADD ESP,0x8
MOV EAX,0x26223
POP EBX
JMP 0x00052440
(translation_unit "uint FUN_000573f0(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  if (param_1 != 0) {\n    iVar1 = *(int *)(param_1 + 0x5c);\n    if ((iVar1 != 0x4b771290 && iVar1 != -0x5fd65969) && (iVar1 != -0xfc486fa)) {\n      iVar1 = FUN_000573c0();\n      if (iVar1 == 0) {\n        uVar2 = FUN_00052440();\n        return uVar2;\n      }\n    }\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      return *(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40);\n    }\n  }\n  return 7;\n}\n\n" (function_definition "uint FUN_000573f0(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  if (param_1 != 0) {\n    iVar1 = *(int *)(param_1 + 0x5c);\n    if ((iVar1 != 0x4b771290 && iVar1 != -0x5fd65969) && (iVar1 != -0xfc486fa)) {\n      iVar1 = FUN_000573c0();\n      if (iVar1 == 0) {\n        uVar2 = FUN_00052440();\n        return uVar2;\n      }\n    }\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      return *(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40);\n    }\n  }\n  return 7;\n}" type_identifier (function_declarator "FUN_000573f0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  if (param_1 != 0) {\n    iVar1 = *(int *)(param_1 + 0x5c);\n    if ((iVar1 != 0x4b771290 && iVar1 != -0x5fd65969) && (iVar1 != -0xfc486fa)) {\n      iVar1 = FUN_000573c0();\n      if (iVar1 == 0) {\n        uVar2 = FUN_00052440();\n        return uVar2;\n      }\n    }\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      return *(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40);\n    }\n  }\n  return 7;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (if_statement "if (param_1 != 0) {\n    iVar1 = *(int *)(param_1 + 0x5c);\n    if ((iVar1 != 0x4b771290 && iVar1 != -0x5fd65969) && (iVar1 != -0xfc486fa)) {\n      iVar1 = FUN_000573c0();\n      if (iVar1 == 0) {\n        uVar2 = FUN_00052440();\n        return uVar2;\n      }\n    }\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      return *(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40);\n    }\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x5c);\n    if ((iVar1 != 0x4b771290 && iVar1 != -0x5fd65969) && (iVar1 != -0xfc486fa)) {\n      iVar1 = FUN_000573c0();\n      if (iVar1 == 0) {\n        uVar2 = FUN_00052440();\n        return uVar2;\n      }\n    }\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      return *(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40);\n    }\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x5c)" identifier = (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (if_statement "if ((iVar1 != 0x4b771290 && iVar1 != -0x5fd65969) && (iVar1 != -0xfc486fa)) {\n      iVar1 = FUN_000573c0();\n      if (iVar1 == 0) {\n        uVar2 = FUN_00052440();\n        return uVar2;\n      }\n    }" if (parenthesized_expression "((iVar1 != 0x4b771290 && iVar1 != -0x5fd65969) && (iVar1 != -0xfc486fa))" ( (binary_expression "(iVar1 != 0x4b771290 && iVar1 != -0x5fd65969) && (iVar1 != -0xfc486fa)" (parenthesized_expression "(iVar1 != 0x4b771290 && iVar1 != -0x5fd65969)" ( (binary_expression "iVar1 != 0x4b771290 && iVar1 != -0x5fd65969" (binary_expression "iVar1 != 0x4b771290" identifier != number_literal) && (binary_expression "iVar1 != -0x5fd65969" identifier != number_literal)) )) && (parenthesized_expression "(iVar1 != -0xfc486fa)" ( (binary_expression "iVar1 != -0xfc486fa" identifier != number_literal) ))) )) (compound_statement "{\n      iVar1 = FUN_000573c0();\n      if (iVar1 == 0) {\n        uVar2 = FUN_00052440();\n        return uVar2;\n      }\n    }" { (expression_statement "iVar1 = FUN_000573c0();" (assignment_expression "iVar1 = FUN_000573c0()" identifier = (call_expression "FUN_000573c0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n        uVar2 = FUN_00052440();\n        return uVar2;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar2 = FUN_00052440();\n        return uVar2;\n      }" { (expression_statement "uVar2 = FUN_00052440();" (assignment_expression "uVar2 = FUN_00052440()" identifier = (call_expression "FUN_00052440()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) })) (if_statement "if (*(char *)(param_1 + 0x4d) == '\0') {\n      return *(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40);\n    }" if (parenthesized_expression "(*(char *)(param_1 + 0x4d) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x4d) == '\0'" (pointer_expression "*(char *)(param_1 + 0x4d)" * (cast_expression "(char *)(param_1 + 0x4d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4d)" ( (binary_expression "param_1 + 0x4d" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return *(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40);\n    }" { (return_statement "return *(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40);" return (binary_expression "*(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40)" (pointer_expression "*(uint *)(param_1 + 0x3c)" * (cast_expression "(uint *)(param_1 + 0x3c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) & (pointer_expression "*(uint *)(param_1 + 0x40)" * (cast_expression "(uint *)(param_1 + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) ;) })) })) (return_statement "return 7;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint sqlite3_errcode(sqlite3 *db)\n\n{\n  u32 uVar1;\n  int iVar2;\n  sqlite3 *in_stack_fffffff4;\n  \n  if (db != (sqlite3 *)0x0) {\n    uVar1 = db->magic;\n    if ((uVar1 != 0x4b771290 && uVar1 != 0xa029a697) && (uVar1 != 0xf03b7906)) {\n      iVar2 = sqlite3SafetyCheckSickOrOk(in_stack_fffffff4);\n      if (iVar2 == 0) {\n        iVar2 = sqlite3MisuseError(0x26223);\n        return iVar2;\n      }\n    }\n    if (db->mallocFailed == '\0') {\n      return db->errCode & db->errMask;\n    }\n  }\n  return 7;\n}\n\n" comment (function_definition "int sqlite3_errcode(sqlite3 *db)\n\n{\n  u32 uVar1;\n  int iVar2;\n  sqlite3 *in_stack_fffffff4;\n  \n  if (db != (sqlite3 *)0x0) {\n    uVar1 = db->magic;\n    if ((uVar1 != 0x4b771290 && uVar1 != 0xa029a697) && (uVar1 != 0xf03b7906)) {\n      iVar2 = sqlite3SafetyCheckSickOrOk(in_stack_fffffff4);\n      if (iVar2 == 0) {\n        iVar2 = sqlite3MisuseError(0x26223);\n        return iVar2;\n      }\n    }\n    if (db->mallocFailed == '\0') {\n      return db->errCode & db->errMask;\n    }\n  }\n  return 7;\n}" primitive_type (function_declarator "sqlite3_errcode(sqlite3 *db)" identifier (parameter_list "(sqlite3 *db)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) ))) (compound_statement "{\n  u32 uVar1;\n  int iVar2;\n  sqlite3 *in_stack_fffffff4;\n  \n  if (db != (sqlite3 *)0x0) {\n    uVar1 = db->magic;\n    if ((uVar1 != 0x4b771290 && uVar1 != 0xa029a697) && (uVar1 != 0xf03b7906)) {\n      iVar2 = sqlite3SafetyCheckSickOrOk(in_stack_fffffff4);\n      if (iVar2 == 0) {\n        iVar2 = sqlite3MisuseError(0x26223);\n        return iVar2;\n      }\n    }\n    if (db->mallocFailed == '\0') {\n      return db->errCode & db->errMask;\n    }\n  }\n  return 7;\n}" { (declaration "u32 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "sqlite3 *in_stack_fffffff4;" type_identifier (pointer_declarator "*in_stack_fffffff4" * identifier) ;) (if_statement "if (db != (sqlite3 *)0x0) {\n    uVar1 = db->magic;\n    if ((uVar1 != 0x4b771290 && uVar1 != 0xa029a697) && (uVar1 != 0xf03b7906)) {\n      iVar2 = sqlite3SafetyCheckSickOrOk(in_stack_fffffff4);\n      if (iVar2 == 0) {\n        iVar2 = sqlite3MisuseError(0x26223);\n        return iVar2;\n      }\n    }\n    if (db->mallocFailed == '\0') {\n      return db->errCode & db->errMask;\n    }\n  }" if (parenthesized_expression "(db != (sqlite3 *)0x0)" ( (binary_expression "db != (sqlite3 *)0x0" identifier != (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar1 = db->magic;\n    if ((uVar1 != 0x4b771290 && uVar1 != 0xa029a697) && (uVar1 != 0xf03b7906)) {\n      iVar2 = sqlite3SafetyCheckSickOrOk(in_stack_fffffff4);\n      if (iVar2 == 0) {\n        iVar2 = sqlite3MisuseError(0x26223);\n        return iVar2;\n      }\n    }\n    if (db->mallocFailed == '\0') {\n      return db->errCode & db->errMask;\n    }\n  }" { (expression_statement "uVar1 = db->magic;" (assignment_expression "uVar1 = db->magic" identifier = (field_expression "db->magic" identifier -> field_identifier)) ;) (if_statement "if ((uVar1 != 0x4b771290 && uVar1 != 0xa029a697) && (uVar1 != 0xf03b7906)) {\n      iVar2 = sqlite3SafetyCheckSickOrOk(in_stack_fffffff4);\n      if (iVar2 == 0) {\n        iVar2 = sqlite3MisuseError(0x26223);\n        return iVar2;\n      }\n    }" if (parenthesized_expression "((uVar1 != 0x4b771290 && uVar1 != 0xa029a697) && (uVar1 != 0xf03b7906))" ( (binary_expression "(uVar1 != 0x4b771290 && uVar1 != 0xa029a697) && (uVar1 != 0xf03b7906)" (parenthesized_expression "(uVar1 != 0x4b771290 && uVar1 != 0xa029a697)" ( (binary_expression "uVar1 != 0x4b771290 && uVar1 != 0xa029a697" (binary_expression "uVar1 != 0x4b771290" identifier != number_literal) && (binary_expression "uVar1 != 0xa029a697" identifier != number_literal)) )) && (parenthesized_expression "(uVar1 != 0xf03b7906)" ( (binary_expression "uVar1 != 0xf03b7906" identifier != number_literal) ))) )) (compound_statement "{\n      iVar2 = sqlite3SafetyCheckSickOrOk(in_stack_fffffff4);\n      if (iVar2 == 0) {\n        iVar2 = sqlite3MisuseError(0x26223);\n        return iVar2;\n      }\n    }" { (expression_statement "iVar2 = sqlite3SafetyCheckSickOrOk(in_stack_fffffff4);" (assignment_expression "iVar2 = sqlite3SafetyCheckSickOrOk(in_stack_fffffff4)" identifier = (call_expression "sqlite3SafetyCheckSickOrOk(in_stack_fffffff4)" identifier (argument_list "(in_stack_fffffff4)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n        iVar2 = sqlite3MisuseError(0x26223);\n        return iVar2;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar2 = sqlite3MisuseError(0x26223);\n        return iVar2;\n      }" { (expression_statement "iVar2 = sqlite3MisuseError(0x26223);" (assignment_expression "iVar2 = sqlite3MisuseError(0x26223)" identifier = (call_expression "sqlite3MisuseError(0x26223)" identifier (argument_list "(0x26223)" ( number_literal )))) ;) (return_statement "return iVar2;" return identifier ;) })) })) (if_statement "if (db->mallocFailed == '\0') {\n      return db->errCode & db->errMask;\n    }" if (parenthesized_expression "(db->mallocFailed == '\0')" ( (binary_expression "db->mallocFailed == '\0'" (field_expression "db->mallocFailed" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return db->errCode & db->errMask;\n    }" { (return_statement "return db->errCode & db->errMask;" return (binary_expression "db->errCode & db->errMask" (field_expression "db->errCode" identifier -> field_identifier) & (field_expression "db->errMask" identifier -> field_identifier)) ;) })) })) (return_statement "return 7;" return number_literal ;) })))
(translation_unit "uint FUN_000573f0(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  if (param_1 != 0) {\n    iVar1 = *(int *)(param_1 + 0x5c);\n    if ((iVar1 != 0x4b771290 && iVar1 != -0x5fd65969) && (iVar1 != -0xfc486fa)) {\n      iVar1 = FUN_000573c0();\n      if (iVar1 == 0) {\n        uVar2 = FUN_00052440();\n        return uVar2;\n      }\n    }\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      return *(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40);\n    }\n  }\n  return 7;\n}\n\n" (function_definition "uint FUN_000573f0(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  if (param_1 != 0) {\n    iVar1 = *(int *)(param_1 + 0x5c);\n    if ((iVar1 != 0x4b771290 && iVar1 != -0x5fd65969) && (iVar1 != -0xfc486fa)) {\n      iVar1 = FUN_000573c0();\n      if (iVar1 == 0) {\n        uVar2 = FUN_00052440();\n        return uVar2;\n      }\n    }\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      return *(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40);\n    }\n  }\n  return 7;\n}" type_identifier (function_declarator "FUN_000573f0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  if (param_1 != 0) {\n    iVar1 = *(int *)(param_1 + 0x5c);\n    if ((iVar1 != 0x4b771290 && iVar1 != -0x5fd65969) && (iVar1 != -0xfc486fa)) {\n      iVar1 = FUN_000573c0();\n      if (iVar1 == 0) {\n        uVar2 = FUN_00052440();\n        return uVar2;\n      }\n    }\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      return *(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40);\n    }\n  }\n  return 7;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (if_statement "if (param_1 != 0) {\n    iVar1 = *(int *)(param_1 + 0x5c);\n    if ((iVar1 != 0x4b771290 && iVar1 != -0x5fd65969) && (iVar1 != -0xfc486fa)) {\n      iVar1 = FUN_000573c0();\n      if (iVar1 == 0) {\n        uVar2 = FUN_00052440();\n        return uVar2;\n      }\n    }\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      return *(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40);\n    }\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x5c);\n    if ((iVar1 != 0x4b771290 && iVar1 != -0x5fd65969) && (iVar1 != -0xfc486fa)) {\n      iVar1 = FUN_000573c0();\n      if (iVar1 == 0) {\n        uVar2 = FUN_00052440();\n        return uVar2;\n      }\n    }\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      return *(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40);\n    }\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x5c)" identifier = (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (if_statement "if ((iVar1 != 0x4b771290 && iVar1 != -0x5fd65969) && (iVar1 != -0xfc486fa)) {\n      iVar1 = FUN_000573c0();\n      if (iVar1 == 0) {\n        uVar2 = FUN_00052440();\n        return uVar2;\n      }\n    }" if (parenthesized_expression "((iVar1 != 0x4b771290 && iVar1 != -0x5fd65969) && (iVar1 != -0xfc486fa))" ( (binary_expression "(iVar1 != 0x4b771290 && iVar1 != -0x5fd65969) && (iVar1 != -0xfc486fa)" (parenthesized_expression "(iVar1 != 0x4b771290 && iVar1 != -0x5fd65969)" ( (binary_expression "iVar1 != 0x4b771290 && iVar1 != -0x5fd65969" (binary_expression "iVar1 != 0x4b771290" identifier != number_literal) && (binary_expression "iVar1 != -0x5fd65969" identifier != number_literal)) )) && (parenthesized_expression "(iVar1 != -0xfc486fa)" ( (binary_expression "iVar1 != -0xfc486fa" identifier != number_literal) ))) )) (compound_statement "{\n      iVar1 = FUN_000573c0();\n      if (iVar1 == 0) {\n        uVar2 = FUN_00052440();\n        return uVar2;\n      }\n    }" { (expression_statement "iVar1 = FUN_000573c0();" (assignment_expression "iVar1 = FUN_000573c0()" identifier = (call_expression "FUN_000573c0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n        uVar2 = FUN_00052440();\n        return uVar2;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar2 = FUN_00052440();\n        return uVar2;\n      }" { (expression_statement "uVar2 = FUN_00052440();" (assignment_expression "uVar2 = FUN_00052440()" identifier = (call_expression "FUN_00052440()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) })) (if_statement "if (*(char *)(param_1 + 0x4d) == '\0') {\n      return *(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40);\n    }" if (parenthesized_expression "(*(char *)(param_1 + 0x4d) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x4d) == '\0'" (pointer_expression "*(char *)(param_1 + 0x4d)" * (cast_expression "(char *)(param_1 + 0x4d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4d)" ( (binary_expression "param_1 + 0x4d" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return *(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40);\n    }" { (return_statement "return *(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40);" return (binary_expression "*(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40)" (pointer_expression "*(uint *)(param_1 + 0x3c)" * (cast_expression "(uint *)(param_1 + 0x3c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) & (pointer_expression "*(uint *)(param_1 + 0x40)" * (cast_expression "(uint *)(param_1 + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) ;) })) })) (return_statement "return 7;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (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 (binary_expression IDENT != LIT) && (binary_expression IDENT != LIT)) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) })) (return_statement return LIT ;) })))
(function_definition "uint FUN_000573f0(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  if (param_1 != 0) {\n    iVar1 = *(int *)(param_1 + 0x5c);\n    if ((iVar1 != 0x4b771290 && iVar1 != -0x5fd65969) && (iVar1 != -0xfc486fa)) {\n      iVar1 = FUN_000573c0();\n      if (iVar1 == 0) {\n        uVar2 = FUN_00052440();\n        return uVar2;\n      }\n    }\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      return *(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40);\n    }\n  }\n  return 7;\n}" (type_identifier "uint") (function_declarator "FUN_000573f0(int param_1)" (identifier "FUN_000573f0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  if (param_1 != 0) {\n    iVar1 = *(int *)(param_1 + 0x5c);\n    if ((iVar1 != 0x4b771290 && iVar1 != -0x5fd65969) && (iVar1 != -0xfc486fa)) {\n      iVar1 = FUN_000573c0();\n      if (iVar1 == 0) {\n        uVar2 = FUN_00052440();\n        return uVar2;\n      }\n    }\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      return *(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40);\n    }\n  }\n  return 7;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (if_statement "if (param_1 != 0) {\n    iVar1 = *(int *)(param_1 + 0x5c);\n    if ((iVar1 != 0x4b771290 && iVar1 != -0x5fd65969) && (iVar1 != -0xfc486fa)) {\n      iVar1 = FUN_000573c0();\n      if (iVar1 == 0) {\n        uVar2 = FUN_00052440();\n        return uVar2;\n      }\n    }\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      return *(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40);\n    }\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x5c);\n    if ((iVar1 != 0x4b771290 && iVar1 != -0x5fd65969) && (iVar1 != -0xfc486fa)) {\n      iVar1 = FUN_000573c0();\n      if (iVar1 == 0) {\n        uVar2 = FUN_00052440();\n        return uVar2;\n      }\n    }\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      return *(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40);\n    }\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x5c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x5c)" (* "*") (cast_expression "(int *)(param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")"))))) (; ";")) (if_statement "if ((iVar1 != 0x4b771290 && iVar1 != -0x5fd65969) && (iVar1 != -0xfc486fa)) {\n      iVar1 = FUN_000573c0();\n      if (iVar1 == 0) {\n        uVar2 = FUN_00052440();\n        return uVar2;\n      }\n    }" (if "if") (parenthesized_expression "((iVar1 != 0x4b771290 && iVar1 != -0x5fd65969) && (iVar1 != -0xfc486fa))" (( "(") (binary_expression "(iVar1 != 0x4b771290 && iVar1 != -0x5fd65969) && (iVar1 != -0xfc486fa)" (parenthesized_expression "(iVar1 != 0x4b771290 && iVar1 != -0x5fd65969)" (( "(") (binary_expression "iVar1 != 0x4b771290 && iVar1 != -0x5fd65969" (binary_expression "iVar1 != 0x4b771290" (identifier "iVar1") (!= "!=") (number_literal "0x4b771290")) (&& "&&") (binary_expression "iVar1 != -0x5fd65969" (identifier "iVar1") (!= "!=") (number_literal "-0x5fd65969"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 != -0xfc486fa)" (( "(") (binary_expression "iVar1 != -0xfc486fa" (identifier "iVar1") (!= "!=") (number_literal "-0xfc486fa")) () ")"))) () ")")) (compound_statement "{\n      iVar1 = FUN_000573c0();\n      if (iVar1 == 0) {\n        uVar2 = FUN_00052440();\n        return uVar2;\n      }\n    }" ({ "{") (expression_statement "iVar1 = FUN_000573c0();" (assignment_expression "iVar1 = FUN_000573c0()" (identifier "iVar1") (= "=") (call_expression "FUN_000573c0()" (identifier "FUN_000573c0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n        uVar2 = FUN_00052440();\n        return uVar2;\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar2 = FUN_00052440();\n        return uVar2;\n      }" ({ "{") (expression_statement "uVar2 = FUN_00052440();" (assignment_expression "uVar2 = FUN_00052440()" (identifier "uVar2") (= "=") (call_expression "FUN_00052440()" (identifier "FUN_00052440") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (} "}"))) (if_statement "if (*(char *)(param_1 + 0x4d) == '\0') {\n      return *(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40);\n    }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x4d) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x4d) == '\0'" (pointer_expression "*(char *)(param_1 + 0x4d)" (* "*") (cast_expression "(char *)(param_1 + 0x4d)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4d)" (( "(") (binary_expression "param_1 + 0x4d" (identifier "param_1") (+ "+") (number_literal "0x4d")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      return *(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40);\n    }" ({ "{") (return_statement "return *(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40);" (return "return") (binary_expression "*(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40)" (pointer_expression "*(uint *)(param_1 + 0x3c)" (* "*") (cast_expression "(uint *)(param_1 + 0x3c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")")))) (& "&") (pointer_expression "*(uint *)(param_1 + 0x40)" (* "*") (cast_expression "(uint *)(param_1 + 0x40)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")"))))) (; ";")) (} "}"))) (} "}"))) (return_statement "return 7;" (return "return") (number_literal "7") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(type_1 *var_1)

{
  type_2 var_2;
  int var_4;
  type_1 *in_stack_fffffff4;
  
  if (var_1 != (type_1 *)0x0) {
    var_2 = var_1->magic;
    if ((var_2 != 0x4b771290 && var_2 != 0xa029a697) && (var_2 != 0xf03b7906)) {
      var_4 = var_3(in_stack_fffffff4);
      if (var_4 == 0) {
        var_4 = var_5(0x26223);
        return var_4;
      }
    }
    if (var_1->mallocFailed == '\0') {
      return var_1->errCode & var_1->errMask;
    }
  }
  return 7;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (return_statement (identifier)))))) (if_statement condition: (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: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (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: (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)))))

uint MASKED(int param_1)

{
  int iVar1;
  uint uVar2;
  
  if (param_1 != 0) {
    iVar1 = *(int *)(param_1 + 0x5c);
    if ((iVar1 != 0x4b771290 && iVar1 != -0x5fd65969) && (iVar1 != -0xfc486fa)) {
      iVar1 = FUN_000573c0();
      if (iVar1 == 0) {
        uVar2 = FUN_00052440();
        return uVar2;
      }
    }
    if (*(char *)(param_1 + 0x4d) == '\0') {
      return *(uint *)(param_1 + 0x3c) & *(uint *)(param_1 + 0x40);
    }
  }
  return 7;
}

