
int nodeReaderNext(NodeReader *p)

{
  byte bVar1;
  int iVar2;
  int iVar3;
  long in_FS_OFFSET;
  int nPrefix;
  int nSuffix;
  int rc;
  long local_10;
  
  local_10 = *(long *)(in_FS_OFFSET + 0x28);
  iVar2 = (p->term).n;
  nPrefix = 0;
  nSuffix = 0;
  rc = 0;
  if ((iVar2 == 0) || (p->iChild == 0)) {
    iVar3 = p->iOff;
    if (iVar3 < p->nNode) {
      if (iVar2 != 0) goto LAB_0014ed32;
      goto LAB_0014ed52;
    }
  }
  else {
    p->iChild = p->iChild + 1;
    iVar3 = p->iOff;
    if (iVar3 < p->nNode) {
LAB_0014ed32:
      bVar1 = p->aNode[iVar3];
      if ((char)bVar1 < '\0') {
        iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar3,&nPrefix);
      }
      else {
        nPrefix = (int)bVar1;
        iVar2 = 1;
      }
      p->iOff = p->iOff + iVar2;
LAB_0014ed52:
      bVar1 = p->aNode[p->iOff];
      if ((char)bVar1 < '\0') {
        iVar2 = sqlite3Fts3GetVarint32(p->aNode + p->iOff,&nSuffix);
      }
      else {
        nSuffix = (int)bVar1;
        iVar2 = 1;
      }
      iVar2 = iVar2 + p->iOff;
      p->iOff = iVar2;
      iVar3 = 0x10b;
      if (((nPrefix <= iVar2) && (iVar3 = 0x10b, nSuffix <= p->nNode - iVar2)) &&
         (blobGrowBuffer(&p->term,nPrefix + nSuffix,&rc), iVar3 = rc, rc == 0)) {
        memcpy((p->term).a + nPrefix,p->aNode + p->iOff,(long)nSuffix);
        (p->term).n = nSuffix + nPrefix;
        iVar2 = nSuffix + p->iOff;
        p->iOff = iVar2;
        iVar3 = rc;
        if (p->iChild == 0) {
          bVar1 = p->aNode[iVar2];
          if ((char)bVar1 < '\0') {
            iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar2,&p->nDoclist);
          }
          else {
            p->nDoclist = (uint)bVar1;
            iVar2 = 1;
          }
          iVar2 = iVar2 + p->iOff;
          p->iOff = iVar2;
          iVar3 = 0x10b;
          if (p->nDoclist <= p->nNode - iVar2) {
            p->aDoclist = p->aNode + iVar2;
            p->iOff = iVar2 + p->nDoclist;
            iVar3 = rc;
          }
        }
      }
      goto LAB_0014ed02;
    }
  }
  p->aNode = (char *)0x0;
  iVar3 = rc;
LAB_0014ed02:
  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return iVar3;
}



int FUN_0014ecaf(long *param_1)

{
  byte bVar1;
  int iVar2;
  int iVar3;
  byte *pbVar4;
  long in_FS_OFFSET;
  uint local_1c;
  uint local_18;
  int local_14;
  long local_10;
  
  local_10 = *(long *)(in_FS_OFFSET + 0x28);
  local_1c = 0;
  local_18 = 0;
  local_14 = 0;
  if (((int)param_1[4] == 0) || (param_1[2] == 0)) {
    iVar3 = *(int *)((long)param_1 + 0xc);
    if (iVar3 < (int)param_1[1]) {
      if ((int)param_1[4] != 0) goto LAB_0014ed32;
      goto LAB_0014ed52;
    }
  }
  else {
    param_1[2] = param_1[2] + 1;
    iVar3 = *(int *)((long)param_1 + 0xc);
    if (iVar3 < (int)param_1[1]) {
LAB_0014ed32:
      bVar1 = *(byte *)((long)iVar3 + *param_1);
      if ((char)bVar1 < '\0') {
        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);
      }
      else {
        local_1c = (uint)bVar1;
        iVar3 = 1;
      }
      *(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;
LAB_0014ed52:
      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);
      bVar1 = *pbVar4;
      if ((char)bVar1 < '\0') {
        iVar3 = FUN_00131c9f(pbVar4,&local_18);
      }
      else {
        local_18 = (uint)bVar1;
        iVar3 = 1;
      }
      iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);
      *(int *)((long)param_1 + 0xc) = iVar3;
      iVar2 = 0x10b;
      if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&
         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))
      {
        memcpy((void *)((long)(int)local_1c + param_1[3]),
               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);
        *(uint *)(param_1 + 4) = local_18 + local_1c;
        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);
        *(int *)((long)param_1 + 0xc) = iVar3;
        iVar2 = local_14;
        if (param_1[2] == 0) {
          pbVar4 = (byte *)((long)iVar3 + *param_1);
          bVar1 = *pbVar4;
          if ((char)bVar1 < '\0') {
            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);
          }
          else {
            *(uint *)(param_1 + 6) = (uint)bVar1;
            iVar3 = 1;
          }
          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);
          *(int *)((long)param_1 + 0xc) = iVar3;
          iVar2 = 0x10b;
          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {
            param_1[5] = (long)iVar3 + *param_1;
            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];
            iVar2 = local_14;
          }
        }
      }
      goto LAB_0014ed02;
    }
  }
  *param_1 = 0;
  iVar2 = local_14;
LAB_0014ed02:
  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return iVar2;
}


