
void fts5SegIterReverseNewPage(Fts5Index *p,Fts5SegIter *pIter)

{
  byte bVar1;
  Fts5Data *p_00;
  Fts5Data *pFVar2;
  ushort uVar3;
  ulong uVar4;
  int iVar5;
  
  sqlite3_free(pIter->pLeaf);
  pIter->pLeaf = (Fts5Data *)0x0;
LAB_001cc47c:
  do {
    if ((p->rc != 0) || (pIter->iLeafPgno <= pIter->iTermLeafPgno)) goto LAB_001cc483;
    iVar5 = pIter->iLeafPgno + -1;
    pIter->iLeafPgno = iVar5;
    p_00 = fts5DataRead(p,(long)iVar5 + ((long)pIter->pSeg->iSegid << 0x25));
  } while (p_00 == (Fts5Data *)0x0);
  if (pIter->iLeafPgno == pIter->iTermLeafPgno) {
    uVar4 = (ulong)pIter->iTermLeafOffset;
    if (p_00->szLeaf <= pIter->iTermLeafOffset) goto LAB_001cc4f9;
LAB_001cc4cd:
    pIter->pLeaf = p_00;
    pIter->iLeafOffset = (int)uVar4;
    pFVar2 = p_00;
  }
  else {
    uVar3 = (ushort)*p_00->p * 0x100 + (ushort)p_00->p[1];
    if (uVar3 != 0) {
      uVar4 = (ulong)uVar3;
      goto LAB_001cc4cd;
    }
LAB_001cc4f9:
    pFVar2 = pIter->pLeaf;
    if (pFVar2 == (Fts5Data *)0x0) {
      sqlite3_free(p_00);
      goto LAB_001cc47c;
    }
    uVar4 = (ulong)pIter->iLeafOffset;
  }
  bVar1 = sqlite3GetVarint(pFVar2->p + uVar4,(u64 *)&pIter->iRowid);
  pIter->iLeafOffset = pIter->iLeafOffset + (uint)bVar1;
LAB_001cc483:
  if (pIter->pLeaf != (Fts5Data *)0x0) {
    pIter->iEndofDoclist = pIter->pLeaf->nn + 1;
    fts5SegIterReverseInitPage(p,pIter);
    return;
  }
  return;
}



void FUN_001cc430(long param_1,undefined8 *param_2)

{
  byte bVar1;
  long *plVar2;
  long *plVar3;
  ushort uVar4;
  ulong uVar5;
  int iVar6;
  
  FUN_00119e00(param_2[2]);
  param_2[2] = 0;
LAB_001cc47c:
  do {
    if ((*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)))
    goto LAB_001cc483;
    iVar6 = *(int *)((long)param_2 + 0xc) + -1;
    *(int *)((long)param_2 + 0xc) = iVar6;
    plVar2 = (long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25));
  } while (plVar2 == (long *)0x0);
  if (*(int *)((long)param_2 + 0xc) == *(int *)(param_2 + 6)) {
    uVar5 = (ulong)*(int *)((long)param_2 + 0x34);
    if (*(int *)((long)plVar2 + 0xc) <= *(int *)((long)param_2 + 0x34)) goto LAB_001cc4f9;
LAB_001cc4cd:
    param_2[2] = plVar2;
    *(int *)(param_2 + 4) = (int)uVar5;
    plVar3 = plVar2;
  }
  else {
    uVar4 = (ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1];
    if (uVar4 != 0) {
      uVar5 = (ulong)uVar4;
      goto LAB_001cc4cd;
    }
LAB_001cc4f9:
    plVar3 = (long *)param_2[2];
    if (plVar3 == (long *)0x0) {
      FUN_00119e00(plVar2);
      goto LAB_001cc47c;
    }
    uVar5 = (ulong)*(int *)(param_2 + 4);
  }
  bVar1 = FUN_00110120(uVar5 + *plVar3,param_2 + 0xd);
  *(uint *)(param_2 + 4) = *(int *)(param_2 + 4) + (uint)bVar1;
LAB_001cc483:
  if (param_2[2] != 0) {
    *(int *)((long)param_2 + 0x3c) = *(int *)(param_2[2] + 8) + 1;
    FUN_0015c140(param_1,param_2);
    return;
  }
  return;
}


