
int sqlite3Fts5PoslistNext64(u8 *a,int n,int *pi,i64 *piOff)

{
  uint uVar1;
  byte bVar2;
  undefined *puVar3;
  int iVar4;
  uint uVar5;
  undefined4 *puVar6;
  int iVar7;
  int iVar8;
  uint uVar9;
  int iVal;
  undefined4 *puStack_1c;
  
  puVar3 = PTR___stack_chk_guard_00190e24;
  iVar7 = *pi;
  puStack_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;
  if (iVar7 < n) {
    uVar9 = *(uint *)piOff;
    iVar8 = (int)*piOff;
    bVar2 = a[iVar7];
    iVal = (int)bVar2;
    if ((char)bVar2 < '\0') {
      iVar4 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);
      iVar7 = iVar7 + iVar4;
    }
    else {
      iVar7 = iVar7 + 1;
    }
    if (iVal == 1) {
      bVar2 = a[iVar7];
      iVal = (int)bVar2;
      if ((char)bVar2 < '\0') {
        iVar8 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);
        iVar7 = iVar7 + iVar8;
        uVar9 = iVal;
      }
      else {
        iVar7 = iVar7 + 1;
        uVar9 = iVal;
      }
      iVar8 = 0;
      bVar2 = a[iVar7];
      iVal = (int)bVar2;
      if ((char)bVar2 < '\0') {
        iVar4 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);
        iVar7 = iVar7 + iVar4;
      }
      else {
        iVar7 = iVar7 + 1;
      }
    }
    iVar4 = 0;
    uVar1 = iVal - 2U & 0x7fffffff;
    uVar5 = uVar1 + iVar8;
    *(uint *)((int)piOff + 4) = uVar5;
    *(uint *)piOff = (uVar5 < uVar1) + uVar9;
    *pi = iVar7;
  }
  else {
    iVar4 = 1;
    *(undefined4 *)((int)piOff + 4) = 0xffffffff;
    *(undefined4 *)piOff = 0xffffffff;
  }
  if (puStack_1c == *(undefined4 **)puVar3) {
    return iVar4;
  }
  puVar6 = puStack_1c;
  (*(code *)PTR___stack_chk_fail_00190df8)();
  iVar7 = sqlite3Fts5PoslistNext64((u8 *)*puVar6,puVar6[1],puVar6 + 2,(i64 *)(puVar6 + 4));
  if (iVar7 == 0) {
    return (uint)*(byte *)((int)puVar6 + 0xd);
  }
  *(undefined1 *)((int)puVar6 + 0xd) = 1;
  return 1;
}



undefined1 FUN_0006629c(int param_1,int param_2,int *param_3,uint *param_4)

{
  uint uVar1;
  byte bVar2;
  undefined1 uVar4;
  int iVar3;
  undefined4 *puVar5;
  int iVar6;
  uint uVar7;
  uint uVar8;
  undefined *puVar9;
  uint local_20;
  undefined4 *local_1c;
  
  puVar9 = PTR___stack_chk_guard_00190e24;
  iVar6 = *param_3;
  local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;
  if (iVar6 < param_2) {
    uVar8 = *param_4;
    uVar7 = param_4[1];
    bVar2 = *(byte *)(param_1 + iVar6);
    local_20 = (uint)bVar2;
    if ((char)bVar2 < '\0') {
      iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);
      iVar6 = iVar6 + iVar3;
    }
    else {
      iVar6 = iVar6 + 1;
    }
    if (local_20 == 1) {
      bVar2 = *(byte *)(param_1 + iVar6);
      local_20 = (uint)bVar2;
      if ((char)bVar2 < '\0') {
        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);
        iVar6 = iVar6 + iVar3;
        uVar8 = local_20;
      }
      else {
        iVar6 = iVar6 + 1;
        uVar8 = local_20;
      }
      uVar7 = 0;
      bVar2 = *(byte *)(param_1 + iVar6);
      local_20 = (uint)bVar2;
      if ((char)bVar2 < '\0') {
        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);
        iVar6 = iVar6 + iVar3;
      }
      else {
        iVar6 = iVar6 + 1;
      }
    }
    uVar4 = 0;
    uVar1 = local_20 - 2 & 0x7fffffff;
    uVar7 = uVar1 + uVar7;
    param_4[1] = uVar7;
    *param_4 = (uVar7 < uVar1) + uVar8;
    *param_3 = iVar6;
  }
  else {
    uVar4 = 1;
    param_4[1] = 0xffffffff;
    *param_4 = 0xffffffff;
  }
  if (local_1c == *(undefined4 **)puVar9) {
    return uVar4;
  }
  puVar5 = local_1c;
  puVar9 = PTR___stack_chk_fail_00190df8;
  (*(code *)PTR___stack_chk_fail_00190df8)();
  iVar6 = FUN_0006629c(*puVar5,puVar5[1],puVar5 + 2,puVar5 + 4,puVar9 + 0x1324d4);
  if (iVar6 == 0) {
    return *(undefined1 *)((int)puVar5 + 0xd);
  }
  *(undefined1 *)((int)puVar5 + 0xd) = 1;
  return 1;
}


