
sqlite3_int64 sqlite3_memory_highwater(int resetFlag)

{
  int iVar1;
  VtabCtx *pVVar2;
  int iVar3;
  undefined4 extraout_v1;
  sqlite3 *db;
  int iVar4;
  sqlite3 *psVar5;
  u8 uVar6;
  int *piVar7;
  int in_t9;
  code *pcVar8;
  sqlite3_int64 res;
  sqlite3_int64 mx;
  sqlite3 *psStack_c;
  
  piVar7 = *(int **)(in_t9 + 0xb0e88);
  uVar6 = (u8)&mx;
  psStack_c = (sqlite3 *)*piVar7;
  (**(code **)(in_t9 + 0xb0e04))(0,&res);
  db = (sqlite3 *)*piVar7;
  if (psStack_c == db) {
    return mx;
  }
  pcVar8 = *(code **)(in_t9 + 0xb0e60);
  psVar5 = psStack_c;
  (*pcVar8)();
  piVar7 = *(int **)(pcVar8 + 0xb0e10);
  iVar1 = *piVar7;
  (**(code **)(pcVar8 + 0xb0cf0))(db->mutex);
  pVVar2 = db->pVtabCtx;
  if (pVVar2 == (VtabCtx *)0x0) {
    iVar4 = 0x22641;
  }
  else {
    if (psVar5 == (sqlite3 *)0x2) {
      iVar4 = 0;
      pVVar2->pVTable->eVtabRisk = '\0';
      goto LAB_00044818;
    }
    if (psVar5 == (sqlite3 *)0x3) {
      iVar4 = 0;
      pVVar2->pVTable->eVtabRisk = '\x02';
      goto LAB_00044818;
    }
    if (psVar5 == (sqlite3 *)0x1) {
      iVar4 = 0;
      pVVar2->pVTable->bConstraint = uVar6;
      goto LAB_00044818;
    }
    iVar4 = 0x22653;
  }
  iVar4 = sqlite3MisuseError(iVar4);
  if (iVar4 != 0) {
    db->errCode = iVar4;
    sqlite3ErrorFinish(db,iVar4);
  }
LAB_00044818:
  (**(code **)(pcVar8 + 0xb0d18))(db->mutex);
  iVar3 = *piVar7;
  if (iVar1 == iVar3) {
    return CONCAT44(iVar4,iVar3);
  }
  pcVar8 = *(code **)(pcVar8 + 0xb0de8);
  (*pcVar8)();
  iVar4 = (**(code **)(pcVar8 + 0xb0c64))();
  (**(code **)(pcVar8 + 0xb0b30))
            (0xe,*(int *)(pcVar8 + 0xb0a30) + 0x722c,*(int *)(pcVar8 + 0xb0a30) + 0x7248,iVar1,
             iVar4 + 0x14);
  return CONCAT44(0xe,extraout_v1);
}



undefined8 sqlite3_memory_highwater(void)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  undefined4 extraout_v1;
  int iVar4;
  undefined4 uVar5;
  undefined1 uVar6;
  int *piVar7;
  undefined *puVar8;
  code *pcVar9;
  undefined1 auStack_20 [8];
  undefined8 local_18;
  int local_c;
  
  puVar8 = PTR___stack_chk_guard_000f5568;
  uVar6 = SUB41(&local_18,0);
  local_c = *(int *)PTR___stack_chk_guard_000f5568;
  (*(code *)PTR_sqlite3_status64_000f54e4)(0,auStack_20);
  iVar4 = *(int *)puVar8;
  if (local_c == iVar4) {
    return local_18;
  }
  iVar3 = local_c;
  puVar8 = PTR___stack_chk_fail_000f5540;
  (*(code *)PTR___stack_chk_fail_000f5540)();
  piVar7 = *(int **)(puVar8 + 0xb0e10);
  iVar1 = *piVar7;
  (**(code **)(puVar8 + 0xb0cf0))(*(undefined4 *)(iVar4 + 0xc));
  piVar2 = *(int **)(iVar4 + 0x178);
  if (piVar2 == (int *)0x0) {
    uVar5 = 0x22641;
  }
  else {
    if (iVar3 == 2) {
      iVar3 = 0;
      *(undefined1 *)(*piVar2 + 0x11) = 0;
      goto LAB_00044818;
    }
    if (iVar3 == 3) {
      iVar3 = 0;
      *(undefined1 *)(*piVar2 + 0x11) = 2;
      goto LAB_00044818;
    }
    if (iVar3 == 1) {
      iVar3 = 0;
      *(undefined1 *)(*piVar2 + 0x10) = uVar6;
      goto LAB_00044818;
    }
    uVar5 = 0x22653;
  }
  iVar3 = FUN_00044440(uVar5);
  if (iVar3 != 0) {
    *(int *)(iVar4 + 0x40) = iVar3;
    FUN_00029df8(iVar4,iVar3);
  }
LAB_00044818:
  (**(code **)(puVar8 + 0xb0d18))(*(undefined4 *)(iVar4 + 0xc));
  iVar4 = *piVar7;
  if (iVar1 == iVar4) {
    return CONCAT44(iVar3,iVar4);
  }
  pcVar9 = *(code **)(puVar8 + 0xb0de8);
  (*pcVar9)();
  iVar4 = (**(code **)(pcVar9 + 0xb0c64))();
  (**(code **)(pcVar9 + 0xb0b30))
            (0xe,*(int *)(pcVar9 + 0xb0a30) + 0x722c,*(int *)(pcVar9 + 0xb0a30) + 0x7248,iVar1,
             iVar4 + 0x14);
  return CONCAT44(0xe,extraout_v1);
}


