
int jsonGrow(JsonString *p,u32 N)

{
  u8 uVar1;
  undefined *puVar2;
  uint uVar3;
  int iVar4;
  char *pcVar5;
  uint uVar6;
  uint uVar7;
  
  uVar6 = (uint)p->nAlloc;
  if ((*(int *)&p->nAlloc == 0) && (uVar6 <= N)) {
    uVar3 = uVar6 + 10;
    uVar7 = uVar3 + N;
    uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6);
    uVar1 = p->bStatic;
  }
  else {
    uVar3 = uVar6 >> 0x1f | *(int *)&p->nAlloc << 1;
    uVar1 = p->bStatic;
    uVar7 = uVar6 << 1;
  }
  if (uVar1 == '\0') {
    pcVar5 = (char *)(*(code *)PTR_sqlite3_realloc64_0015c768)(p->zBuf,N,uVar3,uVar7);
    if (pcVar5 == (char *)0x0) {
LAB_0008c524:
      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;
      p->bErr = '\x01';
      (*(code *)puVar2)(p->pCtx);
      if (p->bStatic == '\0') {
        (*(code *)PTR_sqlite3_free_0015c5ec)(p->zBuf);
      }
      *(undefined4 *)((int)&p->nAlloc + 4) = 100;
      *(undefined4 *)&p->nAlloc = 0;
      p->zBuf = p->zSpace;
      *(undefined4 *)((int)&p->nUsed + 4) = 0;
      *(undefined4 *)&p->nUsed = 0;
      p->bStatic = '\x01';
      return 7;
    }
    p->zBuf = pcVar5;
  }
  else {
    if (p->bErr != '\0') {
      return 1;
    }
    iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);
    if (iVar4 == 0) goto LAB_0008c524;
    pcVar5 = (char *)(*(code *)PTR_memcpy_0015ca34)(iVar4,p->zBuf,(int)p->nUsed);
    p->zBuf = pcVar5;
    p->bStatic = '\0';
  }
  *(uint *)&p->nAlloc = uVar3;
  *(uint *)((int)&p->nAlloc + 4) = uVar7;
  return 0;
}



undefined4 FUN_0008c40c(undefined4 *param_1,uint param_2)

{
  char cVar1;
  undefined *puVar2;
  uint uVar3;
  int iVar4;
  undefined4 uVar5;
  uint uVar6;
  uint uVar7;
  
  uVar6 = param_1[3];
  if ((param_1[2] == 0) && (uVar6 <= param_2)) {
    uVar3 = uVar6 + 10;
    uVar7 = uVar3 + param_2;
    uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6);
    cVar1 = *(char *)(param_1 + 6);
  }
  else {
    uVar3 = uVar6 >> 0x1f | param_1[2] << 1;
    cVar1 = *(char *)(param_1 + 6);
    uVar7 = uVar6 << 1;
  }
  if (cVar1 == '\0') {
    iVar4 = (*(code *)PTR_sqlite3_realloc64_0015c768)(param_1[1],param_2,uVar3,uVar7);
    if (iVar4 == 0) {
LAB_0008c524:
      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;
      *(undefined1 *)((int)param_1 + 0x19) = 1;
      (*(code *)puVar2)(*param_1);
      if (*(char *)(param_1 + 6) == '\0') {
        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);
      }
      param_1[3] = 100;
      param_1[2] = 0;
      param_1[1] = (int)param_1 + 0x1a;
      param_1[5] = 0;
      param_1[4] = 0;
      *(undefined1 *)(param_1 + 6) = 1;
      return 7;
    }
    param_1[1] = iVar4;
  }
  else {
    if (*(char *)((int)param_1 + 0x19) != '\0') {
      return 1;
    }
    iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);
    if (iVar4 == 0) goto LAB_0008c524;
    uVar5 = (*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5]);
    param_1[1] = uVar5;
    *(undefined1 *)(param_1 + 6) = 0;
  }
  param_1[2] = uVar3;
  param_1[3] = uVar7;
  return 0;
}


