
void * pcache1Alloc(int nByte)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  uint uVar4;
  undefined4 uVar5;
  undefined4 *puVar6;
  undefined1 *puVar7;
  undefined4 in_stack_ffffffe4;
  
  puVar1 = PTR_DAT_000f52bc;
  puVar7 = &_gp;
  if (nByte <= *(int *)(PTR_DAT_000f52bc + 0x59f0)) {
    (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04));
    puVar6 = *(undefined4 **)(puVar1 + 0x5a08);
    if (puVar6 != (undefined4 *)0x0) {
      iVar3 = *(int *)(puVar7 + -0x7fe4);
      iVar2 = *(int *)(puVar1 + 0x5a0c);
      uVar5 = *puVar6;
      uVar4 = *(uint *)(iVar3 + 0x5c98);
      *(int *)(puVar1 + 0x5a0c) = iVar2 + -1;
      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;
      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar2 + -1 < *(int *)(puVar1 + 0x59f8));
      if (uVar4 < (uint)nByte) {
        *(int *)(iVar3 + 0x5c98) = nByte;
      }
      uVar4 = *(int *)(iVar3 + 0x5c58) + 1;
      *(uint *)(iVar3 + 0x5c58) = uVar4;
      if (*(uint *)(iVar3 + 0x5c80) < uVar4) {
        *(uint *)(iVar3 + 0x5c80) = uVar4;
      }
      goto LAB_00036464;
    }
    (**(code **)(puVar7 + -0x7e30))(*(undefined4 *)(puVar1 + 0x5a04));
  }
  puVar6 = (undefined4 *)sqlite3Malloc(CONCAT44(puVar7,in_stack_ffffffe4));
  if (puVar6 == (undefined4 *)0x0) {
    return (void *)0x0;
  }
  iVar2 = (**(code **)(*(int *)(puVar7 + -0x7fe4) + 0x40cc))(puVar6);
  (**(code **)(puVar7 + -0x7e58))(*(undefined4 *)(puVar1 + 0x5a04));
  iVar3 = *(int *)(puVar7 + -0x7fe4);
  if (*(uint *)(iVar3 + 0x5c98) < (uint)nByte) {
    *(int *)(iVar3 + 0x5c98) = nByte;
  }
  uVar4 = iVar2 + *(int *)(iVar3 + 0x5c5c);
  *(uint *)(iVar3 + 0x5c5c) = uVar4;
  if (*(uint *)(iVar3 + 0x5c84) < uVar4) {
    *(uint *)(iVar3 + 0x5c84) = uVar4;
  }
LAB_00036464:
  (**(code **)(puVar7 + -0x7e30))(*(undefined4 *)(puVar1 + 0x5a04));
  return puVar6;
}



undefined4 * FUN_000363bc(uint param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  uint uVar4;
  undefined4 uVar5;
  undefined4 *puVar6;
  
  puVar1 = PTR_DAT_000f52bc;
  if ((int)param_1 <= *(int *)(PTR_DAT_000f52bc + 0x59f0)) {
    (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04));
    puVar2 = PTR_DAT_000f52bc;
    puVar6 = *(undefined4 **)(puVar1 + 0x5a08);
    if (puVar6 != (undefined4 *)0x0) {
      iVar3 = *(int *)(puVar1 + 0x5a0c);
      uVar5 = *puVar6;
      uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98);
      *(int *)(puVar1 + 0x5a0c) = iVar3 + -1;
      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;
      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8));
      if (uVar4 < param_1) {
        *(uint *)(puVar2 + 0x5c98) = param_1;
      }
      uVar4 = *(int *)(puVar2 + 0x5c58) + 1;
      *(uint *)(puVar2 + 0x5c58) = uVar4;
      if (*(uint *)(puVar2 + 0x5c80) < uVar4) {
        *(uint *)(puVar2 + 0x5c80) = uVar4;
      }
      goto LAB_00036464;
    }
    (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));
  }
  puVar6 = (undefined4 *)FUN_000344ec((int)param_1 >> 0x1f,param_1);
  if (puVar6 == (undefined4 *)0x0) {
    return (undefined4 *)0x0;
  }
  iVar3 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar6);
  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(puVar1 + 0x5a04));
  puVar2 = PTR_DAT_000f52bc;
  if (*(uint *)(PTR_DAT_000f52bc + 0x5c98) < param_1) {
    *(uint *)(PTR_DAT_000f52bc + 0x5c98) = param_1;
  }
  uVar4 = iVar3 + *(int *)(puVar2 + 0x5c5c);
  *(uint *)(puVar2 + 0x5c5c) = uVar4;
  if (*(uint *)(puVar2 + 0x5c84) < uVar4) {
    *(uint *)(puVar2 + 0x5c84) = uVar4;
  }
LAB_00036464:
  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));
  return puVar6;
}


