
int __regparm3 fts5NewTransaction(Fts5FullTable *pTab)

{
  Fts5FullTable *pFVar1;
  Fts5Cursor *pFVar2;
  Fts5Index *p;
  int iVar3;
  i64 iVar4;
  
  pFVar2 = pTab->pGlobal->pCsr;
  if (pFVar2 != (Fts5Cursor *)0x0) {
    pFVar1 = (Fts5FullTable *)(pFVar2->base).pVtab;
    while( true ) {
      if (pTab == pFVar1) {
        return 0;
      }
      pFVar2 = pFVar2->pNext;
      if (pFVar2 == (Fts5Cursor *)0x0) break;
      pFVar1 = (Fts5FullTable *)(pFVar2->base).pVtab;
    }
  }
  p = pTab->pStorage->pIndex;
  iVar4 = fts5IndexDataVersion(p);
  if (iVar4 == p->iStructVersion) {
    iVar3 = p->rc;
    p->rc = 0;
    return iVar3;
  }
  fts5StructureInvalidate((Fts5Index *)&p->pStruct);
  iVar3 = p->rc;
  p->rc = 0;
  return iVar3;
}



undefined4 __regparm3 FUN_000ca200(int param_1)

{
  int iVar1;
  int *piVar2;
  undefined4 uVar3;
  longlong lVar4;
  
  piVar2 = *(int **)(*(int *)(param_1 + 0x18) + 0x28);
  if (piVar2 != (int *)0x0) {
    iVar1 = *piVar2;
    while( true ) {
      if (param_1 == iVar1) {
        return 0;
      }
      piVar2 = (int *)piVar2[1];
      if (piVar2 == (int *)0x0) break;
      iVar1 = *piVar2;
    }
  }
  iVar1 = *(int *)(*(int *)(param_1 + 0x14) + 4);
  lVar4 = FUN_000ca130();
  if (lVar4 == *(longlong *)(iVar1 + 0x44)) {
    uVar3 = *(undefined4 *)(iVar1 + 0x20);
    *(undefined4 *)(iVar1 + 0x20) = 0;
    return uVar3;
  }
  FUN_00032f20();
  uVar3 = *(undefined4 *)(iVar1 + 0x20);
  *(undefined4 *)(iVar1 + 0x20) = 0;
  return uVar3;
}


