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

int __regparm3 sqlite3Fts5StorageSync(Fts5Storage *p)

{
  Fts5Index *p_00;
  sqlite3_blob *pBlob;
  int iVar1;
  sqlite_int64 iRowid;
  
  iRowid = sqlite3_last_insert_rowid(p->pConfig->db);
  if (p->bTotalsValid != 0) {
    iVar1 = fts5StorageSaveTotals(p);
    p->bTotalsValid = 0;
    if (iVar1 != 0) goto LAB_000df603;
  }
  p_00 = p->pIndex;
  if (p_00->nPendingData != 0) {
    p_00->nPendingData = 0;
    fts5FlushOneHash(p_00);
  }
  pBlob = p_00->pReader;
  if (pBlob != (sqlite3_blob *)0x0) {
    p_00->pReader = (sqlite3_blob *)0x0;
    sqlite3_blob_close(pBlob);
  }
  iVar1 = p_00->rc;
  p_00->rc = 0;
LAB_000df603:
  sqlite3_set_last_insert_rowid(p->pConfig->db,iRowid);
  return iVar1;
}



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

int __regparm3 FUN_000df590(undefined4 *param_1)

{
  int iVar1;
  int iVar2;
  undefined8 uVar3;
  
  uVar3 = FUN_0001e6d0(*(undefined4 *)*param_1);
  if (param_1[2] != 0) {
    iVar2 = FUN_000cbc30();
    param_1[2] = 0;
    if (iVar2 != 0) goto LAB_000df603;
  }
  iVar1 = param_1[1];
  if (*(int *)(iVar1 + 0x10) != 0) {
    *(undefined4 *)(iVar1 + 0x10) = 0;
    FUN_000ded90();
  }
  iVar2 = *(int *)(iVar1 + 0x24);
  if (iVar2 != 0) {
    *(undefined4 *)(iVar1 + 0x24) = 0;
    FUN_0008b570(iVar2);
  }
  iVar2 = *(int *)(iVar1 + 0x20);
  *(undefined4 *)(iVar1 + 0x20) = 0;
LAB_000df603:
  FUN_0001e6e0(*(undefined4 *)*param_1,uVar3);
  return iVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00014d20
ADD EBX,0x6b939
SUB ESP,0x28
MOV EAX,dword ptr [EAX]
PUSH dword ptr [EAX]
CALL 0x0001e6d0
ADD ESP,0x10
MOV EBP,EDX
MOV EDX,dword ptr [ESI + 0x8]
MOV EDI,EAX
TEST EDX,EDX
JZ 0x000df5cd
MOV EAX,ESI
CALL 0x000cbc30
MOV dword ptr [ESI + 0x8],0x0
TEST EAX,EAX
JNZ 0x000df603
MOV EDX,dword ptr [ESI + 0x4]
MOV EAX,dword ptr [EDX + 0x10]
TEST EAX,EAX
JNZ 0x000df628
MOV EAX,dword ptr [EDX + 0x24]
TEST EAX,EAX
JZ 0x000df5f9
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0xc
MOV dword ptr [EDX + 0x24],0x0
PUSH EAX
CALL 0x0008b570
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [EDX + 0x20]
MOV dword ptr [EDX + 0x20],0x0
MOV EDX,dword ptr [ESI]
MOV dword ptr [ESP + 0xc],EAX
SUB ESP,0x4
PUSH EBP
PUSH EDI
PUSH dword ptr [EDX]
CALL 0x0001e6e0
MOV EAX,dword ptr [ESP + 0x1c]
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [EDX + 0x10],0x0
MOV EAX,EDX
MOV dword ptr [ESP + 0xc],EDX
CALL 0x000ded90
MOV EDX,dword ptr [ESP + 0xc]
JMP 0x000df5d7
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_000df590(undefined4 *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  uVar3 = FUN_0001e6d0(*(undefined4 *)*param_1);\n  if (param_1[2] != 0) {\n    iVar2 = FUN_000cbc30();\n    param_1[2] = 0;\n    if (iVar2 != 0) goto LAB_000df603;\n  }\n  iVar1 = param_1[1];\n  if (*(int *)(iVar1 + 0x10) != 0) {\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    FUN_000ded90();\n  }\n  iVar2 = *(int *)(iVar1 + 0x24);\n  if (iVar2 != 0) {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }\n  iVar2 = *(int *)(iVar1 + 0x20);\n  *(undefined4 *)(iVar1 + 0x20) = 0;\nLAB_000df603:\n  FUN_0001e6e0(*(undefined4 *)*param_1,uVar3);\n  return iVar2;\n}\n\n" comment (function_definition "int __regparm3 FUN_000df590(undefined4 *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  uVar3 = FUN_0001e6d0(*(undefined4 *)*param_1);\n  if (param_1[2] != 0) {\n    iVar2 = FUN_000cbc30();\n    param_1[2] = 0;\n    if (iVar2 != 0) goto LAB_000df603;\n  }\n  iVar1 = param_1[1];\n  if (*(int *)(iVar1 + 0x10) != 0) {\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    FUN_000ded90();\n  }\n  iVar2 = *(int *)(iVar1 + 0x24);\n  if (iVar2 != 0) {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }\n  iVar2 = *(int *)(iVar1 + 0x20);\n  *(undefined4 *)(iVar1 + 0x20) = 0;\nLAB_000df603:\n  FUN_0001e6e0(*(undefined4 *)*param_1,uVar3);\n  return iVar2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000df590(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  uVar3 = FUN_0001e6d0(*(undefined4 *)*param_1);\n  if (param_1[2] != 0) {\n    iVar2 = FUN_000cbc30();\n    param_1[2] = 0;\n    if (iVar2 != 0) goto LAB_000df603;\n  }\n  iVar1 = param_1[1];\n  if (*(int *)(iVar1 + 0x10) != 0) {\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    FUN_000ded90();\n  }\n  iVar2 = *(int *)(iVar1 + 0x24);\n  if (iVar2 != 0) {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }\n  iVar2 = *(int *)(iVar1 + 0x20);\n  *(undefined4 *)(iVar1 + 0x20) = 0;\nLAB_000df603:\n  FUN_0001e6e0(*(undefined4 *)*param_1,uVar3);\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = FUN_0001e6d0(*(undefined4 *)*param_1);" (assignment_expression "uVar3 = FUN_0001e6d0(*(undefined4 *)*param_1)" identifier = (call_expression "FUN_0001e6d0(*(undefined4 *)*param_1)" identifier (argument_list "(*(undefined4 *)*param_1)" ( (pointer_expression "*(undefined4 *)*param_1" * (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) )))) ;) (if_statement "if (param_1[2] != 0) {\n    iVar2 = FUN_000cbc30();\n    param_1[2] = 0;\n    if (iVar2 != 0) goto LAB_000df603;\n  }" if (parenthesized_expression "(param_1[2] != 0)" ( (binary_expression "param_1[2] != 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    iVar2 = FUN_000cbc30();\n    param_1[2] = 0;\n    if (iVar2 != 0) goto LAB_000df603;\n  }" { (expression_statement "iVar2 = FUN_000cbc30();" (assignment_expression "iVar2 = FUN_000cbc30()" identifier = (call_expression "FUN_000cbc30()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (iVar2 != 0) goto LAB_000df603;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000df603;" goto statement_identifier ;)) })) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (*(int *)(iVar1 + 0x10) != 0) {\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    FUN_000ded90();\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x10) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x10) != 0" (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    FUN_000ded90();\n  }" { (expression_statement "*(undefined4 *)(iVar1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_000ded90();" (call_expression "FUN_000ded90()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar2 = *(int *)(iVar1 + 0x24);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x24)" identifier = (pointer_expression "*(int *)(iVar1 + 0x24)" * (cast_expression "(int *)(iVar1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }" { (expression_statement "*(undefined4 *)(iVar1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x24) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" * (cast_expression "(undefined4 *)(iVar1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_0008b570(iVar2);" (call_expression "FUN_0008b570(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) })) (expression_statement "iVar2 = *(int *)(iVar1 + 0x20);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x20)" identifier = (pointer_expression "*(int *)(iVar1 + 0x20)" * (cast_expression "(int *)(iVar1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = number_literal) ;) (labeled_statement "LAB_000df603:\n  FUN_0001e6e0(*(undefined4 *)*param_1,uVar3);" statement_identifier : (expression_statement "FUN_0001e6e0(*(undefined4 *)*param_1,uVar3);" (call_expression "FUN_0001e6e0(*(undefined4 *)*param_1,uVar3)" identifier (argument_list "(*(undefined4 *)*param_1,uVar3)" ( (pointer_expression "*(undefined4 *)*param_1" * (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) , identifier ))) ;)) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 sqlite3Fts5StorageSync(Fts5Storage *p)\n\n{\n  Fts5Index *p_00;\n  sqlite3_blob *pBlob;\n  int iVar1;\n  sqlite_int64 iRowid;\n  \n  iRowid = sqlite3_last_insert_rowid(p->pConfig->db);\n  if (p->bTotalsValid != 0) {\n    iVar1 = fts5StorageSaveTotals(p);\n    p->bTotalsValid = 0;\n    if (iVar1 != 0) goto LAB_000df603;\n  }\n  p_00 = p->pIndex;\n  if (p_00->nPendingData != 0) {\n    p_00->nPendingData = 0;\n    fts5FlushOneHash(p_00);\n  }\n  pBlob = p_00->pReader;\n  if (pBlob != (sqlite3_blob *)0x0) {\n    p_00->pReader = (sqlite3_blob *)0x0;\n    sqlite3_blob_close(pBlob);\n  }\n  iVar1 = p_00->rc;\n  p_00->rc = 0;\nLAB_000df603:\n  sqlite3_set_last_insert_rowid(p->pConfig->db,iRowid);\n  return iVar1;\n}\n\n" comment (function_definition "int __regparm3 sqlite3Fts5StorageSync(Fts5Storage *p)\n\n{\n  Fts5Index *p_00;\n  sqlite3_blob *pBlob;\n  int iVar1;\n  sqlite_int64 iRowid;\n  \n  iRowid = sqlite3_last_insert_rowid(p->pConfig->db);\n  if (p->bTotalsValid != 0) {\n    iVar1 = fts5StorageSaveTotals(p);\n    p->bTotalsValid = 0;\n    if (iVar1 != 0) goto LAB_000df603;\n  }\n  p_00 = p->pIndex;\n  if (p_00->nPendingData != 0) {\n    p_00->nPendingData = 0;\n    fts5FlushOneHash(p_00);\n  }\n  pBlob = p_00->pReader;\n  if (pBlob != (sqlite3_blob *)0x0) {\n    p_00->pReader = (sqlite3_blob *)0x0;\n    sqlite3_blob_close(pBlob);\n  }\n  iVar1 = p_00->rc;\n  p_00->rc = 0;\nLAB_000df603:\n  sqlite3_set_last_insert_rowid(p->pConfig->db,iRowid);\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3Fts5StorageSync(Fts5Storage *p)" identifier (parameter_list "(Fts5Storage *p)" ( (parameter_declaration "Fts5Storage *p" type_identifier (pointer_declarator "*p" * identifier)) ))) (compound_statement "{\n  Fts5Index *p_00;\n  sqlite3_blob *pBlob;\n  int iVar1;\n  sqlite_int64 iRowid;\n  \n  iRowid = sqlite3_last_insert_rowid(p->pConfig->db);\n  if (p->bTotalsValid != 0) {\n    iVar1 = fts5StorageSaveTotals(p);\n    p->bTotalsValid = 0;\n    if (iVar1 != 0) goto LAB_000df603;\n  }\n  p_00 = p->pIndex;\n  if (p_00->nPendingData != 0) {\n    p_00->nPendingData = 0;\n    fts5FlushOneHash(p_00);\n  }\n  pBlob = p_00->pReader;\n  if (pBlob != (sqlite3_blob *)0x0) {\n    p_00->pReader = (sqlite3_blob *)0x0;\n    sqlite3_blob_close(pBlob);\n  }\n  iVar1 = p_00->rc;\n  p_00->rc = 0;\nLAB_000df603:\n  sqlite3_set_last_insert_rowid(p->pConfig->db,iRowid);\n  return iVar1;\n}" { (declaration "Fts5Index *p_00;" type_identifier (pointer_declarator "*p_00" * identifier) ;) (declaration "sqlite3_blob *pBlob;" type_identifier (pointer_declarator "*pBlob" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "sqlite_int64 iRowid;" type_identifier identifier ;) (expression_statement "iRowid = sqlite3_last_insert_rowid(p->pConfig->db);" (assignment_expression "iRowid = sqlite3_last_insert_rowid(p->pConfig->db)" identifier = (call_expression "sqlite3_last_insert_rowid(p->pConfig->db)" identifier (argument_list "(p->pConfig->db)" ( (field_expression "p->pConfig->db" (field_expression "p->pConfig" identifier -> field_identifier) -> field_identifier) )))) ;) (if_statement "if (p->bTotalsValid != 0) {\n    iVar1 = fts5StorageSaveTotals(p);\n    p->bTotalsValid = 0;\n    if (iVar1 != 0) goto LAB_000df603;\n  }" if (parenthesized_expression "(p->bTotalsValid != 0)" ( (binary_expression "p->bTotalsValid != 0" (field_expression "p->bTotalsValid" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n    iVar1 = fts5StorageSaveTotals(p);\n    p->bTotalsValid = 0;\n    if (iVar1 != 0) goto LAB_000df603;\n  }" { (expression_statement "iVar1 = fts5StorageSaveTotals(p);" (assignment_expression "iVar1 = fts5StorageSaveTotals(p)" identifier = (call_expression "fts5StorageSaveTotals(p)" identifier (argument_list "(p)" ( identifier )))) ;) (expression_statement "p->bTotalsValid = 0;" (assignment_expression "p->bTotalsValid = 0" (field_expression "p->bTotalsValid" identifier -> field_identifier) = number_literal) ;) (if_statement "if (iVar1 != 0) goto LAB_000df603;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000df603;" goto statement_identifier ;)) })) (expression_statement "p_00 = p->pIndex;" (assignment_expression "p_00 = p->pIndex" identifier = (field_expression "p->pIndex" identifier -> field_identifier)) ;) (if_statement "if (p_00->nPendingData != 0) {\n    p_00->nPendingData = 0;\n    fts5FlushOneHash(p_00);\n  }" if (parenthesized_expression "(p_00->nPendingData != 0)" ( (binary_expression "p_00->nPendingData != 0" (field_expression "p_00->nPendingData" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n    p_00->nPendingData = 0;\n    fts5FlushOneHash(p_00);\n  }" { (expression_statement "p_00->nPendingData = 0;" (assignment_expression "p_00->nPendingData = 0" (field_expression "p_00->nPendingData" identifier -> field_identifier) = number_literal) ;) (expression_statement "fts5FlushOneHash(p_00);" (call_expression "fts5FlushOneHash(p_00)" identifier (argument_list "(p_00)" ( identifier ))) ;) })) (expression_statement "pBlob = p_00->pReader;" (assignment_expression "pBlob = p_00->pReader" identifier = (field_expression "p_00->pReader" identifier -> field_identifier)) ;) (if_statement "if (pBlob != (sqlite3_blob *)0x0) {\n    p_00->pReader = (sqlite3_blob *)0x0;\n    sqlite3_blob_close(pBlob);\n  }" if (parenthesized_expression "(pBlob != (sqlite3_blob *)0x0)" ( (binary_expression "pBlob != (sqlite3_blob *)0x0" identifier != (cast_expression "(sqlite3_blob *)0x0" ( (type_descriptor "sqlite3_blob *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    p_00->pReader = (sqlite3_blob *)0x0;\n    sqlite3_blob_close(pBlob);\n  }" { (expression_statement "p_00->pReader = (sqlite3_blob *)0x0;" (assignment_expression "p_00->pReader = (sqlite3_blob *)0x0" (field_expression "p_00->pReader" identifier -> field_identifier) = (cast_expression "(sqlite3_blob *)0x0" ( (type_descriptor "sqlite3_blob *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sqlite3_blob_close(pBlob);" (call_expression "sqlite3_blob_close(pBlob)" identifier (argument_list "(pBlob)" ( identifier ))) ;) })) (expression_statement "iVar1 = p_00->rc;" (assignment_expression "iVar1 = p_00->rc" identifier = (field_expression "p_00->rc" identifier -> field_identifier)) ;) (expression_statement "p_00->rc = 0;" (assignment_expression "p_00->rc = 0" (field_expression "p_00->rc" identifier -> field_identifier) = number_literal) ;) (labeled_statement "LAB_000df603:\n  sqlite3_set_last_insert_rowid(p->pConfig->db,iRowid);" statement_identifier : (expression_statement "sqlite3_set_last_insert_rowid(p->pConfig->db,iRowid);" (call_expression "sqlite3_set_last_insert_rowid(p->pConfig->db,iRowid)" identifier (argument_list "(p->pConfig->db,iRowid)" ( (field_expression "p->pConfig->db" (field_expression "p->pConfig" identifier -> field_identifier) -> field_identifier) , identifier ))) ;)) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int __regparm3 FUN_000df590(undefined4 *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  uVar3 = FUN_0001e6d0(*(undefined4 *)*param_1);\n  if (param_1[2] != 0) {\n    iVar2 = FUN_000cbc30();\n    param_1[2] = 0;\n    if (iVar2 != 0) goto LAB_000df603;\n  }\n  iVar1 = param_1[1];\n  if (*(int *)(iVar1 + 0x10) != 0) {\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    FUN_000ded90();\n  }\n  iVar2 = *(int *)(iVar1 + 0x24);\n  if (iVar2 != 0) {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }\n  iVar2 = *(int *)(iVar1 + 0x20);\n  *(undefined4 *)(iVar1 + 0x20) = 0;\nLAB_000df603:\n  FUN_0001e6e0(*(undefined4 *)*param_1,uVar3);\n  return iVar2;\n}\n\n" (function_definition "int __regparm3 FUN_000df590(undefined4 *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  uVar3 = FUN_0001e6d0(*(undefined4 *)*param_1);\n  if (param_1[2] != 0) {\n    iVar2 = FUN_000cbc30();\n    param_1[2] = 0;\n    if (iVar2 != 0) goto LAB_000df603;\n  }\n  iVar1 = param_1[1];\n  if (*(int *)(iVar1 + 0x10) != 0) {\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    FUN_000ded90();\n  }\n  iVar2 = *(int *)(iVar1 + 0x24);\n  if (iVar2 != 0) {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }\n  iVar2 = *(int *)(iVar1 + 0x20);\n  *(undefined4 *)(iVar1 + 0x20) = 0;\nLAB_000df603:\n  FUN_0001e6e0(*(undefined4 *)*param_1,uVar3);\n  return iVar2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000df590(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  uVar3 = FUN_0001e6d0(*(undefined4 *)*param_1);\n  if (param_1[2] != 0) {\n    iVar2 = FUN_000cbc30();\n    param_1[2] = 0;\n    if (iVar2 != 0) goto LAB_000df603;\n  }\n  iVar1 = param_1[1];\n  if (*(int *)(iVar1 + 0x10) != 0) {\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    FUN_000ded90();\n  }\n  iVar2 = *(int *)(iVar1 + 0x24);\n  if (iVar2 != 0) {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }\n  iVar2 = *(int *)(iVar1 + 0x20);\n  *(undefined4 *)(iVar1 + 0x20) = 0;\nLAB_000df603:\n  FUN_0001e6e0(*(undefined4 *)*param_1,uVar3);\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = FUN_0001e6d0(*(undefined4 *)*param_1);" (assignment_expression "uVar3 = FUN_0001e6d0(*(undefined4 *)*param_1)" identifier = (call_expression "FUN_0001e6d0(*(undefined4 *)*param_1)" identifier (argument_list "(*(undefined4 *)*param_1)" ( (pointer_expression "*(undefined4 *)*param_1" * (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) )))) ;) (if_statement "if (param_1[2] != 0) {\n    iVar2 = FUN_000cbc30();\n    param_1[2] = 0;\n    if (iVar2 != 0) goto LAB_000df603;\n  }" if (parenthesized_expression "(param_1[2] != 0)" ( (binary_expression "param_1[2] != 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    iVar2 = FUN_000cbc30();\n    param_1[2] = 0;\n    if (iVar2 != 0) goto LAB_000df603;\n  }" { (expression_statement "iVar2 = FUN_000cbc30();" (assignment_expression "iVar2 = FUN_000cbc30()" identifier = (call_expression "FUN_000cbc30()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (iVar2 != 0) goto LAB_000df603;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000df603;" goto statement_identifier ;)) })) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (*(int *)(iVar1 + 0x10) != 0) {\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    FUN_000ded90();\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x10) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x10) != 0" (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    FUN_000ded90();\n  }" { (expression_statement "*(undefined4 *)(iVar1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_000ded90();" (call_expression "FUN_000ded90()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar2 = *(int *)(iVar1 + 0x24);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x24)" identifier = (pointer_expression "*(int *)(iVar1 + 0x24)" * (cast_expression "(int *)(iVar1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }" { (expression_statement "*(undefined4 *)(iVar1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x24) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" * (cast_expression "(undefined4 *)(iVar1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_0008b570(iVar2);" (call_expression "FUN_0008b570(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) })) (expression_statement "iVar2 = *(int *)(iVar1 + 0x20);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x20)" identifier = (pointer_expression "*(int *)(iVar1 + 0x20)" * (cast_expression "(int *)(iVar1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = number_literal) ;) (labeled_statement "LAB_000df603:\n  FUN_0001e6e0(*(undefined4 *)*param_1,uVar3);" statement_identifier : (expression_statement "FUN_0001e6e0(*(undefined4 *)*param_1,uVar3);" (call_expression "FUN_0001e6e0(*(undefined4 *)*param_1,uVar3)" identifier (argument_list "(*(undefined4 *)*param_1,uVar3)" ( (pointer_expression "*(undefined4 *)*param_1" * (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) , identifier ))) ;)) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (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 ( ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + 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 IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) , IDENT ))) ;)) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_000df590(undefined4 *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  uVar3 = FUN_0001e6d0(*(undefined4 *)*param_1);\n  if (param_1[2] != 0) {\n    iVar2 = FUN_000cbc30();\n    param_1[2] = 0;\n    if (iVar2 != 0) goto LAB_000df603;\n  }\n  iVar1 = param_1[1];\n  if (*(int *)(iVar1 + 0x10) != 0) {\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    FUN_000ded90();\n  }\n  iVar2 = *(int *)(iVar1 + 0x24);\n  if (iVar2 != 0) {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }\n  iVar2 = *(int *)(iVar1 + 0x20);\n  *(undefined4 *)(iVar1 + 0x20) = 0;\nLAB_000df603:\n  FUN_0001e6e0(*(undefined4 *)*param_1,uVar3);\n  return iVar2;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000df590(undefined4 *param_1)" (identifier "FUN_000df590") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  uVar3 = FUN_0001e6d0(*(undefined4 *)*param_1);\n  if (param_1[2] != 0) {\n    iVar2 = FUN_000cbc30();\n    param_1[2] = 0;\n    if (iVar2 != 0) goto LAB_000df603;\n  }\n  iVar1 = param_1[1];\n  if (*(int *)(iVar1 + 0x10) != 0) {\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    FUN_000ded90();\n  }\n  iVar2 = *(int *)(iVar1 + 0x24);\n  if (iVar2 != 0) {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }\n  iVar2 = *(int *)(iVar1 + 0x20);\n  *(undefined4 *)(iVar1 + 0x20) = 0;\nLAB_000df603:\n  FUN_0001e6e0(*(undefined4 *)*param_1,uVar3);\n  return iVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (expression_statement "uVar3 = FUN_0001e6d0(*(undefined4 *)*param_1);" (assignment_expression "uVar3 = FUN_0001e6d0(*(undefined4 *)*param_1)" (identifier "uVar3") (= "=") (call_expression "FUN_0001e6d0(*(undefined4 *)*param_1)" (identifier "FUN_0001e6d0") (argument_list "(*(undefined4 *)*param_1)" (( "(") (pointer_expression "*(undefined4 *)*param_1" (* "*") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) () ")")))) (; ";")) (if_statement "if (param_1[2] != 0) {\n    iVar2 = FUN_000cbc30();\n    param_1[2] = 0;\n    if (iVar2 != 0) goto LAB_000df603;\n  }" (if "if") (parenthesized_expression "(param_1[2] != 0)" (( "(") (binary_expression "param_1[2] != 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = FUN_000cbc30();\n    param_1[2] = 0;\n    if (iVar2 != 0) goto LAB_000df603;\n  }" ({ "{") (expression_statement "iVar2 = FUN_000cbc30();" (assignment_expression "iVar2 = FUN_000cbc30()" (identifier "iVar2") (= "=") (call_expression "FUN_000cbc30()" (identifier "FUN_000cbc30") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar2 != 0) goto LAB_000df603;" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000df603;" (goto "goto") (statement_identifier "LAB_000df603") (; ";"))) (} "}"))) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" (identifier "iVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (*(int *)(iVar1 + 0x10) != 0) {\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    FUN_000ded90();\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x10) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x10) != 0" (pointer_expression "*(int *)(iVar1 + 0x10)" (* "*") (cast_expression "(int *)(iVar1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    FUN_000ded90();\n  }" ({ "{") (expression_statement "*(undefined4 *)(iVar1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_000ded90();" (call_expression "FUN_000ded90()" (identifier "FUN_000ded90") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar2 = *(int *)(iVar1 + 0x24);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x24)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar1 + 0x24)" (* "*") (cast_expression "(int *)(iVar1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x24)" (( "(") (binary_expression "iVar1 + 0x24" (identifier "iVar1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (if_statement "if (iVar2 != 0) {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }" ({ "{") (expression_statement "*(undefined4 *)(iVar1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x24) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x24)" (( "(") (binary_expression "iVar1 + 0x24" (identifier "iVar1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0008b570(iVar2);" (call_expression "FUN_0008b570(iVar2)" (identifier "FUN_0008b570") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar2 = *(int *)(iVar1 + 0x20);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x20)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar1 + 0x20)" (* "*") (cast_expression "(int *)(iVar1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_000df603:\n  FUN_0001e6e0(*(undefined4 *)*param_1,uVar3);" (statement_identifier "LAB_000df603") (: ":") (expression_statement "FUN_0001e6e0(*(undefined4 *)*param_1,uVar3);" (call_expression "FUN_0001e6e0(*(undefined4 *)*param_1,uVar3)" (identifier "FUN_0001e6e0") (argument_list "(*(undefined4 *)*param_1,uVar3)" (( "(") (pointer_expression "*(undefined4 *)*param_1" (* "*") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (, ",") (identifier "uVar3") () ")"))) (; ";"))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

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

int __regparm3 function_1(type_1 *p)

{
  type_2 *p_00;
  type_3 *var_5;
  int var_3;
  type_4 iRowid;
  
  iRowid = var_1(p->pConfig->db);
  if (p->bTotalsValid != 0) {
    var_3 = var_2(p);
    p->bTotalsValid = 0;
    if (var_3 != 0) goto LAB_000df603;
  }
  p_00 = p->pIndex;
  if (p_00->nPendingData != 0) {
    p_00->nPendingData = 0;
    var_4(p_00);
  }
  var_5 = p_00->pReader;
  if (var_5 != (type_3 *)0x0) {
    p_00->pReader = (type_3 *)0x0;
    var_6(var_5);
  }
  var_3 = p_00->rc;
  p_00->rc = 0;
LAB_000df603:
  var_7(p->pConfig->db,iRowid);
  return var_3;
}


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

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

int __regparm3 MASKED(undefined4 *param_1)

{
  int iVar1;
  int iVar2;
  undefined8 uVar3;
  
  uVar3 = FUN_0001e6d0(*(undefined4 *)*param_1);
  if (param_1[2] != 0) {
    iVar2 = FUN_000cbc30();
    param_1[2] = 0;
    if (iVar2 != 0) goto LAB_000df603;
  }
  iVar1 = param_1[1];
  if (*(int *)(iVar1 + 0x10) != 0) {
    *(undefined4 *)(iVar1 + 0x10) = 0;
    FUN_000ded90();
  }
  iVar2 = *(int *)(iVar1 + 0x24);
  if (iVar2 != 0) {
    *(undefined4 *)(iVar1 + 0x24) = 0;
    FUN_0008b570(iVar2);
  }
  iVar2 = *(int *)(iVar1 + 0x20);
  *(undefined4 *)(iVar1 + 0x20) = 0;
LAB_000df603:
  FUN_0001e6e0(*(undefined4 *)*param_1,uVar3);
  return iVar2;
}

