
int __regparm3 sqlite3ReadSchema(Parse *pParse)

{
  sqlite3 *db;
  int iVar1;
  
  db = pParse->db;
  if ((db->init).busy == '\0') {
    iVar1 = sqlite3Init(db,&pParse->zErrMsg);
    if (iVar1 != 0) {
      pParse->rc = iVar1;
      pParse->nErr = pParse->nErr + 1;
      return iVar1;
    }
    if (db->noSharedCache != '\0') {
      db->mDbFlags = db->mDbFlags | 8;
    }
  }
  return 0;
}



int __regparm3 FUN_000ea7c0(int *param_1)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *param_1;
  if (*(char *)(iVar1 + 0xa1) == '\0') {
    iVar2 = FUN_000ea720();
    if (iVar2 != 0) {
      param_1[3] = iVar2;
      param_1[9] = param_1[9] + 1;
      return iVar2;
    }
    if (*(char *)(iVar1 + 0x55) != '\0') {
      *(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8;
    }
  }
  return 0;
}


PUSH ESI
PUSH EBX
SUB ESP,0x4
MOV ESI,dword ptr [EAX]
CMP byte ptr [ESI + 0xa1],0x0
JZ 0x000ea7e0
XOR EAX,EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
MOV EBX,EAX
LEA EDX,[EAX + 0x4]
MOV EAX,ESI
CALL 0x000ea720
TEST EAX,EAX
JNZ 0x000ea800
CMP byte ptr [ESI + 0x55],0x0
JZ 0x000ea7d0
OR dword ptr [ESI + 0x18],0x8
JMP 0x000ea7d2
MOV dword ptr [EBX + 0xc],EAX
ADD dword ptr [EBX + 0x24],0x1
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "int __regparm3 FUN_000ea7c0(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  if (*(char *)(iVar1 + 0xa1) == '\0') {\n    iVar2 = FUN_000ea720();\n    if (iVar2 != 0) {\n      param_1[3] = iVar2;\n      param_1[9] = param_1[9] + 1;\n      return iVar2;\n    }\n    if (*(char *)(iVar1 + 0x55) != '\0') {\n      *(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "int __regparm3 FUN_000ea7c0(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  if (*(char *)(iVar1 + 0xa1) == '\0') {\n    iVar2 = FUN_000ea720();\n    if (iVar2 != 0) {\n      param_1[3] = iVar2;\n      param_1[9] = param_1[9] + 1;\n      return iVar2;\n    }\n    if (*(char *)(iVar1 + 0x55) != '\0') {\n      *(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8;\n    }\n  }\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000ea7c0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  if (*(char *)(iVar1 + 0xa1) == '\0') {\n    iVar2 = FUN_000ea720();\n    if (iVar2 != 0) {\n      param_1[3] = iVar2;\n      param_1[9] = param_1[9] + 1;\n      return iVar2;\n    }\n    if (*(char *)(iVar1 + 0x55) != '\0') {\n      *(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (*(char *)(iVar1 + 0xa1) == '\0') {\n    iVar2 = FUN_000ea720();\n    if (iVar2 != 0) {\n      param_1[3] = iVar2;\n      param_1[9] = param_1[9] + 1;\n      return iVar2;\n    }\n    if (*(char *)(iVar1 + 0x55) != '\0') {\n      *(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8;\n    }\n  }" if (parenthesized_expression "(*(char *)(iVar1 + 0xa1) == '\0')" ( (binary_expression "*(char *)(iVar1 + 0xa1) == '\0'" (pointer_expression "*(char *)(iVar1 + 0xa1)" * (cast_expression "(char *)(iVar1 + 0xa1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xa1)" ( (binary_expression "iVar1 + 0xa1" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = FUN_000ea720();\n    if (iVar2 != 0) {\n      param_1[3] = iVar2;\n      param_1[9] = param_1[9] + 1;\n      return iVar2;\n    }\n    if (*(char *)(iVar1 + 0x55) != '\0') {\n      *(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8;\n    }\n  }" { (expression_statement "iVar2 = FUN_000ea720();" (assignment_expression "iVar2 = FUN_000ea720()" identifier = (call_expression "FUN_000ea720()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 0) {\n      param_1[3] = iVar2;\n      param_1[9] = param_1[9] + 1;\n      return iVar2;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      param_1[3] = iVar2;\n      param_1[9] = param_1[9] + 1;\n      return iVar2;\n    }" { (expression_statement "param_1[3] = iVar2;" (assignment_expression "param_1[3] = iVar2" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[9] = param_1[9] + 1;" (assignment_expression "param_1[9] = param_1[9] + 1" (subscript_expression "param_1[9]" identifier [ number_literal ]) = (binary_expression "param_1[9] + 1" (subscript_expression "param_1[9]" identifier [ number_literal ]) + number_literal)) ;) (return_statement "return iVar2;" return identifier ;) })) (if_statement "if (*(char *)(iVar1 + 0x55) != '\0') {\n      *(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8;\n    }" if (parenthesized_expression "(*(char *)(iVar1 + 0x55) != '\0')" ( (binary_expression "*(char *)(iVar1 + 0x55) != '\0'" (pointer_expression "*(char *)(iVar1 + 0x55)" * (cast_expression "(char *)(iVar1 + 0x55)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x55)" ( (binary_expression "iVar1 + 0x55" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8;\n    }" { (expression_statement "*(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8;" (assignment_expression "*(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8" (pointer_expression "*(uint *)(iVar1 + 0x18)" * (cast_expression "(uint *)(iVar1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) = (binary_expression "*(uint *)(iVar1 + 0x18) | 8" (pointer_expression "*(uint *)(iVar1 + 0x18)" * (cast_expression "(uint *)(iVar1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) | number_literal)) ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int __regparm3 sqlite3ReadSchema(Parse *pParse)\n\n{\n  sqlite3 *db;\n  int iVar1;\n  \n  db = pParse->db;\n  if ((db->init).busy == '\0') {\n    iVar1 = sqlite3Init(db,&pParse->zErrMsg);\n    if (iVar1 != 0) {\n      pParse->rc = iVar1;\n      pParse->nErr = pParse->nErr + 1;\n      return iVar1;\n    }\n    if (db->noSharedCache != '\0') {\n      db->mDbFlags = db->mDbFlags | 8;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "int __regparm3 sqlite3ReadSchema(Parse *pParse)\n\n{\n  sqlite3 *db;\n  int iVar1;\n  \n  db = pParse->db;\n  if ((db->init).busy == '\0') {\n    iVar1 = sqlite3Init(db,&pParse->zErrMsg);\n    if (iVar1 != 0) {\n      pParse->rc = iVar1;\n      pParse->nErr = pParse->nErr + 1;\n      return iVar1;\n    }\n    if (db->noSharedCache != '\0') {\n      db->mDbFlags = db->mDbFlags | 8;\n    }\n  }\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3ReadSchema(Parse *pParse)" identifier (parameter_list "(Parse *pParse)" ( (parameter_declaration "Parse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) ))) (compound_statement "{\n  sqlite3 *db;\n  int iVar1;\n  \n  db = pParse->db;\n  if ((db->init).busy == '\0') {\n    iVar1 = sqlite3Init(db,&pParse->zErrMsg);\n    if (iVar1 != 0) {\n      pParse->rc = iVar1;\n      pParse->nErr = pParse->nErr + 1;\n      return iVar1;\n    }\n    if (db->noSharedCache != '\0') {\n      db->mDbFlags = db->mDbFlags | 8;\n    }\n  }\n  return 0;\n}" { (declaration "sqlite3 *db;" type_identifier (pointer_declarator "*db" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "db = pParse->db;" (assignment_expression "db = pParse->db" identifier = (field_expression "pParse->db" identifier -> field_identifier)) ;) (if_statement "if ((db->init).busy == '\0') {\n    iVar1 = sqlite3Init(db,&pParse->zErrMsg);\n    if (iVar1 != 0) {\n      pParse->rc = iVar1;\n      pParse->nErr = pParse->nErr + 1;\n      return iVar1;\n    }\n    if (db->noSharedCache != '\0') {\n      db->mDbFlags = db->mDbFlags | 8;\n    }\n  }" if (parenthesized_expression "((db->init).busy == '\0')" ( (binary_expression "(db->init).busy == '\0'" (field_expression "(db->init).busy" (parenthesized_expression "(db->init)" ( (field_expression "db->init" identifier -> field_identifier) )) . field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar1 = sqlite3Init(db,&pParse->zErrMsg);\n    if (iVar1 != 0) {\n      pParse->rc = iVar1;\n      pParse->nErr = pParse->nErr + 1;\n      return iVar1;\n    }\n    if (db->noSharedCache != '\0') {\n      db->mDbFlags = db->mDbFlags | 8;\n    }\n  }" { (expression_statement "iVar1 = sqlite3Init(db,&pParse->zErrMsg);" (assignment_expression "iVar1 = sqlite3Init(db,&pParse->zErrMsg)" identifier = (call_expression "sqlite3Init(db,&pParse->zErrMsg)" identifier (argument_list "(db,&pParse->zErrMsg)" ( identifier , (pointer_expression "&pParse->zErrMsg" & (field_expression "pParse->zErrMsg" identifier -> field_identifier)) )))) ;) (if_statement "if (iVar1 != 0) {\n      pParse->rc = iVar1;\n      pParse->nErr = pParse->nErr + 1;\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      pParse->rc = iVar1;\n      pParse->nErr = pParse->nErr + 1;\n      return iVar1;\n    }" { (expression_statement "pParse->rc = iVar1;" (assignment_expression "pParse->rc = iVar1" (field_expression "pParse->rc" identifier -> field_identifier) = identifier) ;) (expression_statement "pParse->nErr = pParse->nErr + 1;" (assignment_expression "pParse->nErr = pParse->nErr + 1" (field_expression "pParse->nErr" identifier -> field_identifier) = (binary_expression "pParse->nErr + 1" (field_expression "pParse->nErr" identifier -> field_identifier) + number_literal)) ;) (return_statement "return iVar1;" return identifier ;) })) (if_statement "if (db->noSharedCache != '\0') {\n      db->mDbFlags = db->mDbFlags | 8;\n    }" if (parenthesized_expression "(db->noSharedCache != '\0')" ( (binary_expression "db->noSharedCache != '\0'" (field_expression "db->noSharedCache" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      db->mDbFlags = db->mDbFlags | 8;\n    }" { (expression_statement "db->mDbFlags = db->mDbFlags | 8;" (assignment_expression "db->mDbFlags = db->mDbFlags | 8" (field_expression "db->mDbFlags" identifier -> field_identifier) = (binary_expression "db->mDbFlags | 8" (field_expression "db->mDbFlags" identifier -> field_identifier) | number_literal)) ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int __regparm3 FUN_000ea7c0(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  if (*(char *)(iVar1 + 0xa1) == '\0') {\n    iVar2 = FUN_000ea720();\n    if (iVar2 != 0) {\n      param_1[3] = iVar2;\n      param_1[9] = param_1[9] + 1;\n      return iVar2;\n    }\n    if (*(char *)(iVar1 + 0x55) != '\0') {\n      *(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "int __regparm3 FUN_000ea7c0(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  if (*(char *)(iVar1 + 0xa1) == '\0') {\n    iVar2 = FUN_000ea720();\n    if (iVar2 != 0) {\n      param_1[3] = iVar2;\n      param_1[9] = param_1[9] + 1;\n      return iVar2;\n    }\n    if (*(char *)(iVar1 + 0x55) != '\0') {\n      *(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8;\n    }\n  }\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000ea7c0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  if (*(char *)(iVar1 + 0xa1) == '\0') {\n    iVar2 = FUN_000ea720();\n    if (iVar2 != 0) {\n      param_1[3] = iVar2;\n      param_1[9] = param_1[9] + 1;\n      return iVar2;\n    }\n    if (*(char *)(iVar1 + 0x55) != '\0') {\n      *(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (*(char *)(iVar1 + 0xa1) == '\0') {\n    iVar2 = FUN_000ea720();\n    if (iVar2 != 0) {\n      param_1[3] = iVar2;\n      param_1[9] = param_1[9] + 1;\n      return iVar2;\n    }\n    if (*(char *)(iVar1 + 0x55) != '\0') {\n      *(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8;\n    }\n  }" if (parenthesized_expression "(*(char *)(iVar1 + 0xa1) == '\0')" ( (binary_expression "*(char *)(iVar1 + 0xa1) == '\0'" (pointer_expression "*(char *)(iVar1 + 0xa1)" * (cast_expression "(char *)(iVar1 + 0xa1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xa1)" ( (binary_expression "iVar1 + 0xa1" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = FUN_000ea720();\n    if (iVar2 != 0) {\n      param_1[3] = iVar2;\n      param_1[9] = param_1[9] + 1;\n      return iVar2;\n    }\n    if (*(char *)(iVar1 + 0x55) != '\0') {\n      *(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8;\n    }\n  }" { (expression_statement "iVar2 = FUN_000ea720();" (assignment_expression "iVar2 = FUN_000ea720()" identifier = (call_expression "FUN_000ea720()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 0) {\n      param_1[3] = iVar2;\n      param_1[9] = param_1[9] + 1;\n      return iVar2;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      param_1[3] = iVar2;\n      param_1[9] = param_1[9] + 1;\n      return iVar2;\n    }" { (expression_statement "param_1[3] = iVar2;" (assignment_expression "param_1[3] = iVar2" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[9] = param_1[9] + 1;" (assignment_expression "param_1[9] = param_1[9] + 1" (subscript_expression "param_1[9]" identifier [ number_literal ]) = (binary_expression "param_1[9] + 1" (subscript_expression "param_1[9]" identifier [ number_literal ]) + number_literal)) ;) (return_statement "return iVar2;" return identifier ;) })) (if_statement "if (*(char *)(iVar1 + 0x55) != '\0') {\n      *(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8;\n    }" if (parenthesized_expression "(*(char *)(iVar1 + 0x55) != '\0')" ( (binary_expression "*(char *)(iVar1 + 0x55) != '\0'" (pointer_expression "*(char *)(iVar1 + 0x55)" * (cast_expression "(char *)(iVar1 + 0x55)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x55)" ( (binary_expression "iVar1 + 0x55" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8;\n    }" { (expression_statement "*(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8;" (assignment_expression "*(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8" (pointer_expression "*(uint *)(iVar1 + 0x18)" * (cast_expression "(uint *)(iVar1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) = (binary_expression "*(uint *)(iVar1 + 0x18) | 8" (pointer_expression "*(uint *)(iVar1 + 0x18)" * (cast_expression "(uint *)(iVar1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) | number_literal)) ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (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 * 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 { (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 (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (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 { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) })) })) (return_statement return LIT ;) })))
(function_definition "int __regparm3 FUN_000ea7c0(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  if (*(char *)(iVar1 + 0xa1) == '\0') {\n    iVar2 = FUN_000ea720();\n    if (iVar2 != 0) {\n      param_1[3] = iVar2;\n      param_1[9] = param_1[9] + 1;\n      return iVar2;\n    }\n    if (*(char *)(iVar1 + 0x55) != '\0') {\n      *(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8;\n    }\n  }\n  return 0;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000ea7c0(int *param_1)" (identifier "FUN_000ea7c0") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  if (*(char *)(iVar1 + 0xa1) == '\0') {\n    iVar2 = FUN_000ea720();\n    if (iVar2 != 0) {\n      param_1[3] = iVar2;\n      param_1[9] = param_1[9] + 1;\n      return iVar2;\n    }\n    if (*(char *)(iVar1 + 0x55) != '\0') {\n      *(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8;\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (*(char *)(iVar1 + 0xa1) == '\0') {\n    iVar2 = FUN_000ea720();\n    if (iVar2 != 0) {\n      param_1[3] = iVar2;\n      param_1[9] = param_1[9] + 1;\n      return iVar2;\n    }\n    if (*(char *)(iVar1 + 0x55) != '\0') {\n      *(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8;\n    }\n  }" (if "if") (parenthesized_expression "(*(char *)(iVar1 + 0xa1) == '\0')" (( "(") (binary_expression "*(char *)(iVar1 + 0xa1) == '\0'" (pointer_expression "*(char *)(iVar1 + 0xa1)" (* "*") (cast_expression "(char *)(iVar1 + 0xa1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xa1)" (( "(") (binary_expression "iVar1 + 0xa1" (identifier "iVar1") (+ "+") (number_literal "0xa1")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    iVar2 = FUN_000ea720();\n    if (iVar2 != 0) {\n      param_1[3] = iVar2;\n      param_1[9] = param_1[9] + 1;\n      return iVar2;\n    }\n    if (*(char *)(iVar1 + 0x55) != '\0') {\n      *(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8;\n    }\n  }" ({ "{") (expression_statement "iVar2 = FUN_000ea720();" (assignment_expression "iVar2 = FUN_000ea720()" (identifier "iVar2") (= "=") (call_expression "FUN_000ea720()" (identifier "FUN_000ea720") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n      param_1[3] = iVar2;\n      param_1[9] = param_1[9] + 1;\n      return iVar2;\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      param_1[3] = iVar2;\n      param_1[9] = param_1[9] + 1;\n      return iVar2;\n    }" ({ "{") (expression_statement "param_1[3] = iVar2;" (assignment_expression "param_1[3] = iVar2" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "param_1[9] = param_1[9] + 1;" (assignment_expression "param_1[9] = param_1[9] + 1" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (= "=") (binary_expression "param_1[9] + 1" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (if_statement "if (*(char *)(iVar1 + 0x55) != '\0') {\n      *(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8;\n    }" (if "if") (parenthesized_expression "(*(char *)(iVar1 + 0x55) != '\0')" (( "(") (binary_expression "*(char *)(iVar1 + 0x55) != '\0'" (pointer_expression "*(char *)(iVar1 + 0x55)" (* "*") (cast_expression "(char *)(iVar1 + 0x55)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x55)" (( "(") (binary_expression "iVar1 + 0x55" (identifier "iVar1") (+ "+") (number_literal "0x55")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      *(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8;\n    }" ({ "{") (expression_statement "*(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8;" (assignment_expression "*(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8" (pointer_expression "*(uint *)(iVar1 + 0x18)" (* "*") (cast_expression "(uint *)(iVar1 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x18)" (( "(") (binary_expression "iVar1 + 0x18" (identifier "iVar1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (binary_expression "*(uint *)(iVar1 + 0x18) | 8" (pointer_expression "*(uint *)(iVar1 + 0x18)" (* "*") (cast_expression "(uint *)(iVar1 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x18)" (( "(") (binary_expression "iVar1 + 0x18" (identifier "iVar1") (+ "+") (number_literal "0x18")) () ")")))) (| "|") (number_literal "8"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int __regparm3 function_1(type_1 *pParse)

{
  type_2 *db;
  int var_2;
  
  db = pParse->db;
  if ((db->init).busy == '\0') {
    var_2 = var_1(db,&pParse->zErrMsg);
    if (var_2 != 0) {
      pParse->rc = var_2;
      pParse->nErr = pParse->nErr + 1;
      return var_2;
    }
    if (db->noSharedCache != '\0') {
      db->mDbFlags = db->mDbFlags | 8;
    }
  }
  return 0;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (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 (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (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 (expression_statement (assignment_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: (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)))))))) (return_statement (number_literal)))))

int __regparm3 MASKED(int *param_1)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *param_1;
  if (*(char *)(iVar1 + 0xa1) == '\0') {
    iVar2 = FUN_000ea720();
    if (iVar2 != 0) {
      param_1[3] = iVar2;
      param_1[9] = param_1[9] + 1;
      return iVar2;
    }
    if (*(char *)(iVar1 + 0x55) != '\0') {
      *(uint *)(iVar1 + 0x18) = *(uint *)(iVar1 + 0x18) | 8;
    }
  }
  return 0;
}

