
int sqlite3Fts5IterNextScan(Fts5IndexIter *pIndexIter)

{
  ushort uVar1;
  int iVar2;
  Fts5Index *p;
  
  p = *(Fts5Index **)&pIndexIter[1].iRowid;
  fts5MultiIterNext(p,(Fts5Iter *)pIndexIter,0,0);
  if (p->rc == 0) {
    uVar1 = *(ushort *)(*(int *)&pIndexIter[3].iRowid + 4);
    if ((*(int *)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c) != 0) &&
       (**(char **)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x8c) != '0')) {
      (*(code *)PTR_sqlite3_free_0019096c)();
      *(undefined4 *)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c) = 0;
      pIndexIter->bEof = '\x01';
      iVar2 = *(int *)(*(int *)&pIndexIter[1].iRowid + 0x24);
      *(undefined4 *)(*(int *)&pIndexIter[1].iRowid + 0x24) = 0;
      return iVar2;
    }
  }
  iVar2 = *(int *)(*(int *)&pIndexIter[1].iRowid + 0x24);
  *(undefined4 *)(*(int *)&pIndexIter[1].iRowid + 0x24) = 0;
  return iVar2;
}



undefined4 FUN_0013bc20(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  undefined4 uVar1;
  int iVar2;
  
  iVar2 = *(int *)(param_1 + 0x18);
  FUN_0013b3b8(iVar2,param_1,0,param_4,0,0);
  if (*(int *)(iVar2 + 0x24) == 0) {
    iVar2 = (uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58 + param_1;
    if ((*(int *)(iVar2 + 0x5c) != 0) && (**(char **)(iVar2 + 0x8c) != '0')) {
      (*(code *)PTR_sqlite3_free_0019096c)();
      *(undefined4 *)(iVar2 + 0x5c) = 0;
      *(undefined1 *)(param_1 + 0x10) = 1;
      uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);
      *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;
      return uVar1;
    }
  }
  uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);
  *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;
  return uVar1;
}