lui gp,0x13
addiu gp,gp,0x2684
addu gp,gp,t9
addiu sp,sp,-0x40
sw s1,0x2c(sp)
sw gp,0x10(sp)
sw ra,0x3c(sp)
sw s4,0x38(sp)
sw s3,0x34(sp)
sw s2,0x30(sp)
sw s0,0x28(sp)
lw s1,-0x7afc(gp)
lw s0,0x0(a2)
lw v0,0x0(s1)
slt a1,s0,a1
sw v0,0x24(sp)
bne a1,zero,0x00066324
_or s3,a0,zero
li a1,-0x1
li a0,-0x1
li v0,0x1
sw a1,0x4(a3)
sw a0,0x0(a3)
lw a0,0x24(sp)
lw v1,0x0(s1)
bne a0,v1,0x00066440
_lw ra,0x3c(sp)
lw s4,0x38(sp)
lw s3,0x34(sp)
lw s2,0x30(sp)
lw s1,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x40
lw s4,0x0(a3)
addu a0,a0,s0
lw s2,0x4(a3)
lbu v1,0x0(a0)
seb v0,v1
bltz v0,0x000663b0
_sw v1,0x20(sp)
addiu s0,s0,0x1
li v0,0x1
beq v1,v0,0x00066378
_addu a0,s3,s0
addiu v1,v1,-0x2
or v0,zero,zero
ext v1,v1,0x0,0x1f
addu a0,v1,s2
sltu v1,a0,v1
sw a0,0x4(a3)
addu v1,v1,s4
sw v1,0x0(a3)
b 0x000662f8
_sw s0,0x0(a2)
lbu v1,0x0(a0)
seb v0,v1
bltz v0,0x00066410
_sw v1,0x20(sp)
addiu s0,s0,0x1
addu a0,s3,s0
or s4,v1,zero
or s2,zero,zero
lbu v1,0x0(a0)
seb v0,v1
bltz v0,0x000663e0
_sw v1,0x20(sp)
b 0x00066350
_addiu s0,s0,0x1
lw t9,-0x7d7c(gp)
addiu a1,sp,0x20
sw a3,0x1c(sp)
addiu t9,t9,0x610c
bal 0x0006610c
_sw a2,0x18(sp)
lw gp,0x10(sp)
addu s0,s0,v0
lw v1,0x20(sp)
lw a3,0x1c(sp)
b 0x00066344
_lw a2,0x18(sp)
lw t9,-0x7d7c(gp)
addiu a1,sp,0x20
sw a3,0x1c(sp)
addiu t9,t9,0x610c
bal 0x0006610c
_sw a2,0x18(sp)
lw gp,0x10(sp)
addu s0,s0,v0
lw v1,0x20(sp)
lw a3,0x1c(sp)
b 0x00066350
_lw a2,0x18(sp)
lw t9,-0x7d7c(gp)
addiu a1,sp,0x20
sw a3,0x1c(sp)
addiu t9,t9,0x610c
bal 0x0006610c
_sw a2,0x18(sp)
lw gp,0x10(sp)
addu s0,s0,v0
lw v1,0x20(sp)
lw a3,0x1c(sp)
b 0x0006638c
_lw a2,0x18(sp)
lw t9,-0x7b28(gp)
jalr t9
_nop
(translation_unit "undefined1 FUN_0006629c(int param_1,int param_2,int *param_3,uint *param_4)\n\n{\n  uint uVar1;\n  byte bVar2;\n  undefined1 uVar4;\n  int iVar3;\n  undefined4 *puVar5;\n  int iVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined *puVar9;\n  uint local_20;\n  undefined4 *local_1c;\n  \n  puVar9 = PTR___stack_chk_guard_00190e24;\n  iVar6 = *param_3;\n  local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;\n  if (iVar6 < param_2) {\n    uVar8 = *param_4;\n    uVar7 = param_4[1];\n    bVar2 = *(byte *)(param_1 + iVar6);\n    local_20 = (uint)bVar2;\n    if ((char)bVar2 < '\0') {\n      iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n      iVar6 = iVar6 + iVar3;\n    }\n    else {\n      iVar6 = iVar6 + 1;\n    }\n    if (local_20 == 1) {\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n        uVar8 = local_20;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }\n      uVar7 = 0;\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n      }\n    }\n    uVar4 = 0;\n    uVar1 = local_20 - 2 & 0x7fffffff;\n    uVar7 = uVar1 + uVar7;\n    param_4[1] = uVar7;\n    *param_4 = (uVar7 < uVar1) + uVar8;\n    *param_3 = iVar6;\n  }\n  else {\n    uVar4 = 1;\n    param_4[1] = 0xffffffff;\n    *param_4 = 0xffffffff;\n  }\n  if (local_1c == *(undefined4 **)puVar9) {\n    return uVar4;\n  }\n  puVar5 = local_1c;\n  puVar9 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  iVar6 = FUN_0006629c(*puVar5,puVar5[1],puVar5 + 2,puVar5 + 4,puVar9 + 0x1324d4);\n  if (iVar6 == 0) {\n    return *(undefined1 *)((int)puVar5 + 0xd);\n  }\n  *(undefined1 *)((int)puVar5 + 0xd) = 1;\n  return 1;\n}\n\n" (function_definition "undefined1 FUN_0006629c(int param_1,int param_2,int *param_3,uint *param_4)\n\n{\n  uint uVar1;\n  byte bVar2;\n  undefined1 uVar4;\n  int iVar3;\n  undefined4 *puVar5;\n  int iVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined *puVar9;\n  uint local_20;\n  undefined4 *local_1c;\n  \n  puVar9 = PTR___stack_chk_guard_00190e24;\n  iVar6 = *param_3;\n  local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;\n  if (iVar6 < param_2) {\n    uVar8 = *param_4;\n    uVar7 = param_4[1];\n    bVar2 = *(byte *)(param_1 + iVar6);\n    local_20 = (uint)bVar2;\n    if ((char)bVar2 < '\0') {\n      iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n      iVar6 = iVar6 + iVar3;\n    }\n    else {\n      iVar6 = iVar6 + 1;\n    }\n    if (local_20 == 1) {\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n        uVar8 = local_20;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }\n      uVar7 = 0;\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n      }\n    }\n    uVar4 = 0;\n    uVar1 = local_20 - 2 & 0x7fffffff;\n    uVar7 = uVar1 + uVar7;\n    param_4[1] = uVar7;\n    *param_4 = (uVar7 < uVar1) + uVar8;\n    *param_3 = iVar6;\n  }\n  else {\n    uVar4 = 1;\n    param_4[1] = 0xffffffff;\n    *param_4 = 0xffffffff;\n  }\n  if (local_1c == *(undefined4 **)puVar9) {\n    return uVar4;\n  }\n  puVar5 = local_1c;\n  puVar9 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  iVar6 = FUN_0006629c(*puVar5,puVar5[1],puVar5 + 2,puVar5 + 4,puVar9 + 0x1324d4);\n  if (iVar6 == 0) {\n    return *(undefined1 *)((int)puVar5 + 0xd);\n  }\n  *(undefined1 *)((int)puVar5 + 0xd) = 1;\n  return 1;\n}" type_identifier (function_declarator "FUN_0006629c(int param_1,int param_2,int *param_3,uint *param_4)" identifier (parameter_list "(int param_1,int param_2,int *param_3,uint *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  byte bVar2;\n  undefined1 uVar4;\n  int iVar3;\n  undefined4 *puVar5;\n  int iVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined *puVar9;\n  uint local_20;\n  undefined4 *local_1c;\n  \n  puVar9 = PTR___stack_chk_guard_00190e24;\n  iVar6 = *param_3;\n  local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;\n  if (iVar6 < param_2) {\n    uVar8 = *param_4;\n    uVar7 = param_4[1];\n    bVar2 = *(byte *)(param_1 + iVar6);\n    local_20 = (uint)bVar2;\n    if ((char)bVar2 < '\0') {\n      iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n      iVar6 = iVar6 + iVar3;\n    }\n    else {\n      iVar6 = iVar6 + 1;\n    }\n    if (local_20 == 1) {\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n        uVar8 = local_20;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }\n      uVar7 = 0;\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n      }\n    }\n    uVar4 = 0;\n    uVar1 = local_20 - 2 & 0x7fffffff;\n    uVar7 = uVar1 + uVar7;\n    param_4[1] = uVar7;\n    *param_4 = (uVar7 < uVar1) + uVar8;\n    *param_3 = iVar6;\n  }\n  else {\n    uVar4 = 1;\n    param_4[1] = 0xffffffff;\n    *param_4 = 0xffffffff;\n  }\n  if (local_1c == *(undefined4 **)puVar9) {\n    return uVar4;\n  }\n  puVar5 = local_1c;\n  puVar9 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  iVar6 = FUN_0006629c(*puVar5,puVar5[1],puVar5 + 2,puVar5 + 4,puVar9 + 0x1324d4);\n  if (iVar6 == 0) {\n    return *(undefined1 *)((int)puVar5 + 0xd);\n  }\n  *(undefined1 *)((int)puVar5 + 0xd) = 1;\n  return 1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "undefined1 uVar4;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "uint local_20;" type_identifier identifier ;) (declaration "undefined4 *local_1c;" type_identifier (pointer_declarator "*local_1c" * identifier) ;) (expression_statement "puVar9 = PTR___stack_chk_guard_00190e24;" (assignment_expression "puVar9 = PTR___stack_chk_guard_00190e24" identifier = identifier) ;) (expression_statement "iVar6 = *param_3;" (assignment_expression "iVar6 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;" (assignment_expression "local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24" identifier = (pointer_expression "*(undefined4 **)PTR___stack_chk_guard_00190e24" * (cast_expression "(undefined4 **)PTR___stack_chk_guard_00190e24" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (iVar6 < param_2) {\n    uVar8 = *param_4;\n    uVar7 = param_4[1];\n    bVar2 = *(byte *)(param_1 + iVar6);\n    local_20 = (uint)bVar2;\n    if ((char)bVar2 < '\0') {\n      iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n      iVar6 = iVar6 + iVar3;\n    }\n    else {\n      iVar6 = iVar6 + 1;\n    }\n    if (local_20 == 1) {\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n        uVar8 = local_20;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }\n      uVar7 = 0;\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n      }\n    }\n    uVar4 = 0;\n    uVar1 = local_20 - 2 & 0x7fffffff;\n    uVar7 = uVar1 + uVar7;\n    param_4[1] = uVar7;\n    *param_4 = (uVar7 < uVar1) + uVar8;\n    *param_3 = iVar6;\n  }\n  else {\n    uVar4 = 1;\n    param_4[1] = 0xffffffff;\n    *param_4 = 0xffffffff;\n  }" if (parenthesized_expression "(iVar6 < param_2)" ( (binary_expression "iVar6 < param_2" identifier < identifier) )) (compound_statement "{\n    uVar8 = *param_4;\n    uVar7 = param_4[1];\n    bVar2 = *(byte *)(param_1 + iVar6);\n    local_20 = (uint)bVar2;\n    if ((char)bVar2 < '\0') {\n      iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n      iVar6 = iVar6 + iVar3;\n    }\n    else {\n      iVar6 = iVar6 + 1;\n    }\n    if (local_20 == 1) {\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n        uVar8 = local_20;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }\n      uVar7 = 0;\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n      }\n    }\n    uVar4 = 0;\n    uVar1 = local_20 - 2 & 0x7fffffff;\n    uVar7 = uVar1 + uVar7;\n    param_4[1] = uVar7;\n    *param_4 = (uVar7 < uVar1) + uVar8;\n    *param_3 = iVar6;\n  }" { (expression_statement "uVar8 = *param_4;" (assignment_expression "uVar8 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "uVar7 = param_4[1];" (assignment_expression "uVar7 = param_4[1]" identifier = (subscript_expression "param_4[1]" identifier [ number_literal ])) ;) (expression_statement "bVar2 = *(byte *)(param_1 + iVar6);" (assignment_expression "bVar2 = *(byte *)(param_1 + iVar6)" identifier = (pointer_expression "*(byte *)(param_1 + iVar6)" * (cast_expression "(byte *)(param_1 + iVar6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar6)" ( (binary_expression "param_1 + iVar6" identifier + identifier) ))))) ;) (expression_statement "local_20 = (uint)bVar2;" (assignment_expression "local_20 = (uint)bVar2" identifier = (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if ((char)bVar2 < '\0') {\n      iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n      iVar6 = iVar6 + iVar3;\n    }\n    else {\n      iVar6 = iVar6 + 1;\n    }" if (parenthesized_expression "((char)bVar2 < '\0')" ( (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n      iVar6 = iVar6 + iVar3;\n    }" { (expression_statement "iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);" (assignment_expression "iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20)" identifier = (call_expression "FUN_0006610c((byte *)(param_1 + iVar6),&local_20)" identifier (argument_list "((byte *)(param_1 + iVar6),&local_20)" ( (cast_expression "(byte *)(param_1 + iVar6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar6)" ( (binary_expression "param_1 + iVar6" identifier + identifier) ))) , (pointer_expression "&local_20" & identifier) )))) ;) (expression_statement "iVar6 = iVar6 + iVar3;" (assignment_expression "iVar6 = iVar6 + iVar3" identifier = (binary_expression "iVar6 + iVar3" identifier + identifier)) ;) }) (else_clause "else {\n      iVar6 = iVar6 + 1;\n    }" else (compound_statement "{\n      iVar6 = iVar6 + 1;\n    }" { (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) }))) (if_statement "if (local_20 == 1) {\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n        uVar8 = local_20;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }\n      uVar7 = 0;\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n      }\n    }" if (parenthesized_expression "(local_20 == 1)" ( (binary_expression "local_20 == 1" identifier == number_literal) )) (compound_statement "{\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n        uVar8 = local_20;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }\n      uVar7 = 0;\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n      }\n    }" { (expression_statement "bVar2 = *(byte *)(param_1 + iVar6);" (assignment_expression "bVar2 = *(byte *)(param_1 + iVar6)" identifier = (pointer_expression "*(byte *)(param_1 + iVar6)" * (cast_expression "(byte *)(param_1 + iVar6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar6)" ( (binary_expression "param_1 + iVar6" identifier + identifier) ))))) ;) (expression_statement "local_20 = (uint)bVar2;" (assignment_expression "local_20 = (uint)bVar2" identifier = (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n        uVar8 = local_20;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }" if (parenthesized_expression "((char)bVar2 < '\0')" ( (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n        uVar8 = local_20;\n      }" { (expression_statement "iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);" (assignment_expression "iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20)" identifier = (call_expression "FUN_0006610c((byte *)(param_1 + iVar6),&local_20)" identifier (argument_list "((byte *)(param_1 + iVar6),&local_20)" ( (cast_expression "(byte *)(param_1 + iVar6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar6)" ( (binary_expression "param_1 + iVar6" identifier + identifier) ))) , (pointer_expression "&local_20" & identifier) )))) ;) (expression_statement "iVar6 = iVar6 + iVar3;" (assignment_expression "iVar6 = iVar6 + iVar3" identifier = (binary_expression "iVar6 + iVar3" identifier + identifier)) ;) (expression_statement "uVar8 = local_20;" (assignment_expression "uVar8 = local_20" identifier = identifier) ;) }) (else_clause "else {\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }" else (compound_statement "{\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }" { (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "uVar8 = local_20;" (assignment_expression "uVar8 = local_20" identifier = identifier) ;) }))) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = *(byte *)(param_1 + iVar6);" (assignment_expression "bVar2 = *(byte *)(param_1 + iVar6)" identifier = (pointer_expression "*(byte *)(param_1 + iVar6)" * (cast_expression "(byte *)(param_1 + iVar6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar6)" ( (binary_expression "param_1 + iVar6" identifier + identifier) ))))) ;) (expression_statement "local_20 = (uint)bVar2;" (assignment_expression "local_20 = (uint)bVar2" identifier = (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n      }" if (parenthesized_expression "((char)bVar2 < '\0')" ( (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n      }" { (expression_statement "iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);" (assignment_expression "iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20)" identifier = (call_expression "FUN_0006610c((byte *)(param_1 + iVar6),&local_20)" identifier (argument_list "((byte *)(param_1 + iVar6),&local_20)" ( (cast_expression "(byte *)(param_1 + iVar6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar6)" ( (binary_expression "param_1 + iVar6" identifier + identifier) ))) , (pointer_expression "&local_20" & identifier) )))) ;) (expression_statement "iVar6 = iVar6 + iVar3;" (assignment_expression "iVar6 = iVar6 + iVar3" identifier = (binary_expression "iVar6 + iVar3" identifier + identifier)) ;) }) (else_clause "else {\n        iVar6 = iVar6 + 1;\n      }" else (compound_statement "{\n        iVar6 = iVar6 + 1;\n      }" { (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) }))) })) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar1 = local_20 - 2 & 0x7fffffff;" (assignment_expression "uVar1 = local_20 - 2 & 0x7fffffff" identifier = (binary_expression "local_20 - 2 & 0x7fffffff" (binary_expression "local_20 - 2" identifier - number_literal) & number_literal)) ;) (expression_statement "uVar7 = uVar1 + uVar7;" (assignment_expression "uVar7 = uVar1 + uVar7" identifier = (binary_expression "uVar1 + uVar7" identifier + identifier)) ;) (expression_statement "param_4[1] = uVar7;" (assignment_expression "param_4[1] = uVar7" (subscript_expression "param_4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_4 = (uVar7 < uVar1) + uVar8;" (assignment_expression "*param_4 = (uVar7 < uVar1) + uVar8" (pointer_expression "*param_4" * identifier) = (binary_expression "(uVar7 < uVar1) + uVar8" (parenthesized_expression "(uVar7 < uVar1)" ( (binary_expression "uVar7 < uVar1" identifier < identifier) )) + identifier)) ;) (expression_statement "*param_3 = iVar6;" (assignment_expression "*param_3 = iVar6" (pointer_expression "*param_3" * identifier) = identifier) ;) }) (else_clause "else {\n    uVar4 = 1;\n    param_4[1] = 0xffffffff;\n    *param_4 = 0xffffffff;\n  }" else (compound_statement "{\n    uVar4 = 1;\n    param_4[1] = 0xffffffff;\n    *param_4 = 0xffffffff;\n  }" { (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (expression_statement "param_4[1] = 0xffffffff;" (assignment_expression "param_4[1] = 0xffffffff" (subscript_expression "param_4[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_4 = 0xffffffff;" (assignment_expression "*param_4 = 0xffffffff" (pointer_expression "*param_4" * identifier) = number_literal) ;) }))) (if_statement "if (local_1c == *(undefined4 **)puVar9) {\n    return uVar4;\n  }" if (parenthesized_expression "(local_1c == *(undefined4 **)puVar9)" ( (binary_expression "local_1c == *(undefined4 **)puVar9" identifier == (pointer_expression "*(undefined4 **)puVar9" * (cast_expression "(undefined4 **)puVar9" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return uVar4;\n  }" { (return_statement "return uVar4;" return identifier ;) })) (expression_statement "puVar5 = local_1c;" (assignment_expression "puVar5 = local_1c" identifier = identifier) ;) (expression_statement "puVar9 = PTR___stack_chk_fail_00190df8;" (assignment_expression "puVar9 = PTR___stack_chk_fail_00190df8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00190df8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00190df8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00190df8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00190df8" * (cast_expression "(code *)PTR___stack_chk_fail_00190df8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar6 = FUN_0006629c(*puVar5,puVar5[1],puVar5 + 2,puVar5 + 4,puVar9 + 0x1324d4);" (assignment_expression "iVar6 = FUN_0006629c(*puVar5,puVar5[1],puVar5 + 2,puVar5 + 4,puVar9 + 0x1324d4)" identifier = (call_expression "FUN_0006629c(*puVar5,puVar5[1],puVar5 + 2,puVar5 + 4,puVar9 + 0x1324d4)" identifier (argument_list "(*puVar5,puVar5[1],puVar5 + 2,puVar5 + 4,puVar9 + 0x1324d4)" ( (pointer_expression "*puVar5" * identifier) , (subscript_expression "puVar5[1]" identifier [ number_literal ]) , (binary_expression "puVar5 + 2" identifier + number_literal) , (binary_expression "puVar5 + 4" identifier + number_literal) , (binary_expression "puVar9 + 0x1324d4" identifier + number_literal) )))) ;) (if_statement "if (iVar6 == 0) {\n    return *(undefined1 *)((int)puVar5 + 0xd);\n  }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n    return *(undefined1 *)((int)puVar5 + 0xd);\n  }" { (return_statement "return *(undefined1 *)((int)puVar5 + 0xd);" return (pointer_expression "*(undefined1 *)((int)puVar5 + 0xd)" * (cast_expression "(undefined1 *)((int)puVar5 + 0xd)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + 0xd)" ( (binary_expression "(int)puVar5 + 0xd" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) (expression_statement "*(undefined1 *)((int)puVar5 + 0xd) = 1;" (assignment_expression "*(undefined1 *)((int)puVar5 + 0xd) = 1" (pointer_expression "*(undefined1 *)((int)puVar5 + 0xd)" * (cast_expression "(undefined1 *)((int)puVar5 + 0xd)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + 0xd)" ( (binary_expression "(int)puVar5 + 0xd" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "int sqlite3Fts5PoslistNext64(u8 *a,int n,int *pi,i64 *piOff)\n\n{\n  uint uVar1;\n  byte bVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  int iVal;\n  undefined4 *puStack_1c;\n  \n  puVar3 = PTR___stack_chk_guard_00190e24;\n  iVar7 = *pi;\n  puStack_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;\n  if (iVar7 < n) {\n    uVar9 = *(uint *)piOff;\n    iVar8 = (int)*piOff;\n    bVar2 = a[iVar7];\n    iVal = (int)bVar2;\n    if ((char)bVar2 < '\0') {\n      iVar4 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);\n      iVar7 = iVar7 + iVar4;\n    }\n    else {\n      iVar7 = iVar7 + 1;\n    }\n    if (iVal == 1) {\n      bVar2 = a[iVar7];\n      iVal = (int)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar8 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);\n        iVar7 = iVar7 + iVar8;\n        uVar9 = iVal;\n      }\n      else {\n        iVar7 = iVar7 + 1;\n        uVar9 = iVal;\n      }\n      iVar8 = 0;\n      bVar2 = a[iVar7];\n      iVal = (int)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar4 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);\n        iVar7 = iVar7 + iVar4;\n      }\n      else {\n        iVar7 = iVar7 + 1;\n      }\n    }\n    iVar4 = 0;\n    uVar1 = iVal - 2U & 0x7fffffff;\n    uVar5 = uVar1 + iVar8;\n    *(uint *)((int)piOff + 4) = uVar5;\n    *(uint *)piOff = (uVar5 < uVar1) + uVar9;\n    *pi = iVar7;\n  }\n  else {\n    iVar4 = 1;\n    *(undefined4 *)((int)piOff + 4) = 0xffffffff;\n    *(undefined4 *)piOff = 0xffffffff;\n  }\n  if (puStack_1c == *(undefined4 **)puVar3) {\n    return iVar4;\n  }\n  puVar6 = puStack_1c;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  iVar7 = sqlite3Fts5PoslistNext64((u8 *)*puVar6,puVar6[1],puVar6 + 2,(i64 *)(puVar6 + 4));\n  if (iVar7 == 0) {\n    return (uint)*(byte *)((int)puVar6 + 0xd);\n  }\n  *(undefined1 *)((int)puVar6 + 0xd) = 1;\n  return 1;\n}\n\n" (function_definition "int sqlite3Fts5PoslistNext64(u8 *a,int n,int *pi,i64 *piOff)\n\n{\n  uint uVar1;\n  byte bVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  int iVal;\n  undefined4 *puStack_1c;\n  \n  puVar3 = PTR___stack_chk_guard_00190e24;\n  iVar7 = *pi;\n  puStack_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;\n  if (iVar7 < n) {\n    uVar9 = *(uint *)piOff;\n    iVar8 = (int)*piOff;\n    bVar2 = a[iVar7];\n    iVal = (int)bVar2;\n    if ((char)bVar2 < '\0') {\n      iVar4 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);\n      iVar7 = iVar7 + iVar4;\n    }\n    else {\n      iVar7 = iVar7 + 1;\n    }\n    if (iVal == 1) {\n      bVar2 = a[iVar7];\n      iVal = (int)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar8 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);\n        iVar7 = iVar7 + iVar8;\n        uVar9 = iVal;\n      }\n      else {\n        iVar7 = iVar7 + 1;\n        uVar9 = iVal;\n      }\n      iVar8 = 0;\n      bVar2 = a[iVar7];\n      iVal = (int)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar4 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);\n        iVar7 = iVar7 + iVar4;\n      }\n      else {\n        iVar7 = iVar7 + 1;\n      }\n    }\n    iVar4 = 0;\n    uVar1 = iVal - 2U & 0x7fffffff;\n    uVar5 = uVar1 + iVar8;\n    *(uint *)((int)piOff + 4) = uVar5;\n    *(uint *)piOff = (uVar5 < uVar1) + uVar9;\n    *pi = iVar7;\n  }\n  else {\n    iVar4 = 1;\n    *(undefined4 *)((int)piOff + 4) = 0xffffffff;\n    *(undefined4 *)piOff = 0xffffffff;\n  }\n  if (puStack_1c == *(undefined4 **)puVar3) {\n    return iVar4;\n  }\n  puVar6 = puStack_1c;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  iVar7 = sqlite3Fts5PoslistNext64((u8 *)*puVar6,puVar6[1],puVar6 + 2,(i64 *)(puVar6 + 4));\n  if (iVar7 == 0) {\n    return (uint)*(byte *)((int)puVar6 + 0xd);\n  }\n  *(undefined1 *)((int)puVar6 + 0xd) = 1;\n  return 1;\n}" primitive_type (function_declarator "sqlite3Fts5PoslistNext64(u8 *a,int n,int *pi,i64 *piOff)" identifier (parameter_list "(u8 *a,int n,int *pi,i64 *piOff)" ( (parameter_declaration "u8 *a" type_identifier (pointer_declarator "*a" * identifier)) , (parameter_declaration "int n" primitive_type identifier) , (parameter_declaration "int *pi" primitive_type (pointer_declarator "*pi" * identifier)) , (parameter_declaration "i64 *piOff" type_identifier (pointer_declarator "*piOff" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  byte bVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  int iVal;\n  undefined4 *puStack_1c;\n  \n  puVar3 = PTR___stack_chk_guard_00190e24;\n  iVar7 = *pi;\n  puStack_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;\n  if (iVar7 < n) {\n    uVar9 = *(uint *)piOff;\n    iVar8 = (int)*piOff;\n    bVar2 = a[iVar7];\n    iVal = (int)bVar2;\n    if ((char)bVar2 < '\0') {\n      iVar4 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);\n      iVar7 = iVar7 + iVar4;\n    }\n    else {\n      iVar7 = iVar7 + 1;\n    }\n    if (iVal == 1) {\n      bVar2 = a[iVar7];\n      iVal = (int)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar8 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);\n        iVar7 = iVar7 + iVar8;\n        uVar9 = iVal;\n      }\n      else {\n        iVar7 = iVar7 + 1;\n        uVar9 = iVal;\n      }\n      iVar8 = 0;\n      bVar2 = a[iVar7];\n      iVal = (int)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar4 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);\n        iVar7 = iVar7 + iVar4;\n      }\n      else {\n        iVar7 = iVar7 + 1;\n      }\n    }\n    iVar4 = 0;\n    uVar1 = iVal - 2U & 0x7fffffff;\n    uVar5 = uVar1 + iVar8;\n    *(uint *)((int)piOff + 4) = uVar5;\n    *(uint *)piOff = (uVar5 < uVar1) + uVar9;\n    *pi = iVar7;\n  }\n  else {\n    iVar4 = 1;\n    *(undefined4 *)((int)piOff + 4) = 0xffffffff;\n    *(undefined4 *)piOff = 0xffffffff;\n  }\n  if (puStack_1c == *(undefined4 **)puVar3) {\n    return iVar4;\n  }\n  puVar6 = puStack_1c;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  iVar7 = sqlite3Fts5PoslistNext64((u8 *)*puVar6,puVar6[1],puVar6 + 2,(i64 *)(puVar6 + 4));\n  if (iVar7 == 0) {\n    return (uint)*(byte *)((int)puVar6 + 0xd);\n  }\n  *(undefined1 *)((int)puVar6 + 0xd) = 1;\n  return 1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVal;" primitive_type identifier ;) (declaration "undefined4 *puStack_1c;" type_identifier (pointer_declarator "*puStack_1c" * identifier) ;) (expression_statement "puVar3 = PTR___stack_chk_guard_00190e24;" (assignment_expression "puVar3 = PTR___stack_chk_guard_00190e24" identifier = identifier) ;) (expression_statement "iVar7 = *pi;" (assignment_expression "iVar7 = *pi" identifier = (pointer_expression "*pi" * identifier)) ;) (expression_statement "puStack_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;" (assignment_expression "puStack_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24" identifier = (pointer_expression "*(undefined4 **)PTR___stack_chk_guard_00190e24" * (cast_expression "(undefined4 **)PTR___stack_chk_guard_00190e24" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (iVar7 < n) {\n    uVar9 = *(uint *)piOff;\n    iVar8 = (int)*piOff;\n    bVar2 = a[iVar7];\n    iVal = (int)bVar2;\n    if ((char)bVar2 < '\0') {\n      iVar4 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);\n      iVar7 = iVar7 + iVar4;\n    }\n    else {\n      iVar7 = iVar7 + 1;\n    }\n    if (iVal == 1) {\n      bVar2 = a[iVar7];\n      iVal = (int)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar8 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);\n        iVar7 = iVar7 + iVar8;\n        uVar9 = iVal;\n      }\n      else {\n        iVar7 = iVar7 + 1;\n        uVar9 = iVal;\n      }\n      iVar8 = 0;\n      bVar2 = a[iVar7];\n      iVal = (int)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar4 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);\n        iVar7 = iVar7 + iVar4;\n      }\n      else {\n        iVar7 = iVar7 + 1;\n      }\n    }\n    iVar4 = 0;\n    uVar1 = iVal - 2U & 0x7fffffff;\n    uVar5 = uVar1 + iVar8;\n    *(uint *)((int)piOff + 4) = uVar5;\n    *(uint *)piOff = (uVar5 < uVar1) + uVar9;\n    *pi = iVar7;\n  }\n  else {\n    iVar4 = 1;\n    *(undefined4 *)((int)piOff + 4) = 0xffffffff;\n    *(undefined4 *)piOff = 0xffffffff;\n  }" if (parenthesized_expression "(iVar7 < n)" ( (binary_expression "iVar7 < n" identifier < identifier) )) (compound_statement "{\n    uVar9 = *(uint *)piOff;\n    iVar8 = (int)*piOff;\n    bVar2 = a[iVar7];\n    iVal = (int)bVar2;\n    if ((char)bVar2 < '\0') {\n      iVar4 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);\n      iVar7 = iVar7 + iVar4;\n    }\n    else {\n      iVar7 = iVar7 + 1;\n    }\n    if (iVal == 1) {\n      bVar2 = a[iVar7];\n      iVal = (int)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar8 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);\n        iVar7 = iVar7 + iVar8;\n        uVar9 = iVal;\n      }\n      else {\n        iVar7 = iVar7 + 1;\n        uVar9 = iVal;\n      }\n      iVar8 = 0;\n      bVar2 = a[iVar7];\n      iVal = (int)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar4 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);\n        iVar7 = iVar7 + iVar4;\n      }\n      else {\n        iVar7 = iVar7 + 1;\n      }\n    }\n    iVar4 = 0;\n    uVar1 = iVal - 2U & 0x7fffffff;\n    uVar5 = uVar1 + iVar8;\n    *(uint *)((int)piOff + 4) = uVar5;\n    *(uint *)piOff = (uVar5 < uVar1) + uVar9;\n    *pi = iVar7;\n  }" { (expression_statement "uVar9 = *(uint *)piOff;" (assignment_expression "uVar9 = *(uint *)piOff" identifier = (pointer_expression "*(uint *)piOff" * (cast_expression "(uint *)piOff" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar8 = (int)*piOff;" (assignment_expression "iVar8 = (int)*piOff" identifier = (cast_expression "(int)*piOff" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*piOff" * identifier))) ;) (expression_statement "bVar2 = a[iVar7];" (assignment_expression "bVar2 = a[iVar7]" identifier = (subscript_expression "a[iVar7]" identifier [ identifier ])) ;) (expression_statement "iVal = (int)bVar2;" (assignment_expression "iVal = (int)bVar2" identifier = (cast_expression "(int)bVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if ((char)bVar2 < '\0') {\n      iVar4 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);\n      iVar7 = iVar7 + iVar4;\n    }\n    else {\n      iVar7 = iVar7 + 1;\n    }" if (parenthesized_expression "((char)bVar2 < '\0')" ( (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar4 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);\n      iVar7 = iVar7 + iVar4;\n    }" { (expression_statement "iVar4 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);" (assignment_expression "iVar4 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal)" identifier = (call_expression "sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal)" identifier (argument_list "(a + iVar7,(u32 *)&iVal)" ( (binary_expression "a + iVar7" identifier + identifier) , (cast_expression "(u32 *)&iVal" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&iVal" & identifier)) )))) ;) (expression_statement "iVar7 = iVar7 + iVar4;" (assignment_expression "iVar7 = iVar7 + iVar4" identifier = (binary_expression "iVar7 + iVar4" identifier + identifier)) ;) }) (else_clause "else {\n      iVar7 = iVar7 + 1;\n    }" else (compound_statement "{\n      iVar7 = iVar7 + 1;\n    }" { (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }))) (if_statement "if (iVal == 1) {\n      bVar2 = a[iVar7];\n      iVal = (int)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar8 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);\n        iVar7 = iVar7 + iVar8;\n        uVar9 = iVal;\n      }\n      else {\n        iVar7 = iVar7 + 1;\n        uVar9 = iVal;\n      }\n      iVar8 = 0;\n      bVar2 = a[iVar7];\n      iVal = (int)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar4 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);\n        iVar7 = iVar7 + iVar4;\n      }\n      else {\n        iVar7 = iVar7 + 1;\n      }\n    }" if (parenthesized_expression "(iVal == 1)" ( (binary_expression "iVal == 1" identifier == number_literal) )) (compound_statement "{\n      bVar2 = a[iVar7];\n      iVal = (int)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar8 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);\n        iVar7 = iVar7 + iVar8;\n        uVar9 = iVal;\n      }\n      else {\n        iVar7 = iVar7 + 1;\n        uVar9 = iVal;\n      }\n      iVar8 = 0;\n      bVar2 = a[iVar7];\n      iVal = (int)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar4 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);\n        iVar7 = iVar7 + iVar4;\n      }\n      else {\n        iVar7 = iVar7 + 1;\n      }\n    }" { (expression_statement "bVar2 = a[iVar7];" (assignment_expression "bVar2 = a[iVar7]" identifier = (subscript_expression "a[iVar7]" identifier [ identifier ])) ;) (expression_statement "iVal = (int)bVar2;" (assignment_expression "iVal = (int)bVar2" identifier = (cast_expression "(int)bVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if ((char)bVar2 < '\0') {\n        iVar8 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);\n        iVar7 = iVar7 + iVar8;\n        uVar9 = iVal;\n      }\n      else {\n        iVar7 = iVar7 + 1;\n        uVar9 = iVal;\n      }" if (parenthesized_expression "((char)bVar2 < '\0')" ( (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar8 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);\n        iVar7 = iVar7 + iVar8;\n        uVar9 = iVal;\n      }" { (expression_statement "iVar8 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);" (assignment_expression "iVar8 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal)" identifier = (call_expression "sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal)" identifier (argument_list "(a + iVar7,(u32 *)&iVal)" ( (binary_expression "a + iVar7" identifier + identifier) , (cast_expression "(u32 *)&iVal" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&iVal" & identifier)) )))) ;) (expression_statement "iVar7 = iVar7 + iVar8;" (assignment_expression "iVar7 = iVar7 + iVar8" identifier = (binary_expression "iVar7 + iVar8" identifier + identifier)) ;) (expression_statement "uVar9 = iVal;" (assignment_expression "uVar9 = iVal" identifier = identifier) ;) }) (else_clause "else {\n        iVar7 = iVar7 + 1;\n        uVar9 = iVal;\n      }" else (compound_statement "{\n        iVar7 = iVar7 + 1;\n        uVar9 = iVal;\n      }" { (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "uVar9 = iVal;" (assignment_expression "uVar9 = iVal" identifier = identifier) ;) }))) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = a[iVar7];" (assignment_expression "bVar2 = a[iVar7]" identifier = (subscript_expression "a[iVar7]" identifier [ identifier ])) ;) (expression_statement "iVal = (int)bVar2;" (assignment_expression "iVal = (int)bVar2" identifier = (cast_expression "(int)bVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if ((char)bVar2 < '\0') {\n        iVar4 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);\n        iVar7 = iVar7 + iVar4;\n      }\n      else {\n        iVar7 = iVar7 + 1;\n      }" if (parenthesized_expression "((char)bVar2 < '\0')" ( (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar4 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);\n        iVar7 = iVar7 + iVar4;\n      }" { (expression_statement "iVar4 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal);" (assignment_expression "iVar4 = sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal)" identifier = (call_expression "sqlite3Fts5GetVarint32(a + iVar7,(u32 *)&iVal)" identifier (argument_list "(a + iVar7,(u32 *)&iVal)" ( (binary_expression "a + iVar7" identifier + identifier) , (cast_expression "(u32 *)&iVal" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&iVal" & identifier)) )))) ;) (expression_statement "iVar7 = iVar7 + iVar4;" (assignment_expression "iVar7 = iVar7 + iVar4" identifier = (binary_expression "iVar7 + iVar4" identifier + identifier)) ;) }) (else_clause "else {\n        iVar7 = iVar7 + 1;\n      }" else (compound_statement "{\n        iVar7 = iVar7 + 1;\n      }" { (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }))) })) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar1 = iVal - 2U & 0x7fffffff;" (assignment_expression "uVar1 = iVal - 2U & 0x7fffffff" identifier = (binary_expression "iVal - 2U & 0x7fffffff" (binary_expression "iVal - 2U" identifier - number_literal) & number_literal)) ;) (expression_statement "uVar5 = uVar1 + iVar8;" (assignment_expression "uVar5 = uVar1 + iVar8" identifier = (binary_expression "uVar1 + iVar8" identifier + identifier)) ;) (expression_statement "*(uint *)((int)piOff + 4) = uVar5;" (assignment_expression "*(uint *)((int)piOff + 4) = uVar5" (pointer_expression "*(uint *)((int)piOff + 4)" * (cast_expression "(uint *)((int)piOff + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piOff + 4)" ( (binary_expression "(int)piOff + 4" (cast_expression "(int)piOff" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)piOff = (uVar5 < uVar1) + uVar9;" (assignment_expression "*(uint *)piOff = (uVar5 < uVar1) + uVar9" (pointer_expression "*(uint *)piOff" * (cast_expression "(uint *)piOff" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "(uVar5 < uVar1) + uVar9" (parenthesized_expression "(uVar5 < uVar1)" ( (binary_expression "uVar5 < uVar1" identifier < identifier) )) + identifier)) ;) (expression_statement "*pi = iVar7;" (assignment_expression "*pi = iVar7" (pointer_expression "*pi" * identifier) = identifier) ;) }) (else_clause "else {\n    iVar4 = 1;\n    *(undefined4 *)((int)piOff + 4) = 0xffffffff;\n    *(undefined4 *)piOff = 0xffffffff;\n  }" else (compound_statement "{\n    iVar4 = 1;\n    *(undefined4 *)((int)piOff + 4) = 0xffffffff;\n    *(undefined4 *)piOff = 0xffffffff;\n  }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (expression_statement "*(undefined4 *)((int)piOff + 4) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)piOff + 4) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)piOff + 4)" * (cast_expression "(undefined4 *)((int)piOff + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piOff + 4)" ( (binary_expression "(int)piOff + 4" (cast_expression "(int)piOff" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)piOff = 0xffffffff;" (assignment_expression "*(undefined4 *)piOff = 0xffffffff" (pointer_expression "*(undefined4 *)piOff" * (cast_expression "(undefined4 *)piOff" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) }))) (if_statement "if (puStack_1c == *(undefined4 **)puVar3) {\n    return iVar4;\n  }" if (parenthesized_expression "(puStack_1c == *(undefined4 **)puVar3)" ( (binary_expression "puStack_1c == *(undefined4 **)puVar3" identifier == (pointer_expression "*(undefined4 **)puVar3" * (cast_expression "(undefined4 **)puVar3" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return iVar4;\n  }" { (return_statement "return iVar4;" return identifier ;) })) (expression_statement "puVar6 = puStack_1c;" (assignment_expression "puVar6 = puStack_1c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00190df8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00190df8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00190df8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00190df8" * (cast_expression "(code *)PTR___stack_chk_fail_00190df8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar7 = sqlite3Fts5PoslistNext64((u8 *)*puVar6,puVar6[1],puVar6 + 2,(i64 *)(puVar6 + 4));" (assignment_expression "iVar7 = sqlite3Fts5PoslistNext64((u8 *)*puVar6,puVar6[1],puVar6 + 2,(i64 *)(puVar6 + 4))" identifier = (call_expression "sqlite3Fts5PoslistNext64((u8 *)*puVar6,puVar6[1],puVar6 + 2,(i64 *)(puVar6 + 4))" identifier (argument_list "((u8 *)*puVar6,puVar6[1],puVar6 + 2,(i64 *)(puVar6 + 4))" ( (cast_expression "(u8 *)*puVar6" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar6" * identifier)) , (subscript_expression "puVar6[1]" identifier [ number_literal ]) , (binary_expression "puVar6 + 2" identifier + number_literal) , (cast_expression "(i64 *)(puVar6 + 4)" ( (type_descriptor "i64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 4)" ( (binary_expression "puVar6 + 4" identifier + number_literal) ))) )))) ;) (if_statement "if (iVar7 == 0) {\n    return (uint)*(byte *)((int)puVar6 + 0xd);\n  }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n    return (uint)*(byte *)((int)puVar6 + 0xd);\n  }" { (return_statement "return (uint)*(byte *)((int)puVar6 + 0xd);" return (binary_expression "(uint)*(byte *)((int)puVar6 + 0xd)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)puVar6 + 0xd)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar6 + 0xd)" ( (binary_expression "(int)puVar6 + 0xd" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) (expression_statement "*(undefined1 *)((int)puVar6 + 0xd) = 1;" (assignment_expression "*(undefined1 *)((int)puVar6 + 0xd) = 1" (pointer_expression "*(undefined1 *)((int)puVar6 + 0xd)" * (cast_expression "(undefined1 *)((int)puVar6 + 0xd)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar6 + 0xd)" ( (binary_expression "(int)puVar6 + 0xd" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined1 FUN_0006629c(int param_1,int param_2,int *param_3,uint *param_4)\n\n{\n  uint uVar1;\n  byte bVar2;\n  undefined1 uVar4;\n  int iVar3;\n  undefined4 *puVar5;\n  int iVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined *puVar9;\n  uint local_20;\n  undefined4 *local_1c;\n  \n  puVar9 = PTR___stack_chk_guard_00190e24;\n  iVar6 = *param_3;\n  local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;\n  if (iVar6 < param_2) {\n    uVar8 = *param_4;\n    uVar7 = param_4[1];\n    bVar2 = *(byte *)(param_1 + iVar6);\n    local_20 = (uint)bVar2;\n    if ((char)bVar2 < '\0') {\n      iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n      iVar6 = iVar6 + iVar3;\n    }\n    else {\n      iVar6 = iVar6 + 1;\n    }\n    if (local_20 == 1) {\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n        uVar8 = local_20;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }\n      uVar7 = 0;\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n      }\n    }\n    uVar4 = 0;\n    uVar1 = local_20 - 2 & 0x7fffffff;\n    uVar7 = uVar1 + uVar7;\n    param_4[1] = uVar7;\n    *param_4 = (uVar7 < uVar1) + uVar8;\n    *param_3 = iVar6;\n  }\n  else {\n    uVar4 = 1;\n    param_4[1] = 0xffffffff;\n    *param_4 = 0xffffffff;\n  }\n  if (local_1c == *(undefined4 **)puVar9) {\n    return uVar4;\n  }\n  puVar5 = local_1c;\n  puVar9 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  iVar6 = FUN_0006629c(*puVar5,puVar5[1],puVar5 + 2,puVar5 + 4,puVar9 + 0x1324d4);\n  if (iVar6 == 0) {\n    return *(undefined1 *)((int)puVar5 + 0xd);\n  }\n  *(undefined1 *)((int)puVar5 + 0xd) = 1;\n  return 1;\n}\n\n" (function_definition "undefined1 FUN_0006629c(int param_1,int param_2,int *param_3,uint *param_4)\n\n{\n  uint uVar1;\n  byte bVar2;\n  undefined1 uVar4;\n  int iVar3;\n  undefined4 *puVar5;\n  int iVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined *puVar9;\n  uint local_20;\n  undefined4 *local_1c;\n  \n  puVar9 = PTR___stack_chk_guard_00190e24;\n  iVar6 = *param_3;\n  local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;\n  if (iVar6 < param_2) {\n    uVar8 = *param_4;\n    uVar7 = param_4[1];\n    bVar2 = *(byte *)(param_1 + iVar6);\n    local_20 = (uint)bVar2;\n    if ((char)bVar2 < '\0') {\n      iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n      iVar6 = iVar6 + iVar3;\n    }\n    else {\n      iVar6 = iVar6 + 1;\n    }\n    if (local_20 == 1) {\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n        uVar8 = local_20;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }\n      uVar7 = 0;\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n      }\n    }\n    uVar4 = 0;\n    uVar1 = local_20 - 2 & 0x7fffffff;\n    uVar7 = uVar1 + uVar7;\n    param_4[1] = uVar7;\n    *param_4 = (uVar7 < uVar1) + uVar8;\n    *param_3 = iVar6;\n  }\n  else {\n    uVar4 = 1;\n    param_4[1] = 0xffffffff;\n    *param_4 = 0xffffffff;\n  }\n  if (local_1c == *(undefined4 **)puVar9) {\n    return uVar4;\n  }\n  puVar5 = local_1c;\n  puVar9 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  iVar6 = FUN_0006629c(*puVar5,puVar5[1],puVar5 + 2,puVar5 + 4,puVar9 + 0x1324d4);\n  if (iVar6 == 0) {\n    return *(undefined1 *)((int)puVar5 + 0xd);\n  }\n  *(undefined1 *)((int)puVar5 + 0xd) = 1;\n  return 1;\n}" type_identifier (function_declarator "FUN_0006629c(int param_1,int param_2,int *param_3,uint *param_4)" identifier (parameter_list "(int param_1,int param_2,int *param_3,uint *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  byte bVar2;\n  undefined1 uVar4;\n  int iVar3;\n  undefined4 *puVar5;\n  int iVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined *puVar9;\n  uint local_20;\n  undefined4 *local_1c;\n  \n  puVar9 = PTR___stack_chk_guard_00190e24;\n  iVar6 = *param_3;\n  local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;\n  if (iVar6 < param_2) {\n    uVar8 = *param_4;\n    uVar7 = param_4[1];\n    bVar2 = *(byte *)(param_1 + iVar6);\n    local_20 = (uint)bVar2;\n    if ((char)bVar2 < '\0') {\n      iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n      iVar6 = iVar6 + iVar3;\n    }\n    else {\n      iVar6 = iVar6 + 1;\n    }\n    if (local_20 == 1) {\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n        uVar8 = local_20;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }\n      uVar7 = 0;\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n      }\n    }\n    uVar4 = 0;\n    uVar1 = local_20 - 2 & 0x7fffffff;\n    uVar7 = uVar1 + uVar7;\n    param_4[1] = uVar7;\n    *param_4 = (uVar7 < uVar1) + uVar8;\n    *param_3 = iVar6;\n  }\n  else {\n    uVar4 = 1;\n    param_4[1] = 0xffffffff;\n    *param_4 = 0xffffffff;\n  }\n  if (local_1c == *(undefined4 **)puVar9) {\n    return uVar4;\n  }\n  puVar5 = local_1c;\n  puVar9 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  iVar6 = FUN_0006629c(*puVar5,puVar5[1],puVar5 + 2,puVar5 + 4,puVar9 + 0x1324d4);\n  if (iVar6 == 0) {\n    return *(undefined1 *)((int)puVar5 + 0xd);\n  }\n  *(undefined1 *)((int)puVar5 + 0xd) = 1;\n  return 1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "undefined1 uVar4;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "uint local_20;" type_identifier identifier ;) (declaration "undefined4 *local_1c;" type_identifier (pointer_declarator "*local_1c" * identifier) ;) (expression_statement "puVar9 = PTR___stack_chk_guard_00190e24;" (assignment_expression "puVar9 = PTR___stack_chk_guard_00190e24" identifier = identifier) ;) (expression_statement "iVar6 = *param_3;" (assignment_expression "iVar6 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;" (assignment_expression "local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24" identifier = (pointer_expression "*(undefined4 **)PTR___stack_chk_guard_00190e24" * (cast_expression "(undefined4 **)PTR___stack_chk_guard_00190e24" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (iVar6 < param_2) {\n    uVar8 = *param_4;\n    uVar7 = param_4[1];\n    bVar2 = *(byte *)(param_1 + iVar6);\n    local_20 = (uint)bVar2;\n    if ((char)bVar2 < '\0') {\n      iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n      iVar6 = iVar6 + iVar3;\n    }\n    else {\n      iVar6 = iVar6 + 1;\n    }\n    if (local_20 == 1) {\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n        uVar8 = local_20;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }\n      uVar7 = 0;\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n      }\n    }\n    uVar4 = 0;\n    uVar1 = local_20 - 2 & 0x7fffffff;\n    uVar7 = uVar1 + uVar7;\n    param_4[1] = uVar7;\n    *param_4 = (uVar7 < uVar1) + uVar8;\n    *param_3 = iVar6;\n  }\n  else {\n    uVar4 = 1;\n    param_4[1] = 0xffffffff;\n    *param_4 = 0xffffffff;\n  }" if (parenthesized_expression "(iVar6 < param_2)" ( (binary_expression "iVar6 < param_2" identifier < identifier) )) (compound_statement "{\n    uVar8 = *param_4;\n    uVar7 = param_4[1];\n    bVar2 = *(byte *)(param_1 + iVar6);\n    local_20 = (uint)bVar2;\n    if ((char)bVar2 < '\0') {\n      iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n      iVar6 = iVar6 + iVar3;\n    }\n    else {\n      iVar6 = iVar6 + 1;\n    }\n    if (local_20 == 1) {\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n        uVar8 = local_20;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }\n      uVar7 = 0;\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n      }\n    }\n    uVar4 = 0;\n    uVar1 = local_20 - 2 & 0x7fffffff;\n    uVar7 = uVar1 + uVar7;\n    param_4[1] = uVar7;\n    *param_4 = (uVar7 < uVar1) + uVar8;\n    *param_3 = iVar6;\n  }" { (expression_statement "uVar8 = *param_4;" (assignment_expression "uVar8 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "uVar7 = param_4[1];" (assignment_expression "uVar7 = param_4[1]" identifier = (subscript_expression "param_4[1]" identifier [ number_literal ])) ;) (expression_statement "bVar2 = *(byte *)(param_1 + iVar6);" (assignment_expression "bVar2 = *(byte *)(param_1 + iVar6)" identifier = (pointer_expression "*(byte *)(param_1 + iVar6)" * (cast_expression "(byte *)(param_1 + iVar6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar6)" ( (binary_expression "param_1 + iVar6" identifier + identifier) ))))) ;) (expression_statement "local_20 = (uint)bVar2;" (assignment_expression "local_20 = (uint)bVar2" identifier = (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if ((char)bVar2 < '\0') {\n      iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n      iVar6 = iVar6 + iVar3;\n    }\n    else {\n      iVar6 = iVar6 + 1;\n    }" if (parenthesized_expression "((char)bVar2 < '\0')" ( (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n      iVar6 = iVar6 + iVar3;\n    }" { (expression_statement "iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);" (assignment_expression "iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20)" identifier = (call_expression "FUN_0006610c((byte *)(param_1 + iVar6),&local_20)" identifier (argument_list "((byte *)(param_1 + iVar6),&local_20)" ( (cast_expression "(byte *)(param_1 + iVar6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar6)" ( (binary_expression "param_1 + iVar6" identifier + identifier) ))) , (pointer_expression "&local_20" & identifier) )))) ;) (expression_statement "iVar6 = iVar6 + iVar3;" (assignment_expression "iVar6 = iVar6 + iVar3" identifier = (binary_expression "iVar6 + iVar3" identifier + identifier)) ;) }) (else_clause "else {\n      iVar6 = iVar6 + 1;\n    }" else (compound_statement "{\n      iVar6 = iVar6 + 1;\n    }" { (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) }))) (if_statement "if (local_20 == 1) {\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n        uVar8 = local_20;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }\n      uVar7 = 0;\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n      }\n    }" if (parenthesized_expression "(local_20 == 1)" ( (binary_expression "local_20 == 1" identifier == number_literal) )) (compound_statement "{\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n        uVar8 = local_20;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }\n      uVar7 = 0;\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n      }\n    }" { (expression_statement "bVar2 = *(byte *)(param_1 + iVar6);" (assignment_expression "bVar2 = *(byte *)(param_1 + iVar6)" identifier = (pointer_expression "*(byte *)(param_1 + iVar6)" * (cast_expression "(byte *)(param_1 + iVar6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar6)" ( (binary_expression "param_1 + iVar6" identifier + identifier) ))))) ;) (expression_statement "local_20 = (uint)bVar2;" (assignment_expression "local_20 = (uint)bVar2" identifier = (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n        uVar8 = local_20;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }" if (parenthesized_expression "((char)bVar2 < '\0')" ( (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n        uVar8 = local_20;\n      }" { (expression_statement "iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);" (assignment_expression "iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20)" identifier = (call_expression "FUN_0006610c((byte *)(param_1 + iVar6),&local_20)" identifier (argument_list "((byte *)(param_1 + iVar6),&local_20)" ( (cast_expression "(byte *)(param_1 + iVar6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar6)" ( (binary_expression "param_1 + iVar6" identifier + identifier) ))) , (pointer_expression "&local_20" & identifier) )))) ;) (expression_statement "iVar6 = iVar6 + iVar3;" (assignment_expression "iVar6 = iVar6 + iVar3" identifier = (binary_expression "iVar6 + iVar3" identifier + identifier)) ;) (expression_statement "uVar8 = local_20;" (assignment_expression "uVar8 = local_20" identifier = identifier) ;) }) (else_clause "else {\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }" else (compound_statement "{\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }" { (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "uVar8 = local_20;" (assignment_expression "uVar8 = local_20" identifier = identifier) ;) }))) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = *(byte *)(param_1 + iVar6);" (assignment_expression "bVar2 = *(byte *)(param_1 + iVar6)" identifier = (pointer_expression "*(byte *)(param_1 + iVar6)" * (cast_expression "(byte *)(param_1 + iVar6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar6)" ( (binary_expression "param_1 + iVar6" identifier + identifier) ))))) ;) (expression_statement "local_20 = (uint)bVar2;" (assignment_expression "local_20 = (uint)bVar2" identifier = (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n      }" if (parenthesized_expression "((char)bVar2 < '\0')" ( (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n      }" { (expression_statement "iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);" (assignment_expression "iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20)" identifier = (call_expression "FUN_0006610c((byte *)(param_1 + iVar6),&local_20)" identifier (argument_list "((byte *)(param_1 + iVar6),&local_20)" ( (cast_expression "(byte *)(param_1 + iVar6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar6)" ( (binary_expression "param_1 + iVar6" identifier + identifier) ))) , (pointer_expression "&local_20" & identifier) )))) ;) (expression_statement "iVar6 = iVar6 + iVar3;" (assignment_expression "iVar6 = iVar6 + iVar3" identifier = (binary_expression "iVar6 + iVar3" identifier + identifier)) ;) }) (else_clause "else {\n        iVar6 = iVar6 + 1;\n      }" else (compound_statement "{\n        iVar6 = iVar6 + 1;\n      }" { (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) }))) })) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar1 = local_20 - 2 & 0x7fffffff;" (assignment_expression "uVar1 = local_20 - 2 & 0x7fffffff" identifier = (binary_expression "local_20 - 2 & 0x7fffffff" (binary_expression "local_20 - 2" identifier - number_literal) & number_literal)) ;) (expression_statement "uVar7 = uVar1 + uVar7;" (assignment_expression "uVar7 = uVar1 + uVar7" identifier = (binary_expression "uVar1 + uVar7" identifier + identifier)) ;) (expression_statement "param_4[1] = uVar7;" (assignment_expression "param_4[1] = uVar7" (subscript_expression "param_4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_4 = (uVar7 < uVar1) + uVar8;" (assignment_expression "*param_4 = (uVar7 < uVar1) + uVar8" (pointer_expression "*param_4" * identifier) = (binary_expression "(uVar7 < uVar1) + uVar8" (parenthesized_expression "(uVar7 < uVar1)" ( (binary_expression "uVar7 < uVar1" identifier < identifier) )) + identifier)) ;) (expression_statement "*param_3 = iVar6;" (assignment_expression "*param_3 = iVar6" (pointer_expression "*param_3" * identifier) = identifier) ;) }) (else_clause "else {\n    uVar4 = 1;\n    param_4[1] = 0xffffffff;\n    *param_4 = 0xffffffff;\n  }" else (compound_statement "{\n    uVar4 = 1;\n    param_4[1] = 0xffffffff;\n    *param_4 = 0xffffffff;\n  }" { (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (expression_statement "param_4[1] = 0xffffffff;" (assignment_expression "param_4[1] = 0xffffffff" (subscript_expression "param_4[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_4 = 0xffffffff;" (assignment_expression "*param_4 = 0xffffffff" (pointer_expression "*param_4" * identifier) = number_literal) ;) }))) (if_statement "if (local_1c == *(undefined4 **)puVar9) {\n    return uVar4;\n  }" if (parenthesized_expression "(local_1c == *(undefined4 **)puVar9)" ( (binary_expression "local_1c == *(undefined4 **)puVar9" identifier == (pointer_expression "*(undefined4 **)puVar9" * (cast_expression "(undefined4 **)puVar9" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return uVar4;\n  }" { (return_statement "return uVar4;" return identifier ;) })) (expression_statement "puVar5 = local_1c;" (assignment_expression "puVar5 = local_1c" identifier = identifier) ;) (expression_statement "puVar9 = PTR___stack_chk_fail_00190df8;" (assignment_expression "puVar9 = PTR___stack_chk_fail_00190df8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00190df8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00190df8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00190df8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00190df8" * (cast_expression "(code *)PTR___stack_chk_fail_00190df8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar6 = FUN_0006629c(*puVar5,puVar5[1],puVar5 + 2,puVar5 + 4,puVar9 + 0x1324d4);" (assignment_expression "iVar6 = FUN_0006629c(*puVar5,puVar5[1],puVar5 + 2,puVar5 + 4,puVar9 + 0x1324d4)" identifier = (call_expression "FUN_0006629c(*puVar5,puVar5[1],puVar5 + 2,puVar5 + 4,puVar9 + 0x1324d4)" identifier (argument_list "(*puVar5,puVar5[1],puVar5 + 2,puVar5 + 4,puVar9 + 0x1324d4)" ( (pointer_expression "*puVar5" * identifier) , (subscript_expression "puVar5[1]" identifier [ number_literal ]) , (binary_expression "puVar5 + 2" identifier + number_literal) , (binary_expression "puVar5 + 4" identifier + number_literal) , (binary_expression "puVar9 + 0x1324d4" identifier + number_literal) )))) ;) (if_statement "if (iVar6 == 0) {\n    return *(undefined1 *)((int)puVar5 + 0xd);\n  }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n    return *(undefined1 *)((int)puVar5 + 0xd);\n  }" { (return_statement "return *(undefined1 *)((int)puVar5 + 0xd);" return (pointer_expression "*(undefined1 *)((int)puVar5 + 0xd)" * (cast_expression "(undefined1 *)((int)puVar5 + 0xd)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + 0xd)" ( (binary_expression "(int)puVar5 + 0xd" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) (expression_statement "*(undefined1 *)((int)puVar5 + 0xd) = 1;" (assignment_expression "*(undefined1 *)((int)puVar5 + 0xd) = 1" (pointer_expression "*(undefined1 *)((int)puVar5 + 0xd)" * (cast_expression "(undefined1 *)((int)puVar5 + 0xd)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + 0xd)" ( (binary_expression "(int)puVar5 + 0xd" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))) , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))) , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))) , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT - LIT) & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (subscript_expression IDENT [ LIT ]) , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) })) (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) ;) (return_statement return LIT ;) })))
(function_definition "undefined1 FUN_0006629c(int param_1,int param_2,int *param_3,uint *param_4)\n\n{\n  uint uVar1;\n  byte bVar2;\n  undefined1 uVar4;\n  int iVar3;\n  undefined4 *puVar5;\n  int iVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined *puVar9;\n  uint local_20;\n  undefined4 *local_1c;\n  \n  puVar9 = PTR___stack_chk_guard_00190e24;\n  iVar6 = *param_3;\n  local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;\n  if (iVar6 < param_2) {\n    uVar8 = *param_4;\n    uVar7 = param_4[1];\n    bVar2 = *(byte *)(param_1 + iVar6);\n    local_20 = (uint)bVar2;\n    if ((char)bVar2 < '\0') {\n      iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n      iVar6 = iVar6 + iVar3;\n    }\n    else {\n      iVar6 = iVar6 + 1;\n    }\n    if (local_20 == 1) {\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n        uVar8 = local_20;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }\n      uVar7 = 0;\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n      }\n    }\n    uVar4 = 0;\n    uVar1 = local_20 - 2 & 0x7fffffff;\n    uVar7 = uVar1 + uVar7;\n    param_4[1] = uVar7;\n    *param_4 = (uVar7 < uVar1) + uVar8;\n    *param_3 = iVar6;\n  }\n  else {\n    uVar4 = 1;\n    param_4[1] = 0xffffffff;\n    *param_4 = 0xffffffff;\n  }\n  if (local_1c == *(undefined4 **)puVar9) {\n    return uVar4;\n  }\n  puVar5 = local_1c;\n  puVar9 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  iVar6 = FUN_0006629c(*puVar5,puVar5[1],puVar5 + 2,puVar5 + 4,puVar9 + 0x1324d4);\n  if (iVar6 == 0) {\n    return *(undefined1 *)((int)puVar5 + 0xd);\n  }\n  *(undefined1 *)((int)puVar5 + 0xd) = 1;\n  return 1;\n}" (type_identifier "undefined1") (function_declarator "FUN_0006629c(int param_1,int param_2,int *param_3,uint *param_4)" (identifier "FUN_0006629c") (parameter_list "(int param_1,int param_2,int *param_3,uint *param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "uint *param_4" (type_identifier "uint") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  byte bVar2;\n  undefined1 uVar4;\n  int iVar3;\n  undefined4 *puVar5;\n  int iVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined *puVar9;\n  uint local_20;\n  undefined4 *local_1c;\n  \n  puVar9 = PTR___stack_chk_guard_00190e24;\n  iVar6 = *param_3;\n  local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;\n  if (iVar6 < param_2) {\n    uVar8 = *param_4;\n    uVar7 = param_4[1];\n    bVar2 = *(byte *)(param_1 + iVar6);\n    local_20 = (uint)bVar2;\n    if ((char)bVar2 < '\0') {\n      iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n      iVar6 = iVar6 + iVar3;\n    }\n    else {\n      iVar6 = iVar6 + 1;\n    }\n    if (local_20 == 1) {\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n        uVar8 = local_20;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }\n      uVar7 = 0;\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n      }\n    }\n    uVar4 = 0;\n    uVar1 = local_20 - 2 & 0x7fffffff;\n    uVar7 = uVar1 + uVar7;\n    param_4[1] = uVar7;\n    *param_4 = (uVar7 < uVar1) + uVar8;\n    *param_3 = iVar6;\n  }\n  else {\n    uVar4 = 1;\n    param_4[1] = 0xffffffff;\n    *param_4 = 0xffffffff;\n  }\n  if (local_1c == *(undefined4 **)puVar9) {\n    return uVar4;\n  }\n  puVar5 = local_1c;\n  puVar9 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  iVar6 = FUN_0006629c(*puVar5,puVar5[1],puVar5 + 2,puVar5 + 4,puVar9 + 0x1324d4);\n  if (iVar6 == 0) {\n    return *(undefined1 *)((int)puVar5 + 0xd);\n  }\n  *(undefined1 *)((int)puVar5 + 0xd) = 1;\n  return 1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "undefined1 uVar4;" (type_identifier "undefined1") (identifier "uVar4") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "undefined *puVar9;" (type_identifier "undefined") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "uint local_20;" (type_identifier "uint") (identifier "local_20") (; ";")) (declaration "undefined4 *local_1c;" (type_identifier "undefined4") (pointer_declarator "*local_1c" (* "*") (identifier "local_1c")) (; ";")) (expression_statement "puVar9 = PTR___stack_chk_guard_00190e24;" (assignment_expression "puVar9 = PTR___stack_chk_guard_00190e24" (identifier "puVar9") (= "=") (identifier "PTR___stack_chk_guard_00190e24")) (; ";")) (expression_statement "iVar6 = *param_3;" (assignment_expression "iVar6 = *param_3" (identifier "iVar6") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;" (assignment_expression "local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24" (identifier "local_1c") (= "=") (pointer_expression "*(undefined4 **)PTR___stack_chk_guard_00190e24" (* "*") (cast_expression "(undefined4 **)PTR___stack_chk_guard_00190e24" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___stack_chk_guard_00190e24")))) (; ";")) (if_statement "if (iVar6 < param_2) {\n    uVar8 = *param_4;\n    uVar7 = param_4[1];\n    bVar2 = *(byte *)(param_1 + iVar6);\n    local_20 = (uint)bVar2;\n    if ((char)bVar2 < '\0') {\n      iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n      iVar6 = iVar6 + iVar3;\n    }\n    else {\n      iVar6 = iVar6 + 1;\n    }\n    if (local_20 == 1) {\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n        uVar8 = local_20;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }\n      uVar7 = 0;\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n      }\n    }\n    uVar4 = 0;\n    uVar1 = local_20 - 2 & 0x7fffffff;\n    uVar7 = uVar1 + uVar7;\n    param_4[1] = uVar7;\n    *param_4 = (uVar7 < uVar1) + uVar8;\n    *param_3 = iVar6;\n  }\n  else {\n    uVar4 = 1;\n    param_4[1] = 0xffffffff;\n    *param_4 = 0xffffffff;\n  }" (if "if") (parenthesized_expression "(iVar6 < param_2)" (( "(") (binary_expression "iVar6 < param_2" (identifier "iVar6") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n    uVar8 = *param_4;\n    uVar7 = param_4[1];\n    bVar2 = *(byte *)(param_1 + iVar6);\n    local_20 = (uint)bVar2;\n    if ((char)bVar2 < '\0') {\n      iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n      iVar6 = iVar6 + iVar3;\n    }\n    else {\n      iVar6 = iVar6 + 1;\n    }\n    if (local_20 == 1) {\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n        uVar8 = local_20;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }\n      uVar7 = 0;\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n      }\n    }\n    uVar4 = 0;\n    uVar1 = local_20 - 2 & 0x7fffffff;\n    uVar7 = uVar1 + uVar7;\n    param_4[1] = uVar7;\n    *param_4 = (uVar7 < uVar1) + uVar8;\n    *param_3 = iVar6;\n  }" ({ "{") (expression_statement "uVar8 = *param_4;" (assignment_expression "uVar8 = *param_4" (identifier "uVar8") (= "=") (pointer_expression "*param_4" (* "*") (identifier "param_4"))) (; ";")) (expression_statement "uVar7 = param_4[1];" (assignment_expression "uVar7 = param_4[1]" (identifier "uVar7") (= "=") (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "bVar2 = *(byte *)(param_1 + iVar6);" (assignment_expression "bVar2 = *(byte *)(param_1 + iVar6)" (identifier "bVar2") (= "=") (pointer_expression "*(byte *)(param_1 + iVar6)" (* "*") (cast_expression "(byte *)(param_1 + iVar6)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar6)" (( "(") (binary_expression "param_1 + iVar6" (identifier "param_1") (+ "+") (identifier "iVar6")) () ")"))))) (; ";")) (expression_statement "local_20 = (uint)bVar2;" (assignment_expression "local_20 = (uint)bVar2" (identifier "local_20") (= "=") (cast_expression "(uint)bVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar2"))) (; ";")) (if_statement "if ((char)bVar2 < '\0') {\n      iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n      iVar6 = iVar6 + iVar3;\n    }\n    else {\n      iVar6 = iVar6 + 1;\n    }" (if "if") (parenthesized_expression "((char)bVar2 < '\0')" (( "(") (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "bVar2")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n      iVar6 = iVar6 + iVar3;\n    }" ({ "{") (expression_statement "iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);" (assignment_expression "iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20)" (identifier "iVar3") (= "=") (call_expression "FUN_0006610c((byte *)(param_1 + iVar6),&local_20)" (identifier "FUN_0006610c") (argument_list "((byte *)(param_1 + iVar6),&local_20)" (( "(") (cast_expression "(byte *)(param_1 + iVar6)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar6)" (( "(") (binary_expression "param_1 + iVar6" (identifier "param_1") (+ "+") (identifier "iVar6")) () ")"))) (, ",") (pointer_expression "&local_20" (& "&") (identifier "local_20")) () ")")))) (; ";")) (expression_statement "iVar6 = iVar6 + iVar3;" (assignment_expression "iVar6 = iVar6 + iVar3" (identifier "iVar6") (= "=") (binary_expression "iVar6 + iVar3" (identifier "iVar6") (+ "+") (identifier "iVar3"))) (; ";")) (} "}")) (else_clause "else {\n      iVar6 = iVar6 + 1;\n    }" (else "else") (compound_statement "{\n      iVar6 = iVar6 + 1;\n    }" ({ "{") (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (if_statement "if (local_20 == 1) {\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n        uVar8 = local_20;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }\n      uVar7 = 0;\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n      }\n    }" (if "if") (parenthesized_expression "(local_20 == 1)" (( "(") (binary_expression "local_20 == 1" (identifier "local_20") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n        uVar8 = local_20;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }\n      uVar7 = 0;\n      bVar2 = *(byte *)(param_1 + iVar6);\n      local_20 = (uint)bVar2;\n      if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n      }\n    }" ({ "{") (expression_statement "bVar2 = *(byte *)(param_1 + iVar6);" (assignment_expression "bVar2 = *(byte *)(param_1 + iVar6)" (identifier "bVar2") (= "=") (pointer_expression "*(byte *)(param_1 + iVar6)" (* "*") (cast_expression "(byte *)(param_1 + iVar6)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar6)" (( "(") (binary_expression "param_1 + iVar6" (identifier "param_1") (+ "+") (identifier "iVar6")) () ")"))))) (; ";")) (expression_statement "local_20 = (uint)bVar2;" (assignment_expression "local_20 = (uint)bVar2" (identifier "local_20") (= "=") (cast_expression "(uint)bVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar2"))) (; ";")) (if_statement "if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n        uVar8 = local_20;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }" (if "if") (parenthesized_expression "((char)bVar2 < '\0')" (( "(") (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "bVar2")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n        uVar8 = local_20;\n      }" ({ "{") (expression_statement "iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);" (assignment_expression "iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20)" (identifier "iVar3") (= "=") (call_expression "FUN_0006610c((byte *)(param_1 + iVar6),&local_20)" (identifier "FUN_0006610c") (argument_list "((byte *)(param_1 + iVar6),&local_20)" (( "(") (cast_expression "(byte *)(param_1 + iVar6)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar6)" (( "(") (binary_expression "param_1 + iVar6" (identifier "param_1") (+ "+") (identifier "iVar6")) () ")"))) (, ",") (pointer_expression "&local_20" (& "&") (identifier "local_20")) () ")")))) (; ";")) (expression_statement "iVar6 = iVar6 + iVar3;" (assignment_expression "iVar6 = iVar6 + iVar3" (identifier "iVar6") (= "=") (binary_expression "iVar6 + iVar3" (identifier "iVar6") (+ "+") (identifier "iVar3"))) (; ";")) (expression_statement "uVar8 = local_20;" (assignment_expression "uVar8 = local_20" (identifier "uVar8") (= "=") (identifier "local_20")) (; ";")) (} "}")) (else_clause "else {\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }" (else "else") (compound_statement "{\n        iVar6 = iVar6 + 1;\n        uVar8 = local_20;\n      }" ({ "{") (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar8 = local_20;" (assignment_expression "uVar8 = local_20" (identifier "uVar8") (= "=") (identifier "local_20")) (; ";")) (} "}")))) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "bVar2 = *(byte *)(param_1 + iVar6);" (assignment_expression "bVar2 = *(byte *)(param_1 + iVar6)" (identifier "bVar2") (= "=") (pointer_expression "*(byte *)(param_1 + iVar6)" (* "*") (cast_expression "(byte *)(param_1 + iVar6)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar6)" (( "(") (binary_expression "param_1 + iVar6" (identifier "param_1") (+ "+") (identifier "iVar6")) () ")"))))) (; ";")) (expression_statement "local_20 = (uint)bVar2;" (assignment_expression "local_20 = (uint)bVar2" (identifier "local_20") (= "=") (cast_expression "(uint)bVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar2"))) (; ";")) (if_statement "if ((char)bVar2 < '\0') {\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n      }\n      else {\n        iVar6 = iVar6 + 1;\n      }" (if "if") (parenthesized_expression "((char)bVar2 < '\0')" (( "(") (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "bVar2")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);\n        iVar6 = iVar6 + iVar3;\n      }" ({ "{") (expression_statement "iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);" (assignment_expression "iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20)" (identifier "iVar3") (= "=") (call_expression "FUN_0006610c((byte *)(param_1 + iVar6),&local_20)" (identifier "FUN_0006610c") (argument_list "((byte *)(param_1 + iVar6),&local_20)" (( "(") (cast_expression "(byte *)(param_1 + iVar6)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar6)" (( "(") (binary_expression "param_1 + iVar6" (identifier "param_1") (+ "+") (identifier "iVar6")) () ")"))) (, ",") (pointer_expression "&local_20" (& "&") (identifier "local_20")) () ")")))) (; ";")) (expression_statement "iVar6 = iVar6 + iVar3;" (assignment_expression "iVar6 = iVar6 + iVar3" (identifier "iVar6") (= "=") (binary_expression "iVar6 + iVar3" (identifier "iVar6") (+ "+") (identifier "iVar3"))) (; ";")) (} "}")) (else_clause "else {\n        iVar6 = iVar6 + 1;\n      }" (else "else") (compound_statement "{\n        iVar6 = iVar6 + 1;\n      }" ({ "{") (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar1 = local_20 - 2 & 0x7fffffff;" (assignment_expression "uVar1 = local_20 - 2 & 0x7fffffff" (identifier "uVar1") (= "=") (binary_expression "local_20 - 2 & 0x7fffffff" (binary_expression "local_20 - 2" (identifier "local_20") (- "-") (number_literal "2")) (& "&") (number_literal "0x7fffffff"))) (; ";")) (expression_statement "uVar7 = uVar1 + uVar7;" (assignment_expression "uVar7 = uVar1 + uVar7" (identifier "uVar7") (= "=") (binary_expression "uVar1 + uVar7" (identifier "uVar1") (+ "+") (identifier "uVar7"))) (; ";")) (expression_statement "param_4[1] = uVar7;" (assignment_expression "param_4[1] = uVar7" (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "*param_4 = (uVar7 < uVar1) + uVar8;" (assignment_expression "*param_4 = (uVar7 < uVar1) + uVar8" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (binary_expression "(uVar7 < uVar1) + uVar8" (parenthesized_expression "(uVar7 < uVar1)" (( "(") (binary_expression "uVar7 < uVar1" (identifier "uVar7") (< "<") (identifier "uVar1")) () ")")) (+ "+") (identifier "uVar8"))) (; ";")) (expression_statement "*param_3 = iVar6;" (assignment_expression "*param_3 = iVar6" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "iVar6")) (; ";")) (} "}")) (else_clause "else {\n    uVar4 = 1;\n    param_4[1] = 0xffffffff;\n    *param_4 = 0xffffffff;\n  }" (else "else") (compound_statement "{\n    uVar4 = 1;\n    param_4[1] = 0xffffffff;\n    *param_4 = 0xffffffff;\n  }" ({ "{") (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" (identifier "uVar4") (= "=") (number_literal "1")) (; ";")) (expression_statement "param_4[1] = 0xffffffff;" (assignment_expression "param_4[1] = 0xffffffff" (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*param_4 = 0xffffffff;" (assignment_expression "*param_4 = 0xffffffff" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "0xffffffff")) (; ";")) (} "}")))) (if_statement "if (local_1c == *(undefined4 **)puVar9) {\n    return uVar4;\n  }" (if "if") (parenthesized_expression "(local_1c == *(undefined4 **)puVar9)" (( "(") (binary_expression "local_1c == *(undefined4 **)puVar9" (identifier "local_1c") (== "==") (pointer_expression "*(undefined4 **)puVar9" (* "*") (cast_expression "(undefined4 **)puVar9" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar9")))) () ")")) (compound_statement "{\n    return uVar4;\n  }" ({ "{") (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}"))) (expression_statement "puVar5 = local_1c;" (assignment_expression "puVar5 = local_1c" (identifier "puVar5") (= "=") (identifier "local_1c")) (; ";")) (expression_statement "puVar9 = PTR___stack_chk_fail_00190df8;" (assignment_expression "puVar9 = PTR___stack_chk_fail_00190df8" (identifier "puVar9") (= "=") (identifier "PTR___stack_chk_fail_00190df8")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_00190df8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00190df8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00190df8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_00190df8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_00190df8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_00190df8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar6 = FUN_0006629c(*puVar5,puVar5[1],puVar5 + 2,puVar5 + 4,puVar9 + 0x1324d4);" (assignment_expression "iVar6 = FUN_0006629c(*puVar5,puVar5[1],puVar5 + 2,puVar5 + 4,puVar9 + 0x1324d4)" (identifier "iVar6") (= "=") (call_expression "FUN_0006629c(*puVar5,puVar5[1],puVar5 + 2,puVar5 + 4,puVar9 + 0x1324d4)" (identifier "FUN_0006629c") (argument_list "(*puVar5,puVar5[1],puVar5 + 2,puVar5 + 4,puVar9 + 0x1324d4)" (( "(") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (, ",") (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (, ",") (binary_expression "puVar5 + 2" (identifier "puVar5") (+ "+") (number_literal "2")) (, ",") (binary_expression "puVar5 + 4" (identifier "puVar5") (+ "+") (number_literal "4")) (, ",") (binary_expression "puVar9 + 0x1324d4" (identifier "puVar9") (+ "+") (number_literal "0x1324d4")) () ")")))) (; ";")) (if_statement "if (iVar6 == 0) {\n    return *(undefined1 *)((int)puVar5 + 0xd);\n  }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return *(undefined1 *)((int)puVar5 + 0xd);\n  }" ({ "{") (return_statement "return *(undefined1 *)((int)puVar5 + 0xd);" (return "return") (pointer_expression "*(undefined1 *)((int)puVar5 + 0xd)" (* "*") (cast_expression "(undefined1 *)((int)puVar5 + 0xd)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar5 + 0xd)" (( "(") (binary_expression "(int)puVar5 + 0xd" (cast_expression "(int)puVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar5")) (+ "+") (number_literal "0xd")) () ")")))) (; ";")) (} "}"))) (expression_statement "*(undefined1 *)((int)puVar5 + 0xd) = 1;" (assignment_expression "*(undefined1 *)((int)puVar5 + 0xd) = 1" (pointer_expression "*(undefined1 *)((int)puVar5 + 0xd)" (* "*") (cast_expression "(undefined1 *)((int)puVar5 + 0xd)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar5 + 0xd)" (( "(") (binary_expression "(int)puVar5 + 0xd" (cast_expression "(int)puVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar5")) (+ "+") (number_literal "0xd")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) 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: (identifier)) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (subscript_expression argument: (identifier) index: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (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)))))))) (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))) (return_statement (number_literal)))))

undefined1 MASKED(int param_1,int param_2,int *param_3,uint *param_4)

{
  uint uVar1;
  byte bVar2;
  undefined1 uVar4;
  int iVar3;
  undefined4 *puVar5;
  int iVar6;
  uint uVar7;
  uint uVar8;
  undefined *puVar9;
  uint local_20;
  undefined4 *local_1c;
  
  puVar9 = PTR___stack_chk_guard_00190e24;
  iVar6 = *param_3;
  local_1c = *(undefined4 **)PTR___stack_chk_guard_00190e24;
  if (iVar6 < param_2) {
    uVar8 = *param_4;
    uVar7 = param_4[1];
    bVar2 = *(byte *)(param_1 + iVar6);
    local_20 = (uint)bVar2;
    if ((char)bVar2 < '\0') {
      iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);
      iVar6 = iVar6 + iVar3;
    }
    else {
      iVar6 = iVar6 + 1;
    }
    if (local_20 == 1) {
      bVar2 = *(byte *)(param_1 + iVar6);
      local_20 = (uint)bVar2;
      if ((char)bVar2 < '\0') {
        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);
        iVar6 = iVar6 + iVar3;
        uVar8 = local_20;
      }
      else {
        iVar6 = iVar6 + 1;
        uVar8 = local_20;
      }
      uVar7 = 0;
      bVar2 = *(byte *)(param_1 + iVar6);
      local_20 = (uint)bVar2;
      if ((char)bVar2 < '\0') {
        iVar3 = FUN_0006610c((byte *)(param_1 + iVar6),&local_20);
        iVar6 = iVar6 + iVar3;
      }
      else {
        iVar6 = iVar6 + 1;
      }
    }
    uVar4 = 0;
    uVar1 = local_20 - 2 & 0x7fffffff;
    uVar7 = uVar1 + uVar7;
    param_4[1] = uVar7;
    *param_4 = (uVar7 < uVar1) + uVar8;
    *param_3 = iVar6;
  }
  else {
    uVar4 = 1;
    param_4[1] = 0xffffffff;
    *param_4 = 0xffffffff;
  }
  if (local_1c == *(undefined4 **)puVar9) {
    return uVar4;
  }
  puVar5 = local_1c;
  puVar9 = PTR___stack_chk_fail_00190df8;
  (*(code *)PTR___stack_chk_fail_00190df8)();
  iVar6 = MASKED(*puVar5,puVar5[1],puVar5 + 2,puVar5 + 4,puVar9 + 0x1324d4);
  if (iVar6 == 0) {
    return *(undefined1 *)((int)puVar5 + 0xd);
  }
  *(undefined1 *)((int)puVar5 + 0xd) = 1;
  return 1;
}

