
void pcache1EnforceMaxPage(PCache1 *pCache)

{
  u16 uVar1;
  PgHdr1 *pPage;
  PGroup *pPVar2;
  
  pPVar2 = pCache->pGroup;
  if (pPVar2->nMaxPage < pPVar2->nPurgeable) {
    pPage = (pPVar2->lru).pLruPrev;
    uVar1 = pPage->isAnchor;
    while (uVar1 == 0) {
      pcache1PinPage(pPage);
      pcache1RemoveFromHash(pPage,1);
      if (pPVar2->nPurgeable <= pPVar2->nMaxPage) break;
      pPage = (pPVar2->lru).pLruPrev;
      uVar1 = pPage->isAnchor;
    }
  }
  if ((pCache->nPage == 0) && (pCache->pBulk != (void *)0x0)) {
    (*(code *)PTR_sqlite3_free_000f639c)();
    pCache->pFree = (PgHdr1 *)0x0;
    pCache->pBulk = (void *)0x0;
  }
  return;
}



void FUN_000302f0(int *param_1)

{
  short sVar1;
  int iVar2;
  int iVar3;
  
  iVar3 = *param_1;
  if (*(uint *)(iVar3 + 4) < *(uint *)(iVar3 + 0x10)) {
    iVar2 = *(int *)(iVar3 + 0x30);
    sVar1 = *(short *)(iVar2 + 0xe);
    while (sVar1 == 0) {
      FUN_00018fb8(iVar2);
      FUN_0002ffa8(iVar2,1);
      if (*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)) break;
      iVar2 = *(int *)(iVar3 + 0x30);
      sVar1 = *(short *)(iVar2 + 0xe);
    }
  }
  if ((param_1[0xc] == 0) && (param_1[0x10] != 0)) {
    (*(code *)PTR_sqlite3_free_000f639c)();
    param_1[0xf] = 0;
    param_1[0x10] = 0;
  }
  return;
}