MOV EDX,dword ptr [EAX + 0x18]
MOV EDX,dword ptr [EDX + 0x28]
TEST EDX,EDX
JZ 0x000ca21b
CMP EAX,dword ptr [EDX]
JNZ 0x000ca214
JMP 0x000ca260
CMP dword ptr [EDX],EAX
JZ 0x000ca260
MOV EDX,dword ptr [EDX + 0x4]
TEST EDX,EDX
JNZ 0x000ca210
PUSH EBX
SUB ESP,0x8
MOV EAX,dword ptr [EAX + 0x14]
MOV EBX,dword ptr [EAX + 0x4]
MOV EAX,EBX
CALL 0x000ca130
XOR EAX,dword ptr [EBX + 0x44]
XOR EDX,dword ptr [EBX + 0x48]
OR EDX,EAX
JNZ 0x000ca248
MOV EAX,dword ptr [EBX + 0x20]
MOV dword ptr [EBX + 0x20],0x0
ADD ESP,0x8
POP EBX
RET
LEA EAX,[EBX + 0x4c]
CALL 0x00032f20
MOV EAX,dword ptr [EBX + 0x20]
MOV dword ptr [EBX + 0x20],0x0
ADD ESP,0x8
POP EBX
RET
XOR EAX,EAX
RET
(translation_unit "undefined4 __regparm3 FUN_000ca200(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  longlong lVar4;\n  \n  piVar2 = *(int **)(*(int *)(param_1 + 0x18) + 0x28);\n  if (piVar2 != (int *)0x0) {\n    iVar1 = *piVar2;\n    while( true ) {\n      if (param_1 == iVar1) {\n        return 0;\n      }\n      piVar2 = (int *)piVar2[1];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n  }\n  iVar1 = *(int *)(*(int *)(param_1 + 0x14) + 4);\n  lVar4 = FUN_000ca130();\n  if (lVar4 == *(longlong *)(iVar1 + 0x44)) {\n    uVar3 = *(undefined4 *)(iVar1 + 0x20);\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    return uVar3;\n  }\n  FUN_00032f20();\n  uVar3 = *(undefined4 *)(iVar1 + 0x20);\n  *(undefined4 *)(iVar1 + 0x20) = 0;\n  return uVar3;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_000ca200(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  longlong lVar4;\n  \n  piVar2 = *(int **)(*(int *)(param_1 + 0x18) + 0x28);\n  if (piVar2 != (int *)0x0) {\n    iVar1 = *piVar2;\n    while( true ) {\n      if (param_1 == iVar1) {\n        return 0;\n      }\n      piVar2 = (int *)piVar2[1];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n  }\n  iVar1 = *(int *)(*(int *)(param_1 + 0x14) + 4);\n  lVar4 = FUN_000ca130();\n  if (lVar4 == *(longlong *)(iVar1 + 0x44)) {\n    uVar3 = *(undefined4 *)(iVar1 + 0x20);\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    return uVar3;\n  }\n  FUN_00032f20();\n  uVar3 = *(undefined4 *)(iVar1 + 0x20);\n  *(undefined4 *)(iVar1 + 0x20) = 0;\n  return uVar3;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000ca200(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  longlong lVar4;\n  \n  piVar2 = *(int **)(*(int *)(param_1 + 0x18) + 0x28);\n  if (piVar2 != (int *)0x0) {\n    iVar1 = *piVar2;\n    while( true ) {\n      if (param_1 == iVar1) {\n        return 0;\n      }\n      piVar2 = (int *)piVar2[1];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n  }\n  iVar1 = *(int *)(*(int *)(param_1 + 0x14) + 4);\n  lVar4 = FUN_000ca130();\n  if (lVar4 == *(longlong *)(iVar1 + 0x44)) {\n    uVar3 = *(undefined4 *)(iVar1 + 0x20);\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    return uVar3;\n  }\n  FUN_00032f20();\n  uVar3 = *(undefined4 *)(iVar1 + 0x20);\n  *(undefined4 *)(iVar1 + 0x20) = 0;\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "longlong lVar4;" type_identifier identifier ;) (expression_statement "piVar2 = *(int **)(*(int *)(param_1 + 0x18) + 0x28);" (assignment_expression "piVar2 = *(int **)(*(int *)(param_1 + 0x18) + 0x28)" identifier = (pointer_expression "*(int **)(*(int *)(param_1 + 0x18) + 0x28)" * (cast_expression "(int **)(*(int *)(param_1 + 0x18) + 0x28)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + 0x28)" ( (binary_expression "*(int *)(param_1 + 0x18) + 0x28" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n    iVar1 = *piVar2;\n    while( true ) {\n      if (param_1 == iVar1) {\n        return 0;\n      }\n      piVar2 = (int *)piVar2[1];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n  }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = *piVar2;\n    while( true ) {\n      if (param_1 == iVar1) {\n        return 0;\n      }\n      piVar2 = (int *)piVar2[1];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n  }" { (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (while_statement "while( true ) {\n      if (param_1 == iVar1) {\n        return 0;\n      }\n      piVar2 = (int *)piVar2[1];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (param_1 == iVar1) {\n        return 0;\n      }\n      piVar2 = (int *)piVar2[1];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }" { (if_statement "if (param_1 == iVar1) {\n        return 0;\n      }" if (parenthesized_expression "(param_1 == iVar1)" ( (binary_expression "param_1 == iVar1" identifier == identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "piVar2 = (int *)piVar2[1];" (assignment_expression "piVar2 = (int *)piVar2[1]" identifier = (cast_expression "(int *)piVar2[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ]))) ;) (if_statement "if (piVar2 == (int *)0x0) break;" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) })) (expression_statement "iVar1 = *(int *)(*(int *)(param_1 + 0x14) + 4);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_1 + 0x14) + 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x14) + 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x14) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x14) + 4)" ( (binary_expression "*(int *)(param_1 + 0x14) + 4" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "lVar4 = FUN_000ca130();" (assignment_expression "lVar4 = FUN_000ca130()" identifier = (call_expression "FUN_000ca130()" identifier (argument_list "()" ( )))) ;) (if_statement "if (lVar4 == *(longlong *)(iVar1 + 0x44)) {\n    uVar3 = *(undefined4 *)(iVar1 + 0x20);\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    return uVar3;\n  }" if (parenthesized_expression "(lVar4 == *(longlong *)(iVar1 + 0x44))" ( (binary_expression "lVar4 == *(longlong *)(iVar1 + 0x44)" identifier == (pointer_expression "*(longlong *)(iVar1 + 0x44)" * (cast_expression "(longlong *)(iVar1 + 0x44)" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x44)" ( (binary_expression "iVar1 + 0x44" identifier + number_literal) ))))) )) (compound_statement "{\n    uVar3 = *(undefined4 *)(iVar1 + 0x20);\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    return uVar3;\n  }" { (expression_statement "uVar3 = *(undefined4 *)(iVar1 + 0x20);" (assignment_expression "uVar3 = *(undefined4 *)(iVar1 + 0x20)" identifier = (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) ))))) ;) (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) ;) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "FUN_00032f20();" (call_expression "FUN_00032f20()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar3 = *(undefined4 *)(iVar1 + 0x20);" (assignment_expression "uVar3 = *(undefined4 *)(iVar1 + 0x20)" identifier = (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) ))))) ;) (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) ;) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "int __regparm3 fts5NewTransaction(Fts5FullTable *pTab)\n\n{\n  Fts5FullTable *pFVar1;\n  Fts5Cursor *pFVar2;\n  Fts5Index *p;\n  int iVar3;\n  i64 iVar4;\n  \n  pFVar2 = pTab->pGlobal->pCsr;\n  if (pFVar2 != (Fts5Cursor *)0x0) {\n    pFVar1 = (Fts5FullTable *)(pFVar2->base).pVtab;\n    while( true ) {\n      if (pTab == pFVar1) {\n        return 0;\n      }\n      pFVar2 = pFVar2->pNext;\n      if (pFVar2 == (Fts5Cursor *)0x0) break;\n      pFVar1 = (Fts5FullTable *)(pFVar2->base).pVtab;\n    }\n  }\n  p = pTab->pStorage->pIndex;\n  iVar4 = fts5IndexDataVersion(p);\n  if (iVar4 == p->iStructVersion) {\n    iVar3 = p->rc;\n    p->rc = 0;\n    return iVar3;\n  }\n  fts5StructureInvalidate((Fts5Index *)&p->pStruct);\n  iVar3 = p->rc;\n  p->rc = 0;\n  return iVar3;\n}\n\n" (function_definition "int __regparm3 fts5NewTransaction(Fts5FullTable *pTab)\n\n{\n  Fts5FullTable *pFVar1;\n  Fts5Cursor *pFVar2;\n  Fts5Index *p;\n  int iVar3;\n  i64 iVar4;\n  \n  pFVar2 = pTab->pGlobal->pCsr;\n  if (pFVar2 != (Fts5Cursor *)0x0) {\n    pFVar1 = (Fts5FullTable *)(pFVar2->base).pVtab;\n    while( true ) {\n      if (pTab == pFVar1) {\n        return 0;\n      }\n      pFVar2 = pFVar2->pNext;\n      if (pFVar2 == (Fts5Cursor *)0x0) break;\n      pFVar1 = (Fts5FullTable *)(pFVar2->base).pVtab;\n    }\n  }\n  p = pTab->pStorage->pIndex;\n  iVar4 = fts5IndexDataVersion(p);\n  if (iVar4 == p->iStructVersion) {\n    iVar3 = p->rc;\n    p->rc = 0;\n    return iVar3;\n  }\n  fts5StructureInvalidate((Fts5Index *)&p->pStruct);\n  iVar3 = p->rc;\n  p->rc = 0;\n  return iVar3;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "fts5NewTransaction(Fts5FullTable *pTab)" identifier (parameter_list "(Fts5FullTable *pTab)" ( (parameter_declaration "Fts5FullTable *pTab" type_identifier (pointer_declarator "*pTab" * identifier)) ))) (compound_statement "{\n  Fts5FullTable *pFVar1;\n  Fts5Cursor *pFVar2;\n  Fts5Index *p;\n  int iVar3;\n  i64 iVar4;\n  \n  pFVar2 = pTab->pGlobal->pCsr;\n  if (pFVar2 != (Fts5Cursor *)0x0) {\n    pFVar1 = (Fts5FullTable *)(pFVar2->base).pVtab;\n    while( true ) {\n      if (pTab == pFVar1) {\n        return 0;\n      }\n      pFVar2 = pFVar2->pNext;\n      if (pFVar2 == (Fts5Cursor *)0x0) break;\n      pFVar1 = (Fts5FullTable *)(pFVar2->base).pVtab;\n    }\n  }\n  p = pTab->pStorage->pIndex;\n  iVar4 = fts5IndexDataVersion(p);\n  if (iVar4 == p->iStructVersion) {\n    iVar3 = p->rc;\n    p->rc = 0;\n    return iVar3;\n  }\n  fts5StructureInvalidate((Fts5Index *)&p->pStruct);\n  iVar3 = p->rc;\n  p->rc = 0;\n  return iVar3;\n}" { (declaration "Fts5FullTable *pFVar1;" type_identifier (pointer_declarator "*pFVar1" * identifier) ;) (declaration "Fts5Cursor *pFVar2;" type_identifier (pointer_declarator "*pFVar2" * identifier) ;) (declaration "Fts5Index *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "i64 iVar4;" type_identifier identifier ;) (expression_statement "pFVar2 = pTab->pGlobal->pCsr;" (assignment_expression "pFVar2 = pTab->pGlobal->pCsr" identifier = (field_expression "pTab->pGlobal->pCsr" (field_expression "pTab->pGlobal" identifier -> field_identifier) -> field_identifier)) ;) (if_statement "if (pFVar2 != (Fts5Cursor *)0x0) {\n    pFVar1 = (Fts5FullTable *)(pFVar2->base).pVtab;\n    while( true ) {\n      if (pTab == pFVar1) {\n        return 0;\n      }\n      pFVar2 = pFVar2->pNext;\n      if (pFVar2 == (Fts5Cursor *)0x0) break;\n      pFVar1 = (Fts5FullTable *)(pFVar2->base).pVtab;\n    }\n  }" if (parenthesized_expression "(pFVar2 != (Fts5Cursor *)0x0)" ( (binary_expression "pFVar2 != (Fts5Cursor *)0x0" identifier != (cast_expression "(Fts5Cursor *)0x0" ( (type_descriptor "Fts5Cursor *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pFVar1 = (Fts5FullTable *)(pFVar2->base).pVtab;\n    while( true ) {\n      if (pTab == pFVar1) {\n        return 0;\n      }\n      pFVar2 = pFVar2->pNext;\n      if (pFVar2 == (Fts5Cursor *)0x0) break;\n      pFVar1 = (Fts5FullTable *)(pFVar2->base).pVtab;\n    }\n  }" { (expression_statement "pFVar1 = (Fts5FullTable *)(pFVar2->base).pVtab;" (assignment_expression "pFVar1 = (Fts5FullTable *)(pFVar2->base).pVtab" identifier = (cast_expression "(Fts5FullTable *)(pFVar2->base).pVtab" ( (type_descriptor "Fts5FullTable *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(pFVar2->base).pVtab" (parenthesized_expression "(pFVar2->base)" ( (field_expression "pFVar2->base" identifier -> field_identifier) )) . field_identifier))) ;) (while_statement "while( true ) {\n      if (pTab == pFVar1) {\n        return 0;\n      }\n      pFVar2 = pFVar2->pNext;\n      if (pFVar2 == (Fts5Cursor *)0x0) break;\n      pFVar1 = (Fts5FullTable *)(pFVar2->base).pVtab;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (pTab == pFVar1) {\n        return 0;\n      }\n      pFVar2 = pFVar2->pNext;\n      if (pFVar2 == (Fts5Cursor *)0x0) break;\n      pFVar1 = (Fts5FullTable *)(pFVar2->base).pVtab;\n    }" { (if_statement "if (pTab == pFVar1) {\n        return 0;\n      }" if (parenthesized_expression "(pTab == pFVar1)" ( (binary_expression "pTab == pFVar1" identifier == identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pFVar2 = pFVar2->pNext;" (assignment_expression "pFVar2 = pFVar2->pNext" identifier = (field_expression "pFVar2->pNext" identifier -> field_identifier)) ;) (if_statement "if (pFVar2 == (Fts5Cursor *)0x0) break;" if (parenthesized_expression "(pFVar2 == (Fts5Cursor *)0x0)" ( (binary_expression "pFVar2 == (Fts5Cursor *)0x0" identifier == (cast_expression "(Fts5Cursor *)0x0" ( (type_descriptor "Fts5Cursor *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pFVar1 = (Fts5FullTable *)(pFVar2->base).pVtab;" (assignment_expression "pFVar1 = (Fts5FullTable *)(pFVar2->base).pVtab" identifier = (cast_expression "(Fts5FullTable *)(pFVar2->base).pVtab" ( (type_descriptor "Fts5FullTable *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(pFVar2->base).pVtab" (parenthesized_expression "(pFVar2->base)" ( (field_expression "pFVar2->base" identifier -> field_identifier) )) . field_identifier))) ;) })) })) (expression_statement "p = pTab->pStorage->pIndex;" (assignment_expression "p = pTab->pStorage->pIndex" identifier = (field_expression "pTab->pStorage->pIndex" (field_expression "pTab->pStorage" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "iVar4 = fts5IndexDataVersion(p);" (assignment_expression "iVar4 = fts5IndexDataVersion(p)" identifier = (call_expression "fts5IndexDataVersion(p)" identifier (argument_list "(p)" ( identifier )))) ;) (if_statement "if (iVar4 == p->iStructVersion) {\n    iVar3 = p->rc;\n    p->rc = 0;\n    return iVar3;\n  }" if (parenthesized_expression "(iVar4 == p->iStructVersion)" ( (binary_expression "iVar4 == p->iStructVersion" identifier == (field_expression "p->iStructVersion" identifier -> field_identifier)) )) (compound_statement "{\n    iVar3 = p->rc;\n    p->rc = 0;\n    return iVar3;\n  }" { (expression_statement "iVar3 = p->rc;" (assignment_expression "iVar3 = p->rc" identifier = (field_expression "p->rc" identifier -> field_identifier)) ;) (expression_statement "p->rc = 0;" (assignment_expression "p->rc = 0" (field_expression "p->rc" identifier -> field_identifier) = number_literal) ;) (return_statement "return iVar3;" return identifier ;) })) (expression_statement "fts5StructureInvalidate((Fts5Index *)&p->pStruct);" (call_expression "fts5StructureInvalidate((Fts5Index *)&p->pStruct)" identifier (argument_list "((Fts5Index *)&p->pStruct)" ( (cast_expression "(Fts5Index *)&p->pStruct" ( (type_descriptor "Fts5Index *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p->pStruct" & (field_expression "p->pStruct" identifier -> field_identifier))) ))) ;) (expression_statement "iVar3 = p->rc;" (assignment_expression "iVar3 = p->rc" identifier = (field_expression "p->rc" identifier -> field_identifier)) ;) (expression_statement "p->rc = 0;" (assignment_expression "p->rc = 0" (field_expression "p->rc" identifier -> field_identifier) = number_literal) ;) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "undefined4 __regparm3 FUN_000ca200(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  longlong lVar4;\n  \n  piVar2 = *(int **)(*(int *)(param_1 + 0x18) + 0x28);\n  if (piVar2 != (int *)0x0) {\n    iVar1 = *piVar2;\n    while( true ) {\n      if (param_1 == iVar1) {\n        return 0;\n      }\n      piVar2 = (int *)piVar2[1];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n  }\n  iVar1 = *(int *)(*(int *)(param_1 + 0x14) + 4);\n  lVar4 = FUN_000ca130();\n  if (lVar4 == *(longlong *)(iVar1 + 0x44)) {\n    uVar3 = *(undefined4 *)(iVar1 + 0x20);\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    return uVar3;\n  }\n  FUN_00032f20();\n  uVar3 = *(undefined4 *)(iVar1 + 0x20);\n  *(undefined4 *)(iVar1 + 0x20) = 0;\n  return uVar3;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_000ca200(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  longlong lVar4;\n  \n  piVar2 = *(int **)(*(int *)(param_1 + 0x18) + 0x28);\n  if (piVar2 != (int *)0x0) {\n    iVar1 = *piVar2;\n    while( true ) {\n      if (param_1 == iVar1) {\n        return 0;\n      }\n      piVar2 = (int *)piVar2[1];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n  }\n  iVar1 = *(int *)(*(int *)(param_1 + 0x14) + 4);\n  lVar4 = FUN_000ca130();\n  if (lVar4 == *(longlong *)(iVar1 + 0x44)) {\n    uVar3 = *(undefined4 *)(iVar1 + 0x20);\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    return uVar3;\n  }\n  FUN_00032f20();\n  uVar3 = *(undefined4 *)(iVar1 + 0x20);\n  *(undefined4 *)(iVar1 + 0x20) = 0;\n  return uVar3;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000ca200(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  longlong lVar4;\n  \n  piVar2 = *(int **)(*(int *)(param_1 + 0x18) + 0x28);\n  if (piVar2 != (int *)0x0) {\n    iVar1 = *piVar2;\n    while( true ) {\n      if (param_1 == iVar1) {\n        return 0;\n      }\n      piVar2 = (int *)piVar2[1];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n  }\n  iVar1 = *(int *)(*(int *)(param_1 + 0x14) + 4);\n  lVar4 = FUN_000ca130();\n  if (lVar4 == *(longlong *)(iVar1 + 0x44)) {\n    uVar3 = *(undefined4 *)(iVar1 + 0x20);\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    return uVar3;\n  }\n  FUN_00032f20();\n  uVar3 = *(undefined4 *)(iVar1 + 0x20);\n  *(undefined4 *)(iVar1 + 0x20) = 0;\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "longlong lVar4;" type_identifier identifier ;) (expression_statement "piVar2 = *(int **)(*(int *)(param_1 + 0x18) + 0x28);" (assignment_expression "piVar2 = *(int **)(*(int *)(param_1 + 0x18) + 0x28)" identifier = (pointer_expression "*(int **)(*(int *)(param_1 + 0x18) + 0x28)" * (cast_expression "(int **)(*(int *)(param_1 + 0x18) + 0x28)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + 0x28)" ( (binary_expression "*(int *)(param_1 + 0x18) + 0x28" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n    iVar1 = *piVar2;\n    while( true ) {\n      if (param_1 == iVar1) {\n        return 0;\n      }\n      piVar2 = (int *)piVar2[1];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n  }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = *piVar2;\n    while( true ) {\n      if (param_1 == iVar1) {\n        return 0;\n      }\n      piVar2 = (int *)piVar2[1];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n  }" { (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (while_statement "while( true ) {\n      if (param_1 == iVar1) {\n        return 0;\n      }\n      piVar2 = (int *)piVar2[1];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (param_1 == iVar1) {\n        return 0;\n      }\n      piVar2 = (int *)piVar2[1];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }" { (if_statement "if (param_1 == iVar1) {\n        return 0;\n      }" if (parenthesized_expression "(param_1 == iVar1)" ( (binary_expression "param_1 == iVar1" identifier == identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "piVar2 = (int *)piVar2[1];" (assignment_expression "piVar2 = (int *)piVar2[1]" identifier = (cast_expression "(int *)piVar2[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ]))) ;) (if_statement "if (piVar2 == (int *)0x0) break;" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) })) (expression_statement "iVar1 = *(int *)(*(int *)(param_1 + 0x14) + 4);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_1 + 0x14) + 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x14) + 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x14) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x14) + 4)" ( (binary_expression "*(int *)(param_1 + 0x14) + 4" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "lVar4 = FUN_000ca130();" (assignment_expression "lVar4 = FUN_000ca130()" identifier = (call_expression "FUN_000ca130()" identifier (argument_list "()" ( )))) ;) (if_statement "if (lVar4 == *(longlong *)(iVar1 + 0x44)) {\n    uVar3 = *(undefined4 *)(iVar1 + 0x20);\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    return uVar3;\n  }" if (parenthesized_expression "(lVar4 == *(longlong *)(iVar1 + 0x44))" ( (binary_expression "lVar4 == *(longlong *)(iVar1 + 0x44)" identifier == (pointer_expression "*(longlong *)(iVar1 + 0x44)" * (cast_expression "(longlong *)(iVar1 + 0x44)" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x44)" ( (binary_expression "iVar1 + 0x44" identifier + number_literal) ))))) )) (compound_statement "{\n    uVar3 = *(undefined4 *)(iVar1 + 0x20);\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    return uVar3;\n  }" { (expression_statement "uVar3 = *(undefined4 *)(iVar1 + 0x20);" (assignment_expression "uVar3 = *(undefined4 *)(iVar1 + 0x20)" identifier = (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) ))))) ;) (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) ;) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "FUN_00032f20();" (call_expression "FUN_00032f20()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar3 = *(undefined4 *)(iVar1 + 0x20);" (assignment_expression "uVar3 = *(undefined4 *)(iVar1 + 0x20)" identifier = (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) ))))) ;) (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) ;) (return_statement "return uVar3;" return identifier ;) })))
(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) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (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 { (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) ;) (return_statement return IDENT ;) })) (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) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 __regparm3 FUN_000ca200(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  longlong lVar4;\n  \n  piVar2 = *(int **)(*(int *)(param_1 + 0x18) + 0x28);\n  if (piVar2 != (int *)0x0) {\n    iVar1 = *piVar2;\n    while( true ) {\n      if (param_1 == iVar1) {\n        return 0;\n      }\n      piVar2 = (int *)piVar2[1];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n  }\n  iVar1 = *(int *)(*(int *)(param_1 + 0x14) + 4);\n  lVar4 = FUN_000ca130();\n  if (lVar4 == *(longlong *)(iVar1 + 0x44)) {\n    uVar3 = *(undefined4 *)(iVar1 + 0x20);\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    return uVar3;\n  }\n  FUN_00032f20();\n  uVar3 = *(undefined4 *)(iVar1 + 0x20);\n  *(undefined4 *)(iVar1 + 0x20) = 0;\n  return uVar3;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000ca200(int param_1)" (identifier "FUN_000ca200") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  longlong lVar4;\n  \n  piVar2 = *(int **)(*(int *)(param_1 + 0x18) + 0x28);\n  if (piVar2 != (int *)0x0) {\n    iVar1 = *piVar2;\n    while( true ) {\n      if (param_1 == iVar1) {\n        return 0;\n      }\n      piVar2 = (int *)piVar2[1];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n  }\n  iVar1 = *(int *)(*(int *)(param_1 + 0x14) + 4);\n  lVar4 = FUN_000ca130();\n  if (lVar4 == *(longlong *)(iVar1 + 0x44)) {\n    uVar3 = *(undefined4 *)(iVar1 + 0x20);\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    return uVar3;\n  }\n  FUN_00032f20();\n  uVar3 = *(undefined4 *)(iVar1 + 0x20);\n  *(undefined4 *)(iVar1 + 0x20) = 0;\n  return uVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "longlong lVar4;" (type_identifier "longlong") (identifier "lVar4") (; ";")) (expression_statement "piVar2 = *(int **)(*(int *)(param_1 + 0x18) + 0x28);" (assignment_expression "piVar2 = *(int **)(*(int *)(param_1 + 0x18) + 0x28)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(*(int *)(param_1 + 0x18) + 0x28)" (* "*") (cast_expression "(int **)(*(int *)(param_1 + 0x18) + 0x28)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x18) + 0x28)" (( "(") (binary_expression "*(int *)(param_1 + 0x18) + 0x28" (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (piVar2 != (int *)0x0) {\n    iVar1 = *piVar2;\n    while( true ) {\n      if (param_1 == iVar1) {\n        return 0;\n      }\n      piVar2 = (int *)piVar2[1];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n  }" (if "if") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar1 = *piVar2;\n    while( true ) {\n      if (param_1 == iVar1) {\n        return 0;\n      }\n      piVar2 = (int *)piVar2[1];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }\n  }" ({ "{") (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" (identifier "iVar1") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (while_statement "while( true ) {\n      if (param_1 == iVar1) {\n        return 0;\n      }\n      piVar2 = (int *)piVar2[1];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if (param_1 == iVar1) {\n        return 0;\n      }\n      piVar2 = (int *)piVar2[1];\n      if (piVar2 == (int *)0x0) break;\n      iVar1 = *piVar2;\n    }" ({ "{") (if_statement "if (param_1 == iVar1) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(param_1 == iVar1)" (( "(") (binary_expression "param_1 == iVar1" (identifier "param_1") (== "==") (identifier "iVar1")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "piVar2 = (int *)piVar2[1];" (assignment_expression "piVar2 = (int *)piVar2[1]" (identifier "piVar2") (= "=") (cast_expression "(int *)piVar2[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (piVar2 == (int *)0x0) break;" (if "if") (parenthesized_expression "(piVar2 == (int *)0x0)" (( "(") (binary_expression "piVar2 == (int *)0x0" (identifier "piVar2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" (identifier "iVar1") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar1 = *(int *)(*(int *)(param_1 + 0x14) + 4);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_1 + 0x14) + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(*(int *)(param_1 + 0x14) + 4)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x14) + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x14) + 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x14) + 4" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "lVar4 = FUN_000ca130();" (assignment_expression "lVar4 = FUN_000ca130()" (identifier "lVar4") (= "=") (call_expression "FUN_000ca130()" (identifier "FUN_000ca130") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (lVar4 == *(longlong *)(iVar1 + 0x44)) {\n    uVar3 = *(undefined4 *)(iVar1 + 0x20);\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    return uVar3;\n  }" (if "if") (parenthesized_expression "(lVar4 == *(longlong *)(iVar1 + 0x44))" (( "(") (binary_expression "lVar4 == *(longlong *)(iVar1 + 0x44)" (identifier "lVar4") (== "==") (pointer_expression "*(longlong *)(iVar1 + 0x44)" (* "*") (cast_expression "(longlong *)(iVar1 + 0x44)" (( "(") (type_descriptor "longlong *" (type_identifier "longlong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x44)" (( "(") (binary_expression "iVar1 + 0x44" (identifier "iVar1") (+ "+") (number_literal "0x44")) () ")"))))) () ")")) (compound_statement "{\n    uVar3 = *(undefined4 *)(iVar1 + 0x20);\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    return uVar3;\n  }" ({ "{") (expression_statement "uVar3 = *(undefined4 *)(iVar1 + 0x20);" (assignment_expression "uVar3 = *(undefined4 *)(iVar1 + 0x20)" (identifier "uVar3") (= "=") (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")) () ")"))))) (; ";")) (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")) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (expression_statement "FUN_00032f20();" (call_expression "FUN_00032f20()" (identifier "FUN_00032f20") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar3 = *(undefined4 *)(iVar1 + 0x20);" (assignment_expression "uVar3 = *(undefined4 *)(iVar1 + 0x20)" (identifier "uVar3") (= "=") (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")) () ")"))))) (; ";")) (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")) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

int __regparm3 function_1(type_1 *var_2)

{
  type_1 *var_3;
  type_2 *var_1;
  type_3 *p;
  int iVar3;
  type_4 var_5;
  
  var_1 = var_2->pGlobal->pCsr;
  if (var_1 != (type_2 *)0x0) {
    var_3 = (type_1 *)(var_1->base).pVtab;
    while( true ) {
      if (var_2 == var_3) {
        return 0;
      }
      var_1 = var_1->pNext;
      if (var_1 == (type_2 *)0x0) break;
      var_3 = (type_1 *)(var_1->base).pVtab;
    }
  }
  p = var_2->pStorage->pIndex;
  var_5 = var_4(p);
  if (var_5 == p->iStructVersion) {
    iVar3 = p->rc;
    p->rc = 0;
    return iVar3;
  }
  var_6((type_3 *)&p->pStruct);
  iVar3 = p->rc;
  p->rc = 0;
  return iVar3;
}


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

undefined4 __regparm3 MASKED(int param_1)

{
  int iVar1;
  int *piVar2;
  undefined4 uVar3;
  longlong lVar4;
  
  piVar2 = *(int **)(*(int *)(param_1 + 0x18) + 0x28);
  if (piVar2 != (int *)0x0) {
    iVar1 = *piVar2;
    while( true ) {
      if (param_1 == iVar1) {
        return 0;
      }
      piVar2 = (int *)piVar2[1];
      if (piVar2 == (int *)0x0) break;
      iVar1 = *piVar2;
    }
  }
  iVar1 = *(int *)(*(int *)(param_1 + 0x14) + 4);
  lVar4 = FUN_000ca130();
  if (lVar4 == *(longlong *)(iVar1 + 0x44)) {
    uVar3 = *(undefined4 *)(iVar1 + 0x20);
    *(undefined4 *)(iVar1 + 0x20) = 0;
    return uVar3;
  }
  FUN_00032f20();
  uVar3 = *(undefined4 *)(iVar1 + 0x20);
  *(undefined4 *)(iVar1 + 0x20) = 0;
  return uVar3;
}

