
int deleteCell(Rtree *pRtree,RtreeNode *pNode,int iCell,int iHeight)

{
  byte bVar1;
  long lVar2;
  u8 *puVar3;
  RtreeNode *ppNode;
  RtreeNode *pRVar4;
  int iVar5;
  int iVar6;
  sqlite_int64 iNode;
  
  lVar2 = pNode->iNode;
  if (lVar2 != 1) {
    pRVar4 = pNode->pParent;
    ppNode = pNode;
    while (pRVar4 == (RtreeNode *)0x0) {
      sqlite3_bind_int64(pRtree->pReadParent,1,lVar2);
      iVar6 = sqlite3_step(pRtree->pReadParent);
      if (iVar6 == 100) {
        iNode = sqlite3_column_int64(pRtree->pReadParent,0);
        lVar2 = pNode->iNode;
        pRVar4 = pNode;
        while (iNode != lVar2) {
          pRVar4 = pRVar4->pParent;
          if (pRVar4 == (RtreeNode *)0x0) {
            iVar6 = nodeAcquire(pRtree,iNode,(RtreeNode *)0x0,&ppNode->pParent);
            iVar5 = sqlite3_reset(pRtree->pReadParent);
            if (iVar5 != 0) {
              return iVar5;
            }
            goto joined_r0x001e3c41;
          }
          lVar2 = pRVar4->iNode;
        }
      }
      iVar6 = sqlite3_reset(pRtree->pReadParent);
joined_r0x001e3c41:
      if (iVar6 != 0) {
        return iVar6;
      }
      ppNode = ppNode->pParent;
      if (ppNode == (RtreeNode *)0x0) {
        return 0x10b;
      }
      lVar2 = ppNode->iNode;
      if (lVar2 == 1) break;
      pRVar4 = ppNode->pParent;
    }
  }
  puVar3 = pNode->zData;
  bVar1 = pRtree->nBytesPerCell;
  memmove(puVar3 + (int)(iCell * (uint)bVar1 + 4),puVar3 + (int)(iCell * (uint)bVar1 + 4) + bVar1,
          (long)(int)(((((uint)puVar3[3] + (uint)puVar3[2] * 0x100) - iCell) + -1) * (uint)bVar1));
  puVar3 = pNode->zData;
  iVar6 = (uint)puVar3[2] * 0x100 + -1 + (uint)puVar3[3];
  puVar3[2] = (u8)((uint)iVar6 >> 8);
  puVar3[3] = (u8)iVar6;
  pNode->isDirty = 1;
  iVar6 = 0;
  if (pNode->pParent != (RtreeNode *)0x0) {
    if ((int)((uint)pNode->zData[2] * 0x100 + (uint)pNode->zData[3]) <
        ((pRtree->iNodeSize + -4) / (int)(uint)pRtree->nBytesPerCell) / 3) {
      iVar6 = removeNode(pRtree,pNode,iHeight);
    }
    else {
      iVar6 = fixBoundingBox(pRtree,pNode);
    }
  }
  return iVar6;
}



ulong FUN_001e3ad4(long param_1,long *param_2,int param_3,undefined4 param_4)

{
  byte bVar1;
  long *plVar2;
  long *plVar3;
  long lVar4;
  uint uVar5;
  int iVar6;
  long lVar7;
  ulong uVar8;
  ulong uVar9;
  void *__dest;
  
  if (param_2[1] != 1) {
    lVar4 = *param_2;
    plVar3 = param_2;
    while (lVar4 == 0) {
      FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1);
      iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0));
      if (iVar6 == 100) {
        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);
        lVar4 = param_2[1];
        plVar2 = param_2;
        while (lVar7 != lVar4) {
          plVar2 = (long *)*plVar2;
          if (plVar2 == (long *)0x0) {
            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);
            uVar9 = (ulong)uVar5;
            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));
            if ((int)uVar8 != 0) {
              return uVar8;
            }
            goto joined_r0x001e3c41;
          }
          lVar4 = plVar2[1];
        }
      }
      uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));
      uVar5 = (uint)uVar9;
