
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3 sqlite3Fts5StorageClose(Fts5Storage *p)

{
  sqlite3_stmt *pStmt;
  int iVar1;
  sqlite3_stmt **ppsVar2;
  
  ppsVar2 = p->aStmt;
  do {
    pStmt = *ppsVar2;
    ppsVar2 = ppsVar2 + 1;
    iVar1 = sqlite3_finalize(pStmt);
  } while ((Fts5Storage *)ppsVar2 != p + 1);
  sqlite3_free(p);
  return iVar1;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 FUN_0008e6b0(int param_1)

{
  undefined4 uVar1;
  undefined4 *puVar2;
  
  puVar2 = (undefined4 *)(param_1 + 0x18);
  do {
    uVar1 = *puVar2;
    puVar2 = puVar2 + 1;
    FUN_0008b430(uVar1);
  } while (puVar2 != (undefined4 *)(param_1 + 0x44));
  FUN_000264d0(param_1);
  return;
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
LEA EDI,[EAX + 0x44]
PUSH ESI
LEA ESI,[EAX + 0x18]
PUSH EBX
CALL 0x00014d20
ADD EBX,0xbc813
SUB ESP,0xc
LEA ESI,[ESI]
SUB ESP,0xc
PUSH dword ptr [ESI]
ADD ESI,0x4
CALL 0x0008b430
ADD ESP,0x10
CMP ESI,EDI
JNZ 0x0008e6d0
SUB ESP,0xc
PUSH EBP
CALL 0x000264d0
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0008e6b0(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  \n  puVar2 = (undefined4 *)(param_1 + 0x18);\n  do {\n    uVar1 = *puVar2;\n    puVar2 = puVar2 + 1;\n    FUN_0008b430(uVar1);\n  } while (puVar2 != (undefined4 *)(param_1 + 0x44));\n  FUN_000264d0(param_1);\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0008e6b0(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  \n  puVar2 = (undefined4 *)(param_1 + 0x18);\n  do {\n    uVar1 = *puVar2;\n    puVar2 = puVar2 + 1;\n    FUN_0008b430(uVar1);\n  } while (puVar2 != (undefined4 *)(param_1 + 0x44));\n  FUN_000264d0(param_1);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0008e6b0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  \n  puVar2 = (undefined4 *)(param_1 + 0x18);\n  do {\n    uVar1 = *puVar2;\n    puVar2 = puVar2 + 1;\n    FUN_0008b430(uVar1);\n  } while (puVar2 != (undefined4 *)(param_1 + 0x44));\n  FUN_000264d0(param_1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "puVar2 = (undefined4 *)(param_1 + 0x18);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + 0x18)" identifier = (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) ;) (do_statement "do {\n    uVar1 = *puVar2;\n    puVar2 = puVar2 + 1;\n    FUN_0008b430(uVar1);\n  } while (puVar2 != (undefined4 *)(param_1 + 0x44));" do (compound_statement "{\n    uVar1 = *puVar2;\n    puVar2 = puVar2 + 1;\n    FUN_0008b430(uVar1);\n  }" { (expression_statement "uVar1 = *puVar2;" (assignment_expression "uVar1 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "FUN_0008b430(uVar1);" (call_expression "FUN_0008b430(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) }) while (parenthesized_expression "(puVar2 != (undefined4 *)(param_1 + 0x44))" ( (binary_expression "puVar2 != (undefined4 *)(param_1 + 0x44)" identifier != (cast_expression "(undefined4 *)(param_1 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) )) ;) (expression_statement "FUN_000264d0(param_1);" (call_expression "FUN_000264d0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 sqlite3Fts5StorageClose(Fts5Storage *p)\n\n{\n  sqlite3_stmt *pStmt;\n  int iVar1;\n  sqlite3_stmt **ppsVar2;\n  \n  ppsVar2 = p->aStmt;\n  do {\n    pStmt = *ppsVar2;\n    ppsVar2 = ppsVar2 + 1;\n    iVar1 = sqlite3_finalize(pStmt);\n  } while ((Fts5Storage *)ppsVar2 != p + 1);\n  sqlite3_free(p);\n  return iVar1;\n}\n\n" comment (function_definition "int __regparm3 sqlite3Fts5StorageClose(Fts5Storage *p)\n\n{\n  sqlite3_stmt *pStmt;\n  int iVar1;\n  sqlite3_stmt **ppsVar2;\n  \n  ppsVar2 = p->aStmt;\n  do {\n    pStmt = *ppsVar2;\n    ppsVar2 = ppsVar2 + 1;\n    iVar1 = sqlite3_finalize(pStmt);\n  } while ((Fts5Storage *)ppsVar2 != p + 1);\n  sqlite3_free(p);\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3Fts5StorageClose(Fts5Storage *p)" identifier (parameter_list "(Fts5Storage *p)" ( (parameter_declaration "Fts5Storage *p" type_identifier (pointer_declarator "*p" * identifier)) ))) (compound_statement "{\n  sqlite3_stmt *pStmt;\n  int iVar1;\n  sqlite3_stmt **ppsVar2;\n  \n  ppsVar2 = p->aStmt;\n  do {\n    pStmt = *ppsVar2;\n    ppsVar2 = ppsVar2 + 1;\n    iVar1 = sqlite3_finalize(pStmt);\n  } while ((Fts5Storage *)ppsVar2 != p + 1);\n  sqlite3_free(p);\n  return iVar1;\n}" { (declaration "sqlite3_stmt *pStmt;" type_identifier (pointer_declarator "*pStmt" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "sqlite3_stmt **ppsVar2;" type_identifier (pointer_declarator "**ppsVar2" * (pointer_declarator "*ppsVar2" * identifier)) ;) (expression_statement "ppsVar2 = p->aStmt;" (assignment_expression "ppsVar2 = p->aStmt" identifier = (field_expression "p->aStmt" identifier -> field_identifier)) ;) (do_statement "do {\n    pStmt = *ppsVar2;\n    ppsVar2 = ppsVar2 + 1;\n    iVar1 = sqlite3_finalize(pStmt);\n  } while ((Fts5Storage *)ppsVar2 != p + 1);" do (compound_statement "{\n    pStmt = *ppsVar2;\n    ppsVar2 = ppsVar2 + 1;\n    iVar1 = sqlite3_finalize(pStmt);\n  }" { (expression_statement "pStmt = *ppsVar2;" (assignment_expression "pStmt = *ppsVar2" identifier = (pointer_expression "*ppsVar2" * identifier)) ;) (expression_statement "ppsVar2 = ppsVar2 + 1;" (assignment_expression "ppsVar2 = ppsVar2 + 1" identifier = (binary_expression "ppsVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = sqlite3_finalize(pStmt);" (assignment_expression "iVar1 = sqlite3_finalize(pStmt)" identifier = (call_expression "sqlite3_finalize(pStmt)" identifier (argument_list "(pStmt)" ( identifier )))) ;) }) while (parenthesized_expression "((Fts5Storage *)ppsVar2 != p + 1)" ( (binary_expression "(Fts5Storage *)ppsVar2 != p + 1" (cast_expression "(Fts5Storage *)ppsVar2" ( (type_descriptor "Fts5Storage *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) != (binary_expression "p + 1" identifier + number_literal)) )) ;) (expression_statement "sqlite3_free(p);" (call_expression "sqlite3_free(p)" identifier (argument_list "(p)" ( identifier ))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void __regparm3 FUN_0008e6b0(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  \n  puVar2 = (undefined4 *)(param_1 + 0x18);\n  do {\n    uVar1 = *puVar2;\n    puVar2 = puVar2 + 1;\n    FUN_0008b430(uVar1);\n  } while (puVar2 != (undefined4 *)(param_1 + 0x44));\n  FUN_000264d0(param_1);\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0008e6b0(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  \n  puVar2 = (undefined4 *)(param_1 + 0x18);\n  do {\n    uVar1 = *puVar2;\n    puVar2 = puVar2 + 1;\n    FUN_0008b430(uVar1);\n  } while (puVar2 != (undefined4 *)(param_1 + 0x44));\n  FUN_000264d0(param_1);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0008e6b0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  \n  puVar2 = (undefined4 *)(param_1 + 0x18);\n  do {\n    uVar1 = *puVar2;\n    puVar2 = puVar2 + 1;\n    FUN_0008b430(uVar1);\n  } while (puVar2 != (undefined4 *)(param_1 + 0x44));\n  FUN_000264d0(param_1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "puVar2 = (undefined4 *)(param_1 + 0x18);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + 0x18)" identifier = (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) ;) (do_statement "do {\n    uVar1 = *puVar2;\n    puVar2 = puVar2 + 1;\n    FUN_0008b430(uVar1);\n  } while (puVar2 != (undefined4 *)(param_1 + 0x44));" do (compound_statement "{\n    uVar1 = *puVar2;\n    puVar2 = puVar2 + 1;\n    FUN_0008b430(uVar1);\n  }" { (expression_statement "uVar1 = *puVar2;" (assignment_expression "uVar1 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "FUN_0008b430(uVar1);" (call_expression "FUN_0008b430(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) }) while (parenthesized_expression "(puVar2 != (undefined4 *)(param_1 + 0x44))" ( (binary_expression "puVar2 != (undefined4 *)(param_1 + 0x44)" identifier != (cast_expression "(undefined4 *)(param_1 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) )) ;) (expression_statement "FUN_000264d0(param_1);" (call_expression "FUN_000264d0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0008e6b0(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  \n  puVar2 = (undefined4 *)(param_1 + 0x18);\n  do {\n    uVar1 = *puVar2;\n    puVar2 = puVar2 + 1;\n    FUN_0008b430(uVar1);\n  } while (puVar2 != (undefined4 *)(param_1 + 0x44));\n  FUN_000264d0(param_1);\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0008e6b0(int param_1)" (identifier "FUN_0008e6b0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  \n  puVar2 = (undefined4 *)(param_1 + 0x18);\n  do {\n    uVar1 = *puVar2;\n    puVar2 = puVar2 + 1;\n    FUN_0008b430(uVar1);\n  } while (puVar2 != (undefined4 *)(param_1 + 0x44));\n  FUN_000264d0(param_1);\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (expression_statement "puVar2 = (undefined4 *)(param_1 + 0x18);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + 0x18)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (; ";")) (do_statement "do {\n    uVar1 = *puVar2;\n    puVar2 = puVar2 + 1;\n    FUN_0008b430(uVar1);\n  } while (puVar2 != (undefined4 *)(param_1 + 0x44));" (do "do") (compound_statement "{\n    uVar1 = *puVar2;\n    puVar2 = puVar2 + 1;\n    FUN_0008b430(uVar1);\n  }" ({ "{") (expression_statement "uVar1 = *puVar2;" (assignment_expression "uVar1 = *puVar2" (identifier "uVar1") (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_0008b430(uVar1);" (call_expression "FUN_0008b430(uVar1)" (identifier "FUN_0008b430") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar2 != (undefined4 *)(param_1 + 0x44))" (( "(") (binary_expression "puVar2 != (undefined4 *)(param_1 + 0x44)" (identifier "puVar2") (!= "!=") (cast_expression "(undefined4 *)(param_1 + 0x44)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) () ")")) (; ";")) (expression_statement "FUN_000264d0(param_1);" (call_expression "FUN_000264d0(param_1)" (identifier "FUN_000264d0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3 function_1(type_1 *var_3)

{
  type_2 *pStmt;
  int iVar1;
  type_2 **var_1;
  
  var_1 = var_3->aStmt;
  do {
    pStmt = *var_1;
    var_1 = var_1 + 1;
    iVar1 = var_2(pStmt);
  } while ((type_1 *)var_1 != var_3 + 1);
  var_4(var_3);
  return iVar1;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 MASKED(int param_1)

{
  undefined4 uVar1;
  undefined4 *puVar2;
  
  puVar2 = (undefined4 *)(param_1 + 0x18);
  do {
    uVar1 = *puVar2;
    puVar2 = puVar2 + 1;
    FUN_0008b430(uVar1);
  } while (puVar2 != (undefined4 *)(param_1 + 0x44));
  FUN_000264d0(param_1);
  return;
}

