
/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

int __regparm3 invalidateTempStorage(Parse *pParse)

{
  sqlite3 *db;
  Btree *p;
  
  db = pParse->db;
  p = db->aDb[1].pBt;
  if (p == (Btree *)0x0) {
    return 0;
  }
  if ((db->autoCommit != '\0') && (p->inTrans == '\0')) {
    sqlite3BtreeClose(p);
    db->aDb[1].pBt = (Btree *)0x0;
    sqlite3ResetAllSchemasOfConnection(db);
    return 0;
  }
  sqlite3ErrorMsg(pParse,"temporary storage cannot be changed from within a transaction");
  return 1;
}



/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

undefined4 __regparm3 FUN_0008a0d0(int *param_1)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *param_1;
  iVar2 = *(int *)(*(int *)(iVar1 + 0x10) + 0x14);
  if (iVar2 == 0) {
    return 0;
  }
  if ((*(char *)(iVar1 + 0x4b) != '\0') && (*(char *)(iVar2 + 8) == '\0')) {
    FUN_00089540();
    *(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14) = 0;
    FUN_0003b610();
    return 0;
  }
  FUN_000590d0(param_1,"temporary storage cannot be changed from within a transaction");
  return 1;
}


CALL 0x000f59fc
ADD ECX,0xc0dff
PUSH EBX
SUB ESP,0x8
MOV EBX,dword ptr [EAX]
MOV EDX,dword ptr [EBX + 0x10]
MOV EDX,dword ptr [EDX + 0x14]
TEST EDX,EDX
JZ 0x0008a140
CMP byte ptr [EBX + 0x4b],0x0
JZ 0x0008a0f7
CMP byte ptr [EDX + 0x8],0x0
JZ 0x0008a118
SUB ESP,0x8
LEA EDX,[ECX + 0xfffbad04]
PUSH EDX
PUSH EAX
CALL 0x000590d0
ADD ESP,0x10
MOV EAX,0x1
ADD ESP,0x8
POP EBX
RET
MOV EAX,EDX
CALL 0x00089540
MOV EAX,dword ptr [EBX + 0x10]
MOV dword ptr [EAX + 0x14],0x0
MOV EAX,EBX
CALL 0x0003b610
ADD ESP,0x8
XOR EAX,EAX
POP EBX
RET
ADD ESP,0x8
XOR EAX,EAX
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nundefined4 __regparm3 FUN_0008a0d0(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  iVar2 = *(int *)(*(int *)(iVar1 + 0x10) + 0x14);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  if ((*(char *)(iVar1 + 0x4b) != '\0') && (*(char *)(iVar2 + 8) == '\0')) {\n    FUN_00089540();\n    *(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14) = 0;\n    FUN_0003b610();\n    return 0;\n  }\n  FUN_000590d0(param_1,"temporary storage cannot be changed from within a transaction");\n  return 1;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_0008a0d0(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  iVar2 = *(int *)(*(int *)(iVar1 + 0x10) + 0x14);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  if ((*(char *)(iVar1 + 0x4b) != '\0') && (*(char *)(iVar2 + 8) == '\0')) {\n    FUN_00089540();\n    *(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14) = 0;\n    FUN_0003b610();\n    return 0;\n  }\n  FUN_000590d0(param_1,"temporary storage cannot be changed from within a transaction");\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0008a0d0(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  iVar2 = *(int *)(*(int *)(iVar1 + 0x10) + 0x14);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  if ((*(char *)(iVar1 + 0x4b) != '\0') && (*(char *)(iVar2 + 8) == '\0')) {\n    FUN_00089540();\n    *(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14) = 0;\n    FUN_0003b610();\n    return 0;\n  }\n  FUN_000590d0(param_1,"temporary storage cannot be changed from within a transaction");\n  return 1;\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)) ;) (expression_statement "iVar2 = *(int *)(*(int *)(iVar1 + 0x10) + 0x14);" (assignment_expression "iVar2 = *(int *)(*(int *)(iVar1 + 0x10) + 0x14)" identifier = (pointer_expression "*(int *)(*(int *)(iVar1 + 0x10) + 0x14)" * (cast_expression "(int *)(*(int *)(iVar1 + 0x10) + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 0x10) + 0x14)" ( (binary_expression "*(int *)(iVar1 + 0x10) + 0x14" (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((*(char *)(iVar1 + 0x4b) != '\0') && (*(char *)(iVar2 + 8) == '\0')) {\n    FUN_00089540();\n    *(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14) = 0;\n    FUN_0003b610();\n    return 0;\n  }" if (parenthesized_expression "((*(char *)(iVar1 + 0x4b) != '\0') && (*(char *)(iVar2 + 8) == '\0'))" ( (binary_expression "(*(char *)(iVar1 + 0x4b) != '\0') && (*(char *)(iVar2 + 8) == '\0')" (parenthesized_expression "(*(char *)(iVar1 + 0x4b) != '\0')" ( (binary_expression "*(char *)(iVar1 + 0x4b) != '\0'" (pointer_expression "*(char *)(iVar1 + 0x4b)" * (cast_expression "(char *)(iVar1 + 0x4b)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x4b)" ( (binary_expression "iVar1 + 0x4b" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(*(char *)(iVar2 + 8) == '\0')" ( (binary_expression "*(char *)(iVar2 + 8) == '\0'" (pointer_expression "*(char *)(iVar2 + 8)" * (cast_expression "(char *)(iVar2 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    FUN_00089540();\n    *(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14) = 0;\n    FUN_0003b610();\n    return 0;\n  }" { (expression_statement "FUN_00089540();" (call_expression "FUN_00089540()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14) = 0" (pointer_expression "*(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14)" * (cast_expression "(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 0x10) + 0x14)" ( (binary_expression "*(int *)(iVar1 + 0x10) + 0x14" (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) + number_literal) )))) = number_literal) ;) (expression_statement "FUN_0003b610();" (call_expression "FUN_0003b610()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "FUN_000590d0(param_1,"temporary storage cannot be changed from within a transaction");" (call_expression "FUN_000590d0(param_1,"temporary storage cannot be changed from within a transaction")" identifier (argument_list "(param_1,"temporary storage cannot be changed from within a transaction")" ( identifier , (string_literal ""temporary storage cannot be changed from within a transaction"" " string_content ") ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nint __regparm3 invalidateTempStorage(Parse *pParse)\n\n{\n  sqlite3 *db;\n  Btree *p;\n  \n  db = pParse->db;\n  p = db->aDb[1].pBt;\n  if (p == (Btree *)0x0) {\n    return 0;\n  }\n  if ((db->autoCommit != '\0') && (p->inTrans == '\0')) {\n    sqlite3BtreeClose(p);\n    db->aDb[1].pBt = (Btree *)0x0;\n    sqlite3ResetAllSchemasOfConnection(db);\n    return 0;\n  }\n  sqlite3ErrorMsg(pParse,"temporary storage cannot be changed from within a transaction");\n  return 1;\n}\n\n" comment (function_definition "int __regparm3 invalidateTempStorage(Parse *pParse)\n\n{\n  sqlite3 *db;\n  Btree *p;\n  \n  db = pParse->db;\n  p = db->aDb[1].pBt;\n  if (p == (Btree *)0x0) {\n    return 0;\n  }\n  if ((db->autoCommit != '\0') && (p->inTrans == '\0')) {\n    sqlite3BtreeClose(p);\n    db->aDb[1].pBt = (Btree *)0x0;\n    sqlite3ResetAllSchemasOfConnection(db);\n    return 0;\n  }\n  sqlite3ErrorMsg(pParse,"temporary storage cannot be changed from within a transaction");\n  return 1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "invalidateTempStorage(Parse *pParse)" identifier (parameter_list "(Parse *pParse)" ( (parameter_declaration "Parse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) ))) (compound_statement "{\n  sqlite3 *db;\n  Btree *p;\n  \n  db = pParse->db;\n  p = db->aDb[1].pBt;\n  if (p == (Btree *)0x0) {\n    return 0;\n  }\n  if ((db->autoCommit != '\0') && (p->inTrans == '\0')) {\n    sqlite3BtreeClose(p);\n    db->aDb[1].pBt = (Btree *)0x0;\n    sqlite3ResetAllSchemasOfConnection(db);\n    return 0;\n  }\n  sqlite3ErrorMsg(pParse,"temporary storage cannot be changed from within a transaction");\n  return 1;\n}" { (declaration "sqlite3 *db;" type_identifier (pointer_declarator "*db" * identifier) ;) (declaration "Btree *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (expression_statement "db = pParse->db;" (assignment_expression "db = pParse->db" identifier = (field_expression "pParse->db" identifier -> field_identifier)) ;) (expression_statement "p = db->aDb[1].pBt;" (assignment_expression "p = db->aDb[1].pBt" identifier = (field_expression "db->aDb[1].pBt" (subscript_expression "db->aDb[1]" (field_expression "db->aDb" identifier -> field_identifier) [ number_literal ]) . field_identifier)) ;) (if_statement "if (p == (Btree *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(p == (Btree *)0x0)" ( (binary_expression "p == (Btree *)0x0" identifier == (cast_expression "(Btree *)0x0" ( (type_descriptor "Btree *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((db->autoCommit != '\0') && (p->inTrans == '\0')) {\n    sqlite3BtreeClose(p);\n    db->aDb[1].pBt = (Btree *)0x0;\n    sqlite3ResetAllSchemasOfConnection(db);\n    return 0;\n  }" if (parenthesized_expression "((db->autoCommit != '\0') && (p->inTrans == '\0'))" ( (binary_expression "(db->autoCommit != '\0') && (p->inTrans == '\0')" (parenthesized_expression "(db->autoCommit != '\0')" ( (binary_expression "db->autoCommit != '\0'" (field_expression "db->autoCommit" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(p->inTrans == '\0')" ( (binary_expression "p->inTrans == '\0'" (field_expression "p->inTrans" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    sqlite3BtreeClose(p);\n    db->aDb[1].pBt = (Btree *)0x0;\n    sqlite3ResetAllSchemasOfConnection(db);\n    return 0;\n  }" { (expression_statement "sqlite3BtreeClose(p);" (call_expression "sqlite3BtreeClose(p)" identifier (argument_list "(p)" ( identifier ))) ;) (expression_statement "db->aDb[1].pBt = (Btree *)0x0;" (assignment_expression "db->aDb[1].pBt = (Btree *)0x0" (field_expression "db->aDb[1].pBt" (subscript_expression "db->aDb[1]" (field_expression "db->aDb" identifier -> field_identifier) [ number_literal ]) . field_identifier) = (cast_expression "(Btree *)0x0" ( (type_descriptor "Btree *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sqlite3ResetAllSchemasOfConnection(db);" (call_expression "sqlite3ResetAllSchemasOfConnection(db)" identifier (argument_list "(db)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "sqlite3ErrorMsg(pParse,"temporary storage cannot be changed from within a transaction");" (call_expression "sqlite3ErrorMsg(pParse,"temporary storage cannot be changed from within a transaction")" identifier (argument_list "(pParse,"temporary storage cannot be changed from within a transaction")" ( identifier , (string_literal ""temporary storage cannot be changed from within a transaction"" " string_content ") ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 __regparm3 FUN_0008a0d0(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  iVar2 = *(int *)(*(int *)(iVar1 + 0x10) + 0x14);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  if ((*(char *)(iVar1 + 0x4b) != '\0') && (*(char *)(iVar2 + 8) == '\0')) {\n    FUN_00089540();\n    *(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14) = 0;\n    FUN_0003b610();\n    return 0;\n  }\n  FUN_000590d0(param_1,"temporary storage cannot be changed from within a transaction");\n  return 1;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_0008a0d0(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  iVar2 = *(int *)(*(int *)(iVar1 + 0x10) + 0x14);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  if ((*(char *)(iVar1 + 0x4b) != '\0') && (*(char *)(iVar2 + 8) == '\0')) {\n    FUN_00089540();\n    *(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14) = 0;\n    FUN_0003b610();\n    return 0;\n  }\n  FUN_000590d0(param_1,"temporary storage cannot be changed from within a transaction");\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0008a0d0(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  iVar2 = *(int *)(*(int *)(iVar1 + 0x10) + 0x14);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  if ((*(char *)(iVar1 + 0x4b) != '\0') && (*(char *)(iVar2 + 8) == '\0')) {\n    FUN_00089540();\n    *(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14) = 0;\n    FUN_0003b610();\n    return 0;\n  }\n  FUN_000590d0(param_1,"temporary storage cannot be changed from within a transaction");\n  return 1;\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)) ;) (expression_statement "iVar2 = *(int *)(*(int *)(iVar1 + 0x10) + 0x14);" (assignment_expression "iVar2 = *(int *)(*(int *)(iVar1 + 0x10) + 0x14)" identifier = (pointer_expression "*(int *)(*(int *)(iVar1 + 0x10) + 0x14)" * (cast_expression "(int *)(*(int *)(iVar1 + 0x10) + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 0x10) + 0x14)" ( (binary_expression "*(int *)(iVar1 + 0x10) + 0x14" (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((*(char *)(iVar1 + 0x4b) != '\0') && (*(char *)(iVar2 + 8) == '\0')) {\n    FUN_00089540();\n    *(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14) = 0;\n    FUN_0003b610();\n    return 0;\n  }" if (parenthesized_expression "((*(char *)(iVar1 + 0x4b) != '\0') && (*(char *)(iVar2 + 8) == '\0'))" ( (binary_expression "(*(char *)(iVar1 + 0x4b) != '\0') && (*(char *)(iVar2 + 8) == '\0')" (parenthesized_expression "(*(char *)(iVar1 + 0x4b) != '\0')" ( (binary_expression "*(char *)(iVar1 + 0x4b) != '\0'" (pointer_expression "*(char *)(iVar1 + 0x4b)" * (cast_expression "(char *)(iVar1 + 0x4b)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x4b)" ( (binary_expression "iVar1 + 0x4b" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(*(char *)(iVar2 + 8) == '\0')" ( (binary_expression "*(char *)(iVar2 + 8) == '\0'" (pointer_expression "*(char *)(iVar2 + 8)" * (cast_expression "(char *)(iVar2 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    FUN_00089540();\n    *(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14) = 0;\n    FUN_0003b610();\n    return 0;\n  }" { (expression_statement "FUN_00089540();" (call_expression "FUN_00089540()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14) = 0" (pointer_expression "*(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14)" * (cast_expression "(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 0x10) + 0x14)" ( (binary_expression "*(int *)(iVar1 + 0x10) + 0x14" (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) + number_literal) )))) = number_literal) ;) (expression_statement "FUN_0003b610();" (call_expression "FUN_0003b610()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "FUN_000590d0(param_1,"temporary storage cannot be changed from within a transaction");" (call_expression "FUN_000590d0(param_1,"temporary storage cannot be changed from within a transaction")" identifier (argument_list "(param_1,"temporary storage cannot be changed from within a transaction")" ( identifier , (string_literal ""temporary storage cannot be changed from within a transaction"" " string_content ") ))) ;) (return_statement "return 1;" 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)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) && (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 (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_0008a0d0(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  iVar2 = *(int *)(*(int *)(iVar1 + 0x10) + 0x14);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  if ((*(char *)(iVar1 + 0x4b) != '\0') && (*(char *)(iVar2 + 8) == '\0')) {\n    FUN_00089540();\n    *(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14) = 0;\n    FUN_0003b610();\n    return 0;\n  }\n  FUN_000590d0(param_1,"temporary storage cannot be changed from within a transaction");\n  return 1;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0008a0d0(int *param_1)" (identifier "FUN_0008a0d0") (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  iVar2 = *(int *)(*(int *)(iVar1 + 0x10) + 0x14);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  if ((*(char *)(iVar1 + 0x4b) != '\0') && (*(char *)(iVar2 + 8) == '\0')) {\n    FUN_00089540();\n    *(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14) = 0;\n    FUN_0003b610();\n    return 0;\n  }\n  FUN_000590d0(param_1,"temporary storage cannot be changed from within a transaction");\n  return 1;\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"))) (; ";")) (expression_statement "iVar2 = *(int *)(*(int *)(iVar1 + 0x10) + 0x14);" (assignment_expression "iVar2 = *(int *)(*(int *)(iVar1 + 0x10) + 0x14)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(*(int *)(iVar1 + 0x10) + 0x14)" (* "*") (cast_expression "(int *)(*(int *)(iVar1 + 0x10) + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar1 + 0x10) + 0x14)" (( "(") (binary_expression "*(int *)(iVar1 + 0x10) + 0x14" (pointer_expression "*(int *)(iVar1 + 0x10)" (* "*") (cast_expression "(int *)(iVar1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if ((*(char *)(iVar1 + 0x4b) != '\0') && (*(char *)(iVar2 + 8) == '\0')) {\n    FUN_00089540();\n    *(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14) = 0;\n    FUN_0003b610();\n    return 0;\n  }" (if "if") (parenthesized_expression "((*(char *)(iVar1 + 0x4b) != '\0') && (*(char *)(iVar2 + 8) == '\0'))" (( "(") (binary_expression "(*(char *)(iVar1 + 0x4b) != '\0') && (*(char *)(iVar2 + 8) == '\0')" (parenthesized_expression "(*(char *)(iVar1 + 0x4b) != '\0')" (( "(") (binary_expression "*(char *)(iVar1 + 0x4b) != '\0'" (pointer_expression "*(char *)(iVar1 + 0x4b)" (* "*") (cast_expression "(char *)(iVar1 + 0x4b)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x4b)" (( "(") (binary_expression "iVar1 + 0x4b" (identifier "iVar1") (+ "+") (number_literal "0x4b")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(*(char *)(iVar2 + 8) == '\0')" (( "(") (binary_expression "*(char *)(iVar2 + 8) == '\0'" (pointer_expression "*(char *)(iVar2 + 8)" (* "*") (cast_expression "(char *)(iVar2 + 8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    FUN_00089540();\n    *(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14) = 0;\n    FUN_0003b610();\n    return 0;\n  }" ({ "{") (expression_statement "FUN_00089540();" (call_expression "FUN_00089540()" (identifier "FUN_00089540") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14) = 0" (pointer_expression "*(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14)" (* "*") (cast_expression "(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar1 + 0x10) + 0x14)" (( "(") (binary_expression "*(int *)(iVar1 + 0x10) + 0x14" (pointer_expression "*(int *)(iVar1 + 0x10)" (* "*") (cast_expression "(int *)(iVar1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0003b610();" (call_expression "FUN_0003b610()" (identifier "FUN_0003b610") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "FUN_000590d0(param_1,"temporary storage cannot be changed from within a transaction");" (call_expression "FUN_000590d0(param_1,"temporary storage cannot be changed from within a transaction")" (identifier "FUN_000590d0") (argument_list "(param_1,"temporary storage cannot be changed from within a transaction")" (( "(") (identifier "param_1") (, ",") (string_literal ""temporary storage cannot be changed from within a transaction"" (" """) (string_content "temporary storage cannot be changed from within a transaction") (" """)) () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

int __regparm3 function_1(type_1 *pParse)

{
  type_2 *db;
  type_3 *var_1;
  
  db = pParse->db;
  var_1 = db->aDb[1].pBt;
  if (var_1 == (type_3 *)0x0) {
    return 0;
  }
  if ((db->autoCommit != '\0') && (var_1->inTrans == '\0')) {
    var_2(var_1);
    db->aDb[1].pBt = (type_3 *)0x0;
    var_3(db);
    return 0;
  }
  var_4(pParse,"temporary storage cannot be changed from within a transaction");
  return 1;
}


(translation_unit (function_definition type: (type_identifier) (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)))) (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: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (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)))) 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: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (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: (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))))) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content))))) (return_statement (number_literal)))))

/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

undefined4 __regparm3 MASKED(int *param_1)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *param_1;
  iVar2 = *(int *)(*(int *)(iVar1 + 0x10) + 0x14);
  if (iVar2 == 0) {
    return 0;
  }
  if ((*(char *)(iVar1 + 0x4b) != '\0') && (*(char *)(iVar2 + 8) == '\0')) {
    FUN_00089540();
    *(undefined4 *)(*(int *)(iVar1 + 0x10) + 0x14) = 0;
    FUN_0003b610();
    return 0;
  }
  FUN_000590d0(param_1,"temporary storage cannot be changed from within a transaction");
  return 1;
}