joined_r0x001e3c41:
      if (uVar5 != 0) {
        return uVar9;
      }
      plVar3 = (long *)*plVar3;
      if (plVar3 == (long *)0x0) {
        return 0x10b;
      }
      if (plVar3[1] == 1) break;
      lVar4 = *plVar3;
    }
  }
  lVar4 = param_2[3];
  bVar1 = *(byte *)(param_1 + 0x27);
  __dest = (void *)((int)(param_3 * (uint)bVar1 + 4) + lVar4);
  memmove(__dest,(void *)((ulong)bVar1 + (long)__dest),
          (long)(int)(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)
                      + -1) * (uint)bVar1));
  lVar4 = param_2[3];
  iVar6 = (uint)*(byte *)(lVar4 + 2) * 0x100 + -1 + (uint)*(byte *)(lVar4 + 3);
  *(char *)(lVar4 + 2) = (char)((uint)iVar6 >> 8);
  *(char *)(lVar4 + 3) = (char)iVar6;
  *(undefined4 *)((long)param_2 + 0x14) = 1;
  uVar9 = 0;
  if (*param_2 != 0) {
    if ((int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)) <
        ((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3) {
      uVar9 = FUN_001e3ca8(param_1,param_2,param_4);
    }
    else {
      uVar9 = FUN_00149ad8(param_1,param_2);
    }
  }
  return uVar9;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RBP,RDI
MOV RBX,RSI
MOV R13D,EDX
MOV R12D,ECX
MOV RDX,qword ptr [RSI + 0x8]
CMP RDX,0x1
JZ 0x001e3b4b
CMP qword ptr [RSI],0x0
JNZ 0x001e3b4b
MOV R14,RSI
JMP 0x001e3c63
MOV RDI,qword ptr [RBP + 0xa0]
MOV ESI,0x0
CALL 0x0014243c
CMP RAX,qword ptr [RBX + 0x8]
JZ 0x001e3c89
MOV RDX,RBX
MOV RDX,qword ptr [RDX]
TEST RDX,RDX
JZ 0x001e3c18
CMP RAX,qword ptr [RDX + 0x8]
JNZ 0x001e3b24
JMP 0x001e3c89
MOV RSI,RBX
MOV RDI,RBP
CALL 0x00149ad8
JMP 0x001e3c99
MOV RDX,qword ptr [RBX + 0x18]
MOVZX ESI,byte ptr [RBP + 0x27]
MOVZX ECX,SIL
MOV EDI,R13D
IMUL EDI,ECX
ADD EDI,0x4
MOVSXD RDI,EDI
ADD RDI,RDX
MOVZX EAX,byte ptr [RDX + 0x2]
SHL EAX,0x8
MOVZX EDX,byte ptr [RDX + 0x3]
ADD EDX,EAX
MOV EAX,EDX
SUB EAX,R13D
LEA EDX,[RAX + -0x1]
IMUL EDX,ECX
MOVSXD RDX,EDX
MOVZX ESI,SIL
ADD RSI,RDI
CALL 0x0010e420
MOV RAX,qword ptr [RBX + 0x18]
MOVZX EDX,byte ptr [RAX + 0x2]
SHL EDX,0x8
MOVZX ECX,byte ptr [RAX + 0x3]
LEA EDX,[RDX + RCX*0x1 + -0x1]
MOVZX ECX,DH
MOV byte ptr [RAX + 0x2],CL
MOV byte ptr [RAX + 0x3],DL
MOV dword ptr [RBX + 0x14],0x1
MOV EAX,0x0
CMP qword ptr [RBX],0x0
JZ 0x001e3c99
MOV RSI,qword ptr [RBX + 0x18]
MOV EAX,dword ptr [RBP + 0x20]
SUB EAX,0x4
MOVZX EDI,byte ptr [RBP + 0x27]
CDQ
IDIV EDI
MOV ECX,EAX
MOV EDX,0x55555556
IMUL EDX
SAR ECX,0x1f
SUB EDX,ECX
MOVZX EAX,byte ptr [RSI + 0x2]
SHL EAX,0x8
MOVZX ECX,byte ptr [RSI + 0x3]
ADD EAX,ECX
CMP EDX,EAX
JLE 0x001e3b3b
MOV EDX,R12D
MOV RSI,RBX
MOV RDI,RBP
CALL 0x001e3ca8
JMP 0x001e3c99
MOV EAX,R15D
JMP 0x001e3c99
MOV EAX,0x10b
JMP 0x001e3c99
MOV RCX,R14
MOV EDX,0x0
MOV RSI,RAX
MOV RDI,RBP
CALL 0x001e3755
MOV R15D,EAX
MOV RDI,qword ptr [RBP + 0xa0]
CALL 0x00190b14
TEST EAX,EAX
JNZ 0x001e3c99
TEST R15D,R15D
JNZ 0x001e3c06
MOV R14,qword ptr [R14]
TEST R14,R14
JZ 0x001e3c0e
MOV RDX,qword ptr [R14 + 0x8]
CMP RDX,0x1
JZ 0x001e3b4b
CMP qword ptr [R14],0x0
JNZ 0x001e3b4b
MOV RDI,qword ptr [RBP + 0xa0]
MOV ESI,0x1
CALL 0x0015b455
MOV RDI,qword ptr [RBP + 0xa0]
CALL 0x001ab5c0
CMP EAX,0x64
JZ 0x001e3b06
MOV RDI,qword ptr [RBP + 0xa0]
CALL 0x00190b14
TEST EAX,EAX
JZ 0x001e3c43
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
(translation_unit "ulong FUN_001e3ad4(long param_1,long *param_2,int param_3,undefined4 param_4)\n\n{\n  byte bVar1;\n  long *plVar2;\n  long *plVar3;\n  long lVar4;\n  uint uVar5;\n  int iVar6;\n  long lVar7;\n  ulong uVar8;\n  ulong uVar9;\n  void *__dest;\n  \n  if (param_2[1] != 1) {\n    lVar4 = *param_2;\n    plVar3 = param_2;\n    while (lVar4 == 0) {\n      FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1);\n      iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0));\n      if (iVar6 == 100) {\n        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);\n        lVar4 = param_2[1];\n        plVar2 = param_2;\n        while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }\n      }\n      uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n      uVar5 = (uint)uVar9;\njoined_r0x001e3c41:\n      if (uVar5 != 0) {\n        return uVar9;\n      }\n      plVar3 = (long *)*plVar3;\n      if (plVar3 == (long *)0x0) {\n        return 0x10b;\n      }\n      if (plVar3[1] == 1) break;\n      lVar4 = *plVar3;\n    }\n  }\n  lVar4 = param_2[3];\n  bVar1 = *(byte *)(param_1 + 0x27);\n  __dest = (void *)((int)(param_3 * (uint)bVar1 + 4) + lVar4);\n  memmove(__dest,(void *)((ulong)bVar1 + (long)__dest),\n          (long)(int)(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1));\n  lVar4 = param_2[3];\n  iVar6 = (uint)*(byte *)(lVar4 + 2) * 0x100 + -1 + (uint)*(byte *)(lVar4 + 3);\n  *(char *)(lVar4 + 2) = (char)((uint)iVar6 >> 8);\n  *(char *)(lVar4 + 3) = (char)iVar6;\n  *(undefined4 *)((long)param_2 + 0x14) = 1;\n  uVar9 = 0;\n  if (*param_2 != 0) {\n    if ((int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)) <\n        ((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3) {\n      uVar9 = FUN_001e3ca8(param_1,param_2,param_4);\n    }\n    else {\n      uVar9 = FUN_00149ad8(param_1,param_2);\n    }\n  }\n  return uVar9;\n}\n\n" (function_definition "ulong FUN_001e3ad4(long param_1,long *param_2,int param_3,undefined4 param_4)\n\n{\n  byte bVar1;\n  long *plVar2;\n  long *plVar3;\n  long lVar4;\n  uint uVar5;\n  int iVar6;\n  long lVar7;\n  ulong uVar8;\n  ulong uVar9;\n  void *__dest;\n  \n  if (param_2[1] != 1) {\n    lVar4 = *param_2;\n    plVar3 = param_2;\n    while (lVar4 == 0) {\n      FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1);\n      iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0));\n      if (iVar6 == 100) {\n        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);\n        lVar4 = param_2[1];\n        plVar2 = param_2;\n        while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }\n      }\n      uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n      uVar5 = (uint)uVar9;\njoined_r0x001e3c41:\n      if (uVar5 != 0) {\n        return uVar9;\n      }\n      plVar3 = (long *)*plVar3;\n      if (plVar3 == (long *)0x0) {\n        return 0x10b;\n      }\n      if (plVar3[1] == 1) break;\n      lVar4 = *plVar3;\n    }\n  }\n  lVar4 = param_2[3];\n  bVar1 = *(byte *)(param_1 + 0x27);\n  __dest = (void *)((int)(param_3 * (uint)bVar1 + 4) + lVar4);\n  memmove(__dest,(void *)((ulong)bVar1 + (long)__dest),\n          (long)(int)(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1));\n  lVar4 = param_2[3];\n  iVar6 = (uint)*(byte *)(lVar4 + 2) * 0x100 + -1 + (uint)*(byte *)(lVar4 + 3);\n  *(char *)(lVar4 + 2) = (char)((uint)iVar6 >> 8);\n  *(char *)(lVar4 + 3) = (char)iVar6;\n  *(undefined4 *)((long)param_2 + 0x14) = 1;\n  uVar9 = 0;\n  if (*param_2 != 0) {\n    if ((int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)) <\n        ((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3) {\n      uVar9 = FUN_001e3ca8(param_1,param_2,param_4);\n    }\n    else {\n      uVar9 = FUN_00149ad8(param_1,param_2);\n    }\n  }\n  return uVar9;\n}" type_identifier (function_declarator "FUN_001e3ad4(long param_1,long *param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(long param_1,long *param_2,int param_3,undefined4 param_4)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  long *plVar2;\n  long *plVar3;\n  long lVar4;\n  uint uVar5;\n  int iVar6;\n  long lVar7;\n  ulong uVar8;\n  ulong uVar9;\n  void *__dest;\n  \n  if (param_2[1] != 1) {\n    lVar4 = *param_2;\n    plVar3 = param_2;\n    while (lVar4 == 0) {\n      FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1);\n      iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0));\n      if (iVar6 == 100) {\n        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);\n        lVar4 = param_2[1];\n        plVar2 = param_2;\n        while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }\n      }\n      uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n      uVar5 = (uint)uVar9;\njoined_r0x001e3c41:\n      if (uVar5 != 0) {\n        return uVar9;\n      }\n      plVar3 = (long *)*plVar3;\n      if (plVar3 == (long *)0x0) {\n        return 0x10b;\n      }\n      if (plVar3[1] == 1) break;\n      lVar4 = *plVar3;\n    }\n  }\n  lVar4 = param_2[3];\n  bVar1 = *(byte *)(param_1 + 0x27);\n  __dest = (void *)((int)(param_3 * (uint)bVar1 + 4) + lVar4);\n  memmove(__dest,(void *)((ulong)bVar1 + (long)__dest),\n          (long)(int)(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1));\n  lVar4 = param_2[3];\n  iVar6 = (uint)*(byte *)(lVar4 + 2) * 0x100 + -1 + (uint)*(byte *)(lVar4 + 3);\n  *(char *)(lVar4 + 2) = (char)((uint)iVar6 >> 8);\n  *(char *)(lVar4 + 3) = (char)iVar6;\n  *(undefined4 *)((long)param_2 + 0x14) = 1;\n  uVar9 = 0;\n  if (*param_2 != 0) {\n    if ((int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)) <\n        ((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3) {\n      uVar9 = FUN_001e3ca8(param_1,param_2,param_4);\n    }\n    else {\n      uVar9 = FUN_00149ad8(param_1,param_2);\n    }\n  }\n  return uVar9;\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 "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "long lVar7;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar8;" type_identifier identifier ;) (declaration "ulong uVar9;" type_identifier identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (if_statement "if (param_2[1] != 1) {\n    lVar4 = *param_2;\n    plVar3 = param_2;\n    while (lVar4 == 0) {\n      FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1);\n      iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0));\n      if (iVar6 == 100) {\n        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);\n        lVar4 = param_2[1];\n        plVar2 = param_2;\n        while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }\n      }\n      uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n      uVar5 = (uint)uVar9;\njoined_r0x001e3c41:\n      if (uVar5 != 0) {\n        return uVar9;\n      }\n      plVar3 = (long *)*plVar3;\n      if (plVar3 == (long *)0x0) {\n        return 0x10b;\n      }\n      if (plVar3[1] == 1) break;\n      lVar4 = *plVar3;\n    }\n  }" if (parenthesized_expression "(param_2[1] != 1)" ( (binary_expression "param_2[1] != 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    lVar4 = *param_2;\n    plVar3 = param_2;\n    while (lVar4 == 0) {\n      FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1);\n      iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0));\n      if (iVar6 == 100) {\n        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);\n        lVar4 = param_2[1];\n        plVar2 = param_2;\n        while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }\n      }\n      uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n      uVar5 = (uint)uVar9;\njoined_r0x001e3c41:\n      if (uVar5 != 0) {\n        return uVar9;\n      }\n      plVar3 = (long *)*plVar3;\n      if (plVar3 == (long *)0x0) {\n        return 0x10b;\n      }\n      if (plVar3[1] == 1) break;\n      lVar4 = *plVar3;\n    }\n  }" { (expression_statement "lVar4 = *param_2;" (assignment_expression "lVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "plVar3 = param_2;" (assignment_expression "plVar3 = param_2" identifier = identifier) ;) (while_statement "while (lVar4 == 0) {\n      FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1);\n      iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0));\n      if (iVar6 == 100) {\n        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);\n        lVar4 = param_2[1];\n        plVar2 = param_2;\n        while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }\n      }\n      uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n      uVar5 = (uint)uVar9;\njoined_r0x001e3c41:\n      if (uVar5 != 0) {\n        return uVar9;\n      }\n      plVar3 = (long *)*plVar3;\n      if (plVar3 == (long *)0x0) {\n        return 0x10b;\n      }\n      if (plVar3[1] == 1) break;\n      lVar4 = *plVar3;\n    }" while (parenthesized_expression "(lVar4 == 0)" ( (binary_expression "lVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1);\n      iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0));\n      if (iVar6 == 100) {\n        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);\n        lVar4 = param_2[1];\n        plVar2 = param_2;\n        while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }\n      }\n      uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n      uVar5 = (uint)uVar9;\njoined_r0x001e3c41:\n      if (uVar5 != 0) {\n        return uVar9;\n      }\n      plVar3 = (long *)*plVar3;\n      if (plVar3 == (long *)0x0) {\n        return 0x10b;\n      }\n      if (plVar3[1] == 1) break;\n      lVar4 = *plVar3;\n    }" { (expression_statement "FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1);" (call_expression "FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1)" identifier (argument_list "(*(undefined8 *)(param_1 + 0xa0),1)" ( (pointer_expression "*(undefined8 *)(param_1 + 0xa0)" * (cast_expression "(undefined8 *)(param_1 + 0xa0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0));" (assignment_expression "iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0))" identifier = (call_expression "FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0))" identifier (argument_list "(*(undefined8 *)(param_1 + 0xa0))" ( (pointer_expression "*(undefined8 *)(param_1 + 0xa0)" * (cast_expression "(undefined8 *)(param_1 + 0xa0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar6 == 100) {\n        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);\n        lVar4 = param_2[1];\n        plVar2 = param_2;\n        while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }\n      }" if (parenthesized_expression "(iVar6 == 100)" ( (binary_expression "iVar6 == 100" identifier == number_literal) )) (compound_statement "{\n        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);\n        lVar4 = param_2[1];\n        plVar2 = param_2;\n        while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }\n      }" { (expression_statement "lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);" (assignment_expression "lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0)" identifier = (call_expression "FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0)" identifier (argument_list "(*(undefined8 *)(param_1 + 0xa0),0)" ( (pointer_expression "*(undefined8 *)(param_1 + 0xa0)" * (cast_expression "(undefined8 *)(param_1 + 0xa0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "lVar4 = param_2[1];" (assignment_expression "lVar4 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "plVar2 = param_2;" (assignment_expression "plVar2 = param_2" identifier = identifier) ;) (while_statement "while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }" while (parenthesized_expression "(lVar7 != lVar4)" ( (binary_expression "lVar7 != lVar4" identifier != identifier) )) (compound_statement "{\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }" { (expression_statement "plVar2 = (long *)*plVar2;" (assignment_expression "plVar2 = (long *)*plVar2" identifier = (cast_expression "(long *)*plVar2" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar2" * identifier))) ;) (if_statement "if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }" if (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)) )) (compound_statement "{\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }" { (expression_statement "uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);" (assignment_expression "uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3)" identifier = (call_expression "FUN_001e3755(param_1,lVar7,0,plVar3)" identifier (argument_list "(param_1,lVar7,0,plVar3)" ( identifier , identifier , number_literal , identifier )))) ;) (expression_statement "uVar9 = (ulong)uVar5;" (assignment_expression "uVar9 = (ulong)uVar5" identifier = (cast_expression "(ulong)uVar5" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));" (assignment_expression "uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0))" identifier = (call_expression "FUN_00190b14(*(undefined8 *)(param_1 + 0xa0))" identifier (argument_list "(*(undefined8 *)(param_1 + 0xa0))" ( (pointer_expression "*(undefined8 *)(param_1 + 0xa0)" * (cast_expression "(undefined8 *)(param_1 + 0xa0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) )))) )))) ;) (if_statement "if ((int)uVar8 != 0) {\n              return uVar8;\n            }" if (parenthesized_expression "((int)uVar8 != 0)" ( (binary_expression "(int)uVar8 != 0" (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) )) (compound_statement "{\n              return uVar8;\n            }" { (return_statement "return uVar8;" return identifier ;) })) (goto_statement "goto joined_r0x001e3c41;" goto statement_identifier ;) })) (expression_statement "lVar4 = plVar2[1];" (assignment_expression "lVar4 = plVar2[1]" identifier = (subscript_expression "plVar2[1]" identifier [ number_literal ])) ;) })) })) (expression_statement "uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));" (assignment_expression "uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0))" identifier = (call_expression "FUN_00190b14(*(undefined8 *)(param_1 + 0xa0))" identifier (argument_list "(*(undefined8 *)(param_1 + 0xa0))" ( (pointer_expression "*(undefined8 *)(param_1 + 0xa0)" * (cast_expression "(undefined8 *)(param_1 + 0xa0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) )))) )))) ;) (expression_statement "uVar5 = (uint)uVar9;" (assignment_expression "uVar5 = (uint)uVar9" identifier = (cast_expression "(uint)uVar9" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (labeled_statement "joined_r0x001e3c41:\n      if (uVar5 != 0) {\n        return uVar9;\n      }" statement_identifier : (if_statement "if (uVar5 != 0) {\n        return uVar9;\n      }" if (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) (compound_statement "{\n        return uVar9;\n      }" { (return_statement "return uVar9;" return identifier ;) }))) (expression_statement "plVar3 = (long *)*plVar3;" (assignment_expression "plVar3 = (long *)*plVar3" identifier = (cast_expression "(long *)*plVar3" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar3" * identifier))) ;) (if_statement "if (plVar3 == (long *)0x0) {\n        return 0x10b;\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        return 0x10b;\n      }" { (return_statement "return 0x10b;" return number_literal ;) })) (if_statement "if (plVar3[1] == 1) break;" if (parenthesized_expression "(plVar3[1] == 1)" ( (binary_expression "plVar3[1] == 1" (subscript_expression "plVar3[1]" identifier [ number_literal ]) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar4 = *plVar3;" (assignment_expression "lVar4 = *plVar3" identifier = (pointer_expression "*plVar3" * identifier)) ;) })) })) (expression_statement "lVar4 = param_2[3];" (assignment_expression "lVar4 = param_2[3]" identifier = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (expression_statement "bVar1 = *(byte *)(param_1 + 0x27);" (assignment_expression "bVar1 = *(byte *)(param_1 + 0x27)" identifier = (pointer_expression "*(byte *)(param_1 + 0x27)" * (cast_expression "(byte *)(param_1 + 0x27)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x27)" ( (binary_expression "param_1 + 0x27" identifier + number_literal) ))))) ;) (expression_statement "__dest = (void *)((int)(param_3 * (uint)bVar1 + 4) + lVar4);" (assignment_expression "__dest = (void *)((int)(param_3 * (uint)bVar1 + 4) + lVar4)" identifier = (cast_expression "(void *)((int)(param_3 * (uint)bVar1 + 4) + lVar4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)(param_3 * (uint)bVar1 + 4) + lVar4)" ( (binary_expression "(int)(param_3 * (uint)bVar1 + 4) + lVar4" (cast_expression "(int)(param_3 * (uint)bVar1 + 4)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_3 * (uint)bVar1 + 4)" ( (binary_expression "param_3 * (uint)bVar1 + 4" (binary_expression "param_3 * (uint)bVar1" identifier * (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) + number_literal) ))) + identifier) )))) ;) (expression_statement "memmove(__dest,(void *)((ulong)bVar1 + (long)__dest),\n          (long)(int)(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1));" (call_expression "memmove(__dest,(void *)((ulong)bVar1 + (long)__dest),\n          (long)(int)(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1))" identifier (argument_list "(__dest,(void *)((ulong)bVar1 + (long)__dest),\n          (long)(int)(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1))" ( identifier , (cast_expression "(void *)((ulong)bVar1 + (long)__dest)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)bVar1 + (long)__dest)" ( (binary_expression "(ulong)bVar1 + (long)__dest" (cast_expression "(ulong)bVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) + (cast_expression "(long)__dest" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) , (cast_expression "(long)(int)(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1)" ( (binary_expression "((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1" (parenthesized_expression "((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1)" ( (binary_expression "(((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1" (parenthesized_expression "(((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)" ( (binary_expression "((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3" (parenthesized_expression "((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100)" ( (binary_expression "(uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100" (binary_expression "(uint)*(byte *)(lVar4 + 3)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(lVar4 + 3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 3)" ( (binary_expression "lVar4 + 3" identifier + number_literal) )))) + (binary_expression "(uint)*(byte *)(lVar4 + 2) * 0x100" (binary_expression "(uint)*(byte *)(lVar4 + 2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(lVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 2)" ( (binary_expression "lVar4 + 2" identifier + number_literal) )))) * number_literal)) )) - identifier) )) + number_literal) )) * (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) )))) ))) ;) (expression_statement "lVar4 = param_2[3];" (assignment_expression "lVar4 = param_2[3]" identifier = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = (uint)*(byte *)(lVar4 + 2) * 0x100 + -1 + (uint)*(byte *)(lVar4 + 3);" (assignment_expression "iVar6 = (uint)*(byte *)(lVar4 + 2) * 0x100 + -1 + (uint)*(byte *)(lVar4 + 3)" identifier = (binary_expression "(uint)*(byte *)(lVar4 + 2) * 0x100 + -1 + (uint)*(byte *)(lVar4 + 3)" (binary_expression "(uint)*(byte *)(lVar4 + 2) * 0x100 + -1" (binary_expression "(uint)*(byte *)(lVar4 + 2) * 0x100" (binary_expression "(uint)*(byte *)(lVar4 + 2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(lVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 2)" ( (binary_expression "lVar4 + 2" identifier + number_literal) )))) * number_literal) + number_literal) + (binary_expression "(uint)*(byte *)(lVar4 + 3)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(lVar4 + 3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 3)" ( (binary_expression "lVar4 + 3" identifier + number_literal) )))))) ;) (expression_statement "*(char *)(lVar4 + 2) = (char)((uint)iVar6 >> 8);" (assignment_expression "*(char *)(lVar4 + 2) = (char)((uint)iVar6 >> 8)" (pointer_expression "*(char *)(lVar4 + 2)" * (cast_expression "(char *)(lVar4 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 2)" ( (binary_expression "lVar4 + 2" identifier + number_literal) )))) = (cast_expression "(char)((uint)iVar6 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)iVar6 >> 8)" ( (binary_expression "(uint)iVar6 >> 8" (cast_expression "(uint)iVar6" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*(char *)(lVar4 + 3) = (char)iVar6;" (assignment_expression "*(char *)(lVar4 + 3) = (char)iVar6" (pointer_expression "*(char *)(lVar4 + 3)" * (cast_expression "(char *)(lVar4 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 3)" ( (binary_expression "lVar4 + 3" identifier + number_literal) )))) = (cast_expression "(char)iVar6" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "*(undefined4 *)((long)param_2 + 0x14) = 1;" (assignment_expression "*(undefined4 *)((long)param_2 + 0x14) = 1" (pointer_expression "*(undefined4 *)((long)param_2 + 0x14)" * (cast_expression "(undefined4 *)((long)param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0x14)" ( (binary_expression "(long)param_2 + 0x14" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (if_statement "if (*param_2 != 0) {\n    if ((int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)) <\n        ((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3) {\n      uVar9 = FUN_001e3ca8(param_1,param_2,param_4);\n    }\n    else {\n      uVar9 = FUN_00149ad8(param_1,param_2);\n    }\n  }" if (parenthesized_expression "(*param_2 != 0)" ( (binary_expression "*param_2 != 0" (pointer_expression "*param_2" * identifier) != number_literal) )) (compound_statement "{\n    if ((int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)) <\n        ((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3) {\n      uVar9 = FUN_001e3ca8(param_1,param_2,param_4);\n    }\n    else {\n      uVar9 = FUN_00149ad8(param_1,param_2);\n    }\n  }" { (if_statement "if ((int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)) <\n        ((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3) {\n      uVar9 = FUN_001e3ca8(param_1,param_2,param_4);\n    }\n    else {\n      uVar9 = FUN_00149ad8(param_1,param_2);\n    }" if (parenthesized_expression "((int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)) <\n        ((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3)" ( (binary_expression "(int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)) <\n        ((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3" (cast_expression "(int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3))" ( (binary_expression "(uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)" (binary_expression "(uint)*(byte *)(param_2[3] + 2) * 0x100" (binary_expression "(uint)*(byte *)(param_2[3] + 2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_2[3] + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[3] + 2)" ( (binary_expression "param_2[3] + 2" (subscript_expression "param_2[3]" identifier [ number_literal ]) + number_literal) )))) * number_literal) + (binary_expression "(uint)*(byte *)(param_2[3] + 3)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_2[3] + 3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[3] + 3)" ( (binary_expression "param_2[3] + 3" (subscript_expression "param_2[3]" identifier [ number_literal ]) + number_literal) ))))) ))) < (binary_expression "((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3" (parenthesized_expression "((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27))" ( (binary_expression "(*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)" (binary_expression "(*(int *)(param_1 + 0x20) + -4) / (int)(uint)" (parenthesized_expression "(*(int *)(param_1 + 0x20) + -4)" ( (binary_expression "*(int *)(param_1 + 0x20) + -4" (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) + number_literal) )) / (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier )))) * (cast_expression "(byte *)(param_1 + 0x27)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x27)" ( (binary_expression "param_1 + 0x27" identifier + number_literal) )))) )) / number_literal)) )) (compound_statement "{\n      uVar9 = FUN_001e3ca8(param_1,param_2,param_4);\n    }" { (expression_statement "uVar9 = FUN_001e3ca8(param_1,param_2,param_4);" (assignment_expression "uVar9 = FUN_001e3ca8(param_1,param_2,param_4)" identifier = (call_expression "FUN_001e3ca8(param_1,param_2,param_4)" identifier (argument_list "(param_1,param_2,param_4)" ( identifier , identifier , identifier )))) ;) }) (else_clause "else {\n      uVar9 = FUN_00149ad8(param_1,param_2);\n    }" else (compound_statement "{\n      uVar9 = FUN_00149ad8(param_1,param_2);\n    }" { (expression_statement "uVar9 = FUN_00149ad8(param_1,param_2);" (assignment_expression "uVar9 = FUN_00149ad8(param_1,param_2)" identifier = (call_expression "FUN_00149ad8(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) }))) })) (return_statement "return uVar9;" return identifier ;) })))
(translation_unit "int deleteCell(Rtree *pRtree,RtreeNode *pNode,int iCell,int iHeight)\n\n{\n  byte bVar1;\n  long lVar2;\n  u8 *puVar3;\n  RtreeNode *ppNode;\n  RtreeNode *pRVar4;\n  int iVar5;\n  int iVar6;\n  sqlite_int64 iNode;\n  \n  lVar2 = pNode->iNode;\n  if (lVar2 != 1) {\n    pRVar4 = pNode->pParent;\n    ppNode = pNode;\n    while (pRVar4 == (RtreeNode *)0x0) {\n      sqlite3_bind_int64(pRtree->pReadParent,1,lVar2);\n      iVar6 = sqlite3_step(pRtree->pReadParent);\n      if (iVar6 == 100) {\n        iNode = sqlite3_column_int64(pRtree->pReadParent,0);\n        lVar2 = pNode->iNode;\n        pRVar4 = pNode;\n        while (iNode != lVar2) {\n          pRVar4 = pRVar4->pParent;\n          if (pRVar4 == (RtreeNode *)0x0) {\n            iVar6 = nodeAcquire(pRtree,iNode,(RtreeNode *)0x0,&ppNode->pParent);\n            iVar5 = sqlite3_reset(pRtree->pReadParent);\n            if (iVar5 != 0) {\n              return iVar5;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar2 = pRVar4->iNode;\n        }\n      }\n      iVar6 = sqlite3_reset(pRtree->pReadParent);\njoined_r0x001e3c41:\n      if (iVar6 != 0) {\n        return iVar6;\n      }\n      ppNode = ppNode->pParent;\n      if (ppNode == (RtreeNode *)0x0) {\n        return 0x10b;\n      }\n      lVar2 = ppNode->iNode;\n      if (lVar2 == 1) break;\n      pRVar4 = ppNode->pParent;\n    }\n  }\n  puVar3 = pNode->zData;\n  bVar1 = pRtree->nBytesPerCell;\n  memmove(puVar3 + (int)(iCell * (uint)bVar1 + 4),puVar3 + (int)(iCell * (uint)bVar1 + 4) + bVar1,\n          (long)(int)(((((uint)puVar3[3] + (uint)puVar3[2] * 0x100) - iCell) + -1) * (uint)bVar1));\n  puVar3 = pNode->zData;\n  iVar6 = (uint)puVar3[2] * 0x100 + -1 + (uint)puVar3[3];\n  puVar3[2] = (u8)((uint)iVar6 >> 8);\n  puVar3[3] = (u8)iVar6;\n  pNode->isDirty = 1;\n  iVar6 = 0;\n  if (pNode->pParent != (RtreeNode *)0x0) {\n    if ((int)((uint)pNode->zData[2] * 0x100 + (uint)pNode->zData[3]) <\n        ((pRtree->iNodeSize + -4) / (int)(uint)pRtree->nBytesPerCell) / 3) {\n      iVar6 = removeNode(pRtree,pNode,iHeight);\n    }\n    else {\n      iVar6 = fixBoundingBox(pRtree,pNode);\n    }\n  }\n  return iVar6;\n}\n\n" (function_definition "int deleteCell(Rtree *pRtree,RtreeNode *pNode,int iCell,int iHeight)\n\n{\n  byte bVar1;\n  long lVar2;\n  u8 *puVar3;\n  RtreeNode *ppNode;\n  RtreeNode *pRVar4;\n  int iVar5;\n  int iVar6;\n  sqlite_int64 iNode;\n  \n  lVar2 = pNode->iNode;\n  if (lVar2 != 1) {\n    pRVar4 = pNode->pParent;\n    ppNode = pNode;\n    while (pRVar4 == (RtreeNode *)0x0) {\n      sqlite3_bind_int64(pRtree->pReadParent,1,lVar2);\n      iVar6 = sqlite3_step(pRtree->pReadParent);\n      if (iVar6 == 100) {\n        iNode = sqlite3_column_int64(pRtree->pReadParent,0);\n        lVar2 = pNode->iNode;\n        pRVar4 = pNode;\n        while (iNode != lVar2) {\n          pRVar4 = pRVar4->pParent;\n          if (pRVar4 == (RtreeNode *)0x0) {\n            iVar6 = nodeAcquire(pRtree,iNode,(RtreeNode *)0x0,&ppNode->pParent);\n            iVar5 = sqlite3_reset(pRtree->pReadParent);\n            if (iVar5 != 0) {\n              return iVar5;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar2 = pRVar4->iNode;\n        }\n      }\n      iVar6 = sqlite3_reset(pRtree->pReadParent);\njoined_r0x001e3c41:\n      if (iVar6 != 0) {\n        return iVar6;\n      }\n      ppNode = ppNode->pParent;\n      if (ppNode == (RtreeNode *)0x0) {\n        return 0x10b;\n      }\n      lVar2 = ppNode->iNode;\n      if (lVar2 == 1) break;\n      pRVar4 = ppNode->pParent;\n    }\n  }\n  puVar3 = pNode->zData;\n  bVar1 = pRtree->nBytesPerCell;\n  memmove(puVar3 + (int)(iCell * (uint)bVar1 + 4),puVar3 + (int)(iCell * (uint)bVar1 + 4) + bVar1,\n          (long)(int)(((((uint)puVar3[3] + (uint)puVar3[2] * 0x100) - iCell) + -1) * (uint)bVar1));\n  puVar3 = pNode->zData;\n  iVar6 = (uint)puVar3[2] * 0x100 + -1 + (uint)puVar3[3];\n  puVar3[2] = (u8)((uint)iVar6 >> 8);\n  puVar3[3] = (u8)iVar6;\n  pNode->isDirty = 1;\n  iVar6 = 0;\n  if (pNode->pParent != (RtreeNode *)0x0) {\n    if ((int)((uint)pNode->zData[2] * 0x100 + (uint)pNode->zData[3]) <\n        ((pRtree->iNodeSize + -4) / (int)(uint)pRtree->nBytesPerCell) / 3) {\n      iVar6 = removeNode(pRtree,pNode,iHeight);\n    }\n    else {\n      iVar6 = fixBoundingBox(pRtree,pNode);\n    }\n  }\n  return iVar6;\n}" primitive_type (function_declarator "deleteCell(Rtree *pRtree,RtreeNode *pNode,int iCell,int iHeight)" identifier (parameter_list "(Rtree *pRtree,RtreeNode *pNode,int iCell,int iHeight)" ( (parameter_declaration "Rtree *pRtree" type_identifier (pointer_declarator "*pRtree" * identifier)) , (parameter_declaration "RtreeNode *pNode" type_identifier (pointer_declarator "*pNode" * identifier)) , (parameter_declaration "int iCell" primitive_type identifier) , (parameter_declaration "int iHeight" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  long lVar2;\n  u8 *puVar3;\n  RtreeNode *ppNode;\n  RtreeNode *pRVar4;\n  int iVar5;\n  int iVar6;\n  sqlite_int64 iNode;\n  \n  lVar2 = pNode->iNode;\n  if (lVar2 != 1) {\n    pRVar4 = pNode->pParent;\n    ppNode = pNode;\n    while (pRVar4 == (RtreeNode *)0x0) {\n      sqlite3_bind_int64(pRtree->pReadParent,1,lVar2);\n      iVar6 = sqlite3_step(pRtree->pReadParent);\n      if (iVar6 == 100) {\n        iNode = sqlite3_column_int64(pRtree->pReadParent,0);\n        lVar2 = pNode->iNode;\n        pRVar4 = pNode;\n        while (iNode != lVar2) {\n          pRVar4 = pRVar4->pParent;\n          if (pRVar4 == (RtreeNode *)0x0) {\n            iVar6 = nodeAcquire(pRtree,iNode,(RtreeNode *)0x0,&ppNode->pParent);\n            iVar5 = sqlite3_reset(pRtree->pReadParent);\n            if (iVar5 != 0) {\n              return iVar5;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar2 = pRVar4->iNode;\n        }\n      }\n      iVar6 = sqlite3_reset(pRtree->pReadParent);\njoined_r0x001e3c41:\n      if (iVar6 != 0) {\n        return iVar6;\n      }\n      ppNode = ppNode->pParent;\n      if (ppNode == (RtreeNode *)0x0) {\n        return 0x10b;\n      }\n      lVar2 = ppNode->iNode;\n      if (lVar2 == 1) break;\n      pRVar4 = ppNode->pParent;\n    }\n  }\n  puVar3 = pNode->zData;\n  bVar1 = pRtree->nBytesPerCell;\n  memmove(puVar3 + (int)(iCell * (uint)bVar1 + 4),puVar3 + (int)(iCell * (uint)bVar1 + 4) + bVar1,\n          (long)(int)(((((uint)puVar3[3] + (uint)puVar3[2] * 0x100) - iCell) + -1) * (uint)bVar1));\n  puVar3 = pNode->zData;\n  iVar6 = (uint)puVar3[2] * 0x100 + -1 + (uint)puVar3[3];\n  puVar3[2] = (u8)((uint)iVar6 >> 8);\n  puVar3[3] = (u8)iVar6;\n  pNode->isDirty = 1;\n  iVar6 = 0;\n  if (pNode->pParent != (RtreeNode *)0x0) {\n    if ((int)((uint)pNode->zData[2] * 0x100 + (uint)pNode->zData[3]) <\n        ((pRtree->iNodeSize + -4) / (int)(uint)pRtree->nBytesPerCell) / 3) {\n      iVar6 = removeNode(pRtree,pNode,iHeight);\n    }\n    else {\n      iVar6 = fixBoundingBox(pRtree,pNode);\n    }\n  }\n  return iVar6;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "u8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "RtreeNode *ppNode;" type_identifier (pointer_declarator "*ppNode" * identifier) ;) (declaration "RtreeNode *pRVar4;" type_identifier (pointer_declarator "*pRVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "sqlite_int64 iNode;" type_identifier identifier ;) (expression_statement "lVar2 = pNode->iNode;" (assignment_expression "lVar2 = pNode->iNode" identifier = (field_expression "pNode->iNode" identifier -> field_identifier)) ;) (if_statement "if (lVar2 != 1) {\n    pRVar4 = pNode->pParent;\n    ppNode = pNode;\n    while (pRVar4 == (RtreeNode *)0x0) {\n      sqlite3_bind_int64(pRtree->pReadParent,1,lVar2);\n      iVar6 = sqlite3_step(pRtree->pReadParent);\n      if (iVar6 == 100) {\n        iNode = sqlite3_column_int64(pRtree->pReadParent,0);\n        lVar2 = pNode->iNode;\n        pRVar4 = pNode;\n        while (iNode != lVar2) {\n          pRVar4 = pRVar4->pParent;\n          if (pRVar4 == (RtreeNode *)0x0) {\n            iVar6 = nodeAcquire(pRtree,iNode,(RtreeNode *)0x0,&ppNode->pParent);\n            iVar5 = sqlite3_reset(pRtree->pReadParent);\n            if (iVar5 != 0) {\n              return iVar5;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar2 = pRVar4->iNode;\n        }\n      }\n      iVar6 = sqlite3_reset(pRtree->pReadParent);\njoined_r0x001e3c41:\n      if (iVar6 != 0) {\n        return iVar6;\n      }\n      ppNode = ppNode->pParent;\n      if (ppNode == (RtreeNode *)0x0) {\n        return 0x10b;\n      }\n      lVar2 = ppNode->iNode;\n      if (lVar2 == 1) break;\n      pRVar4 = ppNode->pParent;\n    }\n  }" if (parenthesized_expression "(lVar2 != 1)" ( (binary_expression "lVar2 != 1" identifier != number_literal) )) (compound_statement "{\n    pRVar4 = pNode->pParent;\n    ppNode = pNode;\n    while (pRVar4 == (RtreeNode *)0x0) {\n      sqlite3_bind_int64(pRtree->pReadParent,1,lVar2);\n      iVar6 = sqlite3_step(pRtree->pReadParent);\n      if (iVar6 == 100) {\n        iNode = sqlite3_column_int64(pRtree->pReadParent,0);\n        lVar2 = pNode->iNode;\n        pRVar4 = pNode;\n        while (iNode != lVar2) {\n          pRVar4 = pRVar4->pParent;\n          if (pRVar4 == (RtreeNode *)0x0) {\n            iVar6 = nodeAcquire(pRtree,iNode,(RtreeNode *)0x0,&ppNode->pParent);\n            iVar5 = sqlite3_reset(pRtree->pReadParent);\n            if (iVar5 != 0) {\n              return iVar5;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar2 = pRVar4->iNode;\n        }\n      }\n      iVar6 = sqlite3_reset(pRtree->pReadParent);\njoined_r0x001e3c41:\n      if (iVar6 != 0) {\n        return iVar6;\n      }\n      ppNode = ppNode->pParent;\n      if (ppNode == (RtreeNode *)0x0) {\n        return 0x10b;\n      }\n      lVar2 = ppNode->iNode;\n      if (lVar2 == 1) break;\n      pRVar4 = ppNode->pParent;\n    }\n  }" { (expression_statement "pRVar4 = pNode->pParent;" (assignment_expression "pRVar4 = pNode->pParent" identifier = (field_expression "pNode->pParent" identifier -> field_identifier)) ;) (expression_statement "ppNode = pNode;" (assignment_expression "ppNode = pNode" identifier = identifier) ;) (while_statement "while (pRVar4 == (RtreeNode *)0x0) {\n      sqlite3_bind_int64(pRtree->pReadParent,1,lVar2);\n      iVar6 = sqlite3_step(pRtree->pReadParent);\n      if (iVar6 == 100) {\n        iNode = sqlite3_column_int64(pRtree->pReadParent,0);\n        lVar2 = pNode->iNode;\n        pRVar4 = pNode;\n        while (iNode != lVar2) {\n          pRVar4 = pRVar4->pParent;\n          if (pRVar4 == (RtreeNode *)0x0) {\n            iVar6 = nodeAcquire(pRtree,iNode,(RtreeNode *)0x0,&ppNode->pParent);\n            iVar5 = sqlite3_reset(pRtree->pReadParent);\n            if (iVar5 != 0) {\n              return iVar5;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar2 = pRVar4->iNode;\n        }\n      }\n      iVar6 = sqlite3_reset(pRtree->pReadParent);\njoined_r0x001e3c41:\n      if (iVar6 != 0) {\n        return iVar6;\n      }\n      ppNode = ppNode->pParent;\n      if (ppNode == (RtreeNode *)0x0) {\n        return 0x10b;\n      }\n      lVar2 = ppNode->iNode;\n      if (lVar2 == 1) break;\n      pRVar4 = ppNode->pParent;\n    }" while (parenthesized_expression "(pRVar4 == (RtreeNode *)0x0)" ( (binary_expression "pRVar4 == (RtreeNode *)0x0" identifier == (cast_expression "(RtreeNode *)0x0" ( (type_descriptor "RtreeNode *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sqlite3_bind_int64(pRtree->pReadParent,1,lVar2);\n      iVar6 = sqlite3_step(pRtree->pReadParent);\n      if (iVar6 == 100) {\n        iNode = sqlite3_column_int64(pRtree->pReadParent,0);\n        lVar2 = pNode->iNode;\n        pRVar4 = pNode;\n        while (iNode != lVar2) {\n          pRVar4 = pRVar4->pParent;\n          if (pRVar4 == (RtreeNode *)0x0) {\n            iVar6 = nodeAcquire(pRtree,iNode,(RtreeNode *)0x0,&ppNode->pParent);\n            iVar5 = sqlite3_reset(pRtree->pReadParent);\n            if (iVar5 != 0) {\n              return iVar5;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar2 = pRVar4->iNode;\n        }\n      }\n      iVar6 = sqlite3_reset(pRtree->pReadParent);\njoined_r0x001e3c41:\n      if (iVar6 != 0) {\n        return iVar6;\n      }\n      ppNode = ppNode->pParent;\n      if (ppNode == (RtreeNode *)0x0) {\n        return 0x10b;\n      }\n      lVar2 = ppNode->iNode;\n      if (lVar2 == 1) break;\n      pRVar4 = ppNode->pParent;\n    }" { (expression_statement "sqlite3_bind_int64(pRtree->pReadParent,1,lVar2);" (call_expression "sqlite3_bind_int64(pRtree->pReadParent,1,lVar2)" identifier (argument_list "(pRtree->pReadParent,1,lVar2)" ( (field_expression "pRtree->pReadParent" identifier -> field_identifier) , number_literal , identifier ))) ;) (expression_statement "iVar6 = sqlite3_step(pRtree->pReadParent);" (assignment_expression "iVar6 = sqlite3_step(pRtree->pReadParent)" identifier = (call_expression "sqlite3_step(pRtree->pReadParent)" identifier (argument_list "(pRtree->pReadParent)" ( (field_expression "pRtree->pReadParent" identifier -> field_identifier) )))) ;) (if_statement "if (iVar6 == 100) {\n        iNode = sqlite3_column_int64(pRtree->pReadParent,0);\n        lVar2 = pNode->iNode;\n        pRVar4 = pNode;\n        while (iNode != lVar2) {\n          pRVar4 = pRVar4->pParent;\n          if (pRVar4 == (RtreeNode *)0x0) {\n            iVar6 = nodeAcquire(pRtree,iNode,(RtreeNode *)0x0,&ppNode->pParent);\n            iVar5 = sqlite3_reset(pRtree->pReadParent);\n            if (iVar5 != 0) {\n              return iVar5;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar2 = pRVar4->iNode;\n        }\n      }" if (parenthesized_expression "(iVar6 == 100)" ( (binary_expression "iVar6 == 100" identifier == number_literal) )) (compound_statement "{\n        iNode = sqlite3_column_int64(pRtree->pReadParent,0);\n        lVar2 = pNode->iNode;\n        pRVar4 = pNode;\n        while (iNode != lVar2) {\n          pRVar4 = pRVar4->pParent;\n          if (pRVar4 == (RtreeNode *)0x0) {\n            iVar6 = nodeAcquire(pRtree,iNode,(RtreeNode *)0x0,&ppNode->pParent);\n            iVar5 = sqlite3_reset(pRtree->pReadParent);\n            if (iVar5 != 0) {\n              return iVar5;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar2 = pRVar4->iNode;\n        }\n      }" { (expression_statement "iNode = sqlite3_column_int64(pRtree->pReadParent,0);" (assignment_expression "iNode = sqlite3_column_int64(pRtree->pReadParent,0)" identifier = (call_expression "sqlite3_column_int64(pRtree->pReadParent,0)" identifier (argument_list "(pRtree->pReadParent,0)" ( (field_expression "pRtree->pReadParent" identifier -> field_identifier) , number_literal )))) ;) (expression_statement "lVar2 = pNode->iNode;" (assignment_expression "lVar2 = pNode->iNode" identifier = (field_expression "pNode->iNode" identifier -> field_identifier)) ;) (expression_statement "pRVar4 = pNode;" (assignment_expression "pRVar4 = pNode" identifier = identifier) ;) (while_statement "while (iNode != lVar2) {\n          pRVar4 = pRVar4->pParent;\n          if (pRVar4 == (RtreeNode *)0x0) {\n            iVar6 = nodeAcquire(pRtree,iNode,(RtreeNode *)0x0,&ppNode->pParent);\n            iVar5 = sqlite3_reset(pRtree->pReadParent);\n            if (iVar5 != 0) {\n              return iVar5;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar2 = pRVar4->iNode;\n        }" while (parenthesized_expression "(iNode != lVar2)" ( (binary_expression "iNode != lVar2" identifier != identifier) )) (compound_statement "{\n          pRVar4 = pRVar4->pParent;\n          if (pRVar4 == (RtreeNode *)0x0) {\n            iVar6 = nodeAcquire(pRtree,iNode,(RtreeNode *)0x0,&ppNode->pParent);\n            iVar5 = sqlite3_reset(pRtree->pReadParent);\n            if (iVar5 != 0) {\n              return iVar5;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar2 = pRVar4->iNode;\n        }" { (expression_statement "pRVar4 = pRVar4->pParent;" (assignment_expression "pRVar4 = pRVar4->pParent" identifier = (field_expression "pRVar4->pParent" identifier -> field_identifier)) ;) (if_statement "if (pRVar4 == (RtreeNode *)0x0) {\n            iVar6 = nodeAcquire(pRtree,iNode,(RtreeNode *)0x0,&ppNode->pParent);\n            iVar5 = sqlite3_reset(pRtree->pReadParent);\n            if (iVar5 != 0) {\n              return iVar5;\n            }\n            goto joined_r0x001e3c41;\n          }" if (parenthesized_expression "(pRVar4 == (RtreeNode *)0x0)" ( (binary_expression "pRVar4 == (RtreeNode *)0x0" identifier == (cast_expression "(RtreeNode *)0x0" ( (type_descriptor "RtreeNode *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar6 = nodeAcquire(pRtree,iNode,(RtreeNode *)0x0,&ppNode->pParent);\n            iVar5 = sqlite3_reset(pRtree->pReadParent);\n            if (iVar5 != 0) {\n              return iVar5;\n            }\n            goto joined_r0x001e3c41;\n          }" { (expression_statement "iVar6 = nodeAcquire(pRtree,iNode,(RtreeNode *)0x0,&ppNode->pParent);" (assignment_expression "iVar6 = nodeAcquire(pRtree,iNode,(RtreeNode *)0x0,&ppNode->pParent)" identifier = (call_expression "nodeAcquire(pRtree,iNode,(RtreeNode *)0x0,&ppNode->pParent)" identifier (argument_list "(pRtree,iNode,(RtreeNode *)0x0,&ppNode->pParent)" ( identifier , identifier , (cast_expression "(RtreeNode *)0x0" ( (type_descriptor "RtreeNode *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (pointer_expression "&ppNode->pParent" & (field_expression "ppNode->pParent" identifier -> field_identifier)) )))) ;) (expression_statement "iVar5 = sqlite3_reset(pRtree->pReadParent);" (assignment_expression "iVar5 = sqlite3_reset(pRtree->pReadParent)" identifier = (call_expression "sqlite3_reset(pRtree->pReadParent)" identifier (argument_list "(pRtree->pReadParent)" ( (field_expression "pRtree->pReadParent" identifier -> field_identifier) )))) ;) (if_statement "if (iVar5 != 0) {\n              return iVar5;\n            }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n              return iVar5;\n            }" { (return_statement "return iVar5;" return identifier ;) })) (goto_statement "goto joined_r0x001e3c41;" goto statement_identifier ;) })) (expression_statement "lVar2 = pRVar4->iNode;" (assignment_expression "lVar2 = pRVar4->iNode" identifier = (field_expression "pRVar4->iNode" identifier -> field_identifier)) ;) })) })) (expression_statement "iVar6 = sqlite3_reset(pRtree->pReadParent);" (assignment_expression "iVar6 = sqlite3_reset(pRtree->pReadParent)" identifier = (call_expression "sqlite3_reset(pRtree->pReadParent)" identifier (argument_list "(pRtree->pReadParent)" ( (field_expression "pRtree->pReadParent" identifier -> field_identifier) )))) ;) (labeled_statement "joined_r0x001e3c41:\n      if (iVar6 != 0) {\n        return iVar6;\n      }" statement_identifier : (if_statement "if (iVar6 != 0) {\n        return iVar6;\n      }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n        return iVar6;\n      }" { (return_statement "return iVar6;" return identifier ;) }))) (expression_statement "ppNode = ppNode->pParent;" (assignment_expression "ppNode = ppNode->pParent" identifier = (field_expression "ppNode->pParent" identifier -> field_identifier)) ;) (if_statement "if (ppNode == (RtreeNode *)0x0) {\n        return 0x10b;\n      }" if (parenthesized_expression "(ppNode == (RtreeNode *)0x0)" ( (binary_expression "ppNode == (RtreeNode *)0x0" identifier == (cast_expression "(RtreeNode *)0x0" ( (type_descriptor "RtreeNode *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 0x10b;\n      }" { (return_statement "return 0x10b;" return number_literal ;) })) (expression_statement "lVar2 = ppNode->iNode;" (assignment_expression "lVar2 = ppNode->iNode" identifier = (field_expression "ppNode->iNode" identifier -> field_identifier)) ;) (if_statement "if (lVar2 == 1) break;" if (parenthesized_expression "(lVar2 == 1)" ( (binary_expression "lVar2 == 1" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "pRVar4 = ppNode->pParent;" (assignment_expression "pRVar4 = ppNode->pParent" identifier = (field_expression "ppNode->pParent" identifier -> field_identifier)) ;) })) })) (expression_statement "puVar3 = pNode->zData;" (assignment_expression "puVar3 = pNode->zData" identifier = (field_expression "pNode->zData" identifier -> field_identifier)) ;) (expression_statement "bVar1 = pRtree->nBytesPerCell;" (assignment_expression "bVar1 = pRtree->nBytesPerCell" identifier = (field_expression "pRtree->nBytesPerCell" identifier -> field_identifier)) ;) (expression_statement "memmove(puVar3 + (int)(iCell * (uint)bVar1 + 4),puVar3 + (int)(iCell * (uint)bVar1 + 4) + bVar1,\n          (long)(int)(((((uint)puVar3[3] + (uint)puVar3[2] * 0x100) - iCell) + -1) * (uint)bVar1));" (call_expression "memmove(puVar3 + (int)(iCell * (uint)bVar1 + 4),puVar3 + (int)(iCell * (uint)bVar1 + 4) + bVar1,\n          (long)(int)(((((uint)puVar3[3] + (uint)puVar3[2] * 0x100) - iCell) + -1) * (uint)bVar1))" identifier (argument_list "(puVar3 + (int)(iCell * (uint)bVar1 + 4),puVar3 + (int)(iCell * (uint)bVar1 + 4) + bVar1,\n          (long)(int)(((((uint)puVar3[3] + (uint)puVar3[2] * 0x100) - iCell) + -1) * (uint)bVar1))" ( (binary_expression "puVar3 + (int)(iCell * (uint)bVar1 + 4)" identifier + (cast_expression "(int)(iCell * (uint)bVar1 + 4)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(iCell * (uint)bVar1 + 4)" ( (binary_expression "iCell * (uint)bVar1 + 4" (binary_expression "iCell * (uint)bVar1" identifier * (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) + number_literal) )))) , (binary_expression "puVar3 + (int)(iCell * (uint)bVar1 + 4) + bVar1" (binary_expression "puVar3 + (int)(iCell * (uint)bVar1 + 4)" identifier + (cast_expression "(int)(iCell * (uint)bVar1 + 4)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(iCell * (uint)bVar1 + 4)" ( (binary_expression "iCell * (uint)bVar1 + 4" (binary_expression "iCell * (uint)bVar1" identifier * (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) + number_literal) )))) + identifier) , (cast_expression "(long)(int)(((((uint)puVar3[3] + (uint)puVar3[2] * 0x100) - iCell) + -1) * (uint)bVar1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)(((((uint)puVar3[3] + (uint)puVar3[2] * 0x100) - iCell) + -1) * (uint)bVar1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(((((uint)puVar3[3] + (uint)puVar3[2] * 0x100) - iCell) + -1) * (uint)bVar1)" ( (binary_expression "((((uint)puVar3[3] + (uint)puVar3[2] * 0x100) - iCell) + -1) * (uint)bVar1" (parenthesized_expression "((((uint)puVar3[3] + (uint)puVar3[2] * 0x100) - iCell) + -1)" ( (binary_expression "(((uint)puVar3[3] + (uint)puVar3[2] * 0x100) - iCell) + -1" (parenthesized_expression "(((uint)puVar3[3] + (uint)puVar3[2] * 0x100) - iCell)" ( (binary_expression "((uint)puVar3[3] + (uint)puVar3[2] * 0x100) - iCell" (parenthesized_expression "((uint)puVar3[3] + (uint)puVar3[2] * 0x100)" ( (binary_expression "(uint)puVar3[3] + (uint)puVar3[2] * 0x100" (cast_expression "(uint)puVar3[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "puVar3[3]" identifier [ number_literal ])) + (binary_expression "(uint)puVar3[2] * 0x100" (cast_expression "(uint)puVar3[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "puVar3[2]" identifier [ number_literal ])) * number_literal)) )) - identifier) )) + number_literal) )) * (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) )))) ))) ;) (expression_statement "puVar3 = pNode->zData;" (assignment_expression "puVar3 = pNode->zData" identifier = (field_expression "pNode->zData" identifier -> field_identifier)) ;) (expression_statement "iVar6 = (uint)puVar3[2] * 0x100 + -1 + (uint)puVar3[3];" (assignment_expression "iVar6 = (uint)puVar3[2] * 0x100 + -1 + (uint)puVar3[3]" identifier = (binary_expression "(uint)puVar3[2] * 0x100 + -1 + (uint)puVar3[3]" (binary_expression "(uint)puVar3[2] * 0x100 + -1" (binary_expression "(uint)puVar3[2] * 0x100" (cast_expression "(uint)puVar3[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "puVar3[2]" identifier [ number_literal ])) * number_literal) + number_literal) + (cast_expression "(uint)puVar3[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "puVar3[3]" identifier [ number_literal ])))) ;) (expression_statement "puVar3[2] = (u8)((uint)iVar6 >> 8);" (assignment_expression "puVar3[2] = (u8)((uint)iVar6 >> 8)" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = (call_expression "(u8)((uint)iVar6 >> 8)" (parenthesized_expression "(u8)" ( identifier )) (argument_list "((uint)iVar6 >> 8)" ( (binary_expression "(uint)iVar6 >> 8" (cast_expression "(uint)iVar6" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar3[3] = (u8)iVar6;" (assignment_expression "puVar3[3] = (u8)iVar6" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = (cast_expression "(u8)iVar6" ( (type_descriptor "u8" type_identifier) ) identifier)) ;) (expression_statement "pNode->isDirty = 1;" (assignment_expression "pNode->isDirty = 1" (field_expression "pNode->isDirty" identifier -> field_identifier) = number_literal) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (if_statement "if (pNode->pParent != (RtreeNode *)0x0) {\n    if ((int)((uint)pNode->zData[2] * 0x100 + (uint)pNode->zData[3]) <\n        ((pRtree->iNodeSize + -4) / (int)(uint)pRtree->nBytesPerCell) / 3) {\n      iVar6 = removeNode(pRtree,pNode,iHeight);\n    }\n    else {\n      iVar6 = fixBoundingBox(pRtree,pNode);\n    }\n  }" if (parenthesized_expression "(pNode->pParent != (RtreeNode *)0x0)" ( (binary_expression "pNode->pParent != (RtreeNode *)0x0" (field_expression "pNode->pParent" identifier -> field_identifier) != (cast_expression "(RtreeNode *)0x0" ( (type_descriptor "RtreeNode *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if ((int)((uint)pNode->zData[2] * 0x100 + (uint)pNode->zData[3]) <\n        ((pRtree->iNodeSize + -4) / (int)(uint)pRtree->nBytesPerCell) / 3) {\n      iVar6 = removeNode(pRtree,pNode,iHeight);\n    }\n    else {\n      iVar6 = fixBoundingBox(pRtree,pNode);\n    }\n  }" { (if_statement "if ((int)((uint)pNode->zData[2] * 0x100 + (uint)pNode->zData[3]) <\n        ((pRtree->iNodeSize + -4) / (int)(uint)pRtree->nBytesPerCell) / 3) {\n      iVar6 = removeNode(pRtree,pNode,iHeight);\n    }\n    else {\n      iVar6 = fixBoundingBox(pRtree,pNode);\n    }" if (parenthesized_expression "((int)((uint)pNode->zData[2] * 0x100 + (uint)pNode->zData[3]) <\n        ((pRtree->iNodeSize + -4) / (int)(uint)pRtree->nBytesPerCell) / 3)" ( (binary_expression "(int)((uint)pNode->zData[2] * 0x100 + (uint)pNode->zData[3]) <\n        ((pRtree->iNodeSize + -4) / (int)(uint)pRtree->nBytesPerCell) / 3" (cast_expression "(int)((uint)pNode->zData[2] * 0x100 + (uint)pNode->zData[3])" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)pNode->zData[2] * 0x100 + (uint)pNode->zData[3])" ( (binary_expression "(uint)pNode->zData[2] * 0x100 + (uint)pNode->zData[3]" (binary_expression "(uint)pNode->zData[2] * 0x100" (cast_expression "(uint)pNode->zData[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pNode->zData[2]" (field_expression "pNode->zData" identifier -> field_identifier) [ number_literal ])) * number_literal) + (cast_expression "(uint)pNode->zData[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pNode->zData[3]" (field_expression "pNode->zData" identifier -> field_identifier) [ number_literal ]))) ))) < (binary_expression "((pRtree->iNodeSize + -4) / (int)(uint)pRtree->nBytesPerCell) / 3" (parenthesized_expression "((pRtree->iNodeSize + -4) / (int)(uint)pRtree->nBytesPerCell)" ( (binary_expression "(pRtree->iNodeSize + -4) / (int)(uint)pRtree->nBytesPerCell" (parenthesized_expression "(pRtree->iNodeSize + -4)" ( (binary_expression "pRtree->iNodeSize + -4" (field_expression "pRtree->iNodeSize" identifier -> field_identifier) + number_literal) )) / (cast_expression "(int)(uint)pRtree->nBytesPerCell" ( (type_descriptor "int" primitive_type) ) (cast_expression "(uint)pRtree->nBytesPerCell" ( (type_descriptor "uint" type_identifier) ) (field_expression "pRtree->nBytesPerCell" identifier -> field_identifier)))) )) / number_literal)) )) (compound_statement "{\n      iVar6 = removeNode(pRtree,pNode,iHeight);\n    }" { (expression_statement "iVar6 = removeNode(pRtree,pNode,iHeight);" (assignment_expression "iVar6 = removeNode(pRtree,pNode,iHeight)" identifier = (call_expression "removeNode(pRtree,pNode,iHeight)" identifier (argument_list "(pRtree,pNode,iHeight)" ( identifier , identifier , identifier )))) ;) }) (else_clause "else {\n      iVar6 = fixBoundingBox(pRtree,pNode);\n    }" else (compound_statement "{\n      iVar6 = fixBoundingBox(pRtree,pNode);\n    }" { (expression_statement "iVar6 = fixBoundingBox(pRtree,pNode);" (assignment_expression "iVar6 = fixBoundingBox(pRtree,pNode)" identifier = (call_expression "fixBoundingBox(pRtree,pNode)" identifier (argument_list "(pRtree,pNode)" ( identifier , identifier )))) ;) }))) })) (return_statement "return iVar6;" return identifier ;) })))
(translation_unit "ulong FUN_001e3ad4(long param_1,long *param_2,int param_3,undefined4 param_4)\n\n{\n  byte bVar1;\n  long *plVar2;\n  long *plVar3;\n  long lVar4;\n  uint uVar5;\n  int iVar6;\n  long lVar7;\n  ulong uVar8;\n  ulong uVar9;\n  void *__dest;\n  \n  if (param_2[1] != 1) {\n    lVar4 = *param_2;\n    plVar3 = param_2;\n    while (lVar4 == 0) {\n      FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1);\n      iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0));\n      if (iVar6 == 100) {\n        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);\n        lVar4 = param_2[1];\n        plVar2 = param_2;\n        while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }\n      }\n      uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n      uVar5 = (uint)uVar9;\njoined_r0x001e3c41:\n      if (uVar5 != 0) {\n        return uVar9;\n      }\n      plVar3 = (long *)*plVar3;\n      if (plVar3 == (long *)0x0) {\n        return 0x10b;\n      }\n      if (plVar3[1] == 1) break;\n      lVar4 = *plVar3;\n    }\n  }\n  lVar4 = param_2[3];\n  bVar1 = *(byte *)(param_1 + 0x27);\n  __dest = (void *)((int)(param_3 * (uint)bVar1 + 4) + lVar4);\n  memmove(__dest,(void *)((ulong)bVar1 + (long)__dest),\n          (long)(int)(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1));\n  lVar4 = param_2[3];\n  iVar6 = (uint)*(byte *)(lVar4 + 2) * 0x100 + -1 + (uint)*(byte *)(lVar4 + 3);\n  *(char *)(lVar4 + 2) = (char)((uint)iVar6 >> 8);\n  *(char *)(lVar4 + 3) = (char)iVar6;\n  *(undefined4 *)((long)param_2 + 0x14) = 1;\n  uVar9 = 0;\n  if (*param_2 != 0) {\n    if ((int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)) <\n        ((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3) {\n      uVar9 = FUN_001e3ca8(param_1,param_2,param_4);\n    }\n    else {\n      uVar9 = FUN_00149ad8(param_1,param_2);\n    }\n  }\n  return uVar9;\n}\n\n" (function_definition "ulong FUN_001e3ad4(long param_1,long *param_2,int param_3,undefined4 param_4)\n\n{\n  byte bVar1;\n  long *plVar2;\n  long *plVar3;\n  long lVar4;\n  uint uVar5;\n  int iVar6;\n  long lVar7;\n  ulong uVar8;\n  ulong uVar9;\n  void *__dest;\n  \n  if (param_2[1] != 1) {\n    lVar4 = *param_2;\n    plVar3 = param_2;\n    while (lVar4 == 0) {\n      FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1);\n      iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0));\n      if (iVar6 == 100) {\n        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);\n        lVar4 = param_2[1];\n        plVar2 = param_2;\n        while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }\n      }\n      uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n      uVar5 = (uint)uVar9;\njoined_r0x001e3c41:\n      if (uVar5 != 0) {\n        return uVar9;\n      }\n      plVar3 = (long *)*plVar3;\n      if (plVar3 == (long *)0x0) {\n        return 0x10b;\n      }\n      if (plVar3[1] == 1) break;\n      lVar4 = *plVar3;\n    }\n  }\n  lVar4 = param_2[3];\n  bVar1 = *(byte *)(param_1 + 0x27);\n  __dest = (void *)((int)(param_3 * (uint)bVar1 + 4) + lVar4);\n  memmove(__dest,(void *)((ulong)bVar1 + (long)__dest),\n          (long)(int)(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1));\n  lVar4 = param_2[3];\n  iVar6 = (uint)*(byte *)(lVar4 + 2) * 0x100 + -1 + (uint)*(byte *)(lVar4 + 3);\n  *(char *)(lVar4 + 2) = (char)((uint)iVar6 >> 8);\n  *(char *)(lVar4 + 3) = (char)iVar6;\n  *(undefined4 *)((long)param_2 + 0x14) = 1;\n  uVar9 = 0;\n  if (*param_2 != 0) {\n    if ((int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)) <\n        ((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3) {\n      uVar9 = FUN_001e3ca8(param_1,param_2,param_4);\n    }\n    else {\n      uVar9 = FUN_00149ad8(param_1,param_2);\n    }\n  }\n  return uVar9;\n}" type_identifier (function_declarator "FUN_001e3ad4(long param_1,long *param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(long param_1,long *param_2,int param_3,undefined4 param_4)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  long *plVar2;\n  long *plVar3;\n  long lVar4;\n  uint uVar5;\n  int iVar6;\n  long lVar7;\n  ulong uVar8;\n  ulong uVar9;\n  void *__dest;\n  \n  if (param_2[1] != 1) {\n    lVar4 = *param_2;\n    plVar3 = param_2;\n    while (lVar4 == 0) {\n      FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1);\n      iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0));\n      if (iVar6 == 100) {\n        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);\n        lVar4 = param_2[1];\n        plVar2 = param_2;\n        while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }\n      }\n      uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n      uVar5 = (uint)uVar9;\njoined_r0x001e3c41:\n      if (uVar5 != 0) {\n        return uVar9;\n      }\n      plVar3 = (long *)*plVar3;\n      if (plVar3 == (long *)0x0) {\n        return 0x10b;\n      }\n      if (plVar3[1] == 1) break;\n      lVar4 = *plVar3;\n    }\n  }\n  lVar4 = param_2[3];\n  bVar1 = *(byte *)(param_1 + 0x27);\n  __dest = (void *)((int)(param_3 * (uint)bVar1 + 4) + lVar4);\n  memmove(__dest,(void *)((ulong)bVar1 + (long)__dest),\n          (long)(int)(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1));\n  lVar4 = param_2[3];\n  iVar6 = (uint)*(byte *)(lVar4 + 2) * 0x100 + -1 + (uint)*(byte *)(lVar4 + 3);\n  *(char *)(lVar4 + 2) = (char)((uint)iVar6 >> 8);\n  *(char *)(lVar4 + 3) = (char)iVar6;\n  *(undefined4 *)((long)param_2 + 0x14) = 1;\n  uVar9 = 0;\n  if (*param_2 != 0) {\n    if ((int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)) <\n        ((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3) {\n      uVar9 = FUN_001e3ca8(param_1,param_2,param_4);\n    }\n    else {\n      uVar9 = FUN_00149ad8(param_1,param_2);\n    }\n  }\n  return uVar9;\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 "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "long lVar7;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar8;" type_identifier identifier ;) (declaration "ulong uVar9;" type_identifier identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (if_statement "if (param_2[1] != 1) {\n    lVar4 = *param_2;\n    plVar3 = param_2;\n    while (lVar4 == 0) {\n      FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1);\n      iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0));\n      if (iVar6 == 100) {\n        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);\n        lVar4 = param_2[1];\n        plVar2 = param_2;\n        while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }\n      }\n      uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n      uVar5 = (uint)uVar9;\njoined_r0x001e3c41:\n      if (uVar5 != 0) {\n        return uVar9;\n      }\n      plVar3 = (long *)*plVar3;\n      if (plVar3 == (long *)0x0) {\n        return 0x10b;\n      }\n      if (plVar3[1] == 1) break;\n      lVar4 = *plVar3;\n    }\n  }" if (parenthesized_expression "(param_2[1] != 1)" ( (binary_expression "param_2[1] != 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    lVar4 = *param_2;\n    plVar3 = param_2;\n    while (lVar4 == 0) {\n      FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1);\n      iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0));\n      if (iVar6 == 100) {\n        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);\n        lVar4 = param_2[1];\n        plVar2 = param_2;\n        while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }\n      }\n      uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n      uVar5 = (uint)uVar9;\njoined_r0x001e3c41:\n      if (uVar5 != 0) {\n        return uVar9;\n      }\n      plVar3 = (long *)*plVar3;\n      if (plVar3 == (long *)0x0) {\n        return 0x10b;\n      }\n      if (plVar3[1] == 1) break;\n      lVar4 = *plVar3;\n    }\n  }" { (expression_statement "lVar4 = *param_2;" (assignment_expression "lVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "plVar3 = param_2;" (assignment_expression "plVar3 = param_2" identifier = identifier) ;) (while_statement "while (lVar4 == 0) {\n      FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1);\n      iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0));\n      if (iVar6 == 100) {\n        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);\n        lVar4 = param_2[1];\n        plVar2 = param_2;\n        while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }\n      }\n      uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n      uVar5 = (uint)uVar9;\njoined_r0x001e3c41:\n      if (uVar5 != 0) {\n        return uVar9;\n      }\n      plVar3 = (long *)*plVar3;\n      if (plVar3 == (long *)0x0) {\n        return 0x10b;\n      }\n      if (plVar3[1] == 1) break;\n      lVar4 = *plVar3;\n    }" while (parenthesized_expression "(lVar4 == 0)" ( (binary_expression "lVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1);\n      iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0));\n      if (iVar6 == 100) {\n        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);\n        lVar4 = param_2[1];\n        plVar2 = param_2;\n        while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }\n      }\n      uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n      uVar5 = (uint)uVar9;\njoined_r0x001e3c41:\n      if (uVar5 != 0) {\n        return uVar9;\n      }\n      plVar3 = (long *)*plVar3;\n      if (plVar3 == (long *)0x0) {\n        return 0x10b;\n      }\n      if (plVar3[1] == 1) break;\n      lVar4 = *plVar3;\n    }" { (expression_statement "FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1);" (call_expression "FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1)" identifier (argument_list "(*(undefined8 *)(param_1 + 0xa0),1)" ( (pointer_expression "*(undefined8 *)(param_1 + 0xa0)" * (cast_expression "(undefined8 *)(param_1 + 0xa0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0));" (assignment_expression "iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0))" identifier = (call_expression "FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0))" identifier (argument_list "(*(undefined8 *)(param_1 + 0xa0))" ( (pointer_expression "*(undefined8 *)(param_1 + 0xa0)" * (cast_expression "(undefined8 *)(param_1 + 0xa0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar6 == 100) {\n        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);\n        lVar4 = param_2[1];\n        plVar2 = param_2;\n        while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }\n      }" if (parenthesized_expression "(iVar6 == 100)" ( (binary_expression "iVar6 == 100" identifier == number_literal) )) (compound_statement "{\n        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);\n        lVar4 = param_2[1];\n        plVar2 = param_2;\n        while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }\n      }" { (expression_statement "lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);" (assignment_expression "lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0)" identifier = (call_expression "FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0)" identifier (argument_list "(*(undefined8 *)(param_1 + 0xa0),0)" ( (pointer_expression "*(undefined8 *)(param_1 + 0xa0)" * (cast_expression "(undefined8 *)(param_1 + 0xa0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "lVar4 = param_2[1];" (assignment_expression "lVar4 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "plVar2 = param_2;" (assignment_expression "plVar2 = param_2" identifier = identifier) ;) (while_statement "while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }" while (parenthesized_expression "(lVar7 != lVar4)" ( (binary_expression "lVar7 != lVar4" identifier != identifier) )) (compound_statement "{\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }" { (expression_statement "plVar2 = (long *)*plVar2;" (assignment_expression "plVar2 = (long *)*plVar2" identifier = (cast_expression "(long *)*plVar2" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar2" * identifier))) ;) (if_statement "if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }" if (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)) )) (compound_statement "{\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }" { (expression_statement "uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);" (assignment_expression "uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3)" identifier = (call_expression "FUN_001e3755(param_1,lVar7,0,plVar3)" identifier (argument_list "(param_1,lVar7,0,plVar3)" ( identifier , identifier , number_literal , identifier )))) ;) (expression_statement "uVar9 = (ulong)uVar5;" (assignment_expression "uVar9 = (ulong)uVar5" identifier = (cast_expression "(ulong)uVar5" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));" (assignment_expression "uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0))" identifier = (call_expression "FUN_00190b14(*(undefined8 *)(param_1 + 0xa0))" identifier (argument_list "(*(undefined8 *)(param_1 + 0xa0))" ( (pointer_expression "*(undefined8 *)(param_1 + 0xa0)" * (cast_expression "(undefined8 *)(param_1 + 0xa0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) )))) )))) ;) (if_statement "if ((int)uVar8 != 0) {\n              return uVar8;\n            }" if (parenthesized_expression "((int)uVar8 != 0)" ( (binary_expression "(int)uVar8 != 0" (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) )) (compound_statement "{\n              return uVar8;\n            }" { (return_statement "return uVar8;" return identifier ;) })) (goto_statement "goto joined_r0x001e3c41;" goto statement_identifier ;) })) (expression_statement "lVar4 = plVar2[1];" (assignment_expression "lVar4 = plVar2[1]" identifier = (subscript_expression "plVar2[1]" identifier [ number_literal ])) ;) })) })) (expression_statement "uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));" (assignment_expression "uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0))" identifier = (call_expression "FUN_00190b14(*(undefined8 *)(param_1 + 0xa0))" identifier (argument_list "(*(undefined8 *)(param_1 + 0xa0))" ( (pointer_expression "*(undefined8 *)(param_1 + 0xa0)" * (cast_expression "(undefined8 *)(param_1 + 0xa0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) )))) )))) ;) (expression_statement "uVar5 = (uint)uVar9;" (assignment_expression "uVar5 = (uint)uVar9" identifier = (cast_expression "(uint)uVar9" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (labeled_statement "joined_r0x001e3c41:\n      if (uVar5 != 0) {\n        return uVar9;\n      }" statement_identifier : (if_statement "if (uVar5 != 0) {\n        return uVar9;\n      }" if (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) (compound_statement "{\n        return uVar9;\n      }" { (return_statement "return uVar9;" return identifier ;) }))) (expression_statement "plVar3 = (long *)*plVar3;" (assignment_expression "plVar3 = (long *)*plVar3" identifier = (cast_expression "(long *)*plVar3" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar3" * identifier))) ;) (if_statement "if (plVar3 == (long *)0x0) {\n        return 0x10b;\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        return 0x10b;\n      }" { (return_statement "return 0x10b;" return number_literal ;) })) (if_statement "if (plVar3[1] == 1) break;" if (parenthesized_expression "(plVar3[1] == 1)" ( (binary_expression "plVar3[1] == 1" (subscript_expression "plVar3[1]" identifier [ number_literal ]) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar4 = *plVar3;" (assignment_expression "lVar4 = *plVar3" identifier = (pointer_expression "*plVar3" * identifier)) ;) })) })) (expression_statement "lVar4 = param_2[3];" (assignment_expression "lVar4 = param_2[3]" identifier = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (expression_statement "bVar1 = *(byte *)(param_1 + 0x27);" (assignment_expression "bVar1 = *(byte *)(param_1 + 0x27)" identifier = (pointer_expression "*(byte *)(param_1 + 0x27)" * (cast_expression "(byte *)(param_1 + 0x27)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x27)" ( (binary_expression "param_1 + 0x27" identifier + number_literal) ))))) ;) (expression_statement "__dest = (void *)((int)(param_3 * (uint)bVar1 + 4) + lVar4);" (assignment_expression "__dest = (void *)((int)(param_3 * (uint)bVar1 + 4) + lVar4)" identifier = (cast_expression "(void *)((int)(param_3 * (uint)bVar1 + 4) + lVar4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)(param_3 * (uint)bVar1 + 4) + lVar4)" ( (binary_expression "(int)(param_3 * (uint)bVar1 + 4) + lVar4" (cast_expression "(int)(param_3 * (uint)bVar1 + 4)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_3 * (uint)bVar1 + 4)" ( (binary_expression "param_3 * (uint)bVar1 + 4" (binary_expression "param_3 * (uint)bVar1" identifier * (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) + number_literal) ))) + identifier) )))) ;) (expression_statement "memmove(__dest,(void *)((ulong)bVar1 + (long)__dest),\n          (long)(int)(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1));" (call_expression "memmove(__dest,(void *)((ulong)bVar1 + (long)__dest),\n          (long)(int)(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1))" identifier (argument_list "(__dest,(void *)((ulong)bVar1 + (long)__dest),\n          (long)(int)(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1))" ( identifier , (cast_expression "(void *)((ulong)bVar1 + (long)__dest)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)bVar1 + (long)__dest)" ( (binary_expression "(ulong)bVar1 + (long)__dest" (cast_expression "(ulong)bVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) + (cast_expression "(long)__dest" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) , (cast_expression "(long)(int)(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1)" ( (binary_expression "((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1" (parenthesized_expression "((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1)" ( (binary_expression "(((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1" (parenthesized_expression "(((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)" ( (binary_expression "((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3" (parenthesized_expression "((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100)" ( (binary_expression "(uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100" (binary_expression "(uint)*(byte *)(lVar4 + 3)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(lVar4 + 3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 3)" ( (binary_expression "lVar4 + 3" identifier + number_literal) )))) + (binary_expression "(uint)*(byte *)(lVar4 + 2) * 0x100" (binary_expression "(uint)*(byte *)(lVar4 + 2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(lVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 2)" ( (binary_expression "lVar4 + 2" identifier + number_literal) )))) * number_literal)) )) - identifier) )) + number_literal) )) * (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) )))) ))) ;) (expression_statement "lVar4 = param_2[3];" (assignment_expression "lVar4 = param_2[3]" identifier = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = (uint)*(byte *)(lVar4 + 2) * 0x100 + -1 + (uint)*(byte *)(lVar4 + 3);" (assignment_expression "iVar6 = (uint)*(byte *)(lVar4 + 2) * 0x100 + -1 + (uint)*(byte *)(lVar4 + 3)" identifier = (binary_expression "(uint)*(byte *)(lVar4 + 2) * 0x100 + -1 + (uint)*(byte *)(lVar4 + 3)" (binary_expression "(uint)*(byte *)(lVar4 + 2) * 0x100 + -1" (binary_expression "(uint)*(byte *)(lVar4 + 2) * 0x100" (binary_expression "(uint)*(byte *)(lVar4 + 2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(lVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 2)" ( (binary_expression "lVar4 + 2" identifier + number_literal) )))) * number_literal) + number_literal) + (binary_expression "(uint)*(byte *)(lVar4 + 3)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(lVar4 + 3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 3)" ( (binary_expression "lVar4 + 3" identifier + number_literal) )))))) ;) (expression_statement "*(char *)(lVar4 + 2) = (char)((uint)iVar6 >> 8);" (assignment_expression "*(char *)(lVar4 + 2) = (char)((uint)iVar6 >> 8)" (pointer_expression "*(char *)(lVar4 + 2)" * (cast_expression "(char *)(lVar4 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 2)" ( (binary_expression "lVar4 + 2" identifier + number_literal) )))) = (cast_expression "(char)((uint)iVar6 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)iVar6 >> 8)" ( (binary_expression "(uint)iVar6 >> 8" (cast_expression "(uint)iVar6" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*(char *)(lVar4 + 3) = (char)iVar6;" (assignment_expression "*(char *)(lVar4 + 3) = (char)iVar6" (pointer_expression "*(char *)(lVar4 + 3)" * (cast_expression "(char *)(lVar4 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 3)" ( (binary_expression "lVar4 + 3" identifier + number_literal) )))) = (cast_expression "(char)iVar6" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "*(undefined4 *)((long)param_2 + 0x14) = 1;" (assignment_expression "*(undefined4 *)((long)param_2 + 0x14) = 1" (pointer_expression "*(undefined4 *)((long)param_2 + 0x14)" * (cast_expression "(undefined4 *)((long)param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0x14)" ( (binary_expression "(long)param_2 + 0x14" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (if_statement "if (*param_2 != 0) {\n    if ((int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)) <\n        ((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3) {\n      uVar9 = FUN_001e3ca8(param_1,param_2,param_4);\n    }\n    else {\n      uVar9 = FUN_00149ad8(param_1,param_2);\n    }\n  }" if (parenthesized_expression "(*param_2 != 0)" ( (binary_expression "*param_2 != 0" (pointer_expression "*param_2" * identifier) != number_literal) )) (compound_statement "{\n    if ((int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)) <\n        ((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3) {\n      uVar9 = FUN_001e3ca8(param_1,param_2,param_4);\n    }\n    else {\n      uVar9 = FUN_00149ad8(param_1,param_2);\n    }\n  }" { (if_statement "if ((int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)) <\n        ((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3) {\n      uVar9 = FUN_001e3ca8(param_1,param_2,param_4);\n    }\n    else {\n      uVar9 = FUN_00149ad8(param_1,param_2);\n    }" if (parenthesized_expression "((int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)) <\n        ((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3)" ( (binary_expression "(int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)) <\n        ((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3" (cast_expression "(int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3))" ( (binary_expression "(uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)" (binary_expression "(uint)*(byte *)(param_2[3] + 2) * 0x100" (binary_expression "(uint)*(byte *)(param_2[3] + 2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_2[3] + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[3] + 2)" ( (binary_expression "param_2[3] + 2" (subscript_expression "param_2[3]" identifier [ number_literal ]) + number_literal) )))) * number_literal) + (binary_expression "(uint)*(byte *)(param_2[3] + 3)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_2[3] + 3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[3] + 3)" ( (binary_expression "param_2[3] + 3" (subscript_expression "param_2[3]" identifier [ number_literal ]) + number_literal) ))))) ))) < (binary_expression "((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3" (parenthesized_expression "((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27))" ( (binary_expression "(*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)" (binary_expression "(*(int *)(param_1 + 0x20) + -4) / (int)(uint)" (parenthesized_expression "(*(int *)(param_1 + 0x20) + -4)" ( (binary_expression "*(int *)(param_1 + 0x20) + -4" (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) + number_literal) )) / (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier )))) * (cast_expression "(byte *)(param_1 + 0x27)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x27)" ( (binary_expression "param_1 + 0x27" identifier + number_literal) )))) )) / number_literal)) )) (compound_statement "{\n      uVar9 = FUN_001e3ca8(param_1,param_2,param_4);\n    }" { (expression_statement "uVar9 = FUN_001e3ca8(param_1,param_2,param_4);" (assignment_expression "uVar9 = FUN_001e3ca8(param_1,param_2,param_4)" identifier = (call_expression "FUN_001e3ca8(param_1,param_2,param_4)" identifier (argument_list "(param_1,param_2,param_4)" ( identifier , identifier , identifier )))) ;) }) (else_clause "else {\n      uVar9 = FUN_00149ad8(param_1,param_2);\n    }" else (compound_statement "{\n      uVar9 = FUN_00149ad8(param_1,param_2);\n    }" { (expression_statement "uVar9 = FUN_00149ad8(param_1,param_2);" (assignment_expression "uVar9 = FUN_00149ad8(param_1,param_2)" identifier = (call_expression "FUN_00149ad8(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) }))) })) (return_statement "return uVar9;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT * (cast_expression ( (type_descriptor TYPE) ) IDENT)) + LIT) ))) + IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ))) , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT)) )) - IDENT) )) + LIT) )) * (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT) + LIT) + (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (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) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) * LIT) + (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) ))) < (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )) / (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( IDENT )))) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) / LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) }))) })) (return_statement return IDENT ;) })))
(function_definition "ulong FUN_001e3ad4(long param_1,long *param_2,int param_3,undefined4 param_4)\n\n{\n  byte bVar1;\n  long *plVar2;\n  long *plVar3;\n  long lVar4;\n  uint uVar5;\n  int iVar6;\n  long lVar7;\n  ulong uVar8;\n  ulong uVar9;\n  void *__dest;\n  \n  if (param_2[1] != 1) {\n    lVar4 = *param_2;\n    plVar3 = param_2;\n    while (lVar4 == 0) {\n      FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1);\n      iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0));\n      if (iVar6 == 100) {\n        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);\n        lVar4 = param_2[1];\n        plVar2 = param_2;\n        while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }\n      }\n      uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n      uVar5 = (uint)uVar9;\njoined_r0x001e3c41:\n      if (uVar5 != 0) {\n        return uVar9;\n      }\n      plVar3 = (long *)*plVar3;\n      if (plVar3 == (long *)0x0) {\n        return 0x10b;\n      }\n      if (plVar3[1] == 1) break;\n      lVar4 = *plVar3;\n    }\n  }\n  lVar4 = param_2[3];\n  bVar1 = *(byte *)(param_1 + 0x27);\n  __dest = (void *)((int)(param_3 * (uint)bVar1 + 4) + lVar4);\n  memmove(__dest,(void *)((ulong)bVar1 + (long)__dest),\n          (long)(int)(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1));\n  lVar4 = param_2[3];\n  iVar6 = (uint)*(byte *)(lVar4 + 2) * 0x100 + -1 + (uint)*(byte *)(lVar4 + 3);\n  *(char *)(lVar4 + 2) = (char)((uint)iVar6 >> 8);\n  *(char *)(lVar4 + 3) = (char)iVar6;\n  *(undefined4 *)((long)param_2 + 0x14) = 1;\n  uVar9 = 0;\n  if (*param_2 != 0) {\n    if ((int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)) <\n        ((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3) {\n      uVar9 = FUN_001e3ca8(param_1,param_2,param_4);\n    }\n    else {\n      uVar9 = FUN_00149ad8(param_1,param_2);\n    }\n  }\n  return uVar9;\n}" (type_identifier "ulong") (function_declarator "FUN_001e3ad4(long param_1,long *param_2,int param_3,undefined4 param_4)" (identifier "FUN_001e3ad4") (parameter_list "(long param_1,long *param_2,int param_3,undefined4 param_4)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "long *param_2" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  byte bVar1;\n  long *plVar2;\n  long *plVar3;\n  long lVar4;\n  uint uVar5;\n  int iVar6;\n  long lVar7;\n  ulong uVar8;\n  ulong uVar9;\n  void *__dest;\n  \n  if (param_2[1] != 1) {\n    lVar4 = *param_2;\n    plVar3 = param_2;\n    while (lVar4 == 0) {\n      FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1);\n      iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0));\n      if (iVar6 == 100) {\n        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);\n        lVar4 = param_2[1];\n        plVar2 = param_2;\n        while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }\n      }\n      uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n      uVar5 = (uint)uVar9;\njoined_r0x001e3c41:\n      if (uVar5 != 0) {\n        return uVar9;\n      }\n      plVar3 = (long *)*plVar3;\n      if (plVar3 == (long *)0x0) {\n        return 0x10b;\n      }\n      if (plVar3[1] == 1) break;\n      lVar4 = *plVar3;\n    }\n  }\n  lVar4 = param_2[3];\n  bVar1 = *(byte *)(param_1 + 0x27);\n  __dest = (void *)((int)(param_3 * (uint)bVar1 + 4) + lVar4);\n  memmove(__dest,(void *)((ulong)bVar1 + (long)__dest),\n          (long)(int)(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1));\n  lVar4 = param_2[3];\n  iVar6 = (uint)*(byte *)(lVar4 + 2) * 0x100 + -1 + (uint)*(byte *)(lVar4 + 3);\n  *(char *)(lVar4 + 2) = (char)((uint)iVar6 >> 8);\n  *(char *)(lVar4 + 3) = (char)iVar6;\n  *(undefined4 *)((long)param_2 + 0x14) = 1;\n  uVar9 = 0;\n  if (*param_2 != 0) {\n    if ((int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)) <\n        ((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3) {\n      uVar9 = FUN_001e3ca8(param_1,param_2,param_4);\n    }\n    else {\n      uVar9 = FUN_00149ad8(param_1,param_2);\n    }\n  }\n  return uVar9;\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 "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "long lVar7;" (sized_type_specifier "long" (long "long")) (identifier "lVar7") (; ";")) (declaration "ulong uVar8;" (type_identifier "ulong") (identifier "uVar8") (; ";")) (declaration "ulong uVar9;" (type_identifier "ulong") (identifier "uVar9") (; ";")) (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (if_statement "if (param_2[1] != 1) {\n    lVar4 = *param_2;\n    plVar3 = param_2;\n    while (lVar4 == 0) {\n      FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1);\n      iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0));\n      if (iVar6 == 100) {\n        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);\n        lVar4 = param_2[1];\n        plVar2 = param_2;\n        while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }\n      }\n      uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n      uVar5 = (uint)uVar9;\njoined_r0x001e3c41:\n      if (uVar5 != 0) {\n        return uVar9;\n      }\n      plVar3 = (long *)*plVar3;\n      if (plVar3 == (long *)0x0) {\n        return 0x10b;\n      }\n      if (plVar3[1] == 1) break;\n      lVar4 = *plVar3;\n    }\n  }" (if "if") (parenthesized_expression "(param_2[1] != 1)" (( "(") (binary_expression "param_2[1] != 1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n    lVar4 = *param_2;\n    plVar3 = param_2;\n    while (lVar4 == 0) {\n      FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1);\n      iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0));\n      if (iVar6 == 100) {\n        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);\n        lVar4 = param_2[1];\n        plVar2 = param_2;\n        while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }\n      }\n      uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n      uVar5 = (uint)uVar9;\njoined_r0x001e3c41:\n      if (uVar5 != 0) {\n        return uVar9;\n      }\n      plVar3 = (long *)*plVar3;\n      if (plVar3 == (long *)0x0) {\n        return 0x10b;\n      }\n      if (plVar3[1] == 1) break;\n      lVar4 = *plVar3;\n    }\n  }" ({ "{") (expression_statement "lVar4 = *param_2;" (assignment_expression "lVar4 = *param_2" (identifier "lVar4") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "plVar3 = param_2;" (assignment_expression "plVar3 = param_2" (identifier "plVar3") (= "=") (identifier "param_2")) (; ";")) (while_statement "while (lVar4 == 0) {\n      FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1);\n      iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0));\n      if (iVar6 == 100) {\n        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);\n        lVar4 = param_2[1];\n        plVar2 = param_2;\n        while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }\n      }\n      uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n      uVar5 = (uint)uVar9;\njoined_r0x001e3c41:\n      if (uVar5 != 0) {\n        return uVar9;\n      }\n      plVar3 = (long *)*plVar3;\n      if (plVar3 == (long *)0x0) {\n        return 0x10b;\n      }\n      if (plVar3[1] == 1) break;\n      lVar4 = *plVar3;\n    }" (while "while") (parenthesized_expression "(lVar4 == 0)" (( "(") (binary_expression "lVar4 == 0" (identifier "lVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1);\n      iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0));\n      if (iVar6 == 100) {\n        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);\n        lVar4 = param_2[1];\n        plVar2 = param_2;\n        while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }\n      }\n      uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n      uVar5 = (uint)uVar9;\njoined_r0x001e3c41:\n      if (uVar5 != 0) {\n        return uVar9;\n      }\n      plVar3 = (long *)*plVar3;\n      if (plVar3 == (long *)0x0) {\n        return 0x10b;\n      }\n      if (plVar3[1] == 1) break;\n      lVar4 = *plVar3;\n    }" ({ "{") (expression_statement "FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1);" (call_expression "FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1)" (identifier "FUN_0015b455") (argument_list "(*(undefined8 *)(param_1 + 0xa0),1)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0xa0)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xa0)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa0)" (( "(") (binary_expression "param_1 + 0xa0" (identifier "param_1") (+ "+") (number_literal "0xa0")) () ")")))) (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0));" (assignment_expression "iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0))" (identifier "iVar6") (= "=") (call_expression "FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0))" (identifier "FUN_001ab5c0") (argument_list "(*(undefined8 *)(param_1 + 0xa0))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0xa0)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xa0)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa0)" (( "(") (binary_expression "param_1 + 0xa0" (identifier "param_1") (+ "+") (number_literal "0xa0")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar6 == 100) {\n        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);\n        lVar4 = param_2[1];\n        plVar2 = param_2;\n        while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }\n      }" (if "if") (parenthesized_expression "(iVar6 == 100)" (( "(") (binary_expression "iVar6 == 100" (identifier "iVar6") (== "==") (number_literal "100")) () ")")) (compound_statement "{\n        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);\n        lVar4 = param_2[1];\n        plVar2 = param_2;\n        while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }\n      }" ({ "{") (expression_statement "lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);" (assignment_expression "lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0)" (identifier "lVar7") (= "=") (call_expression "FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0)" (identifier "FUN_0014243c") (argument_list "(*(undefined8 *)(param_1 + 0xa0),0)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0xa0)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xa0)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa0)" (( "(") (binary_expression "param_1 + 0xa0" (identifier "param_1") (+ "+") (number_literal "0xa0")) () ")")))) (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "lVar4 = param_2[1];" (assignment_expression "lVar4 = param_2[1]" (identifier "lVar4") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "plVar2 = param_2;" (assignment_expression "plVar2 = param_2" (identifier "plVar2") (= "=") (identifier "param_2")) (; ";")) (while_statement "while (lVar7 != lVar4) {\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }" (while "while") (parenthesized_expression "(lVar7 != lVar4)" (( "(") (binary_expression "lVar7 != lVar4" (identifier "lVar7") (!= "!=") (identifier "lVar4")) () ")")) (compound_statement "{\n          plVar2 = (long *)*plVar2;\n          if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }\n          lVar4 = plVar2[1];\n        }" ({ "{") (expression_statement "plVar2 = (long *)*plVar2;" (assignment_expression "plVar2 = (long *)*plVar2" (identifier "plVar2") (= "=") (cast_expression "(long *)*plVar2" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*plVar2" (* "*") (identifier "plVar2")))) (; ";")) (if_statement "if (plVar2 == (long *)0x0) {\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }" (if "if") (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"))) () ")")) (compound_statement "{\n            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);\n            uVar9 = (ulong)uVar5;\n            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));\n            if ((int)uVar8 != 0) {\n              return uVar8;\n            }\n            goto joined_r0x001e3c41;\n          }" ({ "{") (expression_statement "uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);" (assignment_expression "uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3)" (identifier "uVar5") (= "=") (call_expression "FUN_001e3755(param_1,lVar7,0,plVar3)" (identifier "FUN_001e3755") (argument_list "(param_1,lVar7,0,plVar3)" (( "(") (identifier "param_1") (, ",") (identifier "lVar7") (, ",") (number_literal "0") (, ",") (identifier "plVar3") () ")")))) (; ";")) (expression_statement "uVar9 = (ulong)uVar5;" (assignment_expression "uVar9 = (ulong)uVar5" (identifier "uVar9") (= "=") (cast_expression "(ulong)uVar5" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar5"))) (; ";")) (expression_statement "uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));" (assignment_expression "uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0))" (identifier "uVar8") (= "=") (call_expression "FUN_00190b14(*(undefined8 *)(param_1 + 0xa0))" (identifier "FUN_00190b14") (argument_list "(*(undefined8 *)(param_1 + 0xa0))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0xa0)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xa0)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa0)" (( "(") (binary_expression "param_1 + 0xa0" (identifier "param_1") (+ "+") (number_literal "0xa0")) () ")")))) () ")")))) (; ";")) (if_statement "if ((int)uVar8 != 0) {\n              return uVar8;\n            }" (if "if") (parenthesized_expression "((int)uVar8 != 0)" (( "(") (binary_expression "(int)uVar8 != 0" (cast_expression "(int)uVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar8")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              return uVar8;\n            }" ({ "{") (return_statement "return uVar8;" (return "return") (identifier "uVar8") (; ";")) (} "}"))) (goto_statement "goto joined_r0x001e3c41;" (goto "goto") (statement_identifier "joined_r0x001e3c41") (; ";")) (} "}"))) (expression_statement "lVar4 = plVar2[1];" (assignment_expression "lVar4 = plVar2[1]" (identifier "lVar4") (= "=") (subscript_expression "plVar2[1]" (identifier "plVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));" (assignment_expression "uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0))" (identifier "uVar9") (= "=") (call_expression "FUN_00190b14(*(undefined8 *)(param_1 + 0xa0))" (identifier "FUN_00190b14") (argument_list "(*(undefined8 *)(param_1 + 0xa0))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0xa0)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xa0)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa0)" (( "(") (binary_expression "param_1 + 0xa0" (identifier "param_1") (+ "+") (number_literal "0xa0")) () ")")))) () ")")))) (; ";")) (expression_statement "uVar5 = (uint)uVar9;" (assignment_expression "uVar5 = (uint)uVar9" (identifier "uVar5") (= "=") (cast_expression "(uint)uVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar9"))) (; ";")) (labeled_statement "joined_r0x001e3c41:\n      if (uVar5 != 0) {\n        return uVar9;\n      }" (statement_identifier "joined_r0x001e3c41") (: ":") (if_statement "if (uVar5 != 0) {\n        return uVar9;\n      }" (if "if") (parenthesized_expression "(uVar5 != 0)" (( "(") (binary_expression "uVar5 != 0" (identifier "uVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        return uVar9;\n      }" ({ "{") (return_statement "return uVar9;" (return "return") (identifier "uVar9") (; ";")) (} "}")))) (expression_statement "plVar3 = (long *)*plVar3;" (assignment_expression "plVar3 = (long *)*plVar3" (identifier "plVar3") (= "=") (cast_expression "(long *)*plVar3" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*plVar3" (* "*") (identifier "plVar3")))) (; ";")) (if_statement "if (plVar3 == (long *)0x0) {\n        return 0x10b;\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        return 0x10b;\n      }" ({ "{") (return_statement "return 0x10b;" (return "return") (number_literal "0x10b") (; ";")) (} "}"))) (if_statement "if (plVar3[1] == 1) break;" (if "if") (parenthesized_expression "(plVar3[1] == 1)" (( "(") (binary_expression "plVar3[1] == 1" (subscript_expression "plVar3[1]" (identifier "plVar3") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "1")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar4 = *plVar3;" (assignment_expression "lVar4 = *plVar3" (identifier "lVar4") (= "=") (pointer_expression "*plVar3" (* "*") (identifier "plVar3"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "lVar4 = param_2[3];" (assignment_expression "lVar4 = param_2[3]" (identifier "lVar4") (= "=") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "bVar1 = *(byte *)(param_1 + 0x27);" (assignment_expression "bVar1 = *(byte *)(param_1 + 0x27)" (identifier "bVar1") (= "=") (pointer_expression "*(byte *)(param_1 + 0x27)" (* "*") (cast_expression "(byte *)(param_1 + 0x27)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x27)" (( "(") (binary_expression "param_1 + 0x27" (identifier "param_1") (+ "+") (number_literal "0x27")) () ")"))))) (; ";")) (expression_statement "__dest = (void *)((int)(param_3 * (uint)bVar1 + 4) + lVar4);" (assignment_expression "__dest = (void *)((int)(param_3 * (uint)bVar1 + 4) + lVar4)" (identifier "__dest") (= "=") (cast_expression "(void *)((int)(param_3 * (uint)bVar1 + 4) + lVar4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)(param_3 * (uint)bVar1 + 4) + lVar4)" (( "(") (binary_expression "(int)(param_3 * (uint)bVar1 + 4) + lVar4" (cast_expression "(int)(param_3 * (uint)bVar1 + 4)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(param_3 * (uint)bVar1 + 4)" (( "(") (binary_expression "param_3 * (uint)bVar1 + 4" (binary_expression "param_3 * (uint)bVar1" (identifier "param_3") (* "*") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1"))) (+ "+") (number_literal "4")) () ")"))) (+ "+") (identifier "lVar4")) () ")")))) (; ";")) (expression_statement "memmove(__dest,(void *)((ulong)bVar1 + (long)__dest),\n          (long)(int)(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1));" (call_expression "memmove(__dest,(void *)((ulong)bVar1 + (long)__dest),\n          (long)(int)(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1))" (identifier "memmove") (argument_list "(__dest,(void *)((ulong)bVar1 + (long)__dest),\n          (long)(int)(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1))" (( "(") (identifier "__dest") (, ",") (cast_expression "(void *)((ulong)bVar1 + (long)__dest)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((ulong)bVar1 + (long)__dest)" (( "(") (binary_expression "(ulong)bVar1 + (long)__dest" (cast_expression "(ulong)bVar1" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar1")) (+ "+") (cast_expression "(long)__dest" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "__dest"))) () ")"))) (, ",") (cast_expression "(long)(int)(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (cast_expression "(int)(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1)" (( "(") (binary_expression "((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1) * (uint)bVar1" (parenthesized_expression "((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1)" (( "(") (binary_expression "(((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)\n                      + -1" (parenthesized_expression "(((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)" (( "(") (binary_expression "((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3" (parenthesized_expression "((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100)" (( "(") (binary_expression "(uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100" (binary_expression "(uint)*(byte *)(lVar4 + 3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(lVar4 + 3)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 3)" (( "(") (binary_expression "lVar4 + 3" (identifier "lVar4") (+ "+") (number_literal "3")) () ")")))) (+ "+") (binary_expression "(uint)*(byte *)(lVar4 + 2) * 0x100" (binary_expression "(uint)*(byte *)(lVar4 + 2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(lVar4 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 2)" (( "(") (binary_expression "lVar4 + 2" (identifier "lVar4") (+ "+") (number_literal "2")) () ")")))) (* "*") (number_literal "0x100"))) () ")")) (- "-") (identifier "param_3")) () ")")) (+ "+") (number_literal "-1")) () ")")) (* "*") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1"))) () ")")))) () ")"))) (; ";")) (expression_statement "lVar4 = param_2[3];" (assignment_expression "lVar4 = param_2[3]" (identifier "lVar4") (= "=") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "iVar6 = (uint)*(byte *)(lVar4 + 2) * 0x100 + -1 + (uint)*(byte *)(lVar4 + 3);" (assignment_expression "iVar6 = (uint)*(byte *)(lVar4 + 2) * 0x100 + -1 + (uint)*(byte *)(lVar4 + 3)" (identifier "iVar6") (= "=") (binary_expression "(uint)*(byte *)(lVar4 + 2) * 0x100 + -1 + (uint)*(byte *)(lVar4 + 3)" (binary_expression "(uint)*(byte *)(lVar4 + 2) * 0x100 + -1" (binary_expression "(uint)*(byte *)(lVar4 + 2) * 0x100" (binary_expression "(uint)*(byte *)(lVar4 + 2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(lVar4 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 2)" (( "(") (binary_expression "lVar4 + 2" (identifier "lVar4") (+ "+") (number_literal "2")) () ")")))) (* "*") (number_literal "0x100")) (+ "+") (number_literal "-1")) (+ "+") (binary_expression "(uint)*(byte *)(lVar4 + 3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(lVar4 + 3)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 3)" (( "(") (binary_expression "lVar4 + 3" (identifier "lVar4") (+ "+") (number_literal "3")) () ")")))))) (; ";")) (expression_statement "*(char *)(lVar4 + 2) = (char)((uint)iVar6 >> 8);" (assignment_expression "*(char *)(lVar4 + 2) = (char)((uint)iVar6 >> 8)" (pointer_expression "*(char *)(lVar4 + 2)" (* "*") (cast_expression "(char *)(lVar4 + 2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 2)" (( "(") (binary_expression "lVar4 + 2" (identifier "lVar4") (+ "+") (number_literal "2")) () ")")))) (= "=") (cast_expression "(char)((uint)iVar6 >> 8)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)iVar6 >> 8)" (( "(") (binary_expression "(uint)iVar6 >> 8" (cast_expression "(uint)iVar6" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "iVar6")) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "*(char *)(lVar4 + 3) = (char)iVar6;" (assignment_expression "*(char *)(lVar4 + 3) = (char)iVar6" (pointer_expression "*(char *)(lVar4 + 3)" (* "*") (cast_expression "(char *)(lVar4 + 3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 3)" (( "(") (binary_expression "lVar4 + 3" (identifier "lVar4") (+ "+") (number_literal "3")) () ")")))) (= "=") (cast_expression "(char)iVar6" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar6"))) (; ";")) (expression_statement "*(undefined4 *)((long)param_2 + 0x14) = 1;" (assignment_expression "*(undefined4 *)((long)param_2 + 0x14) = 1" (pointer_expression "*(undefined4 *)((long)param_2 + 0x14)" (* "*") (cast_expression "(undefined4 *)((long)param_2 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_2 + 0x14)" (( "(") (binary_expression "(long)param_2 + 0x14" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" (identifier "uVar9") (= "=") (number_literal "0")) (; ";")) (if_statement "if (*param_2 != 0) {\n    if ((int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)) <\n        ((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3) {\n      uVar9 = FUN_001e3ca8(param_1,param_2,param_4);\n    }\n    else {\n      uVar9 = FUN_00149ad8(param_1,param_2);\n    }\n  }" (if "if") (parenthesized_expression "(*param_2 != 0)" (( "(") (binary_expression "*param_2 != 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if ((int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)) <\n        ((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3) {\n      uVar9 = FUN_001e3ca8(param_1,param_2,param_4);\n    }\n    else {\n      uVar9 = FUN_00149ad8(param_1,param_2);\n    }\n  }" ({ "{") (if_statement "if ((int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)) <\n        ((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3) {\n      uVar9 = FUN_001e3ca8(param_1,param_2,param_4);\n    }\n    else {\n      uVar9 = FUN_00149ad8(param_1,param_2);\n    }" (if "if") (parenthesized_expression "((int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)) <\n        ((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3)" (( "(") (binary_expression "(int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)) <\n        ((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3" (cast_expression "(int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3))" (( "(") (binary_expression "(uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)" (binary_expression "(uint)*(byte *)(param_2[3] + 2) * 0x100" (binary_expression "(uint)*(byte *)(param_2[3] + 2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(param_2[3] + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2[3] + 2)" (( "(") (binary_expression "param_2[3] + 2" (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (+ "+") (number_literal "2")) () ")")))) (* "*") (number_literal "0x100")) (+ "+") (binary_expression "(uint)*(byte *)(param_2[3] + 3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(param_2[3] + 3)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2[3] + 3)" (( "(") (binary_expression "param_2[3] + 3" (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (+ "+") (number_literal "3")) () ")"))))) () ")"))) (< "<") (binary_expression "((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3" (parenthesized_expression "((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27))" (( "(") (binary_expression "(*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)" (binary_expression "(*(int *)(param_1 + 0x20) + -4) / (int)(uint)" (parenthesized_expression "(*(int *)(param_1 + 0x20) + -4)" (( "(") (binary_expression "*(int *)(param_1 + 0x20) + -4" (pointer_expression "*(int *)(param_1 + 0x20)" (* "*") (cast_expression "(int *)(param_1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (+ "+") (number_literal "-4")) () ")")) (/ "/") (cast_expression "(int)(uint)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")))) (* "*") (cast_expression "(byte *)(param_1 + 0x27)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x27)" (( "(") (binary_expression "param_1 + 0x27" (identifier "param_1") (+ "+") (number_literal "0x27")) () ")")))) () ")")) (/ "/") (number_literal "3"))) () ")")) (compound_statement "{\n      uVar9 = FUN_001e3ca8(param_1,param_2,param_4);\n    }" ({ "{") (expression_statement "uVar9 = FUN_001e3ca8(param_1,param_2,param_4);" (assignment_expression "uVar9 = FUN_001e3ca8(param_1,param_2,param_4)" (identifier "uVar9") (= "=") (call_expression "FUN_001e3ca8(param_1,param_2,param_4)" (identifier "FUN_001e3ca8") (argument_list "(param_1,param_2,param_4)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_4") () ")")))) (; ";")) (} "}")) (else_clause "else {\n      uVar9 = FUN_00149ad8(param_1,param_2);\n    }" (else "else") (compound_statement "{\n      uVar9 = FUN_00149ad8(param_1,param_2);\n    }" ({ "{") (expression_statement "uVar9 = FUN_00149ad8(param_1,param_2);" (assignment_expression "uVar9 = FUN_00149ad8(param_1,param_2)" (identifier "uVar9") (= "=") (call_expression "FUN_00149ad8(param_1,param_2)" (identifier "FUN_00149ad8") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (} "}")))) (} "}"))) (return_statement "return uVar9;" (return "return") (identifier "uVar9") (; ";")) (} "}")))

int function_1(type_1 *pRtree,type_2 *pNode,int var_14,int iHeight)

{
  type_3 var_15;
  long var_1;
  type_4 *var_13;
  type_2 *var_11;
  type_2 *var_2;
  int var_10;
  int var_5;
  type_5 var_7;
  
  var_1 = pNode->var_7;
  if (var_1 != 1) {
    var_2 = pNode->pParent;
    var_11 = pNode;
    while (var_2 == (type_2 *)0x0) {
      var_3(pRtree->pReadParent,1,var_1);
      var_5 = var_4(pRtree->pReadParent);
      if (var_5 == 100) {
        var_7 = var_6(pRtree->pReadParent,0);
        var_1 = pNode->var_7;
        var_2 = pNode;
        while (var_7 != var_1) {
          var_2 = var_2->pParent;
          if (var_2 == (type_2 *)0x0) {
            var_5 = var_8(pRtree,var_7,(type_2 *)0x0,&var_11->pParent);
            var_10 = var_9(pRtree->pReadParent);
            if (var_10 != 0) {
              return var_10;
            }
            goto joined_r0x001e3c41;
          }
          var_1 = var_2->var_7;
        }
      }
      var_5 = var_9(pRtree->pReadParent);
joined_r0x001e3c41:
      if (var_5 != 0) {
        return var_5;
      }
      var_11 = var_11->pParent;
      if (var_11 == (type_2 *)0x0) {
        return 0x10b;
      }
      var_1 = var_11->var_7;
      if (var_1 == 1) break;
      var_2 = var_11->pParent;
    }
  }
  var_13 = pNode->zData;
  var_15 = pRtree->nBytesPerCell;
  var_12(var_13 + (int)(var_14 * (type_6)var_15 + 4),var_13 + (int)(var_14 * (type_6)var_15 + 4) + var_15,
          (long)(int)(((((type_6)var_13[3] + (type_6)var_13[2] * 0x100) - var_14) + -1) * (type_6)var_15));
  var_13 = pNode->zData;
  var_5 = (type_6)var_13[2] * 0x100 + -1 + (type_6)var_13[3];
  var_13[2] = (type_4)((type_6)var_5 >> 8);
  var_13[3] = (type_4)var_5;
  pNode->isDirty = 1;
  var_5 = 0;
  if (pNode->pParent != (type_2 *)0x0) {
    if ((int)((type_6)pNode->zData[2] * 0x100 + (type_6)pNode->zData[3]) <
        ((pRtree->iNodeSize + -4) / (int)(type_6)pRtree->nBytesPerCell) / 3) {
      var_5 = var_16(pRtree,pNode,iHeight);
    }
    else {
      var_5 = var_17(pRtree,pNode);
    }
  }
  return var_5;
}


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

ulong MASKED(long param_1,long *param_2,int param_3,undefined4 param_4)

{
  byte bVar1;
  long *plVar2;
  long *plVar3;
  long lVar4;
  uint uVar5;
  int iVar6;
  long lVar7;
  ulong uVar8;
  ulong uVar9;
  void *__dest;
  
  if (param_2[1] != 1) {
    lVar4 = *param_2;
    plVar3 = param_2;
    while (lVar4 == 0) {
      FUN_0015b455(*(undefined8 *)(param_1 + 0xa0),1);
      iVar6 = FUN_001ab5c0(*(undefined8 *)(param_1 + 0xa0));
      if (iVar6 == 100) {
        lVar7 = FUN_0014243c(*(undefined8 *)(param_1 + 0xa0),0);
        lVar4 = param_2[1];
        plVar2 = param_2;
        while (lVar7 != lVar4) {
          plVar2 = (long *)*plVar2;
          if (plVar2 == (long *)0x0) {
            uVar5 = FUN_001e3755(param_1,lVar7,0,plVar3);
            uVar9 = (ulong)uVar5;
            uVar8 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));
            if ((int)uVar8 != 0) {
              return uVar8;
            }
            goto joined_r0x001e3c41;
          }
          lVar4 = plVar2[1];
        }
      }
      uVar9 = FUN_00190b14(*(undefined8 *)(param_1 + 0xa0));
      uVar5 = (uint)uVar9;
joined_r0x001e3c41:
      if (uVar5 != 0) {
        return uVar9;
      }
      plVar3 = (long *)*plVar3;
      if (plVar3 == (long *)0x0) {
        return 0x10b;
      }
      if (plVar3[1] == 1) break;
      lVar4 = *plVar3;
    }
  }
  lVar4 = param_2[3];
  bVar1 = *(byte *)(param_1 + 0x27);
  __dest = (void *)((int)(param_3 * (uint)bVar1 + 4) + lVar4);
  memmove(__dest,(void *)((ulong)bVar1 + (long)__dest),
          (long)(int)(((((uint)*(byte *)(lVar4 + 3) + (uint)*(byte *)(lVar4 + 2) * 0x100) - param_3)
                      + -1) * (uint)bVar1));
  lVar4 = param_2[3];
  iVar6 = (uint)*(byte *)(lVar4 + 2) * 0x100 + -1 + (uint)*(byte *)(lVar4 + 3);
  *(char *)(lVar4 + 2) = (char)((uint)iVar6 >> 8);
  *(char *)(lVar4 + 3) = (char)iVar6;
  *(undefined4 *)((long)param_2 + 0x14) = 1;
  uVar9 = 0;
  if (*param_2 != 0) {
    if ((int)((uint)*(byte *)(param_2[3] + 2) * 0x100 + (uint)*(byte *)(param_2[3] + 3)) <
        ((*(int *)(param_1 + 0x20) + -4) / (int)(uint)*(byte *)(param_1 + 0x27)) / 3) {
      uVar9 = FUN_001e3ca8(param_1,param_2,param_4);
    }
    else {
      uVar9 = FUN_00149ad8(param_1,param_2);
    }
  }
  return uVar9;
}

