
/* DWARF original prototype: int fts5StorageInsertDocsize(Fts5Storage * p, i64 iRowid, Fts5Buffer *
   pBuf, Fts5Buffer * pBuf) */

int __regparm3
fts5StorageInsertDocsize(Fts5Storage *p,i64 iRowid,Fts5Buffer *pBuf,Fts5Buffer *pBuf_1)

{
  int iVar1;
  int in_GS_OFFSET;
  sqlite3_stmt *pReplace;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  pReplace = (sqlite3_stmt *)0x0;
  iVar1 = fts5StorageGetStmt(p,6,&pReplace,(char **)0x0);
  if (iVar1 == 0) {
    sqlite3_bind_int64(pReplace,1,CONCAT44(pBuf_1,pBuf));
    bindText(pReplace,2,(void *)*(undefined4 *)iRowid,*iRowid._4_4_,(_func_void_void_ptr *)0x0,'\0')
    ;
    sqlite3_step(pReplace);
    iVar1 = sqlite3_reset(pReplace);
    sqlite3_bind_null(pReplace,2);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



int __regparm3
FUN_000f1ee0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
            undefined4 *param_5)

{
  int iVar1;
  int iVar2;
  int in_GS_OFFSET;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = FUN_000f0ba0(0);
  if (iVar2 == 0) {
    FUN_000739f0(0,1,param_2,param_3);
    FUN_000736b0(*param_5,0,0);
    FUN_000ccd70(0);
    iVar2 = FUN_000ac730(0);
    FUN_00073a80(0,2);
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00116110();
}


PUSH EBP
PUSH EDI
MOV EDI,ECX
PUSH ESI
MOV ESI,EDX
MOV EDX,0x6
PUSH EBX
SUB ESP,0x2c
MOV ECX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x1c],ECX
XOR ECX,ECX
MOV EBX,dword ptr [ESP + 0x40]
MOV EBP,dword ptr [ESP + 0x44]
LEA ECX,[ESP + 0x18]
MOV dword ptr [ESP + 0x18],0x0
SUB ESP,0xc
PUSH 0x0
CALL 0x000f0ba0
ADD ESP,0x10
MOV EDX,EAX
TEST EAX,EAX
JZ 0x000f1f40
MOV EDI,dword ptr [ESP + 0x1c]
XOR EDI,dword ptr GS:[0x14]
MOV EAX,EDX
JNZ 0x000f1f95
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
PUSH EDI
PUSH ESI
PUSH 0x1
PUSH dword ptr [ESP + 0x24]
CALL 0x000739f0
ADD ESP,0xc
MOV EDX,0x2
PUSH 0x0
PUSH 0x0
PUSH dword ptr [EBP]
MOV EAX,dword ptr [ESP + 0x28]
MOV ECX,dword ptr [EBX]
CALL 0x000736b0
POP EAX
PUSH dword ptr [ESP + 0x24]
CALL 0x000ccd70
POP EDX
PUSH dword ptr [ESP + 0x24]
CALL 0x000ac730
MOV dword ptr [ESP + 0x1c],EAX
POP ECX
POP EBX
PUSH 0x2
PUSH dword ptr [ESP + 0x24]
CALL 0x00073a80
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
JMP 0x000f1f24
CALL 0x00116110
(translation_unit "int __regparm3\nFUN_000f1ee0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_000f0ba0(0);\n  if (iVar2 == 0) {\n    FUN_000739f0(0,1,param_2,param_3);\n    FUN_000736b0(*param_5,0,0);\n    FUN_000ccd70(0);\n    iVar2 = FUN_000ac730(0);\n    FUN_00073a80(0,2);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}\n\n" (function_definition "int __regparm3\nFUN_000f1ee0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_000f0ba0(0);\n  if (iVar2 == 0) {\n    FUN_000739f0(0,1,param_2,param_3);\n    FUN_000736b0(*param_5,0,0);\n    FUN_000ccd70(0);\n    iVar2 = FUN_000ac730(0);\n    FUN_00073a80(0,2);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000f1ee0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_000f0ba0(0);\n  if (iVar2 == 0) {\n    FUN_000739f0(0,1,param_2,param_3);\n    FUN_000736b0(*param_5,0,0);\n    FUN_000ccd70(0);\n    iVar2 = FUN_000ac730(0);\n    FUN_00073a80(0,2);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = FUN_000f0ba0(0);" (assignment_expression "iVar2 = FUN_000f0ba0(0)" identifier = (call_expression "FUN_000f0ba0(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n    FUN_000739f0(0,1,param_2,param_3);\n    FUN_000736b0(*param_5,0,0);\n    FUN_000ccd70(0);\n    iVar2 = FUN_000ac730(0);\n    FUN_00073a80(0,2);\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_000739f0(0,1,param_2,param_3);\n    FUN_000736b0(*param_5,0,0);\n    FUN_000ccd70(0);\n    iVar2 = FUN_000ac730(0);\n    FUN_00073a80(0,2);\n  }" { (expression_statement "FUN_000739f0(0,1,param_2,param_3);" (call_expression "FUN_000739f0(0,1,param_2,param_3)" identifier (argument_list "(0,1,param_2,param_3)" ( number_literal , number_literal , identifier , identifier ))) ;) (expression_statement "FUN_000736b0(*param_5,0,0);" (call_expression "FUN_000736b0(*param_5,0,0)" identifier (argument_list "(*param_5,0,0)" ( (pointer_expression "*param_5" * identifier) , number_literal , number_literal ))) ;) (expression_statement "FUN_000ccd70(0);" (call_expression "FUN_000ccd70(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar2 = FUN_000ac730(0);" (assignment_expression "iVar2 = FUN_000ac730(0)" identifier = (call_expression "FUN_000ac730(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "FUN_00073a80(0,2);" (call_expression "FUN_00073a80(0,2)" identifier (argument_list "(0,2)" ( number_literal , number_literal ))) ;) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) comment (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* DWARF original prototype: int fts5StorageInsertDocsize(Fts5Storage * p, i64 iRowid, Fts5Buffer *\n   pBuf, Fts5Buffer * pBuf) */\n\nint __regparm3\nfts5StorageInsertDocsize(Fts5Storage *p,i64 iRowid,Fts5Buffer *pBuf,Fts5Buffer *pBuf_1)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  sqlite3_stmt *pReplace;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pReplace = (sqlite3_stmt *)0x0;\n  iVar1 = fts5StorageGetStmt(p,6,&pReplace,(char **)0x0);\n  if (iVar1 == 0) {\n    sqlite3_bind_int64(pReplace,1,CONCAT44(pBuf_1,pBuf));\n    bindText(pReplace,2,(void *)*(undefined4 *)iRowid,*iRowid._4_4_,(_func_void_void_ptr *)0x0,'\0')\n    ;\n    sqlite3_step(pReplace);\n    iVar1 = sqlite3_reset(pReplace);\n    sqlite3_bind_null(pReplace,2);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "int __regparm3\nfts5StorageInsertDocsize(Fts5Storage *p,i64 iRowid,Fts5Buffer *pBuf,Fts5Buffer *pBuf_1)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  sqlite3_stmt *pReplace;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pReplace = (sqlite3_stmt *)0x0;\n  iVar1 = fts5StorageGetStmt(p,6,&pReplace,(char **)0x0);\n  if (iVar1 == 0) {\n    sqlite3_bind_int64(pReplace,1,CONCAT44(pBuf_1,pBuf));\n    bindText(pReplace,2,(void *)*(undefined4 *)iRowid,*iRowid._4_4_,(_func_void_void_ptr *)0x0,'\0')\n    ;\n    sqlite3_step(pReplace);\n    iVar1 = sqlite3_reset(pReplace);\n    sqlite3_bind_null(pReplace,2);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "fts5StorageInsertDocsize(Fts5Storage *p,i64 iRowid,Fts5Buffer *pBuf,Fts5Buffer *pBuf_1)" identifier (parameter_list "(Fts5Storage *p,i64 iRowid,Fts5Buffer *pBuf,Fts5Buffer *pBuf_1)" ( (parameter_declaration "Fts5Storage *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "i64 iRowid" type_identifier identifier) , (parameter_declaration "Fts5Buffer *pBuf" type_identifier (pointer_declarator "*pBuf" * identifier)) , (parameter_declaration "Fts5Buffer *pBuf_1" type_identifier (pointer_declarator "*pBuf_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  sqlite3_stmt *pReplace;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pReplace = (sqlite3_stmt *)0x0;\n  iVar1 = fts5StorageGetStmt(p,6,&pReplace,(char **)0x0);\n  if (iVar1 == 0) {\n    sqlite3_bind_int64(pReplace,1,CONCAT44(pBuf_1,pBuf));\n    bindText(pReplace,2,(void *)*(undefined4 *)iRowid,*iRowid._4_4_,(_func_void_void_ptr *)0x0,'\0')\n    ;\n    sqlite3_step(pReplace);\n    iVar1 = sqlite3_reset(pReplace);\n    sqlite3_bind_null(pReplace,2);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "sqlite3_stmt *pReplace;" type_identifier (pointer_declarator "*pReplace" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "pReplace = (sqlite3_stmt *)0x0;" (assignment_expression "pReplace = (sqlite3_stmt *)0x0" identifier = (cast_expression "(sqlite3_stmt *)0x0" ( (type_descriptor "sqlite3_stmt *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar1 = fts5StorageGetStmt(p,6,&pReplace,(char **)0x0);" (assignment_expression "iVar1 = fts5StorageGetStmt(p,6,&pReplace,(char **)0x0)" identifier = (call_expression "fts5StorageGetStmt(p,6,&pReplace,(char **)0x0)" identifier (argument_list "(p,6,&pReplace,(char **)0x0)" ( identifier , number_literal , (pointer_expression "&pReplace" & identifier) , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) )))) ;) (if_statement "if (iVar1 == 0) {\n    sqlite3_bind_int64(pReplace,1,CONCAT44(pBuf_1,pBuf));\n    bindText(pReplace,2,(void *)*(undefined4 *)iRowid,*iRowid._4_4_,(_func_void_void_ptr *)0x0,'\0')\n    ;\n    sqlite3_step(pReplace);\n    iVar1 = sqlite3_reset(pReplace);\n    sqlite3_bind_null(pReplace,2);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    sqlite3_bind_int64(pReplace,1,CONCAT44(pBuf_1,pBuf));\n    bindText(pReplace,2,(void *)*(undefined4 *)iRowid,*iRowid._4_4_,(_func_void_void_ptr *)0x0,'\0')\n    ;\n    sqlite3_step(pReplace);\n    iVar1 = sqlite3_reset(pReplace);\n    sqlite3_bind_null(pReplace,2);\n  }" { (expression_statement "sqlite3_bind_int64(pReplace,1,CONCAT44(pBuf_1,pBuf));" (call_expression "sqlite3_bind_int64(pReplace,1,CONCAT44(pBuf_1,pBuf))" identifier (argument_list "(pReplace,1,CONCAT44(pBuf_1,pBuf))" ( identifier , number_literal , (call_expression "CONCAT44(pBuf_1,pBuf)" identifier (argument_list "(pBuf_1,pBuf)" ( identifier , identifier ))) ))) ;) (expression_statement "bindText(pReplace,2,(void *)*(undefined4 *)iRowid,*iRowid._4_4_,(_func_void_void_ptr *)0x0,'\0')\n    ;" (call_expression "bindText(pReplace,2,(void *)*(undefined4 *)iRowid,*iRowid._4_4_,(_func_void_void_ptr *)0x0,'\0')" identifier (argument_list "(pReplace,2,(void *)*(undefined4 *)iRowid,*iRowid._4_4_,(_func_void_void_ptr *)0x0,'\0')" ( identifier , number_literal , (cast_expression "(void *)*(undefined4 *)iRowid" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*(undefined4 *)iRowid" * (cast_expression "(undefined4 *)iRowid" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) , (pointer_expression "*iRowid._4_4_" * (field_expression "iRowid._4_4_" identifier . field_identifier)) , (cast_expression "(_func_void_void_ptr *)0x0" ( (type_descriptor "_func_void_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (char_literal "'\0'" ' escape_sequence ') ))) ;) (expression_statement "sqlite3_step(pReplace);" (call_expression "sqlite3_step(pReplace)" identifier (argument_list "(pReplace)" ( identifier ))) ;) (expression_statement "iVar1 = sqlite3_reset(pReplace);" (assignment_expression "iVar1 = sqlite3_reset(pReplace)" identifier = (call_expression "sqlite3_reset(pReplace)" identifier (argument_list "(pReplace)" ( identifier )))) ;) (expression_statement "sqlite3_bind_null(pReplace,2);" (call_expression "sqlite3_bind_null(pReplace,2)" identifier (argument_list "(pReplace,2)" ( identifier , number_literal ))) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int __regparm3\nFUN_000f1ee0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_000f0ba0(0);\n  if (iVar2 == 0) {\n    FUN_000739f0(0,1,param_2,param_3);\n    FUN_000736b0(*param_5,0,0);\n    FUN_000ccd70(0);\n    iVar2 = FUN_000ac730(0);\n    FUN_00073a80(0,2);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    \n  FUN_00116110();\n}\n\n" (function_definition "int __regparm3\nFUN_000f1ee0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_000f0ba0(0);\n  if (iVar2 == 0) {\n    FUN_000739f0(0,1,param_2,param_3);\n    FUN_000736b0(*param_5,0,0);\n    FUN_000ccd70(0);\n    iVar2 = FUN_000ac730(0);\n    FUN_00073a80(0,2);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    \n  FUN_00116110();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000f1ee0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_000f0ba0(0);\n  if (iVar2 == 0) {\n    FUN_000739f0(0,1,param_2,param_3);\n    FUN_000736b0(*param_5,0,0);\n    FUN_000ccd70(0);\n    iVar2 = FUN_000ac730(0);\n    FUN_00073a80(0,2);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    \n  FUN_00116110();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = FUN_000f0ba0(0);" (assignment_expression "iVar2 = FUN_000f0ba0(0)" identifier = (call_expression "FUN_000f0ba0(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n    FUN_000739f0(0,1,param_2,param_3);\n    FUN_000736b0(*param_5,0,0);\n    FUN_000ccd70(0);\n    iVar2 = FUN_000ac730(0);\n    FUN_00073a80(0,2);\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_000739f0(0,1,param_2,param_3);\n    FUN_000736b0(*param_5,0,0);\n    FUN_000ccd70(0);\n    iVar2 = FUN_000ac730(0);\n    FUN_00073a80(0,2);\n  }" { (expression_statement "FUN_000739f0(0,1,param_2,param_3);" (call_expression "FUN_000739f0(0,1,param_2,param_3)" identifier (argument_list "(0,1,param_2,param_3)" ( number_literal , number_literal , identifier , identifier ))) ;) (expression_statement "FUN_000736b0(*param_5,0,0);" (call_expression "FUN_000736b0(*param_5,0,0)" identifier (argument_list "(*param_5,0,0)" ( (pointer_expression "*param_5" * identifier) , number_literal , number_literal ))) ;) (expression_statement "FUN_000ccd70(0);" (call_expression "FUN_000ccd70(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar2 = FUN_000ac730(0);" (assignment_expression "iVar2 = FUN_000ac730(0)" identifier = (call_expression "FUN_000ac730(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "FUN_00073a80(0,2);" (call_expression "FUN_00073a80(0,2)" identifier (argument_list "(0,2)" ( number_literal , number_literal ))) ;) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , LIT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , LIT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int __regparm3\nFUN_000f1ee0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_000f0ba0(0);\n  if (iVar2 == 0) {\n    FUN_000739f0(0,1,param_2,param_3);\n    FUN_000736b0(*param_5,0,0);\n    FUN_000ccd70(0);\n    iVar2 = FUN_000ac730(0);\n    FUN_00073a80(0,2);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    \n  FUN_00116110();\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000f1ee0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5)" (identifier "FUN_000f1ee0") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 *param_5" (type_identifier "undefined4") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_000f0ba0(0);\n  if (iVar2 == 0) {\n    FUN_000739f0(0,1,param_2,param_3);\n    FUN_000736b0(*param_5,0,0);\n    FUN_000ccd70(0);\n    iVar2 = FUN_000ac730(0);\n    FUN_00073a80(0,2);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    \n  FUN_00116110();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar2 = FUN_000f0ba0(0);" (assignment_expression "iVar2 = FUN_000f0ba0(0)" (identifier "iVar2") (= "=") (call_expression "FUN_000f0ba0(0)" (identifier "FUN_000f0ba0") (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n    FUN_000739f0(0,1,param_2,param_3);\n    FUN_000736b0(*param_5,0,0);\n    FUN_000ccd70(0);\n    iVar2 = FUN_000ac730(0);\n    FUN_00073a80(0,2);\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_000739f0(0,1,param_2,param_3);\n    FUN_000736b0(*param_5,0,0);\n    FUN_000ccd70(0);\n    iVar2 = FUN_000ac730(0);\n    FUN_00073a80(0,2);\n  }" ({ "{") (expression_statement "FUN_000739f0(0,1,param_2,param_3);" (call_expression "FUN_000739f0(0,1,param_2,param_3)" (identifier "FUN_000739f0") (argument_list "(0,1,param_2,param_3)" (( "(") (number_literal "0") (, ",") (number_literal "1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "FUN_000736b0(*param_5,0,0);" (call_expression "FUN_000736b0(*param_5,0,0)" (identifier "FUN_000736b0") (argument_list "(*param_5,0,0)" (( "(") (pointer_expression "*param_5" (* "*") (identifier "param_5")) (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_000ccd70(0);" (call_expression "FUN_000ccd70(0)" (identifier "FUN_000ccd70") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar2 = FUN_000ac730(0);" (assignment_expression "iVar2 = FUN_000ac730(0)" (identifier "iVar2") (= "=") (call_expression "FUN_000ac730(0)" (identifier "FUN_000ac730") (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (; ";")) (expression_statement "FUN_00073a80(0,2);" (call_expression "FUN_00073a80(0,2)" (identifier "FUN_00073a80") (argument_list "(0,2)" (( "(") (number_literal "0") (, ",") (number_literal "2") () ")"))) (; ";")) (} "}"))) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }" (if "if") (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return iVar2;\n  }" ({ "{") (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" (identifier "FUN_00116110") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* DWARF original prototype: int fts5StorageInsertDocsize(Fts5Storage * p, i64 iRowid, Fts5Buffer *
   pBuf, Fts5Buffer * pBuf) */

int __regparm3
function_1(type_1 *p,type_2 iRowid,type_3 *pBuf,type_3 *pBuf_1)

{
  int var_3;
  int var_1;
  type_4 *pReplace;
  int var_10;
  
  var_10 = *(int *)(var_1 + 0x14);
  pReplace = (type_4 *)0x0;
  var_3 = var_2(p,6,&pReplace,(char **)0x0);
  if (var_3 == 0) {
    var_4(pReplace,1,var_5(pBuf_1,pBuf));
    var_6(pReplace,2,(void *)*(type_5 *)iRowid,*iRowid._4_4_,(type_6 *)0x0,'\0')
    ;
    var_7(pReplace);
    var_3 = var_8(pReplace);
    var_9(pReplace,2);
  }
  if (var_10 == *(int *)(var_1 + 0x14)) {
    return var_3;
  }
                    /* WARNING: Subroutine does not return */
  var_11();
}


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

int __regparm3
MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
            undefined4 *param_5)

{
  int iVar1;
  int iVar2;
  int in_GS_OFFSET;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = FUN_000f0ba0(0);
  if (iVar2 == 0) {
    FUN_000739f0(0,1,param_2,param_3);
    FUN_000736b0(*param_5,0,0);
    FUN_000ccd70(0);
    iVar2 = FUN_000ac730(0);
    FUN_00073a80(0,2);
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00116110();
}