lui gp,0x6
addiu gp,gp,-0x3300
addu gp,gp,t9
addiu sp,sp,-0x30
lw t9,-0x7ce4(gp)
or v0,zero,zero
or v1,zero,zero
sw gp,0x18(sp)
or a2,zero,zero
sw s0,0x24(sp)
addiu t9,t9,-0x4c48
sw v0,0x10(sp)
or a1,a0,zero
sw ra,0x2c(sp)
or s0,a0,zero
sw s1,0x28(sp)
sw v1,0x14(sp)
lw s1,0x18(a0)
bal 0x0013b3b8
_or a0,s1,zero
lw v0,0x24(s1)
bne v0,zero,0x0013bcac
_lw gp,0x18(sp)
lw v0,0x48(s0)
lhu s1,0x4(v0)
li v0,0x58
mul v1,s1,v0
addu s1,v1,s0
lw a0,0x5c(s1)
beq a0,zero,0x0013bcac
_li v0,0x30
lw v1,0x8c(s1)
lbu v1,0x0(v1)
bne v1,v0,0x0013bccc
_lw t9,-0x7fb4(gp)
lw v1,0x18(s0)
lw v0,0x24(v1)
sw zero,0x24(v1)
lw ra,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x30
jalr t9
_nop
li v0,0x1
sw zero,0x5c(s1)
sb v0,0x10(s0)
lw v1,0x18(s0)
lw v0,0x24(v1)
sw zero,0x24(v1)
lw ra,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "undefined4 FUN_0013bc20(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x18);\n  FUN_0013b3b8(iVar2,param_1,0,param_4,0,0);\n  if (*(int *)(iVar2 + 0x24) == 0) {\n    iVar2 = (uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58 + param_1;\n    if ((*(int *)(iVar2 + 0x5c) != 0) && (**(char **)(iVar2 + 0x8c) != '0')) {\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)(iVar2 + 0x5c) = 0;\n      *(undefined1 *)(param_1 + 0x10) = 1;\n      uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n      *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n      return uVar1;\n    }\n  }\n  uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n  *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_0013bc20(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x18);\n  FUN_0013b3b8(iVar2,param_1,0,param_4,0,0);\n  if (*(int *)(iVar2 + 0x24) == 0) {\n    iVar2 = (uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58 + param_1;\n    if ((*(int *)(iVar2 + 0x5c) != 0) && (**(char **)(iVar2 + 0x8c) != '0')) {\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)(iVar2 + 0x5c) = 0;\n      *(undefined1 *)(param_1 + 0x10) = 1;\n      uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n      *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n      return uVar1;\n    }\n  }\n  uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n  *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n  return uVar1;\n}" type_identifier (function_declarator "FUN_0013bc20(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x18);\n  FUN_0013b3b8(iVar2,param_1,0,param_4,0,0);\n  if (*(int *)(iVar2 + 0x24) == 0) {\n    iVar2 = (uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58 + param_1;\n    if ((*(int *)(iVar2 + 0x5c) != 0) && (**(char **)(iVar2 + 0x8c) != '0')) {\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)(iVar2 + 0x5c) = 0;\n      *(undefined1 *)(param_1 + 0x10) = 1;\n      uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n      *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n      return uVar1;\n    }\n  }\n  uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n  *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x18)" identifier = (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) ))))) ;) (expression_statement "FUN_0013b3b8(iVar2,param_1,0,param_4,0,0);" (call_expression "FUN_0013b3b8(iVar2,param_1,0,param_4,0,0)" identifier (argument_list "(iVar2,param_1,0,param_4,0,0)" ( identifier , identifier , number_literal , identifier , number_literal , number_literal ))) ;) (if_statement "if (*(int *)(iVar2 + 0x24) == 0) {\n    iVar2 = (uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58 + param_1;\n    if ((*(int *)(iVar2 + 0x5c) != 0) && (**(char **)(iVar2 + 0x8c) != '0')) {\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)(iVar2 + 0x5c) = 0;\n      *(undefined1 *)(param_1 + 0x10) = 1;\n      uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n      *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n      return uVar1;\n    }\n  }" if (parenthesized_expression "(*(int *)(iVar2 + 0x24) == 0)" ( (binary_expression "*(int *)(iVar2 + 0x24) == 0" (pointer_expression "*(int *)(iVar2 + 0x24)" * (cast_expression "(int *)(iVar2 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x24)" ( (binary_expression "iVar2 + 0x24" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar2 = (uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58 + param_1;\n    if ((*(int *)(iVar2 + 0x5c) != 0) && (**(char **)(iVar2 + 0x8c) != '0')) {\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)(iVar2 + 0x5c) = 0;\n      *(undefined1 *)(param_1 + 0x10) = 1;\n      uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n      *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n      return uVar1;\n    }\n  }" { (expression_statement "iVar2 = (uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58 + param_1;" (assignment_expression "iVar2 = (uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58 + param_1" identifier = (binary_expression "(uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58 + param_1" (binary_expression "(uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58" (binary_expression "(uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(*(int *)(param_1 + 0x48) + 4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x48) + 4)" ( (binary_expression "*(int *)(param_1 + 0x48) + 4" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) + number_literal) )))) * number_literal) + identifier)) ;) (if_statement "if ((*(int *)(iVar2 + 0x5c) != 0) && (**(char **)(iVar2 + 0x8c) != '0')) {\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)(iVar2 + 0x5c) = 0;\n      *(undefined1 *)(param_1 + 0x10) = 1;\n      uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n      *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n      return uVar1;\n    }" if (parenthesized_expression "((*(int *)(iVar2 + 0x5c) != 0) && (**(char **)(iVar2 + 0x8c) != '0'))" ( (binary_expression "(*(int *)(iVar2 + 0x5c) != 0) && (**(char **)(iVar2 + 0x8c) != '0')" (parenthesized_expression "(*(int *)(iVar2 + 0x5c) != 0)" ( (binary_expression "*(int *)(iVar2 + 0x5c) != 0" (pointer_expression "*(int *)(iVar2 + 0x5c)" * (cast_expression "(int *)(iVar2 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x5c)" ( (binary_expression "iVar2 + 0x5c" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(**(char **)(iVar2 + 0x8c) != '0')" ( (binary_expression "**(char **)(iVar2 + 0x8c) != '0'" (pointer_expression "**(char **)(iVar2 + 0x8c)" * (pointer_expression "*(char **)(iVar2 + 0x8c)" * (cast_expression "(char **)(iVar2 + 0x8c)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x8c)" ( (binary_expression "iVar2 + 0x8c" identifier + number_literal) ))))) != (char_literal "'0'" ' character ')) ))) )) (compound_statement "{\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)(iVar2 + 0x5c) = 0;\n      *(undefined1 *)(param_1 + 0x10) = 1;\n      uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n      *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n      return uVar1;\n    }" { (expression_statement "(*(code *)PTR_sqlite3_free_0019096c)();" (call_expression "(*(code *)PTR_sqlite3_free_0019096c)()" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0019096c)" ( (pointer_expression "*(code *)PTR_sqlite3_free_0019096c" * (cast_expression "(code *)PTR_sqlite3_free_0019096c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x5c) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x5c) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x5c)" * (cast_expression "(undefined4 *)(iVar2 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x5c)" ( (binary_expression "iVar2 + 0x5c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(param_1 + 0x10) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x10) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x10)" * (cast_expression "(undefined1 *)(param_1 + 0x10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);" (assignment_expression "uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + 0x24)" ( (binary_expression "*(int *)(param_1 + 0x18) + 0x24" (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) ))))) ;) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + 0x24)" ( (binary_expression "*(int *)(param_1 + 0x18) + 0x24" (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) )))) = number_literal) ;) (return_statement "return uVar1;" return identifier ;) })) })) (expression_statement "uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);" (assignment_expression "uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + 0x24)" ( (binary_expression "*(int *)(param_1 + 0x18) + 0x24" (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) ))))) ;) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + 0x24)" ( (binary_expression "*(int *)(param_1 + 0x18) + 0x24" (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) )))) = number_literal) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "int sqlite3Fts5IterNextScan(Fts5IndexIter *pIndexIter)\n\n{\n  ushort uVar1;\n  int iVar2;\n  Fts5Index *p;\n  \n  p = *(Fts5Index **)&pIndexIter[1].iRowid;\n  fts5MultiIterNext(p,(Fts5Iter *)pIndexIter,0,0);\n  if (p->rc == 0) {\n    uVar1 = *(ushort *)(*(int *)&pIndexIter[3].iRowid + 4);\n    if ((*(int *)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c) != 0) &&\n       (**(char **)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x8c) != '0')) {\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c) = 0;\n      pIndexIter->bEof = '\x01';\n      iVar2 = *(int *)(*(int *)&pIndexIter[1].iRowid + 0x24);\n      *(undefined4 *)(*(int *)&pIndexIter[1].iRowid + 0x24) = 0;\n      return iVar2;\n    }\n  }\n  iVar2 = *(int *)(*(int *)&pIndexIter[1].iRowid + 0x24);\n  *(undefined4 *)(*(int *)&pIndexIter[1].iRowid + 0x24) = 0;\n  return iVar2;\n}\n\n" (function_definition "int sqlite3Fts5IterNextScan(Fts5IndexIter *pIndexIter)\n\n{\n  ushort uVar1;\n  int iVar2;\n  Fts5Index *p;\n  \n  p = *(Fts5Index **)&pIndexIter[1].iRowid;\n  fts5MultiIterNext(p,(Fts5Iter *)pIndexIter,0,0);\n  if (p->rc == 0) {\n    uVar1 = *(ushort *)(*(int *)&pIndexIter[3].iRowid + 4);\n    if ((*(int *)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c) != 0) &&\n       (**(char **)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x8c) != '0')) {\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c) = 0;\n      pIndexIter->bEof = '\x01';\n      iVar2 = *(int *)(*(int *)&pIndexIter[1].iRowid + 0x24);\n      *(undefined4 *)(*(int *)&pIndexIter[1].iRowid + 0x24) = 0;\n      return iVar2;\n    }\n  }\n  iVar2 = *(int *)(*(int *)&pIndexIter[1].iRowid + 0x24);\n  *(undefined4 *)(*(int *)&pIndexIter[1].iRowid + 0x24) = 0;\n  return iVar2;\n}" primitive_type (function_declarator "sqlite3Fts5IterNextScan(Fts5IndexIter *pIndexIter)" identifier (parameter_list "(Fts5IndexIter *pIndexIter)" ( (parameter_declaration "Fts5IndexIter *pIndexIter" type_identifier (pointer_declarator "*pIndexIter" * identifier)) ))) (compound_statement "{\n  ushort uVar1;\n  int iVar2;\n  Fts5Index *p;\n  \n  p = *(Fts5Index **)&pIndexIter[1].iRowid;\n  fts5MultiIterNext(p,(Fts5Iter *)pIndexIter,0,0);\n  if (p->rc == 0) {\n    uVar1 = *(ushort *)(*(int *)&pIndexIter[3].iRowid + 4);\n    if ((*(int *)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c) != 0) &&\n       (**(char **)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x8c) != '0')) {\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c) = 0;\n      pIndexIter->bEof = '\x01';\n      iVar2 = *(int *)(*(int *)&pIndexIter[1].iRowid + 0x24);\n      *(undefined4 *)(*(int *)&pIndexIter[1].iRowid + 0x24) = 0;\n      return iVar2;\n    }\n  }\n  iVar2 = *(int *)(*(int *)&pIndexIter[1].iRowid + 0x24);\n  *(undefined4 *)(*(int *)&pIndexIter[1].iRowid + 0x24) = 0;\n  return iVar2;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "Fts5Index *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (expression_statement "p = *(Fts5Index **)&pIndexIter[1].iRowid;" (assignment_expression "p = *(Fts5Index **)&pIndexIter[1].iRowid" identifier = (pointer_expression "*(Fts5Index **)&pIndexIter[1].iRowid" * (cast_expression "(Fts5Index **)&pIndexIter[1].iRowid" ( (type_descriptor "Fts5Index **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&pIndexIter[1].iRowid" & (field_expression "pIndexIter[1].iRowid" (subscript_expression "pIndexIter[1]" identifier [ number_literal ]) . field_identifier))))) ;) (expression_statement "fts5MultiIterNext(p,(Fts5Iter *)pIndexIter,0,0);" (call_expression "fts5MultiIterNext(p,(Fts5Iter *)pIndexIter,0,0)" identifier (argument_list "(p,(Fts5Iter *)pIndexIter,0,0)" ( identifier , (cast_expression "(Fts5Iter *)pIndexIter" ( (type_descriptor "Fts5Iter *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , number_literal ))) ;) (if_statement "if (p->rc == 0) {\n    uVar1 = *(ushort *)(*(int *)&pIndexIter[3].iRowid + 4);\n    if ((*(int *)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c) != 0) &&\n       (**(char **)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x8c) != '0')) {\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c) = 0;\n      pIndexIter->bEof = '\x01';\n      iVar2 = *(int *)(*(int *)&pIndexIter[1].iRowid + 0x24);\n      *(undefined4 *)(*(int *)&pIndexIter[1].iRowid + 0x24) = 0;\n      return iVar2;\n    }\n  }" if (parenthesized_expression "(p->rc == 0)" ( (binary_expression "p->rc == 0" (field_expression "p->rc" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    uVar1 = *(ushort *)(*(int *)&pIndexIter[3].iRowid + 4);\n    if ((*(int *)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c) != 0) &&\n       (**(char **)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x8c) != '0')) {\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c) = 0;\n      pIndexIter->bEof = '\x01';\n      iVar2 = *(int *)(*(int *)&pIndexIter[1].iRowid + 0x24);\n      *(undefined4 *)(*(int *)&pIndexIter[1].iRowid + 0x24) = 0;\n      return iVar2;\n    }\n  }" { (expression_statement "uVar1 = *(ushort *)(*(int *)&pIndexIter[3].iRowid + 4);" (assignment_expression "uVar1 = *(ushort *)(*(int *)&pIndexIter[3].iRowid + 4)" identifier = (pointer_expression "*(ushort *)(*(int *)&pIndexIter[3].iRowid + 4)" * (cast_expression "(ushort *)(*(int *)&pIndexIter[3].iRowid + 4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)&pIndexIter[3].iRowid + 4)" ( (binary_expression "*(int *)&pIndexIter[3].iRowid + 4" (pointer_expression "*(int *)&pIndexIter[3].iRowid" * (cast_expression "(int *)&pIndexIter[3].iRowid" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pIndexIter[3].iRowid" & (field_expression "pIndexIter[3].iRowid" (subscript_expression "pIndexIter[3]" identifier [ number_literal ]) . field_identifier)))) + number_literal) ))))) ;) (if_statement "if ((*(int *)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c) != 0) &&\n       (**(char **)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x8c) != '0')) {\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c) = 0;\n      pIndexIter->bEof = '\x01';\n      iVar2 = *(int *)(*(int *)&pIndexIter[1].iRowid + 0x24);\n      *(undefined4 *)(*(int *)&pIndexIter[1].iRowid + 0x24) = 0;\n      return iVar2;\n    }" if (parenthesized_expression "((*(int *)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c) != 0) &&\n       (**(char **)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x8c) != '0'))" ( (binary_expression "(*(int *)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c) != 0) &&\n       (**(char **)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x8c) != '0')" (parenthesized_expression "(*(int *)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c) != 0)" ( (binary_expression "*(int *)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c) != 0" (pointer_expression "*(int *)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c)" * (cast_expression "(int *)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c)" ( (binary_expression "(int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c" (binary_expression "(int)pIndexIter + (uint)uVar1 * 0x58" (cast_expression "(int)pIndexIter" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)uVar1 * 0x58" (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) != number_literal) )) && (parenthesized_expression "(**(char **)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x8c) != '0')" ( (binary_expression "**(char **)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x8c) != '0'" (pointer_expression "**(char **)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x8c)" * (pointer_expression "*(char **)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x8c)" * (cast_expression "(char **)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x8c)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pIndexIter + (uint)uVar1 * 0x58 + 0x8c)" ( (binary_expression "(int)pIndexIter + (uint)uVar1 * 0x58 + 0x8c" (binary_expression "(int)pIndexIter + (uint)uVar1 * 0x58" (cast_expression "(int)pIndexIter" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)uVar1 * 0x58" (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) ))))) != (char_literal "'0'" ' character ')) ))) )) (compound_statement "{\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c) = 0;\n      pIndexIter->bEof = '\x01';\n      iVar2 = *(int *)(*(int *)&pIndexIter[1].iRowid + 0x24);\n      *(undefined4 *)(*(int *)&pIndexIter[1].iRowid + 0x24) = 0;\n      return iVar2;\n    }" { (expression_statement "(*(code *)PTR_sqlite3_free_0019096c)();" (call_expression "(*(code *)PTR_sqlite3_free_0019096c)()" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0019096c)" ( (pointer_expression "*(code *)PTR_sqlite3_free_0019096c" * (cast_expression "(code *)PTR_sqlite3_free_0019096c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c) = 0;" (assignment_expression "*(undefined4 *)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c) = 0" (pointer_expression "*(undefined4 *)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c)" * (cast_expression "(undefined4 *)((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c)" ( (binary_expression "(int)pIndexIter + (uint)uVar1 * 0x58 + 0x5c" (binary_expression "(int)pIndexIter + (uint)uVar1 * 0x58" (cast_expression "(int)pIndexIter" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)uVar1 * 0x58" (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) = number_literal) ;) (expression_statement "pIndexIter->bEof = '\x01';" (assignment_expression "pIndexIter->bEof = '\x01'" (field_expression "pIndexIter->bEof" identifier -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "iVar2 = *(int *)(*(int *)&pIndexIter[1].iRowid + 0x24);" (assignment_expression "iVar2 = *(int *)(*(int *)&pIndexIter[1].iRowid + 0x24)" identifier = (pointer_expression "*(int *)(*(int *)&pIndexIter[1].iRowid + 0x24)" * (cast_expression "(int *)(*(int *)&pIndexIter[1].iRowid + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)&pIndexIter[1].iRowid + 0x24)" ( (binary_expression "*(int *)&pIndexIter[1].iRowid + 0x24" (pointer_expression "*(int *)&pIndexIter[1].iRowid" * (cast_expression "(int *)&pIndexIter[1].iRowid" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pIndexIter[1].iRowid" & (field_expression "pIndexIter[1].iRowid" (subscript_expression "pIndexIter[1]" identifier [ number_literal ]) . field_identifier)))) + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(*(int *)&pIndexIter[1].iRowid + 0x24) = 0;" (assignment_expression "*(undefined4 *)(*(int *)&pIndexIter[1].iRowid + 0x24) = 0" (pointer_expression "*(undefined4 *)(*(int *)&pIndexIter[1].iRowid + 0x24)" * (cast_expression "(undefined4 *)(*(int *)&pIndexIter[1].iRowid + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)&pIndexIter[1].iRowid + 0x24)" ( (binary_expression "*(int *)&pIndexIter[1].iRowid + 0x24" (pointer_expression "*(int *)&pIndexIter[1].iRowid" * (cast_expression "(int *)&pIndexIter[1].iRowid" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pIndexIter[1].iRowid" & (field_expression "pIndexIter[1].iRowid" (subscript_expression "pIndexIter[1]" identifier [ number_literal ]) . field_identifier)))) + number_literal) )))) = number_literal) ;) (return_statement "return iVar2;" return identifier ;) })) })) (expression_statement "iVar2 = *(int *)(*(int *)&pIndexIter[1].iRowid + 0x24);" (assignment_expression "iVar2 = *(int *)(*(int *)&pIndexIter[1].iRowid + 0x24)" identifier = (pointer_expression "*(int *)(*(int *)&pIndexIter[1].iRowid + 0x24)" * (cast_expression "(int *)(*(int *)&pIndexIter[1].iRowid + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)&pIndexIter[1].iRowid + 0x24)" ( (binary_expression "*(int *)&pIndexIter[1].iRowid + 0x24" (pointer_expression "*(int *)&pIndexIter[1].iRowid" * (cast_expression "(int *)&pIndexIter[1].iRowid" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pIndexIter[1].iRowid" & (field_expression "pIndexIter[1].iRowid" (subscript_expression "pIndexIter[1]" identifier [ number_literal ]) . field_identifier)))) + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(*(int *)&pIndexIter[1].iRowid + 0x24) = 0;" (assignment_expression "*(undefined4 *)(*(int *)&pIndexIter[1].iRowid + 0x24) = 0" (pointer_expression "*(undefined4 *)(*(int *)&pIndexIter[1].iRowid + 0x24)" * (cast_expression "(undefined4 *)(*(int *)&pIndexIter[1].iRowid + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)&pIndexIter[1].iRowid + 0x24)" ( (binary_expression "*(int *)&pIndexIter[1].iRowid + 0x24" (pointer_expression "*(int *)&pIndexIter[1].iRowid" * (cast_expression "(int *)&pIndexIter[1].iRowid" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pIndexIter[1].iRowid" & (field_expression "pIndexIter[1].iRowid" (subscript_expression "pIndexIter[1]" identifier [ number_literal ]) . field_identifier)))) + number_literal) )))) = number_literal) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "undefined4 FUN_0013bc20(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x18);\n  FUN_0013b3b8(iVar2,param_1,0,param_4,0,0);\n  if (*(int *)(iVar2 + 0x24) == 0) {\n    iVar2 = (uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58 + param_1;\n    if ((*(int *)(iVar2 + 0x5c) != 0) && (**(char **)(iVar2 + 0x8c) != '0')) {\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)(iVar2 + 0x5c) = 0;\n      *(undefined1 *)(param_1 + 0x10) = 1;\n      uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n      *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n      return uVar1;\n    }\n  }\n  uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n  *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_0013bc20(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x18);\n  FUN_0013b3b8(iVar2,param_1,0,param_4,0,0);\n  if (*(int *)(iVar2 + 0x24) == 0) {\n    iVar2 = (uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58 + param_1;\n    if ((*(int *)(iVar2 + 0x5c) != 0) && (**(char **)(iVar2 + 0x8c) != '0')) {\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)(iVar2 + 0x5c) = 0;\n      *(undefined1 *)(param_1 + 0x10) = 1;\n      uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n      *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n      return uVar1;\n    }\n  }\n  uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n  *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n  return uVar1;\n}" type_identifier (function_declarator "FUN_0013bc20(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x18);\n  FUN_0013b3b8(iVar2,param_1,0,param_4,0,0);\n  if (*(int *)(iVar2 + 0x24) == 0) {\n    iVar2 = (uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58 + param_1;\n    if ((*(int *)(iVar2 + 0x5c) != 0) && (**(char **)(iVar2 + 0x8c) != '0')) {\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)(iVar2 + 0x5c) = 0;\n      *(undefined1 *)(param_1 + 0x10) = 1;\n      uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n      *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n      return uVar1;\n    }\n  }\n  uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n  *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x18)" identifier = (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) ))))) ;) (expression_statement "FUN_0013b3b8(iVar2,param_1,0,param_4,0,0);" (call_expression "FUN_0013b3b8(iVar2,param_1,0,param_4,0,0)" identifier (argument_list "(iVar2,param_1,0,param_4,0,0)" ( identifier , identifier , number_literal , identifier , number_literal , number_literal ))) ;) (if_statement "if (*(int *)(iVar2 + 0x24) == 0) {\n    iVar2 = (uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58 + param_1;\n    if ((*(int *)(iVar2 + 0x5c) != 0) && (**(char **)(iVar2 + 0x8c) != '0')) {\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)(iVar2 + 0x5c) = 0;\n      *(undefined1 *)(param_1 + 0x10) = 1;\n      uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n      *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n      return uVar1;\n    }\n  }" if (parenthesized_expression "(*(int *)(iVar2 + 0x24) == 0)" ( (binary_expression "*(int *)(iVar2 + 0x24) == 0" (pointer_expression "*(int *)(iVar2 + 0x24)" * (cast_expression "(int *)(iVar2 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x24)" ( (binary_expression "iVar2 + 0x24" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar2 = (uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58 + param_1;\n    if ((*(int *)(iVar2 + 0x5c) != 0) && (**(char **)(iVar2 + 0x8c) != '0')) {\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)(iVar2 + 0x5c) = 0;\n      *(undefined1 *)(param_1 + 0x10) = 1;\n      uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n      *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n      return uVar1;\n    }\n  }" { (expression_statement "iVar2 = (uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58 + param_1;" (assignment_expression "iVar2 = (uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58 + param_1" identifier = (binary_expression "(uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58 + param_1" (binary_expression "(uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58" (binary_expression "(uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(*(int *)(param_1 + 0x48) + 4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x48) + 4)" ( (binary_expression "*(int *)(param_1 + 0x48) + 4" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) + number_literal) )))) * number_literal) + identifier)) ;) (if_statement "if ((*(int *)(iVar2 + 0x5c) != 0) && (**(char **)(iVar2 + 0x8c) != '0')) {\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)(iVar2 + 0x5c) = 0;\n      *(undefined1 *)(param_1 + 0x10) = 1;\n      uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n      *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n      return uVar1;\n    }" if (parenthesized_expression "((*(int *)(iVar2 + 0x5c) != 0) && (**(char **)(iVar2 + 0x8c) != '0'))" ( (binary_expression "(*(int *)(iVar2 + 0x5c) != 0) && (**(char **)(iVar2 + 0x8c) != '0')" (parenthesized_expression "(*(int *)(iVar2 + 0x5c) != 0)" ( (binary_expression "*(int *)(iVar2 + 0x5c) != 0" (pointer_expression "*(int *)(iVar2 + 0x5c)" * (cast_expression "(int *)(iVar2 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x5c)" ( (binary_expression "iVar2 + 0x5c" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(**(char **)(iVar2 + 0x8c) != '0')" ( (binary_expression "**(char **)(iVar2 + 0x8c) != '0'" (pointer_expression "**(char **)(iVar2 + 0x8c)" * (pointer_expression "*(char **)(iVar2 + 0x8c)" * (cast_expression "(char **)(iVar2 + 0x8c)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x8c)" ( (binary_expression "iVar2 + 0x8c" identifier + number_literal) ))))) != (char_literal "'0'" ' character ')) ))) )) (compound_statement "{\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)(iVar2 + 0x5c) = 0;\n      *(undefined1 *)(param_1 + 0x10) = 1;\n      uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n      *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n      return uVar1;\n    }" { (expression_statement "(*(code *)PTR_sqlite3_free_0019096c)();" (call_expression "(*(code *)PTR_sqlite3_free_0019096c)()" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0019096c)" ( (pointer_expression "*(code *)PTR_sqlite3_free_0019096c" * (cast_expression "(code *)PTR_sqlite3_free_0019096c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x5c) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x5c) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x5c)" * (cast_expression "(undefined4 *)(iVar2 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x5c)" ( (binary_expression "iVar2 + 0x5c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(param_1 + 0x10) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x10) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x10)" * (cast_expression "(undefined1 *)(param_1 + 0x10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);" (assignment_expression "uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + 0x24)" ( (binary_expression "*(int *)(param_1 + 0x18) + 0x24" (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) ))))) ;) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + 0x24)" ( (binary_expression "*(int *)(param_1 + 0x18) + 0x24" (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) )))) = number_literal) ;) (return_statement "return uVar1;" return identifier ;) })) })) (expression_statement "uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);" (assignment_expression "uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + 0x24)" ( (binary_expression "*(int *)(param_1 + 0x18) + 0x24" (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) ))))) ;) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + 0x24)" ( (binary_expression "*(int *)(param_1 + 0x18) + 0x24" (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) )))) = number_literal) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , IDENT , LIT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (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) )))) * LIT) + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) != (char_literal ' character ')) ))) )) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (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 (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) )))) = LIT) ;) (return_statement return 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 (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) )))) = LIT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0013bc20(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x18);\n  FUN_0013b3b8(iVar2,param_1,0,param_4,0,0);\n  if (*(int *)(iVar2 + 0x24) == 0) {\n    iVar2 = (uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58 + param_1;\n    if ((*(int *)(iVar2 + 0x5c) != 0) && (**(char **)(iVar2 + 0x8c) != '0')) {\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)(iVar2 + 0x5c) = 0;\n      *(undefined1 *)(param_1 + 0x10) = 1;\n      uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n      *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n      return uVar1;\n    }\n  }\n  uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n  *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "FUN_0013bc20(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_0013bc20") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x18);\n  FUN_0013b3b8(iVar2,param_1,0,param_4,0,0);\n  if (*(int *)(iVar2 + 0x24) == 0) {\n    iVar2 = (uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58 + param_1;\n    if ((*(int *)(iVar2 + 0x5c) != 0) && (**(char **)(iVar2 + 0x8c) != '0')) {\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)(iVar2 + 0x5c) = 0;\n      *(undefined1 *)(param_1 + 0x10) = 1;\n      uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n      *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n      return uVar1;\n    }\n  }\n  uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n  *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x18)" (identifier "iVar2") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "FUN_0013b3b8(iVar2,param_1,0,param_4,0,0);" (call_expression "FUN_0013b3b8(iVar2,param_1,0,param_4,0,0)" (identifier "FUN_0013b3b8") (argument_list "(iVar2,param_1,0,param_4,0,0)" (( "(") (identifier "iVar2") (, ",") (identifier "param_1") (, ",") (number_literal "0") (, ",") (identifier "param_4") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (*(int *)(iVar2 + 0x24) == 0) {\n    iVar2 = (uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58 + param_1;\n    if ((*(int *)(iVar2 + 0x5c) != 0) && (**(char **)(iVar2 + 0x8c) != '0')) {\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)(iVar2 + 0x5c) = 0;\n      *(undefined1 *)(param_1 + 0x10) = 1;\n      uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n      *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n      return uVar1;\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar2 + 0x24) == 0)" (( "(") (binary_expression "*(int *)(iVar2 + 0x24) == 0" (pointer_expression "*(int *)(iVar2 + 0x24)" (* "*") (cast_expression "(int *)(iVar2 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x24)" (( "(") (binary_expression "iVar2 + 0x24" (identifier "iVar2") (+ "+") (number_literal "0x24")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = (uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58 + param_1;\n    if ((*(int *)(iVar2 + 0x5c) != 0) && (**(char **)(iVar2 + 0x8c) != '0')) {\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)(iVar2 + 0x5c) = 0;\n      *(undefined1 *)(param_1 + 0x10) = 1;\n      uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n      *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n      return uVar1;\n    }\n  }" ({ "{") (expression_statement "iVar2 = (uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58 + param_1;" (assignment_expression "iVar2 = (uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58 + param_1" (identifier "iVar2") (= "=") (binary_expression "(uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58 + param_1" (binary_expression "(uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58" (binary_expression "(uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(ushort *)(*(int *)(param_1 + 0x48) + 4)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x48) + 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x48) + 4" (pointer_expression "*(int *)(param_1 + 0x48)" (* "*") (cast_expression "(int *)(param_1 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (+ "+") (number_literal "4")) () ")")))) (* "*") (number_literal "0x58")) (+ "+") (identifier "param_1"))) (; ";")) (if_statement "if ((*(int *)(iVar2 + 0x5c) != 0) && (**(char **)(iVar2 + 0x8c) != '0')) {\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)(iVar2 + 0x5c) = 0;\n      *(undefined1 *)(param_1 + 0x10) = 1;\n      uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n      *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n      return uVar1;\n    }" (if "if") (parenthesized_expression "((*(int *)(iVar2 + 0x5c) != 0) && (**(char **)(iVar2 + 0x8c) != '0'))" (( "(") (binary_expression "(*(int *)(iVar2 + 0x5c) != 0) && (**(char **)(iVar2 + 0x8c) != '0')" (parenthesized_expression "(*(int *)(iVar2 + 0x5c) != 0)" (( "(") (binary_expression "*(int *)(iVar2 + 0x5c) != 0" (pointer_expression "*(int *)(iVar2 + 0x5c)" (* "*") (cast_expression "(int *)(iVar2 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x5c)" (( "(") (binary_expression "iVar2 + 0x5c" (identifier "iVar2") (+ "+") (number_literal "0x5c")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(**(char **)(iVar2 + 0x8c) != '0')" (( "(") (binary_expression "**(char **)(iVar2 + 0x8c) != '0'" (pointer_expression "**(char **)(iVar2 + 0x8c)" (* "*") (pointer_expression "*(char **)(iVar2 + 0x8c)" (* "*") (cast_expression "(char **)(iVar2 + 0x8c)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 0x8c)" (( "(") (binary_expression "iVar2 + 0x8c" (identifier "iVar2") (+ "+") (number_literal "0x8c")) () ")"))))) (!= "!=") (char_literal "'0'" (' "'") (character "0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n      (*(code *)PTR_sqlite3_free_0019096c)();\n      *(undefined4 *)(iVar2 + 0x5c) = 0;\n      *(undefined1 *)(param_1 + 0x10) = 1;\n      uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);\n      *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;\n      return uVar1;\n    }" ({ "{") (expression_statement "(*(code *)PTR_sqlite3_free_0019096c)();" (call_expression "(*(code *)PTR_sqlite3_free_0019096c)()" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0019096c)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_free_0019096c" (* "*") (cast_expression "(code *)PTR_sqlite3_free_0019096c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_free_0019096c"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0x5c) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x5c) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x5c)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x5c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x5c)" (( "(") (binary_expression "iVar2 + 0x5c" (identifier "iVar2") (+ "+") (number_literal "0x5c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0x10) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x10) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);" (assignment_expression "uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x18) + 0x24)" (( "(") (binary_expression "*(int *)(param_1 + 0x18) + 0x24" (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 "0x24")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x18) + 0x24)" (( "(") (binary_expression "*(int *)(param_1 + 0x18) + 0x24" (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 "0x24")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);" (assignment_expression "uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x18) + 0x24)" (( "(") (binary_expression "*(int *)(param_1 + 0x18) + 0x24" (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 "0x24")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x18) + 0x24)" (( "(") (binary_expression "*(int *)(param_1 + 0x18) + 0x24" (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 "0x24")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal) (identifier) (number_literal) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) 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))))) right: (number_literal)) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (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))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (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: (identifier) right: (number_literal)))))) right: (char_literal (character)))))) 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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (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: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) 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))))) right: (number_literal))) (return_statement (identifier)))))) (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: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) 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))))) right: (number_literal))) (return_statement (identifier)))))

undefined4 MASKED(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  undefined4 uVar1;
  int iVar2;
  
  iVar2 = *(int *)(param_1 + 0x18);
  FUN_0013b3b8(iVar2,param_1,0,param_4,0,0);
  if (*(int *)(iVar2 + 0x24) == 0) {
    iVar2 = (uint)*(ushort *)(*(int *)(param_1 + 0x48) + 4) * 0x58 + param_1;
    if ((*(int *)(iVar2 + 0x5c) != 0) && (**(char **)(iVar2 + 0x8c) != '0')) {
      (*(code *)PTR_sqlite3_free_0019096c)();
      *(undefined4 *)(iVar2 + 0x5c) = 0;
      *(undefined1 *)(param_1 + 0x10) = 1;
      uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);
      *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;
      return uVar1;
    }
  }
  uVar1 = *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24);
  *(undefined4 *)(*(int *)(param_1 + 0x18) + 0x24) = 0;
  return uVar1;
}