lui gp,0xe
addiu gp,gp,-0x7e5c
addu gp,gp,t9
addiu sp,sp,-0x28
sw s1,0x1c(sp)
or s1,a0,zero
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s0,0x18(sp)
lw s0,0x8(a0)
bne s0,zero,0x0008c4d0
_lw v1,0xc(a0)
sltu v0,a1,v1
bne v0,zero,0x0008c4d4
_srl v0,v1,0x1f
addiu v0,v1,0xa
addu s2,v0,a1
sltu s0,v0,v1
sltu v0,s2,v0
addu s0,v0,s0
lbu v0,0x18(s1)
beq v0,zero,0x0008c4ec
_lw t9,-0x7e48(gp)
lbu v0,0x19(s1)
bne v0,zero,0x0008c50c
_lw ra,0x24(sp)
lw t9,-0x7e4c(gp)
or a0,s0,zero
jalr t9
_or a1,s2,zero
beq v0,zero,0x0008c524
_lw gp,0x10(sp)
lw t9,-0x7b7c(gp)
or a0,v0,zero
lw a2,0x14(s1)
jalr t9
_lw a1,0x4(s1)
sw v0,0x4(s1)
sb zero,0x18(s1)
or v0,zero,zero
sw s0,0x8(s1)
sw s2,0xc(s1)
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
srl v0,v1,0x1f
sll s0,s0,0x1
or s0,v0,s0
lbu v0,0x18(s1)
bne v0,zero,0x0008c46c
_sll s2,v1,0x1
lw t9,-0x7e48(gp)
or a2,s0,zero
lw a0,0x4(s1)
jalr t9
_or a3,s2,zero
beq v0,zero,0x0008c524
_lw gp,0x10(sp)
b 0x0008c4ac
_sw v0,0x4(s1)
li v0,0x1
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7e28(gp)
li v0,0x1
lw a0,0x0(s1)
jalr t9
_sb v0,0x19(s1)
lbu v0,0x18(s1)
beq v0,zero,0x0008c57c
_lw gp,0x10(sp)
li a1,0x64
or a0,zero,zero
addiu v0,s1,0x1a
sw a1,0xc(s1)
sw a0,0x8(s1)
or a1,zero,zero
or a0,zero,zero
sw v0,0x4(s1)
li v1,0x1
sw a1,0x14(s1)
li v0,0x7
sw a0,0x10(s1)
b 0x0008c4b8
_sb v1,0x18(s1)
lw t9,-0x7fc4(gp)
jalr t9
_lw a0,0x4(s1)
b 0x0008c548
_li a1,0x64
(translation_unit "undefined4 FUN_0008c40c(undefined4 *param_1,uint param_2)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  uint uVar6;\n  uint uVar7;\n  \n  uVar6 = param_1[3];\n  if ((param_1[2] == 0) && (uVar6 <= param_2)) {\n    uVar3 = uVar6 + 10;\n    uVar7 = uVar3 + param_2;\n    uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6);\n    cVar1 = *(char *)(param_1 + 6);\n  }\n  else {\n    uVar3 = uVar6 >> 0x1f | param_1[2] << 1;\n    cVar1 = *(char *)(param_1 + 6);\n    uVar7 = uVar6 << 1;\n  }\n  if (cVar1 == '\0') {\n    iVar4 = (*(code *)PTR_sqlite3_realloc64_0015c768)(param_1[1],param_2,uVar3,uVar7);\n    if (iVar4 == 0) {\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      *(undefined1 *)((int)param_1 + 0x19) = 1;\n      (*(code *)puVar2)(*param_1);\n      if (*(char *)(param_1 + 6) == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);\n      }\n      param_1[3] = 100;\n      param_1[2] = 0;\n      param_1[1] = (int)param_1 + 0x1a;\n      param_1[5] = 0;\n      param_1[4] = 0;\n      *(undefined1 *)(param_1 + 6) = 1;\n      return 7;\n    }\n    param_1[1] = iVar4;\n  }\n  else {\n    if (*(char *)((int)param_1 + 0x19) != '\0') {\n      return 1;\n    }\n    iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);\n    if (iVar4 == 0) goto LAB_0008c524;\n    uVar5 = (*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5]);\n    param_1[1] = uVar5;\n    *(undefined1 *)(param_1 + 6) = 0;\n  }\n  param_1[2] = uVar3;\n  param_1[3] = uVar7;\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0008c40c(undefined4 *param_1,uint param_2)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  uint uVar6;\n  uint uVar7;\n  \n  uVar6 = param_1[3];\n  if ((param_1[2] == 0) && (uVar6 <= param_2)) {\n    uVar3 = uVar6 + 10;\n    uVar7 = uVar3 + param_2;\n    uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6);\n    cVar1 = *(char *)(param_1 + 6);\n  }\n  else {\n    uVar3 = uVar6 >> 0x1f | param_1[2] << 1;\n    cVar1 = *(char *)(param_1 + 6);\n    uVar7 = uVar6 << 1;\n  }\n  if (cVar1 == '\0') {\n    iVar4 = (*(code *)PTR_sqlite3_realloc64_0015c768)(param_1[1],param_2,uVar3,uVar7);\n    if (iVar4 == 0) {\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      *(undefined1 *)((int)param_1 + 0x19) = 1;\n      (*(code *)puVar2)(*param_1);\n      if (*(char *)(param_1 + 6) == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);\n      }\n      param_1[3] = 100;\n      param_1[2] = 0;\n      param_1[1] = (int)param_1 + 0x1a;\n      param_1[5] = 0;\n      param_1[4] = 0;\n      *(undefined1 *)(param_1 + 6) = 1;\n      return 7;\n    }\n    param_1[1] = iVar4;\n  }\n  else {\n    if (*(char *)((int)param_1 + 0x19) != '\0') {\n      return 1;\n    }\n    iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);\n    if (iVar4 == 0) goto LAB_0008c524;\n    uVar5 = (*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5]);\n    param_1[1] = uVar5;\n    *(undefined1 *)(param_1 + 6) = 0;\n  }\n  param_1[2] = uVar3;\n  param_1[3] = uVar7;\n  return 0;\n}" type_identifier (function_declarator "FUN_0008c40c(undefined4 *param_1,uint param_2)" identifier (parameter_list "(undefined4 *param_1,uint param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  uint uVar6;\n  uint uVar7;\n  \n  uVar6 = param_1[3];\n  if ((param_1[2] == 0) && (uVar6 <= param_2)) {\n    uVar3 = uVar6 + 10;\n    uVar7 = uVar3 + param_2;\n    uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6);\n    cVar1 = *(char *)(param_1 + 6);\n  }\n  else {\n    uVar3 = uVar6 >> 0x1f | param_1[2] << 1;\n    cVar1 = *(char *)(param_1 + 6);\n    uVar7 = uVar6 << 1;\n  }\n  if (cVar1 == '\0') {\n    iVar4 = (*(code *)PTR_sqlite3_realloc64_0015c768)(param_1[1],param_2,uVar3,uVar7);\n    if (iVar4 == 0) {\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      *(undefined1 *)((int)param_1 + 0x19) = 1;\n      (*(code *)puVar2)(*param_1);\n      if (*(char *)(param_1 + 6) == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);\n      }\n      param_1[3] = 100;\n      param_1[2] = 0;\n      param_1[1] = (int)param_1 + 0x1a;\n      param_1[5] = 0;\n      param_1[4] = 0;\n      *(undefined1 *)(param_1 + 6) = 1;\n      return 7;\n    }\n    param_1[1] = iVar4;\n  }\n  else {\n    if (*(char *)((int)param_1 + 0x19) != '\0') {\n      return 1;\n    }\n    iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);\n    if (iVar4 == 0) goto LAB_0008c524;\n    uVar5 = (*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5]);\n    param_1[1] = uVar5;\n    *(undefined1 *)(param_1 + 6) = 0;\n  }\n  param_1[2] = uVar3;\n  param_1[3] = uVar7;\n  return 0;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (expression_statement "uVar6 = param_1[3];" (assignment_expression "uVar6 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (if_statement "if ((param_1[2] == 0) && (uVar6 <= param_2)) {\n    uVar3 = uVar6 + 10;\n    uVar7 = uVar3 + param_2;\n    uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6);\n    cVar1 = *(char *)(param_1 + 6);\n  }\n  else {\n    uVar3 = uVar6 >> 0x1f | param_1[2] << 1;\n    cVar1 = *(char *)(param_1 + 6);\n    uVar7 = uVar6 << 1;\n  }" if (parenthesized_expression "((param_1[2] == 0) && (uVar6 <= param_2))" ( (binary_expression "(param_1[2] == 0) && (uVar6 <= param_2)" (parenthesized_expression "(param_1[2] == 0)" ( (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) == number_literal) )) && (parenthesized_expression "(uVar6 <= param_2)" ( (binary_expression "uVar6 <= param_2" identifier <= identifier) ))) )) (compound_statement "{\n    uVar3 = uVar6 + 10;\n    uVar7 = uVar3 + param_2;\n    uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6);\n    cVar1 = *(char *)(param_1 + 6);\n  }" { (expression_statement "uVar3 = uVar6 + 10;" (assignment_expression "uVar3 = uVar6 + 10" identifier = (binary_expression "uVar6 + 10" identifier + number_literal)) ;) (expression_statement "uVar7 = uVar3 + param_2;" (assignment_expression "uVar7 = uVar3 + param_2" identifier = (binary_expression "uVar3 + param_2" identifier + identifier)) ;) (expression_statement "uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6);" (assignment_expression "uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6)" identifier = (binary_expression "(uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6)" (call_expression "(uint)(uVar7 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar7 < uVar3)" ( (binary_expression "uVar7 < uVar3" identifier < identifier) ))) + (call_expression "(uint)(uVar3 < uVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 < uVar6)" ( (binary_expression "uVar3 < uVar6" identifier < identifier) ))))) ;) (expression_statement "cVar1 = *(char *)(param_1 + 6);" (assignment_expression "cVar1 = *(char *)(param_1 + 6)" identifier = (pointer_expression "*(char *)(param_1 + 6)" * (cast_expression "(char *)(param_1 + 6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    uVar3 = uVar6 >> 0x1f | param_1[2] << 1;\n    cVar1 = *(char *)(param_1 + 6);\n    uVar7 = uVar6 << 1;\n  }" else (compound_statement "{\n    uVar3 = uVar6 >> 0x1f | param_1[2] << 1;\n    cVar1 = *(char *)(param_1 + 6);\n    uVar7 = uVar6 << 1;\n  }" { (expression_statement "uVar3 = uVar6 >> 0x1f | param_1[2] << 1;" (assignment_expression "uVar3 = uVar6 >> 0x1f | param_1[2] << 1" identifier = (binary_expression "uVar6 >> 0x1f | param_1[2] << 1" (binary_expression "uVar6 >> 0x1f" identifier >> number_literal) | (binary_expression "param_1[2] << 1" (subscript_expression "param_1[2]" identifier [ number_literal ]) << number_literal))) ;) (expression_statement "cVar1 = *(char *)(param_1 + 6);" (assignment_expression "cVar1 = *(char *)(param_1 + 6)" identifier = (pointer_expression "*(char *)(param_1 + 6)" * (cast_expression "(char *)(param_1 + 6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = uVar6 << 1;" (assignment_expression "uVar7 = uVar6 << 1" identifier = (binary_expression "uVar6 << 1" identifier << number_literal)) ;) }))) (if_statement "if (cVar1 == '\0') {\n    iVar4 = (*(code *)PTR_sqlite3_realloc64_0015c768)(param_1[1],param_2,uVar3,uVar7);\n    if (iVar4 == 0) {\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      *(undefined1 *)((int)param_1 + 0x19) = 1;\n      (*(code *)puVar2)(*param_1);\n      if (*(char *)(param_1 + 6) == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);\n      }\n      param_1[3] = 100;\n      param_1[2] = 0;\n      param_1[1] = (int)param_1 + 0x1a;\n      param_1[5] = 0;\n      param_1[4] = 0;\n      *(undefined1 *)(param_1 + 6) = 1;\n      return 7;\n    }\n    param_1[1] = iVar4;\n  }\n  else {\n    if (*(char *)((int)param_1 + 0x19) != '\0') {\n      return 1;\n    }\n    iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);\n    if (iVar4 == 0) goto LAB_0008c524;\n    uVar5 = (*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5]);\n    param_1[1] = uVar5;\n    *(undefined1 *)(param_1 + 6) = 0;\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar4 = (*(code *)PTR_sqlite3_realloc64_0015c768)(param_1[1],param_2,uVar3,uVar7);\n    if (iVar4 == 0) {\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      *(undefined1 *)((int)param_1 + 0x19) = 1;\n      (*(code *)puVar2)(*param_1);\n      if (*(char *)(param_1 + 6) == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);\n      }\n      param_1[3] = 100;\n      param_1[2] = 0;\n      param_1[1] = (int)param_1 + 0x1a;\n      param_1[5] = 0;\n      param_1[4] = 0;\n      *(undefined1 *)(param_1 + 6) = 1;\n      return 7;\n    }\n    param_1[1] = iVar4;\n  }" { (expression_statement "iVar4 = (*(code *)PTR_sqlite3_realloc64_0015c768)(param_1[1],param_2,uVar3,uVar7);" (assignment_expression "iVar4 = (*(code *)PTR_sqlite3_realloc64_0015c768)(param_1[1],param_2,uVar3,uVar7)" identifier = (call_expression "(*(code *)PTR_sqlite3_realloc64_0015c768)(param_1[1],param_2,uVar3,uVar7)" (parenthesized_expression "(*(code *)PTR_sqlite3_realloc64_0015c768)" ( (pointer_expression "*(code *)PTR_sqlite3_realloc64_0015c768" * (cast_expression "(code *)PTR_sqlite3_realloc64_0015c768" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[1],param_2,uVar3,uVar7)" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) , identifier , identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) {\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      *(undefined1 *)((int)param_1 + 0x19) = 1;\n      (*(code *)puVar2)(*param_1);\n      if (*(char *)(param_1 + 6) == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);\n      }\n      param_1[3] = 100;\n      param_1[2] = 0;\n      param_1[1] = (int)param_1 + 0x1a;\n      param_1[5] = 0;\n      param_1[4] = 0;\n      *(undefined1 *)(param_1 + 6) = 1;\n      return 7;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      *(undefined1 *)((int)param_1 + 0x19) = 1;\n      (*(code *)puVar2)(*param_1);\n      if (*(char *)(param_1 + 6) == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);\n      }\n      param_1[3] = 100;\n      param_1[2] = 0;\n      param_1[1] = (int)param_1 + 0x1a;\n      param_1[5] = 0;\n      param_1[4] = 0;\n      *(undefined1 *)(param_1 + 6) = 1;\n      return 7;\n    }" { (labeled_statement "LAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;" statement_identifier : (expression_statement "puVar2 = PTR_sqlite3_result_error_nomem_0015c788;" (assignment_expression "puVar2 = PTR_sqlite3_result_error_nomem_0015c788" identifier = identifier) ;)) (expression_statement "*(undefined1 *)((int)param_1 + 0x19) = 1;" (assignment_expression "*(undefined1 *)((int)param_1 + 0x19) = 1" (pointer_expression "*(undefined1 *)((int)param_1 + 0x19)" * (cast_expression "(undefined1 *)((int)param_1 + 0x19)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x19)" ( (binary_expression "(int)param_1 + 0x19" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "(*(code *)puVar2)(*param_1);" (call_expression "(*(code *)puVar2)(*param_1)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (if_statement "if (*(char *)(param_1 + 6) == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);\n      }" if (parenthesized_expression "(*(char *)(param_1 + 6) == '\0')" ( (binary_expression "*(char *)(param_1 + 6) == '\0'" (pointer_expression "*(char *)(param_1 + 6)" * (cast_expression "(char *)(param_1 + 6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);\n      }" { (expression_statement "(*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);" (call_expression "(*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1])" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0015c5ec)" ( (pointer_expression "*(code *)PTR_sqlite3_free_0015c5ec" * (cast_expression "(code *)PTR_sqlite3_free_0015c5ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[1])" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) ))) ;) })) (expression_statement "param_1[3] = 100;" (assignment_expression "param_1[3] = 100" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = (int)param_1 + 0x1a;" (assignment_expression "param_1[1] = (int)param_1 + 0x1a" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "(int)param_1 + 0x1a" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)(param_1 + 6) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 6) = 1" (pointer_expression "*(undefined1 *)(param_1 + 6)" * (cast_expression "(undefined1 *)(param_1 + 6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 7;" return number_literal ;) })) (expression_statement "param_1[1] = iVar4;" (assignment_expression "param_1[1] = iVar4" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    if (*(char *)((int)param_1 + 0x19) != '\0') {\n      return 1;\n    }\n    iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);\n    if (iVar4 == 0) goto LAB_0008c524;\n    uVar5 = (*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5]);\n    param_1[1] = uVar5;\n    *(undefined1 *)(param_1 + 6) = 0;\n  }" else (compound_statement "{\n    if (*(char *)((int)param_1 + 0x19) != '\0') {\n      return 1;\n    }\n    iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);\n    if (iVar4 == 0) goto LAB_0008c524;\n    uVar5 = (*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5]);\n    param_1[1] = uVar5;\n    *(undefined1 *)(param_1 + 6) = 0;\n  }" { (if_statement "if (*(char *)((int)param_1 + 0x19) != '\0') {\n      return 1;\n    }" if (parenthesized_expression "(*(char *)((int)param_1 + 0x19) != '\0')" ( (binary_expression "*(char *)((int)param_1 + 0x19) != '\0'" (pointer_expression "*(char *)((int)param_1 + 0x19)" * (cast_expression "(char *)((int)param_1 + 0x19)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x19)" ( (binary_expression "(int)param_1 + 0x19" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);" (assignment_expression "iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7)" identifier = (call_expression "(*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7)" (parenthesized_expression "(*(code *)PTR_sqlite3_malloc64_0015c764)" ( (pointer_expression "*(code *)PTR_sqlite3_malloc64_0015c764" * (cast_expression "(code *)PTR_sqlite3_malloc64_0015c764" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,uVar7)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) goto LAB_0008c524;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0008c524;" goto statement_identifier ;)) (expression_statement "uVar5 = (*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5]);" (assignment_expression "uVar5 = (*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5])" identifier = (call_expression "(*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5])" (parenthesized_expression "(*(code *)PTR_memcpy_0015ca34)" ( (pointer_expression "*(code *)PTR_memcpy_0015ca34" * (cast_expression "(code *)PTR_memcpy_0015ca34" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,param_1[1],param_1[5])" ( identifier , (subscript_expression "param_1[1]" identifier [ number_literal ]) , (subscript_expression "param_1[5]" identifier [ number_literal ]) )))) ;) (expression_statement "param_1[1] = uVar5;" (assignment_expression "param_1[1] = uVar5" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 6) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 6) = 0" (pointer_expression "*(undefined1 *)(param_1 + 6)" * (cast_expression "(undefined1 *)(param_1 + 6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) )))) = number_literal) ;) }))) (expression_statement "param_1[2] = uVar3;" (assignment_expression "param_1[2] = uVar3" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = uVar7;" (assignment_expression "param_1[3] = uVar7" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int jsonGrow(JsonString *p,u32 N)\n\n{\n  u8 uVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  char *pcVar5;\n  uint uVar6;\n  uint uVar7;\n  \n  uVar6 = (uint)p->nAlloc;\n  if ((*(int *)&p->nAlloc == 0) && (uVar6 <= N)) {\n    uVar3 = uVar6 + 10;\n    uVar7 = uVar3 + N;\n    uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6);\n    uVar1 = p->bStatic;\n  }\n  else {\n    uVar3 = uVar6 >> 0x1f | *(int *)&p->nAlloc << 1;\n    uVar1 = p->bStatic;\n    uVar7 = uVar6 << 1;\n  }\n  if (uVar1 == '\0') {\n    pcVar5 = (char *)(*(code *)PTR_sqlite3_realloc64_0015c768)(p->zBuf,N,uVar3,uVar7);\n    if (pcVar5 == (char *)0x0) {\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      p->bErr = '\x01';\n      (*(code *)puVar2)(p->pCtx);\n      if (p->bStatic == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(p->zBuf);\n      }\n      *(undefined4 *)((int)&p->nAlloc + 4) = 100;\n      *(undefined4 *)&p->nAlloc = 0;\n      p->zBuf = p->zSpace;\n      *(undefined4 *)((int)&p->nUsed + 4) = 0;\n      *(undefined4 *)&p->nUsed = 0;\n      p->bStatic = '\x01';\n      return 7;\n    }\n    p->zBuf = pcVar5;\n  }\n  else {\n    if (p->bErr != '\0') {\n      return 1;\n    }\n    iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);\n    if (iVar4 == 0) goto LAB_0008c524;\n    pcVar5 = (char *)(*(code *)PTR_memcpy_0015ca34)(iVar4,p->zBuf,(int)p->nUsed);\n    p->zBuf = pcVar5;\n    p->bStatic = '\0';\n  }\n  *(uint *)&p->nAlloc = uVar3;\n  *(uint *)((int)&p->nAlloc + 4) = uVar7;\n  return 0;\n}\n\n" (function_definition "int jsonGrow(JsonString *p,u32 N)\n\n{\n  u8 uVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  char *pcVar5;\n  uint uVar6;\n  uint uVar7;\n  \n  uVar6 = (uint)p->nAlloc;\n  if ((*(int *)&p->nAlloc == 0) && (uVar6 <= N)) {\n    uVar3 = uVar6 + 10;\n    uVar7 = uVar3 + N;\n    uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6);\n    uVar1 = p->bStatic;\n  }\n  else {\n    uVar3 = uVar6 >> 0x1f | *(int *)&p->nAlloc << 1;\n    uVar1 = p->bStatic;\n    uVar7 = uVar6 << 1;\n  }\n  if (uVar1 == '\0') {\n    pcVar5 = (char *)(*(code *)PTR_sqlite3_realloc64_0015c768)(p->zBuf,N,uVar3,uVar7);\n    if (pcVar5 == (char *)0x0) {\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      p->bErr = '\x01';\n      (*(code *)puVar2)(p->pCtx);\n      if (p->bStatic == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(p->zBuf);\n      }\n      *(undefined4 *)((int)&p->nAlloc + 4) = 100;\n      *(undefined4 *)&p->nAlloc = 0;\n      p->zBuf = p->zSpace;\n      *(undefined4 *)((int)&p->nUsed + 4) = 0;\n      *(undefined4 *)&p->nUsed = 0;\n      p->bStatic = '\x01';\n      return 7;\n    }\n    p->zBuf = pcVar5;\n  }\n  else {\n    if (p->bErr != '\0') {\n      return 1;\n    }\n    iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);\n    if (iVar4 == 0) goto LAB_0008c524;\n    pcVar5 = (char *)(*(code *)PTR_memcpy_0015ca34)(iVar4,p->zBuf,(int)p->nUsed);\n    p->zBuf = pcVar5;\n    p->bStatic = '\0';\n  }\n  *(uint *)&p->nAlloc = uVar3;\n  *(uint *)((int)&p->nAlloc + 4) = uVar7;\n  return 0;\n}" primitive_type (function_declarator "jsonGrow(JsonString *p,u32 N)" identifier (parameter_list "(JsonString *p,u32 N)" ( (parameter_declaration "JsonString *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "u32 N" type_identifier identifier) ))) (compound_statement "{\n  u8 uVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  char *pcVar5;\n  uint uVar6;\n  uint uVar7;\n  \n  uVar6 = (uint)p->nAlloc;\n  if ((*(int *)&p->nAlloc == 0) && (uVar6 <= N)) {\n    uVar3 = uVar6 + 10;\n    uVar7 = uVar3 + N;\n    uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6);\n    uVar1 = p->bStatic;\n  }\n  else {\n    uVar3 = uVar6 >> 0x1f | *(int *)&p->nAlloc << 1;\n    uVar1 = p->bStatic;\n    uVar7 = uVar6 << 1;\n  }\n  if (uVar1 == '\0') {\n    pcVar5 = (char *)(*(code *)PTR_sqlite3_realloc64_0015c768)(p->zBuf,N,uVar3,uVar7);\n    if (pcVar5 == (char *)0x0) {\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      p->bErr = '\x01';\n      (*(code *)puVar2)(p->pCtx);\n      if (p->bStatic == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(p->zBuf);\n      }\n      *(undefined4 *)((int)&p->nAlloc + 4) = 100;\n      *(undefined4 *)&p->nAlloc = 0;\n      p->zBuf = p->zSpace;\n      *(undefined4 *)((int)&p->nUsed + 4) = 0;\n      *(undefined4 *)&p->nUsed = 0;\n      p->bStatic = '\x01';\n      return 7;\n    }\n    p->zBuf = pcVar5;\n  }\n  else {\n    if (p->bErr != '\0') {\n      return 1;\n    }\n    iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);\n    if (iVar4 == 0) goto LAB_0008c524;\n    pcVar5 = (char *)(*(code *)PTR_memcpy_0015ca34)(iVar4,p->zBuf,(int)p->nUsed);\n    p->zBuf = pcVar5;\n    p->bStatic = '\0';\n  }\n  *(uint *)&p->nAlloc = uVar3;\n  *(uint *)((int)&p->nAlloc + 4) = uVar7;\n  return 0;\n}" { (declaration "u8 uVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (expression_statement "uVar6 = (uint)p->nAlloc;" (assignment_expression "uVar6 = (uint)p->nAlloc" identifier = (cast_expression "(uint)p->nAlloc" ( (type_descriptor "uint" type_identifier) ) (field_expression "p->nAlloc" identifier -> field_identifier))) ;) (if_statement "if ((*(int *)&p->nAlloc == 0) && (uVar6 <= N)) {\n    uVar3 = uVar6 + 10;\n    uVar7 = uVar3 + N;\n    uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6);\n    uVar1 = p->bStatic;\n  }\n  else {\n    uVar3 = uVar6 >> 0x1f | *(int *)&p->nAlloc << 1;\n    uVar1 = p->bStatic;\n    uVar7 = uVar6 << 1;\n  }" if (parenthesized_expression "((*(int *)&p->nAlloc == 0) && (uVar6 <= N))" ( (binary_expression "(*(int *)&p->nAlloc == 0) && (uVar6 <= N)" (parenthesized_expression "(*(int *)&p->nAlloc == 0)" ( (binary_expression "*(int *)&p->nAlloc == 0" (pointer_expression "*(int *)&p->nAlloc" * (cast_expression "(int *)&p->nAlloc" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p->nAlloc" & (field_expression "p->nAlloc" identifier -> field_identifier)))) == number_literal) )) && (parenthesized_expression "(uVar6 <= N)" ( (binary_expression "uVar6 <= N" identifier <= identifier) ))) )) (compound_statement "{\n    uVar3 = uVar6 + 10;\n    uVar7 = uVar3 + N;\n    uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6);\n    uVar1 = p->bStatic;\n  }" { (expression_statement "uVar3 = uVar6 + 10;" (assignment_expression "uVar3 = uVar6 + 10" identifier = (binary_expression "uVar6 + 10" identifier + number_literal)) ;) (expression_statement "uVar7 = uVar3 + N;" (assignment_expression "uVar7 = uVar3 + N" identifier = (binary_expression "uVar3 + N" identifier + identifier)) ;) (expression_statement "uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6);" (assignment_expression "uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6)" identifier = (binary_expression "(uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6)" (call_expression "(uint)(uVar7 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar7 < uVar3)" ( (binary_expression "uVar7 < uVar3" identifier < identifier) ))) + (call_expression "(uint)(uVar3 < uVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 < uVar6)" ( (binary_expression "uVar3 < uVar6" identifier < identifier) ))))) ;) (expression_statement "uVar1 = p->bStatic;" (assignment_expression "uVar1 = p->bStatic" identifier = (field_expression "p->bStatic" identifier -> field_identifier)) ;) }) (else_clause "else {\n    uVar3 = uVar6 >> 0x1f | *(int *)&p->nAlloc << 1;\n    uVar1 = p->bStatic;\n    uVar7 = uVar6 << 1;\n  }" else (compound_statement "{\n    uVar3 = uVar6 >> 0x1f | *(int *)&p->nAlloc << 1;\n    uVar1 = p->bStatic;\n    uVar7 = uVar6 << 1;\n  }" { (expression_statement "uVar3 = uVar6 >> 0x1f | *(int *)&p->nAlloc << 1;" (assignment_expression "uVar3 = uVar6 >> 0x1f | *(int *)&p->nAlloc << 1" identifier = (binary_expression "uVar6 >> 0x1f | *(int *)&p->nAlloc << 1" (binary_expression "uVar6 >> 0x1f" identifier >> number_literal) | (binary_expression "*(int *)&p->nAlloc << 1" (pointer_expression "*(int *)&p->nAlloc" * (cast_expression "(int *)&p->nAlloc" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p->nAlloc" & (field_expression "p->nAlloc" identifier -> field_identifier)))) << number_literal))) ;) (expression_statement "uVar1 = p->bStatic;" (assignment_expression "uVar1 = p->bStatic" identifier = (field_expression "p->bStatic" identifier -> field_identifier)) ;) (expression_statement "uVar7 = uVar6 << 1;" (assignment_expression "uVar7 = uVar6 << 1" identifier = (binary_expression "uVar6 << 1" identifier << number_literal)) ;) }))) (if_statement "if (uVar1 == '\0') {\n    pcVar5 = (char *)(*(code *)PTR_sqlite3_realloc64_0015c768)(p->zBuf,N,uVar3,uVar7);\n    if (pcVar5 == (char *)0x0) {\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      p->bErr = '\x01';\n      (*(code *)puVar2)(p->pCtx);\n      if (p->bStatic == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(p->zBuf);\n      }\n      *(undefined4 *)((int)&p->nAlloc + 4) = 100;\n      *(undefined4 *)&p->nAlloc = 0;\n      p->zBuf = p->zSpace;\n      *(undefined4 *)((int)&p->nUsed + 4) = 0;\n      *(undefined4 *)&p->nUsed = 0;\n      p->bStatic = '\x01';\n      return 7;\n    }\n    p->zBuf = pcVar5;\n  }\n  else {\n    if (p->bErr != '\0') {\n      return 1;\n    }\n    iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);\n    if (iVar4 == 0) goto LAB_0008c524;\n    pcVar5 = (char *)(*(code *)PTR_memcpy_0015ca34)(iVar4,p->zBuf,(int)p->nUsed);\n    p->zBuf = pcVar5;\n    p->bStatic = '\0';\n  }" if (parenthesized_expression "(uVar1 == '\0')" ( (binary_expression "uVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pcVar5 = (char *)(*(code *)PTR_sqlite3_realloc64_0015c768)(p->zBuf,N,uVar3,uVar7);\n    if (pcVar5 == (char *)0x0) {\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      p->bErr = '\x01';\n      (*(code *)puVar2)(p->pCtx);\n      if (p->bStatic == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(p->zBuf);\n      }\n      *(undefined4 *)((int)&p->nAlloc + 4) = 100;\n      *(undefined4 *)&p->nAlloc = 0;\n      p->zBuf = p->zSpace;\n      *(undefined4 *)((int)&p->nUsed + 4) = 0;\n      *(undefined4 *)&p->nUsed = 0;\n      p->bStatic = '\x01';\n      return 7;\n    }\n    p->zBuf = pcVar5;\n  }" { (expression_statement "pcVar5 = (char *)(*(code *)PTR_sqlite3_realloc64_0015c768)(p->zBuf,N,uVar3,uVar7);" (assignment_expression "pcVar5 = (char *)(*(code *)PTR_sqlite3_realloc64_0015c768)(p->zBuf,N,uVar3,uVar7)" identifier = (cast_expression "(char *)(*(code *)PTR_sqlite3_realloc64_0015c768)(p->zBuf,N,uVar3,uVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_sqlite3_realloc64_0015c768)(p->zBuf,N,uVar3,uVar7)" (parenthesized_expression "(*(code *)PTR_sqlite3_realloc64_0015c768)" ( (pointer_expression "*(code *)PTR_sqlite3_realloc64_0015c768" * (cast_expression "(code *)PTR_sqlite3_realloc64_0015c768" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(p->zBuf,N,uVar3,uVar7)" ( (field_expression "p->zBuf" identifier -> field_identifier) , identifier , identifier , identifier ))))) ;) (if_statement "if (pcVar5 == (char *)0x0) {\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      p->bErr = '\x01';\n      (*(code *)puVar2)(p->pCtx);\n      if (p->bStatic == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(p->zBuf);\n      }\n      *(undefined4 *)((int)&p->nAlloc + 4) = 100;\n      *(undefined4 *)&p->nAlloc = 0;\n      p->zBuf = p->zSpace;\n      *(undefined4 *)((int)&p->nUsed + 4) = 0;\n      *(undefined4 *)&p->nUsed = 0;\n      p->bStatic = '\x01';\n      return 7;\n    }" if (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      p->bErr = '\x01';\n      (*(code *)puVar2)(p->pCtx);\n      if (p->bStatic == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(p->zBuf);\n      }\n      *(undefined4 *)((int)&p->nAlloc + 4) = 100;\n      *(undefined4 *)&p->nAlloc = 0;\n      p->zBuf = p->zSpace;\n      *(undefined4 *)((int)&p->nUsed + 4) = 0;\n      *(undefined4 *)&p->nUsed = 0;\n      p->bStatic = '\x01';\n      return 7;\n    }" { (labeled_statement "LAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;" statement_identifier : (expression_statement "puVar2 = PTR_sqlite3_result_error_nomem_0015c788;" (assignment_expression "puVar2 = PTR_sqlite3_result_error_nomem_0015c788" identifier = identifier) ;)) (expression_statement "p->bErr = '\x01';" (assignment_expression "p->bErr = '\x01'" (field_expression "p->bErr" identifier -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "(*(code *)puVar2)(p->pCtx);" (call_expression "(*(code *)puVar2)(p->pCtx)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(p->pCtx)" ( (field_expression "p->pCtx" identifier -> field_identifier) ))) ;) (if_statement "if (p->bStatic == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(p->zBuf);\n      }" if (parenthesized_expression "(p->bStatic == '\0')" ( (binary_expression "p->bStatic == '\0'" (field_expression "p->bStatic" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        (*(code *)PTR_sqlite3_free_0015c5ec)(p->zBuf);\n      }" { (expression_statement "(*(code *)PTR_sqlite3_free_0015c5ec)(p->zBuf);" (call_expression "(*(code *)PTR_sqlite3_free_0015c5ec)(p->zBuf)" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0015c5ec)" ( (pointer_expression "*(code *)PTR_sqlite3_free_0015c5ec" * (cast_expression "(code *)PTR_sqlite3_free_0015c5ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(p->zBuf)" ( (field_expression "p->zBuf" identifier -> field_identifier) ))) ;) })) (expression_statement "*(undefined4 *)((int)&p->nAlloc + 4) = 100;" (assignment_expression "*(undefined4 *)((int)&p->nAlloc + 4) = 100" (pointer_expression "*(undefined4 *)((int)&p->nAlloc + 4)" * (cast_expression "(undefined4 *)((int)&p->nAlloc + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&p->nAlloc + 4)" ( (binary_expression "(int)&p->nAlloc + 4" (cast_expression "(int)&p->nAlloc" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&p->nAlloc" & (field_expression "p->nAlloc" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)&p->nAlloc = 0;" (assignment_expression "*(undefined4 *)&p->nAlloc = 0" (pointer_expression "*(undefined4 *)&p->nAlloc" * (cast_expression "(undefined4 *)&p->nAlloc" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p->nAlloc" & (field_expression "p->nAlloc" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "p->zBuf = p->zSpace;" (assignment_expression "p->zBuf = p->zSpace" (field_expression "p->zBuf" identifier -> field_identifier) = (field_expression "p->zSpace" identifier -> field_identifier)) ;) (expression_statement "*(undefined4 *)((int)&p->nUsed + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&p->nUsed + 4) = 0" (pointer_expression "*(undefined4 *)((int)&p->nUsed + 4)" * (cast_expression "(undefined4 *)((int)&p->nUsed + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&p->nUsed + 4)" ( (binary_expression "(int)&p->nUsed + 4" (cast_expression "(int)&p->nUsed" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&p->nUsed" & (field_expression "p->nUsed" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)&p->nUsed = 0;" (assignment_expression "*(undefined4 *)&p->nUsed = 0" (pointer_expression "*(undefined4 *)&p->nUsed" * (cast_expression "(undefined4 *)&p->nUsed" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p->nUsed" & (field_expression "p->nUsed" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "p->bStatic = '\x01';" (assignment_expression "p->bStatic = '\x01'" (field_expression "p->bStatic" identifier -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) (return_statement "return 7;" return number_literal ;) })) (expression_statement "p->zBuf = pcVar5;" (assignment_expression "p->zBuf = pcVar5" (field_expression "p->zBuf" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n    if (p->bErr != '\0') {\n      return 1;\n    }\n    iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);\n    if (iVar4 == 0) goto LAB_0008c524;\n    pcVar5 = (char *)(*(code *)PTR_memcpy_0015ca34)(iVar4,p->zBuf,(int)p->nUsed);\n    p->zBuf = pcVar5;\n    p->bStatic = '\0';\n  }" else (compound_statement "{\n    if (p->bErr != '\0') {\n      return 1;\n    }\n    iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);\n    if (iVar4 == 0) goto LAB_0008c524;\n    pcVar5 = (char *)(*(code *)PTR_memcpy_0015ca34)(iVar4,p->zBuf,(int)p->nUsed);\n    p->zBuf = pcVar5;\n    p->bStatic = '\0';\n  }" { (if_statement "if (p->bErr != '\0') {\n      return 1;\n    }" if (parenthesized_expression "(p->bErr != '\0')" ( (binary_expression "p->bErr != '\0'" (field_expression "p->bErr" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);" (assignment_expression "iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7)" identifier = (call_expression "(*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7)" (parenthesized_expression "(*(code *)PTR_sqlite3_malloc64_0015c764)" ( (pointer_expression "*(code *)PTR_sqlite3_malloc64_0015c764" * (cast_expression "(code *)PTR_sqlite3_malloc64_0015c764" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,uVar7)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) goto LAB_0008c524;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0008c524;" goto statement_identifier ;)) (expression_statement "pcVar5 = (char *)(*(code *)PTR_memcpy_0015ca34)(iVar4,p->zBuf,(int)p->nUsed);" (assignment_expression "pcVar5 = (char *)(*(code *)PTR_memcpy_0015ca34)(iVar4,p->zBuf,(int)p->nUsed)" identifier = (cast_expression "(char *)(*(code *)PTR_memcpy_0015ca34)(iVar4,p->zBuf,(int)p->nUsed)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_memcpy_0015ca34)(iVar4,p->zBuf,(int)p->nUsed)" (parenthesized_expression "(*(code *)PTR_memcpy_0015ca34)" ( (pointer_expression "*(code *)PTR_memcpy_0015ca34" * (cast_expression "(code *)PTR_memcpy_0015ca34" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,p->zBuf,(int)p->nUsed)" ( identifier , (field_expression "p->zBuf" identifier -> field_identifier) , (cast_expression "(int)p->nUsed" ( (type_descriptor "int" primitive_type) ) (field_expression "p->nUsed" identifier -> field_identifier)) ))))) ;) (expression_statement "p->zBuf = pcVar5;" (assignment_expression "p->zBuf = pcVar5" (field_expression "p->zBuf" identifier -> field_identifier) = identifier) ;) (expression_statement "p->bStatic = '\0';" (assignment_expression "p->bStatic = '\0'" (field_expression "p->bStatic" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) }))) (expression_statement "*(uint *)&p->nAlloc = uVar3;" (assignment_expression "*(uint *)&p->nAlloc = uVar3" (pointer_expression "*(uint *)&p->nAlloc" * (cast_expression "(uint *)&p->nAlloc" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p->nAlloc" & (field_expression "p->nAlloc" identifier -> field_identifier)))) = identifier) ;) (expression_statement "*(uint *)((int)&p->nAlloc + 4) = uVar7;" (assignment_expression "*(uint *)((int)&p->nAlloc + 4) = uVar7" (pointer_expression "*(uint *)((int)&p->nAlloc + 4)" * (cast_expression "(uint *)((int)&p->nAlloc + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&p->nAlloc + 4)" ( (binary_expression "(int)&p->nAlloc + 4" (cast_expression "(int)&p->nAlloc" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&p->nAlloc" & (field_expression "p->nAlloc" identifier -> field_identifier))) + number_literal) )))) = identifier) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0008c40c(undefined4 *param_1,uint param_2)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  uint uVar6;\n  uint uVar7;\n  \n  uVar6 = param_1[3];\n  if ((param_1[2] == 0) && (uVar6 <= param_2)) {\n    uVar3 = uVar6 + 10;\n    uVar7 = uVar3 + param_2;\n    uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6);\n    cVar1 = *(char *)(param_1 + 6);\n  }\n  else {\n    uVar3 = uVar6 >> 0x1f | param_1[2] << 1;\n    cVar1 = *(char *)(param_1 + 6);\n    uVar7 = uVar6 << 1;\n  }\n  if (cVar1 == '\0') {\n    iVar4 = (*(code *)PTR_sqlite3_realloc64_0015c768)(param_1[1],param_2,uVar3,uVar7);\n    if (iVar4 == 0) {\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      *(undefined1 *)((int)param_1 + 0x19) = 1;\n      (*(code *)puVar2)(*param_1);\n      if (*(char *)(param_1 + 6) == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);\n      }\n      param_1[3] = 100;\n      param_1[2] = 0;\n      param_1[1] = (int)param_1 + 0x1a;\n      param_1[5] = 0;\n      param_1[4] = 0;\n      *(undefined1 *)(param_1 + 6) = 1;\n      return 7;\n    }\n    param_1[1] = iVar4;\n  }\n  else {\n    if (*(char *)((int)param_1 + 0x19) != '\0') {\n      return 1;\n    }\n    iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);\n    if (iVar4 == 0) goto LAB_0008c524;\n    uVar5 = (*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5]);\n    param_1[1] = uVar5;\n    *(undefined1 *)(param_1 + 6) = 0;\n  }\n  param_1[2] = uVar3;\n  param_1[3] = uVar7;\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0008c40c(undefined4 *param_1,uint param_2)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  uint uVar6;\n  uint uVar7;\n  \n  uVar6 = param_1[3];\n  if ((param_1[2] == 0) && (uVar6 <= param_2)) {\n    uVar3 = uVar6 + 10;\n    uVar7 = uVar3 + param_2;\n    uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6);\n    cVar1 = *(char *)(param_1 + 6);\n  }\n  else {\n    uVar3 = uVar6 >> 0x1f | param_1[2] << 1;\n    cVar1 = *(char *)(param_1 + 6);\n    uVar7 = uVar6 << 1;\n  }\n  if (cVar1 == '\0') {\n    iVar4 = (*(code *)PTR_sqlite3_realloc64_0015c768)(param_1[1],param_2,uVar3,uVar7);\n    if (iVar4 == 0) {\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      *(undefined1 *)((int)param_1 + 0x19) = 1;\n      (*(code *)puVar2)(*param_1);\n      if (*(char *)(param_1 + 6) == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);\n      }\n      param_1[3] = 100;\n      param_1[2] = 0;\n      param_1[1] = (int)param_1 + 0x1a;\n      param_1[5] = 0;\n      param_1[4] = 0;\n      *(undefined1 *)(param_1 + 6) = 1;\n      return 7;\n    }\n    param_1[1] = iVar4;\n  }\n  else {\n    if (*(char *)((int)param_1 + 0x19) != '\0') {\n      return 1;\n    }\n    iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);\n    if (iVar4 == 0) goto LAB_0008c524;\n    uVar5 = (*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5]);\n    param_1[1] = uVar5;\n    *(undefined1 *)(param_1 + 6) = 0;\n  }\n  param_1[2] = uVar3;\n  param_1[3] = uVar7;\n  return 0;\n}" type_identifier (function_declarator "FUN_0008c40c(undefined4 *param_1,uint param_2)" identifier (parameter_list "(undefined4 *param_1,uint param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  uint uVar6;\n  uint uVar7;\n  \n  uVar6 = param_1[3];\n  if ((param_1[2] == 0) && (uVar6 <= param_2)) {\n    uVar3 = uVar6 + 10;\n    uVar7 = uVar3 + param_2;\n    uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6);\n    cVar1 = *(char *)(param_1 + 6);\n  }\n  else {\n    uVar3 = uVar6 >> 0x1f | param_1[2] << 1;\n    cVar1 = *(char *)(param_1 + 6);\n    uVar7 = uVar6 << 1;\n  }\n  if (cVar1 == '\0') {\n    iVar4 = (*(code *)PTR_sqlite3_realloc64_0015c768)(param_1[1],param_2,uVar3,uVar7);\n    if (iVar4 == 0) {\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      *(undefined1 *)((int)param_1 + 0x19) = 1;\n      (*(code *)puVar2)(*param_1);\n      if (*(char *)(param_1 + 6) == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);\n      }\n      param_1[3] = 100;\n      param_1[2] = 0;\n      param_1[1] = (int)param_1 + 0x1a;\n      param_1[5] = 0;\n      param_1[4] = 0;\n      *(undefined1 *)(param_1 + 6) = 1;\n      return 7;\n    }\n    param_1[1] = iVar4;\n  }\n  else {\n    if (*(char *)((int)param_1 + 0x19) != '\0') {\n      return 1;\n    }\n    iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);\n    if (iVar4 == 0) goto LAB_0008c524;\n    uVar5 = (*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5]);\n    param_1[1] = uVar5;\n    *(undefined1 *)(param_1 + 6) = 0;\n  }\n  param_1[2] = uVar3;\n  param_1[3] = uVar7;\n  return 0;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (expression_statement "uVar6 = param_1[3];" (assignment_expression "uVar6 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (if_statement "if ((param_1[2] == 0) && (uVar6 <= param_2)) {\n    uVar3 = uVar6 + 10;\n    uVar7 = uVar3 + param_2;\n    uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6);\n    cVar1 = *(char *)(param_1 + 6);\n  }\n  else {\n    uVar3 = uVar6 >> 0x1f | param_1[2] << 1;\n    cVar1 = *(char *)(param_1 + 6);\n    uVar7 = uVar6 << 1;\n  }" if (parenthesized_expression "((param_1[2] == 0) && (uVar6 <= param_2))" ( (binary_expression "(param_1[2] == 0) && (uVar6 <= param_2)" (parenthesized_expression "(param_1[2] == 0)" ( (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) == number_literal) )) && (parenthesized_expression "(uVar6 <= param_2)" ( (binary_expression "uVar6 <= param_2" identifier <= identifier) ))) )) (compound_statement "{\n    uVar3 = uVar6 + 10;\n    uVar7 = uVar3 + param_2;\n    uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6);\n    cVar1 = *(char *)(param_1 + 6);\n  }" { (expression_statement "uVar3 = uVar6 + 10;" (assignment_expression "uVar3 = uVar6 + 10" identifier = (binary_expression "uVar6 + 10" identifier + number_literal)) ;) (expression_statement "uVar7 = uVar3 + param_2;" (assignment_expression "uVar7 = uVar3 + param_2" identifier = (binary_expression "uVar3 + param_2" identifier + identifier)) ;) (expression_statement "uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6);" (assignment_expression "uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6)" identifier = (binary_expression "(uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6)" (call_expression "(uint)(uVar7 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar7 < uVar3)" ( (binary_expression "uVar7 < uVar3" identifier < identifier) ))) + (call_expression "(uint)(uVar3 < uVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 < uVar6)" ( (binary_expression "uVar3 < uVar6" identifier < identifier) ))))) ;) (expression_statement "cVar1 = *(char *)(param_1 + 6);" (assignment_expression "cVar1 = *(char *)(param_1 + 6)" identifier = (pointer_expression "*(char *)(param_1 + 6)" * (cast_expression "(char *)(param_1 + 6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    uVar3 = uVar6 >> 0x1f | param_1[2] << 1;\n    cVar1 = *(char *)(param_1 + 6);\n    uVar7 = uVar6 << 1;\n  }" else (compound_statement "{\n    uVar3 = uVar6 >> 0x1f | param_1[2] << 1;\n    cVar1 = *(char *)(param_1 + 6);\n    uVar7 = uVar6 << 1;\n  }" { (expression_statement "uVar3 = uVar6 >> 0x1f | param_1[2] << 1;" (assignment_expression "uVar3 = uVar6 >> 0x1f | param_1[2] << 1" identifier = (binary_expression "uVar6 >> 0x1f | param_1[2] << 1" (binary_expression "uVar6 >> 0x1f" identifier >> number_literal) | (binary_expression "param_1[2] << 1" (subscript_expression "param_1[2]" identifier [ number_literal ]) << number_literal))) ;) (expression_statement "cVar1 = *(char *)(param_1 + 6);" (assignment_expression "cVar1 = *(char *)(param_1 + 6)" identifier = (pointer_expression "*(char *)(param_1 + 6)" * (cast_expression "(char *)(param_1 + 6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = uVar6 << 1;" (assignment_expression "uVar7 = uVar6 << 1" identifier = (binary_expression "uVar6 << 1" identifier << number_literal)) ;) }))) (if_statement "if (cVar1 == '\0') {\n    iVar4 = (*(code *)PTR_sqlite3_realloc64_0015c768)(param_1[1],param_2,uVar3,uVar7);\n    if (iVar4 == 0) {\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      *(undefined1 *)((int)param_1 + 0x19) = 1;\n      (*(code *)puVar2)(*param_1);\n      if (*(char *)(param_1 + 6) == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);\n      }\n      param_1[3] = 100;\n      param_1[2] = 0;\n      param_1[1] = (int)param_1 + 0x1a;\n      param_1[5] = 0;\n      param_1[4] = 0;\n      *(undefined1 *)(param_1 + 6) = 1;\n      return 7;\n    }\n    param_1[1] = iVar4;\n  }\n  else {\n    if (*(char *)((int)param_1 + 0x19) != '\0') {\n      return 1;\n    }\n    iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);\n    if (iVar4 == 0) goto LAB_0008c524;\n    uVar5 = (*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5]);\n    param_1[1] = uVar5;\n    *(undefined1 *)(param_1 + 6) = 0;\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar4 = (*(code *)PTR_sqlite3_realloc64_0015c768)(param_1[1],param_2,uVar3,uVar7);\n    if (iVar4 == 0) {\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      *(undefined1 *)((int)param_1 + 0x19) = 1;\n      (*(code *)puVar2)(*param_1);\n      if (*(char *)(param_1 + 6) == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);\n      }\n      param_1[3] = 100;\n      param_1[2] = 0;\n      param_1[1] = (int)param_1 + 0x1a;\n      param_1[5] = 0;\n      param_1[4] = 0;\n      *(undefined1 *)(param_1 + 6) = 1;\n      return 7;\n    }\n    param_1[1] = iVar4;\n  }" { (expression_statement "iVar4 = (*(code *)PTR_sqlite3_realloc64_0015c768)(param_1[1],param_2,uVar3,uVar7);" (assignment_expression "iVar4 = (*(code *)PTR_sqlite3_realloc64_0015c768)(param_1[1],param_2,uVar3,uVar7)" identifier = (call_expression "(*(code *)PTR_sqlite3_realloc64_0015c768)(param_1[1],param_2,uVar3,uVar7)" (parenthesized_expression "(*(code *)PTR_sqlite3_realloc64_0015c768)" ( (pointer_expression "*(code *)PTR_sqlite3_realloc64_0015c768" * (cast_expression "(code *)PTR_sqlite3_realloc64_0015c768" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[1],param_2,uVar3,uVar7)" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) , identifier , identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) {\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      *(undefined1 *)((int)param_1 + 0x19) = 1;\n      (*(code *)puVar2)(*param_1);\n      if (*(char *)(param_1 + 6) == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);\n      }\n      param_1[3] = 100;\n      param_1[2] = 0;\n      param_1[1] = (int)param_1 + 0x1a;\n      param_1[5] = 0;\n      param_1[4] = 0;\n      *(undefined1 *)(param_1 + 6) = 1;\n      return 7;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      *(undefined1 *)((int)param_1 + 0x19) = 1;\n      (*(code *)puVar2)(*param_1);\n      if (*(char *)(param_1 + 6) == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);\n      }\n      param_1[3] = 100;\n      param_1[2] = 0;\n      param_1[1] = (int)param_1 + 0x1a;\n      param_1[5] = 0;\n      param_1[4] = 0;\n      *(undefined1 *)(param_1 + 6) = 1;\n      return 7;\n    }" { (labeled_statement "LAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;" statement_identifier : (expression_statement "puVar2 = PTR_sqlite3_result_error_nomem_0015c788;" (assignment_expression "puVar2 = PTR_sqlite3_result_error_nomem_0015c788" identifier = identifier) ;)) (expression_statement "*(undefined1 *)((int)param_1 + 0x19) = 1;" (assignment_expression "*(undefined1 *)((int)param_1 + 0x19) = 1" (pointer_expression "*(undefined1 *)((int)param_1 + 0x19)" * (cast_expression "(undefined1 *)((int)param_1 + 0x19)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x19)" ( (binary_expression "(int)param_1 + 0x19" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "(*(code *)puVar2)(*param_1);" (call_expression "(*(code *)puVar2)(*param_1)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (if_statement "if (*(char *)(param_1 + 6) == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);\n      }" if (parenthesized_expression "(*(char *)(param_1 + 6) == '\0')" ( (binary_expression "*(char *)(param_1 + 6) == '\0'" (pointer_expression "*(char *)(param_1 + 6)" * (cast_expression "(char *)(param_1 + 6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);\n      }" { (expression_statement "(*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);" (call_expression "(*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1])" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0015c5ec)" ( (pointer_expression "*(code *)PTR_sqlite3_free_0015c5ec" * (cast_expression "(code *)PTR_sqlite3_free_0015c5ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[1])" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) ))) ;) })) (expression_statement "param_1[3] = 100;" (assignment_expression "param_1[3] = 100" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = (int)param_1 + 0x1a;" (assignment_expression "param_1[1] = (int)param_1 + 0x1a" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "(int)param_1 + 0x1a" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)(param_1 + 6) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 6) = 1" (pointer_expression "*(undefined1 *)(param_1 + 6)" * (cast_expression "(undefined1 *)(param_1 + 6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 7;" return number_literal ;) })) (expression_statement "param_1[1] = iVar4;" (assignment_expression "param_1[1] = iVar4" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    if (*(char *)((int)param_1 + 0x19) != '\0') {\n      return 1;\n    }\n    iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);\n    if (iVar4 == 0) goto LAB_0008c524;\n    uVar5 = (*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5]);\n    param_1[1] = uVar5;\n    *(undefined1 *)(param_1 + 6) = 0;\n  }" else (compound_statement "{\n    if (*(char *)((int)param_1 + 0x19) != '\0') {\n      return 1;\n    }\n    iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);\n    if (iVar4 == 0) goto LAB_0008c524;\n    uVar5 = (*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5]);\n    param_1[1] = uVar5;\n    *(undefined1 *)(param_1 + 6) = 0;\n  }" { (if_statement "if (*(char *)((int)param_1 + 0x19) != '\0') {\n      return 1;\n    }" if (parenthesized_expression "(*(char *)((int)param_1 + 0x19) != '\0')" ( (binary_expression "*(char *)((int)param_1 + 0x19) != '\0'" (pointer_expression "*(char *)((int)param_1 + 0x19)" * (cast_expression "(char *)((int)param_1 + 0x19)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x19)" ( (binary_expression "(int)param_1 + 0x19" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);" (assignment_expression "iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7)" identifier = (call_expression "(*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7)" (parenthesized_expression "(*(code *)PTR_sqlite3_malloc64_0015c764)" ( (pointer_expression "*(code *)PTR_sqlite3_malloc64_0015c764" * (cast_expression "(code *)PTR_sqlite3_malloc64_0015c764" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,uVar7)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) goto LAB_0008c524;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0008c524;" goto statement_identifier ;)) (expression_statement "uVar5 = (*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5]);" (assignment_expression "uVar5 = (*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5])" identifier = (call_expression "(*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5])" (parenthesized_expression "(*(code *)PTR_memcpy_0015ca34)" ( (pointer_expression "*(code *)PTR_memcpy_0015ca34" * (cast_expression "(code *)PTR_memcpy_0015ca34" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,param_1[1],param_1[5])" ( identifier , (subscript_expression "param_1[1]" identifier [ number_literal ]) , (subscript_expression "param_1[5]" identifier [ number_literal ]) )))) ;) (expression_statement "param_1[1] = uVar5;" (assignment_expression "param_1[1] = uVar5" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 6) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 6) = 0" (pointer_expression "*(undefined1 *)(param_1 + 6)" * (cast_expression "(undefined1 *)(param_1 + 6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) )))) = number_literal) ;) }))) (expression_statement "param_1[2] = uVar3;" (assignment_expression "param_1[2] = uVar3" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = uVar7;" (assignment_expression "param_1[3] = uVar7" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) && (parenthesized_expression ( (binary_expression IDENT <= IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (subscript_expression IDENT [ LIT ]) << LIT))) ;) (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 = (binary_expression IDENT << LIT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0008c40c(undefined4 *param_1,uint param_2)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  uint uVar6;\n  uint uVar7;\n  \n  uVar6 = param_1[3];\n  if ((param_1[2] == 0) && (uVar6 <= param_2)) {\n    uVar3 = uVar6 + 10;\n    uVar7 = uVar3 + param_2;\n    uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6);\n    cVar1 = *(char *)(param_1 + 6);\n  }\n  else {\n    uVar3 = uVar6 >> 0x1f | param_1[2] << 1;\n    cVar1 = *(char *)(param_1 + 6);\n    uVar7 = uVar6 << 1;\n  }\n  if (cVar1 == '\0') {\n    iVar4 = (*(code *)PTR_sqlite3_realloc64_0015c768)(param_1[1],param_2,uVar3,uVar7);\n    if (iVar4 == 0) {\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      *(undefined1 *)((int)param_1 + 0x19) = 1;\n      (*(code *)puVar2)(*param_1);\n      if (*(char *)(param_1 + 6) == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);\n      }\n      param_1[3] = 100;\n      param_1[2] = 0;\n      param_1[1] = (int)param_1 + 0x1a;\n      param_1[5] = 0;\n      param_1[4] = 0;\n      *(undefined1 *)(param_1 + 6) = 1;\n      return 7;\n    }\n    param_1[1] = iVar4;\n  }\n  else {\n    if (*(char *)((int)param_1 + 0x19) != '\0') {\n      return 1;\n    }\n    iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);\n    if (iVar4 == 0) goto LAB_0008c524;\n    uVar5 = (*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5]);\n    param_1[1] = uVar5;\n    *(undefined1 *)(param_1 + 6) = 0;\n  }\n  param_1[2] = uVar3;\n  param_1[3] = uVar7;\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0008c40c(undefined4 *param_1,uint param_2)" (identifier "FUN_0008c40c") (parameter_list "(undefined4 *param_1,uint param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  uint uVar6;\n  uint uVar7;\n  \n  uVar6 = param_1[3];\n  if ((param_1[2] == 0) && (uVar6 <= param_2)) {\n    uVar3 = uVar6 + 10;\n    uVar7 = uVar3 + param_2;\n    uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6);\n    cVar1 = *(char *)(param_1 + 6);\n  }\n  else {\n    uVar3 = uVar6 >> 0x1f | param_1[2] << 1;\n    cVar1 = *(char *)(param_1 + 6);\n    uVar7 = uVar6 << 1;\n  }\n  if (cVar1 == '\0') {\n    iVar4 = (*(code *)PTR_sqlite3_realloc64_0015c768)(param_1[1],param_2,uVar3,uVar7);\n    if (iVar4 == 0) {\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      *(undefined1 *)((int)param_1 + 0x19) = 1;\n      (*(code *)puVar2)(*param_1);\n      if (*(char *)(param_1 + 6) == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);\n      }\n      param_1[3] = 100;\n      param_1[2] = 0;\n      param_1[1] = (int)param_1 + 0x1a;\n      param_1[5] = 0;\n      param_1[4] = 0;\n      *(undefined1 *)(param_1 + 6) = 1;\n      return 7;\n    }\n    param_1[1] = iVar4;\n  }\n  else {\n    if (*(char *)((int)param_1 + 0x19) != '\0') {\n      return 1;\n    }\n    iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);\n    if (iVar4 == 0) goto LAB_0008c524;\n    uVar5 = (*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5]);\n    param_1[1] = uVar5;\n    *(undefined1 *)(param_1 + 6) = 0;\n  }\n  param_1[2] = uVar3;\n  param_1[3] = uVar7;\n  return 0;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (expression_statement "uVar6 = param_1[3];" (assignment_expression "uVar6 = param_1[3]" (identifier "uVar6") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (if_statement "if ((param_1[2] == 0) && (uVar6 <= param_2)) {\n    uVar3 = uVar6 + 10;\n    uVar7 = uVar3 + param_2;\n    uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6);\n    cVar1 = *(char *)(param_1 + 6);\n  }\n  else {\n    uVar3 = uVar6 >> 0x1f | param_1[2] << 1;\n    cVar1 = *(char *)(param_1 + 6);\n    uVar7 = uVar6 << 1;\n  }" (if "if") (parenthesized_expression "((param_1[2] == 0) && (uVar6 <= param_2))" (( "(") (binary_expression "(param_1[2] == 0) && (uVar6 <= param_2)" (parenthesized_expression "(param_1[2] == 0)" (( "(") (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar6 <= param_2)" (( "(") (binary_expression "uVar6 <= param_2" (identifier "uVar6") (<= "<=") (identifier "param_2")) () ")"))) () ")")) (compound_statement "{\n    uVar3 = uVar6 + 10;\n    uVar7 = uVar3 + param_2;\n    uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6);\n    cVar1 = *(char *)(param_1 + 6);\n  }" ({ "{") (expression_statement "uVar3 = uVar6 + 10;" (assignment_expression "uVar3 = uVar6 + 10" (identifier "uVar3") (= "=") (binary_expression "uVar6 + 10" (identifier "uVar6") (+ "+") (number_literal "10"))) (; ";")) (expression_statement "uVar7 = uVar3 + param_2;" (assignment_expression "uVar7 = uVar3 + param_2" (identifier "uVar7") (= "=") (binary_expression "uVar3 + param_2" (identifier "uVar3") (+ "+") (identifier "param_2"))) (; ";")) (expression_statement "uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6);" (assignment_expression "uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6)" (identifier "uVar3") (= "=") (binary_expression "(uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6)" (call_expression "(uint)(uVar7 < uVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar7 < uVar3)" (( "(") (binary_expression "uVar7 < uVar3" (identifier "uVar7") (< "<") (identifier "uVar3")) () ")"))) (+ "+") (call_expression "(uint)(uVar3 < uVar6)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar3 < uVar6)" (( "(") (binary_expression "uVar3 < uVar6" (identifier "uVar3") (< "<") (identifier "uVar6")) () ")"))))) (; ";")) (expression_statement "cVar1 = *(char *)(param_1 + 6);" (assignment_expression "cVar1 = *(char *)(param_1 + 6)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(param_1 + 6)" (* "*") (cast_expression "(char *)(param_1 + 6)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 6)" (( "(") (binary_expression "param_1 + 6" (identifier "param_1") (+ "+") (number_literal "6")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    uVar3 = uVar6 >> 0x1f | param_1[2] << 1;\n    cVar1 = *(char *)(param_1 + 6);\n    uVar7 = uVar6 << 1;\n  }" (else "else") (compound_statement "{\n    uVar3 = uVar6 >> 0x1f | param_1[2] << 1;\n    cVar1 = *(char *)(param_1 + 6);\n    uVar7 = uVar6 << 1;\n  }" ({ "{") (expression_statement "uVar3 = uVar6 >> 0x1f | param_1[2] << 1;" (assignment_expression "uVar3 = uVar6 >> 0x1f | param_1[2] << 1" (identifier "uVar3") (= "=") (binary_expression "uVar6 >> 0x1f | param_1[2] << 1" (binary_expression "uVar6 >> 0x1f" (identifier "uVar6") (>> ">>") (number_literal "0x1f")) (| "|") (binary_expression "param_1[2] << 1" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (<< "<<") (number_literal "1")))) (; ";")) (expression_statement "cVar1 = *(char *)(param_1 + 6);" (assignment_expression "cVar1 = *(char *)(param_1 + 6)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(param_1 + 6)" (* "*") (cast_expression "(char *)(param_1 + 6)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 6)" (( "(") (binary_expression "param_1 + 6" (identifier "param_1") (+ "+") (number_literal "6")) () ")"))))) (; ";")) (expression_statement "uVar7 = uVar6 << 1;" (assignment_expression "uVar7 = uVar6 << 1" (identifier "uVar7") (= "=") (binary_expression "uVar6 << 1" (identifier "uVar6") (<< "<<") (number_literal "1"))) (; ";")) (} "}")))) (if_statement "if (cVar1 == '\0') {\n    iVar4 = (*(code *)PTR_sqlite3_realloc64_0015c768)(param_1[1],param_2,uVar3,uVar7);\n    if (iVar4 == 0) {\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      *(undefined1 *)((int)param_1 + 0x19) = 1;\n      (*(code *)puVar2)(*param_1);\n      if (*(char *)(param_1 + 6) == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);\n      }\n      param_1[3] = 100;\n      param_1[2] = 0;\n      param_1[1] = (int)param_1 + 0x1a;\n      param_1[5] = 0;\n      param_1[4] = 0;\n      *(undefined1 *)(param_1 + 6) = 1;\n      return 7;\n    }\n    param_1[1] = iVar4;\n  }\n  else {\n    if (*(char *)((int)param_1 + 0x19) != '\0') {\n      return 1;\n    }\n    iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);\n    if (iVar4 == 0) goto LAB_0008c524;\n    uVar5 = (*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5]);\n    param_1[1] = uVar5;\n    *(undefined1 *)(param_1 + 6) = 0;\n  }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    iVar4 = (*(code *)PTR_sqlite3_realloc64_0015c768)(param_1[1],param_2,uVar3,uVar7);\n    if (iVar4 == 0) {\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      *(undefined1 *)((int)param_1 + 0x19) = 1;\n      (*(code *)puVar2)(*param_1);\n      if (*(char *)(param_1 + 6) == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);\n      }\n      param_1[3] = 100;\n      param_1[2] = 0;\n      param_1[1] = (int)param_1 + 0x1a;\n      param_1[5] = 0;\n      param_1[4] = 0;\n      *(undefined1 *)(param_1 + 6) = 1;\n      return 7;\n    }\n    param_1[1] = iVar4;\n  }" ({ "{") (expression_statement "iVar4 = (*(code *)PTR_sqlite3_realloc64_0015c768)(param_1[1],param_2,uVar3,uVar7);" (assignment_expression "iVar4 = (*(code *)PTR_sqlite3_realloc64_0015c768)(param_1[1],param_2,uVar3,uVar7)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_sqlite3_realloc64_0015c768)(param_1[1],param_2,uVar3,uVar7)" (parenthesized_expression "(*(code *)PTR_sqlite3_realloc64_0015c768)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_realloc64_0015c768" (* "*") (cast_expression "(code *)PTR_sqlite3_realloc64_0015c768" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_realloc64_0015c768"))) () ")")) (argument_list "(param_1[1],param_2,uVar3,uVar7)" (( "(") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "param_2") (, ",") (identifier "uVar3") (, ",") (identifier "uVar7") () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      *(undefined1 *)((int)param_1 + 0x19) = 1;\n      (*(code *)puVar2)(*param_1);\n      if (*(char *)(param_1 + 6) == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);\n      }\n      param_1[3] = 100;\n      param_1[2] = 0;\n      param_1[1] = (int)param_1 + 0x1a;\n      param_1[5] = 0;\n      param_1[4] = 0;\n      *(undefined1 *)(param_1 + 6) = 1;\n      return 7;\n    }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;\n      *(undefined1 *)((int)param_1 + 0x19) = 1;\n      (*(code *)puVar2)(*param_1);\n      if (*(char *)(param_1 + 6) == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);\n      }\n      param_1[3] = 100;\n      param_1[2] = 0;\n      param_1[1] = (int)param_1 + 0x1a;\n      param_1[5] = 0;\n      param_1[4] = 0;\n      *(undefined1 *)(param_1 + 6) = 1;\n      return 7;\n    }" ({ "{") (labeled_statement "LAB_0008c524:\n      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;" (statement_identifier "LAB_0008c524") (: ":") (expression_statement "puVar2 = PTR_sqlite3_result_error_nomem_0015c788;" (assignment_expression "puVar2 = PTR_sqlite3_result_error_nomem_0015c788" (identifier "puVar2") (= "=") (identifier "PTR_sqlite3_result_error_nomem_0015c788")) (; ";"))) (expression_statement "*(undefined1 *)((int)param_1 + 0x19) = 1;" (assignment_expression "*(undefined1 *)((int)param_1 + 0x19) = 1" (pointer_expression "*(undefined1 *)((int)param_1 + 0x19)" (* "*") (cast_expression "(undefined1 *)((int)param_1 + 0x19)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x19)" (( "(") (binary_expression "(int)param_1 + 0x19" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x19")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "(*(code *)puVar2)(*param_1);" (call_expression "(*(code *)puVar2)(*param_1)" (parenthesized_expression "(*(code *)puVar2)" (( "(") (pointer_expression "*(code *)puVar2" (* "*") (cast_expression "(code *)puVar2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) () ")")) (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (if_statement "if (*(char *)(param_1 + 6) == '\0') {\n        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);\n      }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 6) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 6) == '\0'" (pointer_expression "*(char *)(param_1 + 6)" (* "*") (cast_expression "(char *)(param_1 + 6)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 6)" (( "(") (binary_expression "param_1 + 6" (identifier "param_1") (+ "+") (number_literal "6")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);\n      }" ({ "{") (expression_statement "(*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);" (call_expression "(*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1])" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0015c5ec)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_free_0015c5ec" (* "*") (cast_expression "(code *)PTR_sqlite3_free_0015c5ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_free_0015c5ec"))) () ")")) (argument_list "(param_1[1])" (( "(") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) () ")"))) (; ";")) (} "}"))) (expression_statement "param_1[3] = 100;" (assignment_expression "param_1[3] = 100" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "100")) (; ";")) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[1] = (int)param_1 + 0x1a;" (assignment_expression "param_1[1] = (int)param_1 + 0x1a" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "(int)param_1 + 0x1a" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x1a"))) (; ";")) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 6) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 6) = 1" (pointer_expression "*(undefined1 *)(param_1 + 6)" (* "*") (cast_expression "(undefined1 *)(param_1 + 6)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 6)" (( "(") (binary_expression "param_1 + 6" (identifier "param_1") (+ "+") (number_literal "6")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return 7;" (return "return") (number_literal "7") (; ";")) (} "}"))) (expression_statement "param_1[1] = iVar4;" (assignment_expression "param_1[1] = iVar4" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (} "}")) (else_clause "else {\n    if (*(char *)((int)param_1 + 0x19) != '\0') {\n      return 1;\n    }\n    iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);\n    if (iVar4 == 0) goto LAB_0008c524;\n    uVar5 = (*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5]);\n    param_1[1] = uVar5;\n    *(undefined1 *)(param_1 + 6) = 0;\n  }" (else "else") (compound_statement "{\n    if (*(char *)((int)param_1 + 0x19) != '\0') {\n      return 1;\n    }\n    iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);\n    if (iVar4 == 0) goto LAB_0008c524;\n    uVar5 = (*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5]);\n    param_1[1] = uVar5;\n    *(undefined1 *)(param_1 + 6) = 0;\n  }" ({ "{") (if_statement "if (*(char *)((int)param_1 + 0x19) != '\0') {\n      return 1;\n    }" (if "if") (parenthesized_expression "(*(char *)((int)param_1 + 0x19) != '\0')" (( "(") (binary_expression "*(char *)((int)param_1 + 0x19) != '\0'" (pointer_expression "*(char *)((int)param_1 + 0x19)" (* "*") (cast_expression "(char *)((int)param_1 + 0x19)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x19)" (( "(") (binary_expression "(int)param_1 + 0x19" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x19")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);" (assignment_expression "iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7)" (parenthesized_expression "(*(code *)PTR_sqlite3_malloc64_0015c764)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_malloc64_0015c764" (* "*") (cast_expression "(code *)PTR_sqlite3_malloc64_0015c764" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_malloc64_0015c764"))) () ")")) (argument_list "(uVar3,uVar7)" (( "(") (identifier "uVar3") (, ",") (identifier "uVar7") () ")")))) (; ";")) (if_statement "if (iVar4 == 0) goto LAB_0008c524;" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0008c524;" (goto "goto") (statement_identifier "LAB_0008c524") (; ";"))) (expression_statement "uVar5 = (*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5]);" (assignment_expression "uVar5 = (*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5])" (identifier "uVar5") (= "=") (call_expression "(*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5])" (parenthesized_expression "(*(code *)PTR_memcpy_0015ca34)" (( "(") (pointer_expression "*(code *)PTR_memcpy_0015ca34" (* "*") (cast_expression "(code *)PTR_memcpy_0015ca34" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_0015ca34"))) () ")")) (argument_list "(iVar4,param_1[1],param_1[5])" (( "(") (identifier "iVar4") (, ",") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (, ",") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) () ")")))) (; ";")) (expression_statement "param_1[1] = uVar5;" (assignment_expression "param_1[1] = uVar5" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 6) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 6) = 0" (pointer_expression "*(undefined1 *)(param_1 + 6)" (* "*") (cast_expression "(undefined1 *)(param_1 + 6)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 6)" (( "(") (binary_expression "param_1 + 6" (identifier "param_1") (+ "+") (number_literal "6")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "param_1[2] = uVar3;" (assignment_expression "param_1[2] = uVar3" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "param_1[3] = uVar7;" (assignment_expression "param_1[3] = uVar7" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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 (subscript_expression argument: (identifier) index: (number_literal)) (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) 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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (number_literal))) (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: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) 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 (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (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 (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (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 (identifier) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (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: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement (number_literal)))))

undefined4 MASKED(undefined4 *param_1,uint param_2)

{
  char cVar1;
  undefined *puVar2;
  uint uVar3;
  int iVar4;
  undefined4 uVar5;
  uint uVar6;
  uint uVar7;
  
  uVar6 = param_1[3];
  if ((param_1[2] == 0) && (uVar6 <= param_2)) {
    uVar3 = uVar6 + 10;
    uVar7 = uVar3 + param_2;
    uVar3 = (uint)(uVar7 < uVar3) + (uint)(uVar3 < uVar6);
    cVar1 = *(char *)(param_1 + 6);
  }
  else {
    uVar3 = uVar6 >> 0x1f | param_1[2] << 1;
    cVar1 = *(char *)(param_1 + 6);
    uVar7 = uVar6 << 1;
  }
  if (cVar1 == '\0') {
    iVar4 = (*(code *)PTR_sqlite3_realloc64_0015c768)(param_1[1],param_2,uVar3,uVar7);
    if (iVar4 == 0) {
LAB_0008c524:
      puVar2 = PTR_sqlite3_result_error_nomem_0015c788;
      *(undefined1 *)((int)param_1 + 0x19) = 1;
      (*(code *)puVar2)(*param_1);
      if (*(char *)(param_1 + 6) == '\0') {
        (*(code *)PTR_sqlite3_free_0015c5ec)(param_1[1]);
      }
      param_1[3] = 100;
      param_1[2] = 0;
      param_1[1] = (int)param_1 + 0x1a;
      param_1[5] = 0;
      param_1[4] = 0;
      *(undefined1 *)(param_1 + 6) = 1;
      return 7;
    }
    param_1[1] = iVar4;
  }
  else {
    if (*(char *)((int)param_1 + 0x19) != '\0') {
      return 1;
    }
    iVar4 = (*(code *)PTR_sqlite3_malloc64_0015c764)(uVar3,uVar7);
    if (iVar4 == 0) goto LAB_0008c524;
    uVar5 = (*(code *)PTR_memcpy_0015ca34)(iVar4,param_1[1],param_1[5]);
    param_1[1] = uVar5;
    *(undefined1 *)(param_1 + 6) = 0;
  }
  param_1[2] = uVar3;
  param_1[3] = uVar7;
  return 0;
}