PUSH RBP
MOV RBP,RSI
PUSH RBX
MOV RBX,RDI
SUB RSP,0x8
MOV RDI,qword ptr [RSI + 0x10]
CALL 0x00119e00
MOV qword ptr [RBP + 0x10],0x0
JMP 0x001cc47c
MOV ESI,dword ptr [RBP + 0xc]
CMP ESI,dword ptr [RBP + 0x30]
JLE 0x001cc483
MOV RAX,qword ptr [RBP]
SUB ESI,0x1
MOV RDI,RBX
MOV dword ptr [RBP + 0xc],ESI
MOVSXD RSI,ESI
MOVSXD RAX,dword ptr [RAX]
SHL RAX,0x25
ADD RSI,RAX
CALL 0x001cb0c0
TEST RAX,RAX
JNZ 0x001cc4b0
MOV EAX,dword ptr [RBX + 0x34]
TEST EAX,EAX
JZ 0x001cc450
MOV RAX,qword ptr [RBP + 0x10]
TEST RAX,RAX
JZ 0x001cc510
MOV EAX,dword ptr [RAX + 0x8]
MOV RSI,RBP
MOV RDI,RBX
ADD EAX,0x1
MOV dword ptr [RBP + 0x3c],EAX
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x0015c140
MOV EDX,dword ptr [RBP + 0x30]
CMP dword ptr [RBP + 0xc],EDX
JZ 0x001cc4f0
MOV RCX,qword ptr [RAX]
MOVZX EDX,byte ptr [RCX]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL EDX,0x8
ADD DX,CX
JZ 0x001cc4f9
MOVZX EDX,DX
MOV qword ptr [RBP + 0x10],RAX
MOV dword ptr [RBP + 0x20],EDX
ADD RDX,qword ptr [RAX]
LEA RSI,[RBP + 0x68]
MOV RDI,RDX
CALL 0x00110120
MOVZX EAX,AL
ADD dword ptr [RBP + 0x20],EAX
JMP 0x001cc483
MOVSXD RDX,dword ptr [RBP + 0x34]
CMP EDX,dword ptr [RAX + 0xc]
JL 0x001cc4cd
MOV RCX,qword ptr [RBP + 0x10]
TEST RCX,RCX
JNZ 0x001cc517
MOV RDI,RAX
CALL 0x00119e00
JMP 0x001cc47c
ADD RSP,0x8
POP RBX
POP RBP
RET
MOVSXD RDX,dword ptr [RBP + 0x20]
MOV RAX,RCX
JMP 0x001cc4d4
(translation_unit "void FUN_001cc430(long param_1,undefined8 *param_2)\n\n{\n  byte bVar1;\n  long *plVar2;\n  long *plVar3;\n  ushort uVar4;\n  ulong uVar5;\n  int iVar6;\n  \n  FUN_00119e00(param_2[2]);\n  param_2[2] = 0;\nLAB_001cc47c:\n  do {\n    if ((*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)))\n    goto LAB_001cc483;\n    iVar6 = *(int *)((long)param_2 + 0xc) + -1;\n    *(int *)((long)param_2 + 0xc) = iVar6;\n    plVar2 = (long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25));\n  } while (plVar2 == (long *)0x0);\n  if (*(int *)((long)param_2 + 0xc) == *(int *)(param_2 + 6)) {\n    uVar5 = (ulong)*(int *)((long)param_2 + 0x34);\n    if (*(int *)((long)plVar2 + 0xc) <= *(int *)((long)param_2 + 0x34)) goto LAB_001cc4f9;\nLAB_001cc4cd:\n    param_2[2] = plVar2;\n    *(int *)(param_2 + 4) = (int)uVar5;\n    plVar3 = plVar2;\n  }\n  else {\n    uVar4 = (ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1];\n    if (uVar4 != 0) {\n      uVar5 = (ulong)uVar4;\n      goto LAB_001cc4cd;\n    }\nLAB_001cc4f9:\n    plVar3 = (long *)param_2[2];\n    if (plVar3 == (long *)0x0) {\n      FUN_00119e00(plVar2);\n      goto LAB_001cc47c;\n    }\n    uVar5 = (ulong)*(int *)(param_2 + 4);\n  }\n  bVar1 = FUN_00110120(uVar5 + *plVar3,param_2 + 0xd);\n  *(uint *)(param_2 + 4) = *(int *)(param_2 + 4) + (uint)bVar1;\nLAB_001cc483:\n  if (param_2[2] != 0) {\n    *(int *)((long)param_2 + 0x3c) = *(int *)(param_2[2] + 8) + 1;\n    FUN_0015c140(param_1,param_2);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_001cc430(long param_1,undefined8 *param_2)\n\n{\n  byte bVar1;\n  long *plVar2;\n  long *plVar3;\n  ushort uVar4;\n  ulong uVar5;\n  int iVar6;\n  \n  FUN_00119e00(param_2[2]);\n  param_2[2] = 0;\nLAB_001cc47c:\n  do {\n    if ((*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)))\n    goto LAB_001cc483;\n    iVar6 = *(int *)((long)param_2 + 0xc) + -1;\n    *(int *)((long)param_2 + 0xc) = iVar6;\n    plVar2 = (long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25));\n  } while (plVar2 == (long *)0x0);\n  if (*(int *)((long)param_2 + 0xc) == *(int *)(param_2 + 6)) {\n    uVar5 = (ulong)*(int *)((long)param_2 + 0x34);\n    if (*(int *)((long)plVar2 + 0xc) <= *(int *)((long)param_2 + 0x34)) goto LAB_001cc4f9;\nLAB_001cc4cd:\n    param_2[2] = plVar2;\n    *(int *)(param_2 + 4) = (int)uVar5;\n    plVar3 = plVar2;\n  }\n  else {\n    uVar4 = (ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1];\n    if (uVar4 != 0) {\n      uVar5 = (ulong)uVar4;\n      goto LAB_001cc4cd;\n    }\nLAB_001cc4f9:\n    plVar3 = (long *)param_2[2];\n    if (plVar3 == (long *)0x0) {\n      FUN_00119e00(plVar2);\n      goto LAB_001cc47c;\n    }\n    uVar5 = (ulong)*(int *)(param_2 + 4);\n  }\n  bVar1 = FUN_00110120(uVar5 + *plVar3,param_2 + 0xd);\n  *(uint *)(param_2 + 4) = *(int *)(param_2 + 4) + (uint)bVar1;\nLAB_001cc483:\n  if (param_2[2] != 0) {\n    *(int *)((long)param_2 + 0x3c) = *(int *)(param_2[2] + 8) + 1;\n    FUN_0015c140(param_1,param_2);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001cc430(long param_1,undefined8 *param_2)" identifier (parameter_list "(long param_1,undefined8 *param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  long *plVar2;\n  long *plVar3;\n  ushort uVar4;\n  ulong uVar5;\n  int iVar6;\n  \n  FUN_00119e00(param_2[2]);\n  param_2[2] = 0;\nLAB_001cc47c:\n  do {\n    if ((*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)))\n    goto LAB_001cc483;\n    iVar6 = *(int *)((long)param_2 + 0xc) + -1;\n    *(int *)((long)param_2 + 0xc) = iVar6;\n    plVar2 = (long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25));\n  } while (plVar2 == (long *)0x0);\n  if (*(int *)((long)param_2 + 0xc) == *(int *)(param_2 + 6)) {\n    uVar5 = (ulong)*(int *)((long)param_2 + 0x34);\n    if (*(int *)((long)plVar2 + 0xc) <= *(int *)((long)param_2 + 0x34)) goto LAB_001cc4f9;\nLAB_001cc4cd:\n    param_2[2] = plVar2;\n    *(int *)(param_2 + 4) = (int)uVar5;\n    plVar3 = plVar2;\n  }\n  else {\n    uVar4 = (ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1];\n    if (uVar4 != 0) {\n      uVar5 = (ulong)uVar4;\n      goto LAB_001cc4cd;\n    }\nLAB_001cc4f9:\n    plVar3 = (long *)param_2[2];\n    if (plVar3 == (long *)0x0) {\n      FUN_00119e00(plVar2);\n      goto LAB_001cc47c;\n    }\n    uVar5 = (ulong)*(int *)(param_2 + 4);\n  }\n  bVar1 = FUN_00110120(uVar5 + *plVar3,param_2 + 0xd);\n  *(uint *)(param_2 + 4) = *(int *)(param_2 + 4) + (uint)bVar1;\nLAB_001cc483:\n  if (param_2[2] != 0) {\n    *(int *)((long)param_2 + 0x3c) = *(int *)(param_2[2] + 8) + 1;\n    FUN_0015c140(param_1,param_2);\n    return;\n  }\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "long *plVar3;" (sized_type_specifier "long" long) (pointer_declarator "*plVar3" * identifier) ;) (declaration "ushort uVar4;" type_identifier identifier ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "FUN_00119e00(param_2[2]);" (call_expression "FUN_00119e00(param_2[2])" identifier (argument_list "(param_2[2])" ( (subscript_expression "param_2[2]" identifier [ number_literal ]) ))) ;) (expression_statement "param_2[2] = 0;" (assignment_expression "param_2[2] = 0" (subscript_expression "param_2[2]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "LAB_001cc47c:\n  do {\n    if ((*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)))\n    goto LAB_001cc483;\n    iVar6 = *(int *)((long)param_2 + 0xc) + -1;\n    *(int *)((long)param_2 + 0xc) = iVar6;\n    plVar2 = (long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25));\n  } while (plVar2 == (long *)0x0);" statement_identifier : (do_statement "do {\n    if ((*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)))\n    goto LAB_001cc483;\n    iVar6 = *(int *)((long)param_2 + 0xc) + -1;\n    *(int *)((long)param_2 + 0xc) = iVar6;\n    plVar2 = (long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25));\n  } while (plVar2 == (long *)0x0);" do (compound_statement "{\n    if ((*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)))\n    goto LAB_001cc483;\n    iVar6 = *(int *)((long)param_2 + 0xc) + -1;\n    *(int *)((long)param_2 + 0xc) = iVar6;\n    plVar2 = (long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25));\n  }" { (if_statement "if ((*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)))\n    goto LAB_001cc483;" if (parenthesized_expression "((*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)))" ( (binary_expression "(*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6))" (parenthesized_expression "(*(int *)(param_1 + 0x34) != 0)" ( (binary_expression "*(int *)(param_1 + 0x34) != 0" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) != number_literal) )) || (parenthesized_expression "(*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6))" ( (binary_expression "*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)" (pointer_expression "*(int *)((long)param_2 + 0xc)" * (cast_expression "(int *)((long)param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0xc)" ( (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) <= (pointer_expression "*(int *)(param_2 + 6)" * (cast_expression "(int *)(param_2 + 6)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 6)" ( (binary_expression "param_2 + 6" identifier + number_literal) ))))) ))) )) (goto_statement "goto LAB_001cc483;" goto statement_identifier ;)) (expression_statement "iVar6 = *(int *)((long)param_2 + 0xc) + -1;" (assignment_expression "iVar6 = *(int *)((long)param_2 + 0xc) + -1" identifier = (binary_expression "*(int *)((long)param_2 + 0xc) + -1" (pointer_expression "*(int *)((long)param_2 + 0xc)" * (cast_expression "(int *)((long)param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0xc)" ( (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)((long)param_2 + 0xc) = iVar6;" (assignment_expression "*(int *)((long)param_2 + 0xc) = iVar6" (pointer_expression "*(int *)((long)param_2 + 0xc)" * (cast_expression "(int *)((long)param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0xc)" ( (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "plVar2 = (long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25));" (assignment_expression "plVar2 = (long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25))" identifier = (cast_expression "(long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25))" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25))" identifier (argument_list "(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25))" ( identifier , (binary_expression "(long)iVar6 + ((long)*(int *)*param_2 << 0x25)" (cast_expression "(long)iVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (parenthesized_expression "((long)*(int *)*param_2 << 0x25)" ( (binary_expression "(long)*(int *)*param_2 << 0x25" (cast_expression "(long)*(int *)*param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)*param_2" * (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)))) << number_literal) ))) ))))) ;) }) while (parenthesized_expression "(plVar2 == (long *)0x0)" ( (binary_expression "plVar2 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;)) (if_statement "if (*(int *)((long)param_2 + 0xc) == *(int *)(param_2 + 6)) {\n    uVar5 = (ulong)*(int *)((long)param_2 + 0x34);\n    if (*(int *)((long)plVar2 + 0xc) <= *(int *)((long)param_2 + 0x34)) goto LAB_001cc4f9;\nLAB_001cc4cd:\n    param_2[2] = plVar2;\n    *(int *)(param_2 + 4) = (int)uVar5;\n    plVar3 = plVar2;\n  }\n  else {\n    uVar4 = (ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1];\n    if (uVar4 != 0) {\n      uVar5 = (ulong)uVar4;\n      goto LAB_001cc4cd;\n    }\nLAB_001cc4f9:\n    plVar3 = (long *)param_2[2];\n    if (plVar3 == (long *)0x0) {\n      FUN_00119e00(plVar2);\n      goto LAB_001cc47c;\n    }\n    uVar5 = (ulong)*(int *)(param_2 + 4);\n  }" if (parenthesized_expression "(*(int *)((long)param_2 + 0xc) == *(int *)(param_2 + 6))" ( (binary_expression "*(int *)((long)param_2 + 0xc) == *(int *)(param_2 + 6)" (pointer_expression "*(int *)((long)param_2 + 0xc)" * (cast_expression "(int *)((long)param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0xc)" ( (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == (pointer_expression "*(int *)(param_2 + 6)" * (cast_expression "(int *)(param_2 + 6)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 6)" ( (binary_expression "param_2 + 6" identifier + number_literal) ))))) )) (compound_statement "{\n    uVar5 = (ulong)*(int *)((long)param_2 + 0x34);\n    if (*(int *)((long)plVar2 + 0xc) <= *(int *)((long)param_2 + 0x34)) goto LAB_001cc4f9;\nLAB_001cc4cd:\n    param_2[2] = plVar2;\n    *(int *)(param_2 + 4) = (int)uVar5;\n    plVar3 = plVar2;\n  }" { (expression_statement "uVar5 = (ulong)*(int *)((long)param_2 + 0x34);" (assignment_expression "uVar5 = (ulong)*(int *)((long)param_2 + 0x34)" identifier = (binary_expression "(ulong)*(int *)((long)param_2 + 0x34)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(int *)((long)param_2 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0x34)" ( (binary_expression "(long)param_2 + 0x34" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (if_statement "if (*(int *)((long)plVar2 + 0xc) <= *(int *)((long)param_2 + 0x34)) goto LAB_001cc4f9;" if (parenthesized_expression "(*(int *)((long)plVar2 + 0xc) <= *(int *)((long)param_2 + 0x34))" ( (binary_expression "*(int *)((long)plVar2 + 0xc) <= *(int *)((long)param_2 + 0x34)" (pointer_expression "*(int *)((long)plVar2 + 0xc)" * (cast_expression "(int *)((long)plVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 0xc)" ( (binary_expression "(long)plVar2 + 0xc" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) <= (pointer_expression "*(int *)((long)param_2 + 0x34)" * (cast_expression "(int *)((long)param_2 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0x34)" ( (binary_expression "(long)param_2 + 0x34" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) )) (goto_statement "goto LAB_001cc4f9;" goto statement_identifier ;)) (labeled_statement "LAB_001cc4cd:\n    param_2[2] = plVar2;" statement_identifier : (expression_statement "param_2[2] = plVar2;" (assignment_expression "param_2[2] = plVar2" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;)) (expression_statement "*(int *)(param_2 + 4) = (int)uVar5;" (assignment_expression "*(int *)(param_2 + 4) = (int)uVar5" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "plVar3 = plVar2;" (assignment_expression "plVar3 = plVar2" identifier = identifier) ;) }) (else_clause "else {\n    uVar4 = (ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1];\n    if (uVar4 != 0) {\n      uVar5 = (ulong)uVar4;\n      goto LAB_001cc4cd;\n    }\nLAB_001cc4f9:\n    plVar3 = (long *)param_2[2];\n    if (plVar3 == (long *)0x0) {\n      FUN_00119e00(plVar2);\n      goto LAB_001cc47c;\n    }\n    uVar5 = (ulong)*(int *)(param_2 + 4);\n  }" else (compound_statement "{\n    uVar4 = (ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1];\n    if (uVar4 != 0) {\n      uVar5 = (ulong)uVar4;\n      goto LAB_001cc4cd;\n    }\nLAB_001cc4f9:\n    plVar3 = (long *)param_2[2];\n    if (plVar3 == (long *)0x0) {\n      FUN_00119e00(plVar2);\n      goto LAB_001cc47c;\n    }\n    uVar5 = (ulong)*(int *)(param_2 + 4);\n  }" { (expression_statement "uVar4 = (ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1];" (assignment_expression "uVar4 = (ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1]" identifier = (binary_expression "(ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1]" (binary_expression "(ushort)*(byte *)*plVar2 * 0x100" (binary_expression "(ushort)*(byte *)*plVar2" (parenthesized_expression "(ushort)" ( identifier )) * (cast_expression "(byte *)*plVar2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar2" * identifier))) * number_literal) + (subscript_expression "(ushort)((byte *)*plVar2)[1]" (call_expression "(ushort)((byte *)*plVar2)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "((byte *)*plVar2)" ( (cast_expression "(byte *)*plVar2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar2" * identifier)) ))) [ number_literal ]))) ;) (if_statement "if (uVar4 != 0) {\n      uVar5 = (ulong)uVar4;\n      goto LAB_001cc4cd;\n    }" if (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar5 = (ulong)uVar4;\n      goto LAB_001cc4cd;\n    }" { (expression_statement "uVar5 = (ulong)uVar4;" (assignment_expression "uVar5 = (ulong)uVar4" identifier = (cast_expression "(ulong)uVar4" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (goto_statement "goto LAB_001cc4cd;" goto statement_identifier ;) })) (labeled_statement "LAB_001cc4f9:\n    plVar3 = (long *)param_2[2];" statement_identifier : (expression_statement "plVar3 = (long *)param_2[2];" (assignment_expression "plVar3 = (long *)param_2[2]" identifier = (cast_expression "(long *)param_2[2]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[2]" identifier [ number_literal ]))) ;)) (if_statement "if (plVar3 == (long *)0x0) {\n      FUN_00119e00(plVar2);\n      goto LAB_001cc47c;\n    }" if (parenthesized_expression "(plVar3 == (long *)0x0)" ( (binary_expression "plVar3 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      FUN_00119e00(plVar2);\n      goto LAB_001cc47c;\n    }" { (expression_statement "FUN_00119e00(plVar2);" (call_expression "FUN_00119e00(plVar2)" identifier (argument_list "(plVar2)" ( identifier ))) ;) (goto_statement "goto LAB_001cc47c;" goto statement_identifier ;) })) (expression_statement "uVar5 = (ulong)*(int *)(param_2 + 4);" (assignment_expression "uVar5 = (ulong)*(int *)(param_2 + 4)" identifier = (binary_expression "(ulong)*(int *)(param_2 + 4)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) }))) (expression_statement "bVar1 = FUN_00110120(uVar5 + *plVar3,param_2 + 0xd);" (assignment_expression "bVar1 = FUN_00110120(uVar5 + *plVar3,param_2 + 0xd)" identifier = (call_expression "FUN_00110120(uVar5 + *plVar3,param_2 + 0xd)" identifier (argument_list "(uVar5 + *plVar3,param_2 + 0xd)" ( (binary_expression "uVar5 + *plVar3" identifier + (pointer_expression "*plVar3" * identifier)) , (binary_expression "param_2 + 0xd" identifier + number_literal) )))) ;) (expression_statement "*(uint *)(param_2 + 4) = *(int *)(param_2 + 4) + (uint)bVar1;" (assignment_expression "*(uint *)(param_2 + 4) = *(int *)(param_2 + 4) + (uint)bVar1" (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(param_2 + 4) + (uint)bVar1" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) + (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (labeled_statement "LAB_001cc483:\n  if (param_2[2] != 0) {\n    *(int *)((long)param_2 + 0x3c) = *(int *)(param_2[2] + 8) + 1;\n    FUN_0015c140(param_1,param_2);\n    return;\n  }" statement_identifier : (if_statement "if (param_2[2] != 0) {\n    *(int *)((long)param_2 + 0x3c) = *(int *)(param_2[2] + 8) + 1;\n    FUN_0015c140(param_1,param_2);\n    return;\n  }" if (parenthesized_expression "(param_2[2] != 0)" ( (binary_expression "param_2[2] != 0" (subscript_expression "param_2[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    *(int *)((long)param_2 + 0x3c) = *(int *)(param_2[2] + 8) + 1;\n    FUN_0015c140(param_1,param_2);\n    return;\n  }" { (expression_statement "*(int *)((long)param_2 + 0x3c) = *(int *)(param_2[2] + 8) + 1;" (assignment_expression "*(int *)((long)param_2 + 0x3c) = *(int *)(param_2[2] + 8) + 1" (pointer_expression "*(int *)((long)param_2 + 0x3c)" * (cast_expression "(int *)((long)param_2 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0x3c)" ( (binary_expression "(long)param_2 + 0x3c" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (binary_expression "*(int *)(param_2[2] + 8) + 1" (pointer_expression "*(int *)(param_2[2] + 8)" * (cast_expression "(int *)(param_2[2] + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[2] + 8)" ( (binary_expression "param_2[2] + 8" (subscript_expression "param_2[2]" identifier [ number_literal ]) + number_literal) )))) + number_literal)) ;) (expression_statement "FUN_0015c140(param_1,param_2);" (call_expression "FUN_0015c140(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) }))) (return_statement "return;" return ;) })))
(translation_unit "void fts5SegIterReverseNewPage(Fts5Index *p,Fts5SegIter *pIter)\n\n{\n  byte bVar1;\n  Fts5Data *p_00;\n  Fts5Data *pFVar2;\n  ushort uVar3;\n  ulong uVar4;\n  int iVar5;\n  \n  sqlite3_free(pIter->pLeaf);\n  pIter->pLeaf = (Fts5Data *)0x0;\nLAB_001cc47c:\n  do {\n    if ((p->rc != 0) || (pIter->iLeafPgno <= pIter->iTermLeafPgno)) goto LAB_001cc483;\n    iVar5 = pIter->iLeafPgno + -1;\n    pIter->iLeafPgno = iVar5;\n    p_00 = fts5DataRead(p,(long)iVar5 + ((long)pIter->pSeg->iSegid << 0x25));\n  } while (p_00 == (Fts5Data *)0x0);\n  if (pIter->iLeafPgno == pIter->iTermLeafPgno) {\n    uVar4 = (ulong)pIter->iTermLeafOffset;\n    if (p_00->szLeaf <= pIter->iTermLeafOffset) goto LAB_001cc4f9;\nLAB_001cc4cd:\n    pIter->pLeaf = p_00;\n    pIter->iLeafOffset = (int)uVar4;\n    pFVar2 = p_00;\n  }\n  else {\n    uVar3 = (ushort)*p_00->p * 0x100 + (ushort)p_00->p[1];\n    if (uVar3 != 0) {\n      uVar4 = (ulong)uVar3;\n      goto LAB_001cc4cd;\n    }\nLAB_001cc4f9:\n    pFVar2 = pIter->pLeaf;\n    if (pFVar2 == (Fts5Data *)0x0) {\n      sqlite3_free(p_00);\n      goto LAB_001cc47c;\n    }\n    uVar4 = (ulong)pIter->iLeafOffset;\n  }\n  bVar1 = sqlite3GetVarint(pFVar2->p + uVar4,(u64 *)&pIter->iRowid);\n  pIter->iLeafOffset = pIter->iLeafOffset + (uint)bVar1;\nLAB_001cc483:\n  if (pIter->pLeaf != (Fts5Data *)0x0) {\n    pIter->iEndofDoclist = pIter->pLeaf->nn + 1;\n    fts5SegIterReverseInitPage(p,pIter);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void fts5SegIterReverseNewPage(Fts5Index *p,Fts5SegIter *pIter)\n\n{\n  byte bVar1;\n  Fts5Data *p_00;\n  Fts5Data *pFVar2;\n  ushort uVar3;\n  ulong uVar4;\n  int iVar5;\n  \n  sqlite3_free(pIter->pLeaf);\n  pIter->pLeaf = (Fts5Data *)0x0;\nLAB_001cc47c:\n  do {\n    if ((p->rc != 0) || (pIter->iLeafPgno <= pIter->iTermLeafPgno)) goto LAB_001cc483;\n    iVar5 = pIter->iLeafPgno + -1;\n    pIter->iLeafPgno = iVar5;\n    p_00 = fts5DataRead(p,(long)iVar5 + ((long)pIter->pSeg->iSegid << 0x25));\n  } while (p_00 == (Fts5Data *)0x0);\n  if (pIter->iLeafPgno == pIter->iTermLeafPgno) {\n    uVar4 = (ulong)pIter->iTermLeafOffset;\n    if (p_00->szLeaf <= pIter->iTermLeafOffset) goto LAB_001cc4f9;\nLAB_001cc4cd:\n    pIter->pLeaf = p_00;\n    pIter->iLeafOffset = (int)uVar4;\n    pFVar2 = p_00;\n  }\n  else {\n    uVar3 = (ushort)*p_00->p * 0x100 + (ushort)p_00->p[1];\n    if (uVar3 != 0) {\n      uVar4 = (ulong)uVar3;\n      goto LAB_001cc4cd;\n    }\nLAB_001cc4f9:\n    pFVar2 = pIter->pLeaf;\n    if (pFVar2 == (Fts5Data *)0x0) {\n      sqlite3_free(p_00);\n      goto LAB_001cc47c;\n    }\n    uVar4 = (ulong)pIter->iLeafOffset;\n  }\n  bVar1 = sqlite3GetVarint(pFVar2->p + uVar4,(u64 *)&pIter->iRowid);\n  pIter->iLeafOffset = pIter->iLeafOffset + (uint)bVar1;\nLAB_001cc483:\n  if (pIter->pLeaf != (Fts5Data *)0x0) {\n    pIter->iEndofDoclist = pIter->pLeaf->nn + 1;\n    fts5SegIterReverseInitPage(p,pIter);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "fts5SegIterReverseNewPage(Fts5Index *p,Fts5SegIter *pIter)" identifier (parameter_list "(Fts5Index *p,Fts5SegIter *pIter)" ( (parameter_declaration "Fts5Index *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "Fts5SegIter *pIter" type_identifier (pointer_declarator "*pIter" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  Fts5Data *p_00;\n  Fts5Data *pFVar2;\n  ushort uVar3;\n  ulong uVar4;\n  int iVar5;\n  \n  sqlite3_free(pIter->pLeaf);\n  pIter->pLeaf = (Fts5Data *)0x0;\nLAB_001cc47c:\n  do {\n    if ((p->rc != 0) || (pIter->iLeafPgno <= pIter->iTermLeafPgno)) goto LAB_001cc483;\n    iVar5 = pIter->iLeafPgno + -1;\n    pIter->iLeafPgno = iVar5;\n    p_00 = fts5DataRead(p,(long)iVar5 + ((long)pIter->pSeg->iSegid << 0x25));\n  } while (p_00 == (Fts5Data *)0x0);\n  if (pIter->iLeafPgno == pIter->iTermLeafPgno) {\n    uVar4 = (ulong)pIter->iTermLeafOffset;\n    if (p_00->szLeaf <= pIter->iTermLeafOffset) goto LAB_001cc4f9;\nLAB_001cc4cd:\n    pIter->pLeaf = p_00;\n    pIter->iLeafOffset = (int)uVar4;\n    pFVar2 = p_00;\n  }\n  else {\n    uVar3 = (ushort)*p_00->p * 0x100 + (ushort)p_00->p[1];\n    if (uVar3 != 0) {\n      uVar4 = (ulong)uVar3;\n      goto LAB_001cc4cd;\n    }\nLAB_001cc4f9:\n    pFVar2 = pIter->pLeaf;\n    if (pFVar2 == (Fts5Data *)0x0) {\n      sqlite3_free(p_00);\n      goto LAB_001cc47c;\n    }\n    uVar4 = (ulong)pIter->iLeafOffset;\n  }\n  bVar1 = sqlite3GetVarint(pFVar2->p + uVar4,(u64 *)&pIter->iRowid);\n  pIter->iLeafOffset = pIter->iLeafOffset + (uint)bVar1;\nLAB_001cc483:\n  if (pIter->pLeaf != (Fts5Data *)0x0) {\n    pIter->iEndofDoclist = pIter->pLeaf->nn + 1;\n    fts5SegIterReverseInitPage(p,pIter);\n    return;\n  }\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "Fts5Data *p_00;" type_identifier (pointer_declarator "*p_00" * identifier) ;) (declaration "Fts5Data *pFVar2;" type_identifier (pointer_declarator "*pFVar2" * identifier) ;) (declaration "ushort uVar3;" type_identifier identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "sqlite3_free(pIter->pLeaf);" (call_expression "sqlite3_free(pIter->pLeaf)" identifier (argument_list "(pIter->pLeaf)" ( (field_expression "pIter->pLeaf" identifier -> field_identifier) ))) ;) (expression_statement "pIter->pLeaf = (Fts5Data *)0x0;" (assignment_expression "pIter->pLeaf = (Fts5Data *)0x0" (field_expression "pIter->pLeaf" identifier -> field_identifier) = (cast_expression "(Fts5Data *)0x0" ( (type_descriptor "Fts5Data *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_001cc47c:\n  do {\n    if ((p->rc != 0) || (pIter->iLeafPgno <= pIter->iTermLeafPgno)) goto LAB_001cc483;\n    iVar5 = pIter->iLeafPgno + -1;\n    pIter->iLeafPgno = iVar5;\n    p_00 = fts5DataRead(p,(long)iVar5 + ((long)pIter->pSeg->iSegid << 0x25));\n  } while (p_00 == (Fts5Data *)0x0);" statement_identifier : (do_statement "do {\n    if ((p->rc != 0) || (pIter->iLeafPgno <= pIter->iTermLeafPgno)) goto LAB_001cc483;\n    iVar5 = pIter->iLeafPgno + -1;\n    pIter->iLeafPgno = iVar5;\n    p_00 = fts5DataRead(p,(long)iVar5 + ((long)pIter->pSeg->iSegid << 0x25));\n  } while (p_00 == (Fts5Data *)0x0);" do (compound_statement "{\n    if ((p->rc != 0) || (pIter->iLeafPgno <= pIter->iTermLeafPgno)) goto LAB_001cc483;\n    iVar5 = pIter->iLeafPgno + -1;\n    pIter->iLeafPgno = iVar5;\n    p_00 = fts5DataRead(p,(long)iVar5 + ((long)pIter->pSeg->iSegid << 0x25));\n  }" { (if_statement "if ((p->rc != 0) || (pIter->iLeafPgno <= pIter->iTermLeafPgno)) goto LAB_001cc483;" if (parenthesized_expression "((p->rc != 0) || (pIter->iLeafPgno <= pIter->iTermLeafPgno))" ( (binary_expression "(p->rc != 0) || (pIter->iLeafPgno <= pIter->iTermLeafPgno)" (parenthesized_expression "(p->rc != 0)" ( (binary_expression "p->rc != 0" (field_expression "p->rc" identifier -> field_identifier) != number_literal) )) || (parenthesized_expression "(pIter->iLeafPgno <= pIter->iTermLeafPgno)" ( (binary_expression "pIter->iLeafPgno <= pIter->iTermLeafPgno" (field_expression "pIter->iLeafPgno" identifier -> field_identifier) <= (field_expression "pIter->iTermLeafPgno" identifier -> field_identifier)) ))) )) (goto_statement "goto LAB_001cc483;" goto statement_identifier ;)) (expression_statement "iVar5 = pIter->iLeafPgno + -1;" (assignment_expression "iVar5 = pIter->iLeafPgno + -1" identifier = (binary_expression "pIter->iLeafPgno + -1" (field_expression "pIter->iLeafPgno" identifier -> field_identifier) + number_literal)) ;) (expression_statement "pIter->iLeafPgno = iVar5;" (assignment_expression "pIter->iLeafPgno = iVar5" (field_expression "pIter->iLeafPgno" identifier -> field_identifier) = identifier) ;) (expression_statement "p_00 = fts5DataRead(p,(long)iVar5 + ((long)pIter->pSeg->iSegid << 0x25));" (assignment_expression "p_00 = fts5DataRead(p,(long)iVar5 + ((long)pIter->pSeg->iSegid << 0x25))" identifier = (call_expression "fts5DataRead(p,(long)iVar5 + ((long)pIter->pSeg->iSegid << 0x25))" identifier (argument_list "(p,(long)iVar5 + ((long)pIter->pSeg->iSegid << 0x25))" ( identifier , (binary_expression "(long)iVar5 + ((long)pIter->pSeg->iSegid << 0x25)" (cast_expression "(long)iVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (parenthesized_expression "((long)pIter->pSeg->iSegid << 0x25)" ( (binary_expression "(long)pIter->pSeg->iSegid << 0x25" (cast_expression "(long)pIter->pSeg->iSegid" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "pIter->pSeg->iSegid" (field_expression "pIter->pSeg" identifier -> field_identifier) -> field_identifier)) << number_literal) ))) )))) ;) }) while (parenthesized_expression "(p_00 == (Fts5Data *)0x0)" ( (binary_expression "p_00 == (Fts5Data *)0x0" identifier == (cast_expression "(Fts5Data *)0x0" ( (type_descriptor "Fts5Data *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;)) (if_statement "if (pIter->iLeafPgno == pIter->iTermLeafPgno) {\n    uVar4 = (ulong)pIter->iTermLeafOffset;\n    if (p_00->szLeaf <= pIter->iTermLeafOffset) goto LAB_001cc4f9;\nLAB_001cc4cd:\n    pIter->pLeaf = p_00;\n    pIter->iLeafOffset = (int)uVar4;\n    pFVar2 = p_00;\n  }\n  else {\n    uVar3 = (ushort)*p_00->p * 0x100 + (ushort)p_00->p[1];\n    if (uVar3 != 0) {\n      uVar4 = (ulong)uVar3;\n      goto LAB_001cc4cd;\n    }\nLAB_001cc4f9:\n    pFVar2 = pIter->pLeaf;\n    if (pFVar2 == (Fts5Data *)0x0) {\n      sqlite3_free(p_00);\n      goto LAB_001cc47c;\n    }\n    uVar4 = (ulong)pIter->iLeafOffset;\n  }" if (parenthesized_expression "(pIter->iLeafPgno == pIter->iTermLeafPgno)" ( (binary_expression "pIter->iLeafPgno == pIter->iTermLeafPgno" (field_expression "pIter->iLeafPgno" identifier -> field_identifier) == (field_expression "pIter->iTermLeafPgno" identifier -> field_identifier)) )) (compound_statement "{\n    uVar4 = (ulong)pIter->iTermLeafOffset;\n    if (p_00->szLeaf <= pIter->iTermLeafOffset) goto LAB_001cc4f9;\nLAB_001cc4cd:\n    pIter->pLeaf = p_00;\n    pIter->iLeafOffset = (int)uVar4;\n    pFVar2 = p_00;\n  }" { (expression_statement "uVar4 = (ulong)pIter->iTermLeafOffset;" (assignment_expression "uVar4 = (ulong)pIter->iTermLeafOffset" identifier = (cast_expression "(ulong)pIter->iTermLeafOffset" ( (type_descriptor "ulong" type_identifier) ) (field_expression "pIter->iTermLeafOffset" identifier -> field_identifier))) ;) (if_statement "if (p_00->szLeaf <= pIter->iTermLeafOffset) goto LAB_001cc4f9;" if (parenthesized_expression "(p_00->szLeaf <= pIter->iTermLeafOffset)" ( (binary_expression "p_00->szLeaf <= pIter->iTermLeafOffset" (field_expression "p_00->szLeaf" identifier -> field_identifier) <= (field_expression "pIter->iTermLeafOffset" identifier -> field_identifier)) )) (goto_statement "goto LAB_001cc4f9;" goto statement_identifier ;)) (labeled_statement "LAB_001cc4cd:\n    pIter->pLeaf = p_00;" statement_identifier : (expression_statement "pIter->pLeaf = p_00;" (assignment_expression "pIter->pLeaf = p_00" (field_expression "pIter->pLeaf" identifier -> field_identifier) = identifier) ;)) (expression_statement "pIter->iLeafOffset = (int)uVar4;" (assignment_expression "pIter->iLeafOffset = (int)uVar4" (field_expression "pIter->iLeafOffset" identifier -> field_identifier) = (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "pFVar2 = p_00;" (assignment_expression "pFVar2 = p_00" identifier = identifier) ;) }) (else_clause "else {\n    uVar3 = (ushort)*p_00->p * 0x100 + (ushort)p_00->p[1];\n    if (uVar3 != 0) {\n      uVar4 = (ulong)uVar3;\n      goto LAB_001cc4cd;\n    }\nLAB_001cc4f9:\n    pFVar2 = pIter->pLeaf;\n    if (pFVar2 == (Fts5Data *)0x0) {\n      sqlite3_free(p_00);\n      goto LAB_001cc47c;\n    }\n    uVar4 = (ulong)pIter->iLeafOffset;\n  }" else (compound_statement "{\n    uVar3 = (ushort)*p_00->p * 0x100 + (ushort)p_00->p[1];\n    if (uVar3 != 0) {\n      uVar4 = (ulong)uVar3;\n      goto LAB_001cc4cd;\n    }\nLAB_001cc4f9:\n    pFVar2 = pIter->pLeaf;\n    if (pFVar2 == (Fts5Data *)0x0) {\n      sqlite3_free(p_00);\n      goto LAB_001cc47c;\n    }\n    uVar4 = (ulong)pIter->iLeafOffset;\n  }" { (expression_statement "uVar3 = (ushort)*p_00->p * 0x100 + (ushort)p_00->p[1];" (assignment_expression "uVar3 = (ushort)*p_00->p * 0x100 + (ushort)p_00->p[1]" identifier = (binary_expression "(ushort)*p_00->p * 0x100 + (ushort)p_00->p[1]" (binary_expression "(ushort)*p_00->p * 0x100" (binary_expression "(ushort)*p_00->p" (parenthesized_expression "(ushort)" ( identifier )) * (field_expression "p_00->p" identifier -> field_identifier)) * number_literal) + (cast_expression "(ushort)p_00->p[1]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "p_00->p[1]" (field_expression "p_00->p" identifier -> field_identifier) [ number_literal ])))) ;) (if_statement "if (uVar3 != 0) {\n      uVar4 = (ulong)uVar3;\n      goto LAB_001cc4cd;\n    }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar4 = (ulong)uVar3;\n      goto LAB_001cc4cd;\n    }" { (expression_statement "uVar4 = (ulong)uVar3;" (assignment_expression "uVar4 = (ulong)uVar3" identifier = (cast_expression "(ulong)uVar3" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (goto_statement "goto LAB_001cc4cd;" goto statement_identifier ;) })) (labeled_statement "LAB_001cc4f9:\n    pFVar2 = pIter->pLeaf;" statement_identifier : (expression_statement "pFVar2 = pIter->pLeaf;" (assignment_expression "pFVar2 = pIter->pLeaf" identifier = (field_expression "pIter->pLeaf" identifier -> field_identifier)) ;)) (if_statement "if (pFVar2 == (Fts5Data *)0x0) {\n      sqlite3_free(p_00);\n      goto LAB_001cc47c;\n    }" if (parenthesized_expression "(pFVar2 == (Fts5Data *)0x0)" ( (binary_expression "pFVar2 == (Fts5Data *)0x0" identifier == (cast_expression "(Fts5Data *)0x0" ( (type_descriptor "Fts5Data *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sqlite3_free(p_00);\n      goto LAB_001cc47c;\n    }" { (expression_statement "sqlite3_free(p_00);" (call_expression "sqlite3_free(p_00)" identifier (argument_list "(p_00)" ( identifier ))) ;) (goto_statement "goto LAB_001cc47c;" goto statement_identifier ;) })) (expression_statement "uVar4 = (ulong)pIter->iLeafOffset;" (assignment_expression "uVar4 = (ulong)pIter->iLeafOffset" identifier = (cast_expression "(ulong)pIter->iLeafOffset" ( (type_descriptor "ulong" type_identifier) ) (field_expression "pIter->iLeafOffset" identifier -> field_identifier))) ;) }))) (expression_statement "bVar1 = sqlite3GetVarint(pFVar2->p + uVar4,(u64 *)&pIter->iRowid);" (assignment_expression "bVar1 = sqlite3GetVarint(pFVar2->p + uVar4,(u64 *)&pIter->iRowid)" identifier = (call_expression "sqlite3GetVarint(pFVar2->p + uVar4,(u64 *)&pIter->iRowid)" identifier (argument_list "(pFVar2->p + uVar4,(u64 *)&pIter->iRowid)" ( (binary_expression "pFVar2->p + uVar4" (field_expression "pFVar2->p" identifier -> field_identifier) + identifier) , (cast_expression "(u64 *)&pIter->iRowid" ( (type_descriptor "u64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pIter->iRowid" & (field_expression "pIter->iRowid" identifier -> field_identifier))) )))) ;) (expression_statement "pIter->iLeafOffset = pIter->iLeafOffset + (uint)bVar1;" (assignment_expression "pIter->iLeafOffset = pIter->iLeafOffset + (uint)bVar1" (field_expression "pIter->iLeafOffset" identifier -> field_identifier) = (binary_expression "pIter->iLeafOffset + (uint)bVar1" (field_expression "pIter->iLeafOffset" identifier -> field_identifier) + (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (labeled_statement "LAB_001cc483:\n  if (pIter->pLeaf != (Fts5Data *)0x0) {\n    pIter->iEndofDoclist = pIter->pLeaf->nn + 1;\n    fts5SegIterReverseInitPage(p,pIter);\n    return;\n  }" statement_identifier : (if_statement "if (pIter->pLeaf != (Fts5Data *)0x0) {\n    pIter->iEndofDoclist = pIter->pLeaf->nn + 1;\n    fts5SegIterReverseInitPage(p,pIter);\n    return;\n  }" if (parenthesized_expression "(pIter->pLeaf != (Fts5Data *)0x0)" ( (binary_expression "pIter->pLeaf != (Fts5Data *)0x0" (field_expression "pIter->pLeaf" identifier -> field_identifier) != (cast_expression "(Fts5Data *)0x0" ( (type_descriptor "Fts5Data *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pIter->iEndofDoclist = pIter->pLeaf->nn + 1;\n    fts5SegIterReverseInitPage(p,pIter);\n    return;\n  }" { (expression_statement "pIter->iEndofDoclist = pIter->pLeaf->nn + 1;" (assignment_expression "pIter->iEndofDoclist = pIter->pLeaf->nn + 1" (field_expression "pIter->iEndofDoclist" identifier -> field_identifier) = (binary_expression "pIter->pLeaf->nn + 1" (field_expression "pIter->pLeaf->nn" (field_expression "pIter->pLeaf" identifier -> field_identifier) -> field_identifier) + number_literal)) ;) (expression_statement "fts5SegIterReverseInitPage(p,pIter);" (call_expression "fts5SegIterReverseInitPage(p,pIter)" identifier (argument_list "(p,pIter)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) }))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001cc430(long param_1,undefined8 *param_2)\n\n{\n  byte bVar1;\n  long *plVar2;\n  long *plVar3;\n  ushort uVar4;\n  ulong uVar5;\n  int iVar6;\n  \n  FUN_00119e00(param_2[2]);\n  param_2[2] = 0;\nLAB_001cc47c:\n  do {\n    if ((*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)))\n    goto LAB_001cc483;\n    iVar6 = *(int *)((long)param_2 + 0xc) + -1;\n    *(int *)((long)param_2 + 0xc) = iVar6;\n    plVar2 = (long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25));\n  } while (plVar2 == (long *)0x0);\n  if (*(int *)((long)param_2 + 0xc) == *(int *)(param_2 + 6)) {\n    uVar5 = (ulong)*(int *)((long)param_2 + 0x34);\n    if (*(int *)((long)plVar2 + 0xc) <= *(int *)((long)param_2 + 0x34)) goto LAB_001cc4f9;\nLAB_001cc4cd:\n    param_2[2] = plVar2;\n    *(int *)(param_2 + 4) = (int)uVar5;\n    plVar3 = plVar2;\n  }\n  else {\n    uVar4 = (ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1];\n    if (uVar4 != 0) {\n      uVar5 = (ulong)uVar4;\n      goto LAB_001cc4cd;\n    }\nLAB_001cc4f9:\n    plVar3 = (long *)param_2[2];\n    if (plVar3 == (long *)0x0) {\n      FUN_00119e00(plVar2);\n      goto LAB_001cc47c;\n    }\n    uVar5 = (ulong)*(int *)(param_2 + 4);\n  }\n  bVar1 = FUN_00110120(uVar5 + *plVar3,param_2 + 0xd);\n  *(uint *)(param_2 + 4) = *(int *)(param_2 + 4) + (uint)bVar1;\nLAB_001cc483:\n  if (param_2[2] != 0) {\n    *(int *)((long)param_2 + 0x3c) = *(int *)(param_2[2] + 8) + 1;\n    FUN_0015c140(param_1,param_2);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_001cc430(long param_1,undefined8 *param_2)\n\n{\n  byte bVar1;\n  long *plVar2;\n  long *plVar3;\n  ushort uVar4;\n  ulong uVar5;\n  int iVar6;\n  \n  FUN_00119e00(param_2[2]);\n  param_2[2] = 0;\nLAB_001cc47c:\n  do {\n    if ((*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)))\n    goto LAB_001cc483;\n    iVar6 = *(int *)((long)param_2 + 0xc) + -1;\n    *(int *)((long)param_2 + 0xc) = iVar6;\n    plVar2 = (long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25));\n  } while (plVar2 == (long *)0x0);\n  if (*(int *)((long)param_2 + 0xc) == *(int *)(param_2 + 6)) {\n    uVar5 = (ulong)*(int *)((long)param_2 + 0x34);\n    if (*(int *)((long)plVar2 + 0xc) <= *(int *)((long)param_2 + 0x34)) goto LAB_001cc4f9;\nLAB_001cc4cd:\n    param_2[2] = plVar2;\n    *(int *)(param_2 + 4) = (int)uVar5;\n    plVar3 = plVar2;\n  }\n  else {\n    uVar4 = (ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1];\n    if (uVar4 != 0) {\n      uVar5 = (ulong)uVar4;\n      goto LAB_001cc4cd;\n    }\nLAB_001cc4f9:\n    plVar3 = (long *)param_2[2];\n    if (plVar3 == (long *)0x0) {\n      FUN_00119e00(plVar2);\n      goto LAB_001cc47c;\n    }\n    uVar5 = (ulong)*(int *)(param_2 + 4);\n  }\n  bVar1 = FUN_00110120(uVar5 + *plVar3,param_2 + 0xd);\n  *(uint *)(param_2 + 4) = *(int *)(param_2 + 4) + (uint)bVar1;\nLAB_001cc483:\n  if (param_2[2] != 0) {\n    *(int *)((long)param_2 + 0x3c) = *(int *)(param_2[2] + 8) + 1;\n    FUN_0015c140(param_1,param_2);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001cc430(long param_1,undefined8 *param_2)" identifier (parameter_list "(long param_1,undefined8 *param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  long *plVar2;\n  long *plVar3;\n  ushort uVar4;\n  ulong uVar5;\n  int iVar6;\n  \n  FUN_00119e00(param_2[2]);\n  param_2[2] = 0;\nLAB_001cc47c:\n  do {\n    if ((*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)))\n    goto LAB_001cc483;\n    iVar6 = *(int *)((long)param_2 + 0xc) + -1;\n    *(int *)((long)param_2 + 0xc) = iVar6;\n    plVar2 = (long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25));\n  } while (plVar2 == (long *)0x0);\n  if (*(int *)((long)param_2 + 0xc) == *(int *)(param_2 + 6)) {\n    uVar5 = (ulong)*(int *)((long)param_2 + 0x34);\n    if (*(int *)((long)plVar2 + 0xc) <= *(int *)((long)param_2 + 0x34)) goto LAB_001cc4f9;\nLAB_001cc4cd:\n    param_2[2] = plVar2;\n    *(int *)(param_2 + 4) = (int)uVar5;\n    plVar3 = plVar2;\n  }\n  else {\n    uVar4 = (ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1];\n    if (uVar4 != 0) {\n      uVar5 = (ulong)uVar4;\n      goto LAB_001cc4cd;\n    }\nLAB_001cc4f9:\n    plVar3 = (long *)param_2[2];\n    if (plVar3 == (long *)0x0) {\n      FUN_00119e00(plVar2);\n      goto LAB_001cc47c;\n    }\n    uVar5 = (ulong)*(int *)(param_2 + 4);\n  }\n  bVar1 = FUN_00110120(uVar5 + *plVar3,param_2 + 0xd);\n  *(uint *)(param_2 + 4) = *(int *)(param_2 + 4) + (uint)bVar1;\nLAB_001cc483:\n  if (param_2[2] != 0) {\n    *(int *)((long)param_2 + 0x3c) = *(int *)(param_2[2] + 8) + 1;\n    FUN_0015c140(param_1,param_2);\n    return;\n  }\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "long *plVar3;" (sized_type_specifier "long" long) (pointer_declarator "*plVar3" * identifier) ;) (declaration "ushort uVar4;" type_identifier identifier ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "FUN_00119e00(param_2[2]);" (call_expression "FUN_00119e00(param_2[2])" identifier (argument_list "(param_2[2])" ( (subscript_expression "param_2[2]" identifier [ number_literal ]) ))) ;) (expression_statement "param_2[2] = 0;" (assignment_expression "param_2[2] = 0" (subscript_expression "param_2[2]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "LAB_001cc47c:\n  do {\n    if ((*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)))\n    goto LAB_001cc483;\n    iVar6 = *(int *)((long)param_2 + 0xc) + -1;\n    *(int *)((long)param_2 + 0xc) = iVar6;\n    plVar2 = (long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25));\n  } while (plVar2 == (long *)0x0);" statement_identifier : (do_statement "do {\n    if ((*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)))\n    goto LAB_001cc483;\n    iVar6 = *(int *)((long)param_2 + 0xc) + -1;\n    *(int *)((long)param_2 + 0xc) = iVar6;\n    plVar2 = (long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25));\n  } while (plVar2 == (long *)0x0);" do (compound_statement "{\n    if ((*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)))\n    goto LAB_001cc483;\n    iVar6 = *(int *)((long)param_2 + 0xc) + -1;\n    *(int *)((long)param_2 + 0xc) = iVar6;\n    plVar2 = (long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25));\n  }" { (if_statement "if ((*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)))\n    goto LAB_001cc483;" if (parenthesized_expression "((*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)))" ( (binary_expression "(*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6))" (parenthesized_expression "(*(int *)(param_1 + 0x34) != 0)" ( (binary_expression "*(int *)(param_1 + 0x34) != 0" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) != number_literal) )) || (parenthesized_expression "(*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6))" ( (binary_expression "*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)" (pointer_expression "*(int *)((long)param_2 + 0xc)" * (cast_expression "(int *)((long)param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0xc)" ( (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) <= (pointer_expression "*(int *)(param_2 + 6)" * (cast_expression "(int *)(param_2 + 6)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 6)" ( (binary_expression "param_2 + 6" identifier + number_literal) ))))) ))) )) (goto_statement "goto LAB_001cc483;" goto statement_identifier ;)) (expression_statement "iVar6 = *(int *)((long)param_2 + 0xc) + -1;" (assignment_expression "iVar6 = *(int *)((long)param_2 + 0xc) + -1" identifier = (binary_expression "*(int *)((long)param_2 + 0xc) + -1" (pointer_expression "*(int *)((long)param_2 + 0xc)" * (cast_expression "(int *)((long)param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0xc)" ( (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)((long)param_2 + 0xc) = iVar6;" (assignment_expression "*(int *)((long)param_2 + 0xc) = iVar6" (pointer_expression "*(int *)((long)param_2 + 0xc)" * (cast_expression "(int *)((long)param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0xc)" ( (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "plVar2 = (long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25));" (assignment_expression "plVar2 = (long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25))" identifier = (cast_expression "(long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25))" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25))" identifier (argument_list "(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25))" ( identifier , (binary_expression "(long)iVar6 + ((long)*(int *)*param_2 << 0x25)" (cast_expression "(long)iVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (parenthesized_expression "((long)*(int *)*param_2 << 0x25)" ( (binary_expression "(long)*(int *)*param_2 << 0x25" (cast_expression "(long)*(int *)*param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)*param_2" * (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)))) << number_literal) ))) ))))) ;) }) while (parenthesized_expression "(plVar2 == (long *)0x0)" ( (binary_expression "plVar2 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;)) (if_statement "if (*(int *)((long)param_2 + 0xc) == *(int *)(param_2 + 6)) {\n    uVar5 = (ulong)*(int *)((long)param_2 + 0x34);\n    if (*(int *)((long)plVar2 + 0xc) <= *(int *)((long)param_2 + 0x34)) goto LAB_001cc4f9;\nLAB_001cc4cd:\n    param_2[2] = plVar2;\n    *(int *)(param_2 + 4) = (int)uVar5;\n    plVar3 = plVar2;\n  }\n  else {\n    uVar4 = (ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1];\n    if (uVar4 != 0) {\n      uVar5 = (ulong)uVar4;\n      goto LAB_001cc4cd;\n    }\nLAB_001cc4f9:\n    plVar3 = (long *)param_2[2];\n    if (plVar3 == (long *)0x0) {\n      FUN_00119e00(plVar2);\n      goto LAB_001cc47c;\n    }\n    uVar5 = (ulong)*(int *)(param_2 + 4);\n  }" if (parenthesized_expression "(*(int *)((long)param_2 + 0xc) == *(int *)(param_2 + 6))" ( (binary_expression "*(int *)((long)param_2 + 0xc) == *(int *)(param_2 + 6)" (pointer_expression "*(int *)((long)param_2 + 0xc)" * (cast_expression "(int *)((long)param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0xc)" ( (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == (pointer_expression "*(int *)(param_2 + 6)" * (cast_expression "(int *)(param_2 + 6)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 6)" ( (binary_expression "param_2 + 6" identifier + number_literal) ))))) )) (compound_statement "{\n    uVar5 = (ulong)*(int *)((long)param_2 + 0x34);\n    if (*(int *)((long)plVar2 + 0xc) <= *(int *)((long)param_2 + 0x34)) goto LAB_001cc4f9;\nLAB_001cc4cd:\n    param_2[2] = plVar2;\n    *(int *)(param_2 + 4) = (int)uVar5;\n    plVar3 = plVar2;\n  }" { (expression_statement "uVar5 = (ulong)*(int *)((long)param_2 + 0x34);" (assignment_expression "uVar5 = (ulong)*(int *)((long)param_2 + 0x34)" identifier = (binary_expression "(ulong)*(int *)((long)param_2 + 0x34)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(int *)((long)param_2 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0x34)" ( (binary_expression "(long)param_2 + 0x34" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (if_statement "if (*(int *)((long)plVar2 + 0xc) <= *(int *)((long)param_2 + 0x34)) goto LAB_001cc4f9;" if (parenthesized_expression "(*(int *)((long)plVar2 + 0xc) <= *(int *)((long)param_2 + 0x34))" ( (binary_expression "*(int *)((long)plVar2 + 0xc) <= *(int *)((long)param_2 + 0x34)" (pointer_expression "*(int *)((long)plVar2 + 0xc)" * (cast_expression "(int *)((long)plVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 0xc)" ( (binary_expression "(long)plVar2 + 0xc" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) <= (pointer_expression "*(int *)((long)param_2 + 0x34)" * (cast_expression "(int *)((long)param_2 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0x34)" ( (binary_expression "(long)param_2 + 0x34" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) )) (goto_statement "goto LAB_001cc4f9;" goto statement_identifier ;)) (labeled_statement "LAB_001cc4cd:\n    param_2[2] = plVar2;" statement_identifier : (expression_statement "param_2[2] = plVar2;" (assignment_expression "param_2[2] = plVar2" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;)) (expression_statement "*(int *)(param_2 + 4) = (int)uVar5;" (assignment_expression "*(int *)(param_2 + 4) = (int)uVar5" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "plVar3 = plVar2;" (assignment_expression "plVar3 = plVar2" identifier = identifier) ;) }) (else_clause "else {\n    uVar4 = (ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1];\n    if (uVar4 != 0) {\n      uVar5 = (ulong)uVar4;\n      goto LAB_001cc4cd;\n    }\nLAB_001cc4f9:\n    plVar3 = (long *)param_2[2];\n    if (plVar3 == (long *)0x0) {\n      FUN_00119e00(plVar2);\n      goto LAB_001cc47c;\n    }\n    uVar5 = (ulong)*(int *)(param_2 + 4);\n  }" else (compound_statement "{\n    uVar4 = (ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1];\n    if (uVar4 != 0) {\n      uVar5 = (ulong)uVar4;\n      goto LAB_001cc4cd;\n    }\nLAB_001cc4f9:\n    plVar3 = (long *)param_2[2];\n    if (plVar3 == (long *)0x0) {\n      FUN_00119e00(plVar2);\n      goto LAB_001cc47c;\n    }\n    uVar5 = (ulong)*(int *)(param_2 + 4);\n  }" { (expression_statement "uVar4 = (ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1];" (assignment_expression "uVar4 = (ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1]" identifier = (binary_expression "(ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1]" (binary_expression "(ushort)*(byte *)*plVar2 * 0x100" (binary_expression "(ushort)*(byte *)*plVar2" (parenthesized_expression "(ushort)" ( identifier )) * (cast_expression "(byte *)*plVar2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar2" * identifier))) * number_literal) + (subscript_expression "(ushort)((byte *)*plVar2)[1]" (call_expression "(ushort)((byte *)*plVar2)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "((byte *)*plVar2)" ( (cast_expression "(byte *)*plVar2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar2" * identifier)) ))) [ number_literal ]))) ;) (if_statement "if (uVar4 != 0) {\n      uVar5 = (ulong)uVar4;\n      goto LAB_001cc4cd;\n    }" if (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar5 = (ulong)uVar4;\n      goto LAB_001cc4cd;\n    }" { (expression_statement "uVar5 = (ulong)uVar4;" (assignment_expression "uVar5 = (ulong)uVar4" identifier = (cast_expression "(ulong)uVar4" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (goto_statement "goto LAB_001cc4cd;" goto statement_identifier ;) })) (labeled_statement "LAB_001cc4f9:\n    plVar3 = (long *)param_2[2];" statement_identifier : (expression_statement "plVar3 = (long *)param_2[2];" (assignment_expression "plVar3 = (long *)param_2[2]" identifier = (cast_expression "(long *)param_2[2]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[2]" identifier [ number_literal ]))) ;)) (if_statement "if (plVar3 == (long *)0x0) {\n      FUN_00119e00(plVar2);\n      goto LAB_001cc47c;\n    }" if (parenthesized_expression "(plVar3 == (long *)0x0)" ( (binary_expression "plVar3 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      FUN_00119e00(plVar2);\n      goto LAB_001cc47c;\n    }" { (expression_statement "FUN_00119e00(plVar2);" (call_expression "FUN_00119e00(plVar2)" identifier (argument_list "(plVar2)" ( identifier ))) ;) (goto_statement "goto LAB_001cc47c;" goto statement_identifier ;) })) (expression_statement "uVar5 = (ulong)*(int *)(param_2 + 4);" (assignment_expression "uVar5 = (ulong)*(int *)(param_2 + 4)" identifier = (binary_expression "(ulong)*(int *)(param_2 + 4)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) }))) (expression_statement "bVar1 = FUN_00110120(uVar5 + *plVar3,param_2 + 0xd);" (assignment_expression "bVar1 = FUN_00110120(uVar5 + *plVar3,param_2 + 0xd)" identifier = (call_expression "FUN_00110120(uVar5 + *plVar3,param_2 + 0xd)" identifier (argument_list "(uVar5 + *plVar3,param_2 + 0xd)" ( (binary_expression "uVar5 + *plVar3" identifier + (pointer_expression "*plVar3" * identifier)) , (binary_expression "param_2 + 0xd" identifier + number_literal) )))) ;) (expression_statement "*(uint *)(param_2 + 4) = *(int *)(param_2 + 4) + (uint)bVar1;" (assignment_expression "*(uint *)(param_2 + 4) = *(int *)(param_2 + 4) + (uint)bVar1" (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(param_2 + 4) + (uint)bVar1" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) + (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (labeled_statement "LAB_001cc483:\n  if (param_2[2] != 0) {\n    *(int *)((long)param_2 + 0x3c) = *(int *)(param_2[2] + 8) + 1;\n    FUN_0015c140(param_1,param_2);\n    return;\n  }" statement_identifier : (if_statement "if (param_2[2] != 0) {\n    *(int *)((long)param_2 + 0x3c) = *(int *)(param_2[2] + 8) + 1;\n    FUN_0015c140(param_1,param_2);\n    return;\n  }" if (parenthesized_expression "(param_2[2] != 0)" ( (binary_expression "param_2[2] != 0" (subscript_expression "param_2[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    *(int *)((long)param_2 + 0x3c) = *(int *)(param_2[2] + 8) + 1;\n    FUN_0015c140(param_1,param_2);\n    return;\n  }" { (expression_statement "*(int *)((long)param_2 + 0x3c) = *(int *)(param_2[2] + 8) + 1;" (assignment_expression "*(int *)((long)param_2 + 0x3c) = *(int *)(param_2[2] + 8) + 1" (pointer_expression "*(int *)((long)param_2 + 0x3c)" * (cast_expression "(int *)((long)param_2 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0x3c)" ( (binary_expression "(long)param_2 + 0x3c" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (binary_expression "*(int *)(param_2[2] + 8) + 1" (pointer_expression "*(int *)(param_2[2] + 8)" * (cast_expression "(int *)(param_2[2] + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[2] + 8)" ( (binary_expression "param_2[2] + 8" (subscript_expression "param_2[2]" identifier [ number_literal ]) + number_literal) )))) + number_literal)) ;) (expression_statement "FUN_0015c140(param_1,param_2);" (call_expression "FUN_0015c140(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (labeled_statement statement_identifier : (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)))) << LIT) ))) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) * LIT) + (subscript_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + (pointer_expression * IDENT)) , (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) }))) (return_statement return ;) })))
(function_definition "void FUN_001cc430(long param_1,undefined8 *param_2)\n\n{\n  byte bVar1;\n  long *plVar2;\n  long *plVar3;\n  ushort uVar4;\n  ulong uVar5;\n  int iVar6;\n  \n  FUN_00119e00(param_2[2]);\n  param_2[2] = 0;\nLAB_001cc47c:\n  do {\n    if ((*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)))\n    goto LAB_001cc483;\n    iVar6 = *(int *)((long)param_2 + 0xc) + -1;\n    *(int *)((long)param_2 + 0xc) = iVar6;\n    plVar2 = (long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25));\n  } while (plVar2 == (long *)0x0);\n  if (*(int *)((long)param_2 + 0xc) == *(int *)(param_2 + 6)) {\n    uVar5 = (ulong)*(int *)((long)param_2 + 0x34);\n    if (*(int *)((long)plVar2 + 0xc) <= *(int *)((long)param_2 + 0x34)) goto LAB_001cc4f9;\nLAB_001cc4cd:\n    param_2[2] = plVar2;\n    *(int *)(param_2 + 4) = (int)uVar5;\n    plVar3 = plVar2;\n  }\n  else {\n    uVar4 = (ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1];\n    if (uVar4 != 0) {\n      uVar5 = (ulong)uVar4;\n      goto LAB_001cc4cd;\n    }\nLAB_001cc4f9:\n    plVar3 = (long *)param_2[2];\n    if (plVar3 == (long *)0x0) {\n      FUN_00119e00(plVar2);\n      goto LAB_001cc47c;\n    }\n    uVar5 = (ulong)*(int *)(param_2 + 4);\n  }\n  bVar1 = FUN_00110120(uVar5 + *plVar3,param_2 + 0xd);\n  *(uint *)(param_2 + 4) = *(int *)(param_2 + 4) + (uint)bVar1;\nLAB_001cc483:\n  if (param_2[2] != 0) {\n    *(int *)((long)param_2 + 0x3c) = *(int *)(param_2[2] + 8) + 1;\n    FUN_0015c140(param_1,param_2);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001cc430(long param_1,undefined8 *param_2)" (identifier "FUN_001cc430") (parameter_list "(long param_1,undefined8 *param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  long *plVar2;\n  long *plVar3;\n  ushort uVar4;\n  ulong uVar5;\n  int iVar6;\n  \n  FUN_00119e00(param_2[2]);\n  param_2[2] = 0;\nLAB_001cc47c:\n  do {\n    if ((*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)))\n    goto LAB_001cc483;\n    iVar6 = *(int *)((long)param_2 + 0xc) + -1;\n    *(int *)((long)param_2 + 0xc) = iVar6;\n    plVar2 = (long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25));\n  } while (plVar2 == (long *)0x0);\n  if (*(int *)((long)param_2 + 0xc) == *(int *)(param_2 + 6)) {\n    uVar5 = (ulong)*(int *)((long)param_2 + 0x34);\n    if (*(int *)((long)plVar2 + 0xc) <= *(int *)((long)param_2 + 0x34)) goto LAB_001cc4f9;\nLAB_001cc4cd:\n    param_2[2] = plVar2;\n    *(int *)(param_2 + 4) = (int)uVar5;\n    plVar3 = plVar2;\n  }\n  else {\n    uVar4 = (ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1];\n    if (uVar4 != 0) {\n      uVar5 = (ulong)uVar4;\n      goto LAB_001cc4cd;\n    }\nLAB_001cc4f9:\n    plVar3 = (long *)param_2[2];\n    if (plVar3 == (long *)0x0) {\n      FUN_00119e00(plVar2);\n      goto LAB_001cc47c;\n    }\n    uVar5 = (ulong)*(int *)(param_2 + 4);\n  }\n  bVar1 = FUN_00110120(uVar5 + *plVar3,param_2 + 0xd);\n  *(uint *)(param_2 + 4) = *(int *)(param_2 + 4) + (uint)bVar1;\nLAB_001cc483:\n  if (param_2[2] != 0) {\n    *(int *)((long)param_2 + 0x3c) = *(int *)(param_2[2] + 8) + 1;\n    FUN_0015c140(param_1,param_2);\n    return;\n  }\n  return;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "long *plVar2;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar2" (* "*") (identifier "plVar2")) (; ";")) (declaration "long *plVar3;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar3" (* "*") (identifier "plVar3")) (; ";")) (declaration "ushort uVar4;" (type_identifier "ushort") (identifier "uVar4") (; ";")) (declaration "ulong uVar5;" (type_identifier "ulong") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (expression_statement "FUN_00119e00(param_2[2]);" (call_expression "FUN_00119e00(param_2[2])" (identifier "FUN_00119e00") (argument_list "(param_2[2])" (( "(") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) () ")"))) (; ";")) (expression_statement "param_2[2] = 0;" (assignment_expression "param_2[2] = 0" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_001cc47c:\n  do {\n    if ((*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)))\n    goto LAB_001cc483;\n    iVar6 = *(int *)((long)param_2 + 0xc) + -1;\n    *(int *)((long)param_2 + 0xc) = iVar6;\n    plVar2 = (long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25));\n  } while (plVar2 == (long *)0x0);" (statement_identifier "LAB_001cc47c") (: ":") (do_statement "do {\n    if ((*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)))\n    goto LAB_001cc483;\n    iVar6 = *(int *)((long)param_2 + 0xc) + -1;\n    *(int *)((long)param_2 + 0xc) = iVar6;\n    plVar2 = (long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25));\n  } while (plVar2 == (long *)0x0);" (do "do") (compound_statement "{\n    if ((*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)))\n    goto LAB_001cc483;\n    iVar6 = *(int *)((long)param_2 + 0xc) + -1;\n    *(int *)((long)param_2 + 0xc) = iVar6;\n    plVar2 = (long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25));\n  }" ({ "{") (if_statement "if ((*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)))\n    goto LAB_001cc483;" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)))" (( "(") (binary_expression "(*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6))" (parenthesized_expression "(*(int *)(param_1 + 0x34) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x34) != 0" (pointer_expression "*(int *)(param_1 + 0x34)" (* "*") (cast_expression "(int *)(param_1 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6))" (( "(") (binary_expression "*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)" (pointer_expression "*(int *)((long)param_2 + 0xc)" (* "*") (cast_expression "(int *)((long)param_2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_2 + 0xc)" (( "(") (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (+ "+") (number_literal "0xc")) () ")")))) (<= "<=") (pointer_expression "*(int *)(param_2 + 6)" (* "*") (cast_expression "(int *)(param_2 + 6)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 6)" (( "(") (binary_expression "param_2 + 6" (identifier "param_2") (+ "+") (number_literal "6")) () ")"))))) () ")"))) () ")")) (goto_statement "goto LAB_001cc483;" (goto "goto") (statement_identifier "LAB_001cc483") (; ";"))) (expression_statement "iVar6 = *(int *)((long)param_2 + 0xc) + -1;" (assignment_expression "iVar6 = *(int *)((long)param_2 + 0xc) + -1" (identifier "iVar6") (= "=") (binary_expression "*(int *)((long)param_2 + 0xc) + -1" (pointer_expression "*(int *)((long)param_2 + 0xc)" (* "*") (cast_expression "(int *)((long)param_2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_2 + 0xc)" (( "(") (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*(int *)((long)param_2 + 0xc) = iVar6;" (assignment_expression "*(int *)((long)param_2 + 0xc) = iVar6" (pointer_expression "*(int *)((long)param_2 + 0xc)" (* "*") (cast_expression "(int *)((long)param_2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_2 + 0xc)" (( "(") (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar6")) (; ";")) (expression_statement "plVar2 = (long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25));" (assignment_expression "plVar2 = (long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25))" (identifier "plVar2") (= "=") (cast_expression "(long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25))" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25))" (identifier "FUN_001cb0c0") (argument_list "(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25))" (( "(") (identifier "param_1") (, ",") (binary_expression "(long)iVar6 + ((long)*(int *)*param_2 << 0x25)" (cast_expression "(long)iVar6" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar6")) (+ "+") (parenthesized_expression "((long)*(int *)*param_2 << 0x25)" (( "(") (binary_expression "(long)*(int *)*param_2 << 0x25" (cast_expression "(long)*(int *)*param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "*(int *)*param_2" (* "*") (cast_expression "(int *)*param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))))) (<< "<<") (number_literal "0x25")) () ")"))) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(plVar2 == (long *)0x0)" (( "(") (binary_expression "plVar2 == (long *)0x0" (identifier "plVar2") (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";"))) (if_statement "if (*(int *)((long)param_2 + 0xc) == *(int *)(param_2 + 6)) {\n    uVar5 = (ulong)*(int *)((long)param_2 + 0x34);\n    if (*(int *)((long)plVar2 + 0xc) <= *(int *)((long)param_2 + 0x34)) goto LAB_001cc4f9;\nLAB_001cc4cd:\n    param_2[2] = plVar2;\n    *(int *)(param_2 + 4) = (int)uVar5;\n    plVar3 = plVar2;\n  }\n  else {\n    uVar4 = (ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1];\n    if (uVar4 != 0) {\n      uVar5 = (ulong)uVar4;\n      goto LAB_001cc4cd;\n    }\nLAB_001cc4f9:\n    plVar3 = (long *)param_2[2];\n    if (plVar3 == (long *)0x0) {\n      FUN_00119e00(plVar2);\n      goto LAB_001cc47c;\n    }\n    uVar5 = (ulong)*(int *)(param_2 + 4);\n  }" (if "if") (parenthesized_expression "(*(int *)((long)param_2 + 0xc) == *(int *)(param_2 + 6))" (( "(") (binary_expression "*(int *)((long)param_2 + 0xc) == *(int *)(param_2 + 6)" (pointer_expression "*(int *)((long)param_2 + 0xc)" (* "*") (cast_expression "(int *)((long)param_2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_2 + 0xc)" (( "(") (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (+ "+") (number_literal "0xc")) () ")")))) (== "==") (pointer_expression "*(int *)(param_2 + 6)" (* "*") (cast_expression "(int *)(param_2 + 6)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 6)" (( "(") (binary_expression "param_2 + 6" (identifier "param_2") (+ "+") (number_literal "6")) () ")"))))) () ")")) (compound_statement "{\n    uVar5 = (ulong)*(int *)((long)param_2 + 0x34);\n    if (*(int *)((long)plVar2 + 0xc) <= *(int *)((long)param_2 + 0x34)) goto LAB_001cc4f9;\nLAB_001cc4cd:\n    param_2[2] = plVar2;\n    *(int *)(param_2 + 4) = (int)uVar5;\n    plVar3 = plVar2;\n  }" ({ "{") (expression_statement "uVar5 = (ulong)*(int *)((long)param_2 + 0x34);" (assignment_expression "uVar5 = (ulong)*(int *)((long)param_2 + 0x34)" (identifier "uVar5") (= "=") (binary_expression "(ulong)*(int *)((long)param_2 + 0x34)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (cast_expression "(int *)((long)param_2 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_2 + 0x34)" (( "(") (binary_expression "(long)param_2 + 0x34" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (+ "+") (number_literal "0x34")) () ")"))))) (; ";")) (if_statement "if (*(int *)((long)plVar2 + 0xc) <= *(int *)((long)param_2 + 0x34)) goto LAB_001cc4f9;" (if "if") (parenthesized_expression "(*(int *)((long)plVar2 + 0xc) <= *(int *)((long)param_2 + 0x34))" (( "(") (binary_expression "*(int *)((long)plVar2 + 0xc) <= *(int *)((long)param_2 + 0x34)" (pointer_expression "*(int *)((long)plVar2 + 0xc)" (* "*") (cast_expression "(int *)((long)plVar2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar2 + 0xc)" (( "(") (binary_expression "(long)plVar2 + 0xc" (cast_expression "(long)plVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar2")) (+ "+") (number_literal "0xc")) () ")")))) (<= "<=") (pointer_expression "*(int *)((long)param_2 + 0x34)" (* "*") (cast_expression "(int *)((long)param_2 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_2 + 0x34)" (( "(") (binary_expression "(long)param_2 + 0x34" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (+ "+") (number_literal "0x34")) () ")"))))) () ")")) (goto_statement "goto LAB_001cc4f9;" (goto "goto") (statement_identifier "LAB_001cc4f9") (; ";"))) (labeled_statement "LAB_001cc4cd:\n    param_2[2] = plVar2;" (statement_identifier "LAB_001cc4cd") (: ":") (expression_statement "param_2[2] = plVar2;" (assignment_expression "param_2[2] = plVar2" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "plVar2")) (; ";"))) (expression_statement "*(int *)(param_2 + 4) = (int)uVar5;" (assignment_expression "*(int *)(param_2 + 4) = (int)uVar5" (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (= "=") (cast_expression "(int)uVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar5"))) (; ";")) (expression_statement "plVar3 = plVar2;" (assignment_expression "plVar3 = plVar2" (identifier "plVar3") (= "=") (identifier "plVar2")) (; ";")) (} "}")) (else_clause "else {\n    uVar4 = (ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1];\n    if (uVar4 != 0) {\n      uVar5 = (ulong)uVar4;\n      goto LAB_001cc4cd;\n    }\nLAB_001cc4f9:\n    plVar3 = (long *)param_2[2];\n    if (plVar3 == (long *)0x0) {\n      FUN_00119e00(plVar2);\n      goto LAB_001cc47c;\n    }\n    uVar5 = (ulong)*(int *)(param_2 + 4);\n  }" (else "else") (compound_statement "{\n    uVar4 = (ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1];\n    if (uVar4 != 0) {\n      uVar5 = (ulong)uVar4;\n      goto LAB_001cc4cd;\n    }\nLAB_001cc4f9:\n    plVar3 = (long *)param_2[2];\n    if (plVar3 == (long *)0x0) {\n      FUN_00119e00(plVar2);\n      goto LAB_001cc47c;\n    }\n    uVar5 = (ulong)*(int *)(param_2 + 4);\n  }" ({ "{") (expression_statement "uVar4 = (ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1];" (assignment_expression "uVar4 = (ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1]" (identifier "uVar4") (= "=") (binary_expression "(ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1]" (binary_expression "(ushort)*(byte *)*plVar2 * 0x100" (binary_expression "(ushort)*(byte *)*plVar2" (parenthesized_expression "(ushort)" (( "(") (identifier "ushort") () ")")) (* "*") (cast_expression "(byte *)*plVar2" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*plVar2" (* "*") (identifier "plVar2")))) (* "*") (number_literal "0x100")) (+ "+") (subscript_expression "(ushort)((byte *)*plVar2)[1]" (call_expression "(ushort)((byte *)*plVar2)" (parenthesized_expression "(ushort)" (( "(") (identifier "ushort") () ")")) (argument_list "((byte *)*plVar2)" (( "(") (cast_expression "(byte *)*plVar2" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*plVar2" (* "*") (identifier "plVar2"))) () ")"))) ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (uVar4 != 0) {\n      uVar5 = (ulong)uVar4;\n      goto LAB_001cc4cd;\n    }" (if "if") (parenthesized_expression "(uVar4 != 0)" (( "(") (binary_expression "uVar4 != 0" (identifier "uVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar5 = (ulong)uVar4;\n      goto LAB_001cc4cd;\n    }" ({ "{") (expression_statement "uVar5 = (ulong)uVar4;" (assignment_expression "uVar5 = (ulong)uVar4" (identifier "uVar5") (= "=") (cast_expression "(ulong)uVar4" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar4"))) (; ";")) (goto_statement "goto LAB_001cc4cd;" (goto "goto") (statement_identifier "LAB_001cc4cd") (; ";")) (} "}"))) (labeled_statement "LAB_001cc4f9:\n    plVar3 = (long *)param_2[2];" (statement_identifier "LAB_001cc4f9") (: ":") (expression_statement "plVar3 = (long *)param_2[2];" (assignment_expression "plVar3 = (long *)param_2[2]" (identifier "plVar3") (= "=") (cast_expression "(long *)param_2[2]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")))) (; ";"))) (if_statement "if (plVar3 == (long *)0x0) {\n      FUN_00119e00(plVar2);\n      goto LAB_001cc47c;\n    }" (if "if") (parenthesized_expression "(plVar3 == (long *)0x0)" (( "(") (binary_expression "plVar3 == (long *)0x0" (identifier "plVar3") (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      FUN_00119e00(plVar2);\n      goto LAB_001cc47c;\n    }" ({ "{") (expression_statement "FUN_00119e00(plVar2);" (call_expression "FUN_00119e00(plVar2)" (identifier "FUN_00119e00") (argument_list "(plVar2)" (( "(") (identifier "plVar2") () ")"))) (; ";")) (goto_statement "goto LAB_001cc47c;" (goto "goto") (statement_identifier "LAB_001cc47c") (; ";")) (} "}"))) (expression_statement "uVar5 = (ulong)*(int *)(param_2 + 4);" (assignment_expression "uVar5 = (ulong)*(int *)(param_2 + 4)" (identifier "uVar5") (= "=") (binary_expression "(ulong)*(int *)(param_2 + 4)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}")))) (expression_statement "bVar1 = FUN_00110120(uVar5 + *plVar3,param_2 + 0xd);" (assignment_expression "bVar1 = FUN_00110120(uVar5 + *plVar3,param_2 + 0xd)" (identifier "bVar1") (= "=") (call_expression "FUN_00110120(uVar5 + *plVar3,param_2 + 0xd)" (identifier "FUN_00110120") (argument_list "(uVar5 + *plVar3,param_2 + 0xd)" (( "(") (binary_expression "uVar5 + *plVar3" (identifier "uVar5") (+ "+") (pointer_expression "*plVar3" (* "*") (identifier "plVar3"))) (, ",") (binary_expression "param_2 + 0xd" (identifier "param_2") (+ "+") (number_literal "0xd")) () ")")))) (; ";")) (expression_statement "*(uint *)(param_2 + 4) = *(int *)(param_2 + 4) + (uint)bVar1;" (assignment_expression "*(uint *)(param_2 + 4) = *(int *)(param_2 + 4) + (uint)bVar1" (pointer_expression "*(uint *)(param_2 + 4)" (* "*") (cast_expression "(uint *)(param_2 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(int *)(param_2 + 4) + (uint)bVar1" (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (+ "+") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1")))) (; ";")) (labeled_statement "LAB_001cc483:\n  if (param_2[2] != 0) {\n    *(int *)((long)param_2 + 0x3c) = *(int *)(param_2[2] + 8) + 1;\n    FUN_0015c140(param_1,param_2);\n    return;\n  }" (statement_identifier "LAB_001cc483") (: ":") (if_statement "if (param_2[2] != 0) {\n    *(int *)((long)param_2 + 0x3c) = *(int *)(param_2[2] + 8) + 1;\n    FUN_0015c140(param_1,param_2);\n    return;\n  }" (if "if") (parenthesized_expression "(param_2[2] != 0)" (( "(") (binary_expression "param_2[2] != 0" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(int *)((long)param_2 + 0x3c) = *(int *)(param_2[2] + 8) + 1;\n    FUN_0015c140(param_1,param_2);\n    return;\n  }" ({ "{") (expression_statement "*(int *)((long)param_2 + 0x3c) = *(int *)(param_2[2] + 8) + 1;" (assignment_expression "*(int *)((long)param_2 + 0x3c) = *(int *)(param_2[2] + 8) + 1" (pointer_expression "*(int *)((long)param_2 + 0x3c)" (* "*") (cast_expression "(int *)((long)param_2 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_2 + 0x3c)" (( "(") (binary_expression "(long)param_2 + 0x3c" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (binary_expression "*(int *)(param_2[2] + 8) + 1" (pointer_expression "*(int *)(param_2[2] + 8)" (* "*") (cast_expression "(int *)(param_2[2] + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2[2] + 8)" (( "(") (binary_expression "param_2[2] + 8" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_0015c140(param_1,param_2);" (call_expression "FUN_0015c140(param_1,param_2)" (identifier "FUN_0015c140") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *p,type_2 *pIter)

{
  type_3 bVar1;
  type_4 *var_3;
  type_4 *var_5;
  type_5 var_4;
  type_6 var_7;
  int iVar5;
  
  var_1(pIter->pLeaf);
  pIter->pLeaf = (type_4 *)0x0;
LAB_001cc47c:
  do {
    if ((p->rc != 0) || (pIter->iLeafPgno <= pIter->iTermLeafPgno)) goto LAB_001cc483;
    iVar5 = pIter->iLeafPgno + -1;
    pIter->iLeafPgno = iVar5;
    var_3 = var_2(p,(long)iVar5 + ((long)pIter->pSeg->iSegid << 0x25));
  } while (var_3 == (type_4 *)0x0);
  if (pIter->iLeafPgno == pIter->iTermLeafPgno) {
    var_7 = (type_6)pIter->iTermLeafOffset;
    if (var_3->szLeaf <= pIter->iTermLeafOffset) goto LAB_001cc4f9;
LAB_001cc4cd:
    pIter->pLeaf = var_3;
    pIter->iLeafOffset = (int)var_7;
    var_5 = var_3;
  }
  else {
    var_4 = (type_5)*var_3->p * 0x100 + (type_5)var_3->p[1];
    if (var_4 != 0) {
      var_7 = (type_6)var_4;
      goto LAB_001cc4cd;
    }
LAB_001cc4f9:
    var_5 = pIter->pLeaf;
    if (var_5 == (type_4 *)0x0) {
      var_1(var_3);
      goto LAB_001cc47c;
    }
    var_7 = (type_6)pIter->iLeafOffset;
  }
  bVar1 = var_6(var_5->p + var_7,(type_7 *)&pIter->iRowid);
  pIter->iLeafOffset = pIter->iLeafOffset + (type_8)bVar1;
LAB_001cc483:
  if (pIter->pLeaf != (type_4 *)0x0) {
    pIter->iEndofDoclist = pIter->pLeaf->nn + 1;
    var_8(p,pIter);
    return;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (labeled_statement label: (statement_identifier) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) right: (number_literal)))))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) right: (number_literal)) right: (subscript_expression argument: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (goto_statement label: (statement_identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (pointer_expression argument: (identifier))) (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement)))) (return_statement))))

void MASKED(long param_1,undefined8 *param_2)

{
  byte bVar1;
  long *plVar2;
  long *plVar3;
  ushort uVar4;
  ulong uVar5;
  int iVar6;
  
  FUN_00119e00(param_2[2]);
  param_2[2] = 0;
LAB_001cc47c:
  do {
    if ((*(int *)(param_1 + 0x34) != 0) || (*(int *)((long)param_2 + 0xc) <= *(int *)(param_2 + 6)))
    goto LAB_001cc483;
    iVar6 = *(int *)((long)param_2 + 0xc) + -1;
    *(int *)((long)param_2 + 0xc) = iVar6;
    plVar2 = (long *)FUN_001cb0c0(param_1,(long)iVar6 + ((long)*(int *)*param_2 << 0x25));
  } while (plVar2 == (long *)0x0);
  if (*(int *)((long)param_2 + 0xc) == *(int *)(param_2 + 6)) {
    uVar5 = (ulong)*(int *)((long)param_2 + 0x34);
    if (*(int *)((long)plVar2 + 0xc) <= *(int *)((long)param_2 + 0x34)) goto LAB_001cc4f9;
LAB_001cc4cd:
    param_2[2] = plVar2;
    *(int *)(param_2 + 4) = (int)uVar5;
    plVar3 = plVar2;
  }
  else {
    uVar4 = (ushort)*(byte *)*plVar2 * 0x100 + (ushort)((byte *)*plVar2)[1];
    if (uVar4 != 0) {
      uVar5 = (ulong)uVar4;
      goto LAB_001cc4cd;
    }
LAB_001cc4f9:
    plVar3 = (long *)param_2[2];
    if (plVar3 == (long *)0x0) {
      FUN_00119e00(plVar2);
      goto LAB_001cc47c;
    }
    uVar5 = (ulong)*(int *)(param_2 + 4);
  }
  bVar1 = FUN_00110120(uVar5 + *plVar3,param_2 + 0xd);
  *(uint *)(param_2 + 4) = *(int *)(param_2 + 4) + (uint)bVar1;
LAB_001cc483:
  if (param_2[2] != 0) {
    *(int *)((long)param_2 + 0x3c) = *(int *)(param_2[2] + 8) + 1;
    FUN_0015c140(param_1,param_2);
    return;
  }
  return;
}

