
int sqlite3_stmt_status(sqlite3_stmt *pStmt,int op,int resetFlag)

{
  sqlite3 *db;
  long in_FS_OFFSET;
  u32 v;
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  if (op == 99) {
    db = *(sqlite3 **)pStmt;
    sqlite3_mutex_enter(db->mutex);
    v = 0;
    db->pnBytesFreed = (int *)&v;
    sqlite3VdbeClearObject(db,(Vdbe *)pStmt);
    sqlite3DbFree(db,pStmt);
    db->pnBytesFreed = (int *)0x0;
    sqlite3_mutex_leave(db->mutex);
  }
  else {
    v = *(u32 *)(pStmt + (long)op * 4 + 0xd0);
    if (resetFlag != 0) {
      *(undefined4 *)(pStmt + (long)op * 4 + 0xd0) = 0;
    }
  }
  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
    return v;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



undefined4 sqlite3_stmt_status(long *param_1,int param_2,int param_3)

{
  long lVar1;
  long in_FS_OFFSET;
  undefined4 local_24;
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  if (param_2 == 99) {
    lVar1 = *param_1;
    sqlite3_mutex_enter(*(undefined8 *)(lVar1 + 0x18));
    local_24 = 0;
    *(undefined4 **)(lVar1 + 0x2d0) = &local_24;
    FUN_0011ab41(lVar1,param_1);
    FUN_00119825(lVar1,param_1);
    *(undefined8 *)(lVar1 + 0x2d0) = 0;
    sqlite3_mutex_leave(*(undefined8 *)(lVar1 + 0x18));
  }
  else {
    local_24 = *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0);
    if (param_3 != 0) {
      *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;
    }
  }
  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
    return local_24;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH RBP
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x8],RAX
XOR EAX,EAX
CMP ESI,0x63
JZ 0x0011ac67
MOVSXD RSI,ESI
LEA RAX,[RDI + RSI*0x4]
MOV ECX,dword ptr [RAX + 0xd0]
MOV dword ptr [RSP + 0x4],ECX
TEST EDX,EDX
JZ 0x0011ac4c
MOV dword ptr [RAX + 0xd0],0x0
MOV EAX,dword ptr [RSP + 0x4]
MOV RCX,qword ptr [RSP + 0x8]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x0011acb3
ADD RSP,0x18
POP RBX
POP RBP
RET
MOV RBP,qword ptr [RDI]
MOV RDI,qword ptr [RBP + 0x18]
CALL 0x0010c480
MOV dword ptr [RSP + 0x4],0x0
LEA RAX,[RSP + 0x4]
MOV qword ptr [RBP + 0x2d0],RAX
MOV RSI,RBX
MOV RDI,RBP
CALL 0x0011ab41
MOV RSI,RBX
MOV RDI,RBP
CALL 0x00119825
MOV qword ptr [RBP + 0x2d0],0x0
MOV RDI,qword ptr [RBP + 0x18]
CALL 0x0010c3f0
JMP 0x0011ac4c
CALL 0x0010c0d0
(translation_unit "undefined4 sqlite3_stmt_status(long *param_1,int param_2,int param_3)\n\n{\n  long lVar1;\n  long in_FS_OFFSET;\n  undefined4 local_24;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 99) {\n    lVar1 = *param_1;\n    sqlite3_mutex_enter(*(undefined8 *)(lVar1 + 0x18));\n    local_24 = 0;\n    *(undefined4 **)(lVar1 + 0x2d0) = &local_24;\n    FUN_0011ab41(lVar1,param_1);\n    FUN_00119825(lVar1,param_1);\n    *(undefined8 *)(lVar1 + 0x2d0) = 0;\n    sqlite3_mutex_leave(*(undefined8 *)(lVar1 + 0x18));\n  }\n  else {\n    local_24 = *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0);\n    if (param_3 != 0) {\n      *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return local_24;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "undefined4 sqlite3_stmt_status(long *param_1,int param_2,int param_3)\n\n{\n  long lVar1;\n  long in_FS_OFFSET;\n  undefined4 local_24;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 99) {\n    lVar1 = *param_1;\n    sqlite3_mutex_enter(*(undefined8 *)(lVar1 + 0x18));\n    local_24 = 0;\n    *(undefined4 **)(lVar1 + 0x2d0) = &local_24;\n    FUN_0011ab41(lVar1,param_1);\n    FUN_00119825(lVar1,param_1);\n    *(undefined8 *)(lVar1 + 0x2d0) = 0;\n    sqlite3_mutex_leave(*(undefined8 *)(lVar1 + 0x18));\n  }\n  else {\n    local_24 = *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0);\n    if (param_3 != 0) {\n      *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return local_24;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" type_identifier (function_declarator "sqlite3_stmt_status(long *param_1,int param_2,int param_3)" identifier (parameter_list "(long *param_1,int param_2,int param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  long lVar1;\n  long in_FS_OFFSET;\n  undefined4 local_24;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 99) {\n    lVar1 = *param_1;\n    sqlite3_mutex_enter(*(undefined8 *)(lVar1 + 0x18));\n    local_24 = 0;\n    *(undefined4 **)(lVar1 + 0x2d0) = &local_24;\n    FUN_0011ab41(lVar1,param_1);\n    FUN_00119825(lVar1,param_1);\n    *(undefined8 *)(lVar1 + 0x2d0) = 0;\n    sqlite3_mutex_leave(*(undefined8 *)(lVar1 + 0x18));\n  }\n  else {\n    local_24 = *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0);\n    if (param_3 != 0) {\n      *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return local_24;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == 99) {\n    lVar1 = *param_1;\n    sqlite3_mutex_enter(*(undefined8 *)(lVar1 + 0x18));\n    local_24 = 0;\n    *(undefined4 **)(lVar1 + 0x2d0) = &local_24;\n    FUN_0011ab41(lVar1,param_1);\n    FUN_00119825(lVar1,param_1);\n    *(undefined8 *)(lVar1 + 0x2d0) = 0;\n    sqlite3_mutex_leave(*(undefined8 *)(lVar1 + 0x18));\n  }\n  else {\n    local_24 = *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0);\n    if (param_3 != 0) {\n      *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;\n    }\n  }" if (parenthesized_expression "(param_2 == 99)" ( (binary_expression "param_2 == 99" identifier == number_literal) )) (compound_statement "{\n    lVar1 = *param_1;\n    sqlite3_mutex_enter(*(undefined8 *)(lVar1 + 0x18));\n    local_24 = 0;\n    *(undefined4 **)(lVar1 + 0x2d0) = &local_24;\n    FUN_0011ab41(lVar1,param_1);\n    FUN_00119825(lVar1,param_1);\n    *(undefined8 *)(lVar1 + 0x2d0) = 0;\n    sqlite3_mutex_leave(*(undefined8 *)(lVar1 + 0x18));\n  }" { (expression_statement "lVar1 = *param_1;" (assignment_expression "lVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "sqlite3_mutex_enter(*(undefined8 *)(lVar1 + 0x18));" (call_expression "sqlite3_mutex_enter(*(undefined8 *)(lVar1 + 0x18))" identifier (argument_list "(*(undefined8 *)(lVar1 + 0x18))" ( (pointer_expression "*(undefined8 *)(lVar1 + 0x18)" * (cast_expression "(undefined8 *)(lVar1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x18)" ( (binary_expression "lVar1 + 0x18" identifier + number_literal) )))) ))) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 **)(lVar1 + 0x2d0) = &local_24;" (assignment_expression "*(undefined4 **)(lVar1 + 0x2d0) = &local_24" (pointer_expression "*(undefined4 **)(lVar1 + 0x2d0)" * (cast_expression "(undefined4 **)(lVar1 + 0x2d0)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar1 + 0x2d0)" ( (binary_expression "lVar1 + 0x2d0" identifier + number_literal) )))) = (pointer_expression "&local_24" & identifier)) ;) (expression_statement "FUN_0011ab41(lVar1,param_1);" (call_expression "FUN_0011ab41(lVar1,param_1)" identifier (argument_list "(lVar1,param_1)" ( identifier , identifier ))) ;) (expression_statement "FUN_00119825(lVar1,param_1);" (call_expression "FUN_00119825(lVar1,param_1)" identifier (argument_list "(lVar1,param_1)" ( identifier , identifier ))) ;) (expression_statement "*(undefined8 *)(lVar1 + 0x2d0) = 0;" (assignment_expression "*(undefined8 *)(lVar1 + 0x2d0) = 0" (pointer_expression "*(undefined8 *)(lVar1 + 0x2d0)" * (cast_expression "(undefined8 *)(lVar1 + 0x2d0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x2d0)" ( (binary_expression "lVar1 + 0x2d0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "sqlite3_mutex_leave(*(undefined8 *)(lVar1 + 0x18));" (call_expression "sqlite3_mutex_leave(*(undefined8 *)(lVar1 + 0x18))" identifier (argument_list "(*(undefined8 *)(lVar1 + 0x18))" ( (pointer_expression "*(undefined8 *)(lVar1 + 0x18)" * (cast_expression "(undefined8 *)(lVar1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x18)" ( (binary_expression "lVar1 + 0x18" identifier + number_literal) )))) ))) ;) }) (else_clause "else {\n    local_24 = *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0);\n    if (param_3 != 0) {\n      *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;\n    }\n  }" else (compound_statement "{\n    local_24 = *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0);\n    if (param_3 != 0) {\n      *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;\n    }\n  }" { (expression_statement "local_24 = *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0);" (assignment_expression "local_24 = *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0)" identifier = (pointer_expression "*(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0)" * (cast_expression "(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + (long)param_2 * 4 + 0xd0)" ( (binary_expression "(long)param_1 + (long)param_2 * 4 + 0xd0" (binary_expression "(long)param_1 + (long)param_2 * 4" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (binary_expression "(long)param_2 * 4" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) ))))) ;) (if_statement "if (param_3 != 0) {\n      *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;\n    }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;\n    }" { (expression_statement "*(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;" (assignment_expression "*(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0" (pointer_expression "*(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0)" * (cast_expression "(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + (long)param_2 * 4 + 0xd0)" ( (binary_expression "(long)param_1 + (long)param_2 * 4 + 0xd0" (binary_expression "(long)param_1 + (long)param_2 * 4" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (binary_expression "(long)param_2 * 4" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )))) = number_literal) ;) })) }))) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return local_24;\n  }" if (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return local_24;\n  }" { (return_statement "return local_24;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int sqlite3_stmt_status(sqlite3_stmt *pStmt,int op,int resetFlag)\n\n{\n  sqlite3 *db;\n  long in_FS_OFFSET;\n  u32 v;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (op == 99) {\n    db = *(sqlite3 **)pStmt;\n    sqlite3_mutex_enter(db->mutex);\n    v = 0;\n    db->pnBytesFreed = (int *)&v;\n    sqlite3VdbeClearObject(db,(Vdbe *)pStmt);\n    sqlite3DbFree(db,pStmt);\n    db->pnBytesFreed = (int *)0x0;\n    sqlite3_mutex_leave(db->mutex);\n  }\n  else {\n    v = *(u32 *)(pStmt + (long)op * 4 + 0xd0);\n    if (resetFlag != 0) {\n      *(undefined4 *)(pStmt + (long)op * 4 + 0xd0) = 0;\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return v;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "int sqlite3_stmt_status(sqlite3_stmt *pStmt,int op,int resetFlag)\n\n{\n  sqlite3 *db;\n  long in_FS_OFFSET;\n  u32 v;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (op == 99) {\n    db = *(sqlite3 **)pStmt;\n    sqlite3_mutex_enter(db->mutex);\n    v = 0;\n    db->pnBytesFreed = (int *)&v;\n    sqlite3VdbeClearObject(db,(Vdbe *)pStmt);\n    sqlite3DbFree(db,pStmt);\n    db->pnBytesFreed = (int *)0x0;\n    sqlite3_mutex_leave(db->mutex);\n  }\n  else {\n    v = *(u32 *)(pStmt + (long)op * 4 + 0xd0);\n    if (resetFlag != 0) {\n      *(undefined4 *)(pStmt + (long)op * 4 + 0xd0) = 0;\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return v;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "sqlite3_stmt_status(sqlite3_stmt *pStmt,int op,int resetFlag)" identifier (parameter_list "(sqlite3_stmt *pStmt,int op,int resetFlag)" ( (parameter_declaration "sqlite3_stmt *pStmt" type_identifier (pointer_declarator "*pStmt" * identifier)) , (parameter_declaration "int op" primitive_type identifier) , (parameter_declaration "int resetFlag" primitive_type identifier) ))) (compound_statement "{\n  sqlite3 *db;\n  long in_FS_OFFSET;\n  u32 v;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (op == 99) {\n    db = *(sqlite3 **)pStmt;\n    sqlite3_mutex_enter(db->mutex);\n    v = 0;\n    db->pnBytesFreed = (int *)&v;\n    sqlite3VdbeClearObject(db,(Vdbe *)pStmt);\n    sqlite3DbFree(db,pStmt);\n    db->pnBytesFreed = (int *)0x0;\n    sqlite3_mutex_leave(db->mutex);\n  }\n  else {\n    v = *(u32 *)(pStmt + (long)op * 4 + 0xd0);\n    if (resetFlag != 0) {\n      *(undefined4 *)(pStmt + (long)op * 4 + 0xd0) = 0;\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return v;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "sqlite3 *db;" type_identifier (pointer_declarator "*db" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "u32 v;" type_identifier identifier ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (op == 99) {\n    db = *(sqlite3 **)pStmt;\n    sqlite3_mutex_enter(db->mutex);\n    v = 0;\n    db->pnBytesFreed = (int *)&v;\n    sqlite3VdbeClearObject(db,(Vdbe *)pStmt);\n    sqlite3DbFree(db,pStmt);\n    db->pnBytesFreed = (int *)0x0;\n    sqlite3_mutex_leave(db->mutex);\n  }\n  else {\n    v = *(u32 *)(pStmt + (long)op * 4 + 0xd0);\n    if (resetFlag != 0) {\n      *(undefined4 *)(pStmt + (long)op * 4 + 0xd0) = 0;\n    }\n  }" if (parenthesized_expression "(op == 99)" ( (binary_expression "op == 99" identifier == number_literal) )) (compound_statement "{\n    db = *(sqlite3 **)pStmt;\n    sqlite3_mutex_enter(db->mutex);\n    v = 0;\n    db->pnBytesFreed = (int *)&v;\n    sqlite3VdbeClearObject(db,(Vdbe *)pStmt);\n    sqlite3DbFree(db,pStmt);\n    db->pnBytesFreed = (int *)0x0;\n    sqlite3_mutex_leave(db->mutex);\n  }" { (expression_statement "db = *(sqlite3 **)pStmt;" (assignment_expression "db = *(sqlite3 **)pStmt" identifier = (pointer_expression "*(sqlite3 **)pStmt" * (cast_expression "(sqlite3 **)pStmt" ( (type_descriptor "sqlite3 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "sqlite3_mutex_enter(db->mutex);" (call_expression "sqlite3_mutex_enter(db->mutex)" identifier (argument_list "(db->mutex)" ( (field_expression "db->mutex" identifier -> field_identifier) ))) ;) (expression_statement "v = 0;" (assignment_expression "v = 0" identifier = number_literal) ;) (expression_statement "db->pnBytesFreed = (int *)&v;" (assignment_expression "db->pnBytesFreed = (int *)&v" (field_expression "db->pnBytesFreed" identifier -> field_identifier) = (cast_expression "(int *)&v" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&v" & identifier))) ;) (expression_statement "sqlite3VdbeClearObject(db,(Vdbe *)pStmt);" (call_expression "sqlite3VdbeClearObject(db,(Vdbe *)pStmt)" identifier (argument_list "(db,(Vdbe *)pStmt)" ( identifier , (cast_expression "(Vdbe *)pStmt" ( (type_descriptor "Vdbe *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "sqlite3DbFree(db,pStmt);" (call_expression "sqlite3DbFree(db,pStmt)" identifier (argument_list "(db,pStmt)" ( identifier , identifier ))) ;) (expression_statement "db->pnBytesFreed = (int *)0x0;" (assignment_expression "db->pnBytesFreed = (int *)0x0" (field_expression "db->pnBytesFreed" identifier -> field_identifier) = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sqlite3_mutex_leave(db->mutex);" (call_expression "sqlite3_mutex_leave(db->mutex)" identifier (argument_list "(db->mutex)" ( (field_expression "db->mutex" identifier -> field_identifier) ))) ;) }) (else_clause "else {\n    v = *(u32 *)(pStmt + (long)op * 4 + 0xd0);\n    if (resetFlag != 0) {\n      *(undefined4 *)(pStmt + (long)op * 4 + 0xd0) = 0;\n    }\n  }" else (compound_statement "{\n    v = *(u32 *)(pStmt + (long)op * 4 + 0xd0);\n    if (resetFlag != 0) {\n      *(undefined4 *)(pStmt + (long)op * 4 + 0xd0) = 0;\n    }\n  }" { (expression_statement "v = *(u32 *)(pStmt + (long)op * 4 + 0xd0);" (assignment_expression "v = *(u32 *)(pStmt + (long)op * 4 + 0xd0)" identifier = (pointer_expression "*(u32 *)(pStmt + (long)op * 4 + 0xd0)" * (cast_expression "(u32 *)(pStmt + (long)op * 4 + 0xd0)" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pStmt + (long)op * 4 + 0xd0)" ( (binary_expression "pStmt + (long)op * 4 + 0xd0" (binary_expression "pStmt + (long)op * 4" identifier + (binary_expression "(long)op * 4" (cast_expression "(long)op" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) ))))) ;) (if_statement "if (resetFlag != 0) {\n      *(undefined4 *)(pStmt + (long)op * 4 + 0xd0) = 0;\n    }" if (parenthesized_expression "(resetFlag != 0)" ( (binary_expression "resetFlag != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined4 *)(pStmt + (long)op * 4 + 0xd0) = 0;\n    }" { (expression_statement "*(undefined4 *)(pStmt + (long)op * 4 + 0xd0) = 0;" (assignment_expression "*(undefined4 *)(pStmt + (long)op * 4 + 0xd0) = 0" (pointer_expression "*(undefined4 *)(pStmt + (long)op * 4 + 0xd0)" * (cast_expression "(undefined4 *)(pStmt + (long)op * 4 + 0xd0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pStmt + (long)op * 4 + 0xd0)" ( (binary_expression "pStmt + (long)op * 4 + 0xd0" (binary_expression "pStmt + (long)op * 4" identifier + (binary_expression "(long)op * 4" (cast_expression "(long)op" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )))) = number_literal) ;) })) }))) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return v;\n  }" if (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return v;\n  }" { (return_statement "return v;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 sqlite3_stmt_status(long *param_1,int param_2,int param_3)\n\n{\n  long lVar1;\n  long in_FS_OFFSET;\n  undefined4 local_24;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 99) {\n    lVar1 = *param_1;\n    sqlite3_mutex_enter(*(undefined8 *)(lVar1 + 0x18));\n    local_24 = 0;\n    *(undefined4 **)(lVar1 + 0x2d0) = &local_24;\n    FUN_0011ab41(lVar1,param_1);\n    FUN_00119825(lVar1,param_1);\n    *(undefined8 *)(lVar1 + 0x2d0) = 0;\n    sqlite3_mutex_leave(*(undefined8 *)(lVar1 + 0x18));\n  }\n  else {\n    local_24 = *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0);\n    if (param_3 != 0) {\n      *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return local_24;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "undefined4 sqlite3_stmt_status(long *param_1,int param_2,int param_3)\n\n{\n  long lVar1;\n  long in_FS_OFFSET;\n  undefined4 local_24;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 99) {\n    lVar1 = *param_1;\n    sqlite3_mutex_enter(*(undefined8 *)(lVar1 + 0x18));\n    local_24 = 0;\n    *(undefined4 **)(lVar1 + 0x2d0) = &local_24;\n    FUN_0011ab41(lVar1,param_1);\n    FUN_00119825(lVar1,param_1);\n    *(undefined8 *)(lVar1 + 0x2d0) = 0;\n    sqlite3_mutex_leave(*(undefined8 *)(lVar1 + 0x18));\n  }\n  else {\n    local_24 = *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0);\n    if (param_3 != 0) {\n      *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return local_24;\n  }\n                    \n  __stack_chk_fail();\n}" type_identifier (function_declarator "sqlite3_stmt_status(long *param_1,int param_2,int param_3)" identifier (parameter_list "(long *param_1,int param_2,int param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  long lVar1;\n  long in_FS_OFFSET;\n  undefined4 local_24;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 99) {\n    lVar1 = *param_1;\n    sqlite3_mutex_enter(*(undefined8 *)(lVar1 + 0x18));\n    local_24 = 0;\n    *(undefined4 **)(lVar1 + 0x2d0) = &local_24;\n    FUN_0011ab41(lVar1,param_1);\n    FUN_00119825(lVar1,param_1);\n    *(undefined8 *)(lVar1 + 0x2d0) = 0;\n    sqlite3_mutex_leave(*(undefined8 *)(lVar1 + 0x18));\n  }\n  else {\n    local_24 = *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0);\n    if (param_3 != 0) {\n      *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return local_24;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == 99) {\n    lVar1 = *param_1;\n    sqlite3_mutex_enter(*(undefined8 *)(lVar1 + 0x18));\n    local_24 = 0;\n    *(undefined4 **)(lVar1 + 0x2d0) = &local_24;\n    FUN_0011ab41(lVar1,param_1);\n    FUN_00119825(lVar1,param_1);\n    *(undefined8 *)(lVar1 + 0x2d0) = 0;\n    sqlite3_mutex_leave(*(undefined8 *)(lVar1 + 0x18));\n  }\n  else {\n    local_24 = *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0);\n    if (param_3 != 0) {\n      *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;\n    }\n  }" if (parenthesized_expression "(param_2 == 99)" ( (binary_expression "param_2 == 99" identifier == number_literal) )) (compound_statement "{\n    lVar1 = *param_1;\n    sqlite3_mutex_enter(*(undefined8 *)(lVar1 + 0x18));\n    local_24 = 0;\n    *(undefined4 **)(lVar1 + 0x2d0) = &local_24;\n    FUN_0011ab41(lVar1,param_1);\n    FUN_00119825(lVar1,param_1);\n    *(undefined8 *)(lVar1 + 0x2d0) = 0;\n    sqlite3_mutex_leave(*(undefined8 *)(lVar1 + 0x18));\n  }" { (expression_statement "lVar1 = *param_1;" (assignment_expression "lVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "sqlite3_mutex_enter(*(undefined8 *)(lVar1 + 0x18));" (call_expression "sqlite3_mutex_enter(*(undefined8 *)(lVar1 + 0x18))" identifier (argument_list "(*(undefined8 *)(lVar1 + 0x18))" ( (pointer_expression "*(undefined8 *)(lVar1 + 0x18)" * (cast_expression "(undefined8 *)(lVar1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x18)" ( (binary_expression "lVar1 + 0x18" identifier + number_literal) )))) ))) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 **)(lVar1 + 0x2d0) = &local_24;" (assignment_expression "*(undefined4 **)(lVar1 + 0x2d0) = &local_24" (pointer_expression "*(undefined4 **)(lVar1 + 0x2d0)" * (cast_expression "(undefined4 **)(lVar1 + 0x2d0)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar1 + 0x2d0)" ( (binary_expression "lVar1 + 0x2d0" identifier + number_literal) )))) = (pointer_expression "&local_24" & identifier)) ;) (expression_statement "FUN_0011ab41(lVar1,param_1);" (call_expression "FUN_0011ab41(lVar1,param_1)" identifier (argument_list "(lVar1,param_1)" ( identifier , identifier ))) ;) (expression_statement "FUN_00119825(lVar1,param_1);" (call_expression "FUN_00119825(lVar1,param_1)" identifier (argument_list "(lVar1,param_1)" ( identifier , identifier ))) ;) (expression_statement "*(undefined8 *)(lVar1 + 0x2d0) = 0;" (assignment_expression "*(undefined8 *)(lVar1 + 0x2d0) = 0" (pointer_expression "*(undefined8 *)(lVar1 + 0x2d0)" * (cast_expression "(undefined8 *)(lVar1 + 0x2d0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x2d0)" ( (binary_expression "lVar1 + 0x2d0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "sqlite3_mutex_leave(*(undefined8 *)(lVar1 + 0x18));" (call_expression "sqlite3_mutex_leave(*(undefined8 *)(lVar1 + 0x18))" identifier (argument_list "(*(undefined8 *)(lVar1 + 0x18))" ( (pointer_expression "*(undefined8 *)(lVar1 + 0x18)" * (cast_expression "(undefined8 *)(lVar1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x18)" ( (binary_expression "lVar1 + 0x18" identifier + number_literal) )))) ))) ;) }) (else_clause "else {\n    local_24 = *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0);\n    if (param_3 != 0) {\n      *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;\n    }\n  }" else (compound_statement "{\n    local_24 = *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0);\n    if (param_3 != 0) {\n      *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;\n    }\n  }" { (expression_statement "local_24 = *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0);" (assignment_expression "local_24 = *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0)" identifier = (pointer_expression "*(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0)" * (cast_expression "(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + (long)param_2 * 4 + 0xd0)" ( (binary_expression "(long)param_1 + (long)param_2 * 4 + 0xd0" (binary_expression "(long)param_1 + (long)param_2 * 4" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (binary_expression "(long)param_2 * 4" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) ))))) ;) (if_statement "if (param_3 != 0) {\n      *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;\n    }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;\n    }" { (expression_statement "*(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;" (assignment_expression "*(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0" (pointer_expression "*(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0)" * (cast_expression "(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + (long)param_2 * 4 + 0xd0)" ( (binary_expression "(long)param_1 + (long)param_2 * 4 + 0xd0" (binary_expression "(long)param_1 + (long)param_2 * 4" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (binary_expression "(long)param_2 * 4" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )))) = number_literal) ;) })) }))) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return local_24;\n  }" if (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return local_24;\n  }" { (return_statement "return local_24;" return identifier ;) })) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) + LIT) )))) = LIT) ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 sqlite3_stmt_status(long *param_1,int param_2,int param_3)\n\n{\n  long lVar1;\n  long in_FS_OFFSET;\n  undefined4 local_24;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 99) {\n    lVar1 = *param_1;\n    sqlite3_mutex_enter(*(undefined8 *)(lVar1 + 0x18));\n    local_24 = 0;\n    *(undefined4 **)(lVar1 + 0x2d0) = &local_24;\n    FUN_0011ab41(lVar1,param_1);\n    FUN_00119825(lVar1,param_1);\n    *(undefined8 *)(lVar1 + 0x2d0) = 0;\n    sqlite3_mutex_leave(*(undefined8 *)(lVar1 + 0x18));\n  }\n  else {\n    local_24 = *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0);\n    if (param_3 != 0) {\n      *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return local_24;\n  }\n                    \n  __stack_chk_fail();\n}" (type_identifier "undefined4") (function_declarator "sqlite3_stmt_status(long *param_1,int param_2,int param_3)" (identifier "sqlite3_stmt_status") (parameter_list "(long *param_1,int param_2,int param_3)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  long lVar1;\n  long in_FS_OFFSET;\n  undefined4 local_24;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 99) {\n    lVar1 = *param_1;\n    sqlite3_mutex_enter(*(undefined8 *)(lVar1 + 0x18));\n    local_24 = 0;\n    *(undefined4 **)(lVar1 + 0x2d0) = &local_24;\n    FUN_0011ab41(lVar1,param_1);\n    FUN_00119825(lVar1,param_1);\n    *(undefined8 *)(lVar1 + 0x2d0) = 0;\n    sqlite3_mutex_leave(*(undefined8 *)(lVar1 + 0x18));\n  }\n  else {\n    local_24 = *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0);\n    if (param_3 != 0) {\n      *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return local_24;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "long local_20;" (sized_type_specifier "long" (long "long")) (identifier "local_20") (; ";")) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_20") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (param_2 == 99) {\n    lVar1 = *param_1;\n    sqlite3_mutex_enter(*(undefined8 *)(lVar1 + 0x18));\n    local_24 = 0;\n    *(undefined4 **)(lVar1 + 0x2d0) = &local_24;\n    FUN_0011ab41(lVar1,param_1);\n    FUN_00119825(lVar1,param_1);\n    *(undefined8 *)(lVar1 + 0x2d0) = 0;\n    sqlite3_mutex_leave(*(undefined8 *)(lVar1 + 0x18));\n  }\n  else {\n    local_24 = *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0);\n    if (param_3 != 0) {\n      *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;\n    }\n  }" (if "if") (parenthesized_expression "(param_2 == 99)" (( "(") (binary_expression "param_2 == 99" (identifier "param_2") (== "==") (number_literal "99")) () ")")) (compound_statement "{\n    lVar1 = *param_1;\n    sqlite3_mutex_enter(*(undefined8 *)(lVar1 + 0x18));\n    local_24 = 0;\n    *(undefined4 **)(lVar1 + 0x2d0) = &local_24;\n    FUN_0011ab41(lVar1,param_1);\n    FUN_00119825(lVar1,param_1);\n    *(undefined8 *)(lVar1 + 0x2d0) = 0;\n    sqlite3_mutex_leave(*(undefined8 *)(lVar1 + 0x18));\n  }" ({ "{") (expression_statement "lVar1 = *param_1;" (assignment_expression "lVar1 = *param_1" (identifier "lVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "sqlite3_mutex_enter(*(undefined8 *)(lVar1 + 0x18));" (call_expression "sqlite3_mutex_enter(*(undefined8 *)(lVar1 + 0x18))" (identifier "sqlite3_mutex_enter") (argument_list "(*(undefined8 *)(lVar1 + 0x18))" (( "(") (pointer_expression "*(undefined8 *)(lVar1 + 0x18)" (* "*") (cast_expression "(undefined8 *)(lVar1 + 0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x18)" (( "(") (binary_expression "lVar1 + 0x18" (identifier "lVar1") (+ "+") (number_literal "0x18")) () ")")))) () ")"))) (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 **)(lVar1 + 0x2d0) = &local_24;" (assignment_expression "*(undefined4 **)(lVar1 + 0x2d0) = &local_24" (pointer_expression "*(undefined4 **)(lVar1 + 0x2d0)" (* "*") (cast_expression "(undefined4 **)(lVar1 + 0x2d0)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar1 + 0x2d0)" (( "(") (binary_expression "lVar1 + 0x2d0" (identifier "lVar1") (+ "+") (number_literal "0x2d0")) () ")")))) (= "=") (pointer_expression "&local_24" (& "&") (identifier "local_24"))) (; ";")) (expression_statement "FUN_0011ab41(lVar1,param_1);" (call_expression "FUN_0011ab41(lVar1,param_1)" (identifier "FUN_0011ab41") (argument_list "(lVar1,param_1)" (( "(") (identifier "lVar1") (, ",") (identifier "param_1") () ")"))) (; ";")) (expression_statement "FUN_00119825(lVar1,param_1);" (call_expression "FUN_00119825(lVar1,param_1)" (identifier "FUN_00119825") (argument_list "(lVar1,param_1)" (( "(") (identifier "lVar1") (, ",") (identifier "param_1") () ")"))) (; ";")) (expression_statement "*(undefined8 *)(lVar1 + 0x2d0) = 0;" (assignment_expression "*(undefined8 *)(lVar1 + 0x2d0) = 0" (pointer_expression "*(undefined8 *)(lVar1 + 0x2d0)" (* "*") (cast_expression "(undefined8 *)(lVar1 + 0x2d0)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x2d0)" (( "(") (binary_expression "lVar1 + 0x2d0" (identifier "lVar1") (+ "+") (number_literal "0x2d0")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "sqlite3_mutex_leave(*(undefined8 *)(lVar1 + 0x18));" (call_expression "sqlite3_mutex_leave(*(undefined8 *)(lVar1 + 0x18))" (identifier "sqlite3_mutex_leave") (argument_list "(*(undefined8 *)(lVar1 + 0x18))" (( "(") (pointer_expression "*(undefined8 *)(lVar1 + 0x18)" (* "*") (cast_expression "(undefined8 *)(lVar1 + 0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x18)" (( "(") (binary_expression "lVar1 + 0x18" (identifier "lVar1") (+ "+") (number_literal "0x18")) () ")")))) () ")"))) (; ";")) (} "}")) (else_clause "else {\n    local_24 = *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0);\n    if (param_3 != 0) {\n      *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;\n    }\n  }" (else "else") (compound_statement "{\n    local_24 = *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0);\n    if (param_3 != 0) {\n      *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;\n    }\n  }" ({ "{") (expression_statement "local_24 = *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0);" (assignment_expression "local_24 = *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0)" (identifier "local_24") (= "=") (pointer_expression "*(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0)" (* "*") (cast_expression "(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + (long)param_2 * 4 + 0xd0)" (( "(") (binary_expression "(long)param_1 + (long)param_2 * 4 + 0xd0" (binary_expression "(long)param_1 + (long)param_2 * 4" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (binary_expression "(long)param_2 * 4" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (* "*") (number_literal "4"))) (+ "+") (number_literal "0xd0")) () ")"))))) (; ";")) (if_statement "if (param_3 != 0) {\n      *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;\n    }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;\n    }" ({ "{") (expression_statement "*(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;" (assignment_expression "*(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0" (pointer_expression "*(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0)" (* "*") (cast_expression "(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + (long)param_2 * 4 + 0xd0)" (( "(") (binary_expression "(long)param_1 + (long)param_2 * 4 + 0xd0" (binary_expression "(long)param_1 + (long)param_2 * 4" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (binary_expression "(long)param_2 * 4" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (* "*") (number_literal "4"))) (+ "+") (number_literal "0xd0")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}")))) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return local_24;\n  }" (if "if") (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_20") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    return local_24;\n  }" ({ "{") (return_statement "return local_24;" (return "return") (identifier "local_24") (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

int function_1(type_1 *var_7,int var_2,int var_8)

{
  type_2 *db;
  long var_1;
  type_3 v;
  long var_9;
  
  var_9 = *(long *)(var_1 + 0x28);
  if (var_2 == 99) {
    db = *(type_2 **)var_7;
    var_3(db->mutex);
    v = 0;
    db->pnBytesFreed = (int *)&v;
    var_4(db,(type_4 *)var_7);
    var_5(db,var_7);
    db->pnBytesFreed = (int *)0x0;
    var_6(db->mutex);
  }
  else {
    v = *(type_3 *)(var_7 + (long)var_2 * 4 + 0xd0);
    if (var_8 != 0) {
      *(type_5 *)(var_7 + (long)var_2 * 4 + 0xd0) = 0;
    }
  }
  if (var_9 == *(long *)(var_1 + 0x28)) {
    return v;
  }
                    /* WARNING: Subroutine does not return */
  var_10();
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (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: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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)))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (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: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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))))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) 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: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

undefined4 MASKED(long *param_1,int param_2,int param_3)

{
  long lVar1;
  long in_FS_OFFSET;
  undefined4 local_24;
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  if (param_2 == 99) {
    lVar1 = *param_1;
    sqlite3_mutex_enter(*(undefined8 *)(lVar1 + 0x18));
    local_24 = 0;
    *(undefined4 **)(lVar1 + 0x2d0) = &local_24;
    FUN_0011ab41(lVar1,param_1);
    FUN_00119825(lVar1,param_1);
    *(undefined8 *)(lVar1 + 0x2d0) = 0;
    sqlite3_mutex_leave(*(undefined8 *)(lVar1 + 0x18));
  }
  else {
    local_24 = *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0);
    if (param_3 != 0) {
      *(undefined4 *)((long)param_1 + (long)param_2 * 4 + 0xd0) = 0;
    }
  }
  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
    return local_24;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