lui gp,0xc
addiu gp,gp,-0x7440
addu gp,gp,t9
addiu sp,sp,-0x38
lw t9,-0x7dbc(gp)
or a3,a0,zero
addiu a1,sp,0x18
sw s0,0x30(sp)
or a0,zero,zero
lw s0,-0x7d38(gp)
addiu a2,sp,0x20
sw gp,0x10(sp)
sw ra,0x34(sp)
lw v0,0x0(s0)
sw v0,0x2c(sp)
jalr t9
_nop
lw a1,0x2c(sp)
lw a0,0x0(s0)
lw gp,0x10(sp)
lw v1,0x24(sp)
bne a1,a0,0x0004474c
_lw v0,0x20(sp)
lw ra,0x34(sp)
lw s0,0x30(sp)
jr ra
_addiu sp,sp,0x38
lw t9,-0x7d60(gp)
jalr t9
_nop
(translation_unit "undefined8 sqlite3_memory_highwater(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 extraout_v1;\n  int iVar4;\n  undefined4 uVar5;\n  undefined1 uVar6;\n  int *piVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  undefined1 auStack_20 [8];\n  undefined8 local_18;\n  int local_c;\n  \n  puVar8 = PTR___stack_chk_guard_000f5568;\n  uVar6 = SUB41(&local_18,0);\n  local_c = *(int *)PTR___stack_chk_guard_000f5568;\n  (*(code *)PTR_sqlite3_status64_000f54e4)(0,auStack_20);\n  iVar4 = *(int *)puVar8;\n  if (local_c == iVar4) {\n    return local_18;\n  }\n  iVar3 = local_c;\n  puVar8 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  piVar7 = *(int **)(puVar8 + 0xb0e10);\n  iVar1 = *piVar7;\n  (**(code **)(puVar8 + 0xb0cf0))(*(undefined4 *)(iVar4 + 0xc));\n  piVar2 = *(int **)(iVar4 + 0x178);\n  if (piVar2 == (int *)0x0) {\n    uVar5 = 0x22641;\n  }\n  else {\n    if (iVar3 == 2) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 0;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 3) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 2;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 1) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x10) = uVar6;\n      goto LAB_00044818;\n    }\n    uVar5 = 0x22653;\n  }\n  iVar3 = FUN_00044440(uVar5);\n  if (iVar3 != 0) {\n    *(int *)(iVar4 + 0x40) = iVar3;\n    FUN_00029df8(iVar4,iVar3);\n  }\nLAB_00044818:\n  (**(code **)(puVar8 + 0xb0d18))(*(undefined4 *)(iVar4 + 0xc));\n  iVar4 = *piVar7;\n  if (iVar1 == iVar4) {\n    return CONCAT44(iVar3,iVar4);\n  }\n  pcVar9 = *(code **)(puVar8 + 0xb0de8);\n  (*pcVar9)();\n  iVar4 = (**(code **)(pcVar9 + 0xb0c64))();\n  (**(code **)(pcVar9 + 0xb0b30))\n            (0xe,*(int *)(pcVar9 + 0xb0a30) + 0x722c,*(int *)(pcVar9 + 0xb0a30) + 0x7248,iVar1,\n             iVar4 + 0x14);\n  return CONCAT44(0xe,extraout_v1);\n}\n\n" (function_definition "undefined8 sqlite3_memory_highwater(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 extraout_v1;\n  int iVar4;\n  undefined4 uVar5;\n  undefined1 uVar6;\n  int *piVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  undefined1 auStack_20 [8];\n  undefined8 local_18;\n  int local_c;\n  \n  puVar8 = PTR___stack_chk_guard_000f5568;\n  uVar6 = SUB41(&local_18,0);\n  local_c = *(int *)PTR___stack_chk_guard_000f5568;\n  (*(code *)PTR_sqlite3_status64_000f54e4)(0,auStack_20);\n  iVar4 = *(int *)puVar8;\n  if (local_c == iVar4) {\n    return local_18;\n  }\n  iVar3 = local_c;\n  puVar8 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  piVar7 = *(int **)(puVar8 + 0xb0e10);\n  iVar1 = *piVar7;\n  (**(code **)(puVar8 + 0xb0cf0))(*(undefined4 *)(iVar4 + 0xc));\n  piVar2 = *(int **)(iVar4 + 0x178);\n  if (piVar2 == (int *)0x0) {\n    uVar5 = 0x22641;\n  }\n  else {\n    if (iVar3 == 2) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 0;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 3) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 2;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 1) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x10) = uVar6;\n      goto LAB_00044818;\n    }\n    uVar5 = 0x22653;\n  }\n  iVar3 = FUN_00044440(uVar5);\n  if (iVar3 != 0) {\n    *(int *)(iVar4 + 0x40) = iVar3;\n    FUN_00029df8(iVar4,iVar3);\n  }\nLAB_00044818:\n  (**(code **)(puVar8 + 0xb0d18))(*(undefined4 *)(iVar4 + 0xc));\n  iVar4 = *piVar7;\n  if (iVar1 == iVar4) {\n    return CONCAT44(iVar3,iVar4);\n  }\n  pcVar9 = *(code **)(puVar8 + 0xb0de8);\n  (*pcVar9)();\n  iVar4 = (**(code **)(pcVar9 + 0xb0c64))();\n  (**(code **)(pcVar9 + 0xb0b30))\n            (0xe,*(int *)(pcVar9 + 0xb0a30) + 0x722c,*(int *)(pcVar9 + 0xb0a30) + 0x7248,iVar1,\n             iVar4 + 0x14);\n  return CONCAT44(0xe,extraout_v1);\n}" type_identifier (function_declarator "sqlite3_memory_highwater(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 extraout_v1;\n  int iVar4;\n  undefined4 uVar5;\n  undefined1 uVar6;\n  int *piVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  undefined1 auStack_20 [8];\n  undefined8 local_18;\n  int local_c;\n  \n  puVar8 = PTR___stack_chk_guard_000f5568;\n  uVar6 = SUB41(&local_18,0);\n  local_c = *(int *)PTR___stack_chk_guard_000f5568;\n  (*(code *)PTR_sqlite3_status64_000f54e4)(0,auStack_20);\n  iVar4 = *(int *)puVar8;\n  if (local_c == iVar4) {\n    return local_18;\n  }\n  iVar3 = local_c;\n  puVar8 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  piVar7 = *(int **)(puVar8 + 0xb0e10);\n  iVar1 = *piVar7;\n  (**(code **)(puVar8 + 0xb0cf0))(*(undefined4 *)(iVar4 + 0xc));\n  piVar2 = *(int **)(iVar4 + 0x178);\n  if (piVar2 == (int *)0x0) {\n    uVar5 = 0x22641;\n  }\n  else {\n    if (iVar3 == 2) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 0;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 3) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 2;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 1) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x10) = uVar6;\n      goto LAB_00044818;\n    }\n    uVar5 = 0x22653;\n  }\n  iVar3 = FUN_00044440(uVar5);\n  if (iVar3 != 0) {\n    *(int *)(iVar4 + 0x40) = iVar3;\n    FUN_00029df8(iVar4,iVar3);\n  }\nLAB_00044818:\n  (**(code **)(puVar8 + 0xb0d18))(*(undefined4 *)(iVar4 + 0xc));\n  iVar4 = *piVar7;\n  if (iVar1 == iVar4) {\n    return CONCAT44(iVar3,iVar4);\n  }\n  pcVar9 = *(code **)(puVar8 + 0xb0de8);\n  (*pcVar9)();\n  iVar4 = (**(code **)(pcVar9 + 0xb0c64))();\n  (**(code **)(pcVar9 + 0xb0b30))\n            (0xe,*(int *)(pcVar9 + 0xb0a30) + 0x722c,*(int *)(pcVar9 + 0xb0a30) + 0x7248,iVar1,\n             iVar4 + 0x14);\n  return CONCAT44(0xe,extraout_v1);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 extraout_v1;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined1 uVar6;" type_identifier identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "code *pcVar9;" type_identifier (pointer_declarator "*pcVar9" * identifier) ;) (declaration "undefined1 auStack_20 [8];" type_identifier (array_declarator "auStack_20 [8]" identifier [ number_literal ]) ;) (declaration "undefined8 local_18;" type_identifier identifier ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "puVar8 = PTR___stack_chk_guard_000f5568;" (assignment_expression "puVar8 = PTR___stack_chk_guard_000f5568" identifier = identifier) ;) (expression_statement "uVar6 = SUB41(&local_18,0);" (assignment_expression "uVar6 = SUB41(&local_18,0)" identifier = (call_expression "SUB41(&local_18,0)" identifier (argument_list "(&local_18,0)" ( (pointer_expression "&local_18" & identifier) , number_literal )))) ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_000f5568;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_000f5568" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000f5568" * (cast_expression "(int *)PTR___stack_chk_guard_000f5568" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_sqlite3_status64_000f54e4)(0,auStack_20);" (call_expression "(*(code *)PTR_sqlite3_status64_000f54e4)(0,auStack_20)" (parenthesized_expression "(*(code *)PTR_sqlite3_status64_000f54e4)" ( (pointer_expression "*(code *)PTR_sqlite3_status64_000f54e4" * (cast_expression "(code *)PTR_sqlite3_status64_000f54e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,auStack_20)" ( number_literal , identifier ))) ;) (expression_statement "iVar4 = *(int *)puVar8;" (assignment_expression "iVar4 = *(int *)puVar8" identifier = (pointer_expression "*(int *)puVar8" * (cast_expression "(int *)puVar8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (local_c == iVar4) {\n    return local_18;\n  }" if (parenthesized_expression "(local_c == iVar4)" ( (binary_expression "local_c == iVar4" identifier == identifier) )) (compound_statement "{\n    return local_18;\n  }" { (return_statement "return local_18;" return identifier ;) })) (expression_statement "iVar3 = local_c;" (assignment_expression "iVar3 = local_c" identifier = identifier) ;) (expression_statement "puVar8 = PTR___stack_chk_fail_000f5540;" (assignment_expression "puVar8 = PTR___stack_chk_fail_000f5540" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000f5540)();" (call_expression "(*(code *)PTR___stack_chk_fail_000f5540)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000f5540)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000f5540" * (cast_expression "(code *)PTR___stack_chk_fail_000f5540" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar7 = *(int **)(puVar8 + 0xb0e10);" (assignment_expression "piVar7 = *(int **)(puVar8 + 0xb0e10)" identifier = (pointer_expression "*(int **)(puVar8 + 0xb0e10)" * (cast_expression "(int **)(puVar8 + 0xb0e10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0xb0e10)" ( (binary_expression "puVar8 + 0xb0e10" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *piVar7;" (assignment_expression "iVar1 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) (expression_statement "(**(code **)(puVar8 + 0xb0cf0))(*(undefined4 *)(iVar4 + 0xc));" (call_expression "(**(code **)(puVar8 + 0xb0cf0))(*(undefined4 *)(iVar4 + 0xc))" (parenthesized_expression "(**(code **)(puVar8 + 0xb0cf0))" ( (pointer_expression "**(code **)(puVar8 + 0xb0cf0)" * (pointer_expression "*(code **)(puVar8 + 0xb0cf0)" * (cast_expression "(code **)(puVar8 + 0xb0cf0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0xb0cf0)" ( (binary_expression "puVar8 + 0xb0cf0" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar4 + 0xc))" ( (pointer_expression "*(undefined4 *)(iVar4 + 0xc)" * (cast_expression "(undefined4 *)(iVar4 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xc)" ( (binary_expression "iVar4 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "piVar2 = *(int **)(iVar4 + 0x178);" (assignment_expression "piVar2 = *(int **)(iVar4 + 0x178)" identifier = (pointer_expression "*(int **)(iVar4 + 0x178)" * (cast_expression "(int **)(iVar4 + 0x178)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x178)" ( (binary_expression "iVar4 + 0x178" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n    uVar5 = 0x22641;\n  }\n  else {\n    if (iVar3 == 2) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 0;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 3) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 2;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 1) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x10) = uVar6;\n      goto LAB_00044818;\n    }\n    uVar5 = 0x22653;\n  }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar5 = 0x22641;\n  }" { (expression_statement "uVar5 = 0x22641;" (assignment_expression "uVar5 = 0x22641" identifier = number_literal) ;) }) (else_clause "else {\n    if (iVar3 == 2) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 0;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 3) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 2;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 1) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x10) = uVar6;\n      goto LAB_00044818;\n    }\n    uVar5 = 0x22653;\n  }" else (compound_statement "{\n    if (iVar3 == 2) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 0;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 3) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 2;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 1) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x10) = uVar6;\n      goto LAB_00044818;\n    }\n    uVar5 = 0x22653;\n  }" { (if_statement "if (iVar3 == 2) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 0;\n      goto LAB_00044818;\n    }" if (parenthesized_expression "(iVar3 == 2)" ( (binary_expression "iVar3 == 2" identifier == number_literal) )) (compound_statement "{\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 0;\n      goto LAB_00044818;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "*(undefined1 *)(*piVar2 + 0x11) = 0;" (assignment_expression "*(undefined1 *)(*piVar2 + 0x11) = 0" (pointer_expression "*(undefined1 *)(*piVar2 + 0x11)" * (cast_expression "(undefined1 *)(*piVar2 + 0x11)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + 0x11)" ( (binary_expression "*piVar2 + 0x11" (pointer_expression "*piVar2" * identifier) + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_00044818;" goto statement_identifier ;) })) (if_statement "if (iVar3 == 3) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 2;\n      goto LAB_00044818;\n    }" if (parenthesized_expression "(iVar3 == 3)" ( (binary_expression "iVar3 == 3" identifier == number_literal) )) (compound_statement "{\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 2;\n      goto LAB_00044818;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "*(undefined1 *)(*piVar2 + 0x11) = 2;" (assignment_expression "*(undefined1 *)(*piVar2 + 0x11) = 2" (pointer_expression "*(undefined1 *)(*piVar2 + 0x11)" * (cast_expression "(undefined1 *)(*piVar2 + 0x11)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + 0x11)" ( (binary_expression "*piVar2 + 0x11" (pointer_expression "*piVar2" * identifier) + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_00044818;" goto statement_identifier ;) })) (if_statement "if (iVar3 == 1) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x10) = uVar6;\n      goto LAB_00044818;\n    }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x10) = uVar6;\n      goto LAB_00044818;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "*(undefined1 *)(*piVar2 + 0x10) = uVar6;" (assignment_expression "*(undefined1 *)(*piVar2 + 0x10) = uVar6" (pointer_expression "*(undefined1 *)(*piVar2 + 0x10)" * (cast_expression "(undefined1 *)(*piVar2 + 0x10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + 0x10)" ( (binary_expression "*piVar2 + 0x10" (pointer_expression "*piVar2" * identifier) + number_literal) )))) = identifier) ;) (goto_statement "goto LAB_00044818;" goto statement_identifier ;) })) (expression_statement "uVar5 = 0x22653;" (assignment_expression "uVar5 = 0x22653" identifier = number_literal) ;) }))) (expression_statement "iVar3 = FUN_00044440(uVar5);" (assignment_expression "iVar3 = FUN_00044440(uVar5)" identifier = (call_expression "FUN_00044440(uVar5)" identifier (argument_list "(uVar5)" ( identifier )))) ;) (if_statement "if (iVar3 != 0) {\n    *(int *)(iVar4 + 0x40) = iVar3;\n    FUN_00029df8(iVar4,iVar3);\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    *(int *)(iVar4 + 0x40) = iVar3;\n    FUN_00029df8(iVar4,iVar3);\n  }" { (expression_statement "*(int *)(iVar4 + 0x40) = iVar3;" (assignment_expression "*(int *)(iVar4 + 0x40) = iVar3" (pointer_expression "*(int *)(iVar4 + 0x40)" * (cast_expression "(int *)(iVar4 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x40)" ( (binary_expression "iVar4 + 0x40" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_00029df8(iVar4,iVar3);" (call_expression "FUN_00029df8(iVar4,iVar3)" identifier (argument_list "(iVar4,iVar3)" ( identifier , identifier ))) ;) })) (labeled_statement "LAB_00044818:\n  (**(code **)(puVar8 + 0xb0d18))(*(undefined4 *)(iVar4 + 0xc));" statement_identifier : (expression_statement "(**(code **)(puVar8 + 0xb0d18))(*(undefined4 *)(iVar4 + 0xc));" (call_expression "(**(code **)(puVar8 + 0xb0d18))(*(undefined4 *)(iVar4 + 0xc))" (parenthesized_expression "(**(code **)(puVar8 + 0xb0d18))" ( (pointer_expression "**(code **)(puVar8 + 0xb0d18)" * (pointer_expression "*(code **)(puVar8 + 0xb0d18)" * (cast_expression "(code **)(puVar8 + 0xb0d18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0xb0d18)" ( (binary_expression "puVar8 + 0xb0d18" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar4 + 0xc))" ( (pointer_expression "*(undefined4 *)(iVar4 + 0xc)" * (cast_expression "(undefined4 *)(iVar4 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xc)" ( (binary_expression "iVar4 + 0xc" identifier + number_literal) )))) ))) ;)) (expression_statement "iVar4 = *piVar7;" (assignment_expression "iVar4 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) (if_statement "if (iVar1 == iVar4) {\n    return CONCAT44(iVar3,iVar4);\n  }" if (parenthesized_expression "(iVar1 == iVar4)" ( (binary_expression "iVar1 == iVar4" identifier == identifier) )) (compound_statement "{\n    return CONCAT44(iVar3,iVar4);\n  }" { (return_statement "return CONCAT44(iVar3,iVar4);" return (call_expression "CONCAT44(iVar3,iVar4)" identifier (argument_list "(iVar3,iVar4)" ( identifier , identifier ))) ;) })) (expression_statement "pcVar9 = *(code **)(puVar8 + 0xb0de8);" (assignment_expression "pcVar9 = *(code **)(puVar8 + 0xb0de8)" identifier = (pointer_expression "*(code **)(puVar8 + 0xb0de8)" * (cast_expression "(code **)(puVar8 + 0xb0de8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0xb0de8)" ( (binary_expression "puVar8 + 0xb0de8" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar9)();" (call_expression "(*pcVar9)()" (parenthesized_expression "(*pcVar9)" ( (pointer_expression "*pcVar9" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "iVar4 = (**(code **)(pcVar9 + 0xb0c64))();" (assignment_expression "iVar4 = (**(code **)(pcVar9 + 0xb0c64))()" identifier = (call_expression "(**(code **)(pcVar9 + 0xb0c64))()" (parenthesized_expression "(**(code **)(pcVar9 + 0xb0c64))" ( (pointer_expression "**(code **)(pcVar9 + 0xb0c64)" * (pointer_expression "*(code **)(pcVar9 + 0xb0c64)" * (cast_expression "(code **)(pcVar9 + 0xb0c64)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar9 + 0xb0c64)" ( (binary_expression "pcVar9 + 0xb0c64" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "(**(code **)(pcVar9 + 0xb0b30))\n            (0xe,*(int *)(pcVar9 + 0xb0a30) + 0x722c,*(int *)(pcVar9 + 0xb0a30) + 0x7248,iVar1,\n             iVar4 + 0x14);" (call_expression "(**(code **)(pcVar9 + 0xb0b30))\n            (0xe,*(int *)(pcVar9 + 0xb0a30) + 0x722c,*(int *)(pcVar9 + 0xb0a30) + 0x7248,iVar1,\n             iVar4 + 0x14)" (parenthesized_expression "(**(code **)(pcVar9 + 0xb0b30))" ( (pointer_expression "**(code **)(pcVar9 + 0xb0b30)" * (pointer_expression "*(code **)(pcVar9 + 0xb0b30)" * (cast_expression "(code **)(pcVar9 + 0xb0b30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar9 + 0xb0b30)" ( (binary_expression "pcVar9 + 0xb0b30" identifier + number_literal) ))))) )) (argument_list "(0xe,*(int *)(pcVar9 + 0xb0a30) + 0x722c,*(int *)(pcVar9 + 0xb0a30) + 0x7248,iVar1,\n             iVar4 + 0x14)" ( number_literal , (binary_expression "*(int *)(pcVar9 + 0xb0a30) + 0x722c" (pointer_expression "*(int *)(pcVar9 + 0xb0a30)" * (cast_expression "(int *)(pcVar9 + 0xb0a30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar9 + 0xb0a30)" ( (binary_expression "pcVar9 + 0xb0a30" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(pcVar9 + 0xb0a30) + 0x7248" (pointer_expression "*(int *)(pcVar9 + 0xb0a30)" * (cast_expression "(int *)(pcVar9 + 0xb0a30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar9 + 0xb0a30)" ( (binary_expression "pcVar9 + 0xb0a30" identifier + number_literal) )))) + number_literal) , identifier , (binary_expression "iVar4 + 0x14" identifier + number_literal) ))) ;) (return_statement "return CONCAT44(0xe,extraout_v1);" return (call_expression "CONCAT44(0xe,extraout_v1)" identifier (argument_list "(0xe,extraout_v1)" ( number_literal , identifier ))) ;) })))
(translation_unit "sqlite3_int64 sqlite3_memory_highwater(int resetFlag)\n\n{\n  int iVar1;\n  VtabCtx *pVVar2;\n  int iVar3;\n  undefined4 extraout_v1;\n  sqlite3 *db;\n  int iVar4;\n  sqlite3 *psVar5;\n  u8 uVar6;\n  int *piVar7;\n  int in_t9;\n  code *pcVar8;\n  sqlite3_int64 res;\n  sqlite3_int64 mx;\n  sqlite3 *psStack_c;\n  \n  piVar7 = *(int **)(in_t9 + 0xb0e88);\n  uVar6 = (u8)&mx;\n  psStack_c = (sqlite3 *)*piVar7;\n  (**(code **)(in_t9 + 0xb0e04))(0,&res);\n  db = (sqlite3 *)*piVar7;\n  if (psStack_c == db) {\n    return mx;\n  }\n  pcVar8 = *(code **)(in_t9 + 0xb0e60);\n  psVar5 = psStack_c;\n  (*pcVar8)();\n  piVar7 = *(int **)(pcVar8 + 0xb0e10);\n  iVar1 = *piVar7;\n  (**(code **)(pcVar8 + 0xb0cf0))(db->mutex);\n  pVVar2 = db->pVtabCtx;\n  if (pVVar2 == (VtabCtx *)0x0) {\n    iVar4 = 0x22641;\n  }\n  else {\n    if (psVar5 == (sqlite3 *)0x2) {\n      iVar4 = 0;\n      pVVar2->pVTable->eVtabRisk = '\0';\n      goto LAB_00044818;\n    }\n    if (psVar5 == (sqlite3 *)0x3) {\n      iVar4 = 0;\n      pVVar2->pVTable->eVtabRisk = '\x02';\n      goto LAB_00044818;\n    }\n    if (psVar5 == (sqlite3 *)0x1) {\n      iVar4 = 0;\n      pVVar2->pVTable->bConstraint = uVar6;\n      goto LAB_00044818;\n    }\n    iVar4 = 0x22653;\n  }\n  iVar4 = sqlite3MisuseError(iVar4);\n  if (iVar4 != 0) {\n    db->errCode = iVar4;\n    sqlite3ErrorFinish(db,iVar4);\n  }\nLAB_00044818:\n  (**(code **)(pcVar8 + 0xb0d18))(db->mutex);\n  iVar3 = *piVar7;\n  if (iVar1 == iVar3) {\n    return CONCAT44(iVar4,iVar3);\n  }\n  pcVar8 = *(code **)(pcVar8 + 0xb0de8);\n  (*pcVar8)();\n  iVar4 = (**(code **)(pcVar8 + 0xb0c64))();\n  (**(code **)(pcVar8 + 0xb0b30))\n            (0xe,*(int *)(pcVar8 + 0xb0a30) + 0x722c,*(int *)(pcVar8 + 0xb0a30) + 0x7248,iVar1,\n             iVar4 + 0x14);\n  return CONCAT44(0xe,extraout_v1);\n}\n\n" (function_definition "sqlite3_int64 sqlite3_memory_highwater(int resetFlag)\n\n{\n  int iVar1;\n  VtabCtx *pVVar2;\n  int iVar3;\n  undefined4 extraout_v1;\n  sqlite3 *db;\n  int iVar4;\n  sqlite3 *psVar5;\n  u8 uVar6;\n  int *piVar7;\n  int in_t9;\n  code *pcVar8;\n  sqlite3_int64 res;\n  sqlite3_int64 mx;\n  sqlite3 *psStack_c;\n  \n  piVar7 = *(int **)(in_t9 + 0xb0e88);\n  uVar6 = (u8)&mx;\n  psStack_c = (sqlite3 *)*piVar7;\n  (**(code **)(in_t9 + 0xb0e04))(0,&res);\n  db = (sqlite3 *)*piVar7;\n  if (psStack_c == db) {\n    return mx;\n  }\n  pcVar8 = *(code **)(in_t9 + 0xb0e60);\n  psVar5 = psStack_c;\n  (*pcVar8)();\n  piVar7 = *(int **)(pcVar8 + 0xb0e10);\n  iVar1 = *piVar7;\n  (**(code **)(pcVar8 + 0xb0cf0))(db->mutex);\n  pVVar2 = db->pVtabCtx;\n  if (pVVar2 == (VtabCtx *)0x0) {\n    iVar4 = 0x22641;\n  }\n  else {\n    if (psVar5 == (sqlite3 *)0x2) {\n      iVar4 = 0;\n      pVVar2->pVTable->eVtabRisk = '\0';\n      goto LAB_00044818;\n    }\n    if (psVar5 == (sqlite3 *)0x3) {\n      iVar4 = 0;\n      pVVar2->pVTable->eVtabRisk = '\x02';\n      goto LAB_00044818;\n    }\n    if (psVar5 == (sqlite3 *)0x1) {\n      iVar4 = 0;\n      pVVar2->pVTable->bConstraint = uVar6;\n      goto LAB_00044818;\n    }\n    iVar4 = 0x22653;\n  }\n  iVar4 = sqlite3MisuseError(iVar4);\n  if (iVar4 != 0) {\n    db->errCode = iVar4;\n    sqlite3ErrorFinish(db,iVar4);\n  }\nLAB_00044818:\n  (**(code **)(pcVar8 + 0xb0d18))(db->mutex);\n  iVar3 = *piVar7;\n  if (iVar1 == iVar3) {\n    return CONCAT44(iVar4,iVar3);\n  }\n  pcVar8 = *(code **)(pcVar8 + 0xb0de8);\n  (*pcVar8)();\n  iVar4 = (**(code **)(pcVar8 + 0xb0c64))();\n  (**(code **)(pcVar8 + 0xb0b30))\n            (0xe,*(int *)(pcVar8 + 0xb0a30) + 0x722c,*(int *)(pcVar8 + 0xb0a30) + 0x7248,iVar1,\n             iVar4 + 0x14);\n  return CONCAT44(0xe,extraout_v1);\n}" type_identifier (function_declarator "sqlite3_memory_highwater(int resetFlag)" identifier (parameter_list "(int resetFlag)" ( (parameter_declaration "int resetFlag" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  VtabCtx *pVVar2;\n  int iVar3;\n  undefined4 extraout_v1;\n  sqlite3 *db;\n  int iVar4;\n  sqlite3 *psVar5;\n  u8 uVar6;\n  int *piVar7;\n  int in_t9;\n  code *pcVar8;\n  sqlite3_int64 res;\n  sqlite3_int64 mx;\n  sqlite3 *psStack_c;\n  \n  piVar7 = *(int **)(in_t9 + 0xb0e88);\n  uVar6 = (u8)&mx;\n  psStack_c = (sqlite3 *)*piVar7;\n  (**(code **)(in_t9 + 0xb0e04))(0,&res);\n  db = (sqlite3 *)*piVar7;\n  if (psStack_c == db) {\n    return mx;\n  }\n  pcVar8 = *(code **)(in_t9 + 0xb0e60);\n  psVar5 = psStack_c;\n  (*pcVar8)();\n  piVar7 = *(int **)(pcVar8 + 0xb0e10);\n  iVar1 = *piVar7;\n  (**(code **)(pcVar8 + 0xb0cf0))(db->mutex);\n  pVVar2 = db->pVtabCtx;\n  if (pVVar2 == (VtabCtx *)0x0) {\n    iVar4 = 0x22641;\n  }\n  else {\n    if (psVar5 == (sqlite3 *)0x2) {\n      iVar4 = 0;\n      pVVar2->pVTable->eVtabRisk = '\0';\n      goto LAB_00044818;\n    }\n    if (psVar5 == (sqlite3 *)0x3) {\n      iVar4 = 0;\n      pVVar2->pVTable->eVtabRisk = '\x02';\n      goto LAB_00044818;\n    }\n    if (psVar5 == (sqlite3 *)0x1) {\n      iVar4 = 0;\n      pVVar2->pVTable->bConstraint = uVar6;\n      goto LAB_00044818;\n    }\n    iVar4 = 0x22653;\n  }\n  iVar4 = sqlite3MisuseError(iVar4);\n  if (iVar4 != 0) {\n    db->errCode = iVar4;\n    sqlite3ErrorFinish(db,iVar4);\n  }\nLAB_00044818:\n  (**(code **)(pcVar8 + 0xb0d18))(db->mutex);\n  iVar3 = *piVar7;\n  if (iVar1 == iVar3) {\n    return CONCAT44(iVar4,iVar3);\n  }\n  pcVar8 = *(code **)(pcVar8 + 0xb0de8);\n  (*pcVar8)();\n  iVar4 = (**(code **)(pcVar8 + 0xb0c64))();\n  (**(code **)(pcVar8 + 0xb0b30))\n            (0xe,*(int *)(pcVar8 + 0xb0a30) + 0x722c,*(int *)(pcVar8 + 0xb0a30) + 0x7248,iVar1,\n             iVar4 + 0x14);\n  return CONCAT44(0xe,extraout_v1);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "VtabCtx *pVVar2;" type_identifier (pointer_declarator "*pVVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 extraout_v1;" type_identifier identifier ;) (declaration "sqlite3 *db;" type_identifier (pointer_declarator "*db" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "sqlite3 *psVar5;" type_identifier (pointer_declarator "*psVar5" * identifier) ;) (declaration "u8 uVar6;" type_identifier identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int in_t9;" primitive_type identifier ;) (declaration "code *pcVar8;" type_identifier (pointer_declarator "*pcVar8" * identifier) ;) (declaration "sqlite3_int64 res;" type_identifier identifier ;) (declaration "sqlite3_int64 mx;" type_identifier identifier ;) (declaration "sqlite3 *psStack_c;" type_identifier (pointer_declarator "*psStack_c" * identifier) ;) (expression_statement "piVar7 = *(int **)(in_t9 + 0xb0e88);" (assignment_expression "piVar7 = *(int **)(in_t9 + 0xb0e88)" identifier = (pointer_expression "*(int **)(in_t9 + 0xb0e88)" * (cast_expression "(int **)(in_t9 + 0xb0e88)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0xb0e88)" ( (binary_expression "in_t9 + 0xb0e88" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = (u8)&mx;" (assignment_expression "uVar6 = (u8)&mx" identifier = (binary_expression "(u8)&mx" (parenthesized_expression "(u8)" ( identifier )) & identifier)) ;) (expression_statement "psStack_c = (sqlite3 *)*piVar7;" (assignment_expression "psStack_c = (sqlite3 *)*piVar7" identifier = (cast_expression "(sqlite3 *)*piVar7" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar7" * identifier))) ;) (expression_statement "(**(code **)(in_t9 + 0xb0e04))(0,&res);" (call_expression "(**(code **)(in_t9 + 0xb0e04))(0,&res)" (parenthesized_expression "(**(code **)(in_t9 + 0xb0e04))" ( (pointer_expression "**(code **)(in_t9 + 0xb0e04)" * (pointer_expression "*(code **)(in_t9 + 0xb0e04)" * (cast_expression "(code **)(in_t9 + 0xb0e04)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0xb0e04)" ( (binary_expression "in_t9 + 0xb0e04" identifier + number_literal) ))))) )) (argument_list "(0,&res)" ( number_literal , (pointer_expression "&res" & identifier) ))) ;) (expression_statement "db = (sqlite3 *)*piVar7;" (assignment_expression "db = (sqlite3 *)*piVar7" identifier = (cast_expression "(sqlite3 *)*piVar7" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar7" * identifier))) ;) (if_statement "if (psStack_c == db) {\n    return mx;\n  }" if (parenthesized_expression "(psStack_c == db)" ( (binary_expression "psStack_c == db" identifier == identifier) )) (compound_statement "{\n    return mx;\n  }" { (return_statement "return mx;" return identifier ;) })) (expression_statement "pcVar8 = *(code **)(in_t9 + 0xb0e60);" (assignment_expression "pcVar8 = *(code **)(in_t9 + 0xb0e60)" identifier = (pointer_expression "*(code **)(in_t9 + 0xb0e60)" * (cast_expression "(code **)(in_t9 + 0xb0e60)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0xb0e60)" ( (binary_expression "in_t9 + 0xb0e60" identifier + number_literal) ))))) ;) (expression_statement "psVar5 = psStack_c;" (assignment_expression "psVar5 = psStack_c" identifier = identifier) ;) (expression_statement "(*pcVar8)();" (call_expression "(*pcVar8)()" (parenthesized_expression "(*pcVar8)" ( (pointer_expression "*pcVar8" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "piVar7 = *(int **)(pcVar8 + 0xb0e10);" (assignment_expression "piVar7 = *(int **)(pcVar8 + 0xb0e10)" identifier = (pointer_expression "*(int **)(pcVar8 + 0xb0e10)" * (cast_expression "(int **)(pcVar8 + 0xb0e10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0xb0e10)" ( (binary_expression "pcVar8 + 0xb0e10" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *piVar7;" (assignment_expression "iVar1 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) (expression_statement "(**(code **)(pcVar8 + 0xb0cf0))(db->mutex);" (call_expression "(**(code **)(pcVar8 + 0xb0cf0))(db->mutex)" (parenthesized_expression "(**(code **)(pcVar8 + 0xb0cf0))" ( (pointer_expression "**(code **)(pcVar8 + 0xb0cf0)" * (pointer_expression "*(code **)(pcVar8 + 0xb0cf0)" * (cast_expression "(code **)(pcVar8 + 0xb0cf0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0xb0cf0)" ( (binary_expression "pcVar8 + 0xb0cf0" identifier + number_literal) ))))) )) (argument_list "(db->mutex)" ( (field_expression "db->mutex" identifier -> field_identifier) ))) ;) (expression_statement "pVVar2 = db->pVtabCtx;" (assignment_expression "pVVar2 = db->pVtabCtx" identifier = (field_expression "db->pVtabCtx" identifier -> field_identifier)) ;) (if_statement "if (pVVar2 == (VtabCtx *)0x0) {\n    iVar4 = 0x22641;\n  }\n  else {\n    if (psVar5 == (sqlite3 *)0x2) {\n      iVar4 = 0;\n      pVVar2->pVTable->eVtabRisk = '\0';\n      goto LAB_00044818;\n    }\n    if (psVar5 == (sqlite3 *)0x3) {\n      iVar4 = 0;\n      pVVar2->pVTable->eVtabRisk = '\x02';\n      goto LAB_00044818;\n    }\n    if (psVar5 == (sqlite3 *)0x1) {\n      iVar4 = 0;\n      pVVar2->pVTable->bConstraint = uVar6;\n      goto LAB_00044818;\n    }\n    iVar4 = 0x22653;\n  }" if (parenthesized_expression "(pVVar2 == (VtabCtx *)0x0)" ( (binary_expression "pVVar2 == (VtabCtx *)0x0" identifier == (cast_expression "(VtabCtx *)0x0" ( (type_descriptor "VtabCtx *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar4 = 0x22641;\n  }" { (expression_statement "iVar4 = 0x22641;" (assignment_expression "iVar4 = 0x22641" identifier = number_literal) ;) }) (else_clause "else {\n    if (psVar5 == (sqlite3 *)0x2) {\n      iVar4 = 0;\n      pVVar2->pVTable->eVtabRisk = '\0';\n      goto LAB_00044818;\n    }\n    if (psVar5 == (sqlite3 *)0x3) {\n      iVar4 = 0;\n      pVVar2->pVTable->eVtabRisk = '\x02';\n      goto LAB_00044818;\n    }\n    if (psVar5 == (sqlite3 *)0x1) {\n      iVar4 = 0;\n      pVVar2->pVTable->bConstraint = uVar6;\n      goto LAB_00044818;\n    }\n    iVar4 = 0x22653;\n  }" else (compound_statement "{\n    if (psVar5 == (sqlite3 *)0x2) {\n      iVar4 = 0;\n      pVVar2->pVTable->eVtabRisk = '\0';\n      goto LAB_00044818;\n    }\n    if (psVar5 == (sqlite3 *)0x3) {\n      iVar4 = 0;\n      pVVar2->pVTable->eVtabRisk = '\x02';\n      goto LAB_00044818;\n    }\n    if (psVar5 == (sqlite3 *)0x1) {\n      iVar4 = 0;\n      pVVar2->pVTable->bConstraint = uVar6;\n      goto LAB_00044818;\n    }\n    iVar4 = 0x22653;\n  }" { (if_statement "if (psVar5 == (sqlite3 *)0x2) {\n      iVar4 = 0;\n      pVVar2->pVTable->eVtabRisk = '\0';\n      goto LAB_00044818;\n    }" if (parenthesized_expression "(psVar5 == (sqlite3 *)0x2)" ( (binary_expression "psVar5 == (sqlite3 *)0x2" identifier == (cast_expression "(sqlite3 *)0x2" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar4 = 0;\n      pVVar2->pVTable->eVtabRisk = '\0';\n      goto LAB_00044818;\n    }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "pVVar2->pVTable->eVtabRisk = '\0';" (assignment_expression "pVVar2->pVTable->eVtabRisk = '\0'" (field_expression "pVVar2->pVTable->eVtabRisk" (field_expression "pVVar2->pVTable" identifier -> field_identifier) -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (goto_statement "goto LAB_00044818;" goto statement_identifier ;) })) (if_statement "if (psVar5 == (sqlite3 *)0x3) {\n      iVar4 = 0;\n      pVVar2->pVTable->eVtabRisk = '\x02';\n      goto LAB_00044818;\n    }" if (parenthesized_expression "(psVar5 == (sqlite3 *)0x3)" ( (binary_expression "psVar5 == (sqlite3 *)0x3" identifier == (cast_expression "(sqlite3 *)0x3" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar4 = 0;\n      pVVar2->pVTable->eVtabRisk = '\x02';\n      goto LAB_00044818;\n    }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "pVVar2->pVTable->eVtabRisk = '\x02';" (assignment_expression "pVVar2->pVTable->eVtabRisk = '\x02'" (field_expression "pVVar2->pVTable->eVtabRisk" (field_expression "pVVar2->pVTable" identifier -> field_identifier) -> field_identifier) = (char_literal "'\x02'" ' escape_sequence ')) ;) (goto_statement "goto LAB_00044818;" goto statement_identifier ;) })) (if_statement "if (psVar5 == (sqlite3 *)0x1) {\n      iVar4 = 0;\n      pVVar2->pVTable->bConstraint = uVar6;\n      goto LAB_00044818;\n    }" if (parenthesized_expression "(psVar5 == (sqlite3 *)0x1)" ( (binary_expression "psVar5 == (sqlite3 *)0x1" identifier == (cast_expression "(sqlite3 *)0x1" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar4 = 0;\n      pVVar2->pVTable->bConstraint = uVar6;\n      goto LAB_00044818;\n    }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "pVVar2->pVTable->bConstraint = uVar6;" (assignment_expression "pVVar2->pVTable->bConstraint = uVar6" (field_expression "pVVar2->pVTable->bConstraint" (field_expression "pVVar2->pVTable" identifier -> field_identifier) -> field_identifier) = identifier) ;) (goto_statement "goto LAB_00044818;" goto statement_identifier ;) })) (expression_statement "iVar4 = 0x22653;" (assignment_expression "iVar4 = 0x22653" identifier = number_literal) ;) }))) (expression_statement "iVar4 = sqlite3MisuseError(iVar4);" (assignment_expression "iVar4 = sqlite3MisuseError(iVar4)" identifier = (call_expression "sqlite3MisuseError(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (if_statement "if (iVar4 != 0) {\n    db->errCode = iVar4;\n    sqlite3ErrorFinish(db,iVar4);\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    db->errCode = iVar4;\n    sqlite3ErrorFinish(db,iVar4);\n  }" { (expression_statement "db->errCode = iVar4;" (assignment_expression "db->errCode = iVar4" (field_expression "db->errCode" identifier -> field_identifier) = identifier) ;) (expression_statement "sqlite3ErrorFinish(db,iVar4);" (call_expression "sqlite3ErrorFinish(db,iVar4)" identifier (argument_list "(db,iVar4)" ( identifier , identifier ))) ;) })) (labeled_statement "LAB_00044818:\n  (**(code **)(pcVar8 + 0xb0d18))(db->mutex);" statement_identifier : (expression_statement "(**(code **)(pcVar8 + 0xb0d18))(db->mutex);" (call_expression "(**(code **)(pcVar8 + 0xb0d18))(db->mutex)" (parenthesized_expression "(**(code **)(pcVar8 + 0xb0d18))" ( (pointer_expression "**(code **)(pcVar8 + 0xb0d18)" * (pointer_expression "*(code **)(pcVar8 + 0xb0d18)" * (cast_expression "(code **)(pcVar8 + 0xb0d18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0xb0d18)" ( (binary_expression "pcVar8 + 0xb0d18" identifier + number_literal) ))))) )) (argument_list "(db->mutex)" ( (field_expression "db->mutex" identifier -> field_identifier) ))) ;)) (expression_statement "iVar3 = *piVar7;" (assignment_expression "iVar3 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) (if_statement "if (iVar1 == iVar3) {\n    return CONCAT44(iVar4,iVar3);\n  }" if (parenthesized_expression "(iVar1 == iVar3)" ( (binary_expression "iVar1 == iVar3" identifier == identifier) )) (compound_statement "{\n    return CONCAT44(iVar4,iVar3);\n  }" { (return_statement "return CONCAT44(iVar4,iVar3);" return (call_expression "CONCAT44(iVar4,iVar3)" identifier (argument_list "(iVar4,iVar3)" ( identifier , identifier ))) ;) })) (expression_statement "pcVar8 = *(code **)(pcVar8 + 0xb0de8);" (assignment_expression "pcVar8 = *(code **)(pcVar8 + 0xb0de8)" identifier = (pointer_expression "*(code **)(pcVar8 + 0xb0de8)" * (cast_expression "(code **)(pcVar8 + 0xb0de8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0xb0de8)" ( (binary_expression "pcVar8 + 0xb0de8" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar8)();" (call_expression "(*pcVar8)()" (parenthesized_expression "(*pcVar8)" ( (pointer_expression "*pcVar8" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "iVar4 = (**(code **)(pcVar8 + 0xb0c64))();" (assignment_expression "iVar4 = (**(code **)(pcVar8 + 0xb0c64))()" identifier = (call_expression "(**(code **)(pcVar8 + 0xb0c64))()" (parenthesized_expression "(**(code **)(pcVar8 + 0xb0c64))" ( (pointer_expression "**(code **)(pcVar8 + 0xb0c64)" * (pointer_expression "*(code **)(pcVar8 + 0xb0c64)" * (cast_expression "(code **)(pcVar8 + 0xb0c64)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0xb0c64)" ( (binary_expression "pcVar8 + 0xb0c64" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "(**(code **)(pcVar8 + 0xb0b30))\n            (0xe,*(int *)(pcVar8 + 0xb0a30) + 0x722c,*(int *)(pcVar8 + 0xb0a30) + 0x7248,iVar1,\n             iVar4 + 0x14);" (call_expression "(**(code **)(pcVar8 + 0xb0b30))\n            (0xe,*(int *)(pcVar8 + 0xb0a30) + 0x722c,*(int *)(pcVar8 + 0xb0a30) + 0x7248,iVar1,\n             iVar4 + 0x14)" (parenthesized_expression "(**(code **)(pcVar8 + 0xb0b30))" ( (pointer_expression "**(code **)(pcVar8 + 0xb0b30)" * (pointer_expression "*(code **)(pcVar8 + 0xb0b30)" * (cast_expression "(code **)(pcVar8 + 0xb0b30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0xb0b30)" ( (binary_expression "pcVar8 + 0xb0b30" identifier + number_literal) ))))) )) (argument_list "(0xe,*(int *)(pcVar8 + 0xb0a30) + 0x722c,*(int *)(pcVar8 + 0xb0a30) + 0x7248,iVar1,\n             iVar4 + 0x14)" ( number_literal , (binary_expression "*(int *)(pcVar8 + 0xb0a30) + 0x722c" (pointer_expression "*(int *)(pcVar8 + 0xb0a30)" * (cast_expression "(int *)(pcVar8 + 0xb0a30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar8 + 0xb0a30)" ( (binary_expression "pcVar8 + 0xb0a30" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(pcVar8 + 0xb0a30) + 0x7248" (pointer_expression "*(int *)(pcVar8 + 0xb0a30)" * (cast_expression "(int *)(pcVar8 + 0xb0a30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar8 + 0xb0a30)" ( (binary_expression "pcVar8 + 0xb0a30" identifier + number_literal) )))) + number_literal) , identifier , (binary_expression "iVar4 + 0x14" identifier + number_literal) ))) ;) (return_statement "return CONCAT44(0xe,extraout_v1);" return (call_expression "CONCAT44(0xe,extraout_v1)" identifier (argument_list "(0xe,extraout_v1)" ( number_literal , identifier ))) ;) })))
(translation_unit "undefined8 sqlite3_memory_highwater(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 extraout_v1;\n  int iVar4;\n  undefined4 uVar5;\n  undefined1 uVar6;\n  int *piVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  undefined1 auStack_20 [8];\n  undefined8 local_18;\n  int local_c;\n  \n  puVar8 = PTR___stack_chk_guard_000f5568;\n  uVar6 = SUB41(&local_18,0);\n  local_c = *(int *)PTR___stack_chk_guard_000f5568;\n  (*(code *)PTR_sqlite3_status64_000f54e4)(0,auStack_20);\n  iVar4 = *(int *)puVar8;\n  if (local_c == iVar4) {\n    return local_18;\n  }\n  iVar3 = local_c;\n  puVar8 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  piVar7 = *(int **)(puVar8 + 0xb0e10);\n  iVar1 = *piVar7;\n  (**(code **)(puVar8 + 0xb0cf0))(*(undefined4 *)(iVar4 + 0xc));\n  piVar2 = *(int **)(iVar4 + 0x178);\n  if (piVar2 == (int *)0x0) {\n    uVar5 = 0x22641;\n  }\n  else {\n    if (iVar3 == 2) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 0;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 3) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 2;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 1) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x10) = uVar6;\n      goto LAB_00044818;\n    }\n    uVar5 = 0x22653;\n  }\n  iVar3 = FUN_00044440(uVar5);\n  if (iVar3 != 0) {\n    *(int *)(iVar4 + 0x40) = iVar3;\n    FUN_00029df8(iVar4,iVar3);\n  }\nLAB_00044818:\n  (**(code **)(puVar8 + 0xb0d18))(*(undefined4 *)(iVar4 + 0xc));\n  iVar4 = *piVar7;\n  if (iVar1 == iVar4) {\n    return CONCAT44(iVar3,iVar4);\n  }\n  pcVar9 = *(code **)(puVar8 + 0xb0de8);\n  (*pcVar9)();\n  iVar4 = (**(code **)(pcVar9 + 0xb0c64))();\n  (**(code **)(pcVar9 + 0xb0b30))\n            (0xe,*(int *)(pcVar9 + 0xb0a30) + 0x722c,*(int *)(pcVar9 + 0xb0a30) + 0x7248,iVar1,\n             iVar4 + 0x14);\n  return CONCAT44(0xe,extraout_v1);\n}\n\n" (function_definition "undefined8 sqlite3_memory_highwater(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 extraout_v1;\n  int iVar4;\n  undefined4 uVar5;\n  undefined1 uVar6;\n  int *piVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  undefined1 auStack_20 [8];\n  undefined8 local_18;\n  int local_c;\n  \n  puVar8 = PTR___stack_chk_guard_000f5568;\n  uVar6 = SUB41(&local_18,0);\n  local_c = *(int *)PTR___stack_chk_guard_000f5568;\n  (*(code *)PTR_sqlite3_status64_000f54e4)(0,auStack_20);\n  iVar4 = *(int *)puVar8;\n  if (local_c == iVar4) {\n    return local_18;\n  }\n  iVar3 = local_c;\n  puVar8 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  piVar7 = *(int **)(puVar8 + 0xb0e10);\n  iVar1 = *piVar7;\n  (**(code **)(puVar8 + 0xb0cf0))(*(undefined4 *)(iVar4 + 0xc));\n  piVar2 = *(int **)(iVar4 + 0x178);\n  if (piVar2 == (int *)0x0) {\n    uVar5 = 0x22641;\n  }\n  else {\n    if (iVar3 == 2) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 0;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 3) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 2;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 1) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x10) = uVar6;\n      goto LAB_00044818;\n    }\n    uVar5 = 0x22653;\n  }\n  iVar3 = FUN_00044440(uVar5);\n  if (iVar3 != 0) {\n    *(int *)(iVar4 + 0x40) = iVar3;\n    FUN_00029df8(iVar4,iVar3);\n  }\nLAB_00044818:\n  (**(code **)(puVar8 + 0xb0d18))(*(undefined4 *)(iVar4 + 0xc));\n  iVar4 = *piVar7;\n  if (iVar1 == iVar4) {\n    return CONCAT44(iVar3,iVar4);\n  }\n  pcVar9 = *(code **)(puVar8 + 0xb0de8);\n  (*pcVar9)();\n  iVar4 = (**(code **)(pcVar9 + 0xb0c64))();\n  (**(code **)(pcVar9 + 0xb0b30))\n            (0xe,*(int *)(pcVar9 + 0xb0a30) + 0x722c,*(int *)(pcVar9 + 0xb0a30) + 0x7248,iVar1,\n             iVar4 + 0x14);\n  return CONCAT44(0xe,extraout_v1);\n}" type_identifier (function_declarator "sqlite3_memory_highwater(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 extraout_v1;\n  int iVar4;\n  undefined4 uVar5;\n  undefined1 uVar6;\n  int *piVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  undefined1 auStack_20 [8];\n  undefined8 local_18;\n  int local_c;\n  \n  puVar8 = PTR___stack_chk_guard_000f5568;\n  uVar6 = SUB41(&local_18,0);\n  local_c = *(int *)PTR___stack_chk_guard_000f5568;\n  (*(code *)PTR_sqlite3_status64_000f54e4)(0,auStack_20);\n  iVar4 = *(int *)puVar8;\n  if (local_c == iVar4) {\n    return local_18;\n  }\n  iVar3 = local_c;\n  puVar8 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  piVar7 = *(int **)(puVar8 + 0xb0e10);\n  iVar1 = *piVar7;\n  (**(code **)(puVar8 + 0xb0cf0))(*(undefined4 *)(iVar4 + 0xc));\n  piVar2 = *(int **)(iVar4 + 0x178);\n  if (piVar2 == (int *)0x0) {\n    uVar5 = 0x22641;\n  }\n  else {\n    if (iVar3 == 2) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 0;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 3) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 2;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 1) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x10) = uVar6;\n      goto LAB_00044818;\n    }\n    uVar5 = 0x22653;\n  }\n  iVar3 = FUN_00044440(uVar5);\n  if (iVar3 != 0) {\n    *(int *)(iVar4 + 0x40) = iVar3;\n    FUN_00029df8(iVar4,iVar3);\n  }\nLAB_00044818:\n  (**(code **)(puVar8 + 0xb0d18))(*(undefined4 *)(iVar4 + 0xc));\n  iVar4 = *piVar7;\n  if (iVar1 == iVar4) {\n    return CONCAT44(iVar3,iVar4);\n  }\n  pcVar9 = *(code **)(puVar8 + 0xb0de8);\n  (*pcVar9)();\n  iVar4 = (**(code **)(pcVar9 + 0xb0c64))();\n  (**(code **)(pcVar9 + 0xb0b30))\n            (0xe,*(int *)(pcVar9 + 0xb0a30) + 0x722c,*(int *)(pcVar9 + 0xb0a30) + 0x7248,iVar1,\n             iVar4 + 0x14);\n  return CONCAT44(0xe,extraout_v1);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 extraout_v1;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined1 uVar6;" type_identifier identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "code *pcVar9;" type_identifier (pointer_declarator "*pcVar9" * identifier) ;) (declaration "undefined1 auStack_20 [8];" type_identifier (array_declarator "auStack_20 [8]" identifier [ number_literal ]) ;) (declaration "undefined8 local_18;" type_identifier identifier ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "puVar8 = PTR___stack_chk_guard_000f5568;" (assignment_expression "puVar8 = PTR___stack_chk_guard_000f5568" identifier = identifier) ;) (expression_statement "uVar6 = SUB41(&local_18,0);" (assignment_expression "uVar6 = SUB41(&local_18,0)" identifier = (call_expression "SUB41(&local_18,0)" identifier (argument_list "(&local_18,0)" ( (pointer_expression "&local_18" & identifier) , number_literal )))) ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_000f5568;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_000f5568" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000f5568" * (cast_expression "(int *)PTR___stack_chk_guard_000f5568" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_sqlite3_status64_000f54e4)(0,auStack_20);" (call_expression "(*(code *)PTR_sqlite3_status64_000f54e4)(0,auStack_20)" (parenthesized_expression "(*(code *)PTR_sqlite3_status64_000f54e4)" ( (pointer_expression "*(code *)PTR_sqlite3_status64_000f54e4" * (cast_expression "(code *)PTR_sqlite3_status64_000f54e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,auStack_20)" ( number_literal , identifier ))) ;) (expression_statement "iVar4 = *(int *)puVar8;" (assignment_expression "iVar4 = *(int *)puVar8" identifier = (pointer_expression "*(int *)puVar8" * (cast_expression "(int *)puVar8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (local_c == iVar4) {\n    return local_18;\n  }" if (parenthesized_expression "(local_c == iVar4)" ( (binary_expression "local_c == iVar4" identifier == identifier) )) (compound_statement "{\n    return local_18;\n  }" { (return_statement "return local_18;" return identifier ;) })) (expression_statement "iVar3 = local_c;" (assignment_expression "iVar3 = local_c" identifier = identifier) ;) (expression_statement "puVar8 = PTR___stack_chk_fail_000f5540;" (assignment_expression "puVar8 = PTR___stack_chk_fail_000f5540" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000f5540)();" (call_expression "(*(code *)PTR___stack_chk_fail_000f5540)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000f5540)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000f5540" * (cast_expression "(code *)PTR___stack_chk_fail_000f5540" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar7 = *(int **)(puVar8 + 0xb0e10);" (assignment_expression "piVar7 = *(int **)(puVar8 + 0xb0e10)" identifier = (pointer_expression "*(int **)(puVar8 + 0xb0e10)" * (cast_expression "(int **)(puVar8 + 0xb0e10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0xb0e10)" ( (binary_expression "puVar8 + 0xb0e10" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *piVar7;" (assignment_expression "iVar1 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) (expression_statement "(**(code **)(puVar8 + 0xb0cf0))(*(undefined4 *)(iVar4 + 0xc));" (call_expression "(**(code **)(puVar8 + 0xb0cf0))(*(undefined4 *)(iVar4 + 0xc))" (parenthesized_expression "(**(code **)(puVar8 + 0xb0cf0))" ( (pointer_expression "**(code **)(puVar8 + 0xb0cf0)" * (pointer_expression "*(code **)(puVar8 + 0xb0cf0)" * (cast_expression "(code **)(puVar8 + 0xb0cf0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0xb0cf0)" ( (binary_expression "puVar8 + 0xb0cf0" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar4 + 0xc))" ( (pointer_expression "*(undefined4 *)(iVar4 + 0xc)" * (cast_expression "(undefined4 *)(iVar4 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xc)" ( (binary_expression "iVar4 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "piVar2 = *(int **)(iVar4 + 0x178);" (assignment_expression "piVar2 = *(int **)(iVar4 + 0x178)" identifier = (pointer_expression "*(int **)(iVar4 + 0x178)" * (cast_expression "(int **)(iVar4 + 0x178)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x178)" ( (binary_expression "iVar4 + 0x178" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n    uVar5 = 0x22641;\n  }\n  else {\n    if (iVar3 == 2) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 0;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 3) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 2;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 1) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x10) = uVar6;\n      goto LAB_00044818;\n    }\n    uVar5 = 0x22653;\n  }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar5 = 0x22641;\n  }" { (expression_statement "uVar5 = 0x22641;" (assignment_expression "uVar5 = 0x22641" identifier = number_literal) ;) }) (else_clause "else {\n    if (iVar3 == 2) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 0;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 3) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 2;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 1) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x10) = uVar6;\n      goto LAB_00044818;\n    }\n    uVar5 = 0x22653;\n  }" else (compound_statement "{\n    if (iVar3 == 2) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 0;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 3) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 2;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 1) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x10) = uVar6;\n      goto LAB_00044818;\n    }\n    uVar5 = 0x22653;\n  }" { (if_statement "if (iVar3 == 2) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 0;\n      goto LAB_00044818;\n    }" if (parenthesized_expression "(iVar3 == 2)" ( (binary_expression "iVar3 == 2" identifier == number_literal) )) (compound_statement "{\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 0;\n      goto LAB_00044818;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "*(undefined1 *)(*piVar2 + 0x11) = 0;" (assignment_expression "*(undefined1 *)(*piVar2 + 0x11) = 0" (pointer_expression "*(undefined1 *)(*piVar2 + 0x11)" * (cast_expression "(undefined1 *)(*piVar2 + 0x11)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + 0x11)" ( (binary_expression "*piVar2 + 0x11" (pointer_expression "*piVar2" * identifier) + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_00044818;" goto statement_identifier ;) })) (if_statement "if (iVar3 == 3) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 2;\n      goto LAB_00044818;\n    }" if (parenthesized_expression "(iVar3 == 3)" ( (binary_expression "iVar3 == 3" identifier == number_literal) )) (compound_statement "{\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 2;\n      goto LAB_00044818;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "*(undefined1 *)(*piVar2 + 0x11) = 2;" (assignment_expression "*(undefined1 *)(*piVar2 + 0x11) = 2" (pointer_expression "*(undefined1 *)(*piVar2 + 0x11)" * (cast_expression "(undefined1 *)(*piVar2 + 0x11)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + 0x11)" ( (binary_expression "*piVar2 + 0x11" (pointer_expression "*piVar2" * identifier) + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_00044818;" goto statement_identifier ;) })) (if_statement "if (iVar3 == 1) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x10) = uVar6;\n      goto LAB_00044818;\n    }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x10) = uVar6;\n      goto LAB_00044818;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "*(undefined1 *)(*piVar2 + 0x10) = uVar6;" (assignment_expression "*(undefined1 *)(*piVar2 + 0x10) = uVar6" (pointer_expression "*(undefined1 *)(*piVar2 + 0x10)" * (cast_expression "(undefined1 *)(*piVar2 + 0x10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + 0x10)" ( (binary_expression "*piVar2 + 0x10" (pointer_expression "*piVar2" * identifier) + number_literal) )))) = identifier) ;) (goto_statement "goto LAB_00044818;" goto statement_identifier ;) })) (expression_statement "uVar5 = 0x22653;" (assignment_expression "uVar5 = 0x22653" identifier = number_literal) ;) }))) (expression_statement "iVar3 = FUN_00044440(uVar5);" (assignment_expression "iVar3 = FUN_00044440(uVar5)" identifier = (call_expression "FUN_00044440(uVar5)" identifier (argument_list "(uVar5)" ( identifier )))) ;) (if_statement "if (iVar3 != 0) {\n    *(int *)(iVar4 + 0x40) = iVar3;\n    FUN_00029df8(iVar4,iVar3);\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    *(int *)(iVar4 + 0x40) = iVar3;\n    FUN_00029df8(iVar4,iVar3);\n  }" { (expression_statement "*(int *)(iVar4 + 0x40) = iVar3;" (assignment_expression "*(int *)(iVar4 + 0x40) = iVar3" (pointer_expression "*(int *)(iVar4 + 0x40)" * (cast_expression "(int *)(iVar4 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x40)" ( (binary_expression "iVar4 + 0x40" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_00029df8(iVar4,iVar3);" (call_expression "FUN_00029df8(iVar4,iVar3)" identifier (argument_list "(iVar4,iVar3)" ( identifier , identifier ))) ;) })) (labeled_statement "LAB_00044818:\n  (**(code **)(puVar8 + 0xb0d18))(*(undefined4 *)(iVar4 + 0xc));" statement_identifier : (expression_statement "(**(code **)(puVar8 + 0xb0d18))(*(undefined4 *)(iVar4 + 0xc));" (call_expression "(**(code **)(puVar8 + 0xb0d18))(*(undefined4 *)(iVar4 + 0xc))" (parenthesized_expression "(**(code **)(puVar8 + 0xb0d18))" ( (pointer_expression "**(code **)(puVar8 + 0xb0d18)" * (pointer_expression "*(code **)(puVar8 + 0xb0d18)" * (cast_expression "(code **)(puVar8 + 0xb0d18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0xb0d18)" ( (binary_expression "puVar8 + 0xb0d18" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar4 + 0xc))" ( (pointer_expression "*(undefined4 *)(iVar4 + 0xc)" * (cast_expression "(undefined4 *)(iVar4 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xc)" ( (binary_expression "iVar4 + 0xc" identifier + number_literal) )))) ))) ;)) (expression_statement "iVar4 = *piVar7;" (assignment_expression "iVar4 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) (if_statement "if (iVar1 == iVar4) {\n    return CONCAT44(iVar3,iVar4);\n  }" if (parenthesized_expression "(iVar1 == iVar4)" ( (binary_expression "iVar1 == iVar4" identifier == identifier) )) (compound_statement "{\n    return CONCAT44(iVar3,iVar4);\n  }" { (return_statement "return CONCAT44(iVar3,iVar4);" return (call_expression "CONCAT44(iVar3,iVar4)" identifier (argument_list "(iVar3,iVar4)" ( identifier , identifier ))) ;) })) (expression_statement "pcVar9 = *(code **)(puVar8 + 0xb0de8);" (assignment_expression "pcVar9 = *(code **)(puVar8 + 0xb0de8)" identifier = (pointer_expression "*(code **)(puVar8 + 0xb0de8)" * (cast_expression "(code **)(puVar8 + 0xb0de8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0xb0de8)" ( (binary_expression "puVar8 + 0xb0de8" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar9)();" (call_expression "(*pcVar9)()" (parenthesized_expression "(*pcVar9)" ( (pointer_expression "*pcVar9" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "iVar4 = (**(code **)(pcVar9 + 0xb0c64))();" (assignment_expression "iVar4 = (**(code **)(pcVar9 + 0xb0c64))()" identifier = (call_expression "(**(code **)(pcVar9 + 0xb0c64))()" (parenthesized_expression "(**(code **)(pcVar9 + 0xb0c64))" ( (pointer_expression "**(code **)(pcVar9 + 0xb0c64)" * (pointer_expression "*(code **)(pcVar9 + 0xb0c64)" * (cast_expression "(code **)(pcVar9 + 0xb0c64)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar9 + 0xb0c64)" ( (binary_expression "pcVar9 + 0xb0c64" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "(**(code **)(pcVar9 + 0xb0b30))\n            (0xe,*(int *)(pcVar9 + 0xb0a30) + 0x722c,*(int *)(pcVar9 + 0xb0a30) + 0x7248,iVar1,\n             iVar4 + 0x14);" (call_expression "(**(code **)(pcVar9 + 0xb0b30))\n            (0xe,*(int *)(pcVar9 + 0xb0a30) + 0x722c,*(int *)(pcVar9 + 0xb0a30) + 0x7248,iVar1,\n             iVar4 + 0x14)" (parenthesized_expression "(**(code **)(pcVar9 + 0xb0b30))" ( (pointer_expression "**(code **)(pcVar9 + 0xb0b30)" * (pointer_expression "*(code **)(pcVar9 + 0xb0b30)" * (cast_expression "(code **)(pcVar9 + 0xb0b30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar9 + 0xb0b30)" ( (binary_expression "pcVar9 + 0xb0b30" identifier + number_literal) ))))) )) (argument_list "(0xe,*(int *)(pcVar9 + 0xb0a30) + 0x722c,*(int *)(pcVar9 + 0xb0a30) + 0x7248,iVar1,\n             iVar4 + 0x14)" ( number_literal , (binary_expression "*(int *)(pcVar9 + 0xb0a30) + 0x722c" (pointer_expression "*(int *)(pcVar9 + 0xb0a30)" * (cast_expression "(int *)(pcVar9 + 0xb0a30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar9 + 0xb0a30)" ( (binary_expression "pcVar9 + 0xb0a30" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(pcVar9 + 0xb0a30) + 0x7248" (pointer_expression "*(int *)(pcVar9 + 0xb0a30)" * (cast_expression "(int *)(pcVar9 + 0xb0a30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar9 + 0xb0a30)" ( (binary_expression "pcVar9 + 0xb0a30" identifier + number_literal) )))) + number_literal) , identifier , (binary_expression "iVar4 + 0x14" identifier + number_literal) ))) ;) (return_statement "return CONCAT44(0xe,extraout_v1);" return (call_expression "CONCAT44(0xe,extraout_v1)" identifier (argument_list "(0xe,extraout_v1)" ( number_literal , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (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 TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) = IDENT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( LIT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , IDENT , (binary_expression IDENT + LIT) ))) ;) (return_statement return (call_expression IDENT (argument_list ( LIT , IDENT ))) ;) })))
(function_definition "undefined8 sqlite3_memory_highwater(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 extraout_v1;\n  int iVar4;\n  undefined4 uVar5;\n  undefined1 uVar6;\n  int *piVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  undefined1 auStack_20 [8];\n  undefined8 local_18;\n  int local_c;\n  \n  puVar8 = PTR___stack_chk_guard_000f5568;\n  uVar6 = SUB41(&local_18,0);\n  local_c = *(int *)PTR___stack_chk_guard_000f5568;\n  (*(code *)PTR_sqlite3_status64_000f54e4)(0,auStack_20);\n  iVar4 = *(int *)puVar8;\n  if (local_c == iVar4) {\n    return local_18;\n  }\n  iVar3 = local_c;\n  puVar8 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  piVar7 = *(int **)(puVar8 + 0xb0e10);\n  iVar1 = *piVar7;\n  (**(code **)(puVar8 + 0xb0cf0))(*(undefined4 *)(iVar4 + 0xc));\n  piVar2 = *(int **)(iVar4 + 0x178);\n  if (piVar2 == (int *)0x0) {\n    uVar5 = 0x22641;\n  }\n  else {\n    if (iVar3 == 2) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 0;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 3) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 2;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 1) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x10) = uVar6;\n      goto LAB_00044818;\n    }\n    uVar5 = 0x22653;\n  }\n  iVar3 = FUN_00044440(uVar5);\n  if (iVar3 != 0) {\n    *(int *)(iVar4 + 0x40) = iVar3;\n    FUN_00029df8(iVar4,iVar3);\n  }\nLAB_00044818:\n  (**(code **)(puVar8 + 0xb0d18))(*(undefined4 *)(iVar4 + 0xc));\n  iVar4 = *piVar7;\n  if (iVar1 == iVar4) {\n    return CONCAT44(iVar3,iVar4);\n  }\n  pcVar9 = *(code **)(puVar8 + 0xb0de8);\n  (*pcVar9)();\n  iVar4 = (**(code **)(pcVar9 + 0xb0c64))();\n  (**(code **)(pcVar9 + 0xb0b30))\n            (0xe,*(int *)(pcVar9 + 0xb0a30) + 0x722c,*(int *)(pcVar9 + 0xb0a30) + 0x7248,iVar1,\n             iVar4 + 0x14);\n  return CONCAT44(0xe,extraout_v1);\n}" (type_identifier "undefined8") (function_declarator "sqlite3_memory_highwater(void)" (identifier "sqlite3_memory_highwater") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 extraout_v1;\n  int iVar4;\n  undefined4 uVar5;\n  undefined1 uVar6;\n  int *piVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  undefined1 auStack_20 [8];\n  undefined8 local_18;\n  int local_c;\n  \n  puVar8 = PTR___stack_chk_guard_000f5568;\n  uVar6 = SUB41(&local_18,0);\n  local_c = *(int *)PTR___stack_chk_guard_000f5568;\n  (*(code *)PTR_sqlite3_status64_000f54e4)(0,auStack_20);\n  iVar4 = *(int *)puVar8;\n  if (local_c == iVar4) {\n    return local_18;\n  }\n  iVar3 = local_c;\n  puVar8 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  piVar7 = *(int **)(puVar8 + 0xb0e10);\n  iVar1 = *piVar7;\n  (**(code **)(puVar8 + 0xb0cf0))(*(undefined4 *)(iVar4 + 0xc));\n  piVar2 = *(int **)(iVar4 + 0x178);\n  if (piVar2 == (int *)0x0) {\n    uVar5 = 0x22641;\n  }\n  else {\n    if (iVar3 == 2) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 0;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 3) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 2;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 1) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x10) = uVar6;\n      goto LAB_00044818;\n    }\n    uVar5 = 0x22653;\n  }\n  iVar3 = FUN_00044440(uVar5);\n  if (iVar3 != 0) {\n    *(int *)(iVar4 + 0x40) = iVar3;\n    FUN_00029df8(iVar4,iVar3);\n  }\nLAB_00044818:\n  (**(code **)(puVar8 + 0xb0d18))(*(undefined4 *)(iVar4 + 0xc));\n  iVar4 = *piVar7;\n  if (iVar1 == iVar4) {\n    return CONCAT44(iVar3,iVar4);\n  }\n  pcVar9 = *(code **)(puVar8 + 0xb0de8);\n  (*pcVar9)();\n  iVar4 = (**(code **)(pcVar9 + 0xb0c64))();\n  (**(code **)(pcVar9 + 0xb0b30))\n            (0xe,*(int *)(pcVar9 + 0xb0a30) + 0x722c,*(int *)(pcVar9 + 0xb0a30) + 0x7248,iVar1,\n             iVar4 + 0x14);\n  return CONCAT44(0xe,extraout_v1);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 extraout_v1;" (type_identifier "undefined4") (identifier "extraout_v1") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined1 uVar6;" (type_identifier "undefined1") (identifier "uVar6") (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "undefined *puVar8;" (type_identifier "undefined") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "code *pcVar9;" (type_identifier "code") (pointer_declarator "*pcVar9" (* "*") (identifier "pcVar9")) (; ";")) (declaration "undefined1 auStack_20 [8];" (type_identifier "undefined1") (array_declarator "auStack_20 [8]" (identifier "auStack_20") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "undefined8 local_18;" (type_identifier "undefined8") (identifier "local_18") (; ";")) (declaration "int local_c;" (primitive_type "int") (identifier "local_c") (; ";")) (expression_statement "puVar8 = PTR___stack_chk_guard_000f5568;" (assignment_expression "puVar8 = PTR___stack_chk_guard_000f5568" (identifier "puVar8") (= "=") (identifier "PTR___stack_chk_guard_000f5568")) (; ";")) (expression_statement "uVar6 = SUB41(&local_18,0);" (assignment_expression "uVar6 = SUB41(&local_18,0)" (identifier "uVar6") (= "=") (call_expression "SUB41(&local_18,0)" (identifier "SUB41") (argument_list "(&local_18,0)" (( "(") (pointer_expression "&local_18" (& "&") (identifier "local_18")) (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_000f5568;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_000f5568" (identifier "local_c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000f5568" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000f5568" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000f5568")))) (; ";")) (expression_statement "(*(code *)PTR_sqlite3_status64_000f54e4)(0,auStack_20);" (call_expression "(*(code *)PTR_sqlite3_status64_000f54e4)(0,auStack_20)" (parenthesized_expression "(*(code *)PTR_sqlite3_status64_000f54e4)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_status64_000f54e4" (* "*") (cast_expression "(code *)PTR_sqlite3_status64_000f54e4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_status64_000f54e4"))) () ")")) (argument_list "(0,auStack_20)" (( "(") (number_literal "0") (, ",") (identifier "auStack_20") () ")"))) (; ";")) (expression_statement "iVar4 = *(int *)puVar8;" (assignment_expression "iVar4 = *(int *)puVar8" (identifier "iVar4") (= "=") (pointer_expression "*(int *)puVar8" (* "*") (cast_expression "(int *)puVar8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar8")))) (; ";")) (if_statement "if (local_c == iVar4) {\n    return local_18;\n  }" (if "if") (parenthesized_expression "(local_c == iVar4)" (( "(") (binary_expression "local_c == iVar4" (identifier "local_c") (== "==") (identifier "iVar4")) () ")")) (compound_statement "{\n    return local_18;\n  }" ({ "{") (return_statement "return local_18;" (return "return") (identifier "local_18") (; ";")) (} "}"))) (expression_statement "iVar3 = local_c;" (assignment_expression "iVar3 = local_c" (identifier "iVar3") (= "=") (identifier "local_c")) (; ";")) (expression_statement "puVar8 = PTR___stack_chk_fail_000f5540;" (assignment_expression "puVar8 = PTR___stack_chk_fail_000f5540" (identifier "puVar8") (= "=") (identifier "PTR___stack_chk_fail_000f5540")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000f5540)();" (call_expression "(*(code *)PTR___stack_chk_fail_000f5540)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000f5540)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000f5540" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000f5540" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000f5540"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar7 = *(int **)(puVar8 + 0xb0e10);" (assignment_expression "piVar7 = *(int **)(puVar8 + 0xb0e10)" (identifier "piVar7") (= "=") (pointer_expression "*(int **)(puVar8 + 0xb0e10)" (* "*") (cast_expression "(int **)(puVar8 + 0xb0e10)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 0xb0e10)" (( "(") (binary_expression "puVar8 + 0xb0e10" (identifier "puVar8") (+ "+") (number_literal "0xb0e10")) () ")"))))) (; ";")) (expression_statement "iVar1 = *piVar7;" (assignment_expression "iVar1 = *piVar7" (identifier "iVar1") (= "=") (pointer_expression "*piVar7" (* "*") (identifier "piVar7"))) (; ";")) (expression_statement "(**(code **)(puVar8 + 0xb0cf0))(*(undefined4 *)(iVar4 + 0xc));" (call_expression "(**(code **)(puVar8 + 0xb0cf0))(*(undefined4 *)(iVar4 + 0xc))" (parenthesized_expression "(**(code **)(puVar8 + 0xb0cf0))" (( "(") (pointer_expression "**(code **)(puVar8 + 0xb0cf0)" (* "*") (pointer_expression "*(code **)(puVar8 + 0xb0cf0)" (* "*") (cast_expression "(code **)(puVar8 + 0xb0cf0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 0xb0cf0)" (( "(") (binary_expression "puVar8 + 0xb0cf0" (identifier "puVar8") (+ "+") (number_literal "0xb0cf0")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)(iVar4 + 0xc))" (( "(") (pointer_expression "*(undefined4 *)(iVar4 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0xc)" (( "(") (binary_expression "iVar4 + 0xc" (identifier "iVar4") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (expression_statement "piVar2 = *(int **)(iVar4 + 0x178);" (assignment_expression "piVar2 = *(int **)(iVar4 + 0x178)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(iVar4 + 0x178)" (* "*") (cast_expression "(int **)(iVar4 + 0x178)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + 0x178)" (( "(") (binary_expression "iVar4 + 0x178" (identifier "iVar4") (+ "+") (number_literal "0x178")) () ")"))))) (; ";")) (if_statement "if (piVar2 == (int *)0x0) {\n    uVar5 = 0x22641;\n  }\n  else {\n    if (iVar3 == 2) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 0;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 3) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 2;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 1) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x10) = uVar6;\n      goto LAB_00044818;\n    }\n    uVar5 = 0x22653;\n  }" (if "if") (parenthesized_expression "(piVar2 == (int *)0x0)" (( "(") (binary_expression "piVar2 == (int *)0x0" (identifier "piVar2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar5 = 0x22641;\n  }" ({ "{") (expression_statement "uVar5 = 0x22641;" (assignment_expression "uVar5 = 0x22641" (identifier "uVar5") (= "=") (number_literal "0x22641")) (; ";")) (} "}")) (else_clause "else {\n    if (iVar3 == 2) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 0;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 3) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 2;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 1) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x10) = uVar6;\n      goto LAB_00044818;\n    }\n    uVar5 = 0x22653;\n  }" (else "else") (compound_statement "{\n    if (iVar3 == 2) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 0;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 3) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 2;\n      goto LAB_00044818;\n    }\n    if (iVar3 == 1) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x10) = uVar6;\n      goto LAB_00044818;\n    }\n    uVar5 = 0x22653;\n  }" ({ "{") (if_statement "if (iVar3 == 2) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 0;\n      goto LAB_00044818;\n    }" (if "if") (parenthesized_expression "(iVar3 == 2)" (( "(") (binary_expression "iVar3 == 2" (identifier "iVar3") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 0;\n      goto LAB_00044818;\n    }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)(*piVar2 + 0x11) = 0;" (assignment_expression "*(undefined1 *)(*piVar2 + 0x11) = 0" (pointer_expression "*(undefined1 *)(*piVar2 + 0x11)" (* "*") (cast_expression "(undefined1 *)(*piVar2 + 0x11)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar2 + 0x11)" (( "(") (binary_expression "*piVar2 + 0x11" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "0x11")) () ")")))) (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00044818;" (goto "goto") (statement_identifier "LAB_00044818") (; ";")) (} "}"))) (if_statement "if (iVar3 == 3) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 2;\n      goto LAB_00044818;\n    }" (if "if") (parenthesized_expression "(iVar3 == 3)" (( "(") (binary_expression "iVar3 == 3" (identifier "iVar3") (== "==") (number_literal "3")) () ")")) (compound_statement "{\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x11) = 2;\n      goto LAB_00044818;\n    }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)(*piVar2 + 0x11) = 2;" (assignment_expression "*(undefined1 *)(*piVar2 + 0x11) = 2" (pointer_expression "*(undefined1 *)(*piVar2 + 0x11)" (* "*") (cast_expression "(undefined1 *)(*piVar2 + 0x11)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar2 + 0x11)" (( "(") (binary_expression "*piVar2 + 0x11" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "0x11")) () ")")))) (= "=") (number_literal "2")) (; ";")) (goto_statement "goto LAB_00044818;" (goto "goto") (statement_identifier "LAB_00044818") (; ";")) (} "}"))) (if_statement "if (iVar3 == 1) {\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x10) = uVar6;\n      goto LAB_00044818;\n    }" (if "if") (parenthesized_expression "(iVar3 == 1)" (( "(") (binary_expression "iVar3 == 1" (identifier "iVar3") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      iVar3 = 0;\n      *(undefined1 *)(*piVar2 + 0x10) = uVar6;\n      goto LAB_00044818;\n    }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)(*piVar2 + 0x10) = uVar6;" (assignment_expression "*(undefined1 *)(*piVar2 + 0x10) = uVar6" (pointer_expression "*(undefined1 *)(*piVar2 + 0x10)" (* "*") (cast_expression "(undefined1 *)(*piVar2 + 0x10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar2 + 0x10)" (( "(") (binary_expression "*piVar2 + 0x10" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "uVar6")) (; ";")) (goto_statement "goto LAB_00044818;" (goto "goto") (statement_identifier "LAB_00044818") (; ";")) (} "}"))) (expression_statement "uVar5 = 0x22653;" (assignment_expression "uVar5 = 0x22653" (identifier "uVar5") (= "=") (number_literal "0x22653")) (; ";")) (} "}")))) (expression_statement "iVar3 = FUN_00044440(uVar5);" (assignment_expression "iVar3 = FUN_00044440(uVar5)" (identifier "iVar3") (= "=") (call_expression "FUN_00044440(uVar5)" (identifier "FUN_00044440") (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n    *(int *)(iVar4 + 0x40) = iVar3;\n    FUN_00029df8(iVar4,iVar3);\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(int *)(iVar4 + 0x40) = iVar3;\n    FUN_00029df8(iVar4,iVar3);\n  }" ({ "{") (expression_statement "*(int *)(iVar4 + 0x40) = iVar3;" (assignment_expression "*(int *)(iVar4 + 0x40) = iVar3" (pointer_expression "*(int *)(iVar4 + 0x40)" (* "*") (cast_expression "(int *)(iVar4 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x40)" (( "(") (binary_expression "iVar4 + 0x40" (identifier "iVar4") (+ "+") (number_literal "0x40")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "FUN_00029df8(iVar4,iVar3);" (call_expression "FUN_00029df8(iVar4,iVar3)" (identifier "FUN_00029df8") (argument_list "(iVar4,iVar3)" (( "(") (identifier "iVar4") (, ",") (identifier "iVar3") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_00044818:\n  (**(code **)(puVar8 + 0xb0d18))(*(undefined4 *)(iVar4 + 0xc));" (statement_identifier "LAB_00044818") (: ":") (expression_statement "(**(code **)(puVar8 + 0xb0d18))(*(undefined4 *)(iVar4 + 0xc));" (call_expression "(**(code **)(puVar8 + 0xb0d18))(*(undefined4 *)(iVar4 + 0xc))" (parenthesized_expression "(**(code **)(puVar8 + 0xb0d18))" (( "(") (pointer_expression "**(code **)(puVar8 + 0xb0d18)" (* "*") (pointer_expression "*(code **)(puVar8 + 0xb0d18)" (* "*") (cast_expression "(code **)(puVar8 + 0xb0d18)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 0xb0d18)" (( "(") (binary_expression "puVar8 + 0xb0d18" (identifier "puVar8") (+ "+") (number_literal "0xb0d18")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)(iVar4 + 0xc))" (( "(") (pointer_expression "*(undefined4 *)(iVar4 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0xc)" (( "(") (binary_expression "iVar4 + 0xc" (identifier "iVar4") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";"))) (expression_statement "iVar4 = *piVar7;" (assignment_expression "iVar4 = *piVar7" (identifier "iVar4") (= "=") (pointer_expression "*piVar7" (* "*") (identifier "piVar7"))) (; ";")) (if_statement "if (iVar1 == iVar4) {\n    return CONCAT44(iVar3,iVar4);\n  }" (if "if") (parenthesized_expression "(iVar1 == iVar4)" (( "(") (binary_expression "iVar1 == iVar4" (identifier "iVar1") (== "==") (identifier "iVar4")) () ")")) (compound_statement "{\n    return CONCAT44(iVar3,iVar4);\n  }" ({ "{") (return_statement "return CONCAT44(iVar3,iVar4);" (return "return") (call_expression "CONCAT44(iVar3,iVar4)" (identifier "CONCAT44") (argument_list "(iVar3,iVar4)" (( "(") (identifier "iVar3") (, ",") (identifier "iVar4") () ")"))) (; ";")) (} "}"))) (expression_statement "pcVar9 = *(code **)(puVar8 + 0xb0de8);" (assignment_expression "pcVar9 = *(code **)(puVar8 + 0xb0de8)" (identifier "pcVar9") (= "=") (pointer_expression "*(code **)(puVar8 + 0xb0de8)" (* "*") (cast_expression "(code **)(puVar8 + 0xb0de8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 0xb0de8)" (( "(") (binary_expression "puVar8 + 0xb0de8" (identifier "puVar8") (+ "+") (number_literal "0xb0de8")) () ")"))))) (; ";")) (expression_statement "(*pcVar9)();" (call_expression "(*pcVar9)()" (parenthesized_expression "(*pcVar9)" (( "(") (pointer_expression "*pcVar9" (* "*") (identifier "pcVar9")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar4 = (**(code **)(pcVar9 + 0xb0c64))();" (assignment_expression "iVar4 = (**(code **)(pcVar9 + 0xb0c64))()" (identifier "iVar4") (= "=") (call_expression "(**(code **)(pcVar9 + 0xb0c64))()" (parenthesized_expression "(**(code **)(pcVar9 + 0xb0c64))" (( "(") (pointer_expression "**(code **)(pcVar9 + 0xb0c64)" (* "*") (pointer_expression "*(code **)(pcVar9 + 0xb0c64)" (* "*") (cast_expression "(code **)(pcVar9 + 0xb0c64)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar9 + 0xb0c64)" (( "(") (binary_expression "pcVar9 + 0xb0c64" (identifier "pcVar9") (+ "+") (number_literal "0xb0c64")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "(**(code **)(pcVar9 + 0xb0b30))\n            (0xe,*(int *)(pcVar9 + 0xb0a30) + 0x722c,*(int *)(pcVar9 + 0xb0a30) + 0x7248,iVar1,\n             iVar4 + 0x14);" (call_expression "(**(code **)(pcVar9 + 0xb0b30))\n            (0xe,*(int *)(pcVar9 + 0xb0a30) + 0x722c,*(int *)(pcVar9 + 0xb0a30) + 0x7248,iVar1,\n             iVar4 + 0x14)" (parenthesized_expression "(**(code **)(pcVar9 + 0xb0b30))" (( "(") (pointer_expression "**(code **)(pcVar9 + 0xb0b30)" (* "*") (pointer_expression "*(code **)(pcVar9 + 0xb0b30)" (* "*") (cast_expression "(code **)(pcVar9 + 0xb0b30)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar9 + 0xb0b30)" (( "(") (binary_expression "pcVar9 + 0xb0b30" (identifier "pcVar9") (+ "+") (number_literal "0xb0b30")) () ")"))))) () ")")) (argument_list "(0xe,*(int *)(pcVar9 + 0xb0a30) + 0x722c,*(int *)(pcVar9 + 0xb0a30) + 0x7248,iVar1,\n             iVar4 + 0x14)" (( "(") (number_literal "0xe") (, ",") (binary_expression "*(int *)(pcVar9 + 0xb0a30) + 0x722c" (pointer_expression "*(int *)(pcVar9 + 0xb0a30)" (* "*") (cast_expression "(int *)(pcVar9 + 0xb0a30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar9 + 0xb0a30)" (( "(") (binary_expression "pcVar9 + 0xb0a30" (identifier "pcVar9") (+ "+") (number_literal "0xb0a30")) () ")")))) (+ "+") (number_literal "0x722c")) (, ",") (binary_expression "*(int *)(pcVar9 + 0xb0a30) + 0x7248" (pointer_expression "*(int *)(pcVar9 + 0xb0a30)" (* "*") (cast_expression "(int *)(pcVar9 + 0xb0a30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar9 + 0xb0a30)" (( "(") (binary_expression "pcVar9 + 0xb0a30" (identifier "pcVar9") (+ "+") (number_literal "0xb0a30")) () ")")))) (+ "+") (number_literal "0x7248")) (, ",") (identifier "iVar1") (, ",") (binary_expression "iVar4 + 0x14" (identifier "iVar4") (+ "+") (number_literal "0x14")) () ")"))) (; ";")) (return_statement "return CONCAT44(0xe,extraout_v1);" (return "return") (call_expression "CONCAT44(0xe,extraout_v1)" (identifier "CONCAT44") (argument_list "(0xe,extraout_v1)" (( "(") (number_literal "0xe") (, ",") (identifier "extraout_v1") () ")"))) (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (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 (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (number_literal))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (number_literal))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (identifier))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (number_literal) (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)) (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)) (identifier) (binary_expression left: (identifier) right: (number_literal))))) (return_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier)))))))

undefined8 MASKED(void)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  undefined4 extraout_v1;
  int iVar4;
  undefined4 uVar5;
  undefined1 uVar6;
  int *piVar7;
  undefined *puVar8;
  code *pcVar9;
  undefined1 auStack_20 [8];
  undefined8 local_18;
  int local_c;
  
  puVar8 = PTR___stack_chk_guard_000f5568;
  uVar6 = SUB41(&local_18,0);
  local_c = *(int *)PTR___stack_chk_guard_000f5568;
  (*(code *)PTR_sqlite3_status64_000f54e4)(0,auStack_20);
  iVar4 = *(int *)puVar8;
  if (local_c == iVar4) {
    return local_18;
  }
  iVar3 = local_c;
  puVar8 = PTR___stack_chk_fail_000f5540;
  (*(code *)PTR___stack_chk_fail_000f5540)();
  piVar7 = *(int **)(puVar8 + 0xb0e10);
  iVar1 = *piVar7;
  (**(code **)(puVar8 + 0xb0cf0))(*(undefined4 *)(iVar4 + 0xc));
  piVar2 = *(int **)(iVar4 + 0x178);
  if (piVar2 == (int *)0x0) {
    uVar5 = 0x22641;
  }
  else {
    if (iVar3 == 2) {
      iVar3 = 0;
      *(undefined1 *)(*piVar2 + 0x11) = 0;
      goto LAB_00044818;
    }
    if (iVar3 == 3) {
      iVar3 = 0;
      *(undefined1 *)(*piVar2 + 0x11) = 2;
      goto LAB_00044818;
    }
    if (iVar3 == 1) {
      iVar3 = 0;
      *(undefined1 *)(*piVar2 + 0x10) = uVar6;
      goto LAB_00044818;
    }
    uVar5 = 0x22653;
  }
  iVar3 = FUN_00044440(uVar5);
  if (iVar3 != 0) {
    *(int *)(iVar4 + 0x40) = iVar3;
    FUN_00029df8(iVar4,iVar3);
  }
LAB_00044818:
  (**(code **)(puVar8 + 0xb0d18))(*(undefined4 *)(iVar4 + 0xc));
  iVar4 = *piVar7;
  if (iVar1 == iVar4) {
    return CONCAT44(iVar3,iVar4);
  }
  pcVar9 = *(code **)(puVar8 + 0xb0de8);
  (*pcVar9)();
  iVar4 = (**(code **)(pcVar9 + 0xb0c64))();
  (**(code **)(pcVar9 + 0xb0b30))
            (0xe,*(int *)(pcVar9 + 0xb0a30) + 0x722c,*(int *)(pcVar9 + 0xb0a30) + 0x7248,iVar1,
             iVar4 + 0x14);
  return CONCAT44(0xe,extraout_v1);
}