lui gp,0xc
addiu gp,gp,0x6ee4
addu gp,gp,t9
addiu sp,sp,-0x30
sw s0,0x1c(sp)
lw s0,-0x7fe4(gp)
sw gp,0x10(sp)
sw s1,0x20(sp)
addiu s0,s0,0x59b0
sw ra,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
lw v0,0x40(s0)
slt v0,v0,a0
bne v0,zero,0x000364a0
_or s1,a0,zero
lw t9,-0x7e58(gp)
jalr t9
_lw a0,0x54(s0)
lw s2,0x58(s0)
beq s2,zero,0x00036490
_lw gp,0x10(sp)
lw v1,-0x7fe4(gp)
lw v0,0x5c(s0)
lw a1,0x48(s0)
addiu v1,v1,0x5c54
lw a2,0x0(s2)
addiu v0,v0,-0x1
lw a0,0x44(v1)
slt a1,v0,a1
sw v0,0x5c(s0)
sw a2,0x58(s0)
sltu v0,a0,s1
beq v0,zero,0x0003644c
_sw a1,0x60(s0)
sw s1,0x44(v1)
lw v0,0x4(v1)
lw a0,0x2c(v1)
addiu v0,v0,0x1
sltu a0,a0,v0
bne a0,zero,0x00036528
_sw v0,0x4(v1)
lw t9,-0x7e30(gp)
jalr t9
_lw a0,0x54(s0)
lw ra,0x2c(sp)
or v0,s2,zero
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7e30(gp)
jalr t9
_lw a0,0x54(s0)
lw gp,0x10(sp)
lw t9,-0x7fb4(gp)
sra a0,s1,0x1f
addiu t9,t9,0x44ec
bal 0x000344ec
_or a1,s1,zero
lw gp,0x10(sp)
beq v0,zero,0x00036470
_or s2,v0,zero
or a0,v0,zero
lw v0,-0x7fe4(gp)
lw t9,0x40cc(v0)
jalr t9
_nop
lw gp,0x10(sp)
or s3,v0,zero
lw t9,-0x7e58(gp)
jalr t9
_lw a0,0x54(s0)
lw gp,0x10(sp)
lw v1,-0x7fe4(gp)
addiu v1,v1,0x5c54
lw v0,0x44(v1)
sltu v0,v0,s1
beq v0,zero,0x00036508
_nop
sw s1,0x44(v1)
lw v0,0x8(v1)
lw a0,0x30(v1)
addu v0,s3,v0
sltu a0,a0,v0
beq a0,zero,0x00036464
_sw v0,0x8(v1)
b 0x00036464
_sw v0,0x30(v1)
b 0x00036464
_sw v0,0x2c(v1)
(translation_unit "undefined4 * FUN_000363bc(uint param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  \n  puVar1 = PTR_DAT_000f52bc;\n  if ((int)param_1 <= *(int *)(PTR_DAT_000f52bc + 0x59f0)) {\n    (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04));\n    puVar2 = PTR_DAT_000f52bc;\n    puVar6 = *(undefined4 **)(puVar1 + 0x5a08);\n    if (puVar6 != (undefined4 *)0x0) {\n      iVar3 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar3 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < param_1) {\n        *(uint *)(puVar2 + 0x5c98) = param_1;\n      }\n      uVar4 = *(int *)(puVar2 + 0x5c58) + 1;\n      *(uint *)(puVar2 + 0x5c58) = uVar4;\n      if (*(uint *)(puVar2 + 0x5c80) < uVar4) {\n        *(uint *)(puVar2 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }\n    (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));\n  }\n  puVar6 = (undefined4 *)FUN_000344ec((int)param_1 >> 0x1f,param_1);\n  if (puVar6 == (undefined4 *)0x0) {\n    return (undefined4 *)0x0;\n  }\n  iVar3 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar6);\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(puVar1 + 0x5a04));\n  puVar2 = PTR_DAT_000f52bc;\n  if (*(uint *)(PTR_DAT_000f52bc + 0x5c98) < param_1) {\n    *(uint *)(PTR_DAT_000f52bc + 0x5c98) = param_1;\n  }\n  uVar4 = iVar3 + *(int *)(puVar2 + 0x5c5c);\n  *(uint *)(puVar2 + 0x5c5c) = uVar4;\n  if (*(uint *)(puVar2 + 0x5c84) < uVar4) {\n    *(uint *)(puVar2 + 0x5c84) = uVar4;\n  }\nLAB_00036464:\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));\n  return puVar6;\n}\n\n" (function_definition "undefined4 * FUN_000363bc(uint param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  \n  puVar1 = PTR_DAT_000f52bc;\n  if ((int)param_1 <= *(int *)(PTR_DAT_000f52bc + 0x59f0)) {\n    (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04));\n    puVar2 = PTR_DAT_000f52bc;\n    puVar6 = *(undefined4 **)(puVar1 + 0x5a08);\n    if (puVar6 != (undefined4 *)0x0) {\n      iVar3 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar3 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < param_1) {\n        *(uint *)(puVar2 + 0x5c98) = param_1;\n      }\n      uVar4 = *(int *)(puVar2 + 0x5c58) + 1;\n      *(uint *)(puVar2 + 0x5c58) = uVar4;\n      if (*(uint *)(puVar2 + 0x5c80) < uVar4) {\n        *(uint *)(puVar2 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }\n    (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));\n  }\n  puVar6 = (undefined4 *)FUN_000344ec((int)param_1 >> 0x1f,param_1);\n  if (puVar6 == (undefined4 *)0x0) {\n    return (undefined4 *)0x0;\n  }\n  iVar3 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar6);\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(puVar1 + 0x5a04));\n  puVar2 = PTR_DAT_000f52bc;\n  if (*(uint *)(PTR_DAT_000f52bc + 0x5c98) < param_1) {\n    *(uint *)(PTR_DAT_000f52bc + 0x5c98) = param_1;\n  }\n  uVar4 = iVar3 + *(int *)(puVar2 + 0x5c5c);\n  *(uint *)(puVar2 + 0x5c5c) = uVar4;\n  if (*(uint *)(puVar2 + 0x5c84) < uVar4) {\n    *(uint *)(puVar2 + 0x5c84) = uVar4;\n  }\nLAB_00036464:\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));\n  return puVar6;\n}" type_identifier (pointer_declarator "* FUN_000363bc(uint param_1)" * (function_declarator "FUN_000363bc(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  \n  puVar1 = PTR_DAT_000f52bc;\n  if ((int)param_1 <= *(int *)(PTR_DAT_000f52bc + 0x59f0)) {\n    (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04));\n    puVar2 = PTR_DAT_000f52bc;\n    puVar6 = *(undefined4 **)(puVar1 + 0x5a08);\n    if (puVar6 != (undefined4 *)0x0) {\n      iVar3 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar3 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < param_1) {\n        *(uint *)(puVar2 + 0x5c98) = param_1;\n      }\n      uVar4 = *(int *)(puVar2 + 0x5c58) + 1;\n      *(uint *)(puVar2 + 0x5c58) = uVar4;\n      if (*(uint *)(puVar2 + 0x5c80) < uVar4) {\n        *(uint *)(puVar2 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }\n    (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));\n  }\n  puVar6 = (undefined4 *)FUN_000344ec((int)param_1 >> 0x1f,param_1);\n  if (puVar6 == (undefined4 *)0x0) {\n    return (undefined4 *)0x0;\n  }\n  iVar3 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar6);\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(puVar1 + 0x5a04));\n  puVar2 = PTR_DAT_000f52bc;\n  if (*(uint *)(PTR_DAT_000f52bc + 0x5c98) < param_1) {\n    *(uint *)(PTR_DAT_000f52bc + 0x5c98) = param_1;\n  }\n  uVar4 = iVar3 + *(int *)(puVar2 + 0x5c5c);\n  *(uint *)(puVar2 + 0x5c5c) = uVar4;\n  if (*(uint *)(puVar2 + 0x5c84) < uVar4) {\n    *(uint *)(puVar2 + 0x5c84) = uVar4;\n  }\nLAB_00036464:\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));\n  return puVar6;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (expression_statement "puVar1 = PTR_DAT_000f52bc;" (assignment_expression "puVar1 = PTR_DAT_000f52bc" identifier = identifier) ;) (if_statement "if ((int)param_1 <= *(int *)(PTR_DAT_000f52bc + 0x59f0)) {\n    (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04));\n    puVar2 = PTR_DAT_000f52bc;\n    puVar6 = *(undefined4 **)(puVar1 + 0x5a08);\n    if (puVar6 != (undefined4 *)0x0) {\n      iVar3 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar3 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < param_1) {\n        *(uint *)(puVar2 + 0x5c98) = param_1;\n      }\n      uVar4 = *(int *)(puVar2 + 0x5c58) + 1;\n      *(uint *)(puVar2 + 0x5c58) = uVar4;\n      if (*(uint *)(puVar2 + 0x5c80) < uVar4) {\n        *(uint *)(puVar2 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }\n    (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));\n  }" if (parenthesized_expression "((int)param_1 <= *(int *)(PTR_DAT_000f52bc + 0x59f0))" ( (binary_expression "(int)param_1 <= *(int *)(PTR_DAT_000f52bc + 0x59f0)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) <= (pointer_expression "*(int *)(PTR_DAT_000f52bc + 0x59f0)" * (cast_expression "(int *)(PTR_DAT_000f52bc + 0x59f0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000f52bc + 0x59f0)" ( (binary_expression "PTR_DAT_000f52bc + 0x59f0" identifier + number_literal) ))))) )) (compound_statement "{\n    (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04));\n    puVar2 = PTR_DAT_000f52bc;\n    puVar6 = *(undefined4 **)(puVar1 + 0x5a08);\n    if (puVar6 != (undefined4 *)0x0) {\n      iVar3 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar3 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < param_1) {\n        *(uint *)(puVar2 + 0x5c98) = param_1;\n      }\n      uVar4 = *(int *)(puVar2 + 0x5c58) + 1;\n      *(uint *)(puVar2 + 0x5c58) = uVar4;\n      if (*(uint *)(puVar2 + 0x5c80) < uVar4) {\n        *(uint *)(puVar2 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }\n    (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));\n  }" { (expression_statement "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04));" (call_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04))" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_enter_000f5448" * (cast_expression "(code *)PTR_sqlite3_mutex_enter_000f5448" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04))" ( (pointer_expression "*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04)" * (cast_expression "(undefined4 *)(PTR_DAT_000f52bc + 0x5a04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000f52bc + 0x5a04)" ( (binary_expression "PTR_DAT_000f52bc + 0x5a04" identifier + number_literal) )))) ))) ;) (expression_statement "puVar2 = PTR_DAT_000f52bc;" (assignment_expression "puVar2 = PTR_DAT_000f52bc" identifier = identifier) ;) (expression_statement "puVar6 = *(undefined4 **)(puVar1 + 0x5a08);" (assignment_expression "puVar6 = *(undefined4 **)(puVar1 + 0x5a08)" identifier = (pointer_expression "*(undefined4 **)(puVar1 + 0x5a08)" * (cast_expression "(undefined4 **)(puVar1 + 0x5a08)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x5a08)" ( (binary_expression "puVar1 + 0x5a08" identifier + number_literal) ))))) ;) (if_statement "if (puVar6 != (undefined4 *)0x0) {\n      iVar3 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar3 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < param_1) {\n        *(uint *)(puVar2 + 0x5c98) = param_1;\n      }\n      uVar4 = *(int *)(puVar2 + 0x5c58) + 1;\n      *(uint *)(puVar2 + 0x5c58) = uVar4;\n      if (*(uint *)(puVar2 + 0x5c80) < uVar4) {\n        *(uint *)(puVar2 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }" if (parenthesized_expression "(puVar6 != (undefined4 *)0x0)" ( (binary_expression "puVar6 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar3 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar3 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < param_1) {\n        *(uint *)(puVar2 + 0x5c98) = param_1;\n      }\n      uVar4 = *(int *)(puVar2 + 0x5c58) + 1;\n      *(uint *)(puVar2 + 0x5c58) = uVar4;\n      if (*(uint *)(puVar2 + 0x5c80) < uVar4) {\n        *(uint *)(puVar2 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }" { (expression_statement "iVar3 = *(int *)(puVar1 + 0x5a0c);" (assignment_expression "iVar3 = *(int *)(puVar1 + 0x5a0c)" identifier = (pointer_expression "*(int *)(puVar1 + 0x5a0c)" * (cast_expression "(int *)(puVar1 + 0x5a0c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x5a0c)" ( (binary_expression "puVar1 + 0x5a0c" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *puVar6;" (assignment_expression "uVar5 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98);" (assignment_expression "uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98)" identifier = (pointer_expression "*(uint *)(PTR_DAT_000f52bc + 0x5c98)" * (cast_expression "(uint *)(PTR_DAT_000f52bc + 0x5c98)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000f52bc + 0x5c98)" ( (binary_expression "PTR_DAT_000f52bc + 0x5c98" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(puVar1 + 0x5a0c) = iVar3 + -1;" (assignment_expression "*(int *)(puVar1 + 0x5a0c) = iVar3 + -1" (pointer_expression "*(int *)(puVar1 + 0x5a0c)" * (cast_expression "(int *)(puVar1 + 0x5a0c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x5a0c)" ( (binary_expression "puVar1 + 0x5a0c" identifier + number_literal) )))) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(puVar1 + 0x5a08) = uVar5;" (assignment_expression "*(undefined4 *)(puVar1 + 0x5a08) = uVar5" (pointer_expression "*(undefined4 *)(puVar1 + 0x5a08)" * (cast_expression "(undefined4 *)(puVar1 + 0x5a08)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x5a08)" ( (binary_expression "puVar1 + 0x5a08" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8));" (assignment_expression "*(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8))" (pointer_expression "*(uint *)(puVar1 + 0x5a10)" * (cast_expression "(uint *)(puVar1 + 0x5a10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x5a10)" ( (binary_expression "puVar1 + 0x5a10" identifier + number_literal) )))) = (call_expression "(uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar3 + -1 < *(int *)(puVar1 + 0x59f8))" ( (binary_expression "iVar3 + -1 < *(int *)(puVar1 + 0x59f8)" (binary_expression "iVar3 + -1" identifier + number_literal) < (pointer_expression "*(int *)(puVar1 + 0x59f8)" * (cast_expression "(int *)(puVar1 + 0x59f8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x59f8)" ( (binary_expression "puVar1 + 0x59f8" identifier + number_literal) ))))) )))) ;) (if_statement "if (uVar4 < param_1) {\n        *(uint *)(puVar2 + 0x5c98) = param_1;\n      }" if (parenthesized_expression "(uVar4 < param_1)" ( (binary_expression "uVar4 < param_1" identifier < identifier) )) (compound_statement "{\n        *(uint *)(puVar2 + 0x5c98) = param_1;\n      }" { (expression_statement "*(uint *)(puVar2 + 0x5c98) = param_1;" (assignment_expression "*(uint *)(puVar2 + 0x5c98) = param_1" (pointer_expression "*(uint *)(puVar2 + 0x5c98)" * (cast_expression "(uint *)(puVar2 + 0x5c98)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x5c98)" ( (binary_expression "puVar2 + 0x5c98" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "uVar4 = *(int *)(puVar2 + 0x5c58) + 1;" (assignment_expression "uVar4 = *(int *)(puVar2 + 0x5c58) + 1" identifier = (binary_expression "*(int *)(puVar2 + 0x5c58) + 1" (pointer_expression "*(int *)(puVar2 + 0x5c58)" * (cast_expression "(int *)(puVar2 + 0x5c58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x5c58)" ( (binary_expression "puVar2 + 0x5c58" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(uint *)(puVar2 + 0x5c58) = uVar4;" (assignment_expression "*(uint *)(puVar2 + 0x5c58) = uVar4" (pointer_expression "*(uint *)(puVar2 + 0x5c58)" * (cast_expression "(uint *)(puVar2 + 0x5c58)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x5c58)" ( (binary_expression "puVar2 + 0x5c58" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(uint *)(puVar2 + 0x5c80) < uVar4) {\n        *(uint *)(puVar2 + 0x5c80) = uVar4;\n      }" if (parenthesized_expression "(*(uint *)(puVar2 + 0x5c80) < uVar4)" ( (binary_expression "*(uint *)(puVar2 + 0x5c80) < uVar4" (pointer_expression "*(uint *)(puVar2 + 0x5c80)" * (cast_expression "(uint *)(puVar2 + 0x5c80)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x5c80)" ( (binary_expression "puVar2 + 0x5c80" identifier + number_literal) )))) < identifier) )) (compound_statement "{\n        *(uint *)(puVar2 + 0x5c80) = uVar4;\n      }" { (expression_statement "*(uint *)(puVar2 + 0x5c80) = uVar4;" (assignment_expression "*(uint *)(puVar2 + 0x5c80) = uVar4" (pointer_expression "*(uint *)(puVar2 + 0x5c80)" * (cast_expression "(uint *)(puVar2 + 0x5c80)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x5c80)" ( (binary_expression "puVar2 + 0x5c80" identifier + number_literal) )))) = identifier) ;) })) (goto_statement "goto LAB_00036464;" goto statement_identifier ;) })) (expression_statement "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));" (call_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04))" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_leave_000f5470" * (cast_expression "(code *)PTR_sqlite3_mutex_leave_000f5470" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(puVar1 + 0x5a04))" ( (pointer_expression "*(undefined4 *)(puVar1 + 0x5a04)" * (cast_expression "(undefined4 *)(puVar1 + 0x5a04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x5a04)" ( (binary_expression "puVar1 + 0x5a04" identifier + number_literal) )))) ))) ;) })) (expression_statement "puVar6 = (undefined4 *)FUN_000344ec((int)param_1 >> 0x1f,param_1);" (assignment_expression "puVar6 = (undefined4 *)FUN_000344ec((int)param_1 >> 0x1f,param_1)" identifier = (cast_expression "(undefined4 *)FUN_000344ec((int)param_1 >> 0x1f,param_1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000344ec((int)param_1 >> 0x1f,param_1)" identifier (argument_list "((int)param_1 >> 0x1f,param_1)" ( (binary_expression "(int)param_1 >> 0x1f" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) , identifier ))))) ;) (if_statement "if (puVar6 == (undefined4 *)0x0) {\n    return (undefined4 *)0x0;\n  }" if (parenthesized_expression "(puVar6 == (undefined4 *)0x0)" ( (binary_expression "puVar6 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return (undefined4 *)0x0;\n  }" { (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar3 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar6);" (assignment_expression "iVar3 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar6)" identifier = (call_expression "(**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar6)" (parenthesized_expression "(**(code **)(PTR_DAT_000f52bc + 0x40cc))" ( (pointer_expression "**(code **)(PTR_DAT_000f52bc + 0x40cc)" * (pointer_expression "*(code **)(PTR_DAT_000f52bc + 0x40cc)" * (cast_expression "(code **)(PTR_DAT_000f52bc + 0x40cc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000f52bc + 0x40cc)" ( (binary_expression "PTR_DAT_000f52bc + 0x40cc" identifier + number_literal) ))))) )) (argument_list "(puVar6)" ( identifier )))) ;) (expression_statement "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(puVar1 + 0x5a04));" (call_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(puVar1 + 0x5a04))" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_enter_000f5448" * (cast_expression "(code *)PTR_sqlite3_mutex_enter_000f5448" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(puVar1 + 0x5a04))" ( (pointer_expression "*(undefined4 *)(puVar1 + 0x5a04)" * (cast_expression "(undefined4 *)(puVar1 + 0x5a04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x5a04)" ( (binary_expression "puVar1 + 0x5a04" identifier + number_literal) )))) ))) ;) (expression_statement "puVar2 = PTR_DAT_000f52bc;" (assignment_expression "puVar2 = PTR_DAT_000f52bc" identifier = identifier) ;) (if_statement "if (*(uint *)(PTR_DAT_000f52bc + 0x5c98) < param_1) {\n    *(uint *)(PTR_DAT_000f52bc + 0x5c98) = param_1;\n  }" if (parenthesized_expression "(*(uint *)(PTR_DAT_000f52bc + 0x5c98) < param_1)" ( (binary_expression "*(uint *)(PTR_DAT_000f52bc + 0x5c98) < param_1" (pointer_expression "*(uint *)(PTR_DAT_000f52bc + 0x5c98)" * (cast_expression "(uint *)(PTR_DAT_000f52bc + 0x5c98)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000f52bc + 0x5c98)" ( (binary_expression "PTR_DAT_000f52bc + 0x5c98" identifier + number_literal) )))) < identifier) )) (compound_statement "{\n    *(uint *)(PTR_DAT_000f52bc + 0x5c98) = param_1;\n  }" { (expression_statement "*(uint *)(PTR_DAT_000f52bc + 0x5c98) = param_1;" (assignment_expression "*(uint *)(PTR_DAT_000f52bc + 0x5c98) = param_1" (pointer_expression "*(uint *)(PTR_DAT_000f52bc + 0x5c98)" * (cast_expression "(uint *)(PTR_DAT_000f52bc + 0x5c98)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000f52bc + 0x5c98)" ( (binary_expression "PTR_DAT_000f52bc + 0x5c98" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "uVar4 = iVar3 + *(int *)(puVar2 + 0x5c5c);" (assignment_expression "uVar4 = iVar3 + *(int *)(puVar2 + 0x5c5c)" identifier = (binary_expression "iVar3 + *(int *)(puVar2 + 0x5c5c)" identifier + (pointer_expression "*(int *)(puVar2 + 0x5c5c)" * (cast_expression "(int *)(puVar2 + 0x5c5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x5c5c)" ( (binary_expression "puVar2 + 0x5c5c" identifier + number_literal) )))))) ;) (expression_statement "*(uint *)(puVar2 + 0x5c5c) = uVar4;" (assignment_expression "*(uint *)(puVar2 + 0x5c5c) = uVar4" (pointer_expression "*(uint *)(puVar2 + 0x5c5c)" * (cast_expression "(uint *)(puVar2 + 0x5c5c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x5c5c)" ( (binary_expression "puVar2 + 0x5c5c" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(uint *)(puVar2 + 0x5c84) < uVar4) {\n    *(uint *)(puVar2 + 0x5c84) = uVar4;\n  }" if (parenthesized_expression "(*(uint *)(puVar2 + 0x5c84) < uVar4)" ( (binary_expression "*(uint *)(puVar2 + 0x5c84) < uVar4" (pointer_expression "*(uint *)(puVar2 + 0x5c84)" * (cast_expression "(uint *)(puVar2 + 0x5c84)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x5c84)" ( (binary_expression "puVar2 + 0x5c84" identifier + number_literal) )))) < identifier) )) (compound_statement "{\n    *(uint *)(puVar2 + 0x5c84) = uVar4;\n  }" { (expression_statement "*(uint *)(puVar2 + 0x5c84) = uVar4;" (assignment_expression "*(uint *)(puVar2 + 0x5c84) = uVar4" (pointer_expression "*(uint *)(puVar2 + 0x5c84)" * (cast_expression "(uint *)(puVar2 + 0x5c84)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x5c84)" ( (binary_expression "puVar2 + 0x5c84" identifier + number_literal) )))) = identifier) ;) })) (labeled_statement "LAB_00036464:\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));" statement_identifier : (expression_statement "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));" (call_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04))" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_leave_000f5470" * (cast_expression "(code *)PTR_sqlite3_mutex_leave_000f5470" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(puVar1 + 0x5a04))" ( (pointer_expression "*(undefined4 *)(puVar1 + 0x5a04)" * (cast_expression "(undefined4 *)(puVar1 + 0x5a04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x5a04)" ( (binary_expression "puVar1 + 0x5a04" identifier + number_literal) )))) ))) ;)) (return_statement "return puVar6;" return identifier ;) })))
(translation_unit "void * pcache1Alloc(int nByte)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  undefined1 *puVar7;\n  undefined4 in_stack_ffffffe4;\n  \n  puVar1 = PTR_DAT_000f52bc;\n  puVar7 = &_gp;\n  if (nByte <= *(int *)(PTR_DAT_000f52bc + 0x59f0)) {\n    (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04));\n    puVar6 = *(undefined4 **)(puVar1 + 0x5a08);\n    if (puVar6 != (undefined4 *)0x0) {\n      iVar3 = *(int *)(puVar7 + -0x7fe4);\n      iVar2 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(iVar3 + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar2 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar2 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < (uint)nByte) {\n        *(int *)(iVar3 + 0x5c98) = nByte;\n      }\n      uVar4 = *(int *)(iVar3 + 0x5c58) + 1;\n      *(uint *)(iVar3 + 0x5c58) = uVar4;\n      if (*(uint *)(iVar3 + 0x5c80) < uVar4) {\n        *(uint *)(iVar3 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }\n    (**(code **)(puVar7 + -0x7e30))(*(undefined4 *)(puVar1 + 0x5a04));\n  }\n  puVar6 = (undefined4 *)sqlite3Malloc(CONCAT44(puVar7,in_stack_ffffffe4));\n  if (puVar6 == (undefined4 *)0x0) {\n    return (void *)0x0;\n  }\n  iVar2 = (**(code **)(*(int *)(puVar7 + -0x7fe4) + 0x40cc))(puVar6);\n  (**(code **)(puVar7 + -0x7e58))(*(undefined4 *)(puVar1 + 0x5a04));\n  iVar3 = *(int *)(puVar7 + -0x7fe4);\n  if (*(uint *)(iVar3 + 0x5c98) < (uint)nByte) {\n    *(int *)(iVar3 + 0x5c98) = nByte;\n  }\n  uVar4 = iVar2 + *(int *)(iVar3 + 0x5c5c);\n  *(uint *)(iVar3 + 0x5c5c) = uVar4;\n  if (*(uint *)(iVar3 + 0x5c84) < uVar4) {\n    *(uint *)(iVar3 + 0x5c84) = uVar4;\n  }\nLAB_00036464:\n  (**(code **)(puVar7 + -0x7e30))(*(undefined4 *)(puVar1 + 0x5a04));\n  return puVar6;\n}\n\n" (function_definition "void * pcache1Alloc(int nByte)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  undefined1 *puVar7;\n  undefined4 in_stack_ffffffe4;\n  \n  puVar1 = PTR_DAT_000f52bc;\n  puVar7 = &_gp;\n  if (nByte <= *(int *)(PTR_DAT_000f52bc + 0x59f0)) {\n    (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04));\n    puVar6 = *(undefined4 **)(puVar1 + 0x5a08);\n    if (puVar6 != (undefined4 *)0x0) {\n      iVar3 = *(int *)(puVar7 + -0x7fe4);\n      iVar2 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(iVar3 + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar2 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar2 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < (uint)nByte) {\n        *(int *)(iVar3 + 0x5c98) = nByte;\n      }\n      uVar4 = *(int *)(iVar3 + 0x5c58) + 1;\n      *(uint *)(iVar3 + 0x5c58) = uVar4;\n      if (*(uint *)(iVar3 + 0x5c80) < uVar4) {\n        *(uint *)(iVar3 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }\n    (**(code **)(puVar7 + -0x7e30))(*(undefined4 *)(puVar1 + 0x5a04));\n  }\n  puVar6 = (undefined4 *)sqlite3Malloc(CONCAT44(puVar7,in_stack_ffffffe4));\n  if (puVar6 == (undefined4 *)0x0) {\n    return (void *)0x0;\n  }\n  iVar2 = (**(code **)(*(int *)(puVar7 + -0x7fe4) + 0x40cc))(puVar6);\n  (**(code **)(puVar7 + -0x7e58))(*(undefined4 *)(puVar1 + 0x5a04));\n  iVar3 = *(int *)(puVar7 + -0x7fe4);\n  if (*(uint *)(iVar3 + 0x5c98) < (uint)nByte) {\n    *(int *)(iVar3 + 0x5c98) = nByte;\n  }\n  uVar4 = iVar2 + *(int *)(iVar3 + 0x5c5c);\n  *(uint *)(iVar3 + 0x5c5c) = uVar4;\n  if (*(uint *)(iVar3 + 0x5c84) < uVar4) {\n    *(uint *)(iVar3 + 0x5c84) = uVar4;\n  }\nLAB_00036464:\n  (**(code **)(puVar7 + -0x7e30))(*(undefined4 *)(puVar1 + 0x5a04));\n  return puVar6;\n}" primitive_type (pointer_declarator "* pcache1Alloc(int nByte)" * (function_declarator "pcache1Alloc(int nByte)" identifier (parameter_list "(int nByte)" ( (parameter_declaration "int nByte" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  undefined1 *puVar7;\n  undefined4 in_stack_ffffffe4;\n  \n  puVar1 = PTR_DAT_000f52bc;\n  puVar7 = &_gp;\n  if (nByte <= *(int *)(PTR_DAT_000f52bc + 0x59f0)) {\n    (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04));\n    puVar6 = *(undefined4 **)(puVar1 + 0x5a08);\n    if (puVar6 != (undefined4 *)0x0) {\n      iVar3 = *(int *)(puVar7 + -0x7fe4);\n      iVar2 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(iVar3 + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar2 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar2 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < (uint)nByte) {\n        *(int *)(iVar3 + 0x5c98) = nByte;\n      }\n      uVar4 = *(int *)(iVar3 + 0x5c58) + 1;\n      *(uint *)(iVar3 + 0x5c58) = uVar4;\n      if (*(uint *)(iVar3 + 0x5c80) < uVar4) {\n        *(uint *)(iVar3 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }\n    (**(code **)(puVar7 + -0x7e30))(*(undefined4 *)(puVar1 + 0x5a04));\n  }\n  puVar6 = (undefined4 *)sqlite3Malloc(CONCAT44(puVar7,in_stack_ffffffe4));\n  if (puVar6 == (undefined4 *)0x0) {\n    return (void *)0x0;\n  }\n  iVar2 = (**(code **)(*(int *)(puVar7 + -0x7fe4) + 0x40cc))(puVar6);\n  (**(code **)(puVar7 + -0x7e58))(*(undefined4 *)(puVar1 + 0x5a04));\n  iVar3 = *(int *)(puVar7 + -0x7fe4);\n  if (*(uint *)(iVar3 + 0x5c98) < (uint)nByte) {\n    *(int *)(iVar3 + 0x5c98) = nByte;\n  }\n  uVar4 = iVar2 + *(int *)(iVar3 + 0x5c5c);\n  *(uint *)(iVar3 + 0x5c5c) = uVar4;\n  if (*(uint *)(iVar3 + 0x5c84) < uVar4) {\n    *(uint *)(iVar3 + 0x5c84) = uVar4;\n  }\nLAB_00036464:\n  (**(code **)(puVar7 + -0x7e30))(*(undefined4 *)(puVar1 + 0x5a04));\n  return puVar6;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined1 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 in_stack_ffffffe4;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_DAT_000f52bc;" (assignment_expression "puVar1 = PTR_DAT_000f52bc" identifier = identifier) ;) (expression_statement "puVar7 = &_gp;" (assignment_expression "puVar7 = &_gp" identifier = (pointer_expression "&_gp" & identifier)) ;) (if_statement "if (nByte <= *(int *)(PTR_DAT_000f52bc + 0x59f0)) {\n    (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04));\n    puVar6 = *(undefined4 **)(puVar1 + 0x5a08);\n    if (puVar6 != (undefined4 *)0x0) {\n      iVar3 = *(int *)(puVar7 + -0x7fe4);\n      iVar2 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(iVar3 + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar2 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar2 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < (uint)nByte) {\n        *(int *)(iVar3 + 0x5c98) = nByte;\n      }\n      uVar4 = *(int *)(iVar3 + 0x5c58) + 1;\n      *(uint *)(iVar3 + 0x5c58) = uVar4;\n      if (*(uint *)(iVar3 + 0x5c80) < uVar4) {\n        *(uint *)(iVar3 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }\n    (**(code **)(puVar7 + -0x7e30))(*(undefined4 *)(puVar1 + 0x5a04));\n  }" if (parenthesized_expression "(nByte <= *(int *)(PTR_DAT_000f52bc + 0x59f0))" ( (binary_expression "nByte <= *(int *)(PTR_DAT_000f52bc + 0x59f0)" identifier <= (pointer_expression "*(int *)(PTR_DAT_000f52bc + 0x59f0)" * (cast_expression "(int *)(PTR_DAT_000f52bc + 0x59f0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000f52bc + 0x59f0)" ( (binary_expression "PTR_DAT_000f52bc + 0x59f0" identifier + number_literal) ))))) )) (compound_statement "{\n    (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04));\n    puVar6 = *(undefined4 **)(puVar1 + 0x5a08);\n    if (puVar6 != (undefined4 *)0x0) {\n      iVar3 = *(int *)(puVar7 + -0x7fe4);\n      iVar2 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(iVar3 + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar2 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar2 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < (uint)nByte) {\n        *(int *)(iVar3 + 0x5c98) = nByte;\n      }\n      uVar4 = *(int *)(iVar3 + 0x5c58) + 1;\n      *(uint *)(iVar3 + 0x5c58) = uVar4;\n      if (*(uint *)(iVar3 + 0x5c80) < uVar4) {\n        *(uint *)(iVar3 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }\n    (**(code **)(puVar7 + -0x7e30))(*(undefined4 *)(puVar1 + 0x5a04));\n  }" { (expression_statement "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04));" (call_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04))" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_enter_000f5448" * (cast_expression "(code *)PTR_sqlite3_mutex_enter_000f5448" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04))" ( (pointer_expression "*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04)" * (cast_expression "(undefined4 *)(PTR_DAT_000f52bc + 0x5a04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000f52bc + 0x5a04)" ( (binary_expression "PTR_DAT_000f52bc + 0x5a04" identifier + number_literal) )))) ))) ;) (expression_statement "puVar6 = *(undefined4 **)(puVar1 + 0x5a08);" (assignment_expression "puVar6 = *(undefined4 **)(puVar1 + 0x5a08)" identifier = (pointer_expression "*(undefined4 **)(puVar1 + 0x5a08)" * (cast_expression "(undefined4 **)(puVar1 + 0x5a08)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x5a08)" ( (binary_expression "puVar1 + 0x5a08" identifier + number_literal) ))))) ;) (if_statement "if (puVar6 != (undefined4 *)0x0) {\n      iVar3 = *(int *)(puVar7 + -0x7fe4);\n      iVar2 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(iVar3 + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar2 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar2 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < (uint)nByte) {\n        *(int *)(iVar3 + 0x5c98) = nByte;\n      }\n      uVar4 = *(int *)(iVar3 + 0x5c58) + 1;\n      *(uint *)(iVar3 + 0x5c58) = uVar4;\n      if (*(uint *)(iVar3 + 0x5c80) < uVar4) {\n        *(uint *)(iVar3 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }" if (parenthesized_expression "(puVar6 != (undefined4 *)0x0)" ( (binary_expression "puVar6 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar3 = *(int *)(puVar7 + -0x7fe4);\n      iVar2 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(iVar3 + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar2 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar2 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < (uint)nByte) {\n        *(int *)(iVar3 + 0x5c98) = nByte;\n      }\n      uVar4 = *(int *)(iVar3 + 0x5c58) + 1;\n      *(uint *)(iVar3 + 0x5c58) = uVar4;\n      if (*(uint *)(iVar3 + 0x5c80) < uVar4) {\n        *(uint *)(iVar3 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }" { (expression_statement "iVar3 = *(int *)(puVar7 + -0x7fe4);" (assignment_expression "iVar3 = *(int *)(puVar7 + -0x7fe4)" identifier = (pointer_expression "*(int *)(puVar7 + -0x7fe4)" * (cast_expression "(int *)(puVar7 + -0x7fe4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -0x7fe4)" ( (binary_expression "puVar7 + -0x7fe4" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(puVar1 + 0x5a0c);" (assignment_expression "iVar2 = *(int *)(puVar1 + 0x5a0c)" identifier = (pointer_expression "*(int *)(puVar1 + 0x5a0c)" * (cast_expression "(int *)(puVar1 + 0x5a0c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x5a0c)" ( (binary_expression "puVar1 + 0x5a0c" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *puVar6;" (assignment_expression "uVar5 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "uVar4 = *(uint *)(iVar3 + 0x5c98);" (assignment_expression "uVar4 = *(uint *)(iVar3 + 0x5c98)" identifier = (pointer_expression "*(uint *)(iVar3 + 0x5c98)" * (cast_expression "(uint *)(iVar3 + 0x5c98)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x5c98)" ( (binary_expression "iVar3 + 0x5c98" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(puVar1 + 0x5a0c) = iVar2 + -1;" (assignment_expression "*(int *)(puVar1 + 0x5a0c) = iVar2 + -1" (pointer_expression "*(int *)(puVar1 + 0x5a0c)" * (cast_expression "(int *)(puVar1 + 0x5a0c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x5a0c)" ( (binary_expression "puVar1 + 0x5a0c" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(puVar1 + 0x5a08) = uVar5;" (assignment_expression "*(undefined4 *)(puVar1 + 0x5a08) = uVar5" (pointer_expression "*(undefined4 *)(puVar1 + 0x5a08)" * (cast_expression "(undefined4 *)(puVar1 + 0x5a08)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x5a08)" ( (binary_expression "puVar1 + 0x5a08" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(puVar1 + 0x5a10) = (uint)(iVar2 + -1 < *(int *)(puVar1 + 0x59f8));" (assignment_expression "*(uint *)(puVar1 + 0x5a10) = (uint)(iVar2 + -1 < *(int *)(puVar1 + 0x59f8))" (pointer_expression "*(uint *)(puVar1 + 0x5a10)" * (cast_expression "(uint *)(puVar1 + 0x5a10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x5a10)" ( (binary_expression "puVar1 + 0x5a10" identifier + number_literal) )))) = (call_expression "(uint)(iVar2 + -1 < *(int *)(puVar1 + 0x59f8))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar2 + -1 < *(int *)(puVar1 + 0x59f8))" ( (binary_expression "iVar2 + -1 < *(int *)(puVar1 + 0x59f8)" (binary_expression "iVar2 + -1" identifier + number_literal) < (pointer_expression "*(int *)(puVar1 + 0x59f8)" * (cast_expression "(int *)(puVar1 + 0x59f8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x59f8)" ( (binary_expression "puVar1 + 0x59f8" identifier + number_literal) ))))) )))) ;) (if_statement "if (uVar4 < (uint)nByte) {\n        *(int *)(iVar3 + 0x5c98) = nByte;\n      }" if (parenthesized_expression "(uVar4 < (uint)nByte)" ( (binary_expression "uVar4 < (uint)nByte" identifier < (cast_expression "(uint)nByte" ( (type_descriptor "uint" type_identifier) ) identifier)) )) (compound_statement "{\n        *(int *)(iVar3 + 0x5c98) = nByte;\n      }" { (expression_statement "*(int *)(iVar3 + 0x5c98) = nByte;" (assignment_expression "*(int *)(iVar3 + 0x5c98) = nByte" (pointer_expression "*(int *)(iVar3 + 0x5c98)" * (cast_expression "(int *)(iVar3 + 0x5c98)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x5c98)" ( (binary_expression "iVar3 + 0x5c98" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "uVar4 = *(int *)(iVar3 + 0x5c58) + 1;" (assignment_expression "uVar4 = *(int *)(iVar3 + 0x5c58) + 1" identifier = (binary_expression "*(int *)(iVar3 + 0x5c58) + 1" (pointer_expression "*(int *)(iVar3 + 0x5c58)" * (cast_expression "(int *)(iVar3 + 0x5c58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x5c58)" ( (binary_expression "iVar3 + 0x5c58" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(uint *)(iVar3 + 0x5c58) = uVar4;" (assignment_expression "*(uint *)(iVar3 + 0x5c58) = uVar4" (pointer_expression "*(uint *)(iVar3 + 0x5c58)" * (cast_expression "(uint *)(iVar3 + 0x5c58)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x5c58)" ( (binary_expression "iVar3 + 0x5c58" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(uint *)(iVar3 + 0x5c80) < uVar4) {\n        *(uint *)(iVar3 + 0x5c80) = uVar4;\n      }" if (parenthesized_expression "(*(uint *)(iVar3 + 0x5c80) < uVar4)" ( (binary_expression "*(uint *)(iVar3 + 0x5c80) < uVar4" (pointer_expression "*(uint *)(iVar3 + 0x5c80)" * (cast_expression "(uint *)(iVar3 + 0x5c80)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x5c80)" ( (binary_expression "iVar3 + 0x5c80" identifier + number_literal) )))) < identifier) )) (compound_statement "{\n        *(uint *)(iVar3 + 0x5c80) = uVar4;\n      }" { (expression_statement "*(uint *)(iVar3 + 0x5c80) = uVar4;" (assignment_expression "*(uint *)(iVar3 + 0x5c80) = uVar4" (pointer_expression "*(uint *)(iVar3 + 0x5c80)" * (cast_expression "(uint *)(iVar3 + 0x5c80)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x5c80)" ( (binary_expression "iVar3 + 0x5c80" identifier + number_literal) )))) = identifier) ;) })) (goto_statement "goto LAB_00036464;" goto statement_identifier ;) })) (expression_statement "(**(code **)(puVar7 + -0x7e30))(*(undefined4 *)(puVar1 + 0x5a04));" (call_expression "(**(code **)(puVar7 + -0x7e30))(*(undefined4 *)(puVar1 + 0x5a04))" (parenthesized_expression "(**(code **)(puVar7 + -0x7e30))" ( (pointer_expression "**(code **)(puVar7 + -0x7e30)" * (pointer_expression "*(code **)(puVar7 + -0x7e30)" * (cast_expression "(code **)(puVar7 + -0x7e30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + -0x7e30)" ( (binary_expression "puVar7 + -0x7e30" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(puVar1 + 0x5a04))" ( (pointer_expression "*(undefined4 *)(puVar1 + 0x5a04)" * (cast_expression "(undefined4 *)(puVar1 + 0x5a04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x5a04)" ( (binary_expression "puVar1 + 0x5a04" identifier + number_literal) )))) ))) ;) })) (expression_statement "puVar6 = (undefined4 *)sqlite3Malloc(CONCAT44(puVar7,in_stack_ffffffe4));" (assignment_expression "puVar6 = (undefined4 *)sqlite3Malloc(CONCAT44(puVar7,in_stack_ffffffe4))" identifier = (cast_expression "(undefined4 *)sqlite3Malloc(CONCAT44(puVar7,in_stack_ffffffe4))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3Malloc(CONCAT44(puVar7,in_stack_ffffffe4))" identifier (argument_list "(CONCAT44(puVar7,in_stack_ffffffe4))" ( (call_expression "CONCAT44(puVar7,in_stack_ffffffe4)" identifier (argument_list "(puVar7,in_stack_ffffffe4)" ( identifier , identifier ))) ))))) ;) (if_statement "if (puVar6 == (undefined4 *)0x0) {\n    return (void *)0x0;\n  }" if (parenthesized_expression "(puVar6 == (undefined4 *)0x0)" ( (binary_expression "puVar6 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return (void *)0x0;\n  }" { (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar2 = (**(code **)(*(int *)(puVar7 + -0x7fe4) + 0x40cc))(puVar6);" (assignment_expression "iVar2 = (**(code **)(*(int *)(puVar7 + -0x7fe4) + 0x40cc))(puVar6)" identifier = (call_expression "(**(code **)(*(int *)(puVar7 + -0x7fe4) + 0x40cc))(puVar6)" (parenthesized_expression "(**(code **)(*(int *)(puVar7 + -0x7fe4) + 0x40cc))" ( (pointer_expression "**(code **)(*(int *)(puVar7 + -0x7fe4) + 0x40cc)" * (pointer_expression "*(code **)(*(int *)(puVar7 + -0x7fe4) + 0x40cc)" * (cast_expression "(code **)(*(int *)(puVar7 + -0x7fe4) + 0x40cc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(puVar7 + -0x7fe4) + 0x40cc)" ( (binary_expression "*(int *)(puVar7 + -0x7fe4) + 0x40cc" (pointer_expression "*(int *)(puVar7 + -0x7fe4)" * (cast_expression "(int *)(puVar7 + -0x7fe4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -0x7fe4)" ( (binary_expression "puVar7 + -0x7fe4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(puVar6)" ( identifier )))) ;) (expression_statement "(**(code **)(puVar7 + -0x7e58))(*(undefined4 *)(puVar1 + 0x5a04));" (call_expression "(**(code **)(puVar7 + -0x7e58))(*(undefined4 *)(puVar1 + 0x5a04))" (parenthesized_expression "(**(code **)(puVar7 + -0x7e58))" ( (pointer_expression "**(code **)(puVar7 + -0x7e58)" * (pointer_expression "*(code **)(puVar7 + -0x7e58)" * (cast_expression "(code **)(puVar7 + -0x7e58)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + -0x7e58)" ( (binary_expression "puVar7 + -0x7e58" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(puVar1 + 0x5a04))" ( (pointer_expression "*(undefined4 *)(puVar1 + 0x5a04)" * (cast_expression "(undefined4 *)(puVar1 + 0x5a04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x5a04)" ( (binary_expression "puVar1 + 0x5a04" identifier + number_literal) )))) ))) ;) (expression_statement "iVar3 = *(int *)(puVar7 + -0x7fe4);" (assignment_expression "iVar3 = *(int *)(puVar7 + -0x7fe4)" identifier = (pointer_expression "*(int *)(puVar7 + -0x7fe4)" * (cast_expression "(int *)(puVar7 + -0x7fe4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -0x7fe4)" ( (binary_expression "puVar7 + -0x7fe4" identifier + number_literal) ))))) ;) (if_statement "if (*(uint *)(iVar3 + 0x5c98) < (uint)nByte) {\n    *(int *)(iVar3 + 0x5c98) = nByte;\n  }" if (parenthesized_expression "(*(uint *)(iVar3 + 0x5c98) < (uint)nByte)" ( (binary_expression "*(uint *)(iVar3 + 0x5c98) < (uint)nByte" (pointer_expression "*(uint *)(iVar3 + 0x5c98)" * (cast_expression "(uint *)(iVar3 + 0x5c98)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x5c98)" ( (binary_expression "iVar3 + 0x5c98" identifier + number_literal) )))) < (cast_expression "(uint)nByte" ( (type_descriptor "uint" type_identifier) ) identifier)) )) (compound_statement "{\n    *(int *)(iVar3 + 0x5c98) = nByte;\n  }" { (expression_statement "*(int *)(iVar3 + 0x5c98) = nByte;" (assignment_expression "*(int *)(iVar3 + 0x5c98) = nByte" (pointer_expression "*(int *)(iVar3 + 0x5c98)" * (cast_expression "(int *)(iVar3 + 0x5c98)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x5c98)" ( (binary_expression "iVar3 + 0x5c98" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "uVar4 = iVar2 + *(int *)(iVar3 + 0x5c5c);" (assignment_expression "uVar4 = iVar2 + *(int *)(iVar3 + 0x5c5c)" identifier = (binary_expression "iVar2 + *(int *)(iVar3 + 0x5c5c)" identifier + (pointer_expression "*(int *)(iVar3 + 0x5c5c)" * (cast_expression "(int *)(iVar3 + 0x5c5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x5c5c)" ( (binary_expression "iVar3 + 0x5c5c" identifier + number_literal) )))))) ;) (expression_statement "*(uint *)(iVar3 + 0x5c5c) = uVar4;" (assignment_expression "*(uint *)(iVar3 + 0x5c5c) = uVar4" (pointer_expression "*(uint *)(iVar3 + 0x5c5c)" * (cast_expression "(uint *)(iVar3 + 0x5c5c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x5c5c)" ( (binary_expression "iVar3 + 0x5c5c" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(uint *)(iVar3 + 0x5c84) < uVar4) {\n    *(uint *)(iVar3 + 0x5c84) = uVar4;\n  }" if (parenthesized_expression "(*(uint *)(iVar3 + 0x5c84) < uVar4)" ( (binary_expression "*(uint *)(iVar3 + 0x5c84) < uVar4" (pointer_expression "*(uint *)(iVar3 + 0x5c84)" * (cast_expression "(uint *)(iVar3 + 0x5c84)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x5c84)" ( (binary_expression "iVar3 + 0x5c84" identifier + number_literal) )))) < identifier) )) (compound_statement "{\n    *(uint *)(iVar3 + 0x5c84) = uVar4;\n  }" { (expression_statement "*(uint *)(iVar3 + 0x5c84) = uVar4;" (assignment_expression "*(uint *)(iVar3 + 0x5c84) = uVar4" (pointer_expression "*(uint *)(iVar3 + 0x5c84)" * (cast_expression "(uint *)(iVar3 + 0x5c84)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x5c84)" ( (binary_expression "iVar3 + 0x5c84" identifier + number_literal) )))) = identifier) ;) })) (labeled_statement "LAB_00036464:\n  (**(code **)(puVar7 + -0x7e30))(*(undefined4 *)(puVar1 + 0x5a04));" statement_identifier : (expression_statement "(**(code **)(puVar7 + -0x7e30))(*(undefined4 *)(puVar1 + 0x5a04));" (call_expression "(**(code **)(puVar7 + -0x7e30))(*(undefined4 *)(puVar1 + 0x5a04))" (parenthesized_expression "(**(code **)(puVar7 + -0x7e30))" ( (pointer_expression "**(code **)(puVar7 + -0x7e30)" * (pointer_expression "*(code **)(puVar7 + -0x7e30)" * (cast_expression "(code **)(puVar7 + -0x7e30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + -0x7e30)" ( (binary_expression "puVar7 + -0x7e30" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(puVar1 + 0x5a04))" ( (pointer_expression "*(undefined4 *)(puVar1 + 0x5a04)" * (cast_expression "(undefined4 *)(puVar1 + 0x5a04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x5a04)" ( (binary_expression "puVar1 + 0x5a04" identifier + number_literal) )))) ))) ;)) (return_statement "return puVar6;" return identifier ;) })))
(translation_unit "undefined4 * FUN_000363bc(uint param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  \n  puVar1 = PTR_DAT_000f52bc;\n  if ((int)param_1 <= *(int *)(PTR_DAT_000f52bc + 0x59f0)) {\n    (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04));\n    puVar2 = PTR_DAT_000f52bc;\n    puVar6 = *(undefined4 **)(puVar1 + 0x5a08);\n    if (puVar6 != (undefined4 *)0x0) {\n      iVar3 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar3 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < param_1) {\n        *(uint *)(puVar2 + 0x5c98) = param_1;\n      }\n      uVar4 = *(int *)(puVar2 + 0x5c58) + 1;\n      *(uint *)(puVar2 + 0x5c58) = uVar4;\n      if (*(uint *)(puVar2 + 0x5c80) < uVar4) {\n        *(uint *)(puVar2 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }\n    (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));\n  }\n  puVar6 = (undefined4 *)FUN_000344ec((int)param_1 >> 0x1f,param_1);\n  if (puVar6 == (undefined4 *)0x0) {\n    return (undefined4 *)0x0;\n  }\n  iVar3 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar6);\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(puVar1 + 0x5a04));\n  puVar2 = PTR_DAT_000f52bc;\n  if (*(uint *)(PTR_DAT_000f52bc + 0x5c98) < param_1) {\n    *(uint *)(PTR_DAT_000f52bc + 0x5c98) = param_1;\n  }\n  uVar4 = iVar3 + *(int *)(puVar2 + 0x5c5c);\n  *(uint *)(puVar2 + 0x5c5c) = uVar4;\n  if (*(uint *)(puVar2 + 0x5c84) < uVar4) {\n    *(uint *)(puVar2 + 0x5c84) = uVar4;\n  }\nLAB_00036464:\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));\n  return puVar6;\n}\n\n" (function_definition "undefined4 * FUN_000363bc(uint param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  \n  puVar1 = PTR_DAT_000f52bc;\n  if ((int)param_1 <= *(int *)(PTR_DAT_000f52bc + 0x59f0)) {\n    (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04));\n    puVar2 = PTR_DAT_000f52bc;\n    puVar6 = *(undefined4 **)(puVar1 + 0x5a08);\n    if (puVar6 != (undefined4 *)0x0) {\n      iVar3 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar3 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < param_1) {\n        *(uint *)(puVar2 + 0x5c98) = param_1;\n      }\n      uVar4 = *(int *)(puVar2 + 0x5c58) + 1;\n      *(uint *)(puVar2 + 0x5c58) = uVar4;\n      if (*(uint *)(puVar2 + 0x5c80) < uVar4) {\n        *(uint *)(puVar2 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }\n    (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));\n  }\n  puVar6 = (undefined4 *)FUN_000344ec((int)param_1 >> 0x1f,param_1);\n  if (puVar6 == (undefined4 *)0x0) {\n    return (undefined4 *)0x0;\n  }\n  iVar3 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar6);\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(puVar1 + 0x5a04));\n  puVar2 = PTR_DAT_000f52bc;\n  if (*(uint *)(PTR_DAT_000f52bc + 0x5c98) < param_1) {\n    *(uint *)(PTR_DAT_000f52bc + 0x5c98) = param_1;\n  }\n  uVar4 = iVar3 + *(int *)(puVar2 + 0x5c5c);\n  *(uint *)(puVar2 + 0x5c5c) = uVar4;\n  if (*(uint *)(puVar2 + 0x5c84) < uVar4) {\n    *(uint *)(puVar2 + 0x5c84) = uVar4;\n  }\nLAB_00036464:\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));\n  return puVar6;\n}" type_identifier (pointer_declarator "* FUN_000363bc(uint param_1)" * (function_declarator "FUN_000363bc(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  \n  puVar1 = PTR_DAT_000f52bc;\n  if ((int)param_1 <= *(int *)(PTR_DAT_000f52bc + 0x59f0)) {\n    (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04));\n    puVar2 = PTR_DAT_000f52bc;\n    puVar6 = *(undefined4 **)(puVar1 + 0x5a08);\n    if (puVar6 != (undefined4 *)0x0) {\n      iVar3 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar3 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < param_1) {\n        *(uint *)(puVar2 + 0x5c98) = param_1;\n      }\n      uVar4 = *(int *)(puVar2 + 0x5c58) + 1;\n      *(uint *)(puVar2 + 0x5c58) = uVar4;\n      if (*(uint *)(puVar2 + 0x5c80) < uVar4) {\n        *(uint *)(puVar2 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }\n    (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));\n  }\n  puVar6 = (undefined4 *)FUN_000344ec((int)param_1 >> 0x1f,param_1);\n  if (puVar6 == (undefined4 *)0x0) {\n    return (undefined4 *)0x0;\n  }\n  iVar3 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar6);\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(puVar1 + 0x5a04));\n  puVar2 = PTR_DAT_000f52bc;\n  if (*(uint *)(PTR_DAT_000f52bc + 0x5c98) < param_1) {\n    *(uint *)(PTR_DAT_000f52bc + 0x5c98) = param_1;\n  }\n  uVar4 = iVar3 + *(int *)(puVar2 + 0x5c5c);\n  *(uint *)(puVar2 + 0x5c5c) = uVar4;\n  if (*(uint *)(puVar2 + 0x5c84) < uVar4) {\n    *(uint *)(puVar2 + 0x5c84) = uVar4;\n  }\nLAB_00036464:\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));\n  return puVar6;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (expression_statement "puVar1 = PTR_DAT_000f52bc;" (assignment_expression "puVar1 = PTR_DAT_000f52bc" identifier = identifier) ;) (if_statement "if ((int)param_1 <= *(int *)(PTR_DAT_000f52bc + 0x59f0)) {\n    (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04));\n    puVar2 = PTR_DAT_000f52bc;\n    puVar6 = *(undefined4 **)(puVar1 + 0x5a08);\n    if (puVar6 != (undefined4 *)0x0) {\n      iVar3 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar3 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < param_1) {\n        *(uint *)(puVar2 + 0x5c98) = param_1;\n      }\n      uVar4 = *(int *)(puVar2 + 0x5c58) + 1;\n      *(uint *)(puVar2 + 0x5c58) = uVar4;\n      if (*(uint *)(puVar2 + 0x5c80) < uVar4) {\n        *(uint *)(puVar2 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }\n    (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));\n  }" if (parenthesized_expression "((int)param_1 <= *(int *)(PTR_DAT_000f52bc + 0x59f0))" ( (binary_expression "(int)param_1 <= *(int *)(PTR_DAT_000f52bc + 0x59f0)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) <= (pointer_expression "*(int *)(PTR_DAT_000f52bc + 0x59f0)" * (cast_expression "(int *)(PTR_DAT_000f52bc + 0x59f0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000f52bc + 0x59f0)" ( (binary_expression "PTR_DAT_000f52bc + 0x59f0" identifier + number_literal) ))))) )) (compound_statement "{\n    (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04));\n    puVar2 = PTR_DAT_000f52bc;\n    puVar6 = *(undefined4 **)(puVar1 + 0x5a08);\n    if (puVar6 != (undefined4 *)0x0) {\n      iVar3 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar3 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < param_1) {\n        *(uint *)(puVar2 + 0x5c98) = param_1;\n      }\n      uVar4 = *(int *)(puVar2 + 0x5c58) + 1;\n      *(uint *)(puVar2 + 0x5c58) = uVar4;\n      if (*(uint *)(puVar2 + 0x5c80) < uVar4) {\n        *(uint *)(puVar2 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }\n    (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));\n  }" { (expression_statement "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04));" (call_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04))" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_enter_000f5448" * (cast_expression "(code *)PTR_sqlite3_mutex_enter_000f5448" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04))" ( (pointer_expression "*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04)" * (cast_expression "(undefined4 *)(PTR_DAT_000f52bc + 0x5a04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000f52bc + 0x5a04)" ( (binary_expression "PTR_DAT_000f52bc + 0x5a04" identifier + number_literal) )))) ))) ;) (expression_statement "puVar2 = PTR_DAT_000f52bc;" (assignment_expression "puVar2 = PTR_DAT_000f52bc" identifier = identifier) ;) (expression_statement "puVar6 = *(undefined4 **)(puVar1 + 0x5a08);" (assignment_expression "puVar6 = *(undefined4 **)(puVar1 + 0x5a08)" identifier = (pointer_expression "*(undefined4 **)(puVar1 + 0x5a08)" * (cast_expression "(undefined4 **)(puVar1 + 0x5a08)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x5a08)" ( (binary_expression "puVar1 + 0x5a08" identifier + number_literal) ))))) ;) (if_statement "if (puVar6 != (undefined4 *)0x0) {\n      iVar3 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar3 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < param_1) {\n        *(uint *)(puVar2 + 0x5c98) = param_1;\n      }\n      uVar4 = *(int *)(puVar2 + 0x5c58) + 1;\n      *(uint *)(puVar2 + 0x5c58) = uVar4;\n      if (*(uint *)(puVar2 + 0x5c80) < uVar4) {\n        *(uint *)(puVar2 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }" if (parenthesized_expression "(puVar6 != (undefined4 *)0x0)" ( (binary_expression "puVar6 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar3 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar3 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < param_1) {\n        *(uint *)(puVar2 + 0x5c98) = param_1;\n      }\n      uVar4 = *(int *)(puVar2 + 0x5c58) + 1;\n      *(uint *)(puVar2 + 0x5c58) = uVar4;\n      if (*(uint *)(puVar2 + 0x5c80) < uVar4) {\n        *(uint *)(puVar2 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }" { (expression_statement "iVar3 = *(int *)(puVar1 + 0x5a0c);" (assignment_expression "iVar3 = *(int *)(puVar1 + 0x5a0c)" identifier = (pointer_expression "*(int *)(puVar1 + 0x5a0c)" * (cast_expression "(int *)(puVar1 + 0x5a0c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x5a0c)" ( (binary_expression "puVar1 + 0x5a0c" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *puVar6;" (assignment_expression "uVar5 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98);" (assignment_expression "uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98)" identifier = (pointer_expression "*(uint *)(PTR_DAT_000f52bc + 0x5c98)" * (cast_expression "(uint *)(PTR_DAT_000f52bc + 0x5c98)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000f52bc + 0x5c98)" ( (binary_expression "PTR_DAT_000f52bc + 0x5c98" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(puVar1 + 0x5a0c) = iVar3 + -1;" (assignment_expression "*(int *)(puVar1 + 0x5a0c) = iVar3 + -1" (pointer_expression "*(int *)(puVar1 + 0x5a0c)" * (cast_expression "(int *)(puVar1 + 0x5a0c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x5a0c)" ( (binary_expression "puVar1 + 0x5a0c" identifier + number_literal) )))) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(puVar1 + 0x5a08) = uVar5;" (assignment_expression "*(undefined4 *)(puVar1 + 0x5a08) = uVar5" (pointer_expression "*(undefined4 *)(puVar1 + 0x5a08)" * (cast_expression "(undefined4 *)(puVar1 + 0x5a08)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x5a08)" ( (binary_expression "puVar1 + 0x5a08" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8));" (assignment_expression "*(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8))" (pointer_expression "*(uint *)(puVar1 + 0x5a10)" * (cast_expression "(uint *)(puVar1 + 0x5a10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x5a10)" ( (binary_expression "puVar1 + 0x5a10" identifier + number_literal) )))) = (call_expression "(uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar3 + -1 < *(int *)(puVar1 + 0x59f8))" ( (binary_expression "iVar3 + -1 < *(int *)(puVar1 + 0x59f8)" (binary_expression "iVar3 + -1" identifier + number_literal) < (pointer_expression "*(int *)(puVar1 + 0x59f8)" * (cast_expression "(int *)(puVar1 + 0x59f8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x59f8)" ( (binary_expression "puVar1 + 0x59f8" identifier + number_literal) ))))) )))) ;) (if_statement "if (uVar4 < param_1) {\n        *(uint *)(puVar2 + 0x5c98) = param_1;\n      }" if (parenthesized_expression "(uVar4 < param_1)" ( (binary_expression "uVar4 < param_1" identifier < identifier) )) (compound_statement "{\n        *(uint *)(puVar2 + 0x5c98) = param_1;\n      }" { (expression_statement "*(uint *)(puVar2 + 0x5c98) = param_1;" (assignment_expression "*(uint *)(puVar2 + 0x5c98) = param_1" (pointer_expression "*(uint *)(puVar2 + 0x5c98)" * (cast_expression "(uint *)(puVar2 + 0x5c98)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x5c98)" ( (binary_expression "puVar2 + 0x5c98" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "uVar4 = *(int *)(puVar2 + 0x5c58) + 1;" (assignment_expression "uVar4 = *(int *)(puVar2 + 0x5c58) + 1" identifier = (binary_expression "*(int *)(puVar2 + 0x5c58) + 1" (pointer_expression "*(int *)(puVar2 + 0x5c58)" * (cast_expression "(int *)(puVar2 + 0x5c58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x5c58)" ( (binary_expression "puVar2 + 0x5c58" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(uint *)(puVar2 + 0x5c58) = uVar4;" (assignment_expression "*(uint *)(puVar2 + 0x5c58) = uVar4" (pointer_expression "*(uint *)(puVar2 + 0x5c58)" * (cast_expression "(uint *)(puVar2 + 0x5c58)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x5c58)" ( (binary_expression "puVar2 + 0x5c58" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(uint *)(puVar2 + 0x5c80) < uVar4) {\n        *(uint *)(puVar2 + 0x5c80) = uVar4;\n      }" if (parenthesized_expression "(*(uint *)(puVar2 + 0x5c80) < uVar4)" ( (binary_expression "*(uint *)(puVar2 + 0x5c80) < uVar4" (pointer_expression "*(uint *)(puVar2 + 0x5c80)" * (cast_expression "(uint *)(puVar2 + 0x5c80)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x5c80)" ( (binary_expression "puVar2 + 0x5c80" identifier + number_literal) )))) < identifier) )) (compound_statement "{\n        *(uint *)(puVar2 + 0x5c80) = uVar4;\n      }" { (expression_statement "*(uint *)(puVar2 + 0x5c80) = uVar4;" (assignment_expression "*(uint *)(puVar2 + 0x5c80) = uVar4" (pointer_expression "*(uint *)(puVar2 + 0x5c80)" * (cast_expression "(uint *)(puVar2 + 0x5c80)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x5c80)" ( (binary_expression "puVar2 + 0x5c80" identifier + number_literal) )))) = identifier) ;) })) (goto_statement "goto LAB_00036464;" goto statement_identifier ;) })) (expression_statement "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));" (call_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04))" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_leave_000f5470" * (cast_expression "(code *)PTR_sqlite3_mutex_leave_000f5470" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(puVar1 + 0x5a04))" ( (pointer_expression "*(undefined4 *)(puVar1 + 0x5a04)" * (cast_expression "(undefined4 *)(puVar1 + 0x5a04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x5a04)" ( (binary_expression "puVar1 + 0x5a04" identifier + number_literal) )))) ))) ;) })) (expression_statement "puVar6 = (undefined4 *)FUN_000344ec((int)param_1 >> 0x1f,param_1);" (assignment_expression "puVar6 = (undefined4 *)FUN_000344ec((int)param_1 >> 0x1f,param_1)" identifier = (cast_expression "(undefined4 *)FUN_000344ec((int)param_1 >> 0x1f,param_1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000344ec((int)param_1 >> 0x1f,param_1)" identifier (argument_list "((int)param_1 >> 0x1f,param_1)" ( (binary_expression "(int)param_1 >> 0x1f" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) , identifier ))))) ;) (if_statement "if (puVar6 == (undefined4 *)0x0) {\n    return (undefined4 *)0x0;\n  }" if (parenthesized_expression "(puVar6 == (undefined4 *)0x0)" ( (binary_expression "puVar6 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return (undefined4 *)0x0;\n  }" { (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar3 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar6);" (assignment_expression "iVar3 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar6)" identifier = (call_expression "(**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar6)" (parenthesized_expression "(**(code **)(PTR_DAT_000f52bc + 0x40cc))" ( (pointer_expression "**(code **)(PTR_DAT_000f52bc + 0x40cc)" * (pointer_expression "*(code **)(PTR_DAT_000f52bc + 0x40cc)" * (cast_expression "(code **)(PTR_DAT_000f52bc + 0x40cc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000f52bc + 0x40cc)" ( (binary_expression "PTR_DAT_000f52bc + 0x40cc" identifier + number_literal) ))))) )) (argument_list "(puVar6)" ( identifier )))) ;) (expression_statement "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(puVar1 + 0x5a04));" (call_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(puVar1 + 0x5a04))" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_enter_000f5448" * (cast_expression "(code *)PTR_sqlite3_mutex_enter_000f5448" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(puVar1 + 0x5a04))" ( (pointer_expression "*(undefined4 *)(puVar1 + 0x5a04)" * (cast_expression "(undefined4 *)(puVar1 + 0x5a04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x5a04)" ( (binary_expression "puVar1 + 0x5a04" identifier + number_literal) )))) ))) ;) (expression_statement "puVar2 = PTR_DAT_000f52bc;" (assignment_expression "puVar2 = PTR_DAT_000f52bc" identifier = identifier) ;) (if_statement "if (*(uint *)(PTR_DAT_000f52bc + 0x5c98) < param_1) {\n    *(uint *)(PTR_DAT_000f52bc + 0x5c98) = param_1;\n  }" if (parenthesized_expression "(*(uint *)(PTR_DAT_000f52bc + 0x5c98) < param_1)" ( (binary_expression "*(uint *)(PTR_DAT_000f52bc + 0x5c98) < param_1" (pointer_expression "*(uint *)(PTR_DAT_000f52bc + 0x5c98)" * (cast_expression "(uint *)(PTR_DAT_000f52bc + 0x5c98)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000f52bc + 0x5c98)" ( (binary_expression "PTR_DAT_000f52bc + 0x5c98" identifier + number_literal) )))) < identifier) )) (compound_statement "{\n    *(uint *)(PTR_DAT_000f52bc + 0x5c98) = param_1;\n  }" { (expression_statement "*(uint *)(PTR_DAT_000f52bc + 0x5c98) = param_1;" (assignment_expression "*(uint *)(PTR_DAT_000f52bc + 0x5c98) = param_1" (pointer_expression "*(uint *)(PTR_DAT_000f52bc + 0x5c98)" * (cast_expression "(uint *)(PTR_DAT_000f52bc + 0x5c98)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000f52bc + 0x5c98)" ( (binary_expression "PTR_DAT_000f52bc + 0x5c98" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "uVar4 = iVar3 + *(int *)(puVar2 + 0x5c5c);" (assignment_expression "uVar4 = iVar3 + *(int *)(puVar2 + 0x5c5c)" identifier = (binary_expression "iVar3 + *(int *)(puVar2 + 0x5c5c)" identifier + (pointer_expression "*(int *)(puVar2 + 0x5c5c)" * (cast_expression "(int *)(puVar2 + 0x5c5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x5c5c)" ( (binary_expression "puVar2 + 0x5c5c" identifier + number_literal) )))))) ;) (expression_statement "*(uint *)(puVar2 + 0x5c5c) = uVar4;" (assignment_expression "*(uint *)(puVar2 + 0x5c5c) = uVar4" (pointer_expression "*(uint *)(puVar2 + 0x5c5c)" * (cast_expression "(uint *)(puVar2 + 0x5c5c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x5c5c)" ( (binary_expression "puVar2 + 0x5c5c" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(uint *)(puVar2 + 0x5c84) < uVar4) {\n    *(uint *)(puVar2 + 0x5c84) = uVar4;\n  }" if (parenthesized_expression "(*(uint *)(puVar2 + 0x5c84) < uVar4)" ( (binary_expression "*(uint *)(puVar2 + 0x5c84) < uVar4" (pointer_expression "*(uint *)(puVar2 + 0x5c84)" * (cast_expression "(uint *)(puVar2 + 0x5c84)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x5c84)" ( (binary_expression "puVar2 + 0x5c84" identifier + number_literal) )))) < identifier) )) (compound_statement "{\n    *(uint *)(puVar2 + 0x5c84) = uVar4;\n  }" { (expression_statement "*(uint *)(puVar2 + 0x5c84) = uVar4;" (assignment_expression "*(uint *)(puVar2 + 0x5c84) = uVar4" (pointer_expression "*(uint *)(puVar2 + 0x5c84)" * (cast_expression "(uint *)(puVar2 + 0x5c84)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x5c84)" ( (binary_expression "puVar2 + 0x5c84" identifier + number_literal) )))) = identifier) ;) })) (labeled_statement "LAB_00036464:\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));" statement_identifier : (expression_statement "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));" (call_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04))" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_leave_000f5470" * (cast_expression "(code *)PTR_sqlite3_mutex_leave_000f5470" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(puVar1 + 0x5a04))" ( (pointer_expression "*(undefined4 *)(puVar1 + 0x5a04)" * (cast_expression "(undefined4 *)(puVar1 + 0x5a04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x5a04)" ( (binary_expression "puVar1 + 0x5a04" identifier + number_literal) )))) ))) ;)) (return_statement "return puVar6;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression 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) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression IDENT + LIT) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (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 (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (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 ( IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < IDENT) )) (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 (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;)) (return_statement return IDENT ;) })))
(function_definition "undefined4 * FUN_000363bc(uint param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  \n  puVar1 = PTR_DAT_000f52bc;\n  if ((int)param_1 <= *(int *)(PTR_DAT_000f52bc + 0x59f0)) {\n    (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04));\n    puVar2 = PTR_DAT_000f52bc;\n    puVar6 = *(undefined4 **)(puVar1 + 0x5a08);\n    if (puVar6 != (undefined4 *)0x0) {\n      iVar3 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar3 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < param_1) {\n        *(uint *)(puVar2 + 0x5c98) = param_1;\n      }\n      uVar4 = *(int *)(puVar2 + 0x5c58) + 1;\n      *(uint *)(puVar2 + 0x5c58) = uVar4;\n      if (*(uint *)(puVar2 + 0x5c80) < uVar4) {\n        *(uint *)(puVar2 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }\n    (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));\n  }\n  puVar6 = (undefined4 *)FUN_000344ec((int)param_1 >> 0x1f,param_1);\n  if (puVar6 == (undefined4 *)0x0) {\n    return (undefined4 *)0x0;\n  }\n  iVar3 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar6);\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(puVar1 + 0x5a04));\n  puVar2 = PTR_DAT_000f52bc;\n  if (*(uint *)(PTR_DAT_000f52bc + 0x5c98) < param_1) {\n    *(uint *)(PTR_DAT_000f52bc + 0x5c98) = param_1;\n  }\n  uVar4 = iVar3 + *(int *)(puVar2 + 0x5c5c);\n  *(uint *)(puVar2 + 0x5c5c) = uVar4;\n  if (*(uint *)(puVar2 + 0x5c84) < uVar4) {\n    *(uint *)(puVar2 + 0x5c84) = uVar4;\n  }\nLAB_00036464:\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));\n  return puVar6;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_000363bc(uint param_1)" (* "*") (function_declarator "FUN_000363bc(uint param_1)" (identifier "FUN_000363bc") (parameter_list "(uint param_1)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  \n  puVar1 = PTR_DAT_000f52bc;\n  if ((int)param_1 <= *(int *)(PTR_DAT_000f52bc + 0x59f0)) {\n    (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04));\n    puVar2 = PTR_DAT_000f52bc;\n    puVar6 = *(undefined4 **)(puVar1 + 0x5a08);\n    if (puVar6 != (undefined4 *)0x0) {\n      iVar3 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar3 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < param_1) {\n        *(uint *)(puVar2 + 0x5c98) = param_1;\n      }\n      uVar4 = *(int *)(puVar2 + 0x5c58) + 1;\n      *(uint *)(puVar2 + 0x5c58) = uVar4;\n      if (*(uint *)(puVar2 + 0x5c80) < uVar4) {\n        *(uint *)(puVar2 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }\n    (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));\n  }\n  puVar6 = (undefined4 *)FUN_000344ec((int)param_1 >> 0x1f,param_1);\n  if (puVar6 == (undefined4 *)0x0) {\n    return (undefined4 *)0x0;\n  }\n  iVar3 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar6);\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(puVar1 + 0x5a04));\n  puVar2 = PTR_DAT_000f52bc;\n  if (*(uint *)(PTR_DAT_000f52bc + 0x5c98) < param_1) {\n    *(uint *)(PTR_DAT_000f52bc + 0x5c98) = param_1;\n  }\n  uVar4 = iVar3 + *(int *)(puVar2 + 0x5c5c);\n  *(uint *)(puVar2 + 0x5c5c) = uVar4;\n  if (*(uint *)(puVar2 + 0x5c84) < uVar4) {\n    *(uint *)(puVar2 + 0x5c84) = uVar4;\n  }\nLAB_00036464:\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));\n  return puVar6;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (expression_statement "puVar1 = PTR_DAT_000f52bc;" (assignment_expression "puVar1 = PTR_DAT_000f52bc" (identifier "puVar1") (= "=") (identifier "PTR_DAT_000f52bc")) (; ";")) (if_statement "if ((int)param_1 <= *(int *)(PTR_DAT_000f52bc + 0x59f0)) {\n    (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04));\n    puVar2 = PTR_DAT_000f52bc;\n    puVar6 = *(undefined4 **)(puVar1 + 0x5a08);\n    if (puVar6 != (undefined4 *)0x0) {\n      iVar3 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar3 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < param_1) {\n        *(uint *)(puVar2 + 0x5c98) = param_1;\n      }\n      uVar4 = *(int *)(puVar2 + 0x5c58) + 1;\n      *(uint *)(puVar2 + 0x5c58) = uVar4;\n      if (*(uint *)(puVar2 + 0x5c80) < uVar4) {\n        *(uint *)(puVar2 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }\n    (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));\n  }" (if "if") (parenthesized_expression "((int)param_1 <= *(int *)(PTR_DAT_000f52bc + 0x59f0))" (( "(") (binary_expression "(int)param_1 <= *(int *)(PTR_DAT_000f52bc + 0x59f0)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (<= "<=") (pointer_expression "*(int *)(PTR_DAT_000f52bc + 0x59f0)" (* "*") (cast_expression "(int *)(PTR_DAT_000f52bc + 0x59f0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000f52bc + 0x59f0)" (( "(") (binary_expression "PTR_DAT_000f52bc + 0x59f0" (identifier "PTR_DAT_000f52bc") (+ "+") (number_literal "0x59f0")) () ")"))))) () ")")) (compound_statement "{\n    (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04));\n    puVar2 = PTR_DAT_000f52bc;\n    puVar6 = *(undefined4 **)(puVar1 + 0x5a08);\n    if (puVar6 != (undefined4 *)0x0) {\n      iVar3 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar3 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < param_1) {\n        *(uint *)(puVar2 + 0x5c98) = param_1;\n      }\n      uVar4 = *(int *)(puVar2 + 0x5c58) + 1;\n      *(uint *)(puVar2 + 0x5c58) = uVar4;\n      if (*(uint *)(puVar2 + 0x5c80) < uVar4) {\n        *(uint *)(puVar2 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }\n    (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));\n  }" ({ "{") (expression_statement "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04));" (call_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04))" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_mutex_enter_000f5448" (* "*") (cast_expression "(code *)PTR_sqlite3_mutex_enter_000f5448" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_mutex_enter_000f5448"))) () ")")) (argument_list "(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04))" (( "(") (pointer_expression "*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_000f52bc + 0x5a04)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000f52bc + 0x5a04)" (( "(") (binary_expression "PTR_DAT_000f52bc + 0x5a04" (identifier "PTR_DAT_000f52bc") (+ "+") (number_literal "0x5a04")) () ")")))) () ")"))) (; ";")) (expression_statement "puVar2 = PTR_DAT_000f52bc;" (assignment_expression "puVar2 = PTR_DAT_000f52bc" (identifier "puVar2") (= "=") (identifier "PTR_DAT_000f52bc")) (; ";")) (expression_statement "puVar6 = *(undefined4 **)(puVar1 + 0x5a08);" (assignment_expression "puVar6 = *(undefined4 **)(puVar1 + 0x5a08)" (identifier "puVar6") (= "=") (pointer_expression "*(undefined4 **)(puVar1 + 0x5a08)" (* "*") (cast_expression "(undefined4 **)(puVar1 + 0x5a08)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar1 + 0x5a08)" (( "(") (binary_expression "puVar1 + 0x5a08" (identifier "puVar1") (+ "+") (number_literal "0x5a08")) () ")"))))) (; ";")) (if_statement "if (puVar6 != (undefined4 *)0x0) {\n      iVar3 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar3 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < param_1) {\n        *(uint *)(puVar2 + 0x5c98) = param_1;\n      }\n      uVar4 = *(int *)(puVar2 + 0x5c58) + 1;\n      *(uint *)(puVar2 + 0x5c58) = uVar4;\n      if (*(uint *)(puVar2 + 0x5c80) < uVar4) {\n        *(uint *)(puVar2 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }" (if "if") (parenthesized_expression "(puVar6 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar6 != (undefined4 *)0x0" (identifier "puVar6") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      iVar3 = *(int *)(puVar1 + 0x5a0c);\n      uVar5 = *puVar6;\n      uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98);\n      *(int *)(puVar1 + 0x5a0c) = iVar3 + -1;\n      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;\n      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8));\n      if (uVar4 < param_1) {\n        *(uint *)(puVar2 + 0x5c98) = param_1;\n      }\n      uVar4 = *(int *)(puVar2 + 0x5c58) + 1;\n      *(uint *)(puVar2 + 0x5c58) = uVar4;\n      if (*(uint *)(puVar2 + 0x5c80) < uVar4) {\n        *(uint *)(puVar2 + 0x5c80) = uVar4;\n      }\n      goto LAB_00036464;\n    }" ({ "{") (expression_statement "iVar3 = *(int *)(puVar1 + 0x5a0c);" (assignment_expression "iVar3 = *(int *)(puVar1 + 0x5a0c)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(puVar1 + 0x5a0c)" (* "*") (cast_expression "(int *)(puVar1 + 0x5a0c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x5a0c)" (( "(") (binary_expression "puVar1 + 0x5a0c" (identifier "puVar1") (+ "+") (number_literal "0x5a0c")) () ")"))))) (; ";")) (expression_statement "uVar5 = *puVar6;" (assignment_expression "uVar5 = *puVar6" (identifier "uVar5") (= "=") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) (; ";")) (expression_statement "uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98);" (assignment_expression "uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)(PTR_DAT_000f52bc + 0x5c98)" (* "*") (cast_expression "(uint *)(PTR_DAT_000f52bc + 0x5c98)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000f52bc + 0x5c98)" (( "(") (binary_expression "PTR_DAT_000f52bc + 0x5c98" (identifier "PTR_DAT_000f52bc") (+ "+") (number_literal "0x5c98")) () ")"))))) (; ";")) (expression_statement "*(int *)(puVar1 + 0x5a0c) = iVar3 + -1;" (assignment_expression "*(int *)(puVar1 + 0x5a0c) = iVar3 + -1" (pointer_expression "*(int *)(puVar1 + 0x5a0c)" (* "*") (cast_expression "(int *)(puVar1 + 0x5a0c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x5a0c)" (( "(") (binary_expression "puVar1 + 0x5a0c" (identifier "puVar1") (+ "+") (number_literal "0x5a0c")) () ")")))) (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*(undefined4 *)(puVar1 + 0x5a08) = uVar5;" (assignment_expression "*(undefined4 *)(puVar1 + 0x5a08) = uVar5" (pointer_expression "*(undefined4 *)(puVar1 + 0x5a08)" (* "*") (cast_expression "(undefined4 *)(puVar1 + 0x5a08)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x5a08)" (( "(") (binary_expression "puVar1 + 0x5a08" (identifier "puVar1") (+ "+") (number_literal "0x5a08")) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "*(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8));" (assignment_expression "*(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8))" (pointer_expression "*(uint *)(puVar1 + 0x5a10)" (* "*") (cast_expression "(uint *)(puVar1 + 0x5a10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x5a10)" (( "(") (binary_expression "puVar1 + 0x5a10" (identifier "puVar1") (+ "+") (number_literal "0x5a10")) () ")")))) (= "=") (call_expression "(uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar3 + -1 < *(int *)(puVar1 + 0x59f8))" (( "(") (binary_expression "iVar3 + -1 < *(int *)(puVar1 + 0x59f8)" (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1")) (< "<") (pointer_expression "*(int *)(puVar1 + 0x59f8)" (* "*") (cast_expression "(int *)(puVar1 + 0x59f8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x59f8)" (( "(") (binary_expression "puVar1 + 0x59f8" (identifier "puVar1") (+ "+") (number_literal "0x59f8")) () ")"))))) () ")")))) (; ";")) (if_statement "if (uVar4 < param_1) {\n        *(uint *)(puVar2 + 0x5c98) = param_1;\n      }" (if "if") (parenthesized_expression "(uVar4 < param_1)" (( "(") (binary_expression "uVar4 < param_1" (identifier "uVar4") (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n        *(uint *)(puVar2 + 0x5c98) = param_1;\n      }" ({ "{") (expression_statement "*(uint *)(puVar2 + 0x5c98) = param_1;" (assignment_expression "*(uint *)(puVar2 + 0x5c98) = param_1" (pointer_expression "*(uint *)(puVar2 + 0x5c98)" (* "*") (cast_expression "(uint *)(puVar2 + 0x5c98)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x5c98)" (( "(") (binary_expression "puVar2 + 0x5c98" (identifier "puVar2") (+ "+") (number_literal "0x5c98")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (} "}"))) (expression_statement "uVar4 = *(int *)(puVar2 + 0x5c58) + 1;" (assignment_expression "uVar4 = *(int *)(puVar2 + 0x5c58) + 1" (identifier "uVar4") (= "=") (binary_expression "*(int *)(puVar2 + 0x5c58) + 1" (pointer_expression "*(int *)(puVar2 + 0x5c58)" (* "*") (cast_expression "(int *)(puVar2 + 0x5c58)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x5c58)" (( "(") (binary_expression "puVar2 + 0x5c58" (identifier "puVar2") (+ "+") (number_literal "0x5c58")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(uint *)(puVar2 + 0x5c58) = uVar4;" (assignment_expression "*(uint *)(puVar2 + 0x5c58) = uVar4" (pointer_expression "*(uint *)(puVar2 + 0x5c58)" (* "*") (cast_expression "(uint *)(puVar2 + 0x5c58)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x5c58)" (( "(") (binary_expression "puVar2 + 0x5c58" (identifier "puVar2") (+ "+") (number_literal "0x5c58")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (if_statement "if (*(uint *)(puVar2 + 0x5c80) < uVar4) {\n        *(uint *)(puVar2 + 0x5c80) = uVar4;\n      }" (if "if") (parenthesized_expression "(*(uint *)(puVar2 + 0x5c80) < uVar4)" (( "(") (binary_expression "*(uint *)(puVar2 + 0x5c80) < uVar4" (pointer_expression "*(uint *)(puVar2 + 0x5c80)" (* "*") (cast_expression "(uint *)(puVar2 + 0x5c80)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x5c80)" (( "(") (binary_expression "puVar2 + 0x5c80" (identifier "puVar2") (+ "+") (number_literal "0x5c80")) () ")")))) (< "<") (identifier "uVar4")) () ")")) (compound_statement "{\n        *(uint *)(puVar2 + 0x5c80) = uVar4;\n      }" ({ "{") (expression_statement "*(uint *)(puVar2 + 0x5c80) = uVar4;" (assignment_expression "*(uint *)(puVar2 + 0x5c80) = uVar4" (pointer_expression "*(uint *)(puVar2 + 0x5c80)" (* "*") (cast_expression "(uint *)(puVar2 + 0x5c80)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x5c80)" (( "(") (binary_expression "puVar2 + 0x5c80" (identifier "puVar2") (+ "+") (number_literal "0x5c80")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (goto_statement "goto LAB_00036464;" (goto "goto") (statement_identifier "LAB_00036464") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));" (call_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04))" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_mutex_leave_000f5470" (* "*") (cast_expression "(code *)PTR_sqlite3_mutex_leave_000f5470" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_mutex_leave_000f5470"))) () ")")) (argument_list "(*(undefined4 *)(puVar1 + 0x5a04))" (( "(") (pointer_expression "*(undefined4 *)(puVar1 + 0x5a04)" (* "*") (cast_expression "(undefined4 *)(puVar1 + 0x5a04)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x5a04)" (( "(") (binary_expression "puVar1 + 0x5a04" (identifier "puVar1") (+ "+") (number_literal "0x5a04")) () ")")))) () ")"))) (; ";")) (} "}"))) (expression_statement "puVar6 = (undefined4 *)FUN_000344ec((int)param_1 >> 0x1f,param_1);" (assignment_expression "puVar6 = (undefined4 *)FUN_000344ec((int)param_1 >> 0x1f,param_1)" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)FUN_000344ec((int)param_1 >> 0x1f,param_1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000344ec((int)param_1 >> 0x1f,param_1)" (identifier "FUN_000344ec") (argument_list "((int)param_1 >> 0x1f,param_1)" (( "(") (binary_expression "(int)param_1 >> 0x1f" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (>> ">>") (number_literal "0x1f")) (, ",") (identifier "param_1") () ")"))))) (; ";")) (if_statement "if (puVar6 == (undefined4 *)0x0) {\n    return (undefined4 *)0x0;\n  }" (if "if") (parenthesized_expression "(puVar6 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar6 == (undefined4 *)0x0" (identifier "puVar6") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return (undefined4 *)0x0;\n  }" ({ "{") (return_statement "return (undefined4 *)0x0;" (return "return") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "iVar3 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar6);" (assignment_expression "iVar3 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar6)" (identifier "iVar3") (= "=") (call_expression "(**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar6)" (parenthesized_expression "(**(code **)(PTR_DAT_000f52bc + 0x40cc))" (( "(") (pointer_expression "**(code **)(PTR_DAT_000f52bc + 0x40cc)" (* "*") (pointer_expression "*(code **)(PTR_DAT_000f52bc + 0x40cc)" (* "*") (cast_expression "(code **)(PTR_DAT_000f52bc + 0x40cc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_000f52bc + 0x40cc)" (( "(") (binary_expression "PTR_DAT_000f52bc + 0x40cc" (identifier "PTR_DAT_000f52bc") (+ "+") (number_literal "0x40cc")) () ")"))))) () ")")) (argument_list "(puVar6)" (( "(") (identifier "puVar6") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(puVar1 + 0x5a04));" (call_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(puVar1 + 0x5a04))" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_mutex_enter_000f5448" (* "*") (cast_expression "(code *)PTR_sqlite3_mutex_enter_000f5448" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_mutex_enter_000f5448"))) () ")")) (argument_list "(*(undefined4 *)(puVar1 + 0x5a04))" (( "(") (pointer_expression "*(undefined4 *)(puVar1 + 0x5a04)" (* "*") (cast_expression "(undefined4 *)(puVar1 + 0x5a04)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x5a04)" (( "(") (binary_expression "puVar1 + 0x5a04" (identifier "puVar1") (+ "+") (number_literal "0x5a04")) () ")")))) () ")"))) (; ";")) (expression_statement "puVar2 = PTR_DAT_000f52bc;" (assignment_expression "puVar2 = PTR_DAT_000f52bc" (identifier "puVar2") (= "=") (identifier "PTR_DAT_000f52bc")) (; ";")) (if_statement "if (*(uint *)(PTR_DAT_000f52bc + 0x5c98) < param_1) {\n    *(uint *)(PTR_DAT_000f52bc + 0x5c98) = param_1;\n  }" (if "if") (parenthesized_expression "(*(uint *)(PTR_DAT_000f52bc + 0x5c98) < param_1)" (( "(") (binary_expression "*(uint *)(PTR_DAT_000f52bc + 0x5c98) < param_1" (pointer_expression "*(uint *)(PTR_DAT_000f52bc + 0x5c98)" (* "*") (cast_expression "(uint *)(PTR_DAT_000f52bc + 0x5c98)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000f52bc + 0x5c98)" (( "(") (binary_expression "PTR_DAT_000f52bc + 0x5c98" (identifier "PTR_DAT_000f52bc") (+ "+") (number_literal "0x5c98")) () ")")))) (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n    *(uint *)(PTR_DAT_000f52bc + 0x5c98) = param_1;\n  }" ({ "{") (expression_statement "*(uint *)(PTR_DAT_000f52bc + 0x5c98) = param_1;" (assignment_expression "*(uint *)(PTR_DAT_000f52bc + 0x5c98) = param_1" (pointer_expression "*(uint *)(PTR_DAT_000f52bc + 0x5c98)" (* "*") (cast_expression "(uint *)(PTR_DAT_000f52bc + 0x5c98)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000f52bc + 0x5c98)" (( "(") (binary_expression "PTR_DAT_000f52bc + 0x5c98" (identifier "PTR_DAT_000f52bc") (+ "+") (number_literal "0x5c98")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (} "}"))) (expression_statement "uVar4 = iVar3 + *(int *)(puVar2 + 0x5c5c);" (assignment_expression "uVar4 = iVar3 + *(int *)(puVar2 + 0x5c5c)" (identifier "uVar4") (= "=") (binary_expression "iVar3 + *(int *)(puVar2 + 0x5c5c)" (identifier "iVar3") (+ "+") (pointer_expression "*(int *)(puVar2 + 0x5c5c)" (* "*") (cast_expression "(int *)(puVar2 + 0x5c5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x5c5c)" (( "(") (binary_expression "puVar2 + 0x5c5c" (identifier "puVar2") (+ "+") (number_literal "0x5c5c")) () ")")))))) (; ";")) (expression_statement "*(uint *)(puVar2 + 0x5c5c) = uVar4;" (assignment_expression "*(uint *)(puVar2 + 0x5c5c) = uVar4" (pointer_expression "*(uint *)(puVar2 + 0x5c5c)" (* "*") (cast_expression "(uint *)(puVar2 + 0x5c5c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x5c5c)" (( "(") (binary_expression "puVar2 + 0x5c5c" (identifier "puVar2") (+ "+") (number_literal "0x5c5c")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (if_statement "if (*(uint *)(puVar2 + 0x5c84) < uVar4) {\n    *(uint *)(puVar2 + 0x5c84) = uVar4;\n  }" (if "if") (parenthesized_expression "(*(uint *)(puVar2 + 0x5c84) < uVar4)" (( "(") (binary_expression "*(uint *)(puVar2 + 0x5c84) < uVar4" (pointer_expression "*(uint *)(puVar2 + 0x5c84)" (* "*") (cast_expression "(uint *)(puVar2 + 0x5c84)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x5c84)" (( "(") (binary_expression "puVar2 + 0x5c84" (identifier "puVar2") (+ "+") (number_literal "0x5c84")) () ")")))) (< "<") (identifier "uVar4")) () ")")) (compound_statement "{\n    *(uint *)(puVar2 + 0x5c84) = uVar4;\n  }" ({ "{") (expression_statement "*(uint *)(puVar2 + 0x5c84) = uVar4;" (assignment_expression "*(uint *)(puVar2 + 0x5c84) = uVar4" (pointer_expression "*(uint *)(puVar2 + 0x5c84)" (* "*") (cast_expression "(uint *)(puVar2 + 0x5c84)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x5c84)" (( "(") (binary_expression "puVar2 + 0x5c84" (identifier "puVar2") (+ "+") (number_literal "0x5c84")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (labeled_statement "LAB_00036464:\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));" (statement_identifier "LAB_00036464") (: ":") (expression_statement "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));" (call_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04))" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_mutex_leave_000f5470" (* "*") (cast_expression "(code *)PTR_sqlite3_mutex_leave_000f5470" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_mutex_leave_000f5470"))) () ")")) (argument_list "(*(undefined4 *)(puVar1 + 0x5a04))" (( "(") (pointer_expression "*(undefined4 *)(puVar1 + 0x5a04)" (* "*") (cast_expression "(undefined4 *)(puVar1 + 0x5a04)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x5a04)" (( "(") (binary_expression "puVar1 + 0x5a04" (identifier "puVar1") (+ "+") (number_literal "0x5a04")) () ")")))) () ")"))) (; ";"))) (return_statement "return puVar6;" (return "return") (identifier "puVar6") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (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: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (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: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))) (goto_statement label: (statement_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 (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (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 (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 (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: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))) (labeled_statement label: (statement_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 (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))))))))) (return_statement (identifier)))))

undefined4 * MASKED(uint param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  uint uVar4;
  undefined4 uVar5;
  undefined4 *puVar6;
  
  puVar1 = PTR_DAT_000f52bc;
  if ((int)param_1 <= *(int *)(PTR_DAT_000f52bc + 0x59f0)) {
    (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(PTR_DAT_000f52bc + 0x5a04));
    puVar2 = PTR_DAT_000f52bc;
    puVar6 = *(undefined4 **)(puVar1 + 0x5a08);
    if (puVar6 != (undefined4 *)0x0) {
      iVar3 = *(int *)(puVar1 + 0x5a0c);
      uVar5 = *puVar6;
      uVar4 = *(uint *)(PTR_DAT_000f52bc + 0x5c98);
      *(int *)(puVar1 + 0x5a0c) = iVar3 + -1;
      *(undefined4 *)(puVar1 + 0x5a08) = uVar5;
      *(uint *)(puVar1 + 0x5a10) = (uint)(iVar3 + -1 < *(int *)(puVar1 + 0x59f8));
      if (uVar4 < param_1) {
        *(uint *)(puVar2 + 0x5c98) = param_1;
      }
      uVar4 = *(int *)(puVar2 + 0x5c58) + 1;
      *(uint *)(puVar2 + 0x5c58) = uVar4;
      if (*(uint *)(puVar2 + 0x5c80) < uVar4) {
        *(uint *)(puVar2 + 0x5c80) = uVar4;
      }
      goto LAB_00036464;
    }
    (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));
  }
  puVar6 = (undefined4 *)FUN_000344ec((int)param_1 >> 0x1f,param_1);
  if (puVar6 == (undefined4 *)0x0) {
    return (undefined4 *)0x0;
  }
  iVar3 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(puVar6);
  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(puVar1 + 0x5a04));
  puVar2 = PTR_DAT_000f52bc;
  if (*(uint *)(PTR_DAT_000f52bc + 0x5c98) < param_1) {
    *(uint *)(PTR_DAT_000f52bc + 0x5c98) = param_1;
  }
  uVar4 = iVar3 + *(int *)(puVar2 + 0x5c5c);
  *(uint *)(puVar2 + 0x5c5c) = uVar4;
  if (*(uint *)(puVar2 + 0x5c84) < uVar4) {
    *(uint *)(puVar2 + 0x5c84) = uVar4;
  }
LAB_00036464:
  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(puVar1 + 0x5a04));
  return puVar6;
}