PUSH RBX
SUB RSP,0x20
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x18],RAX
XOR EAX,EAX
MOV EAX,dword ptr [RDI + 0x20]
MOV dword ptr [RSP + 0xc],0x0
MOV dword ptr [RSP + 0x10],0x0
MOV dword ptr [RSP + 0x14],0x0
MOV RDX,qword ptr [RDI + 0x10]
TEST EAX,EAX
JZ 0x0014ecef
TEST RDX,RDX
JNZ 0x0014ed1c
MOV EDI,dword ptr [RBX + 0xc]
CMP EDI,dword ptr [RBX + 0x8]
JL 0x0014ed2e
MOV qword ptr [RBX],0x0
MOV EAX,dword ptr [RSP + 0x14]
MOV RCX,qword ptr [RSP + 0x18]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x0014ee68
ADD RSP,0x20
POP RBX
RET
ADD RDX,0x1
MOV qword ptr [RDI + 0x10],RDX
MOV EDI,dword ptr [RDI + 0xc]
CMP EDI,dword ptr [RBX + 0x8]
JGE 0x0014ecf7
JMP 0x0014ed32
TEST EAX,EAX
JZ 0x0014ed52
MOVSXD RDI,EDI
ADD RDI,qword ptr [RBX]
MOVZX EAX,byte ptr [RDI]
TEST AL,AL
JS 0x0014ee3f
MOVZX EAX,AL
MOV dword ptr [RSP + 0xc],EAX
MOV EAX,0x1
ADD dword ptr [RBX + 0xc],EAX
MOVSXD RDI,dword ptr [RBX + 0xc]
ADD RDI,qword ptr [RBX]
MOVZX EAX,byte ptr [RDI]
TEST AL,AL
JS 0x0014ee4e
MOVZX EAX,AL
MOV dword ptr [RSP + 0x10],EAX
MOV EAX,0x1
ADD EAX,dword ptr [RBX + 0xc]
MOV EDX,EAX
MOV dword ptr [RBX + 0xc],EAX
MOV ESI,dword ptr [RSP + 0xc]
MOV EAX,0x10b
CMP EDX,ESI
JL 0x0014ed02
MOV ECX,dword ptr [RSP + 0x10]
MOV EAX,dword ptr [RBX + 0x8]
SUB EAX,EDX
MOV EDX,EAX
MOV EAX,0x10b
CMP EDX,ECX
JL 0x0014ed02
LEA RDX,[RSP + 0x14]
ADD ESI,ECX
LEA RDI,[RBX + 0x18]
CALL 0x0014ec75
CMP dword ptr [RSP + 0x14],0x0
JNZ 0x0014ecfe
MOVSXD RDI,dword ptr [RSP + 0xc]
ADD RDI,qword ptr [RBX + 0x18]
MOVSXD RDX,dword ptr [RSP + 0x10]
MOVSXD RSI,dword ptr [RBX + 0xc]
ADD RSI,qword ptr [RBX]
CALL 0x0010e670
MOV EAX,dword ptr [RSP + 0x10]
MOV EDX,EAX
ADD EDX,dword ptr [RSP + 0xc]
MOV dword ptr [RBX + 0x20],EDX
ADD EAX,dword ptr [RBX + 0xc]
MOV dword ptr [RBX + 0xc],EAX
CMP qword ptr [RBX + 0x10],0x0
JNZ 0x0014ecfe
CDQE
ADD RAX,qword ptr [RBX]
MOV RDI,RAX
MOVZX EAX,byte ptr [RAX]
TEST AL,AL
JS 0x0014ee5d
MOVZX EAX,AL
MOV dword ptr [RBX + 0x30],EAX
MOV EAX,0x1
ADD EAX,dword ptr [RBX + 0xc]
MOV EDX,EAX
MOV dword ptr [RBX + 0xc],EAX
MOV ESI,dword ptr [RBX + 0x30]
MOV ECX,dword ptr [RBX + 0x8]
SUB ECX,EAX
MOV EAX,0x10b
CMP ECX,ESI
JL 0x0014ed02
MOVSXD RAX,EDX
ADD RAX,qword ptr [RBX]
MOV qword ptr [RBX + 0x28],RAX
ADD EDX,ESI
MOV dword ptr [RBX + 0xc],EDX
JMP 0x0014ecfe
LEA RSI,[RSP + 0xc]
CALL 0x00131c9f
JMP 0x0014ed4f
LEA RSI,[RSP + 0x10]
CALL 0x00131c9f
JMP 0x0014ed70
LEA RSI,[RBX + 0x30]
CALL 0x00131c9f
JMP 0x0014ee0e
CALL 0x0010e4d0
(translation_unit "int FUN_0014ecaf(long *param_1)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  byte *pbVar4;\n  long in_FS_OFFSET;\n  uint local_1c;\n  uint local_18;\n  int local_14;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  local_1c = 0;\n  local_18 = 0;\n  local_14 = 0;\n  if (((int)param_1[4] == 0) || (param_1[2] == 0)) {\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\n      if ((int)param_1[4] != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }\n  }\n  else {\n    param_1[2] = param_1[2] + 1;\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\nLAB_0014ed32:\n      bVar1 = *(byte *)((long)iVar3 + *param_1);\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }\n      else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }\n      *(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;\nLAB_0014ed52:\n      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);\n      bVar1 = *pbVar4;\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }\n      else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }\n      iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n      *(int *)((long)param_1 + 0xc) = iVar3;\n      iVar2 = 0x10b;\n      if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))\n      {\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }\n  }\n  *param_1 = 0;\n  iVar2 = local_14;\nLAB_0014ed02:\n  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar2;\n}\n\n" (function_definition "int FUN_0014ecaf(long *param_1)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  byte *pbVar4;\n  long in_FS_OFFSET;\n  uint local_1c;\n  uint local_18;\n  int local_14;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  local_1c = 0;\n  local_18 = 0;\n  local_14 = 0;\n  if (((int)param_1[4] == 0) || (param_1[2] == 0)) {\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\n      if ((int)param_1[4] != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }\n  }\n  else {\n    param_1[2] = param_1[2] + 1;\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\nLAB_0014ed32:\n      bVar1 = *(byte *)((long)iVar3 + *param_1);\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }\n      else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }\n      *(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;\nLAB_0014ed52:\n      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);\n      bVar1 = *pbVar4;\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }\n      else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }\n      iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n      *(int *)((long)param_1 + 0xc) = iVar3;\n      iVar2 = 0x10b;\n      if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))\n      {\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }\n  }\n  *param_1 = 0;\n  iVar2 = local_14;\nLAB_0014ed02:\n  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_0014ecaf(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  byte *pbVar4;\n  long in_FS_OFFSET;\n  uint local_1c;\n  uint local_18;\n  int local_14;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  local_1c = 0;\n  local_18 = 0;\n  local_14 = 0;\n  if (((int)param_1[4] == 0) || (param_1[2] == 0)) {\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\n      if ((int)param_1[4] != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }\n  }\n  else {\n    param_1[2] = param_1[2] + 1;\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\nLAB_0014ed32:\n      bVar1 = *(byte *)((long)iVar3 + *param_1);\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }\n      else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }\n      *(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;\nLAB_0014ed52:\n      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);\n      bVar1 = *pbVar4;\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }\n      else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }\n      iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n      *(int *)((long)param_1 + 0xc) = iVar3;\n      iVar2 = 0x10b;\n      if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))\n      {\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }\n  }\n  *param_1 = 0;\n  iVar2 = local_14;\nLAB_0014ed02:\n  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar2;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "uint local_1c;" type_identifier identifier ;) (declaration "uint local_18;" type_identifier identifier ;) (declaration "int local_14;" primitive_type identifier ;) (declaration "long local_10;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_10 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_10 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_1c = 0;" (assignment_expression "local_1c = 0" identifier = number_literal) ;) (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" identifier = number_literal) ;) (expression_statement "local_14 = 0;" (assignment_expression "local_14 = 0" identifier = number_literal) ;) (if_statement "if (((int)param_1[4] == 0) || (param_1[2] == 0)) {\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\n      if ((int)param_1[4] != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }\n  }\n  else {\n    param_1[2] = param_1[2] + 1;\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\nLAB_0014ed32:\n      bVar1 = *(byte *)((long)iVar3 + *param_1);\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }\n      else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }\n      *(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;\nLAB_0014ed52:\n      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);\n      bVar1 = *pbVar4;\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }\n      else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }\n      iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n      *(int *)((long)param_1 + 0xc) = iVar3;\n      iVar2 = 0x10b;\n      if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))\n      {\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }\n  }" if (parenthesized_expression "(((int)param_1[4] == 0) || (param_1[2] == 0))" ( (binary_expression "((int)param_1[4] == 0) || (param_1[2] == 0)" (parenthesized_expression "((int)param_1[4] == 0)" ( (binary_expression "(int)param_1[4] == 0" (cast_expression "(int)param_1[4]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) == number_literal) )) || (parenthesized_expression "(param_1[2] == 0)" ( (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\n      if ((int)param_1[4] != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }\n  }" { (expression_statement "iVar3 = *(int *)((long)param_1 + 0xc);" (assignment_expression "iVar3 = *(int *)((long)param_1 + 0xc)" identifier = (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (if_statement "if (iVar3 < (int)param_1[1]) {\n      if ((int)param_1[4] != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }" if (parenthesized_expression "(iVar3 < (int)param_1[1])" ( (binary_expression "iVar3 < (int)param_1[1]" identifier < (cast_expression "(int)param_1[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n      if ((int)param_1[4] != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }" { (if_statement "if ((int)param_1[4] != 0) goto LAB_0014ed32;" if (parenthesized_expression "((int)param_1[4] != 0)" ( (binary_expression "(int)param_1[4] != 0" (cast_expression "(int)param_1[4]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) != number_literal) )) (goto_statement "goto LAB_0014ed32;" goto statement_identifier ;)) (goto_statement "goto LAB_0014ed52;" goto statement_identifier ;) })) }) (else_clause "else {\n    param_1[2] = param_1[2] + 1;\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\nLAB_0014ed32:\n      bVar1 = *(byte *)((long)iVar3 + *param_1);\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }\n      else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }\n      *(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;\nLAB_0014ed52:\n      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);\n      bVar1 = *pbVar4;\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }\n      else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }\n      iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n      *(int *)((long)param_1 + 0xc) = iVar3;\n      iVar2 = 0x10b;\n      if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))\n      {\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }\n  }" else (compound_statement "{\n    param_1[2] = param_1[2] + 1;\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\nLAB_0014ed32:\n      bVar1 = *(byte *)((long)iVar3 + *param_1);\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }\n      else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }\n      *(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;\nLAB_0014ed52:\n      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);\n      bVar1 = *pbVar4;\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }\n      else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }\n      iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n      *(int *)((long)param_1 + 0xc) = iVar3;\n      iVar2 = 0x10b;\n      if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))\n      {\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }\n  }" { (expression_statement "param_1[2] = param_1[2] + 1;" (assignment_expression "param_1[2] = param_1[2] + 1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "param_1[2] + 1" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "iVar3 = *(int *)((long)param_1 + 0xc);" (assignment_expression "iVar3 = *(int *)((long)param_1 + 0xc)" identifier = (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (if_statement "if (iVar3 < (int)param_1[1]) {\nLAB_0014ed32:\n      bVar1 = *(byte *)((long)iVar3 + *param_1);\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }\n      else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }\n      *(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;\nLAB_0014ed52:\n      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);\n      bVar1 = *pbVar4;\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }\n      else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }\n      iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n      *(int *)((long)param_1 + 0xc) = iVar3;\n      iVar2 = 0x10b;\n      if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))\n      {\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }" if (parenthesized_expression "(iVar3 < (int)param_1[1])" ( (binary_expression "iVar3 < (int)param_1[1]" identifier < (cast_expression "(int)param_1[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\nLAB_0014ed32:\n      bVar1 = *(byte *)((long)iVar3 + *param_1);\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }\n      else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }\n      *(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;\nLAB_0014ed52:\n      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);\n      bVar1 = *pbVar4;\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }\n      else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }\n      iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n      *(int *)((long)param_1 + 0xc) = iVar3;\n      iVar2 = 0x10b;\n      if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))\n      {\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }" { (labeled_statement "LAB_0014ed32:\n      bVar1 = *(byte *)((long)iVar3 + *param_1);" statement_identifier : (expression_statement "bVar1 = *(byte *)((long)iVar3 + *param_1);" (assignment_expression "bVar1 = *(byte *)((long)iVar3 + *param_1)" identifier = (pointer_expression "*(byte *)((long)iVar3 + *param_1)" * (cast_expression "(byte *)((long)iVar3 + *param_1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)iVar3 + *param_1)" ( (binary_expression "(long)iVar3 + *param_1" (cast_expression "(long)iVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*param_1" * identifier)) ))))) ;)) (if_statement "if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }\n      else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }" if (parenthesized_expression "((char)bVar1 < '\0')" ( (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }" { (expression_statement "iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);" (assignment_expression "iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c)" identifier = (call_expression "FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c)" identifier (argument_list "((byte *)((long)iVar3 + *param_1),&local_1c)" ( (cast_expression "(byte *)((long)iVar3 + *param_1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)iVar3 + *param_1)" ( (binary_expression "(long)iVar3 + *param_1" (cast_expression "(long)iVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*param_1" * identifier)) ))) , (pointer_expression "&local_1c" & identifier) )))) ;) }) (else_clause "else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }" else (compound_statement "{\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }" { (expression_statement "local_1c = (uint)bVar1;" (assignment_expression "local_1c = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) }))) (expression_statement "*(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;" (assignment_expression "*(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3" (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (binary_expression "*(int *)((long)param_1 + 0xc) + iVar3" (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + identifier)) ;) (labeled_statement "LAB_0014ed52:\n      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);" statement_identifier : (expression_statement "pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);" (assignment_expression "pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1)" identifier = (cast_expression "(byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)*(int *)((long)param_1 + 0xc) + *param_1)" ( (binary_expression "(long)*(int *)((long)param_1 + 0xc) + *param_1" (cast_expression "(long)*(int *)((long)param_1 + 0xc)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) + (pointer_expression "*param_1" * identifier)) )))) ;)) (expression_statement "bVar1 = *pbVar4;" (assignment_expression "bVar1 = *pbVar4" identifier = (pointer_expression "*pbVar4" * identifier)) ;) (if_statement "if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }\n      else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }" if (parenthesized_expression "((char)bVar1 < '\0')" ( (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }" { (expression_statement "iVar3 = FUN_00131c9f(pbVar4,&local_18);" (assignment_expression "iVar3 = FUN_00131c9f(pbVar4,&local_18)" identifier = (call_expression "FUN_00131c9f(pbVar4,&local_18)" identifier (argument_list "(pbVar4,&local_18)" ( identifier , (pointer_expression "&local_18" & identifier) )))) ;) }) (else_clause "else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }" else (compound_statement "{\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }" { (expression_statement "local_18 = (uint)bVar1;" (assignment_expression "local_18 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) }))) (expression_statement "iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);" (assignment_expression "iVar3 = iVar3 + *(int *)((long)param_1 + 0xc)" identifier = (binary_expression "iVar3 + *(int *)((long)param_1 + 0xc)" identifier + (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))))) ;) (expression_statement "*(int *)((long)param_1 + 0xc) = iVar3;" (assignment_expression "*(int *)((long)param_1 + 0xc) = iVar3" (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = 0x10b;" (assignment_expression "iVar2 = 0x10b" identifier = number_literal) ;) (if_statement "if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))\n      {\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }" if (parenthesized_expression "((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))" ( (binary_expression "(((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0)" (parenthesized_expression "(((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3))" ( (binary_expression "((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)" (parenthesized_expression "((int)local_1c <= iVar3)" ( (binary_expression "(int)local_1c <= iVar3" (cast_expression "(int)local_1c" ( (type_descriptor "int" primitive_type) ) identifier) <= identifier) )) && (parenthesized_expression "(iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)" ( (comma_expression "iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3" (assignment_expression "iVar2 = 0x10b" identifier = number_literal) , (binary_expression "(int)local_18 <= (int)param_1[1] - iVar3" (cast_expression "(int)local_18" ( (type_descriptor "int" primitive_type) ) identifier) <= (binary_expression "(int)param_1[1] - iVar3" (cast_expression "(int)param_1[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) - identifier))) ))) )) && (parenthesized_expression "(FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0)" ( (comma_expression "FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0" (call_expression "FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14)" identifier (argument_list "(param_1 + 3,local_1c + local_18,&local_14)" ( (binary_expression "param_1 + 3" identifier + number_literal) , (binary_expression "local_1c + local_18" identifier + identifier) , (pointer_expression "&local_14" & identifier) ))) , (comma_expression "iVar2 = local_14, local_14 == 0" (assignment_expression "iVar2 = local_14" identifier = identifier) , (binary_expression "local_14 == 0" identifier == number_literal))) ))) )) (compound_statement "{\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }" { (expression_statement "memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);" (call_expression "memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18)" identifier (argument_list "((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18)" ( (cast_expression "(void *)((long)(int)local_1c + param_1[3])" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)(int)local_1c + param_1[3])" ( (binary_expression "(long)(int)local_1c + param_1[3]" (cast_expression "(long)(int)local_1c" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)local_1c" ( (type_descriptor "int" primitive_type) ) identifier)) + (subscript_expression "param_1[3]" identifier [ number_literal ])) ))) , (cast_expression "(void *)((long)*(int *)((long)param_1 + 0xc) + *param_1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)*(int *)((long)param_1 + 0xc) + *param_1)" ( (binary_expression "(long)*(int *)((long)param_1 + 0xc) + *param_1" (cast_expression "(long)*(int *)((long)param_1 + 0xc)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) + (pointer_expression "*param_1" * identifier)) ))) , (cast_expression "(long)(int)local_18" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)local_18" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) (expression_statement "*(uint *)(param_1 + 4) = local_18 + local_1c;" (assignment_expression "*(uint *)(param_1 + 4) = local_18 + local_1c" (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (binary_expression "local_18 + local_1c" identifier + identifier)) ;) (expression_statement "iVar3 = local_18 + *(int *)((long)param_1 + 0xc);" (assignment_expression "iVar3 = local_18 + *(int *)((long)param_1 + 0xc)" identifier = (binary_expression "local_18 + *(int *)((long)param_1 + 0xc)" identifier + (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))))) ;) (expression_statement "*(int *)((long)param_1 + 0xc) = iVar3;" (assignment_expression "*(int *)((long)param_1 + 0xc) = iVar3" (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = local_14;" (assignment_expression "iVar2 = local_14" identifier = identifier) ;) (if_statement "if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }" if (parenthesized_expression "(param_1[2] == 0)" ( (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }" { (expression_statement "pbVar4 = (byte *)((long)iVar3 + *param_1);" (assignment_expression "pbVar4 = (byte *)((long)iVar3 + *param_1)" identifier = (cast_expression "(byte *)((long)iVar3 + *param_1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)iVar3 + *param_1)" ( (binary_expression "(long)iVar3 + *param_1" (cast_expression "(long)iVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*param_1" * identifier)) )))) ;) (expression_statement "bVar1 = *pbVar4;" (assignment_expression "bVar1 = *pbVar4" identifier = (pointer_expression "*pbVar4" * identifier)) ;) (if_statement "if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }" if (parenthesized_expression "((char)bVar1 < '\0')" ( (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }" { (expression_statement "iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);" (assignment_expression "iVar3 = FUN_00131c9f(pbVar4,param_1 + 6)" identifier = (call_expression "FUN_00131c9f(pbVar4,param_1 + 6)" identifier (argument_list "(pbVar4,param_1 + 6)" ( identifier , (binary_expression "param_1 + 6" identifier + number_literal) )))) ;) }) (else_clause "else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }" else (compound_statement "{\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }" { (expression_statement "*(uint *)(param_1 + 6) = (uint)bVar1;" (assignment_expression "*(uint *)(param_1 + 6) = (uint)bVar1" (pointer_expression "*(uint *)(param_1 + 6)" * (cast_expression "(uint *)(param_1 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) )))) = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) }))) (expression_statement "iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);" (assignment_expression "iVar3 = iVar3 + *(int *)((long)param_1 + 0xc)" identifier = (binary_expression "iVar3 + *(int *)((long)param_1 + 0xc)" identifier + (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))))) ;) (expression_statement "*(int *)((long)param_1 + 0xc) = iVar3;" (assignment_expression "*(int *)((long)param_1 + 0xc) = iVar3" (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = 0x10b;" (assignment_expression "iVar2 = 0x10b" identifier = number_literal) ;) (if_statement "if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }" if (parenthesized_expression "((int)param_1[6] <= (int)param_1[1] - iVar3)" ( (binary_expression "(int)param_1[6] <= (int)param_1[1] - iVar3" (cast_expression "(int)param_1[6]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[6]" identifier [ number_literal ])) <= (binary_expression "(int)param_1[1] - iVar3" (cast_expression "(int)param_1[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) - identifier)) )) (compound_statement "{\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }" { (expression_statement "param_1[5] = (long)iVar3 + *param_1;" (assignment_expression "param_1[5] = (long)iVar3 + *param_1" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (binary_expression "(long)iVar3 + *param_1" (cast_expression "(long)iVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];" (assignment_expression "*(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6]" (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (binary_expression "iVar3 + (int)param_1[6]" identifier + (cast_expression "(int)param_1[6]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[6]" identifier [ number_literal ])))) ;) (expression_statement "iVar2 = local_14;" (assignment_expression "iVar2 = local_14" identifier = identifier) ;) })) })) })) (goto_statement "goto LAB_0014ed02;" goto statement_identifier ;) })) }))) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "iVar2 = local_14;" (assignment_expression "iVar2 = local_14" identifier = identifier) ;) (labeled_statement "LAB_0014ed02:\n  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_10 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_10 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "int nodeReaderNext(NodeReader *p)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  long in_FS_OFFSET;\n  int nPrefix;\n  int nSuffix;\n  int rc;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar2 = (p->term).n;\n  nPrefix = 0;\n  nSuffix = 0;\n  rc = 0;\n  if ((iVar2 == 0) || (p->iChild == 0)) {\n    iVar3 = p->iOff;\n    if (iVar3 < p->nNode) {\n      if (iVar2 != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }\n  }\n  else {\n    p->iChild = p->iChild + 1;\n    iVar3 = p->iOff;\n    if (iVar3 < p->nNode) {\nLAB_0014ed32:\n      bVar1 = p->aNode[iVar3];\n      if ((char)bVar1 < '\0') {\n        iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar3,&nPrefix);\n      }\n      else {\n        nPrefix = (int)bVar1;\n        iVar2 = 1;\n      }\n      p->iOff = p->iOff + iVar2;\nLAB_0014ed52:\n      bVar1 = p->aNode[p->iOff];\n      if ((char)bVar1 < '\0') {\n        iVar2 = sqlite3Fts3GetVarint32(p->aNode + p->iOff,&nSuffix);\n      }\n      else {\n        nSuffix = (int)bVar1;\n        iVar2 = 1;\n      }\n      iVar2 = iVar2 + p->iOff;\n      p->iOff = iVar2;\n      iVar3 = 0x10b;\n      if (((nPrefix <= iVar2) && (iVar3 = 0x10b, nSuffix <= p->nNode - iVar2)) &&\n         (blobGrowBuffer(&p->term,nPrefix + nSuffix,&rc), iVar3 = rc, rc == 0)) {\n        memcpy((p->term).a + nPrefix,p->aNode + p->iOff,(long)nSuffix);\n        (p->term).n = nSuffix + nPrefix;\n        iVar2 = nSuffix + p->iOff;\n        p->iOff = iVar2;\n        iVar3 = rc;\n        if (p->iChild == 0) {\n          bVar1 = p->aNode[iVar2];\n          if ((char)bVar1 < '\0') {\n            iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar2,&p->nDoclist);\n          }\n          else {\n            p->nDoclist = (uint)bVar1;\n            iVar2 = 1;\n          }\n          iVar2 = iVar2 + p->iOff;\n          p->iOff = iVar2;\n          iVar3 = 0x10b;\n          if (p->nDoclist <= p->nNode - iVar2) {\n            p->aDoclist = p->aNode + iVar2;\n            p->iOff = iVar2 + p->nDoclist;\n            iVar3 = rc;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }\n  }\n  p->aNode = (char *)0x0;\n  iVar3 = rc;\nLAB_0014ed02:\n  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar3;\n}\n\n" (function_definition "int nodeReaderNext(NodeReader *p)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  long in_FS_OFFSET;\n  int nPrefix;\n  int nSuffix;\n  int rc;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar2 = (p->term).n;\n  nPrefix = 0;\n  nSuffix = 0;\n  rc = 0;\n  if ((iVar2 == 0) || (p->iChild == 0)) {\n    iVar3 = p->iOff;\n    if (iVar3 < p->nNode) {\n      if (iVar2 != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }\n  }\n  else {\n    p->iChild = p->iChild + 1;\n    iVar3 = p->iOff;\n    if (iVar3 < p->nNode) {\nLAB_0014ed32:\n      bVar1 = p->aNode[iVar3];\n      if ((char)bVar1 < '\0') {\n        iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar3,&nPrefix);\n      }\n      else {\n        nPrefix = (int)bVar1;\n        iVar2 = 1;\n      }\n      p->iOff = p->iOff + iVar2;\nLAB_0014ed52:\n      bVar1 = p->aNode[p->iOff];\n      if ((char)bVar1 < '\0') {\n        iVar2 = sqlite3Fts3GetVarint32(p->aNode + p->iOff,&nSuffix);\n      }\n      else {\n        nSuffix = (int)bVar1;\n        iVar2 = 1;\n      }\n      iVar2 = iVar2 + p->iOff;\n      p->iOff = iVar2;\n      iVar3 = 0x10b;\n      if (((nPrefix <= iVar2) && (iVar3 = 0x10b, nSuffix <= p->nNode - iVar2)) &&\n         (blobGrowBuffer(&p->term,nPrefix + nSuffix,&rc), iVar3 = rc, rc == 0)) {\n        memcpy((p->term).a + nPrefix,p->aNode + p->iOff,(long)nSuffix);\n        (p->term).n = nSuffix + nPrefix;\n        iVar2 = nSuffix + p->iOff;\n        p->iOff = iVar2;\n        iVar3 = rc;\n        if (p->iChild == 0) {\n          bVar1 = p->aNode[iVar2];\n          if ((char)bVar1 < '\0') {\n            iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar2,&p->nDoclist);\n          }\n          else {\n            p->nDoclist = (uint)bVar1;\n            iVar2 = 1;\n          }\n          iVar2 = iVar2 + p->iOff;\n          p->iOff = iVar2;\n          iVar3 = 0x10b;\n          if (p->nDoclist <= p->nNode - iVar2) {\n            p->aDoclist = p->aNode + iVar2;\n            p->iOff = iVar2 + p->nDoclist;\n            iVar3 = rc;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }\n  }\n  p->aNode = (char *)0x0;\n  iVar3 = rc;\nLAB_0014ed02:\n  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar3;\n}" primitive_type (function_declarator "nodeReaderNext(NodeReader *p)" identifier (parameter_list "(NodeReader *p)" ( (parameter_declaration "NodeReader *p" type_identifier (pointer_declarator "*p" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  long in_FS_OFFSET;\n  int nPrefix;\n  int nSuffix;\n  int rc;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar2 = (p->term).n;\n  nPrefix = 0;\n  nSuffix = 0;\n  rc = 0;\n  if ((iVar2 == 0) || (p->iChild == 0)) {\n    iVar3 = p->iOff;\n    if (iVar3 < p->nNode) {\n      if (iVar2 != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }\n  }\n  else {\n    p->iChild = p->iChild + 1;\n    iVar3 = p->iOff;\n    if (iVar3 < p->nNode) {\nLAB_0014ed32:\n      bVar1 = p->aNode[iVar3];\n      if ((char)bVar1 < '\0') {\n        iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar3,&nPrefix);\n      }\n      else {\n        nPrefix = (int)bVar1;\n        iVar2 = 1;\n      }\n      p->iOff = p->iOff + iVar2;\nLAB_0014ed52:\n      bVar1 = p->aNode[p->iOff];\n      if ((char)bVar1 < '\0') {\n        iVar2 = sqlite3Fts3GetVarint32(p->aNode + p->iOff,&nSuffix);\n      }\n      else {\n        nSuffix = (int)bVar1;\n        iVar2 = 1;\n      }\n      iVar2 = iVar2 + p->iOff;\n      p->iOff = iVar2;\n      iVar3 = 0x10b;\n      if (((nPrefix <= iVar2) && (iVar3 = 0x10b, nSuffix <= p->nNode - iVar2)) &&\n         (blobGrowBuffer(&p->term,nPrefix + nSuffix,&rc), iVar3 = rc, rc == 0)) {\n        memcpy((p->term).a + nPrefix,p->aNode + p->iOff,(long)nSuffix);\n        (p->term).n = nSuffix + nPrefix;\n        iVar2 = nSuffix + p->iOff;\n        p->iOff = iVar2;\n        iVar3 = rc;\n        if (p->iChild == 0) {\n          bVar1 = p->aNode[iVar2];\n          if ((char)bVar1 < '\0') {\n            iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar2,&p->nDoclist);\n          }\n          else {\n            p->nDoclist = (uint)bVar1;\n            iVar2 = 1;\n          }\n          iVar2 = iVar2 + p->iOff;\n          p->iOff = iVar2;\n          iVar3 = 0x10b;\n          if (p->nDoclist <= p->nNode - iVar2) {\n            p->aDoclist = p->aNode + iVar2;\n            p->iOff = iVar2 + p->nDoclist;\n            iVar3 = rc;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }\n  }\n  p->aNode = (char *)0x0;\n  iVar3 = rc;\nLAB_0014ed02:\n  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar3;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int nPrefix;" primitive_type identifier ;) (declaration "int nSuffix;" primitive_type identifier ;) (declaration "int rc;" primitive_type identifier ;) (declaration "long local_10;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_10 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_10 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = (p->term).n;" (assignment_expression "iVar2 = (p->term).n" identifier = (field_expression "(p->term).n" (parenthesized_expression "(p->term)" ( (field_expression "p->term" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "nPrefix = 0;" (assignment_expression "nPrefix = 0" identifier = number_literal) ;) (expression_statement "nSuffix = 0;" (assignment_expression "nSuffix = 0" identifier = number_literal) ;) (expression_statement "rc = 0;" (assignment_expression "rc = 0" identifier = number_literal) ;) (if_statement "if ((iVar2 == 0) || (p->iChild == 0)) {\n    iVar3 = p->iOff;\n    if (iVar3 < p->nNode) {\n      if (iVar2 != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }\n  }\n  else {\n    p->iChild = p->iChild + 1;\n    iVar3 = p->iOff;\n    if (iVar3 < p->nNode) {\nLAB_0014ed32:\n      bVar1 = p->aNode[iVar3];\n      if ((char)bVar1 < '\0') {\n        iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar3,&nPrefix);\n      }\n      else {\n        nPrefix = (int)bVar1;\n        iVar2 = 1;\n      }\n      p->iOff = p->iOff + iVar2;\nLAB_0014ed52:\n      bVar1 = p->aNode[p->iOff];\n      if ((char)bVar1 < '\0') {\n        iVar2 = sqlite3Fts3GetVarint32(p->aNode + p->iOff,&nSuffix);\n      }\n      else {\n        nSuffix = (int)bVar1;\n        iVar2 = 1;\n      }\n      iVar2 = iVar2 + p->iOff;\n      p->iOff = iVar2;\n      iVar3 = 0x10b;\n      if (((nPrefix <= iVar2) && (iVar3 = 0x10b, nSuffix <= p->nNode - iVar2)) &&\n         (blobGrowBuffer(&p->term,nPrefix + nSuffix,&rc), iVar3 = rc, rc == 0)) {\n        memcpy((p->term).a + nPrefix,p->aNode + p->iOff,(long)nSuffix);\n        (p->term).n = nSuffix + nPrefix;\n        iVar2 = nSuffix + p->iOff;\n        p->iOff = iVar2;\n        iVar3 = rc;\n        if (p->iChild == 0) {\n          bVar1 = p->aNode[iVar2];\n          if ((char)bVar1 < '\0') {\n            iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar2,&p->nDoclist);\n          }\n          else {\n            p->nDoclist = (uint)bVar1;\n            iVar2 = 1;\n          }\n          iVar2 = iVar2 + p->iOff;\n          p->iOff = iVar2;\n          iVar3 = 0x10b;\n          if (p->nDoclist <= p->nNode - iVar2) {\n            p->aDoclist = p->aNode + iVar2;\n            p->iOff = iVar2 + p->nDoclist;\n            iVar3 = rc;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }\n  }" if (parenthesized_expression "((iVar2 == 0) || (p->iChild == 0))" ( (binary_expression "(iVar2 == 0) || (p->iChild == 0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) || (parenthesized_expression "(p->iChild == 0)" ( (binary_expression "p->iChild == 0" (field_expression "p->iChild" identifier -> field_identifier) == number_literal) ))) )) (compound_statement "{\n    iVar3 = p->iOff;\n    if (iVar3 < p->nNode) {\n      if (iVar2 != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }\n  }" { (expression_statement "iVar3 = p->iOff;" (assignment_expression "iVar3 = p->iOff" identifier = (field_expression "p->iOff" identifier -> field_identifier)) ;) (if_statement "if (iVar3 < p->nNode) {\n      if (iVar2 != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }" if (parenthesized_expression "(iVar3 < p->nNode)" ( (binary_expression "iVar3 < p->nNode" identifier < (field_expression "p->nNode" identifier -> field_identifier)) )) (compound_statement "{\n      if (iVar2 != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }" { (if_statement "if (iVar2 != 0) goto LAB_0014ed32;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0014ed32;" goto statement_identifier ;)) (goto_statement "goto LAB_0014ed52;" goto statement_identifier ;) })) }) (else_clause "else {\n    p->iChild = p->iChild + 1;\n    iVar3 = p->iOff;\n    if (iVar3 < p->nNode) {\nLAB_0014ed32:\n      bVar1 = p->aNode[iVar3];\n      if ((char)bVar1 < '\0') {\n        iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar3,&nPrefix);\n      }\n      else {\n        nPrefix = (int)bVar1;\n        iVar2 = 1;\n      }\n      p->iOff = p->iOff + iVar2;\nLAB_0014ed52:\n      bVar1 = p->aNode[p->iOff];\n      if ((char)bVar1 < '\0') {\n        iVar2 = sqlite3Fts3GetVarint32(p->aNode + p->iOff,&nSuffix);\n      }\n      else {\n        nSuffix = (int)bVar1;\n        iVar2 = 1;\n      }\n      iVar2 = iVar2 + p->iOff;\n      p->iOff = iVar2;\n      iVar3 = 0x10b;\n      if (((nPrefix <= iVar2) && (iVar3 = 0x10b, nSuffix <= p->nNode - iVar2)) &&\n         (blobGrowBuffer(&p->term,nPrefix + nSuffix,&rc), iVar3 = rc, rc == 0)) {\n        memcpy((p->term).a + nPrefix,p->aNode + p->iOff,(long)nSuffix);\n        (p->term).n = nSuffix + nPrefix;\n        iVar2 = nSuffix + p->iOff;\n        p->iOff = iVar2;\n        iVar3 = rc;\n        if (p->iChild == 0) {\n          bVar1 = p->aNode[iVar2];\n          if ((char)bVar1 < '\0') {\n            iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar2,&p->nDoclist);\n          }\n          else {\n            p->nDoclist = (uint)bVar1;\n            iVar2 = 1;\n          }\n          iVar2 = iVar2 + p->iOff;\n          p->iOff = iVar2;\n          iVar3 = 0x10b;\n          if (p->nDoclist <= p->nNode - iVar2) {\n            p->aDoclist = p->aNode + iVar2;\n            p->iOff = iVar2 + p->nDoclist;\n            iVar3 = rc;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }\n  }" else (compound_statement "{\n    p->iChild = p->iChild + 1;\n    iVar3 = p->iOff;\n    if (iVar3 < p->nNode) {\nLAB_0014ed32:\n      bVar1 = p->aNode[iVar3];\n      if ((char)bVar1 < '\0') {\n        iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar3,&nPrefix);\n      }\n      else {\n        nPrefix = (int)bVar1;\n        iVar2 = 1;\n      }\n      p->iOff = p->iOff + iVar2;\nLAB_0014ed52:\n      bVar1 = p->aNode[p->iOff];\n      if ((char)bVar1 < '\0') {\n        iVar2 = sqlite3Fts3GetVarint32(p->aNode + p->iOff,&nSuffix);\n      }\n      else {\n        nSuffix = (int)bVar1;\n        iVar2 = 1;\n      }\n      iVar2 = iVar2 + p->iOff;\n      p->iOff = iVar2;\n      iVar3 = 0x10b;\n      if (((nPrefix <= iVar2) && (iVar3 = 0x10b, nSuffix <= p->nNode - iVar2)) &&\n         (blobGrowBuffer(&p->term,nPrefix + nSuffix,&rc), iVar3 = rc, rc == 0)) {\n        memcpy((p->term).a + nPrefix,p->aNode + p->iOff,(long)nSuffix);\n        (p->term).n = nSuffix + nPrefix;\n        iVar2 = nSuffix + p->iOff;\n        p->iOff = iVar2;\n        iVar3 = rc;\n        if (p->iChild == 0) {\n          bVar1 = p->aNode[iVar2];\n          if ((char)bVar1 < '\0') {\n            iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar2,&p->nDoclist);\n          }\n          else {\n            p->nDoclist = (uint)bVar1;\n            iVar2 = 1;\n          }\n          iVar2 = iVar2 + p->iOff;\n          p->iOff = iVar2;\n          iVar3 = 0x10b;\n          if (p->nDoclist <= p->nNode - iVar2) {\n            p->aDoclist = p->aNode + iVar2;\n            p->iOff = iVar2 + p->nDoclist;\n            iVar3 = rc;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }\n  }" { (expression_statement "p->iChild = p->iChild + 1;" (assignment_expression "p->iChild = p->iChild + 1" (field_expression "p->iChild" identifier -> field_identifier) = (binary_expression "p->iChild + 1" (field_expression "p->iChild" identifier -> field_identifier) + number_literal)) ;) (expression_statement "iVar3 = p->iOff;" (assignment_expression "iVar3 = p->iOff" identifier = (field_expression "p->iOff" identifier -> field_identifier)) ;) (if_statement "if (iVar3 < p->nNode) {\nLAB_0014ed32:\n      bVar1 = p->aNode[iVar3];\n      if ((char)bVar1 < '\0') {\n        iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar3,&nPrefix);\n      }\n      else {\n        nPrefix = (int)bVar1;\n        iVar2 = 1;\n      }\n      p->iOff = p->iOff + iVar2;\nLAB_0014ed52:\n      bVar1 = p->aNode[p->iOff];\n      if ((char)bVar1 < '\0') {\n        iVar2 = sqlite3Fts3GetVarint32(p->aNode + p->iOff,&nSuffix);\n      }\n      else {\n        nSuffix = (int)bVar1;\n        iVar2 = 1;\n      }\n      iVar2 = iVar2 + p->iOff;\n      p->iOff = iVar2;\n      iVar3 = 0x10b;\n      if (((nPrefix <= iVar2) && (iVar3 = 0x10b, nSuffix <= p->nNode - iVar2)) &&\n         (blobGrowBuffer(&p->term,nPrefix + nSuffix,&rc), iVar3 = rc, rc == 0)) {\n        memcpy((p->term).a + nPrefix,p->aNode + p->iOff,(long)nSuffix);\n        (p->term).n = nSuffix + nPrefix;\n        iVar2 = nSuffix + p->iOff;\n        p->iOff = iVar2;\n        iVar3 = rc;\n        if (p->iChild == 0) {\n          bVar1 = p->aNode[iVar2];\n          if ((char)bVar1 < '\0') {\n            iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar2,&p->nDoclist);\n          }\n          else {\n            p->nDoclist = (uint)bVar1;\n            iVar2 = 1;\n          }\n          iVar2 = iVar2 + p->iOff;\n          p->iOff = iVar2;\n          iVar3 = 0x10b;\n          if (p->nDoclist <= p->nNode - iVar2) {\n            p->aDoclist = p->aNode + iVar2;\n            p->iOff = iVar2 + p->nDoclist;\n            iVar3 = rc;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }" if (parenthesized_expression "(iVar3 < p->nNode)" ( (binary_expression "iVar3 < p->nNode" identifier < (field_expression "p->nNode" identifier -> field_identifier)) )) (compound_statement "{\nLAB_0014ed32:\n      bVar1 = p->aNode[iVar3];\n      if ((char)bVar1 < '\0') {\n        iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar3,&nPrefix);\n      }\n      else {\n        nPrefix = (int)bVar1;\n        iVar2 = 1;\n      }\n      p->iOff = p->iOff + iVar2;\nLAB_0014ed52:\n      bVar1 = p->aNode[p->iOff];\n      if ((char)bVar1 < '\0') {\n        iVar2 = sqlite3Fts3GetVarint32(p->aNode + p->iOff,&nSuffix);\n      }\n      else {\n        nSuffix = (int)bVar1;\n        iVar2 = 1;\n      }\n      iVar2 = iVar2 + p->iOff;\n      p->iOff = iVar2;\n      iVar3 = 0x10b;\n      if (((nPrefix <= iVar2) && (iVar3 = 0x10b, nSuffix <= p->nNode - iVar2)) &&\n         (blobGrowBuffer(&p->term,nPrefix + nSuffix,&rc), iVar3 = rc, rc == 0)) {\n        memcpy((p->term).a + nPrefix,p->aNode + p->iOff,(long)nSuffix);\n        (p->term).n = nSuffix + nPrefix;\n        iVar2 = nSuffix + p->iOff;\n        p->iOff = iVar2;\n        iVar3 = rc;\n        if (p->iChild == 0) {\n          bVar1 = p->aNode[iVar2];\n          if ((char)bVar1 < '\0') {\n            iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar2,&p->nDoclist);\n          }\n          else {\n            p->nDoclist = (uint)bVar1;\n            iVar2 = 1;\n          }\n          iVar2 = iVar2 + p->iOff;\n          p->iOff = iVar2;\n          iVar3 = 0x10b;\n          if (p->nDoclist <= p->nNode - iVar2) {\n            p->aDoclist = p->aNode + iVar2;\n            p->iOff = iVar2 + p->nDoclist;\n            iVar3 = rc;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }" { (labeled_statement "LAB_0014ed32:\n      bVar1 = p->aNode[iVar3];" statement_identifier : (expression_statement "bVar1 = p->aNode[iVar3];" (assignment_expression "bVar1 = p->aNode[iVar3]" identifier = (subscript_expression "p->aNode[iVar3]" (field_expression "p->aNode" identifier -> field_identifier) [ identifier ])) ;)) (if_statement "if ((char)bVar1 < '\0') {\n        iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar3,&nPrefix);\n      }\n      else {\n        nPrefix = (int)bVar1;\n        iVar2 = 1;\n      }" if (parenthesized_expression "((char)bVar1 < '\0')" ( (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar3,&nPrefix);\n      }" { (expression_statement "iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar3,&nPrefix);" (assignment_expression "iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar3,&nPrefix)" identifier = (call_expression "sqlite3Fts3GetVarint32(p->aNode + iVar3,&nPrefix)" identifier (argument_list "(p->aNode + iVar3,&nPrefix)" ( (binary_expression "p->aNode + iVar3" (field_expression "p->aNode" identifier -> field_identifier) + identifier) , (pointer_expression "&nPrefix" & identifier) )))) ;) }) (else_clause "else {\n        nPrefix = (int)bVar1;\n        iVar2 = 1;\n      }" else (compound_statement "{\n        nPrefix = (int)bVar1;\n        iVar2 = 1;\n      }" { (expression_statement "nPrefix = (int)bVar1;" (assignment_expression "nPrefix = (int)bVar1" identifier = (cast_expression "(int)bVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) }))) (expression_statement "p->iOff = p->iOff + iVar2;" (assignment_expression "p->iOff = p->iOff + iVar2" (field_expression "p->iOff" identifier -> field_identifier) = (binary_expression "p->iOff + iVar2" (field_expression "p->iOff" identifier -> field_identifier) + identifier)) ;) (labeled_statement "LAB_0014ed52:\n      bVar1 = p->aNode[p->iOff];" statement_identifier : (expression_statement "bVar1 = p->aNode[p->iOff];" (assignment_expression "bVar1 = p->aNode[p->iOff]" identifier = (subscript_expression "p->aNode[p->iOff]" (field_expression "p->aNode" identifier -> field_identifier) [ (field_expression "p->iOff" identifier -> field_identifier) ])) ;)) (if_statement "if ((char)bVar1 < '\0') {\n        iVar2 = sqlite3Fts3GetVarint32(p->aNode + p->iOff,&nSuffix);\n      }\n      else {\n        nSuffix = (int)bVar1;\n        iVar2 = 1;\n      }" if (parenthesized_expression "((char)bVar1 < '\0')" ( (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar2 = sqlite3Fts3GetVarint32(p->aNode + p->iOff,&nSuffix);\n      }" { (expression_statement "iVar2 = sqlite3Fts3GetVarint32(p->aNode + p->iOff,&nSuffix);" (assignment_expression "iVar2 = sqlite3Fts3GetVarint32(p->aNode + p->iOff,&nSuffix)" identifier = (call_expression "sqlite3Fts3GetVarint32(p->aNode + p->iOff,&nSuffix)" identifier (argument_list "(p->aNode + p->iOff,&nSuffix)" ( (binary_expression "p->aNode + p->iOff" (field_expression "p->aNode" identifier -> field_identifier) + (field_expression "p->iOff" identifier -> field_identifier)) , (pointer_expression "&nSuffix" & identifier) )))) ;) }) (else_clause "else {\n        nSuffix = (int)bVar1;\n        iVar2 = 1;\n      }" else (compound_statement "{\n        nSuffix = (int)bVar1;\n        iVar2 = 1;\n      }" { (expression_statement "nSuffix = (int)bVar1;" (assignment_expression "nSuffix = (int)bVar1" identifier = (cast_expression "(int)bVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) }))) (expression_statement "iVar2 = iVar2 + p->iOff;" (assignment_expression "iVar2 = iVar2 + p->iOff" identifier = (binary_expression "iVar2 + p->iOff" identifier + (field_expression "p->iOff" identifier -> field_identifier))) ;) (expression_statement "p->iOff = iVar2;" (assignment_expression "p->iOff = iVar2" (field_expression "p->iOff" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar3 = 0x10b;" (assignment_expression "iVar3 = 0x10b" identifier = number_literal) ;) (if_statement "if (((nPrefix <= iVar2) && (iVar3 = 0x10b, nSuffix <= p->nNode - iVar2)) &&\n         (blobGrowBuffer(&p->term,nPrefix + nSuffix,&rc), iVar3 = rc, rc == 0)) {\n        memcpy((p->term).a + nPrefix,p->aNode + p->iOff,(long)nSuffix);\n        (p->term).n = nSuffix + nPrefix;\n        iVar2 = nSuffix + p->iOff;\n        p->iOff = iVar2;\n        iVar3 = rc;\n        if (p->iChild == 0) {\n          bVar1 = p->aNode[iVar2];\n          if ((char)bVar1 < '\0') {\n            iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar2,&p->nDoclist);\n          }\n          else {\n            p->nDoclist = (uint)bVar1;\n            iVar2 = 1;\n          }\n          iVar2 = iVar2 + p->iOff;\n          p->iOff = iVar2;\n          iVar3 = 0x10b;\n          if (p->nDoclist <= p->nNode - iVar2) {\n            p->aDoclist = p->aNode + iVar2;\n            p->iOff = iVar2 + p->nDoclist;\n            iVar3 = rc;\n          }\n        }\n      }" if (parenthesized_expression "(((nPrefix <= iVar2) && (iVar3 = 0x10b, nSuffix <= p->nNode - iVar2)) &&\n         (blobGrowBuffer(&p->term,nPrefix + nSuffix,&rc), iVar3 = rc, rc == 0))" ( (binary_expression "((nPrefix <= iVar2) && (iVar3 = 0x10b, nSuffix <= p->nNode - iVar2)) &&\n         (blobGrowBuffer(&p->term,nPrefix + nSuffix,&rc), iVar3 = rc, rc == 0)" (parenthesized_expression "((nPrefix <= iVar2) && (iVar3 = 0x10b, nSuffix <= p->nNode - iVar2))" ( (binary_expression "(nPrefix <= iVar2) && (iVar3 = 0x10b, nSuffix <= p->nNode - iVar2)" (parenthesized_expression "(nPrefix <= iVar2)" ( (binary_expression "nPrefix <= iVar2" identifier <= identifier) )) && (parenthesized_expression "(iVar3 = 0x10b, nSuffix <= p->nNode - iVar2)" ( (comma_expression "iVar3 = 0x10b, nSuffix <= p->nNode - iVar2" (assignment_expression "iVar3 = 0x10b" identifier = number_literal) , (binary_expression "nSuffix <= p->nNode - iVar2" identifier <= (binary_expression "p->nNode - iVar2" (field_expression "p->nNode" identifier -> field_identifier) - identifier))) ))) )) && (parenthesized_expression "(blobGrowBuffer(&p->term,nPrefix + nSuffix,&rc), iVar3 = rc, rc == 0)" ( (comma_expression "blobGrowBuffer(&p->term,nPrefix + nSuffix,&rc), iVar3 = rc, rc == 0" (call_expression "blobGrowBuffer(&p->term,nPrefix + nSuffix,&rc)" identifier (argument_list "(&p->term,nPrefix + nSuffix,&rc)" ( (pointer_expression "&p->term" & (field_expression "p->term" identifier -> field_identifier)) , (binary_expression "nPrefix + nSuffix" identifier + identifier) , (pointer_expression "&rc" & identifier) ))) , (comma_expression "iVar3 = rc, rc == 0" (assignment_expression "iVar3 = rc" identifier = identifier) , (binary_expression "rc == 0" identifier == number_literal))) ))) )) (compound_statement "{\n        memcpy((p->term).a + nPrefix,p->aNode + p->iOff,(long)nSuffix);\n        (p->term).n = nSuffix + nPrefix;\n        iVar2 = nSuffix + p->iOff;\n        p->iOff = iVar2;\n        iVar3 = rc;\n        if (p->iChild == 0) {\n          bVar1 = p->aNode[iVar2];\n          if ((char)bVar1 < '\0') {\n            iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar2,&p->nDoclist);\n          }\n          else {\n            p->nDoclist = (uint)bVar1;\n            iVar2 = 1;\n          }\n          iVar2 = iVar2 + p->iOff;\n          p->iOff = iVar2;\n          iVar3 = 0x10b;\n          if (p->nDoclist <= p->nNode - iVar2) {\n            p->aDoclist = p->aNode + iVar2;\n            p->iOff = iVar2 + p->nDoclist;\n            iVar3 = rc;\n          }\n        }\n      }" { (expression_statement "memcpy((p->term).a + nPrefix,p->aNode + p->iOff,(long)nSuffix);" (call_expression "memcpy((p->term).a + nPrefix,p->aNode + p->iOff,(long)nSuffix)" identifier (argument_list "((p->term).a + nPrefix,p->aNode + p->iOff,(long)nSuffix)" ( (binary_expression "(p->term).a + nPrefix" (field_expression "(p->term).a" (parenthesized_expression "(p->term)" ( (field_expression "p->term" identifier -> field_identifier) )) . field_identifier) + identifier) , (binary_expression "p->aNode + p->iOff" (field_expression "p->aNode" identifier -> field_identifier) + (field_expression "p->iOff" identifier -> field_identifier)) , (cast_expression "(long)nSuffix" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) ))) ;) (expression_statement "(p->term).n = nSuffix + nPrefix;" (assignment_expression "(p->term).n = nSuffix + nPrefix" (field_expression "(p->term).n" (parenthesized_expression "(p->term)" ( (field_expression "p->term" identifier -> field_identifier) )) . field_identifier) = (binary_expression "nSuffix + nPrefix" identifier + identifier)) ;) (expression_statement "iVar2 = nSuffix + p->iOff;" (assignment_expression "iVar2 = nSuffix + p->iOff" identifier = (binary_expression "nSuffix + p->iOff" identifier + (field_expression "p->iOff" identifier -> field_identifier))) ;) (expression_statement "p->iOff = iVar2;" (assignment_expression "p->iOff = iVar2" (field_expression "p->iOff" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar3 = rc;" (assignment_expression "iVar3 = rc" identifier = identifier) ;) (if_statement "if (p->iChild == 0) {\n          bVar1 = p->aNode[iVar2];\n          if ((char)bVar1 < '\0') {\n            iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar2,&p->nDoclist);\n          }\n          else {\n            p->nDoclist = (uint)bVar1;\n            iVar2 = 1;\n          }\n          iVar2 = iVar2 + p->iOff;\n          p->iOff = iVar2;\n          iVar3 = 0x10b;\n          if (p->nDoclist <= p->nNode - iVar2) {\n            p->aDoclist = p->aNode + iVar2;\n            p->iOff = iVar2 + p->nDoclist;\n            iVar3 = rc;\n          }\n        }" if (parenthesized_expression "(p->iChild == 0)" ( (binary_expression "p->iChild == 0" (field_expression "p->iChild" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n          bVar1 = p->aNode[iVar2];\n          if ((char)bVar1 < '\0') {\n            iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar2,&p->nDoclist);\n          }\n          else {\n            p->nDoclist = (uint)bVar1;\n            iVar2 = 1;\n          }\n          iVar2 = iVar2 + p->iOff;\n          p->iOff = iVar2;\n          iVar3 = 0x10b;\n          if (p->nDoclist <= p->nNode - iVar2) {\n            p->aDoclist = p->aNode + iVar2;\n            p->iOff = iVar2 + p->nDoclist;\n            iVar3 = rc;\n          }\n        }" { (expression_statement "bVar1 = p->aNode[iVar2];" (assignment_expression "bVar1 = p->aNode[iVar2]" identifier = (subscript_expression "p->aNode[iVar2]" (field_expression "p->aNode" identifier -> field_identifier) [ identifier ])) ;) (if_statement "if ((char)bVar1 < '\0') {\n            iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar2,&p->nDoclist);\n          }\n          else {\n            p->nDoclist = (uint)bVar1;\n            iVar2 = 1;\n          }" if (parenthesized_expression "((char)bVar1 < '\0')" ( (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar2,&p->nDoclist);\n          }" { (expression_statement "iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar2,&p->nDoclist);" (assignment_expression "iVar2 = sqlite3Fts3GetVarint32(p->aNode + iVar2,&p->nDoclist)" identifier = (call_expression "sqlite3Fts3GetVarint32(p->aNode + iVar2,&p->nDoclist)" identifier (argument_list "(p->aNode + iVar2,&p->nDoclist)" ( (binary_expression "p->aNode + iVar2" (field_expression "p->aNode" identifier -> field_identifier) + identifier) , (pointer_expression "&p->nDoclist" & (field_expression "p->nDoclist" identifier -> field_identifier)) )))) ;) }) (else_clause "else {\n            p->nDoclist = (uint)bVar1;\n            iVar2 = 1;\n          }" else (compound_statement "{\n            p->nDoclist = (uint)bVar1;\n            iVar2 = 1;\n          }" { (expression_statement "p->nDoclist = (uint)bVar1;" (assignment_expression "p->nDoclist = (uint)bVar1" (field_expression "p->nDoclist" identifier -> field_identifier) = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) }))) (expression_statement "iVar2 = iVar2 + p->iOff;" (assignment_expression "iVar2 = iVar2 + p->iOff" identifier = (binary_expression "iVar2 + p->iOff" identifier + (field_expression "p->iOff" identifier -> field_identifier))) ;) (expression_statement "p->iOff = iVar2;" (assignment_expression "p->iOff = iVar2" (field_expression "p->iOff" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar3 = 0x10b;" (assignment_expression "iVar3 = 0x10b" identifier = number_literal) ;) (if_statement "if (p->nDoclist <= p->nNode - iVar2) {\n            p->aDoclist = p->aNode + iVar2;\n            p->iOff = iVar2 + p->nDoclist;\n            iVar3 = rc;\n          }" if (parenthesized_expression "(p->nDoclist <= p->nNode - iVar2)" ( (binary_expression "p->nDoclist <= p->nNode - iVar2" (field_expression "p->nDoclist" identifier -> field_identifier) <= (binary_expression "p->nNode - iVar2" (field_expression "p->nNode" identifier -> field_identifier) - identifier)) )) (compound_statement "{\n            p->aDoclist = p->aNode + iVar2;\n            p->iOff = iVar2 + p->nDoclist;\n            iVar3 = rc;\n          }" { (expression_statement "p->aDoclist = p->aNode + iVar2;" (assignment_expression "p->aDoclist = p->aNode + iVar2" (field_expression "p->aDoclist" identifier -> field_identifier) = (binary_expression "p->aNode + iVar2" (field_expression "p->aNode" identifier -> field_identifier) + identifier)) ;) (expression_statement "p->iOff = iVar2 + p->nDoclist;" (assignment_expression "p->iOff = iVar2 + p->nDoclist" (field_expression "p->iOff" identifier -> field_identifier) = (binary_expression "iVar2 + p->nDoclist" identifier + (field_expression "p->nDoclist" identifier -> field_identifier))) ;) (expression_statement "iVar3 = rc;" (assignment_expression "iVar3 = rc" identifier = identifier) ;) })) })) })) (goto_statement "goto LAB_0014ed02;" goto statement_identifier ;) })) }))) (expression_statement "p->aNode = (char *)0x0;" (assignment_expression "p->aNode = (char *)0x0" (field_expression "p->aNode" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar3 = rc;" (assignment_expression "iVar3 = rc" identifier = identifier) ;) (labeled_statement "LAB_0014ed02:\n  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_10 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_10 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "int FUN_0014ecaf(long *param_1)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  byte *pbVar4;\n  long in_FS_OFFSET;\n  uint local_1c;\n  uint local_18;\n  int local_14;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  local_1c = 0;\n  local_18 = 0;\n  local_14 = 0;\n  if (((int)param_1[4] == 0) || (param_1[2] == 0)) {\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\n      if ((int)param_1[4] != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }\n  }\n  else {\n    param_1[2] = param_1[2] + 1;\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\nLAB_0014ed32:\n      bVar1 = *(byte *)((long)iVar3 + *param_1);\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }\n      else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }\n      *(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;\nLAB_0014ed52:\n      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);\n      bVar1 = *pbVar4;\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }\n      else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }\n      iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n      *(int *)((long)param_1 + 0xc) = iVar3;\n      iVar2 = 0x10b;\n      if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))\n      {\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }\n  }\n  *param_1 = 0;\n  iVar2 = local_14;\nLAB_0014ed02:\n  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return iVar2;\n}\n\n" (function_definition "int FUN_0014ecaf(long *param_1)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  byte *pbVar4;\n  long in_FS_OFFSET;\n  uint local_1c;\n  uint local_18;\n  int local_14;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  local_1c = 0;\n  local_18 = 0;\n  local_14 = 0;\n  if (((int)param_1[4] == 0) || (param_1[2] == 0)) {\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\n      if ((int)param_1[4] != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }\n  }\n  else {\n    param_1[2] = param_1[2] + 1;\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\nLAB_0014ed32:\n      bVar1 = *(byte *)((long)iVar3 + *param_1);\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }\n      else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }\n      *(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;\nLAB_0014ed52:\n      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);\n      bVar1 = *pbVar4;\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }\n      else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }\n      iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n      *(int *)((long)param_1 + 0xc) = iVar3;\n      iVar2 = 0x10b;\n      if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))\n      {\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }\n  }\n  *param_1 = 0;\n  iVar2 = local_14;\nLAB_0014ed02:\n  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_0014ecaf(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  byte *pbVar4;\n  long in_FS_OFFSET;\n  uint local_1c;\n  uint local_18;\n  int local_14;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  local_1c = 0;\n  local_18 = 0;\n  local_14 = 0;\n  if (((int)param_1[4] == 0) || (param_1[2] == 0)) {\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\n      if ((int)param_1[4] != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }\n  }\n  else {\n    param_1[2] = param_1[2] + 1;\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\nLAB_0014ed32:\n      bVar1 = *(byte *)((long)iVar3 + *param_1);\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }\n      else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }\n      *(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;\nLAB_0014ed52:\n      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);\n      bVar1 = *pbVar4;\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }\n      else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }\n      iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n      *(int *)((long)param_1 + 0xc) = iVar3;\n      iVar2 = 0x10b;\n      if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))\n      {\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }\n  }\n  *param_1 = 0;\n  iVar2 = local_14;\nLAB_0014ed02:\n  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return iVar2;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "uint local_1c;" type_identifier identifier ;) (declaration "uint local_18;" type_identifier identifier ;) (declaration "int local_14;" primitive_type identifier ;) (declaration "long local_10;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_10 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_10 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_1c = 0;" (assignment_expression "local_1c = 0" identifier = number_literal) ;) (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" identifier = number_literal) ;) (expression_statement "local_14 = 0;" (assignment_expression "local_14 = 0" identifier = number_literal) ;) (if_statement "if (((int)param_1[4] == 0) || (param_1[2] == 0)) {\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\n      if ((int)param_1[4] != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }\n  }\n  else {\n    param_1[2] = param_1[2] + 1;\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\nLAB_0014ed32:\n      bVar1 = *(byte *)((long)iVar3 + *param_1);\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }\n      else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }\n      *(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;\nLAB_0014ed52:\n      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);\n      bVar1 = *pbVar4;\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }\n      else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }\n      iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n      *(int *)((long)param_1 + 0xc) = iVar3;\n      iVar2 = 0x10b;\n      if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))\n      {\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }\n  }" if (parenthesized_expression "(((int)param_1[4] == 0) || (param_1[2] == 0))" ( (binary_expression "((int)param_1[4] == 0) || (param_1[2] == 0)" (parenthesized_expression "((int)param_1[4] == 0)" ( (binary_expression "(int)param_1[4] == 0" (cast_expression "(int)param_1[4]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) == number_literal) )) || (parenthesized_expression "(param_1[2] == 0)" ( (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\n      if ((int)param_1[4] != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }\n  }" { (expression_statement "iVar3 = *(int *)((long)param_1 + 0xc);" (assignment_expression "iVar3 = *(int *)((long)param_1 + 0xc)" identifier = (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (if_statement "if (iVar3 < (int)param_1[1]) {\n      if ((int)param_1[4] != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }" if (parenthesized_expression "(iVar3 < (int)param_1[1])" ( (binary_expression "iVar3 < (int)param_1[1]" identifier < (cast_expression "(int)param_1[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n      if ((int)param_1[4] != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }" { (if_statement "if ((int)param_1[4] != 0) goto LAB_0014ed32;" if (parenthesized_expression "((int)param_1[4] != 0)" ( (binary_expression "(int)param_1[4] != 0" (cast_expression "(int)param_1[4]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) != number_literal) )) (goto_statement "goto LAB_0014ed32;" goto statement_identifier ;)) (goto_statement "goto LAB_0014ed52;" goto statement_identifier ;) })) }) (else_clause "else {\n    param_1[2] = param_1[2] + 1;\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\nLAB_0014ed32:\n      bVar1 = *(byte *)((long)iVar3 + *param_1);\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }\n      else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }\n      *(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;\nLAB_0014ed52:\n      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);\n      bVar1 = *pbVar4;\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }\n      else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }\n      iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n      *(int *)((long)param_1 + 0xc) = iVar3;\n      iVar2 = 0x10b;\n      if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))\n      {\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }\n  }" else (compound_statement "{\n    param_1[2] = param_1[2] + 1;\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\nLAB_0014ed32:\n      bVar1 = *(byte *)((long)iVar3 + *param_1);\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }\n      else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }\n      *(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;\nLAB_0014ed52:\n      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);\n      bVar1 = *pbVar4;\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }\n      else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }\n      iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n      *(int *)((long)param_1 + 0xc) = iVar3;\n      iVar2 = 0x10b;\n      if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))\n      {\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }\n  }" { (expression_statement "param_1[2] = param_1[2] + 1;" (assignment_expression "param_1[2] = param_1[2] + 1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "param_1[2] + 1" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "iVar3 = *(int *)((long)param_1 + 0xc);" (assignment_expression "iVar3 = *(int *)((long)param_1 + 0xc)" identifier = (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (if_statement "if (iVar3 < (int)param_1[1]) {\nLAB_0014ed32:\n      bVar1 = *(byte *)((long)iVar3 + *param_1);\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }\n      else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }\n      *(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;\nLAB_0014ed52:\n      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);\n      bVar1 = *pbVar4;\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }\n      else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }\n      iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n      *(int *)((long)param_1 + 0xc) = iVar3;\n      iVar2 = 0x10b;\n      if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))\n      {\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }" if (parenthesized_expression "(iVar3 < (int)param_1[1])" ( (binary_expression "iVar3 < (int)param_1[1]" identifier < (cast_expression "(int)param_1[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\nLAB_0014ed32:\n      bVar1 = *(byte *)((long)iVar3 + *param_1);\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }\n      else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }\n      *(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;\nLAB_0014ed52:\n      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);\n      bVar1 = *pbVar4;\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }\n      else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }\n      iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n      *(int *)((long)param_1 + 0xc) = iVar3;\n      iVar2 = 0x10b;\n      if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))\n      {\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }" { (labeled_statement "LAB_0014ed32:\n      bVar1 = *(byte *)((long)iVar3 + *param_1);" statement_identifier : (expression_statement "bVar1 = *(byte *)((long)iVar3 + *param_1);" (assignment_expression "bVar1 = *(byte *)((long)iVar3 + *param_1)" identifier = (pointer_expression "*(byte *)((long)iVar3 + *param_1)" * (cast_expression "(byte *)((long)iVar3 + *param_1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)iVar3 + *param_1)" ( (binary_expression "(long)iVar3 + *param_1" (cast_expression "(long)iVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*param_1" * identifier)) ))))) ;)) (if_statement "if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }\n      else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }" if (parenthesized_expression "((char)bVar1 < '\0')" ( (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }" { (expression_statement "iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);" (assignment_expression "iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c)" identifier = (call_expression "FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c)" identifier (argument_list "((byte *)((long)iVar3 + *param_1),&local_1c)" ( (cast_expression "(byte *)((long)iVar3 + *param_1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)iVar3 + *param_1)" ( (binary_expression "(long)iVar3 + *param_1" (cast_expression "(long)iVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*param_1" * identifier)) ))) , (pointer_expression "&local_1c" & identifier) )))) ;) }) (else_clause "else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }" else (compound_statement "{\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }" { (expression_statement "local_1c = (uint)bVar1;" (assignment_expression "local_1c = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) }))) (expression_statement "*(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;" (assignment_expression "*(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3" (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (binary_expression "*(int *)((long)param_1 + 0xc) + iVar3" (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + identifier)) ;) (labeled_statement "LAB_0014ed52:\n      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);" statement_identifier : (expression_statement "pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);" (assignment_expression "pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1)" identifier = (cast_expression "(byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)*(int *)((long)param_1 + 0xc) + *param_1)" ( (binary_expression "(long)*(int *)((long)param_1 + 0xc) + *param_1" (cast_expression "(long)*(int *)((long)param_1 + 0xc)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) + (pointer_expression "*param_1" * identifier)) )))) ;)) (expression_statement "bVar1 = *pbVar4;" (assignment_expression "bVar1 = *pbVar4" identifier = (pointer_expression "*pbVar4" * identifier)) ;) (if_statement "if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }\n      else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }" if (parenthesized_expression "((char)bVar1 < '\0')" ( (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }" { (expression_statement "iVar3 = FUN_00131c9f(pbVar4,&local_18);" (assignment_expression "iVar3 = FUN_00131c9f(pbVar4,&local_18)" identifier = (call_expression "FUN_00131c9f(pbVar4,&local_18)" identifier (argument_list "(pbVar4,&local_18)" ( identifier , (pointer_expression "&local_18" & identifier) )))) ;) }) (else_clause "else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }" else (compound_statement "{\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }" { (expression_statement "local_18 = (uint)bVar1;" (assignment_expression "local_18 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) }))) (expression_statement "iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);" (assignment_expression "iVar3 = iVar3 + *(int *)((long)param_1 + 0xc)" identifier = (binary_expression "iVar3 + *(int *)((long)param_1 + 0xc)" identifier + (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))))) ;) (expression_statement "*(int *)((long)param_1 + 0xc) = iVar3;" (assignment_expression "*(int *)((long)param_1 + 0xc) = iVar3" (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = 0x10b;" (assignment_expression "iVar2 = 0x10b" identifier = number_literal) ;) (if_statement "if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))\n      {\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }" if (parenthesized_expression "((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))" ( (binary_expression "(((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0)" (parenthesized_expression "(((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3))" ( (binary_expression "((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)" (parenthesized_expression "((int)local_1c <= iVar3)" ( (binary_expression "(int)local_1c <= iVar3" (cast_expression "(int)local_1c" ( (type_descriptor "int" primitive_type) ) identifier) <= identifier) )) && (parenthesized_expression "(iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)" ( (comma_expression "iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3" (assignment_expression "iVar2 = 0x10b" identifier = number_literal) , (binary_expression "(int)local_18 <= (int)param_1[1] - iVar3" (cast_expression "(int)local_18" ( (type_descriptor "int" primitive_type) ) identifier) <= (binary_expression "(int)param_1[1] - iVar3" (cast_expression "(int)param_1[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) - identifier))) ))) )) && (parenthesized_expression "(FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0)" ( (comma_expression "FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0" (call_expression "FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14)" identifier (argument_list "(param_1 + 3,local_1c + local_18,&local_14)" ( (binary_expression "param_1 + 3" identifier + number_literal) , (binary_expression "local_1c + local_18" identifier + identifier) , (pointer_expression "&local_14" & identifier) ))) , (comma_expression "iVar2 = local_14, local_14 == 0" (assignment_expression "iVar2 = local_14" identifier = identifier) , (binary_expression "local_14 == 0" identifier == number_literal))) ))) )) (compound_statement "{\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }" { (expression_statement "memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);" (call_expression "memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18)" identifier (argument_list "((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18)" ( (cast_expression "(void *)((long)(int)local_1c + param_1[3])" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)(int)local_1c + param_1[3])" ( (binary_expression "(long)(int)local_1c + param_1[3]" (cast_expression "(long)(int)local_1c" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)local_1c" ( (type_descriptor "int" primitive_type) ) identifier)) + (subscript_expression "param_1[3]" identifier [ number_literal ])) ))) , (cast_expression "(void *)((long)*(int *)((long)param_1 + 0xc) + *param_1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)*(int *)((long)param_1 + 0xc) + *param_1)" ( (binary_expression "(long)*(int *)((long)param_1 + 0xc) + *param_1" (cast_expression "(long)*(int *)((long)param_1 + 0xc)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) + (pointer_expression "*param_1" * identifier)) ))) , (cast_expression "(long)(int)local_18" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)local_18" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) (expression_statement "*(uint *)(param_1 + 4) = local_18 + local_1c;" (assignment_expression "*(uint *)(param_1 + 4) = local_18 + local_1c" (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (binary_expression "local_18 + local_1c" identifier + identifier)) ;) (expression_statement "iVar3 = local_18 + *(int *)((long)param_1 + 0xc);" (assignment_expression "iVar3 = local_18 + *(int *)((long)param_1 + 0xc)" identifier = (binary_expression "local_18 + *(int *)((long)param_1 + 0xc)" identifier + (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))))) ;) (expression_statement "*(int *)((long)param_1 + 0xc) = iVar3;" (assignment_expression "*(int *)((long)param_1 + 0xc) = iVar3" (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = local_14;" (assignment_expression "iVar2 = local_14" identifier = identifier) ;) (if_statement "if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }" if (parenthesized_expression "(param_1[2] == 0)" ( (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }" { (expression_statement "pbVar4 = (byte *)((long)iVar3 + *param_1);" (assignment_expression "pbVar4 = (byte *)((long)iVar3 + *param_1)" identifier = (cast_expression "(byte *)((long)iVar3 + *param_1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)iVar3 + *param_1)" ( (binary_expression "(long)iVar3 + *param_1" (cast_expression "(long)iVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*param_1" * identifier)) )))) ;) (expression_statement "bVar1 = *pbVar4;" (assignment_expression "bVar1 = *pbVar4" identifier = (pointer_expression "*pbVar4" * identifier)) ;) (if_statement "if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }" if (parenthesized_expression "((char)bVar1 < '\0')" ( (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }" { (expression_statement "iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);" (assignment_expression "iVar3 = FUN_00131c9f(pbVar4,param_1 + 6)" identifier = (call_expression "FUN_00131c9f(pbVar4,param_1 + 6)" identifier (argument_list "(pbVar4,param_1 + 6)" ( identifier , (binary_expression "param_1 + 6" identifier + number_literal) )))) ;) }) (else_clause "else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }" else (compound_statement "{\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }" { (expression_statement "*(uint *)(param_1 + 6) = (uint)bVar1;" (assignment_expression "*(uint *)(param_1 + 6) = (uint)bVar1" (pointer_expression "*(uint *)(param_1 + 6)" * (cast_expression "(uint *)(param_1 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) )))) = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) }))) (expression_statement "iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);" (assignment_expression "iVar3 = iVar3 + *(int *)((long)param_1 + 0xc)" identifier = (binary_expression "iVar3 + *(int *)((long)param_1 + 0xc)" identifier + (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))))) ;) (expression_statement "*(int *)((long)param_1 + 0xc) = iVar3;" (assignment_expression "*(int *)((long)param_1 + 0xc) = iVar3" (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = 0x10b;" (assignment_expression "iVar2 = 0x10b" identifier = number_literal) ;) (if_statement "if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }" if (parenthesized_expression "((int)param_1[6] <= (int)param_1[1] - iVar3)" ( (binary_expression "(int)param_1[6] <= (int)param_1[1] - iVar3" (cast_expression "(int)param_1[6]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[6]" identifier [ number_literal ])) <= (binary_expression "(int)param_1[1] - iVar3" (cast_expression "(int)param_1[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) - identifier)) )) (compound_statement "{\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }" { (expression_statement "param_1[5] = (long)iVar3 + *param_1;" (assignment_expression "param_1[5] = (long)iVar3 + *param_1" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (binary_expression "(long)iVar3 + *param_1" (cast_expression "(long)iVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];" (assignment_expression "*(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6]" (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (binary_expression "iVar3 + (int)param_1[6]" identifier + (cast_expression "(int)param_1[6]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[6]" identifier [ number_literal ])))) ;) (expression_statement "iVar2 = local_14;" (assignment_expression "iVar2 = local_14" identifier = identifier) ;) })) })) })) (goto_statement "goto LAB_0014ed02;" goto statement_identifier ;) })) }))) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "iVar2 = local_14;" (assignment_expression "iVar2 = local_14" identifier = identifier) ;) (labeled_statement "LAB_0014ed02:\n  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_10 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_10 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" { (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) == LIT) )) || (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) != LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (pointer_expression * IDENT)) ))))) ;)) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (pointer_expression * IDENT)) ))) , (pointer_expression & IDENT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) + IDENT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) + (pointer_expression * IDENT)) )))) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) - IDENT))) ))) )) && (parenthesized_expression ( (comma_expression (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + IDENT) , (pointer_expression & IDENT) ))) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT == LIT))) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (cast_expression ( (type_descriptor TYPE) ) IDENT)) + (subscript_expression IDENT [ LIT ])) ))) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) + (pointer_expression * IDENT)) ))) , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (pointer_expression * IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) <= (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) - IDENT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (pointer_expression * 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) )))) = (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) })) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_0014ecaf(long *param_1)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  byte *pbVar4;\n  long in_FS_OFFSET;\n  uint local_1c;\n  uint local_18;\n  int local_14;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  local_1c = 0;\n  local_18 = 0;\n  local_14 = 0;\n  if (((int)param_1[4] == 0) || (param_1[2] == 0)) {\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\n      if ((int)param_1[4] != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }\n  }\n  else {\n    param_1[2] = param_1[2] + 1;\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\nLAB_0014ed32:\n      bVar1 = *(byte *)((long)iVar3 + *param_1);\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }\n      else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }\n      *(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;\nLAB_0014ed52:\n      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);\n      bVar1 = *pbVar4;\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }\n      else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }\n      iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n      *(int *)((long)param_1 + 0xc) = iVar3;\n      iVar2 = 0x10b;\n      if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))\n      {\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }\n  }\n  *param_1 = 0;\n  iVar2 = local_14;\nLAB_0014ed02:\n  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return iVar2;\n}" (primitive_type "int") (function_declarator "FUN_0014ecaf(long *param_1)" (identifier "FUN_0014ecaf") (parameter_list "(long *param_1)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  byte *pbVar4;\n  long in_FS_OFFSET;\n  uint local_1c;\n  uint local_18;\n  int local_14;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  local_1c = 0;\n  local_18 = 0;\n  local_14 = 0;\n  if (((int)param_1[4] == 0) || (param_1[2] == 0)) {\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\n      if ((int)param_1[4] != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }\n  }\n  else {\n    param_1[2] = param_1[2] + 1;\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\nLAB_0014ed32:\n      bVar1 = *(byte *)((long)iVar3 + *param_1);\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }\n      else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }\n      *(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;\nLAB_0014ed52:\n      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);\n      bVar1 = *pbVar4;\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }\n      else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }\n      iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n      *(int *)((long)param_1 + 0xc) = iVar3;\n      iVar2 = 0x10b;\n      if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))\n      {\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }\n  }\n  *param_1 = 0;\n  iVar2 = local_14;\nLAB_0014ed02:\n  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return iVar2;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "uint local_1c;" (type_identifier "uint") (identifier "local_1c") (; ";")) (declaration "uint local_18;" (type_identifier "uint") (identifier "local_18") (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (declaration "long local_10;" (sized_type_specifier "long" (long "long")) (identifier "local_10") (; ";")) (expression_statement "local_10 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_10 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_10") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "local_1c = 0;" (assignment_expression "local_1c = 0" (identifier "local_1c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" (identifier "local_18") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_14 = 0;" (assignment_expression "local_14 = 0" (identifier "local_14") (= "=") (number_literal "0")) (; ";")) (if_statement "if (((int)param_1[4] == 0) || (param_1[2] == 0)) {\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\n      if ((int)param_1[4] != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }\n  }\n  else {\n    param_1[2] = param_1[2] + 1;\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\nLAB_0014ed32:\n      bVar1 = *(byte *)((long)iVar3 + *param_1);\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }\n      else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }\n      *(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;\nLAB_0014ed52:\n      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);\n      bVar1 = *pbVar4;\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }\n      else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }\n      iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n      *(int *)((long)param_1 + 0xc) = iVar3;\n      iVar2 = 0x10b;\n      if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))\n      {\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }\n  }" (if "if") (parenthesized_expression "(((int)param_1[4] == 0) || (param_1[2] == 0))" (( "(") (binary_expression "((int)param_1[4] == 0) || (param_1[2] == 0)" (parenthesized_expression "((int)param_1[4] == 0)" (( "(") (binary_expression "(int)param_1[4] == 0" (cast_expression "(int)param_1[4]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_1[2] == 0)" (( "(") (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\n      if ((int)param_1[4] != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }\n  }" ({ "{") (expression_statement "iVar3 = *(int *)((long)param_1 + 0xc);" (assignment_expression "iVar3 = *(int *)((long)param_1 + 0xc)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)((long)param_1 + 0xc)" (* "*") (cast_expression "(int *)((long)param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0xc)" (( "(") (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (iVar3 < (int)param_1[1]) {\n      if ((int)param_1[4] != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }" (if "if") (parenthesized_expression "(iVar3 < (int)param_1[1])" (( "(") (binary_expression "iVar3 < (int)param_1[1]" (identifier "iVar3") (< "<") (cast_expression "(int)param_1[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n      if ((int)param_1[4] != 0) goto LAB_0014ed32;\n      goto LAB_0014ed52;\n    }" ({ "{") (if_statement "if ((int)param_1[4] != 0) goto LAB_0014ed32;" (if "if") (parenthesized_expression "((int)param_1[4] != 0)" (( "(") (binary_expression "(int)param_1[4] != 0" (cast_expression "(int)param_1[4]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0014ed32;" (goto "goto") (statement_identifier "LAB_0014ed32") (; ";"))) (goto_statement "goto LAB_0014ed52;" (goto "goto") (statement_identifier "LAB_0014ed52") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    param_1[2] = param_1[2] + 1;\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\nLAB_0014ed32:\n      bVar1 = *(byte *)((long)iVar3 + *param_1);\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }\n      else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }\n      *(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;\nLAB_0014ed52:\n      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);\n      bVar1 = *pbVar4;\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }\n      else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }\n      iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n      *(int *)((long)param_1 + 0xc) = iVar3;\n      iVar2 = 0x10b;\n      if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))\n      {\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }\n  }" (else "else") (compound_statement "{\n    param_1[2] = param_1[2] + 1;\n    iVar3 = *(int *)((long)param_1 + 0xc);\n    if (iVar3 < (int)param_1[1]) {\nLAB_0014ed32:\n      bVar1 = *(byte *)((long)iVar3 + *param_1);\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }\n      else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }\n      *(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;\nLAB_0014ed52:\n      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);\n      bVar1 = *pbVar4;\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }\n      else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }\n      iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n      *(int *)((long)param_1 + 0xc) = iVar3;\n      iVar2 = 0x10b;\n      if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))\n      {\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }\n  }" ({ "{") (expression_statement "param_1[2] = param_1[2] + 1;" (assignment_expression "param_1[2] = param_1[2] + 1" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "param_1[2] + 1" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar3 = *(int *)((long)param_1 + 0xc);" (assignment_expression "iVar3 = *(int *)((long)param_1 + 0xc)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)((long)param_1 + 0xc)" (* "*") (cast_expression "(int *)((long)param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0xc)" (( "(") (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (iVar3 < (int)param_1[1]) {\nLAB_0014ed32:\n      bVar1 = *(byte *)((long)iVar3 + *param_1);\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }\n      else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }\n      *(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;\nLAB_0014ed52:\n      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);\n      bVar1 = *pbVar4;\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }\n      else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }\n      iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n      *(int *)((long)param_1 + 0xc) = iVar3;\n      iVar2 = 0x10b;\n      if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))\n      {\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }" (if "if") (parenthesized_expression "(iVar3 < (int)param_1[1])" (( "(") (binary_expression "iVar3 < (int)param_1[1]" (identifier "iVar3") (< "<") (cast_expression "(int)param_1[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\nLAB_0014ed32:\n      bVar1 = *(byte *)((long)iVar3 + *param_1);\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }\n      else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }\n      *(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;\nLAB_0014ed52:\n      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);\n      bVar1 = *pbVar4;\n      if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }\n      else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }\n      iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n      *(int *)((long)param_1 + 0xc) = iVar3;\n      iVar2 = 0x10b;\n      if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))\n      {\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }\n      goto LAB_0014ed02;\n    }" ({ "{") (labeled_statement "LAB_0014ed32:\n      bVar1 = *(byte *)((long)iVar3 + *param_1);" (statement_identifier "LAB_0014ed32") (: ":") (expression_statement "bVar1 = *(byte *)((long)iVar3 + *param_1);" (assignment_expression "bVar1 = *(byte *)((long)iVar3 + *param_1)" (identifier "bVar1") (= "=") (pointer_expression "*(byte *)((long)iVar3 + *param_1)" (* "*") (cast_expression "(byte *)((long)iVar3 + *param_1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)iVar3 + *param_1)" (( "(") (binary_expression "(long)iVar3 + *param_1" (cast_expression "(long)iVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar3")) (+ "+") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))))) (; ";"))) (if_statement "if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }\n      else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }" (if "if") (parenthesized_expression "((char)bVar1 < '\0')" (( "(") (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "bVar1")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);\n      }" ({ "{") (expression_statement "iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);" (assignment_expression "iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c)" (identifier "iVar3") (= "=") (call_expression "FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c)" (identifier "FUN_00131c9f") (argument_list "((byte *)((long)iVar3 + *param_1),&local_1c)" (( "(") (cast_expression "(byte *)((long)iVar3 + *param_1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)iVar3 + *param_1)" (( "(") (binary_expression "(long)iVar3 + *param_1" (cast_expression "(long)iVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar3")) (+ "+") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) (, ",") (pointer_expression "&local_1c" (& "&") (identifier "local_1c")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }" (else "else") (compound_statement "{\n        local_1c = (uint)bVar1;\n        iVar3 = 1;\n      }" ({ "{") (expression_statement "local_1c = (uint)bVar1;" (assignment_expression "local_1c = (uint)bVar1" (identifier "local_1c") (= "=") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1"))) (; ";")) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" (identifier "iVar3") (= "=") (number_literal "1")) (; ";")) (} "}")))) (expression_statement "*(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;" (assignment_expression "*(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3" (pointer_expression "*(int *)((long)param_1 + 0xc)" (* "*") (cast_expression "(int *)((long)param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0xc)" (( "(") (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "*(int *)((long)param_1 + 0xc) + iVar3" (pointer_expression "*(int *)((long)param_1 + 0xc)" (* "*") (cast_expression "(int *)((long)param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0xc)" (( "(") (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (identifier "iVar3"))) (; ";")) (labeled_statement "LAB_0014ed52:\n      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);" (statement_identifier "LAB_0014ed52") (: ":") (expression_statement "pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);" (assignment_expression "pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1)" (identifier "pbVar4") (= "=") (cast_expression "(byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)*(int *)((long)param_1 + 0xc) + *param_1)" (( "(") (binary_expression "(long)*(int *)((long)param_1 + 0xc) + *param_1" (cast_expression "(long)*(int *)((long)param_1 + 0xc)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "*(int *)((long)param_1 + 0xc)" (* "*") (cast_expression "(int *)((long)param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0xc)" (( "(") (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")"))))) (+ "+") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")))) (; ";"))) (expression_statement "bVar1 = *pbVar4;" (assignment_expression "bVar1 = *pbVar4" (identifier "bVar1") (= "=") (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4"))) (; ";")) (if_statement "if ((char)bVar1 < '\0') {\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }\n      else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }" (if "if") (parenthesized_expression "((char)bVar1 < '\0')" (( "(") (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "bVar1")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        iVar3 = FUN_00131c9f(pbVar4,&local_18);\n      }" ({ "{") (expression_statement "iVar3 = FUN_00131c9f(pbVar4,&local_18);" (assignment_expression "iVar3 = FUN_00131c9f(pbVar4,&local_18)" (identifier "iVar3") (= "=") (call_expression "FUN_00131c9f(pbVar4,&local_18)" (identifier "FUN_00131c9f") (argument_list "(pbVar4,&local_18)" (( "(") (identifier "pbVar4") (, ",") (pointer_expression "&local_18" (& "&") (identifier "local_18")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }" (else "else") (compound_statement "{\n        local_18 = (uint)bVar1;\n        iVar3 = 1;\n      }" ({ "{") (expression_statement "local_18 = (uint)bVar1;" (assignment_expression "local_18 = (uint)bVar1" (identifier "local_18") (= "=") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1"))) (; ";")) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" (identifier "iVar3") (= "=") (number_literal "1")) (; ";")) (} "}")))) (expression_statement "iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);" (assignment_expression "iVar3 = iVar3 + *(int *)((long)param_1 + 0xc)" (identifier "iVar3") (= "=") (binary_expression "iVar3 + *(int *)((long)param_1 + 0xc)" (identifier "iVar3") (+ "+") (pointer_expression "*(int *)((long)param_1 + 0xc)" (* "*") (cast_expression "(int *)((long)param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0xc)" (( "(") (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")")))))) (; ";")) (expression_statement "*(int *)((long)param_1 + 0xc) = iVar3;" (assignment_expression "*(int *)((long)param_1 + 0xc) = iVar3" (pointer_expression "*(int *)((long)param_1 + 0xc)" (* "*") (cast_expression "(int *)((long)param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0xc)" (( "(") (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "iVar2 = 0x10b;" (assignment_expression "iVar2 = 0x10b" (identifier "iVar2") (= "=") (number_literal "0x10b")) (; ";")) (if_statement "if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))\n      {\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }" (if "if") (parenthesized_expression "((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))" (( "(") (binary_expression "(((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&\n         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0)" (parenthesized_expression "(((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3))" (( "(") (binary_expression "((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)" (parenthesized_expression "((int)local_1c <= iVar3)" (( "(") (binary_expression "(int)local_1c <= iVar3" (cast_expression "(int)local_1c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_1c")) (<= "<=") (identifier "iVar3")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)" (( "(") (comma_expression "iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3" (assignment_expression "iVar2 = 0x10b" (identifier "iVar2") (= "=") (number_literal "0x10b")) (, ",") (binary_expression "(int)local_18 <= (int)param_1[1] - iVar3" (cast_expression "(int)local_18" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_18")) (<= "<=") (binary_expression "(int)param_1[1] - iVar3" (cast_expression "(int)param_1[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (- "-") (identifier "iVar3")))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0)" (( "(") (comma_expression "FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0" (call_expression "FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14)" (identifier "FUN_0014ec75") (argument_list "(param_1 + 3,local_1c + local_18,&local_14)" (( "(") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) (, ",") (binary_expression "local_1c + local_18" (identifier "local_1c") (+ "+") (identifier "local_18")) (, ",") (pointer_expression "&local_14" (& "&") (identifier "local_14")) () ")"))) (, ",") (comma_expression "iVar2 = local_14, local_14 == 0" (assignment_expression "iVar2 = local_14" (identifier "iVar2") (= "=") (identifier "local_14")) (, ",") (binary_expression "local_14 == 0" (identifier "local_14") (== "==") (number_literal "0")))) () ")"))) () ")")) (compound_statement "{\n        memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);\n        *(uint *)(param_1 + 4) = local_18 + local_1c;\n        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);\n        *(int *)((long)param_1 + 0xc) = iVar3;\n        iVar2 = local_14;\n        if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }\n      }" ({ "{") (expression_statement "memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);" (call_expression "memcpy((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18)" (identifier "memcpy") (argument_list "((void *)((long)(int)local_1c + param_1[3]),\n               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18)" (( "(") (cast_expression "(void *)((long)(int)local_1c + param_1[3])" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)(int)local_1c + param_1[3])" (( "(") (binary_expression "(long)(int)local_1c + param_1[3]" (cast_expression "(long)(int)local_1c" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (cast_expression "(int)local_1c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_1c"))) (+ "+") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) () ")"))) (, ",") (cast_expression "(void *)((long)*(int *)((long)param_1 + 0xc) + *param_1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)*(int *)((long)param_1 + 0xc) + *param_1)" (( "(") (binary_expression "(long)*(int *)((long)param_1 + 0xc) + *param_1" (cast_expression "(long)*(int *)((long)param_1 + 0xc)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "*(int *)((long)param_1 + 0xc)" (* "*") (cast_expression "(int *)((long)param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0xc)" (( "(") (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")"))))) (+ "+") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) (, ",") (cast_expression "(long)(int)local_18" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (cast_expression "(int)local_18" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_18"))) () ")"))) (; ";")) (expression_statement "*(uint *)(param_1 + 4) = local_18 + local_1c;" (assignment_expression "*(uint *)(param_1 + 4) = local_18 + local_1c" (pointer_expression "*(uint *)(param_1 + 4)" (* "*") (cast_expression "(uint *)(param_1 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "local_18 + local_1c" (identifier "local_18") (+ "+") (identifier "local_1c"))) (; ";")) (expression_statement "iVar3 = local_18 + *(int *)((long)param_1 + 0xc);" (assignment_expression "iVar3 = local_18 + *(int *)((long)param_1 + 0xc)" (identifier "iVar3") (= "=") (binary_expression "local_18 + *(int *)((long)param_1 + 0xc)" (identifier "local_18") (+ "+") (pointer_expression "*(int *)((long)param_1 + 0xc)" (* "*") (cast_expression "(int *)((long)param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0xc)" (( "(") (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")")))))) (; ";")) (expression_statement "*(int *)((long)param_1 + 0xc) = iVar3;" (assignment_expression "*(int *)((long)param_1 + 0xc) = iVar3" (pointer_expression "*(int *)((long)param_1 + 0xc)" (* "*") (cast_expression "(int *)((long)param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0xc)" (( "(") (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "iVar2 = local_14;" (assignment_expression "iVar2 = local_14" (identifier "iVar2") (= "=") (identifier "local_14")) (; ";")) (if_statement "if (param_1[2] == 0) {\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }" (if "if") (parenthesized_expression "(param_1[2] == 0)" (( "(") (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          pbVar4 = (byte *)((long)iVar3 + *param_1);\n          bVar1 = *pbVar4;\n          if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }\n          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);\n          *(int *)((long)param_1 + 0xc) = iVar3;\n          iVar2 = 0x10b;\n          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }\n        }" ({ "{") (expression_statement "pbVar4 = (byte *)((long)iVar3 + *param_1);" (assignment_expression "pbVar4 = (byte *)((long)iVar3 + *param_1)" (identifier "pbVar4") (= "=") (cast_expression "(byte *)((long)iVar3 + *param_1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)iVar3 + *param_1)" (( "(") (binary_expression "(long)iVar3 + *param_1" (cast_expression "(long)iVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar3")) (+ "+") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")))) (; ";")) (expression_statement "bVar1 = *pbVar4;" (assignment_expression "bVar1 = *pbVar4" (identifier "bVar1") (= "=") (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4"))) (; ";")) (if_statement "if ((char)bVar1 < '\0') {\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }\n          else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }" (if "if") (parenthesized_expression "((char)bVar1 < '\0')" (( "(") (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "bVar1")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);\n          }" ({ "{") (expression_statement "iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);" (assignment_expression "iVar3 = FUN_00131c9f(pbVar4,param_1 + 6)" (identifier "iVar3") (= "=") (call_expression "FUN_00131c9f(pbVar4,param_1 + 6)" (identifier "FUN_00131c9f") (argument_list "(pbVar4,param_1 + 6)" (( "(") (identifier "pbVar4") (, ",") (binary_expression "param_1 + 6" (identifier "param_1") (+ "+") (number_literal "6")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }" (else "else") (compound_statement "{\n            *(uint *)(param_1 + 6) = (uint)bVar1;\n            iVar3 = 1;\n          }" ({ "{") (expression_statement "*(uint *)(param_1 + 6) = (uint)bVar1;" (assignment_expression "*(uint *)(param_1 + 6) = (uint)bVar1" (pointer_expression "*(uint *)(param_1 + 6)" (* "*") (cast_expression "(uint *)(param_1 + 6)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 6)" (( "(") (binary_expression "param_1 + 6" (identifier "param_1") (+ "+") (number_literal "6")) () ")")))) (= "=") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1"))) (; ";")) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" (identifier "iVar3") (= "=") (number_literal "1")) (; ";")) (} "}")))) (expression_statement "iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);" (assignment_expression "iVar3 = iVar3 + *(int *)((long)param_1 + 0xc)" (identifier "iVar3") (= "=") (binary_expression "iVar3 + *(int *)((long)param_1 + 0xc)" (identifier "iVar3") (+ "+") (pointer_expression "*(int *)((long)param_1 + 0xc)" (* "*") (cast_expression "(int *)((long)param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0xc)" (( "(") (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")")))))) (; ";")) (expression_statement "*(int *)((long)param_1 + 0xc) = iVar3;" (assignment_expression "*(int *)((long)param_1 + 0xc) = iVar3" (pointer_expression "*(int *)((long)param_1 + 0xc)" (* "*") (cast_expression "(int *)((long)param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0xc)" (( "(") (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "iVar2 = 0x10b;" (assignment_expression "iVar2 = 0x10b" (identifier "iVar2") (= "=") (number_literal "0x10b")) (; ";")) (if_statement "if ((int)param_1[6] <= (int)param_1[1] - iVar3) {\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }" (if "if") (parenthesized_expression "((int)param_1[6] <= (int)param_1[1] - iVar3)" (( "(") (binary_expression "(int)param_1[6] <= (int)param_1[1] - iVar3" (cast_expression "(int)param_1[6]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))) (<= "<=") (binary_expression "(int)param_1[1] - iVar3" (cast_expression "(int)param_1[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (- "-") (identifier "iVar3"))) () ")")) (compound_statement "{\n            param_1[5] = (long)iVar3 + *param_1;\n            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];\n            iVar2 = local_14;\n          }" ({ "{") (expression_statement "param_1[5] = (long)iVar3 + *param_1;" (assignment_expression "param_1[5] = (long)iVar3 + *param_1" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (binary_expression "(long)iVar3 + *param_1" (cast_expression "(long)iVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar3")) (+ "+") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];" (assignment_expression "*(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6]" (pointer_expression "*(int *)((long)param_1 + 0xc)" (* "*") (cast_expression "(int *)((long)param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0xc)" (( "(") (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "iVar3 + (int)param_1[6]" (identifier "iVar3") (+ "+") (cast_expression "(int)param_1[6]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))))) (; ";")) (expression_statement "iVar2 = local_14;" (assignment_expression "iVar2 = local_14" (identifier "iVar2") (= "=") (identifier "local_14")) (; ";")) (} "}"))) (} "}"))) (} "}"))) (goto_statement "goto LAB_0014ed02;" (goto "goto") (statement_identifier "LAB_0014ed02") (; ";")) (} "}"))) (} "}")))) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = local_14;" (assignment_expression "iVar2 = local_14" (identifier "iVar2") (= "=") (identifier "local_14")) (; ";")) (labeled_statement "LAB_0014ed02:\n  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" (statement_identifier "LAB_0014ed02") (: ":") (if_statement "if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" (if "if") (parenthesized_expression "(local_10 != *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_10 != *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_10") (!= "!=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" ({ "{") (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

int function_1(type_1 *p)

{
  type_2 bVar1;
  int var_2;
  int var_3;
  long var_1;
  int var_5;
  int var_6;
  int var_8;
  long var_10;
  
  var_10 = *(long *)(var_1 + 0x28);
  var_2 = (p->term).n;
  var_5 = 0;
  var_6 = 0;
  var_8 = 0;
  if ((var_2 == 0) || (p->iChild == 0)) {
    var_3 = p->iOff;
    if (var_3 < p->nNode) {
      if (var_2 != 0) goto LAB_0014ed32;
      goto LAB_0014ed52;
    }
  }
  else {
    p->iChild = p->iChild + 1;
    var_3 = p->iOff;
    if (var_3 < p->nNode) {
LAB_0014ed32:
      bVar1 = p->aNode[var_3];
      if ((char)bVar1 < '\0') {
        var_2 = var_4(p->aNode + var_3,&var_5);
      }
      else {
        var_5 = (int)bVar1;
        var_2 = 1;
      }
      p->iOff = p->iOff + var_2;
LAB_0014ed52:
      bVar1 = p->aNode[p->iOff];
      if ((char)bVar1 < '\0') {
        var_2 = var_4(p->aNode + p->iOff,&var_6);
      }
      else {
        var_6 = (int)bVar1;
        var_2 = 1;
      }
      var_2 = var_2 + p->iOff;
      p->iOff = var_2;
      var_3 = 0x10b;
      if (((var_5 <= var_2) && (var_3 = 0x10b, var_6 <= p->nNode - var_2)) &&
         (var_7(&p->term,var_5 + var_6,&var_8), var_3 = var_8, var_8 == 0)) {
        var_9((p->term).a + var_5,p->aNode + p->iOff,(long)var_6);
        (p->term).n = var_6 + var_5;
        var_2 = var_6 + p->iOff;
        p->iOff = var_2;
        var_3 = var_8;
        if (p->iChild == 0) {
          bVar1 = p->aNode[var_2];
          if ((char)bVar1 < '\0') {
            var_2 = var_4(p->aNode + var_2,&p->nDoclist);
          }
          else {
            p->nDoclist = (type_3)bVar1;
            var_2 = 1;
          }
          var_2 = var_2 + p->iOff;
          p->iOff = var_2;
          var_3 = 0x10b;
          if (p->nDoclist <= p->nNode - var_2) {
            p->aDoclist = p->aNode + var_2;
            p->iOff = var_2 + p->nDoclist;
            var_3 = var_8;
          }
        }
      }
      goto LAB_0014ed02;
    }
  }
  p->aNode = (char *)0x0;
  var_3 = var_8;
LAB_0014ed02:
  if (var_10 != *(long *)(var_1 + 0x28)) {
                    /* WARNING: Subroutine does not return */
    var_11();
  }
  return var_3;
}


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

int MASKED(long *param_1)

{
  byte bVar1;
  int iVar2;
  int iVar3;
  byte *pbVar4;
  long in_FS_OFFSET;
  uint local_1c;
  uint local_18;
  int local_14;
  long local_10;
  
  local_10 = *(long *)(in_FS_OFFSET + 0x28);
  local_1c = 0;
  local_18 = 0;
  local_14 = 0;
  if (((int)param_1[4] == 0) || (param_1[2] == 0)) {
    iVar3 = *(int *)((long)param_1 + 0xc);
    if (iVar3 < (int)param_1[1]) {
      if ((int)param_1[4] != 0) goto LAB_0014ed32;
      goto LAB_0014ed52;
    }
  }
  else {
    param_1[2] = param_1[2] + 1;
    iVar3 = *(int *)((long)param_1 + 0xc);
    if (iVar3 < (int)param_1[1]) {
LAB_0014ed32:
      bVar1 = *(byte *)((long)iVar3 + *param_1);
      if ((char)bVar1 < '\0') {
        iVar3 = FUN_00131c9f((byte *)((long)iVar3 + *param_1),&local_1c);
      }
      else {
        local_1c = (uint)bVar1;
        iVar3 = 1;
      }
      *(int *)((long)param_1 + 0xc) = *(int *)((long)param_1 + 0xc) + iVar3;
LAB_0014ed52:
      pbVar4 = (byte *)((long)*(int *)((long)param_1 + 0xc) + *param_1);
      bVar1 = *pbVar4;
      if ((char)bVar1 < '\0') {
        iVar3 = FUN_00131c9f(pbVar4,&local_18);
      }
      else {
        local_18 = (uint)bVar1;
        iVar3 = 1;
      }
      iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);
      *(int *)((long)param_1 + 0xc) = iVar3;
      iVar2 = 0x10b;
      if ((((int)local_1c <= iVar3) && (iVar2 = 0x10b, (int)local_18 <= (int)param_1[1] - iVar3)) &&
         (FUN_0014ec75(param_1 + 3,local_1c + local_18,&local_14), iVar2 = local_14, local_14 == 0))
      {
        memcpy((void *)((long)(int)local_1c + param_1[3]),
               (void *)((long)*(int *)((long)param_1 + 0xc) + *param_1),(long)(int)local_18);
        *(uint *)(param_1 + 4) = local_18 + local_1c;
        iVar3 = local_18 + *(int *)((long)param_1 + 0xc);
        *(int *)((long)param_1 + 0xc) = iVar3;
        iVar2 = local_14;
        if (param_1[2] == 0) {
          pbVar4 = (byte *)((long)iVar3 + *param_1);
          bVar1 = *pbVar4;
          if ((char)bVar1 < '\0') {
            iVar3 = FUN_00131c9f(pbVar4,param_1 + 6);
          }
          else {
            *(uint *)(param_1 + 6) = (uint)bVar1;
            iVar3 = 1;
          }
          iVar3 = iVar3 + *(int *)((long)param_1 + 0xc);
          *(int *)((long)param_1 + 0xc) = iVar3;
          iVar2 = 0x10b;
          if ((int)param_1[6] <= (int)param_1[1] - iVar3) {
            param_1[5] = (long)iVar3 + *param_1;
            *(int *)((long)param_1 + 0xc) = iVar3 + (int)param_1[6];
            iVar2 = local_14;
          }
        }
      }
      goto LAB_0014ed02;
    }
  }
  *param_1 = 0;
  iVar2 = local_14;
LAB_0014ed02:
  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return iVar2;
}