lui gp,0xd
addiu gp,gp,-0x2050
addu gp,gp,t9
addiu sp,sp,-0x30
sw ra,0x2c(sp)
sw s4,0x28(sp)
sw s3,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
lw s1,0x0(a0)
lw v0,0x10(s1)
lw v1,0x4(s1)
sltu v0,v1,v0
beq v0,zero,0x000303a0
_or s4,a0,zero
lw s0,0x30(s1)
lhu v0,0xe(s0)
bne v0,zero,0x000303a0
_or a0,s0,zero
lw s3,-0x7fc8(gp)
addiu s3,s3,-0x7048
lw s2,-0x7f9c(gp)
addiu s2,s2,-0x58
or t9,s3,zero
bal 0x00018fb8
_nop
lw gp,0x10(sp)
li a1,0x1
or a0,s0,zero
or t9,s2,zero
bal 0x0002ffa8
_nop
lw gp,0x10(sp)
lw v0,0x10(s1)
lw v1,0x4(s1)
sltu v0,v1,v0
beq v0,zero,0x000303a0
_nop
lw s0,0x30(s1)
lhu v0,0xe(s0)
beq v0,zero,0x00030354
_or a0,s0,zero
lw v0,0x30(s4)
bne v0,zero,0x000303d0
_lw ra,0x2c(sp)
lw a0,0x40(s4)
beq a0,zero,0x000303d0
_lw t9,-0x7f04(gp)
jalr t9
_nop
lw gp,0x10(sp)
sw zero,0x3c(s4)
sw zero,0x40(s4)
lw ra,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "void FUN_000302f0(int *param_1)\n\n{\n  short sVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  if (*(uint *)(iVar3 + 4) < *(uint *)(iVar3 + 0x10)) {\n    iVar2 = *(int *)(iVar3 + 0x30);\n    sVar1 = *(short *)(iVar2 + 0xe);\n    while (sVar1 == 0) {\n      FUN_00018fb8(iVar2);\n      FUN_0002ffa8(iVar2,1);\n      if (*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)) break;\n      iVar2 = *(int *)(iVar3 + 0x30);\n      sVar1 = *(short *)(iVar2 + 0xe);\n    }\n  }\n  if ((param_1[0xc] == 0) && (param_1[0x10] != 0)) {\n    (*(code *)PTR_sqlite3_free_000f639c)();\n    param_1[0xf] = 0;\n    param_1[0x10] = 0;\n  }\n  return;\n}\n\n" (function_definition "void FUN_000302f0(int *param_1)\n\n{\n  short sVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  if (*(uint *)(iVar3 + 4) < *(uint *)(iVar3 + 0x10)) {\n    iVar2 = *(int *)(iVar3 + 0x30);\n    sVar1 = *(short *)(iVar2 + 0xe);\n    while (sVar1 == 0) {\n      FUN_00018fb8(iVar2);\n      FUN_0002ffa8(iVar2,1);\n      if (*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)) break;\n      iVar2 = *(int *)(iVar3 + 0x30);\n      sVar1 = *(short *)(iVar2 + 0xe);\n    }\n  }\n  if ((param_1[0xc] == 0) && (param_1[0x10] != 0)) {\n    (*(code *)PTR_sqlite3_free_000f639c)();\n    param_1[0xf] = 0;\n    param_1[0x10] = 0;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000302f0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  short sVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  if (*(uint *)(iVar3 + 4) < *(uint *)(iVar3 + 0x10)) {\n    iVar2 = *(int *)(iVar3 + 0x30);\n    sVar1 = *(short *)(iVar2 + 0xe);\n    while (sVar1 == 0) {\n      FUN_00018fb8(iVar2);\n      FUN_0002ffa8(iVar2,1);\n      if (*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)) break;\n      iVar2 = *(int *)(iVar3 + 0x30);\n      sVar1 = *(short *)(iVar2 + 0xe);\n    }\n  }\n  if ((param_1[0xc] == 0) && (param_1[0x10] != 0)) {\n    (*(code *)PTR_sqlite3_free_000f639c)();\n    param_1[0xf] = 0;\n    param_1[0x10] = 0;\n  }\n  return;\n}" { (declaration "short sVar1;" (sized_type_specifier "short" short) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (*(uint *)(iVar3 + 4) < *(uint *)(iVar3 + 0x10)) {\n    iVar2 = *(int *)(iVar3 + 0x30);\n    sVar1 = *(short *)(iVar2 + 0xe);\n    while (sVar1 == 0) {\n      FUN_00018fb8(iVar2);\n      FUN_0002ffa8(iVar2,1);\n      if (*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)) break;\n      iVar2 = *(int *)(iVar3 + 0x30);\n      sVar1 = *(short *)(iVar2 + 0xe);\n    }\n  }" if (parenthesized_expression "(*(uint *)(iVar3 + 4) < *(uint *)(iVar3 + 0x10))" ( (binary_expression "*(uint *)(iVar3 + 4) < *(uint *)(iVar3 + 0x10)" (pointer_expression "*(uint *)(iVar3 + 4)" * (cast_expression "(uint *)(iVar3 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) < (pointer_expression "*(uint *)(iVar3 + 0x10)" * (cast_expression "(uint *)(iVar3 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) ))))) )) (compound_statement "{\n    iVar2 = *(int *)(iVar3 + 0x30);\n    sVar1 = *(short *)(iVar2 + 0xe);\n    while (sVar1 == 0) {\n      FUN_00018fb8(iVar2);\n      FUN_0002ffa8(iVar2,1);\n      if (*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)) break;\n      iVar2 = *(int *)(iVar3 + 0x30);\n      sVar1 = *(short *)(iVar2 + 0xe);\n    }\n  }" { (expression_statement "iVar2 = *(int *)(iVar3 + 0x30);" (assignment_expression "iVar2 = *(int *)(iVar3 + 0x30)" identifier = (pointer_expression "*(int *)(iVar3 + 0x30)" * (cast_expression "(int *)(iVar3 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x30)" ( (binary_expression "iVar3 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "sVar1 = *(short *)(iVar2 + 0xe);" (assignment_expression "sVar1 = *(short *)(iVar2 + 0xe)" identifier = (pointer_expression "*(short *)(iVar2 + 0xe)" * (cast_expression "(short *)(iVar2 + 0xe)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xe)" ( (binary_expression "iVar2 + 0xe" identifier + number_literal) ))))) ;) (while_statement "while (sVar1 == 0) {\n      FUN_00018fb8(iVar2);\n      FUN_0002ffa8(iVar2,1);\n      if (*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)) break;\n      iVar2 = *(int *)(iVar3 + 0x30);\n      sVar1 = *(short *)(iVar2 + 0xe);\n    }" while (parenthesized_expression "(sVar1 == 0)" ( (binary_expression "sVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      FUN_00018fb8(iVar2);\n      FUN_0002ffa8(iVar2,1);\n      if (*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)) break;\n      iVar2 = *(int *)(iVar3 + 0x30);\n      sVar1 = *(short *)(iVar2 + 0xe);\n    }" { (expression_statement "FUN_00018fb8(iVar2);" (call_expression "FUN_00018fb8(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "FUN_0002ffa8(iVar2,1);" (call_expression "FUN_0002ffa8(iVar2,1)" identifier (argument_list "(iVar2,1)" ( identifier , number_literal ))) ;) (if_statement "if (*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)) break;" if (parenthesized_expression "(*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4))" ( (binary_expression "*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)" (pointer_expression "*(uint *)(iVar3 + 0x10)" * (cast_expression "(uint *)(iVar3 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) <= (pointer_expression "*(uint *)(iVar3 + 4)" * (cast_expression "(uint *)(iVar3 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) ))))) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = *(int *)(iVar3 + 0x30);" (assignment_expression "iVar2 = *(int *)(iVar3 + 0x30)" identifier = (pointer_expression "*(int *)(iVar3 + 0x30)" * (cast_expression "(int *)(iVar3 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x30)" ( (binary_expression "iVar3 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "sVar1 = *(short *)(iVar2 + 0xe);" (assignment_expression "sVar1 = *(short *)(iVar2 + 0xe)" identifier = (pointer_expression "*(short *)(iVar2 + 0xe)" * (cast_expression "(short *)(iVar2 + 0xe)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xe)" ( (binary_expression "iVar2 + 0xe" identifier + number_literal) ))))) ;) })) })) (if_statement "if ((param_1[0xc] == 0) && (param_1[0x10] != 0)) {\n    (*(code *)PTR_sqlite3_free_000f639c)();\n    param_1[0xf] = 0;\n    param_1[0x10] = 0;\n  }" if (parenthesized_expression "((param_1[0xc] == 0) && (param_1[0x10] != 0))" ( (binary_expression "(param_1[0xc] == 0) && (param_1[0x10] != 0)" (parenthesized_expression "(param_1[0xc] == 0)" ( (binary_expression "param_1[0xc] == 0" (subscript_expression "param_1[0xc]" identifier [ number_literal ]) == number_literal) )) && (parenthesized_expression "(param_1[0x10] != 0)" ( (binary_expression "param_1[0x10] != 0" (subscript_expression "param_1[0x10]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n    (*(code *)PTR_sqlite3_free_000f639c)();\n    param_1[0xf] = 0;\n    param_1[0x10] = 0;\n  }" { (expression_statement "(*(code *)PTR_sqlite3_free_000f639c)();" (call_expression "(*(code *)PTR_sqlite3_free_000f639c)()" (parenthesized_expression "(*(code *)PTR_sqlite3_free_000f639c)" ( (pointer_expression "*(code *)PTR_sqlite3_free_000f639c" * (cast_expression "(code *)PTR_sqlite3_free_000f639c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "param_1[0xf] = 0;" (assignment_expression "param_1[0xf] = 0" (subscript_expression "param_1[0xf]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x10] = 0;" (assignment_expression "param_1[0x10] = 0" (subscript_expression "param_1[0x10]" identifier [ number_literal ]) = number_literal) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void pcache1EnforceMaxPage(PCache1 *pCache)\n\n{\n  u16 uVar1;\n  PgHdr1 *pPage;\n  PGroup *pPVar2;\n  \n  pPVar2 = pCache->pGroup;\n  if (pPVar2->nMaxPage < pPVar2->nPurgeable) {\n    pPage = (pPVar2->lru).pLruPrev;\n    uVar1 = pPage->isAnchor;\n    while (uVar1 == 0) {\n      pcache1PinPage(pPage);\n      pcache1RemoveFromHash(pPage,1);\n      if (pPVar2->nPurgeable <= pPVar2->nMaxPage) break;\n      pPage = (pPVar2->lru).pLruPrev;\n      uVar1 = pPage->isAnchor;\n    }\n  }\n  if ((pCache->nPage == 0) && (pCache->pBulk != (void *)0x0)) {\n    (*(code *)PTR_sqlite3_free_000f639c)();\n    pCache->pFree = (PgHdr1 *)0x0;\n    pCache->pBulk = (void *)0x0;\n  }\n  return;\n}\n\n" (function_definition "void pcache1EnforceMaxPage(PCache1 *pCache)\n\n{\n  u16 uVar1;\n  PgHdr1 *pPage;\n  PGroup *pPVar2;\n  \n  pPVar2 = pCache->pGroup;\n  if (pPVar2->nMaxPage < pPVar2->nPurgeable) {\n    pPage = (pPVar2->lru).pLruPrev;\n    uVar1 = pPage->isAnchor;\n    while (uVar1 == 0) {\n      pcache1PinPage(pPage);\n      pcache1RemoveFromHash(pPage,1);\n      if (pPVar2->nPurgeable <= pPVar2->nMaxPage) break;\n      pPage = (pPVar2->lru).pLruPrev;\n      uVar1 = pPage->isAnchor;\n    }\n  }\n  if ((pCache->nPage == 0) && (pCache->pBulk != (void *)0x0)) {\n    (*(code *)PTR_sqlite3_free_000f639c)();\n    pCache->pFree = (PgHdr1 *)0x0;\n    pCache->pBulk = (void *)0x0;\n  }\n  return;\n}" primitive_type (function_declarator "pcache1EnforceMaxPage(PCache1 *pCache)" identifier (parameter_list "(PCache1 *pCache)" ( (parameter_declaration "PCache1 *pCache" type_identifier (pointer_declarator "*pCache" * identifier)) ))) (compound_statement "{\n  u16 uVar1;\n  PgHdr1 *pPage;\n  PGroup *pPVar2;\n  \n  pPVar2 = pCache->pGroup;\n  if (pPVar2->nMaxPage < pPVar2->nPurgeable) {\n    pPage = (pPVar2->lru).pLruPrev;\n    uVar1 = pPage->isAnchor;\n    while (uVar1 == 0) {\n      pcache1PinPage(pPage);\n      pcache1RemoveFromHash(pPage,1);\n      if (pPVar2->nPurgeable <= pPVar2->nMaxPage) break;\n      pPage = (pPVar2->lru).pLruPrev;\n      uVar1 = pPage->isAnchor;\n    }\n  }\n  if ((pCache->nPage == 0) && (pCache->pBulk != (void *)0x0)) {\n    (*(code *)PTR_sqlite3_free_000f639c)();\n    pCache->pFree = (PgHdr1 *)0x0;\n    pCache->pBulk = (void *)0x0;\n  }\n  return;\n}" { (declaration "u16 uVar1;" type_identifier identifier ;) (declaration "PgHdr1 *pPage;" type_identifier (pointer_declarator "*pPage" * identifier) ;) (declaration "PGroup *pPVar2;" type_identifier (pointer_declarator "*pPVar2" * identifier) ;) (expression_statement "pPVar2 = pCache->pGroup;" (assignment_expression "pPVar2 = pCache->pGroup" identifier = (field_expression "pCache->pGroup" identifier -> field_identifier)) ;) (if_statement "if (pPVar2->nMaxPage < pPVar2->nPurgeable) {\n    pPage = (pPVar2->lru).pLruPrev;\n    uVar1 = pPage->isAnchor;\n    while (uVar1 == 0) {\n      pcache1PinPage(pPage);\n      pcache1RemoveFromHash(pPage,1);\n      if (pPVar2->nPurgeable <= pPVar2->nMaxPage) break;\n      pPage = (pPVar2->lru).pLruPrev;\n      uVar1 = pPage->isAnchor;\n    }\n  }" if (parenthesized_expression "(pPVar2->nMaxPage < pPVar2->nPurgeable)" ( (binary_expression "pPVar2->nMaxPage < pPVar2->nPurgeable" (field_expression "pPVar2->nMaxPage" identifier -> field_identifier) < (field_expression "pPVar2->nPurgeable" identifier -> field_identifier)) )) (compound_statement "{\n    pPage = (pPVar2->lru).pLruPrev;\n    uVar1 = pPage->isAnchor;\n    while (uVar1 == 0) {\n      pcache1PinPage(pPage);\n      pcache1RemoveFromHash(pPage,1);\n      if (pPVar2->nPurgeable <= pPVar2->nMaxPage) break;\n      pPage = (pPVar2->lru).pLruPrev;\n      uVar1 = pPage->isAnchor;\n    }\n  }" { (expression_statement "pPage = (pPVar2->lru).pLruPrev;" (assignment_expression "pPage = (pPVar2->lru).pLruPrev" identifier = (field_expression "(pPVar2->lru).pLruPrev" (parenthesized_expression "(pPVar2->lru)" ( (field_expression "pPVar2->lru" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "uVar1 = pPage->isAnchor;" (assignment_expression "uVar1 = pPage->isAnchor" identifier = (field_expression "pPage->isAnchor" identifier -> field_identifier)) ;) (while_statement "while (uVar1 == 0) {\n      pcache1PinPage(pPage);\n      pcache1RemoveFromHash(pPage,1);\n      if (pPVar2->nPurgeable <= pPVar2->nMaxPage) break;\n      pPage = (pPVar2->lru).pLruPrev;\n      uVar1 = pPage->isAnchor;\n    }" while (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      pcache1PinPage(pPage);\n      pcache1RemoveFromHash(pPage,1);\n      if (pPVar2->nPurgeable <= pPVar2->nMaxPage) break;\n      pPage = (pPVar2->lru).pLruPrev;\n      uVar1 = pPage->isAnchor;\n    }" { (expression_statement "pcache1PinPage(pPage);" (call_expression "pcache1PinPage(pPage)" identifier (argument_list "(pPage)" ( identifier ))) ;) (expression_statement "pcache1RemoveFromHash(pPage,1);" (call_expression "pcache1RemoveFromHash(pPage,1)" identifier (argument_list "(pPage,1)" ( identifier , number_literal ))) ;) (if_statement "if (pPVar2->nPurgeable <= pPVar2->nMaxPage) break;" if (parenthesized_expression "(pPVar2->nPurgeable <= pPVar2->nMaxPage)" ( (binary_expression "pPVar2->nPurgeable <= pPVar2->nMaxPage" (field_expression "pPVar2->nPurgeable" identifier -> field_identifier) <= (field_expression "pPVar2->nMaxPage" identifier -> field_identifier)) )) (break_statement "break;" break ;)) (expression_statement "pPage = (pPVar2->lru).pLruPrev;" (assignment_expression "pPage = (pPVar2->lru).pLruPrev" identifier = (field_expression "(pPVar2->lru).pLruPrev" (parenthesized_expression "(pPVar2->lru)" ( (field_expression "pPVar2->lru" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "uVar1 = pPage->isAnchor;" (assignment_expression "uVar1 = pPage->isAnchor" identifier = (field_expression "pPage->isAnchor" identifier -> field_identifier)) ;) })) })) (if_statement "if ((pCache->nPage == 0) && (pCache->pBulk != (void *)0x0)) {\n    (*(code *)PTR_sqlite3_free_000f639c)();\n    pCache->pFree = (PgHdr1 *)0x0;\n    pCache->pBulk = (void *)0x0;\n  }" if (parenthesized_expression "((pCache->nPage == 0) && (pCache->pBulk != (void *)0x0))" ( (binary_expression "(pCache->nPage == 0) && (pCache->pBulk != (void *)0x0)" (parenthesized_expression "(pCache->nPage == 0)" ( (binary_expression "pCache->nPage == 0" (field_expression "pCache->nPage" identifier -> field_identifier) == number_literal) )) && (parenthesized_expression "(pCache->pBulk != (void *)0x0)" ( (binary_expression "pCache->pBulk != (void *)0x0" (field_expression "pCache->pBulk" identifier -> field_identifier) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    (*(code *)PTR_sqlite3_free_000f639c)();\n    pCache->pFree = (PgHdr1 *)0x0;\n    pCache->pBulk = (void *)0x0;\n  }" { (expression_statement "(*(code *)PTR_sqlite3_free_000f639c)();" (call_expression "(*(code *)PTR_sqlite3_free_000f639c)()" (parenthesized_expression "(*(code *)PTR_sqlite3_free_000f639c)" ( (pointer_expression "*(code *)PTR_sqlite3_free_000f639c" * (cast_expression "(code *)PTR_sqlite3_free_000f639c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "pCache->pFree = (PgHdr1 *)0x0;" (assignment_expression "pCache->pFree = (PgHdr1 *)0x0" (field_expression "pCache->pFree" identifier -> field_identifier) = (cast_expression "(PgHdr1 *)0x0" ( (type_descriptor "PgHdr1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pCache->pBulk = (void *)0x0;" (assignment_expression "pCache->pBulk = (void *)0x0" (field_expression "pCache->pBulk" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000302f0(int *param_1)\n\n{\n  short sVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  if (*(uint *)(iVar3 + 4) < *(uint *)(iVar3 + 0x10)) {\n    iVar2 = *(int *)(iVar3 + 0x30);\n    sVar1 = *(short *)(iVar2 + 0xe);\n    while (sVar1 == 0) {\n      FUN_00018fb8(iVar2);\n      FUN_0002ffa8(iVar2,1);\n      if (*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)) break;\n      iVar2 = *(int *)(iVar3 + 0x30);\n      sVar1 = *(short *)(iVar2 + 0xe);\n    }\n  }\n  if ((param_1[0xc] == 0) && (param_1[0x10] != 0)) {\n    (*(code *)PTR_sqlite3_free_000f639c)();\n    param_1[0xf] = 0;\n    param_1[0x10] = 0;\n  }\n  return;\n}\n\n" (function_definition "void FUN_000302f0(int *param_1)\n\n{\n  short sVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  if (*(uint *)(iVar3 + 4) < *(uint *)(iVar3 + 0x10)) {\n    iVar2 = *(int *)(iVar3 + 0x30);\n    sVar1 = *(short *)(iVar2 + 0xe);\n    while (sVar1 == 0) {\n      FUN_00018fb8(iVar2);\n      FUN_0002ffa8(iVar2,1);\n      if (*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)) break;\n      iVar2 = *(int *)(iVar3 + 0x30);\n      sVar1 = *(short *)(iVar2 + 0xe);\n    }\n  }\n  if ((param_1[0xc] == 0) && (param_1[0x10] != 0)) {\n    (*(code *)PTR_sqlite3_free_000f639c)();\n    param_1[0xf] = 0;\n    param_1[0x10] = 0;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000302f0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  short sVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  if (*(uint *)(iVar3 + 4) < *(uint *)(iVar3 + 0x10)) {\n    iVar2 = *(int *)(iVar3 + 0x30);\n    sVar1 = *(short *)(iVar2 + 0xe);\n    while (sVar1 == 0) {\n      FUN_00018fb8(iVar2);\n      FUN_0002ffa8(iVar2,1);\n      if (*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)) break;\n      iVar2 = *(int *)(iVar3 + 0x30);\n      sVar1 = *(short *)(iVar2 + 0xe);\n    }\n  }\n  if ((param_1[0xc] == 0) && (param_1[0x10] != 0)) {\n    (*(code *)PTR_sqlite3_free_000f639c)();\n    param_1[0xf] = 0;\n    param_1[0x10] = 0;\n  }\n  return;\n}" { (declaration "short sVar1;" (sized_type_specifier "short" short) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (*(uint *)(iVar3 + 4) < *(uint *)(iVar3 + 0x10)) {\n    iVar2 = *(int *)(iVar3 + 0x30);\n    sVar1 = *(short *)(iVar2 + 0xe);\n    while (sVar1 == 0) {\n      FUN_00018fb8(iVar2);\n      FUN_0002ffa8(iVar2,1);\n      if (*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)) break;\n      iVar2 = *(int *)(iVar3 + 0x30);\n      sVar1 = *(short *)(iVar2 + 0xe);\n    }\n  }" if (parenthesized_expression "(*(uint *)(iVar3 + 4) < *(uint *)(iVar3 + 0x10))" ( (binary_expression "*(uint *)(iVar3 + 4) < *(uint *)(iVar3 + 0x10)" (pointer_expression "*(uint *)(iVar3 + 4)" * (cast_expression "(uint *)(iVar3 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) < (pointer_expression "*(uint *)(iVar3 + 0x10)" * (cast_expression "(uint *)(iVar3 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) ))))) )) (compound_statement "{\n    iVar2 = *(int *)(iVar3 + 0x30);\n    sVar1 = *(short *)(iVar2 + 0xe);\n    while (sVar1 == 0) {\n      FUN_00018fb8(iVar2);\n      FUN_0002ffa8(iVar2,1);\n      if (*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)) break;\n      iVar2 = *(int *)(iVar3 + 0x30);\n      sVar1 = *(short *)(iVar2 + 0xe);\n    }\n  }" { (expression_statement "iVar2 = *(int *)(iVar3 + 0x30);" (assignment_expression "iVar2 = *(int *)(iVar3 + 0x30)" identifier = (pointer_expression "*(int *)(iVar3 + 0x30)" * (cast_expression "(int *)(iVar3 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x30)" ( (binary_expression "iVar3 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "sVar1 = *(short *)(iVar2 + 0xe);" (assignment_expression "sVar1 = *(short *)(iVar2 + 0xe)" identifier = (pointer_expression "*(short *)(iVar2 + 0xe)" * (cast_expression "(short *)(iVar2 + 0xe)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xe)" ( (binary_expression "iVar2 + 0xe" identifier + number_literal) ))))) ;) (while_statement "while (sVar1 == 0) {\n      FUN_00018fb8(iVar2);\n      FUN_0002ffa8(iVar2,1);\n      if (*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)) break;\n      iVar2 = *(int *)(iVar3 + 0x30);\n      sVar1 = *(short *)(iVar2 + 0xe);\n    }" while (parenthesized_expression "(sVar1 == 0)" ( (binary_expression "sVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      FUN_00018fb8(iVar2);\n      FUN_0002ffa8(iVar2,1);\n      if (*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)) break;\n      iVar2 = *(int *)(iVar3 + 0x30);\n      sVar1 = *(short *)(iVar2 + 0xe);\n    }" { (expression_statement "FUN_00018fb8(iVar2);" (call_expression "FUN_00018fb8(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "FUN_0002ffa8(iVar2,1);" (call_expression "FUN_0002ffa8(iVar2,1)" identifier (argument_list "(iVar2,1)" ( identifier , number_literal ))) ;) (if_statement "if (*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)) break;" if (parenthesized_expression "(*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4))" ( (binary_expression "*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)" (pointer_expression "*(uint *)(iVar3 + 0x10)" * (cast_expression "(uint *)(iVar3 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) <= (pointer_expression "*(uint *)(iVar3 + 4)" * (cast_expression "(uint *)(iVar3 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) ))))) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = *(int *)(iVar3 + 0x30);" (assignment_expression "iVar2 = *(int *)(iVar3 + 0x30)" identifier = (pointer_expression "*(int *)(iVar3 + 0x30)" * (cast_expression "(int *)(iVar3 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x30)" ( (binary_expression "iVar3 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "sVar1 = *(short *)(iVar2 + 0xe);" (assignment_expression "sVar1 = *(short *)(iVar2 + 0xe)" identifier = (pointer_expression "*(short *)(iVar2 + 0xe)" * (cast_expression "(short *)(iVar2 + 0xe)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xe)" ( (binary_expression "iVar2 + 0xe" identifier + number_literal) ))))) ;) })) })) (if_statement "if ((param_1[0xc] == 0) && (param_1[0x10] != 0)) {\n    (*(code *)PTR_sqlite3_free_000f639c)();\n    param_1[0xf] = 0;\n    param_1[0x10] = 0;\n  }" if (parenthesized_expression "((param_1[0xc] == 0) && (param_1[0x10] != 0))" ( (binary_expression "(param_1[0xc] == 0) && (param_1[0x10] != 0)" (parenthesized_expression "(param_1[0xc] == 0)" ( (binary_expression "param_1[0xc] == 0" (subscript_expression "param_1[0xc]" identifier [ number_literal ]) == number_literal) )) && (parenthesized_expression "(param_1[0x10] != 0)" ( (binary_expression "param_1[0x10] != 0" (subscript_expression "param_1[0x10]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n    (*(code *)PTR_sqlite3_free_000f639c)();\n    param_1[0xf] = 0;\n    param_1[0x10] = 0;\n  }" { (expression_statement "(*(code *)PTR_sqlite3_free_000f639c)();" (call_expression "(*(code *)PTR_sqlite3_free_000f639c)()" (parenthesized_expression "(*(code *)PTR_sqlite3_free_000f639c)" ( (pointer_expression "*(code *)PTR_sqlite3_free_000f639c" * (cast_expression "(code *)PTR_sqlite3_free_000f639c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "param_1[0xf] = 0;" (assignment_expression "param_1[0xf] = 0" (subscript_expression "param_1[0xf]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x10] = 0;" (assignment_expression "param_1[0x10] = 0" (subscript_expression "param_1[0x10]" identifier [ number_literal ]) = number_literal) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier short) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < (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 IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( 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) )))) <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (return_statement return ;) })))
(function_definition "void FUN_000302f0(int *param_1)\n\n{\n  short sVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  if (*(uint *)(iVar3 + 4) < *(uint *)(iVar3 + 0x10)) {\n    iVar2 = *(int *)(iVar3 + 0x30);\n    sVar1 = *(short *)(iVar2 + 0xe);\n    while (sVar1 == 0) {\n      FUN_00018fb8(iVar2);\n      FUN_0002ffa8(iVar2,1);\n      if (*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)) break;\n      iVar2 = *(int *)(iVar3 + 0x30);\n      sVar1 = *(short *)(iVar2 + 0xe);\n    }\n  }\n  if ((param_1[0xc] == 0) && (param_1[0x10] != 0)) {\n    (*(code *)PTR_sqlite3_free_000f639c)();\n    param_1[0xf] = 0;\n    param_1[0x10] = 0;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000302f0(int *param_1)" (identifier "FUN_000302f0") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  short sVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  if (*(uint *)(iVar3 + 4) < *(uint *)(iVar3 + 0x10)) {\n    iVar2 = *(int *)(iVar3 + 0x30);\n    sVar1 = *(short *)(iVar2 + 0xe);\n    while (sVar1 == 0) {\n      FUN_00018fb8(iVar2);\n      FUN_0002ffa8(iVar2,1);\n      if (*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)) break;\n      iVar2 = *(int *)(iVar3 + 0x30);\n      sVar1 = *(short *)(iVar2 + 0xe);\n    }\n  }\n  if ((param_1[0xc] == 0) && (param_1[0x10] != 0)) {\n    (*(code *)PTR_sqlite3_free_000f639c)();\n    param_1[0xf] = 0;\n    param_1[0x10] = 0;\n  }\n  return;\n}" ({ "{") (declaration "short sVar1;" (sized_type_specifier "short" (short "short")) (identifier "sVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" (identifier "iVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (*(uint *)(iVar3 + 4) < *(uint *)(iVar3 + 0x10)) {\n    iVar2 = *(int *)(iVar3 + 0x30);\n    sVar1 = *(short *)(iVar2 + 0xe);\n    while (sVar1 == 0) {\n      FUN_00018fb8(iVar2);\n      FUN_0002ffa8(iVar2,1);\n      if (*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)) break;\n      iVar2 = *(int *)(iVar3 + 0x30);\n      sVar1 = *(short *)(iVar2 + 0xe);\n    }\n  }" (if "if") (parenthesized_expression "(*(uint *)(iVar3 + 4) < *(uint *)(iVar3 + 0x10))" (( "(") (binary_expression "*(uint *)(iVar3 + 4) < *(uint *)(iVar3 + 0x10)" (pointer_expression "*(uint *)(iVar3 + 4)" (* "*") (cast_expression "(uint *)(iVar3 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 4)" (( "(") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) () ")")))) (< "<") (pointer_expression "*(uint *)(iVar3 + 0x10)" (* "*") (cast_expression "(uint *)(iVar3 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (compound_statement "{\n    iVar2 = *(int *)(iVar3 + 0x30);\n    sVar1 = *(short *)(iVar2 + 0xe);\n    while (sVar1 == 0) {\n      FUN_00018fb8(iVar2);\n      FUN_0002ffa8(iVar2,1);\n      if (*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)) break;\n      iVar2 = *(int *)(iVar3 + 0x30);\n      sVar1 = *(short *)(iVar2 + 0xe);\n    }\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(iVar3 + 0x30);" (assignment_expression "iVar2 = *(int *)(iVar3 + 0x30)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar3 + 0x30)" (* "*") (cast_expression "(int *)(iVar3 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x30)" (( "(") (binary_expression "iVar3 + 0x30" (identifier "iVar3") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "sVar1 = *(short *)(iVar2 + 0xe);" (assignment_expression "sVar1 = *(short *)(iVar2 + 0xe)" (identifier "sVar1") (= "=") (pointer_expression "*(short *)(iVar2 + 0xe)" (* "*") (cast_expression "(short *)(iVar2 + 0xe)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xe)" (( "(") (binary_expression "iVar2 + 0xe" (identifier "iVar2") (+ "+") (number_literal "0xe")) () ")"))))) (; ";")) (while_statement "while (sVar1 == 0) {\n      FUN_00018fb8(iVar2);\n      FUN_0002ffa8(iVar2,1);\n      if (*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)) break;\n      iVar2 = *(int *)(iVar3 + 0x30);\n      sVar1 = *(short *)(iVar2 + 0xe);\n    }" (while "while") (parenthesized_expression "(sVar1 == 0)" (( "(") (binary_expression "sVar1 == 0" (identifier "sVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00018fb8(iVar2);\n      FUN_0002ffa8(iVar2,1);\n      if (*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)) break;\n      iVar2 = *(int *)(iVar3 + 0x30);\n      sVar1 = *(short *)(iVar2 + 0xe);\n    }" ({ "{") (expression_statement "FUN_00018fb8(iVar2);" (call_expression "FUN_00018fb8(iVar2)" (identifier "FUN_00018fb8") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "FUN_0002ffa8(iVar2,1);" (call_expression "FUN_0002ffa8(iVar2,1)" (identifier "FUN_0002ffa8") (argument_list "(iVar2,1)" (( "(") (identifier "iVar2") (, ",") (number_literal "1") () ")"))) (; ";")) (if_statement "if (*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)) break;" (if "if") (parenthesized_expression "(*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4))" (( "(") (binary_expression "*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)" (pointer_expression "*(uint *)(iVar3 + 0x10)" (* "*") (cast_expression "(uint *)(iVar3 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")")))) (<= "<=") (pointer_expression "*(uint *)(iVar3 + 4)" (* "*") (cast_expression "(uint *)(iVar3 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 4)" (( "(") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) () ")"))))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar2 = *(int *)(iVar3 + 0x30);" (assignment_expression "iVar2 = *(int *)(iVar3 + 0x30)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar3 + 0x30)" (* "*") (cast_expression "(int *)(iVar3 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x30)" (( "(") (binary_expression "iVar3 + 0x30" (identifier "iVar3") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "sVar1 = *(short *)(iVar2 + 0xe);" (assignment_expression "sVar1 = *(short *)(iVar2 + 0xe)" (identifier "sVar1") (= "=") (pointer_expression "*(short *)(iVar2 + 0xe)" (* "*") (cast_expression "(short *)(iVar2 + 0xe)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xe)" (( "(") (binary_expression "iVar2 + 0xe" (identifier "iVar2") (+ "+") (number_literal "0xe")) () ")"))))) (; ";")) (} "}"))) (} "}"))) (if_statement "if ((param_1[0xc] == 0) && (param_1[0x10] != 0)) {\n    (*(code *)PTR_sqlite3_free_000f639c)();\n    param_1[0xf] = 0;\n    param_1[0x10] = 0;\n  }" (if "if") (parenthesized_expression "((param_1[0xc] == 0) && (param_1[0x10] != 0))" (( "(") (binary_expression "(param_1[0xc] == 0) && (param_1[0x10] != 0)" (parenthesized_expression "(param_1[0xc] == 0)" (( "(") (binary_expression "param_1[0xc] == 0" (subscript_expression "param_1[0xc]" (identifier "param_1") ([ "[") (number_literal "0xc") (] "]")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_1[0x10] != 0)" (( "(") (binary_expression "param_1[0x10] != 0" (subscript_expression "param_1[0x10]" (identifier "param_1") ([ "[") (number_literal "0x10") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    (*(code *)PTR_sqlite3_free_000f639c)();\n    param_1[0xf] = 0;\n    param_1[0x10] = 0;\n  }" ({ "{") (expression_statement "(*(code *)PTR_sqlite3_free_000f639c)();" (call_expression "(*(code *)PTR_sqlite3_free_000f639c)()" (parenthesized_expression "(*(code *)PTR_sqlite3_free_000f639c)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_free_000f639c" (* "*") (cast_expression "(code *)PTR_sqlite3_free_000f639c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_free_000f639c"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "param_1[0xf] = 0;" (assignment_expression "param_1[0xf] = 0" (subscript_expression "param_1[0xf]" (identifier "param_1") ([ "[") (number_literal "0xf") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x10] = 0;" (assignment_expression "param_1[0x10] = 0" (subscript_expression "param_1[0x10]" (identifier "param_1") ([ "[") (number_literal "0x10") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_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: (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_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: (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: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) (return_statement))))

void MASKED(int *param_1)

{
  short sVar1;
  int iVar2;
  int iVar3;
  
  iVar3 = *param_1;
  if (*(uint *)(iVar3 + 4) < *(uint *)(iVar3 + 0x10)) {
    iVar2 = *(int *)(iVar3 + 0x30);
    sVar1 = *(short *)(iVar2 + 0xe);
    while (sVar1 == 0) {
      FUN_00018fb8(iVar2);
      FUN_0002ffa8(iVar2,1);
      if (*(uint *)(iVar3 + 0x10) <= *(uint *)(iVar3 + 4)) break;
      iVar2 = *(int *)(iVar3 + 0x30);
      sVar1 = *(short *)(iVar2 + 0xe);
    }
  }
  if ((param_1[0xc] == 0) && (param_1[0x10] != 0)) {
    (*(code *)PTR_sqlite3_free_000f639c)();
    param_1[0xf] = 0;
    param_1[0x10] = 0;
  }
  return;
}

