
void handle_compress(bz_stream *strm)

{
  uint *puVar1;
  char **ppcVar2;
  ulonglong *puVar3;
  byte bVar4;
  uint uVar5;
  EState *s;
  int iVar6;
  bz_stream *pbVar7;
  Bool *pBVar8;
  uint8_t *puVar9;
  
  s = (EState *)strm->state;
LAB_001662e7:
  do {
    if (s->state == '\x01') {
      pbVar7 = s->strm;
      if (pbVar7->avail_out == 0) goto LAB_00166337;
      puVar9 = s->state_out_pos;
      if (puVar9 < s->posZ) goto LAB_00166306;
      goto LAB_00166350;
    }
  } while (s->state != '\x02');
  goto LAB_0016639a;
  while (puVar9 = s->state_out_pos, puVar9 < s->posZ) {
LAB_00166306:
    s->state_out_pos = puVar9 + 1;
    *pbVar7->next_out = *puVar9;
    puVar1 = &s->strm->avail_out;
    *puVar1 = *puVar1 - 1;
    ppcVar2 = &s->strm->next_out;
    *ppcVar2 = *ppcVar2 + 1;
    puVar3 = &s->strm->total_out;
    *puVar3 = *puVar3 + 1;
    pbVar7 = s->strm;
    if (pbVar7->avail_out == 0) goto LAB_00166337;
  }
LAB_00166350:
  if ((s->mode == '\x04') && (pbVar7->avail_in == 0)) {
    if (0xff < s->state_in_ch) {
      return;
    }
    if (s->state_in_len < 1) {
      return;
    }
  }
  s->nblock = 0;
  s->blockCRC = 0xffffffff;
  pBVar8 = s->inUse;
  do {
    *pBVar8 = '\0';
    pBVar8 = pBVar8 + 1;
  } while (s->unseqToSeq != pBVar8);
  s->blockNo = s->blockNo + 1;
  s->state = '\x02';
LAB_0016639a:
  pbVar7 = s->strm;
  if (pbVar7->avail_in == 0) {
LAB_00166421:
    if (s->mode != '\x02') {
      if (s->state_in_ch < 0x100) {
        add_pair_to_block(s);
      }
      s->state_in_ch = 0x100;
      s->state_in_len = 0;
      BZ2_compressBlock(s,(uint)(s->mode == '\x04'));
      s->state = '\x01';
      goto LAB_001662e7;
    }
    if (s->nblock < s->nblockMAX) {
      return;
    }
  }
  else {
    iVar6 = s->nblock;
    if (iVar6 < s->nblockMAX) {
      do {
        bVar4 = *pbVar7->next_in;
        uVar5 = s->state_in_ch;
        if (bVar4 == uVar5) {
          if (s->state_in_len == 0xff) {
LAB_001664bf:
            add_pair_to_block(s);
            goto LAB_001664c7;
          }
          s->state_in_len = s->state_in_len + 1;
        }
        else if (s->state_in_len == 1) {
          s->blockCRC = s->blockCRC << 8 ^ s->crc32table[(s->blockCRC >> 0x18 ^ uVar5) & 0xff];
          s->inUse[uVar5] = '\x01';
          s->block[iVar6] = (uint8_t)uVar5;
          s->nblock = s->nblock + 1;
          s->state_in_ch = (uint)bVar4;
        }
        else {
          if (uVar5 < 0x100) goto LAB_001664bf;
LAB_001664c7:
          s->state_in_ch = (uint)bVar4;
          s->state_in_len = 1;
        }
        ppcVar2 = &s->strm->next_in;
        *ppcVar2 = *ppcVar2 + 1;
        puVar1 = &s->strm->avail_in;
        *puVar1 = *puVar1 - 1;
        pbVar7 = s->strm;
        if (pbVar7->avail_in == 0) goto LAB_00166421;
        iVar6 = s->nblock;
      } while (iVar6 < s->nblockMAX);
    }
    if (s->nblock < s->nblockMAX) goto LAB_001662e7;
  }
  BZ2_compressBlock(s,0);
  s->state = '\x01';
  goto LAB_001662e7;
LAB_00166337:
  if (s->state_out_pos < s->posZ) {
    return;
  }
  goto LAB_00166350;
}



void FUN_001662d9(long *param_1)

{
  byte bVar1;
  uint uVar2;
  int iVar3;
  long lVar4;
  long *plVar5;
  undefined1 *puVar6;
  
  param_1 = (long *)*param_1;
LAB_001662e7:
  do {
    if (*(char *)((long)param_1 + 9) == '\x01') {
      lVar4 = *param_1;
      if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;
      puVar6 = (undefined1 *)param_1[0xe];
      if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;
      goto LAB_00166350;
    }
  } while (*(char *)((long)param_1 + 9) != '\x02');
  goto LAB_0016639a;
  while (puVar6 = (undefined1 *)param_1[0xe], puVar6 < (undefined1 *)param_1[0xd]) {
LAB_00166306:
    param_1[0xe] = (long)(puVar6 + 1);
    **(undefined1 **)(lVar4 + 0x10) = *puVar6;
    *(int *)(*param_1 + 0x1c) = *(int *)(*param_1 + 0x1c) + -1;
    *(long *)(*param_1 + 0x10) = *(long *)(*param_1 + 0x10) + 1;
    *(long *)(*param_1 + 0x20) = *(long *)(*param_1 + 0x20) + 1;
    lVar4 = *param_1;
    if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;
  }
LAB_00166350:
  if (((char)param_1[1] == '\x04') && (*(int *)(lVar4 + 0x18) == 0)) {
    if (0xff < *(uint *)(param_1 + 0xb)) {
      return;
    }
    if (*(int *)((long)param_1 + 0x5c) < 1) {
      return;
    }
  }
  *(undefined4 *)(param_1 + 0xc) = 0;
  *(undefined4 *)(param_1 + 0x11) = 0xffffffff;
  plVar5 = param_1 + 0x14;
  do {
    *(undefined1 *)plVar5 = 0;
    plVar5 = (long *)((long)plVar5 + 1);
  } while (param_1 + 0x34 != plVar5);
  *(int *)(param_1 + 0x12) = (int)param_1[0x12] + 1;
  *(undefined1 *)((long)param_1 + 9) = 2;
LAB_0016639a:
  lVar4 = *param_1;
  if (*(int *)(lVar4 + 0x18) == 0) {
LAB_00166421:
    if ((char)param_1[1] != '\x02') {
      if (*(uint *)(param_1 + 0xb) < 0x100) {
        FUN_00164cd7(param_1);
      }
      *(undefined4 *)(param_1 + 0xb) = 0x100;
      *(undefined4 *)((long)param_1 + 0x5c) = 0;
      FUN_001661c4(param_1,(char)param_1[1] == '\x04');
      *(undefined1 *)((long)param_1 + 9) = 1;
      goto LAB_001662e7;
    }
    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) {
      return;
    }
  }
  else {
    iVar3 = (int)param_1[0xc];
    if (iVar3 < *(int *)((long)param_1 + 100)) {
      do {
        bVar1 = **(byte **)(lVar4 + 8);
        uVar2 = *(uint *)(param_1 + 0xb);
        if (bVar1 == uVar2) {
          if (*(int *)((long)param_1 + 0x5c) == 0xff) {
LAB_001664bf:
            FUN_00164cd7(param_1);
            goto LAB_001664c7;
          }
          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;
        }
        else if (*(int *)((long)param_1 + 0x5c) == 1) {
          *(uint *)(param_1 + 0x11) =
               *(uint *)(param_1 + 0x11) << 8 ^
               *(uint *)(param_1[0x10] +
                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);
          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;
          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;
          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;
          *(uint *)(param_1 + 0xb) = (uint)bVar1;
        }
        else {
          if (uVar2 < 0x100) goto LAB_001664bf;
LAB_001664c7:
          *(uint *)(param_1 + 0xb) = (uint)bVar1;
          *(undefined4 *)((long)param_1 + 0x5c) = 1;
        }
        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;
        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;
        lVar4 = *param_1;
        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;
        iVar3 = (int)param_1[0xc];
      } while (iVar3 < *(int *)((long)param_1 + 100));
    }
    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) goto LAB_001662e7;
  }
  FUN_001661c4(param_1,0);
  *(undefined1 *)((long)param_1 + 9) = 1;
  goto LAB_001662e7;
LAB_00166337:
  if ((ulong)param_1[0xe] < (ulong)param_1[0xd]) {
    return;
  }
  goto LAB_00166350;
}


PUSH R12
PUSH RBP
PUSH RBX
MOV RBX,qword ptr [RDI]
LEA R12,[RBX + 0x1a0]
MOVZX EAX,byte ptr [RBX + 0x9]
CMP AL,0x1
JNZ 0x00166467
MOV RAX,qword ptr [RBX]
CMP dword ptr [RAX + 0x1c],0x0
JZ 0x00166337
MOV RDX,qword ptr [RBX + 0x70]
CMP RDX,qword ptr [RBX + 0x68]
JNC 0x00166350
LEA RCX,[RDX + 0x1]
MOV qword ptr [RBX + 0x70],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOVZX EDX,byte ptr [RDX]
MOV byte ptr [RAX],DL
MOV RAX,qword ptr [RBX]
SUB dword ptr [RAX + 0x1c],0x1
MOV RAX,qword ptr [RBX]
ADD qword ptr [RAX + 0x10],0x1
MOV RAX,qword ptr [RBX]
ADD qword ptr [RAX + 0x20],0x1
MOV RAX,qword ptr [RBX]
CMP dword ptr [RAX + 0x1c],0x0
JNZ 0x00166346
MOV RCX,qword ptr [RBX + 0x68]
CMP qword ptr [RBX + 0x70],RCX
JNC 0x00166350
POP RBX
POP RBP
POP R12
RET
MOV RDX,qword ptr [RBX + 0x70]
CMP RDX,qword ptr [RBX + 0x68]
JC 0x00166306
CMP byte ptr [RBX + 0x8],0x4
JNZ 0x0016636b
CMP dword ptr [RAX + 0x18],0x0
JNZ 0x0016636b
CMP dword ptr [RBX + 0x58],0xff
JA 0x00166341
CMP dword ptr [RBX + 0x5c],0x0
JLE 0x00166341
MOV dword ptr [RBX + 0x60],0x0
MOV dword ptr [RBX + 0x88],0xffffffff
LEA RAX,[RBX + 0xa0]
MOV byte ptr [RAX],0x0
ADD RAX,0x1
CMP R12,RAX
JNZ 0x00166383
ADD dword ptr [RBX + 0x90],0x1
MOV byte ptr [RBX + 0x9],0x2
MOV RDX,qword ptr [RBX]
CMP dword ptr [RDX + 0x18],0x0
JZ 0x00166421
MOV EAX,dword ptr [RBX + 0x60]
CMP dword ptr [RBX + 0x64],EAX
JLE 0x00166480
MOV RDX,qword ptr [RDX + 0x8]
MOVZX EBP,byte ptr [RDX]
MOV ECX,dword ptr [RBX + 0x58]
CMP EBP,ECX
JZ 0x001664a2
CMP dword ptr [RBX + 0x5c],0x1
JNZ 0x001664b7
MOV EDX,dword ptr [RBX + 0x88]
MOV ESI,EDX
SHR ESI,0x18
XOR ESI,ECX
MOVZX ESI,SIL
MOV RDI,qword ptr [RBX + 0x80]
SHL EDX,0x8
XOR EDX,dword ptr [RDI + RSI*0x4]
MOV dword ptr [RBX + 0x88],EDX
MOV EDX,ECX
MOV byte ptr [RBX + RDX*0x1 + 0xa0],0x1
CDQE
MOV RDX,qword ptr [RBX + 0x40]
MOV byte ptr [RDX + RAX*0x1],CL
ADD dword ptr [RBX + 0x60],0x1
MOV dword ptr [RBX + 0x58],EBP
MOV RAX,qword ptr [RBX]
ADD qword ptr [RAX + 0x8],0x1
MOV RAX,qword ptr [RBX]
SUB dword ptr [RAX + 0x18],0x1
MOV RDX,qword ptr [RBX]
CMP dword ptr [RDX + 0x18],0x0
JNZ 0x00166474
CMP byte ptr [RBX + 0x8],0x2
JZ 0x001664d6
CMP dword ptr [RBX + 0x58],0xff
JA 0x0016643c
MOV RDI,RBX
CALL 0x00164cd7
MOV dword ptr [RBX + 0x58],0x100
MOV dword ptr [RBX + 0x5c],0x0
CMP byte ptr [RBX + 0x8],0x4
SETZ SIL
MOVZX ESI,SIL
MOV RDI,RBX
CALL 0x001661c4
MOV byte ptr [RBX + 0x9],0x1
JMP 0x001662e7
CMP AL,0x2
JNZ 0x001662eb
JMP 0x0016639a
MOV EAX,dword ptr [RBX + 0x60]
CMP EAX,dword ptr [RBX + 0x64]
JL 0x001663af
MOV EAX,dword ptr [RBX + 0x60]
CMP dword ptr [RBX + 0x64],EAX
JG 0x001662e7
MOV ESI,0x0
MOV RDI,RBX
CALL 0x001661c4
MOV byte ptr [RBX + 0x9],0x1
JMP 0x001662e7
MOV EAX,dword ptr [RBX + 0x5c]
CMP EAX,0xff
JZ 0x001664bf
ADD EAX,0x1
MOV dword ptr [RBX + 0x5c],EAX
JMP 0x00166409
CMP ECX,0xff
JA 0x001664c7
MOV RDI,RBX
CALL 0x00164cd7
MOV dword ptr [RBX + 0x58],EBP
MOV dword ptr [RBX + 0x5c],0x1
JMP 0x00166409
MOV EAX,dword ptr [RBX + 0x64]
CMP dword ptr [RBX + 0x60],EAX
JGE 0x0016648c
JMP 0x00166341
(translation_unit "void FUN_001662d9(long *param_1)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  long lVar4;\n  long *plVar5;\n  undefined1 *puVar6;\n  \n  param_1 = (long *)*param_1;\nLAB_001662e7:\n  do {\n    if (*(char *)((long)param_1 + 9) == '\x01') {\n      lVar4 = *param_1;\n      if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n      puVar6 = (undefined1 *)param_1[0xe];\n      if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;\n      goto LAB_00166350;\n    }\n  } while (*(char *)((long)param_1 + 9) != '\x02');\n  goto LAB_0016639a;\n  while (puVar6 = (undefined1 *)param_1[0xe], puVar6 < (undefined1 *)param_1[0xd]) {\nLAB_00166306:\n    param_1[0xe] = (long)(puVar6 + 1);\n    **(undefined1 **)(lVar4 + 0x10) = *puVar6;\n    *(int *)(*param_1 + 0x1c) = *(int *)(*param_1 + 0x1c) + -1;\n    *(long *)(*param_1 + 0x10) = *(long *)(*param_1 + 0x10) + 1;\n    *(long *)(*param_1 + 0x20) = *(long *)(*param_1 + 0x20) + 1;\n    lVar4 = *param_1;\n    if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n  }\nLAB_00166350:\n  if (((char)param_1[1] == '\x04') && (*(int *)(lVar4 + 0x18) == 0)) {\n    if (0xff < *(uint *)(param_1 + 0xb)) {\n      return;\n    }\n    if (*(int *)((long)param_1 + 0x5c) < 1) {\n      return;\n    }\n  }\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  *(undefined4 *)(param_1 + 0x11) = 0xffffffff;\n  plVar5 = param_1 + 0x14;\n  do {\n    *(undefined1 *)plVar5 = 0;\n    plVar5 = (long *)((long)plVar5 + 1);\n  } while (param_1 + 0x34 != plVar5);\n  *(int *)(param_1 + 0x12) = (int)param_1[0x12] + 1;\n  *(undefined1 *)((long)param_1 + 9) = 2;\nLAB_0016639a:\n  lVar4 = *param_1;\n  if (*(int *)(lVar4 + 0x18) == 0) {\nLAB_00166421:\n    if ((char)param_1[1] != '\x02') {\n      if (*(uint *)(param_1 + 0xb) < 0x100) {\n        FUN_00164cd7(param_1);\n      }\n      *(undefined4 *)(param_1 + 0xb) = 0x100;\n      *(undefined4 *)((long)param_1 + 0x5c) = 0;\n      FUN_001661c4(param_1,(char)param_1[1] == '\x04');\n      *(undefined1 *)((long)param_1 + 9) = 1;\n      goto LAB_001662e7;\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) {\n      return;\n    }\n  }\n  else {\n    iVar3 = (int)param_1[0xc];\n    if (iVar3 < *(int *)((long)param_1 + 100)) {\n      do {\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      } while (iVar3 < *(int *)((long)param_1 + 100));\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) goto LAB_001662e7;\n  }\n  FUN_001661c4(param_1,0);\n  *(undefined1 *)((long)param_1 + 9) = 1;\n  goto LAB_001662e7;\nLAB_00166337:\n  if ((ulong)param_1[0xe] < (ulong)param_1[0xd]) {\n    return;\n  }\n  goto LAB_00166350;\n}\n\n" (function_definition "void FUN_001662d9(long *param_1)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  long lVar4;\n  long *plVar5;\n  undefined1 *puVar6;\n  \n  param_1 = (long *)*param_1;\nLAB_001662e7:\n  do {\n    if (*(char *)((long)param_1 + 9) == '\x01') {\n      lVar4 = *param_1;\n      if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n      puVar6 = (undefined1 *)param_1[0xe];\n      if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;\n      goto LAB_00166350;\n    }\n  } while (*(char *)((long)param_1 + 9) != '\x02');\n  goto LAB_0016639a;\n  while (puVar6 = (undefined1 *)param_1[0xe], puVar6 < (undefined1 *)param_1[0xd]) {\nLAB_00166306:\n    param_1[0xe] = (long)(puVar6 + 1);\n    **(undefined1 **)(lVar4 + 0x10) = *puVar6;\n    *(int *)(*param_1 + 0x1c) = *(int *)(*param_1 + 0x1c) + -1;\n    *(long *)(*param_1 + 0x10) = *(long *)(*param_1 + 0x10) + 1;\n    *(long *)(*param_1 + 0x20) = *(long *)(*param_1 + 0x20) + 1;\n    lVar4 = *param_1;\n    if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n  }\nLAB_00166350:\n  if (((char)param_1[1] == '\x04') && (*(int *)(lVar4 + 0x18) == 0)) {\n    if (0xff < *(uint *)(param_1 + 0xb)) {\n      return;\n    }\n    if (*(int *)((long)param_1 + 0x5c) < 1) {\n      return;\n    }\n  }\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  *(undefined4 *)(param_1 + 0x11) = 0xffffffff;\n  plVar5 = param_1 + 0x14;\n  do {\n    *(undefined1 *)plVar5 = 0;\n    plVar5 = (long *)((long)plVar5 + 1);\n  } while (param_1 + 0x34 != plVar5);\n  *(int *)(param_1 + 0x12) = (int)param_1[0x12] + 1;\n  *(undefined1 *)((long)param_1 + 9) = 2;\nLAB_0016639a:\n  lVar4 = *param_1;\n  if (*(int *)(lVar4 + 0x18) == 0) {\nLAB_00166421:\n    if ((char)param_1[1] != '\x02') {\n      if (*(uint *)(param_1 + 0xb) < 0x100) {\n        FUN_00164cd7(param_1);\n      }\n      *(undefined4 *)(param_1 + 0xb) = 0x100;\n      *(undefined4 *)((long)param_1 + 0x5c) = 0;\n      FUN_001661c4(param_1,(char)param_1[1] == '\x04');\n      *(undefined1 *)((long)param_1 + 9) = 1;\n      goto LAB_001662e7;\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) {\n      return;\n    }\n  }\n  else {\n    iVar3 = (int)param_1[0xc];\n    if (iVar3 < *(int *)((long)param_1 + 100)) {\n      do {\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      } while (iVar3 < *(int *)((long)param_1 + 100));\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) goto LAB_001662e7;\n  }\n  FUN_001661c4(param_1,0);\n  *(undefined1 *)((long)param_1 + 9) = 1;\n  goto LAB_001662e7;\nLAB_00166337:\n  if ((ulong)param_1[0xe] < (ulong)param_1[0xd]) {\n    return;\n  }\n  goto LAB_00166350;\n}" primitive_type (function_declarator "FUN_001662d9(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  uint uVar2;\n  int iVar3;\n  long lVar4;\n  long *plVar5;\n  undefined1 *puVar6;\n  \n  param_1 = (long *)*param_1;\nLAB_001662e7:\n  do {\n    if (*(char *)((long)param_1 + 9) == '\x01') {\n      lVar4 = *param_1;\n      if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n      puVar6 = (undefined1 *)param_1[0xe];\n      if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;\n      goto LAB_00166350;\n    }\n  } while (*(char *)((long)param_1 + 9) != '\x02');\n  goto LAB_0016639a;\n  while (puVar6 = (undefined1 *)param_1[0xe], puVar6 < (undefined1 *)param_1[0xd]) {\nLAB_00166306:\n    param_1[0xe] = (long)(puVar6 + 1);\n    **(undefined1 **)(lVar4 + 0x10) = *puVar6;\n    *(int *)(*param_1 + 0x1c) = *(int *)(*param_1 + 0x1c) + -1;\n    *(long *)(*param_1 + 0x10) = *(long *)(*param_1 + 0x10) + 1;\n    *(long *)(*param_1 + 0x20) = *(long *)(*param_1 + 0x20) + 1;\n    lVar4 = *param_1;\n    if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n  }\nLAB_00166350:\n  if (((char)param_1[1] == '\x04') && (*(int *)(lVar4 + 0x18) == 0)) {\n    if (0xff < *(uint *)(param_1 + 0xb)) {\n      return;\n    }\n    if (*(int *)((long)param_1 + 0x5c) < 1) {\n      return;\n    }\n  }\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  *(undefined4 *)(param_1 + 0x11) = 0xffffffff;\n  plVar5 = param_1 + 0x14;\n  do {\n    *(undefined1 *)plVar5 = 0;\n    plVar5 = (long *)((long)plVar5 + 1);\n  } while (param_1 + 0x34 != plVar5);\n  *(int *)(param_1 + 0x12) = (int)param_1[0x12] + 1;\n  *(undefined1 *)((long)param_1 + 9) = 2;\nLAB_0016639a:\n  lVar4 = *param_1;\n  if (*(int *)(lVar4 + 0x18) == 0) {\nLAB_00166421:\n    if ((char)param_1[1] != '\x02') {\n      if (*(uint *)(param_1 + 0xb) < 0x100) {\n        FUN_00164cd7(param_1);\n      }\n      *(undefined4 *)(param_1 + 0xb) = 0x100;\n      *(undefined4 *)((long)param_1 + 0x5c) = 0;\n      FUN_001661c4(param_1,(char)param_1[1] == '\x04');\n      *(undefined1 *)((long)param_1 + 9) = 1;\n      goto LAB_001662e7;\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) {\n      return;\n    }\n  }\n  else {\n    iVar3 = (int)param_1[0xc];\n    if (iVar3 < *(int *)((long)param_1 + 100)) {\n      do {\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      } while (iVar3 < *(int *)((long)param_1 + 100));\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) goto LAB_001662e7;\n  }\n  FUN_001661c4(param_1,0);\n  *(undefined1 *)((long)param_1 + 9) = 1;\n  goto LAB_001662e7;\nLAB_00166337:\n  if ((ulong)param_1[0xe] < (ulong)param_1[0xd]) {\n    return;\n  }\n  goto LAB_00166350;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "long *plVar5;" (sized_type_specifier "long" long) (pointer_declarator "*plVar5" * identifier) ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (expression_statement "param_1 = (long *)*param_1;" (assignment_expression "param_1 = (long *)*param_1" identifier = (cast_expression "(long *)*param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (labeled_statement "LAB_001662e7:\n  do {\n    if (*(char *)((long)param_1 + 9) == '\x01') {\n      lVar4 = *param_1;\n      if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n      puVar6 = (undefined1 *)param_1[0xe];\n      if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;\n      goto LAB_00166350;\n    }\n  } while (*(char *)((long)param_1 + 9) != '\x02');" statement_identifier : (do_statement "do {\n    if (*(char *)((long)param_1 + 9) == '\x01') {\n      lVar4 = *param_1;\n      if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n      puVar6 = (undefined1 *)param_1[0xe];\n      if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;\n      goto LAB_00166350;\n    }\n  } while (*(char *)((long)param_1 + 9) != '\x02');" do (compound_statement "{\n    if (*(char *)((long)param_1 + 9) == '\x01') {\n      lVar4 = *param_1;\n      if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n      puVar6 = (undefined1 *)param_1[0xe];\n      if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;\n      goto LAB_00166350;\n    }\n  }" { (if_statement "if (*(char *)((long)param_1 + 9) == '\x01') {\n      lVar4 = *param_1;\n      if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n      puVar6 = (undefined1 *)param_1[0xe];\n      if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;\n      goto LAB_00166350;\n    }" if (parenthesized_expression "(*(char *)((long)param_1 + 9) == '\x01')" ( (binary_expression "*(char *)((long)param_1 + 9) == '\x01'" (pointer_expression "*(char *)((long)param_1 + 9)" * (cast_expression "(char *)((long)param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 9)" ( (binary_expression "(long)param_1 + 9" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n      lVar4 = *param_1;\n      if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n      puVar6 = (undefined1 *)param_1[0xe];\n      if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;\n      goto LAB_00166350;\n    }" { (expression_statement "lVar4 = *param_1;" (assignment_expression "lVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;" if (parenthesized_expression "(*(int *)(lVar4 + 0x1c) == 0)" ( (binary_expression "*(int *)(lVar4 + 0x1c) == 0" (pointer_expression "*(int *)(lVar4 + 0x1c)" * (cast_expression "(int *)(lVar4 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x1c)" ( (binary_expression "lVar4 + 0x1c" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_00166337;" goto statement_identifier ;)) (expression_statement "puVar6 = (undefined1 *)param_1[0xe];" (assignment_expression "puVar6 = (undefined1 *)param_1[0xe]" identifier = (cast_expression "(undefined1 *)param_1[0xe]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0xe]" identifier [ number_literal ]))) ;) (if_statement "if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;" if (parenthesized_expression "(puVar6 < (undefined1 *)param_1[0xd])" ( (binary_expression "puVar6 < (undefined1 *)param_1[0xd]" identifier < (cast_expression "(undefined1 *)param_1[0xd]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0xd]" identifier [ number_literal ]))) )) (goto_statement "goto LAB_00166306;" goto statement_identifier ;)) (goto_statement "goto LAB_00166350;" goto statement_identifier ;) })) }) while (parenthesized_expression "(*(char *)((long)param_1 + 9) != '\x02')" ( (binary_expression "*(char *)((long)param_1 + 9) != '\x02'" (pointer_expression "*(char *)((long)param_1 + 9)" * (cast_expression "(char *)((long)param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 9)" ( (binary_expression "(long)param_1 + 9" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != (char_literal "'\x02'" ' escape_sequence ')) )) ;)) (goto_statement "goto LAB_0016639a;" goto statement_identifier ;) (while_statement "while (puVar6 = (undefined1 *)param_1[0xe], puVar6 < (undefined1 *)param_1[0xd]) {\nLAB_00166306:\n    param_1[0xe] = (long)(puVar6 + 1);\n    **(undefined1 **)(lVar4 + 0x10) = *puVar6;\n    *(int *)(*param_1 + 0x1c) = *(int *)(*param_1 + 0x1c) + -1;\n    *(long *)(*param_1 + 0x10) = *(long *)(*param_1 + 0x10) + 1;\n    *(long *)(*param_1 + 0x20) = *(long *)(*param_1 + 0x20) + 1;\n    lVar4 = *param_1;\n    if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n  }" while (parenthesized_expression "(puVar6 = (undefined1 *)param_1[0xe], puVar6 < (undefined1 *)param_1[0xd])" ( (comma_expression "puVar6 = (undefined1 *)param_1[0xe], puVar6 < (undefined1 *)param_1[0xd]" (assignment_expression "puVar6 = (undefined1 *)param_1[0xe]" identifier = (cast_expression "(undefined1 *)param_1[0xe]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0xe]" identifier [ number_literal ]))) , (binary_expression "puVar6 < (undefined1 *)param_1[0xd]" identifier < (cast_expression "(undefined1 *)param_1[0xd]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0xd]" identifier [ number_literal ])))) )) (compound_statement "{\nLAB_00166306:\n    param_1[0xe] = (long)(puVar6 + 1);\n    **(undefined1 **)(lVar4 + 0x10) = *puVar6;\n    *(int *)(*param_1 + 0x1c) = *(int *)(*param_1 + 0x1c) + -1;\n    *(long *)(*param_1 + 0x10) = *(long *)(*param_1 + 0x10) + 1;\n    *(long *)(*param_1 + 0x20) = *(long *)(*param_1 + 0x20) + 1;\n    lVar4 = *param_1;\n    if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n  }" { (labeled_statement "LAB_00166306:\n    param_1[0xe] = (long)(puVar6 + 1);" statement_identifier : (expression_statement "param_1[0xe] = (long)(puVar6 + 1);" (assignment_expression "param_1[0xe] = (long)(puVar6 + 1)" (subscript_expression "param_1[0xe]" identifier [ number_literal ]) = (cast_expression "(long)(puVar6 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(puVar6 + 1)" ( (binary_expression "puVar6 + 1" identifier + number_literal) )))) ;)) (expression_statement "**(undefined1 **)(lVar4 + 0x10) = *puVar6;" (assignment_expression "**(undefined1 **)(lVar4 + 0x10) = *puVar6" (pointer_expression "**(undefined1 **)(lVar4 + 0x10)" * (pointer_expression "*(undefined1 **)(lVar4 + 0x10)" * (cast_expression "(undefined1 **)(lVar4 + 0x10)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar4 + 0x10)" ( (binary_expression "lVar4 + 0x10" identifier + number_literal) ))))) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "*(int *)(*param_1 + 0x1c) = *(int *)(*param_1 + 0x1c) + -1;" (assignment_expression "*(int *)(*param_1 + 0x1c) = *(int *)(*param_1 + 0x1c) + -1" (pointer_expression "*(int *)(*param_1 + 0x1c)" * (cast_expression "(int *)(*param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x1c)" ( (binary_expression "*param_1 + 0x1c" (pointer_expression "*param_1" * identifier) + number_literal) )))) = (binary_expression "*(int *)(*param_1 + 0x1c) + -1" (pointer_expression "*(int *)(*param_1 + 0x1c)" * (cast_expression "(int *)(*param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x1c)" ( (binary_expression "*param_1 + 0x1c" (pointer_expression "*param_1" * identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "*(long *)(*param_1 + 0x10) = *(long *)(*param_1 + 0x10) + 1;" (assignment_expression "*(long *)(*param_1 + 0x10) = *(long *)(*param_1 + 0x10) + 1" (pointer_expression "*(long *)(*param_1 + 0x10)" * (cast_expression "(long *)(*param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x10)" ( (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" * identifier) + number_literal) )))) = (binary_expression "*(long *)(*param_1 + 0x10) + 1" (pointer_expression "*(long *)(*param_1 + 0x10)" * (cast_expression "(long *)(*param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x10)" ( (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" * identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "*(long *)(*param_1 + 0x20) = *(long *)(*param_1 + 0x20) + 1;" (assignment_expression "*(long *)(*param_1 + 0x20) = *(long *)(*param_1 + 0x20) + 1" (pointer_expression "*(long *)(*param_1 + 0x20)" * (cast_expression "(long *)(*param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x20)" ( (binary_expression "*param_1 + 0x20" (pointer_expression "*param_1" * identifier) + number_literal) )))) = (binary_expression "*(long *)(*param_1 + 0x20) + 1" (pointer_expression "*(long *)(*param_1 + 0x20)" * (cast_expression "(long *)(*param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x20)" ( (binary_expression "*param_1 + 0x20" (pointer_expression "*param_1" * identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "lVar4 = *param_1;" (assignment_expression "lVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;" if (parenthesized_expression "(*(int *)(lVar4 + 0x1c) == 0)" ( (binary_expression "*(int *)(lVar4 + 0x1c) == 0" (pointer_expression "*(int *)(lVar4 + 0x1c)" * (cast_expression "(int *)(lVar4 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x1c)" ( (binary_expression "lVar4 + 0x1c" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_00166337;" goto statement_identifier ;)) })) (labeled_statement "LAB_00166350:\n  if (((char)param_1[1] == '\x04') && (*(int *)(lVar4 + 0x18) == 0)) {\n    if (0xff < *(uint *)(param_1 + 0xb)) {\n      return;\n    }\n    if (*(int *)((long)param_1 + 0x5c) < 1) {\n      return;\n    }\n  }" statement_identifier : (if_statement "if (((char)param_1[1] == '\x04') && (*(int *)(lVar4 + 0x18) == 0)) {\n    if (0xff < *(uint *)(param_1 + 0xb)) {\n      return;\n    }\n    if (*(int *)((long)param_1 + 0x5c) < 1) {\n      return;\n    }\n  }" if (parenthesized_expression "(((char)param_1[1] == '\x04') && (*(int *)(lVar4 + 0x18) == 0))" ( (binary_expression "((char)param_1[1] == '\x04') && (*(int *)(lVar4 + 0x18) == 0)" (parenthesized_expression "((char)param_1[1] == '\x04')" ( (binary_expression "(char)param_1[1] == '\x04'" (cast_expression "(char)param_1[1]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) == (char_literal "'\x04'" ' escape_sequence ')) )) && (parenthesized_expression "(*(int *)(lVar4 + 0x18) == 0)" ( (binary_expression "*(int *)(lVar4 + 0x18) == 0" (pointer_expression "*(int *)(lVar4 + 0x18)" * (cast_expression "(int *)(lVar4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x18)" ( (binary_expression "lVar4 + 0x18" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    if (0xff < *(uint *)(param_1 + 0xb)) {\n      return;\n    }\n    if (*(int *)((long)param_1 + 0x5c) < 1) {\n      return;\n    }\n  }" { (if_statement "if (0xff < *(uint *)(param_1 + 0xb)) {\n      return;\n    }" if (parenthesized_expression "(0xff < *(uint *)(param_1 + 0xb))" ( (binary_expression "0xff < *(uint *)(param_1 + 0xb)" number_literal < (pointer_expression "*(uint *)(param_1 + 0xb)" * (cast_expression "(uint *)(param_1 + 0xb)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb)" ( (binary_expression "param_1 + 0xb" identifier + number_literal) ))))) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (if_statement "if (*(int *)((long)param_1 + 0x5c) < 1) {\n      return;\n    }" if (parenthesized_expression "(*(int *)((long)param_1 + 0x5c) < 1)" ( (binary_expression "*(int *)((long)param_1 + 0x5c) < 1" (pointer_expression "*(int *)((long)param_1 + 0x5c)" * (cast_expression "(int *)((long)param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x5c)" ( (binary_expression "(long)param_1 + 0x5c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) < number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }))) (expression_statement "*(undefined4 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x11) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x11) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x11)" * (cast_expression "(undefined4 *)(param_1 + 0x11)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x11)" ( (binary_expression "param_1 + 0x11" identifier + number_literal) )))) = number_literal) ;) (expression_statement "plVar5 = param_1 + 0x14;" (assignment_expression "plVar5 = param_1 + 0x14" identifier = (binary_expression "param_1 + 0x14" identifier + number_literal)) ;) (do_statement "do {\n    *(undefined1 *)plVar5 = 0;\n    plVar5 = (long *)((long)plVar5 + 1);\n  } while (param_1 + 0x34 != plVar5);" do (compound_statement "{\n    *(undefined1 *)plVar5 = 0;\n    plVar5 = (long *)((long)plVar5 + 1);\n  }" { (expression_statement "*(undefined1 *)plVar5 = 0;" (assignment_expression "*(undefined1 *)plVar5 = 0" (pointer_expression "*(undefined1 *)plVar5" * (cast_expression "(undefined1 *)plVar5" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "plVar5 = (long *)((long)plVar5 + 1);" (assignment_expression "plVar5 = (long *)((long)plVar5 + 1)" identifier = (cast_expression "(long *)((long)plVar5 + 1)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar5 + 1)" ( (binary_expression "(long)plVar5 + 1" (cast_expression "(long)plVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) }) while (parenthesized_expression "(param_1 + 0x34 != plVar5)" ( (binary_expression "param_1 + 0x34 != plVar5" (binary_expression "param_1 + 0x34" identifier + number_literal) != identifier) )) ;) (expression_statement "*(int *)(param_1 + 0x12) = (int)param_1[0x12] + 1;" (assignment_expression "*(int *)(param_1 + 0x12) = (int)param_1[0x12] + 1" (pointer_expression "*(int *)(param_1 + 0x12)" * (cast_expression "(int *)(param_1 + 0x12)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x12)" ( (binary_expression "param_1 + 0x12" identifier + number_literal) )))) = (binary_expression "(int)param_1[0x12] + 1" (cast_expression "(int)param_1[0x12]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0x12]" identifier [ number_literal ])) + number_literal)) ;) (expression_statement "*(undefined1 *)((long)param_1 + 9) = 2;" (assignment_expression "*(undefined1 *)((long)param_1 + 9) = 2" (pointer_expression "*(undefined1 *)((long)param_1 + 9)" * (cast_expression "(undefined1 *)((long)param_1 + 9)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 9)" ( (binary_expression "(long)param_1 + 9" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (labeled_statement "LAB_0016639a:\n  lVar4 = *param_1;" statement_identifier : (expression_statement "lVar4 = *param_1;" (assignment_expression "lVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;)) (if_statement "if (*(int *)(lVar4 + 0x18) == 0) {\nLAB_00166421:\n    if ((char)param_1[1] != '\x02') {\n      if (*(uint *)(param_1 + 0xb) < 0x100) {\n        FUN_00164cd7(param_1);\n      }\n      *(undefined4 *)(param_1 + 0xb) = 0x100;\n      *(undefined4 *)((long)param_1 + 0x5c) = 0;\n      FUN_001661c4(param_1,(char)param_1[1] == '\x04');\n      *(undefined1 *)((long)param_1 + 9) = 1;\n      goto LAB_001662e7;\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) {\n      return;\n    }\n  }\n  else {\n    iVar3 = (int)param_1[0xc];\n    if (iVar3 < *(int *)((long)param_1 + 100)) {\n      do {\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      } while (iVar3 < *(int *)((long)param_1 + 100));\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) goto LAB_001662e7;\n  }" if (parenthesized_expression "(*(int *)(lVar4 + 0x18) == 0)" ( (binary_expression "*(int *)(lVar4 + 0x18) == 0" (pointer_expression "*(int *)(lVar4 + 0x18)" * (cast_expression "(int *)(lVar4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x18)" ( (binary_expression "lVar4 + 0x18" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\nLAB_00166421:\n    if ((char)param_1[1] != '\x02') {\n      if (*(uint *)(param_1 + 0xb) < 0x100) {\n        FUN_00164cd7(param_1);\n      }\n      *(undefined4 *)(param_1 + 0xb) = 0x100;\n      *(undefined4 *)((long)param_1 + 0x5c) = 0;\n      FUN_001661c4(param_1,(char)param_1[1] == '\x04');\n      *(undefined1 *)((long)param_1 + 9) = 1;\n      goto LAB_001662e7;\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) {\n      return;\n    }\n  }" { (labeled_statement "LAB_00166421:\n    if ((char)param_1[1] != '\x02') {\n      if (*(uint *)(param_1 + 0xb) < 0x100) {\n        FUN_00164cd7(param_1);\n      }\n      *(undefined4 *)(param_1 + 0xb) = 0x100;\n      *(undefined4 *)((long)param_1 + 0x5c) = 0;\n      FUN_001661c4(param_1,(char)param_1[1] == '\x04');\n      *(undefined1 *)((long)param_1 + 9) = 1;\n      goto LAB_001662e7;\n    }" statement_identifier : (if_statement "if ((char)param_1[1] != '\x02') {\n      if (*(uint *)(param_1 + 0xb) < 0x100) {\n        FUN_00164cd7(param_1);\n      }\n      *(undefined4 *)(param_1 + 0xb) = 0x100;\n      *(undefined4 *)((long)param_1 + 0x5c) = 0;\n      FUN_001661c4(param_1,(char)param_1[1] == '\x04');\n      *(undefined1 *)((long)param_1 + 9) = 1;\n      goto LAB_001662e7;\n    }" if (parenthesized_expression "((char)param_1[1] != '\x02')" ( (binary_expression "(char)param_1[1] != '\x02'" (cast_expression "(char)param_1[1]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) != (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n      if (*(uint *)(param_1 + 0xb) < 0x100) {\n        FUN_00164cd7(param_1);\n      }\n      *(undefined4 *)(param_1 + 0xb) = 0x100;\n      *(undefined4 *)((long)param_1 + 0x5c) = 0;\n      FUN_001661c4(param_1,(char)param_1[1] == '\x04');\n      *(undefined1 *)((long)param_1 + 9) = 1;\n      goto LAB_001662e7;\n    }" { (if_statement "if (*(uint *)(param_1 + 0xb) < 0x100) {\n        FUN_00164cd7(param_1);\n      }" if (parenthesized_expression "(*(uint *)(param_1 + 0xb) < 0x100)" ( (binary_expression "*(uint *)(param_1 + 0xb) < 0x100" (pointer_expression "*(uint *)(param_1 + 0xb)" * (cast_expression "(uint *)(param_1 + 0xb)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb)" ( (binary_expression "param_1 + 0xb" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n        FUN_00164cd7(param_1);\n      }" { (expression_statement "FUN_00164cd7(param_1);" (call_expression "FUN_00164cd7(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0xb) = 0x100;" (assignment_expression "*(undefined4 *)(param_1 + 0xb) = 0x100" (pointer_expression "*(undefined4 *)(param_1 + 0xb)" * (cast_expression "(undefined4 *)(param_1 + 0xb)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb)" ( (binary_expression "param_1 + 0xb" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((long)param_1 + 0x5c) = 0;" (assignment_expression "*(undefined4 *)((long)param_1 + 0x5c) = 0" (pointer_expression "*(undefined4 *)((long)param_1 + 0x5c)" * (cast_expression "(undefined4 *)((long)param_1 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x5c)" ( (binary_expression "(long)param_1 + 0x5c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "FUN_001661c4(param_1,(char)param_1[1] == '\x04');" (call_expression "FUN_001661c4(param_1,(char)param_1[1] == '\x04')" identifier (argument_list "(param_1,(char)param_1[1] == '\x04')" ( identifier , (binary_expression "(char)param_1[1] == '\x04'" (cast_expression "(char)param_1[1]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) == (char_literal "'\x04'" ' escape_sequence ')) ))) ;) (expression_statement "*(undefined1 *)((long)param_1 + 9) = 1;" (assignment_expression "*(undefined1 *)((long)param_1 + 9) = 1" (pointer_expression "*(undefined1 *)((long)param_1 + 9)" * (cast_expression "(undefined1 *)((long)param_1 + 9)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 9)" ( (binary_expression "(long)param_1 + 9" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_001662e7;" goto statement_identifier ;) }))) (if_statement "if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) {\n      return;\n    }" if (parenthesized_expression "((int)param_1[0xc] < *(int *)((long)param_1 + 100))" ( (binary_expression "(int)param_1[0xc] < *(int *)((long)param_1 + 100)" (cast_expression "(int)param_1[0xc]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0xc]" identifier [ number_literal ])) < (pointer_expression "*(int *)((long)param_1 + 100)" * (cast_expression "(int *)((long)param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 100)" ( (binary_expression "(long)param_1 + 100" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }) (else_clause "else {\n    iVar3 = (int)param_1[0xc];\n    if (iVar3 < *(int *)((long)param_1 + 100)) {\n      do {\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      } while (iVar3 < *(int *)((long)param_1 + 100));\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) goto LAB_001662e7;\n  }" else (compound_statement "{\n    iVar3 = (int)param_1[0xc];\n    if (iVar3 < *(int *)((long)param_1 + 100)) {\n      do {\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      } while (iVar3 < *(int *)((long)param_1 + 100));\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) goto LAB_001662e7;\n  }" { (expression_statement "iVar3 = (int)param_1[0xc];" (assignment_expression "iVar3 = (int)param_1[0xc]" identifier = (cast_expression "(int)param_1[0xc]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0xc]" identifier [ number_literal ]))) ;) (if_statement "if (iVar3 < *(int *)((long)param_1 + 100)) {\n      do {\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      } while (iVar3 < *(int *)((long)param_1 + 100));\n    }" if (parenthesized_expression "(iVar3 < *(int *)((long)param_1 + 100))" ( (binary_expression "iVar3 < *(int *)((long)param_1 + 100)" identifier < (pointer_expression "*(int *)((long)param_1 + 100)" * (cast_expression "(int *)((long)param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 100)" ( (binary_expression "(long)param_1 + 100" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) )) (compound_statement "{\n      do {\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      } while (iVar3 < *(int *)((long)param_1 + 100));\n    }" { (do_statement "do {\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      } while (iVar3 < *(int *)((long)param_1 + 100));" do (compound_statement "{\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      }" { (expression_statement "bVar1 = **(byte **)(lVar4 + 8);" (assignment_expression "bVar1 = **(byte **)(lVar4 + 8)" identifier = (pointer_expression "**(byte **)(lVar4 + 8)" * (pointer_expression "*(byte **)(lVar4 + 8)" * (cast_expression "(byte **)(lVar4 + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar4 + 8)" ( (binary_expression "lVar4 + 8" identifier + number_literal) )))))) ;) (expression_statement "uVar2 = *(uint *)(param_1 + 0xb);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0xb)" identifier = (pointer_expression "*(uint *)(param_1 + 0xb)" * (cast_expression "(uint *)(param_1 + 0xb)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb)" ( (binary_expression "param_1 + 0xb" identifier + number_literal) ))))) ;) (if_statement "if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }" if (parenthesized_expression "(bVar1 == uVar2)" ( (binary_expression "bVar1 == uVar2" identifier == identifier) )) (compound_statement "{\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }" { (if_statement "if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }" if (parenthesized_expression "(*(int *)((long)param_1 + 0x5c) == 0xff)" ( (binary_expression "*(int *)((long)param_1 + 0x5c) == 0xff" (pointer_expression "*(int *)((long)param_1 + 0x5c)" * (cast_expression "(int *)((long)param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x5c)" ( (binary_expression "(long)param_1 + 0x5c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }" { (labeled_statement "LAB_001664bf:\n            FUN_00164cd7(param_1);" statement_identifier : (expression_statement "FUN_00164cd7(param_1);" (call_expression "FUN_00164cd7(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;)) (goto_statement "goto LAB_001664c7;" goto statement_identifier ;) })) (expression_statement "*(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;" (assignment_expression "*(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1" (pointer_expression "*(int *)((long)param_1 + 0x5c)" * (cast_expression "(int *)((long)param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x5c)" ( (binary_expression "(long)param_1 + 0x5c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (binary_expression "*(int *)((long)param_1 + 0x5c) + 1" (pointer_expression "*(int *)((long)param_1 + 0x5c)" * (cast_expression "(int *)((long)param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x5c)" ( (binary_expression "(long)param_1 + 0x5c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal)) ;) }) (else_clause "else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }" else (if_statement "if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }" if (parenthesized_expression "(*(int *)((long)param_1 + 0x5c) == 1)" ( (binary_expression "*(int *)((long)param_1 + 0x5c) == 1" (pointer_expression "*(int *)((long)param_1 + 0x5c)" * (cast_expression "(int *)((long)param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x5c)" ( (binary_expression "(long)param_1 + 0x5c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }" { (expression_statement "*(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);" (assignment_expression "*(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4)" (pointer_expression "*(uint *)(param_1 + 0x11)" * (cast_expression "(uint *)(param_1 + 0x11)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x11)" ( (binary_expression "param_1 + 0x11" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4)" (binary_expression "*(uint *)(param_1 + 0x11) << 8" (pointer_expression "*(uint *)(param_1 + 0x11)" * (cast_expression "(uint *)(param_1 + 0x11)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x11)" ( (binary_expression "param_1 + 0x11" identifier + number_literal) )))) << number_literal) ^ (pointer_expression "*(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4)" * (cast_expression "(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4)" ( (binary_expression "param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4" (subscript_expression "param_1[0x10]" identifier [ number_literal ]) + (binary_expression "(ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4" (call_expression "(ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff)" ( (binary_expression "(*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff" (parenthesized_expression "(*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2)" ( (binary_expression "*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2" (binary_expression "*(uint *)(param_1 + 0x11) >> 0x18" (pointer_expression "*(uint *)(param_1 + 0x11)" * (cast_expression "(uint *)(param_1 + 0x11)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x11)" ( (binary_expression "param_1 + 0x11" identifier + number_literal) )))) >> number_literal) ^ identifier) )) & number_literal) ))) * number_literal)) )))))) ;) (expression_statement "*(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;" (assignment_expression "*(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1" (pointer_expression "*(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0)" * (cast_expression "(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + (ulong)uVar2 + 0xa0)" ( (binary_expression "(long)param_1 + (ulong)uVar2 + 0xa0" (binary_expression "(long)param_1 + (ulong)uVar2" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (cast_expression "(ulong)uVar2" ( (type_descriptor "ulong" type_identifier) ) identifier)) + number_literal) )))) = number_literal) ;) (expression_statement "*(char *)(param_1[8] + (long)iVar3) = (char)uVar2;" (assignment_expression "*(char *)(param_1[8] + (long)iVar3) = (char)uVar2" (pointer_expression "*(char *)(param_1[8] + (long)iVar3)" * (cast_expression "(char *)(param_1[8] + (long)iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[8] + (long)iVar3)" ( (binary_expression "param_1[8] + (long)iVar3" (subscript_expression "param_1[8]" identifier [ number_literal ]) + (cast_expression "(long)iVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )))) = (cast_expression "(char)uVar2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "*(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;" (assignment_expression "*(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "(int)param_1[0xc] + 1" (cast_expression "(int)param_1[0xc]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0xc]" identifier [ number_literal ])) + number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0xb) = (uint)bVar1;" (assignment_expression "*(uint *)(param_1 + 0xb) = (uint)bVar1" (pointer_expression "*(uint *)(param_1 + 0xb)" * (cast_expression "(uint *)(param_1 + 0xb)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb)" ( (binary_expression "param_1 + 0xb" identifier + number_literal) )))) = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) }) (else_clause "else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }" else (compound_statement "{\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }" { (if_statement "if (uVar2 < 0x100) goto LAB_001664bf;" if (parenthesized_expression "(uVar2 < 0x100)" ( (binary_expression "uVar2 < 0x100" identifier < number_literal) )) (goto_statement "goto LAB_001664bf;" goto statement_identifier ;)) (labeled_statement "LAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;" statement_identifier : (expression_statement "*(uint *)(param_1 + 0xb) = (uint)bVar1;" (assignment_expression "*(uint *)(param_1 + 0xb) = (uint)bVar1" (pointer_expression "*(uint *)(param_1 + 0xb)" * (cast_expression "(uint *)(param_1 + 0xb)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb)" ( (binary_expression "param_1 + 0xb" identifier + number_literal) )))) = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;)) (expression_statement "*(undefined4 *)((long)param_1 + 0x5c) = 1;" (assignment_expression "*(undefined4 *)((long)param_1 + 0x5c) = 1" (pointer_expression "*(undefined4 *)((long)param_1 + 0x5c)" * (cast_expression "(undefined4 *)((long)param_1 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x5c)" ( (binary_expression "(long)param_1 + 0x5c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) }))))) (expression_statement "*(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;" (assignment_expression "*(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1" (pointer_expression "*(long *)(*param_1 + 8)" * (cast_expression "(long *)(*param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 8)" ( (binary_expression "*param_1 + 8" (pointer_expression "*param_1" * identifier) + number_literal) )))) = (binary_expression "*(long *)(*param_1 + 8) + 1" (pointer_expression "*(long *)(*param_1 + 8)" * (cast_expression "(long *)(*param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 8)" ( (binary_expression "*param_1 + 8" (pointer_expression "*param_1" * identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;" (assignment_expression "*(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1" (pointer_expression "*(int *)(*param_1 + 0x18)" * (cast_expression "(int *)(*param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x18)" ( (binary_expression "*param_1 + 0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) = (binary_expression "*(int *)(*param_1 + 0x18) + -1" (pointer_expression "*(int *)(*param_1 + 0x18)" * (cast_expression "(int *)(*param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x18)" ( (binary_expression "*param_1 + 0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "lVar4 = *param_1;" (assignment_expression "lVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;" if (parenthesized_expression "(*(int *)(lVar4 + 0x18) == 0)" ( (binary_expression "*(int *)(lVar4 + 0x18) == 0" (pointer_expression "*(int *)(lVar4 + 0x18)" * (cast_expression "(int *)(lVar4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x18)" ( (binary_expression "lVar4 + 0x18" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_00166421;" goto statement_identifier ;)) (expression_statement "iVar3 = (int)param_1[0xc];" (assignment_expression "iVar3 = (int)param_1[0xc]" identifier = (cast_expression "(int)param_1[0xc]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0xc]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(iVar3 < *(int *)((long)param_1 + 100))" ( (binary_expression "iVar3 < *(int *)((long)param_1 + 100)" identifier < (pointer_expression "*(int *)((long)param_1 + 100)" * (cast_expression "(int *)((long)param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 100)" ( (binary_expression "(long)param_1 + 100" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) )) ;) })) (if_statement "if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) goto LAB_001662e7;" if (parenthesized_expression "((int)param_1[0xc] < *(int *)((long)param_1 + 100))" ( (binary_expression "(int)param_1[0xc] < *(int *)((long)param_1 + 100)" (cast_expression "(int)param_1[0xc]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0xc]" identifier [ number_literal ])) < (pointer_expression "*(int *)((long)param_1 + 100)" * (cast_expression "(int *)((long)param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 100)" ( (binary_expression "(long)param_1 + 100" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) )) (goto_statement "goto LAB_001662e7;" goto statement_identifier ;)) }))) (expression_statement "FUN_001661c4(param_1,0);" (call_expression "FUN_001661c4(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))) ;) (expression_statement "*(undefined1 *)((long)param_1 + 9) = 1;" (assignment_expression "*(undefined1 *)((long)param_1 + 9) = 1" (pointer_expression "*(undefined1 *)((long)param_1 + 9)" * (cast_expression "(undefined1 *)((long)param_1 + 9)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 9)" ( (binary_expression "(long)param_1 + 9" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_001662e7;" goto statement_identifier ;) (labeled_statement "LAB_00166337:\n  if ((ulong)param_1[0xe] < (ulong)param_1[0xd]) {\n    return;\n  }" statement_identifier : (if_statement "if ((ulong)param_1[0xe] < (ulong)param_1[0xd]) {\n    return;\n  }" if (parenthesized_expression "((ulong)param_1[0xe] < (ulong)param_1[0xd])" ( (binary_expression "(ulong)param_1[0xe] < (ulong)param_1[0xd]" (cast_expression "(ulong)param_1[0xe]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_1[0xe]" identifier [ number_literal ])) < (cast_expression "(ulong)param_1[0xd]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_1[0xd]" identifier [ number_literal ]))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) (goto_statement "goto LAB_00166350;" goto statement_identifier ;) })))
(translation_unit "void handle_compress(bz_stream *strm)\n\n{\n  uint *puVar1;\n  char **ppcVar2;\n  ulonglong *puVar3;\n  byte bVar4;\n  uint uVar5;\n  EState *s;\n  int iVar6;\n  bz_stream *pbVar7;\n  Bool *pBVar8;\n  uint8_t *puVar9;\n  \n  s = (EState *)strm->state;\nLAB_001662e7:\n  do {\n    if (s->state == '\x01') {\n      pbVar7 = s->strm;\n      if (pbVar7->avail_out == 0) goto LAB_00166337;\n      puVar9 = s->state_out_pos;\n      if (puVar9 < s->posZ) goto LAB_00166306;\n      goto LAB_00166350;\n    }\n  } while (s->state != '\x02');\n  goto LAB_0016639a;\n  while (puVar9 = s->state_out_pos, puVar9 < s->posZ) {\nLAB_00166306:\n    s->state_out_pos = puVar9 + 1;\n    *pbVar7->next_out = *puVar9;\n    puVar1 = &s->strm->avail_out;\n    *puVar1 = *puVar1 - 1;\n    ppcVar2 = &s->strm->next_out;\n    *ppcVar2 = *ppcVar2 + 1;\n    puVar3 = &s->strm->total_out;\n    *puVar3 = *puVar3 + 1;\n    pbVar7 = s->strm;\n    if (pbVar7->avail_out == 0) goto LAB_00166337;\n  }\nLAB_00166350:\n  if ((s->mode == '\x04') && (pbVar7->avail_in == 0)) {\n    if (0xff < s->state_in_ch) {\n      return;\n    }\n    if (s->state_in_len < 1) {\n      return;\n    }\n  }\n  s->nblock = 0;\n  s->blockCRC = 0xffffffff;\n  pBVar8 = s->inUse;\n  do {\n    *pBVar8 = '\0';\n    pBVar8 = pBVar8 + 1;\n  } while (s->unseqToSeq != pBVar8);\n  s->blockNo = s->blockNo + 1;\n  s->state = '\x02';\nLAB_0016639a:\n  pbVar7 = s->strm;\n  if (pbVar7->avail_in == 0) {\nLAB_00166421:\n    if (s->mode != '\x02') {\n      if (s->state_in_ch < 0x100) {\n        add_pair_to_block(s);\n      }\n      s->state_in_ch = 0x100;\n      s->state_in_len = 0;\n      BZ2_compressBlock(s,(uint)(s->mode == '\x04'));\n      s->state = '\x01';\n      goto LAB_001662e7;\n    }\n    if (s->nblock < s->nblockMAX) {\n      return;\n    }\n  }\n  else {\n    iVar6 = s->nblock;\n    if (iVar6 < s->nblockMAX) {\n      do {\n        bVar4 = *pbVar7->next_in;\n        uVar5 = s->state_in_ch;\n        if (bVar4 == uVar5) {\n          if (s->state_in_len == 0xff) {\nLAB_001664bf:\n            add_pair_to_block(s);\n            goto LAB_001664c7;\n          }\n          s->state_in_len = s->state_in_len + 1;\n        }\n        else if (s->state_in_len == 1) {\n          s->blockCRC = s->blockCRC << 8 ^ s->crc32table[(s->blockCRC >> 0x18 ^ uVar5) & 0xff];\n          s->inUse[uVar5] = '\x01';\n          s->block[iVar6] = (uint8_t)uVar5;\n          s->nblock = s->nblock + 1;\n          s->state_in_ch = (uint)bVar4;\n        }\n        else {\n          if (uVar5 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          s->state_in_ch = (uint)bVar4;\n          s->state_in_len = 1;\n        }\n        ppcVar2 = &s->strm->next_in;\n        *ppcVar2 = *ppcVar2 + 1;\n        puVar1 = &s->strm->avail_in;\n        *puVar1 = *puVar1 - 1;\n        pbVar7 = s->strm;\n        if (pbVar7->avail_in == 0) goto LAB_00166421;\n        iVar6 = s->nblock;\n      } while (iVar6 < s->nblockMAX);\n    }\n    if (s->nblock < s->nblockMAX) goto LAB_001662e7;\n  }\n  BZ2_compressBlock(s,0);\n  s->state = '\x01';\n  goto LAB_001662e7;\nLAB_00166337:\n  if (s->state_out_pos < s->posZ) {\n    return;\n  }\n  goto LAB_00166350;\n}\n\n" (function_definition "void handle_compress(bz_stream *strm)\n\n{\n  uint *puVar1;\n  char **ppcVar2;\n  ulonglong *puVar3;\n  byte bVar4;\n  uint uVar5;\n  EState *s;\n  int iVar6;\n  bz_stream *pbVar7;\n  Bool *pBVar8;\n  uint8_t *puVar9;\n  \n  s = (EState *)strm->state;\nLAB_001662e7:\n  do {\n    if (s->state == '\x01') {\n      pbVar7 = s->strm;\n      if (pbVar7->avail_out == 0) goto LAB_00166337;\n      puVar9 = s->state_out_pos;\n      if (puVar9 < s->posZ) goto LAB_00166306;\n      goto LAB_00166350;\n    }\n  } while (s->state != '\x02');\n  goto LAB_0016639a;\n  while (puVar9 = s->state_out_pos, puVar9 < s->posZ) {\nLAB_00166306:\n    s->state_out_pos = puVar9 + 1;\n    *pbVar7->next_out = *puVar9;\n    puVar1 = &s->strm->avail_out;\n    *puVar1 = *puVar1 - 1;\n    ppcVar2 = &s->strm->next_out;\n    *ppcVar2 = *ppcVar2 + 1;\n    puVar3 = &s->strm->total_out;\n    *puVar3 = *puVar3 + 1;\n    pbVar7 = s->strm;\n    if (pbVar7->avail_out == 0) goto LAB_00166337;\n  }\nLAB_00166350:\n  if ((s->mode == '\x04') && (pbVar7->avail_in == 0)) {\n    if (0xff < s->state_in_ch) {\n      return;\n    }\n    if (s->state_in_len < 1) {\n      return;\n    }\n  }\n  s->nblock = 0;\n  s->blockCRC = 0xffffffff;\n  pBVar8 = s->inUse;\n  do {\n    *pBVar8 = '\0';\n    pBVar8 = pBVar8 + 1;\n  } while (s->unseqToSeq != pBVar8);\n  s->blockNo = s->blockNo + 1;\n  s->state = '\x02';\nLAB_0016639a:\n  pbVar7 = s->strm;\n  if (pbVar7->avail_in == 0) {\nLAB_00166421:\n    if (s->mode != '\x02') {\n      if (s->state_in_ch < 0x100) {\n        add_pair_to_block(s);\n      }\n      s->state_in_ch = 0x100;\n      s->state_in_len = 0;\n      BZ2_compressBlock(s,(uint)(s->mode == '\x04'));\n      s->state = '\x01';\n      goto LAB_001662e7;\n    }\n    if (s->nblock < s->nblockMAX) {\n      return;\n    }\n  }\n  else {\n    iVar6 = s->nblock;\n    if (iVar6 < s->nblockMAX) {\n      do {\n        bVar4 = *pbVar7->next_in;\n        uVar5 = s->state_in_ch;\n        if (bVar4 == uVar5) {\n          if (s->state_in_len == 0xff) {\nLAB_001664bf:\n            add_pair_to_block(s);\n            goto LAB_001664c7;\n          }\n          s->state_in_len = s->state_in_len + 1;\n        }\n        else if (s->state_in_len == 1) {\n          s->blockCRC = s->blockCRC << 8 ^ s->crc32table[(s->blockCRC >> 0x18 ^ uVar5) & 0xff];\n          s->inUse[uVar5] = '\x01';\n          s->block[iVar6] = (uint8_t)uVar5;\n          s->nblock = s->nblock + 1;\n          s->state_in_ch = (uint)bVar4;\n        }\n        else {\n          if (uVar5 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          s->state_in_ch = (uint)bVar4;\n          s->state_in_len = 1;\n        }\n        ppcVar2 = &s->strm->next_in;\n        *ppcVar2 = *ppcVar2 + 1;\n        puVar1 = &s->strm->avail_in;\n        *puVar1 = *puVar1 - 1;\n        pbVar7 = s->strm;\n        if (pbVar7->avail_in == 0) goto LAB_00166421;\n        iVar6 = s->nblock;\n      } while (iVar6 < s->nblockMAX);\n    }\n    if (s->nblock < s->nblockMAX) goto LAB_001662e7;\n  }\n  BZ2_compressBlock(s,0);\n  s->state = '\x01';\n  goto LAB_001662e7;\nLAB_00166337:\n  if (s->state_out_pos < s->posZ) {\n    return;\n  }\n  goto LAB_00166350;\n}" primitive_type (function_declarator "handle_compress(bz_stream *strm)" identifier (parameter_list "(bz_stream *strm)" ( (parameter_declaration "bz_stream *strm" type_identifier (pointer_declarator "*strm" * identifier)) ))) (compound_statement "{\n  uint *puVar1;\n  char **ppcVar2;\n  ulonglong *puVar3;\n  byte bVar4;\n  uint uVar5;\n  EState *s;\n  int iVar6;\n  bz_stream *pbVar7;\n  Bool *pBVar8;\n  uint8_t *puVar9;\n  \n  s = (EState *)strm->state;\nLAB_001662e7:\n  do {\n    if (s->state == '\x01') {\n      pbVar7 = s->strm;\n      if (pbVar7->avail_out == 0) goto LAB_00166337;\n      puVar9 = s->state_out_pos;\n      if (puVar9 < s->posZ) goto LAB_00166306;\n      goto LAB_00166350;\n    }\n  } while (s->state != '\x02');\n  goto LAB_0016639a;\n  while (puVar9 = s->state_out_pos, puVar9 < s->posZ) {\nLAB_00166306:\n    s->state_out_pos = puVar9 + 1;\n    *pbVar7->next_out = *puVar9;\n    puVar1 = &s->strm->avail_out;\n    *puVar1 = *puVar1 - 1;\n    ppcVar2 = &s->strm->next_out;\n    *ppcVar2 = *ppcVar2 + 1;\n    puVar3 = &s->strm->total_out;\n    *puVar3 = *puVar3 + 1;\n    pbVar7 = s->strm;\n    if (pbVar7->avail_out == 0) goto LAB_00166337;\n  }\nLAB_00166350:\n  if ((s->mode == '\x04') && (pbVar7->avail_in == 0)) {\n    if (0xff < s->state_in_ch) {\n      return;\n    }\n    if (s->state_in_len < 1) {\n      return;\n    }\n  }\n  s->nblock = 0;\n  s->blockCRC = 0xffffffff;\n  pBVar8 = s->inUse;\n  do {\n    *pBVar8 = '\0';\n    pBVar8 = pBVar8 + 1;\n  } while (s->unseqToSeq != pBVar8);\n  s->blockNo = s->blockNo + 1;\n  s->state = '\x02';\nLAB_0016639a:\n  pbVar7 = s->strm;\n  if (pbVar7->avail_in == 0) {\nLAB_00166421:\n    if (s->mode != '\x02') {\n      if (s->state_in_ch < 0x100) {\n        add_pair_to_block(s);\n      }\n      s->state_in_ch = 0x100;\n      s->state_in_len = 0;\n      BZ2_compressBlock(s,(uint)(s->mode == '\x04'));\n      s->state = '\x01';\n      goto LAB_001662e7;\n    }\n    if (s->nblock < s->nblockMAX) {\n      return;\n    }\n  }\n  else {\n    iVar6 = s->nblock;\n    if (iVar6 < s->nblockMAX) {\n      do {\n        bVar4 = *pbVar7->next_in;\n        uVar5 = s->state_in_ch;\n        if (bVar4 == uVar5) {\n          if (s->state_in_len == 0xff) {\nLAB_001664bf:\n            add_pair_to_block(s);\n            goto LAB_001664c7;\n          }\n          s->state_in_len = s->state_in_len + 1;\n        }\n        else if (s->state_in_len == 1) {\n          s->blockCRC = s->blockCRC << 8 ^ s->crc32table[(s->blockCRC >> 0x18 ^ uVar5) & 0xff];\n          s->inUse[uVar5] = '\x01';\n          s->block[iVar6] = (uint8_t)uVar5;\n          s->nblock = s->nblock + 1;\n          s->state_in_ch = (uint)bVar4;\n        }\n        else {\n          if (uVar5 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          s->state_in_ch = (uint)bVar4;\n          s->state_in_len = 1;\n        }\n        ppcVar2 = &s->strm->next_in;\n        *ppcVar2 = *ppcVar2 + 1;\n        puVar1 = &s->strm->avail_in;\n        *puVar1 = *puVar1 - 1;\n        pbVar7 = s->strm;\n        if (pbVar7->avail_in == 0) goto LAB_00166421;\n        iVar6 = s->nblock;\n      } while (iVar6 < s->nblockMAX);\n    }\n    if (s->nblock < s->nblockMAX) goto LAB_001662e7;\n  }\n  BZ2_compressBlock(s,0);\n  s->state = '\x01';\n  goto LAB_001662e7;\nLAB_00166337:\n  if (s->state_out_pos < s->posZ) {\n    return;\n  }\n  goto LAB_00166350;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char **ppcVar2;" primitive_type (pointer_declarator "**ppcVar2" * (pointer_declarator "*ppcVar2" * identifier)) ;) (declaration "ulonglong *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "EState *s;" type_identifier (pointer_declarator "*s" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "bz_stream *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "Bool *pBVar8;" type_identifier (pointer_declarator "*pBVar8" * identifier) ;) (declaration "uint8_t *puVar9;" primitive_type (pointer_declarator "*puVar9" * identifier) ;) (expression_statement "s = (EState *)strm->state;" (assignment_expression "s = (EState *)strm->state" identifier = (cast_expression "(EState *)strm->state" ( (type_descriptor "EState *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "strm->state" identifier -> field_identifier))) ;) (labeled_statement "LAB_001662e7:\n  do {\n    if (s->state == '\x01') {\n      pbVar7 = s->strm;\n      if (pbVar7->avail_out == 0) goto LAB_00166337;\n      puVar9 = s->state_out_pos;\n      if (puVar9 < s->posZ) goto LAB_00166306;\n      goto LAB_00166350;\n    }\n  } while (s->state != '\x02');" statement_identifier : (do_statement "do {\n    if (s->state == '\x01') {\n      pbVar7 = s->strm;\n      if (pbVar7->avail_out == 0) goto LAB_00166337;\n      puVar9 = s->state_out_pos;\n      if (puVar9 < s->posZ) goto LAB_00166306;\n      goto LAB_00166350;\n    }\n  } while (s->state != '\x02');" do (compound_statement "{\n    if (s->state == '\x01') {\n      pbVar7 = s->strm;\n      if (pbVar7->avail_out == 0) goto LAB_00166337;\n      puVar9 = s->state_out_pos;\n      if (puVar9 < s->posZ) goto LAB_00166306;\n      goto LAB_00166350;\n    }\n  }" { (if_statement "if (s->state == '\x01') {\n      pbVar7 = s->strm;\n      if (pbVar7->avail_out == 0) goto LAB_00166337;\n      puVar9 = s->state_out_pos;\n      if (puVar9 < s->posZ) goto LAB_00166306;\n      goto LAB_00166350;\n    }" if (parenthesized_expression "(s->state == '\x01')" ( (binary_expression "s->state == '\x01'" (field_expression "s->state" identifier -> field_identifier) == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n      pbVar7 = s->strm;\n      if (pbVar7->avail_out == 0) goto LAB_00166337;\n      puVar9 = s->state_out_pos;\n      if (puVar9 < s->posZ) goto LAB_00166306;\n      goto LAB_00166350;\n    }" { (expression_statement "pbVar7 = s->strm;" (assignment_expression "pbVar7 = s->strm" identifier = (field_expression "s->strm" identifier -> field_identifier)) ;) (if_statement "if (pbVar7->avail_out == 0) goto LAB_00166337;" if (parenthesized_expression "(pbVar7->avail_out == 0)" ( (binary_expression "pbVar7->avail_out == 0" (field_expression "pbVar7->avail_out" identifier -> field_identifier) == number_literal) )) (goto_statement "goto LAB_00166337;" goto statement_identifier ;)) (expression_statement "puVar9 = s->state_out_pos;" (assignment_expression "puVar9 = s->state_out_pos" identifier = (field_expression "s->state_out_pos" identifier -> field_identifier)) ;) (if_statement "if (puVar9 < s->posZ) goto LAB_00166306;" if (parenthesized_expression "(puVar9 < s->posZ)" ( (binary_expression "puVar9 < s->posZ" identifier < (field_expression "s->posZ" identifier -> field_identifier)) )) (goto_statement "goto LAB_00166306;" goto statement_identifier ;)) (goto_statement "goto LAB_00166350;" goto statement_identifier ;) })) }) while (parenthesized_expression "(s->state != '\x02')" ( (binary_expression "s->state != '\x02'" (field_expression "s->state" identifier -> field_identifier) != (char_literal "'\x02'" ' escape_sequence ')) )) ;)) (goto_statement "goto LAB_0016639a;" goto statement_identifier ;) (while_statement "while (puVar9 = s->state_out_pos, puVar9 < s->posZ) {\nLAB_00166306:\n    s->state_out_pos = puVar9 + 1;\n    *pbVar7->next_out = *puVar9;\n    puVar1 = &s->strm->avail_out;\n    *puVar1 = *puVar1 - 1;\n    ppcVar2 = &s->strm->next_out;\n    *ppcVar2 = *ppcVar2 + 1;\n    puVar3 = &s->strm->total_out;\n    *puVar3 = *puVar3 + 1;\n    pbVar7 = s->strm;\n    if (pbVar7->avail_out == 0) goto LAB_00166337;\n  }" while (parenthesized_expression "(puVar9 = s->state_out_pos, puVar9 < s->posZ)" ( (comma_expression "puVar9 = s->state_out_pos, puVar9 < s->posZ" (assignment_expression "puVar9 = s->state_out_pos" identifier = (field_expression "s->state_out_pos" identifier -> field_identifier)) , (binary_expression "puVar9 < s->posZ" identifier < (field_expression "s->posZ" identifier -> field_identifier))) )) (compound_statement "{\nLAB_00166306:\n    s->state_out_pos = puVar9 + 1;\n    *pbVar7->next_out = *puVar9;\n    puVar1 = &s->strm->avail_out;\n    *puVar1 = *puVar1 - 1;\n    ppcVar2 = &s->strm->next_out;\n    *ppcVar2 = *ppcVar2 + 1;\n    puVar3 = &s->strm->total_out;\n    *puVar3 = *puVar3 + 1;\n    pbVar7 = s->strm;\n    if (pbVar7->avail_out == 0) goto LAB_00166337;\n  }" { (labeled_statement "LAB_00166306:\n    s->state_out_pos = puVar9 + 1;" statement_identifier : (expression_statement "s->state_out_pos = puVar9 + 1;" (assignment_expression "s->state_out_pos = puVar9 + 1" (field_expression "s->state_out_pos" identifier -> field_identifier) = (binary_expression "puVar9 + 1" identifier + number_literal)) ;)) (expression_statement "*pbVar7->next_out = *puVar9;" (assignment_expression "*pbVar7->next_out = *puVar9" (pointer_expression "*pbVar7->next_out" * (field_expression "pbVar7->next_out" identifier -> field_identifier)) = (pointer_expression "*puVar9" * identifier)) ;) (expression_statement "puVar1 = &s->strm->avail_out;" (assignment_expression "puVar1 = &s->strm->avail_out" identifier = (pointer_expression "&s->strm->avail_out" & (field_expression "s->strm->avail_out" (field_expression "s->strm" identifier -> field_identifier) -> field_identifier))) ;) (expression_statement "*puVar1 = *puVar1 - 1;" (assignment_expression "*puVar1 = *puVar1 - 1" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 - 1" (pointer_expression "*puVar1" * identifier) - number_literal)) ;) (expression_statement "ppcVar2 = &s->strm->next_out;" (assignment_expression "ppcVar2 = &s->strm->next_out" identifier = (pointer_expression "&s->strm->next_out" & (field_expression "s->strm->next_out" (field_expression "s->strm" identifier -> field_identifier) -> field_identifier))) ;) (expression_statement "*ppcVar2 = *ppcVar2 + 1;" (assignment_expression "*ppcVar2 = *ppcVar2 + 1" (pointer_expression "*ppcVar2" * identifier) = (binary_expression "*ppcVar2 + 1" (pointer_expression "*ppcVar2" * identifier) + number_literal)) ;) (expression_statement "puVar3 = &s->strm->total_out;" (assignment_expression "puVar3 = &s->strm->total_out" identifier = (pointer_expression "&s->strm->total_out" & (field_expression "s->strm->total_out" (field_expression "s->strm" identifier -> field_identifier) -> field_identifier))) ;) (expression_statement "*puVar3 = *puVar3 + 1;" (assignment_expression "*puVar3 = *puVar3 + 1" (pointer_expression "*puVar3" * identifier) = (binary_expression "*puVar3 + 1" (pointer_expression "*puVar3" * identifier) + number_literal)) ;) (expression_statement "pbVar7 = s->strm;" (assignment_expression "pbVar7 = s->strm" identifier = (field_expression "s->strm" identifier -> field_identifier)) ;) (if_statement "if (pbVar7->avail_out == 0) goto LAB_00166337;" if (parenthesized_expression "(pbVar7->avail_out == 0)" ( (binary_expression "pbVar7->avail_out == 0" (field_expression "pbVar7->avail_out" identifier -> field_identifier) == number_literal) )) (goto_statement "goto LAB_00166337;" goto statement_identifier ;)) })) (labeled_statement "LAB_00166350:\n  if ((s->mode == '\x04') && (pbVar7->avail_in == 0)) {\n    if (0xff < s->state_in_ch) {\n      return;\n    }\n    if (s->state_in_len < 1) {\n      return;\n    }\n  }" statement_identifier : (if_statement "if ((s->mode == '\x04') && (pbVar7->avail_in == 0)) {\n    if (0xff < s->state_in_ch) {\n      return;\n    }\n    if (s->state_in_len < 1) {\n      return;\n    }\n  }" if (parenthesized_expression "((s->mode == '\x04') && (pbVar7->avail_in == 0))" ( (binary_expression "(s->mode == '\x04') && (pbVar7->avail_in == 0)" (parenthesized_expression "(s->mode == '\x04')" ( (binary_expression "s->mode == '\x04'" (field_expression "s->mode" identifier -> field_identifier) == (char_literal "'\x04'" ' escape_sequence ')) )) && (parenthesized_expression "(pbVar7->avail_in == 0)" ( (binary_expression "pbVar7->avail_in == 0" (field_expression "pbVar7->avail_in" identifier -> field_identifier) == number_literal) ))) )) (compound_statement "{\n    if (0xff < s->state_in_ch) {\n      return;\n    }\n    if (s->state_in_len < 1) {\n      return;\n    }\n  }" { (if_statement "if (0xff < s->state_in_ch) {\n      return;\n    }" if (parenthesized_expression "(0xff < s->state_in_ch)" ( (binary_expression "0xff < s->state_in_ch" number_literal < (field_expression "s->state_in_ch" identifier -> field_identifier)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (if_statement "if (s->state_in_len < 1) {\n      return;\n    }" if (parenthesized_expression "(s->state_in_len < 1)" ( (binary_expression "s->state_in_len < 1" (field_expression "s->state_in_len" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }))) (expression_statement "s->nblock = 0;" (assignment_expression "s->nblock = 0" (field_expression "s->nblock" identifier -> field_identifier) = number_literal) ;) (expression_statement "s->blockCRC = 0xffffffff;" (assignment_expression "s->blockCRC = 0xffffffff" (field_expression "s->blockCRC" identifier -> field_identifier) = number_literal) ;) (expression_statement "pBVar8 = s->inUse;" (assignment_expression "pBVar8 = s->inUse" identifier = (field_expression "s->inUse" identifier -> field_identifier)) ;) (do_statement "do {\n    *pBVar8 = '\0';\n    pBVar8 = pBVar8 + 1;\n  } while (s->unseqToSeq != pBVar8);" do (compound_statement "{\n    *pBVar8 = '\0';\n    pBVar8 = pBVar8 + 1;\n  }" { (expression_statement "*pBVar8 = '\0';" (assignment_expression "*pBVar8 = '\0'" (pointer_expression "*pBVar8" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pBVar8 = pBVar8 + 1;" (assignment_expression "pBVar8 = pBVar8 + 1" identifier = (binary_expression "pBVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(s->unseqToSeq != pBVar8)" ( (binary_expression "s->unseqToSeq != pBVar8" (field_expression "s->unseqToSeq" identifier -> field_identifier) != identifier) )) ;) (expression_statement "s->blockNo = s->blockNo + 1;" (assignment_expression "s->blockNo = s->blockNo + 1" (field_expression "s->blockNo" identifier -> field_identifier) = (binary_expression "s->blockNo + 1" (field_expression "s->blockNo" identifier -> field_identifier) + number_literal)) ;) (expression_statement "s->state = '\x02';" (assignment_expression "s->state = '\x02'" (field_expression "s->state" identifier -> field_identifier) = (char_literal "'\x02'" ' escape_sequence ')) ;) (labeled_statement "LAB_0016639a:\n  pbVar7 = s->strm;" statement_identifier : (expression_statement "pbVar7 = s->strm;" (assignment_expression "pbVar7 = s->strm" identifier = (field_expression "s->strm" identifier -> field_identifier)) ;)) (if_statement "if (pbVar7->avail_in == 0) {\nLAB_00166421:\n    if (s->mode != '\x02') {\n      if (s->state_in_ch < 0x100) {\n        add_pair_to_block(s);\n      }\n      s->state_in_ch = 0x100;\n      s->state_in_len = 0;\n      BZ2_compressBlock(s,(uint)(s->mode == '\x04'));\n      s->state = '\x01';\n      goto LAB_001662e7;\n    }\n    if (s->nblock < s->nblockMAX) {\n      return;\n    }\n  }\n  else {\n    iVar6 = s->nblock;\n    if (iVar6 < s->nblockMAX) {\n      do {\n        bVar4 = *pbVar7->next_in;\n        uVar5 = s->state_in_ch;\n        if (bVar4 == uVar5) {\n          if (s->state_in_len == 0xff) {\nLAB_001664bf:\n            add_pair_to_block(s);\n            goto LAB_001664c7;\n          }\n          s->state_in_len = s->state_in_len + 1;\n        }\n        else if (s->state_in_len == 1) {\n          s->blockCRC = s->blockCRC << 8 ^ s->crc32table[(s->blockCRC >> 0x18 ^ uVar5) & 0xff];\n          s->inUse[uVar5] = '\x01';\n          s->block[iVar6] = (uint8_t)uVar5;\n          s->nblock = s->nblock + 1;\n          s->state_in_ch = (uint)bVar4;\n        }\n        else {\n          if (uVar5 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          s->state_in_ch = (uint)bVar4;\n          s->state_in_len = 1;\n        }\n        ppcVar2 = &s->strm->next_in;\n        *ppcVar2 = *ppcVar2 + 1;\n        puVar1 = &s->strm->avail_in;\n        *puVar1 = *puVar1 - 1;\n        pbVar7 = s->strm;\n        if (pbVar7->avail_in == 0) goto LAB_00166421;\n        iVar6 = s->nblock;\n      } while (iVar6 < s->nblockMAX);\n    }\n    if (s->nblock < s->nblockMAX) goto LAB_001662e7;\n  }" if (parenthesized_expression "(pbVar7->avail_in == 0)" ( (binary_expression "pbVar7->avail_in == 0" (field_expression "pbVar7->avail_in" identifier -> field_identifier) == number_literal) )) (compound_statement "{\nLAB_00166421:\n    if (s->mode != '\x02') {\n      if (s->state_in_ch < 0x100) {\n        add_pair_to_block(s);\n      }\n      s->state_in_ch = 0x100;\n      s->state_in_len = 0;\n      BZ2_compressBlock(s,(uint)(s->mode == '\x04'));\n      s->state = '\x01';\n      goto LAB_001662e7;\n    }\n    if (s->nblock < s->nblockMAX) {\n      return;\n    }\n  }" { (labeled_statement "LAB_00166421:\n    if (s->mode != '\x02') {\n      if (s->state_in_ch < 0x100) {\n        add_pair_to_block(s);\n      }\n      s->state_in_ch = 0x100;\n      s->state_in_len = 0;\n      BZ2_compressBlock(s,(uint)(s->mode == '\x04'));\n      s->state = '\x01';\n      goto LAB_001662e7;\n    }" statement_identifier : (if_statement "if (s->mode != '\x02') {\n      if (s->state_in_ch < 0x100) {\n        add_pair_to_block(s);\n      }\n      s->state_in_ch = 0x100;\n      s->state_in_len = 0;\n      BZ2_compressBlock(s,(uint)(s->mode == '\x04'));\n      s->state = '\x01';\n      goto LAB_001662e7;\n    }" if (parenthesized_expression "(s->mode != '\x02')" ( (binary_expression "s->mode != '\x02'" (field_expression "s->mode" identifier -> field_identifier) != (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n      if (s->state_in_ch < 0x100) {\n        add_pair_to_block(s);\n      }\n      s->state_in_ch = 0x100;\n      s->state_in_len = 0;\n      BZ2_compressBlock(s,(uint)(s->mode == '\x04'));\n      s->state = '\x01';\n      goto LAB_001662e7;\n    }" { (if_statement "if (s->state_in_ch < 0x100) {\n        add_pair_to_block(s);\n      }" if (parenthesized_expression "(s->state_in_ch < 0x100)" ( (binary_expression "s->state_in_ch < 0x100" (field_expression "s->state_in_ch" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n        add_pair_to_block(s);\n      }" { (expression_statement "add_pair_to_block(s);" (call_expression "add_pair_to_block(s)" identifier (argument_list "(s)" ( identifier ))) ;) })) (expression_statement "s->state_in_ch = 0x100;" (assignment_expression "s->state_in_ch = 0x100" (field_expression "s->state_in_ch" identifier -> field_identifier) = number_literal) ;) (expression_statement "s->state_in_len = 0;" (assignment_expression "s->state_in_len = 0" (field_expression "s->state_in_len" identifier -> field_identifier) = number_literal) ;) (expression_statement "BZ2_compressBlock(s,(uint)(s->mode == '\x04'));" (call_expression "BZ2_compressBlock(s,(uint)(s->mode == '\x04'))" identifier (argument_list "(s,(uint)(s->mode == '\x04'))" ( identifier , (call_expression "(uint)(s->mode == '\x04')" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(s->mode == '\x04')" ( (binary_expression "s->mode == '\x04'" (field_expression "s->mode" identifier -> field_identifier) == (char_literal "'\x04'" ' escape_sequence ')) ))) ))) ;) (expression_statement "s->state = '\x01';" (assignment_expression "s->state = '\x01'" (field_expression "s->state" identifier -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) (goto_statement "goto LAB_001662e7;" goto statement_identifier ;) }))) (if_statement "if (s->nblock < s->nblockMAX) {\n      return;\n    }" if (parenthesized_expression "(s->nblock < s->nblockMAX)" ( (binary_expression "s->nblock < s->nblockMAX" (field_expression "s->nblock" identifier -> field_identifier) < (field_expression "s->nblockMAX" identifier -> field_identifier)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }) (else_clause "else {\n    iVar6 = s->nblock;\n    if (iVar6 < s->nblockMAX) {\n      do {\n        bVar4 = *pbVar7->next_in;\n        uVar5 = s->state_in_ch;\n        if (bVar4 == uVar5) {\n          if (s->state_in_len == 0xff) {\nLAB_001664bf:\n            add_pair_to_block(s);\n            goto LAB_001664c7;\n          }\n          s->state_in_len = s->state_in_len + 1;\n        }\n        else if (s->state_in_len == 1) {\n          s->blockCRC = s->blockCRC << 8 ^ s->crc32table[(s->blockCRC >> 0x18 ^ uVar5) & 0xff];\n          s->inUse[uVar5] = '\x01';\n          s->block[iVar6] = (uint8_t)uVar5;\n          s->nblock = s->nblock + 1;\n          s->state_in_ch = (uint)bVar4;\n        }\n        else {\n          if (uVar5 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          s->state_in_ch = (uint)bVar4;\n          s->state_in_len = 1;\n        }\n        ppcVar2 = &s->strm->next_in;\n        *ppcVar2 = *ppcVar2 + 1;\n        puVar1 = &s->strm->avail_in;\n        *puVar1 = *puVar1 - 1;\n        pbVar7 = s->strm;\n        if (pbVar7->avail_in == 0) goto LAB_00166421;\n        iVar6 = s->nblock;\n      } while (iVar6 < s->nblockMAX);\n    }\n    if (s->nblock < s->nblockMAX) goto LAB_001662e7;\n  }" else (compound_statement "{\n    iVar6 = s->nblock;\n    if (iVar6 < s->nblockMAX) {\n      do {\n        bVar4 = *pbVar7->next_in;\n        uVar5 = s->state_in_ch;\n        if (bVar4 == uVar5) {\n          if (s->state_in_len == 0xff) {\nLAB_001664bf:\n            add_pair_to_block(s);\n            goto LAB_001664c7;\n          }\n          s->state_in_len = s->state_in_len + 1;\n        }\n        else if (s->state_in_len == 1) {\n          s->blockCRC = s->blockCRC << 8 ^ s->crc32table[(s->blockCRC >> 0x18 ^ uVar5) & 0xff];\n          s->inUse[uVar5] = '\x01';\n          s->block[iVar6] = (uint8_t)uVar5;\n          s->nblock = s->nblock + 1;\n          s->state_in_ch = (uint)bVar4;\n        }\n        else {\n          if (uVar5 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          s->state_in_ch = (uint)bVar4;\n          s->state_in_len = 1;\n        }\n        ppcVar2 = &s->strm->next_in;\n        *ppcVar2 = *ppcVar2 + 1;\n        puVar1 = &s->strm->avail_in;\n        *puVar1 = *puVar1 - 1;\n        pbVar7 = s->strm;\n        if (pbVar7->avail_in == 0) goto LAB_00166421;\n        iVar6 = s->nblock;\n      } while (iVar6 < s->nblockMAX);\n    }\n    if (s->nblock < s->nblockMAX) goto LAB_001662e7;\n  }" { (expression_statement "iVar6 = s->nblock;" (assignment_expression "iVar6 = s->nblock" identifier = (field_expression "s->nblock" identifier -> field_identifier)) ;) (if_statement "if (iVar6 < s->nblockMAX) {\n      do {\n        bVar4 = *pbVar7->next_in;\n        uVar5 = s->state_in_ch;\n        if (bVar4 == uVar5) {\n          if (s->state_in_len == 0xff) {\nLAB_001664bf:\n            add_pair_to_block(s);\n            goto LAB_001664c7;\n          }\n          s->state_in_len = s->state_in_len + 1;\n        }\n        else if (s->state_in_len == 1) {\n          s->blockCRC = s->blockCRC << 8 ^ s->crc32table[(s->blockCRC >> 0x18 ^ uVar5) & 0xff];\n          s->inUse[uVar5] = '\x01';\n          s->block[iVar6] = (uint8_t)uVar5;\n          s->nblock = s->nblock + 1;\n          s->state_in_ch = (uint)bVar4;\n        }\n        else {\n          if (uVar5 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          s->state_in_ch = (uint)bVar4;\n          s->state_in_len = 1;\n        }\n        ppcVar2 = &s->strm->next_in;\n        *ppcVar2 = *ppcVar2 + 1;\n        puVar1 = &s->strm->avail_in;\n        *puVar1 = *puVar1 - 1;\n        pbVar7 = s->strm;\n        if (pbVar7->avail_in == 0) goto LAB_00166421;\n        iVar6 = s->nblock;\n      } while (iVar6 < s->nblockMAX);\n    }" if (parenthesized_expression "(iVar6 < s->nblockMAX)" ( (binary_expression "iVar6 < s->nblockMAX" identifier < (field_expression "s->nblockMAX" identifier -> field_identifier)) )) (compound_statement "{\n      do {\n        bVar4 = *pbVar7->next_in;\n        uVar5 = s->state_in_ch;\n        if (bVar4 == uVar5) {\n          if (s->state_in_len == 0xff) {\nLAB_001664bf:\n            add_pair_to_block(s);\n            goto LAB_001664c7;\n          }\n          s->state_in_len = s->state_in_len + 1;\n        }\n        else if (s->state_in_len == 1) {\n          s->blockCRC = s->blockCRC << 8 ^ s->crc32table[(s->blockCRC >> 0x18 ^ uVar5) & 0xff];\n          s->inUse[uVar5] = '\x01';\n          s->block[iVar6] = (uint8_t)uVar5;\n          s->nblock = s->nblock + 1;\n          s->state_in_ch = (uint)bVar4;\n        }\n        else {\n          if (uVar5 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          s->state_in_ch = (uint)bVar4;\n          s->state_in_len = 1;\n        }\n        ppcVar2 = &s->strm->next_in;\n        *ppcVar2 = *ppcVar2 + 1;\n        puVar1 = &s->strm->avail_in;\n        *puVar1 = *puVar1 - 1;\n        pbVar7 = s->strm;\n        if (pbVar7->avail_in == 0) goto LAB_00166421;\n        iVar6 = s->nblock;\n      } while (iVar6 < s->nblockMAX);\n    }" { (do_statement "do {\n        bVar4 = *pbVar7->next_in;\n        uVar5 = s->state_in_ch;\n        if (bVar4 == uVar5) {\n          if (s->state_in_len == 0xff) {\nLAB_001664bf:\n            add_pair_to_block(s);\n            goto LAB_001664c7;\n          }\n          s->state_in_len = s->state_in_len + 1;\n        }\n        else if (s->state_in_len == 1) {\n          s->blockCRC = s->blockCRC << 8 ^ s->crc32table[(s->blockCRC >> 0x18 ^ uVar5) & 0xff];\n          s->inUse[uVar5] = '\x01';\n          s->block[iVar6] = (uint8_t)uVar5;\n          s->nblock = s->nblock + 1;\n          s->state_in_ch = (uint)bVar4;\n        }\n        else {\n          if (uVar5 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          s->state_in_ch = (uint)bVar4;\n          s->state_in_len = 1;\n        }\n        ppcVar2 = &s->strm->next_in;\n        *ppcVar2 = *ppcVar2 + 1;\n        puVar1 = &s->strm->avail_in;\n        *puVar1 = *puVar1 - 1;\n        pbVar7 = s->strm;\n        if (pbVar7->avail_in == 0) goto LAB_00166421;\n        iVar6 = s->nblock;\n      } while (iVar6 < s->nblockMAX);" do (compound_statement "{\n        bVar4 = *pbVar7->next_in;\n        uVar5 = s->state_in_ch;\n        if (bVar4 == uVar5) {\n          if (s->state_in_len == 0xff) {\nLAB_001664bf:\n            add_pair_to_block(s);\n            goto LAB_001664c7;\n          }\n          s->state_in_len = s->state_in_len + 1;\n        }\n        else if (s->state_in_len == 1) {\n          s->blockCRC = s->blockCRC << 8 ^ s->crc32table[(s->blockCRC >> 0x18 ^ uVar5) & 0xff];\n          s->inUse[uVar5] = '\x01';\n          s->block[iVar6] = (uint8_t)uVar5;\n          s->nblock = s->nblock + 1;\n          s->state_in_ch = (uint)bVar4;\n        }\n        else {\n          if (uVar5 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          s->state_in_ch = (uint)bVar4;\n          s->state_in_len = 1;\n        }\n        ppcVar2 = &s->strm->next_in;\n        *ppcVar2 = *ppcVar2 + 1;\n        puVar1 = &s->strm->avail_in;\n        *puVar1 = *puVar1 - 1;\n        pbVar7 = s->strm;\n        if (pbVar7->avail_in == 0) goto LAB_00166421;\n        iVar6 = s->nblock;\n      }" { (expression_statement "bVar4 = *pbVar7->next_in;" (assignment_expression "bVar4 = *pbVar7->next_in" identifier = (pointer_expression "*pbVar7->next_in" * (field_expression "pbVar7->next_in" identifier -> field_identifier))) ;) (expression_statement "uVar5 = s->state_in_ch;" (assignment_expression "uVar5 = s->state_in_ch" identifier = (field_expression "s->state_in_ch" identifier -> field_identifier)) ;) (if_statement "if (bVar4 == uVar5) {\n          if (s->state_in_len == 0xff) {\nLAB_001664bf:\n            add_pair_to_block(s);\n            goto LAB_001664c7;\n          }\n          s->state_in_len = s->state_in_len + 1;\n        }\n        else if (s->state_in_len == 1) {\n          s->blockCRC = s->blockCRC << 8 ^ s->crc32table[(s->blockCRC >> 0x18 ^ uVar5) & 0xff];\n          s->inUse[uVar5] = '\x01';\n          s->block[iVar6] = (uint8_t)uVar5;\n          s->nblock = s->nblock + 1;\n          s->state_in_ch = (uint)bVar4;\n        }\n        else {\n          if (uVar5 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          s->state_in_ch = (uint)bVar4;\n          s->state_in_len = 1;\n        }" if (parenthesized_expression "(bVar4 == uVar5)" ( (binary_expression "bVar4 == uVar5" identifier == identifier) )) (compound_statement "{\n          if (s->state_in_len == 0xff) {\nLAB_001664bf:\n            add_pair_to_block(s);\n            goto LAB_001664c7;\n          }\n          s->state_in_len = s->state_in_len + 1;\n        }" { (if_statement "if (s->state_in_len == 0xff) {\nLAB_001664bf:\n            add_pair_to_block(s);\n            goto LAB_001664c7;\n          }" if (parenthesized_expression "(s->state_in_len == 0xff)" ( (binary_expression "s->state_in_len == 0xff" (field_expression "s->state_in_len" identifier -> field_identifier) == number_literal) )) (compound_statement "{\nLAB_001664bf:\n            add_pair_to_block(s);\n            goto LAB_001664c7;\n          }" { (labeled_statement "LAB_001664bf:\n            add_pair_to_block(s);" statement_identifier : (expression_statement "add_pair_to_block(s);" (call_expression "add_pair_to_block(s)" identifier (argument_list "(s)" ( identifier ))) ;)) (goto_statement "goto LAB_001664c7;" goto statement_identifier ;) })) (expression_statement "s->state_in_len = s->state_in_len + 1;" (assignment_expression "s->state_in_len = s->state_in_len + 1" (field_expression "s->state_in_len" identifier -> field_identifier) = (binary_expression "s->state_in_len + 1" (field_expression "s->state_in_len" identifier -> field_identifier) + number_literal)) ;) }) (else_clause "else if (s->state_in_len == 1) {\n          s->blockCRC = s->blockCRC << 8 ^ s->crc32table[(s->blockCRC >> 0x18 ^ uVar5) & 0xff];\n          s->inUse[uVar5] = '\x01';\n          s->block[iVar6] = (uint8_t)uVar5;\n          s->nblock = s->nblock + 1;\n          s->state_in_ch = (uint)bVar4;\n        }\n        else {\n          if (uVar5 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          s->state_in_ch = (uint)bVar4;\n          s->state_in_len = 1;\n        }" else (if_statement "if (s->state_in_len == 1) {\n          s->blockCRC = s->blockCRC << 8 ^ s->crc32table[(s->blockCRC >> 0x18 ^ uVar5) & 0xff];\n          s->inUse[uVar5] = '\x01';\n          s->block[iVar6] = (uint8_t)uVar5;\n          s->nblock = s->nblock + 1;\n          s->state_in_ch = (uint)bVar4;\n        }\n        else {\n          if (uVar5 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          s->state_in_ch = (uint)bVar4;\n          s->state_in_len = 1;\n        }" if (parenthesized_expression "(s->state_in_len == 1)" ( (binary_expression "s->state_in_len == 1" (field_expression "s->state_in_len" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n          s->blockCRC = s->blockCRC << 8 ^ s->crc32table[(s->blockCRC >> 0x18 ^ uVar5) & 0xff];\n          s->inUse[uVar5] = '\x01';\n          s->block[iVar6] = (uint8_t)uVar5;\n          s->nblock = s->nblock + 1;\n          s->state_in_ch = (uint)bVar4;\n        }" { (expression_statement "s->blockCRC = s->blockCRC << 8 ^ s->crc32table[(s->blockCRC >> 0x18 ^ uVar5) & 0xff];" (assignment_expression "s->blockCRC = s->blockCRC << 8 ^ s->crc32table[(s->blockCRC >> 0x18 ^ uVar5) & 0xff]" (field_expression "s->blockCRC" identifier -> field_identifier) = (binary_expression "s->blockCRC << 8 ^ s->crc32table[(s->blockCRC >> 0x18 ^ uVar5) & 0xff]" (binary_expression "s->blockCRC << 8" (field_expression "s->blockCRC" identifier -> field_identifier) << number_literal) ^ (subscript_expression "s->crc32table[(s->blockCRC >> 0x18 ^ uVar5) & 0xff]" (field_expression "s->crc32table" identifier -> field_identifier) [ (binary_expression "(s->blockCRC >> 0x18 ^ uVar5) & 0xff" (parenthesized_expression "(s->blockCRC >> 0x18 ^ uVar5)" ( (binary_expression "s->blockCRC >> 0x18 ^ uVar5" (binary_expression "s->blockCRC >> 0x18" (field_expression "s->blockCRC" identifier -> field_identifier) >> number_literal) ^ identifier) )) & number_literal) ]))) ;) (expression_statement "s->inUse[uVar5] = '\x01';" (assignment_expression "s->inUse[uVar5] = '\x01'" (subscript_expression "s->inUse[uVar5]" (field_expression "s->inUse" identifier -> field_identifier) [ identifier ]) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "s->block[iVar6] = (uint8_t)uVar5;" (assignment_expression "s->block[iVar6] = (uint8_t)uVar5" (subscript_expression "s->block[iVar6]" (field_expression "s->block" identifier -> field_identifier) [ identifier ]) = (cast_expression "(uint8_t)uVar5" ( (type_descriptor "uint8_t" primitive_type) ) identifier)) ;) (expression_statement "s->nblock = s->nblock + 1;" (assignment_expression "s->nblock = s->nblock + 1" (field_expression "s->nblock" identifier -> field_identifier) = (binary_expression "s->nblock + 1" (field_expression "s->nblock" identifier -> field_identifier) + number_literal)) ;) (expression_statement "s->state_in_ch = (uint)bVar4;" (assignment_expression "s->state_in_ch = (uint)bVar4" (field_expression "s->state_in_ch" identifier -> field_identifier) = (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) }) (else_clause "else {\n          if (uVar5 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          s->state_in_ch = (uint)bVar4;\n          s->state_in_len = 1;\n        }" else (compound_statement "{\n          if (uVar5 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          s->state_in_ch = (uint)bVar4;\n          s->state_in_len = 1;\n        }" { (if_statement "if (uVar5 < 0x100) goto LAB_001664bf;" if (parenthesized_expression "(uVar5 < 0x100)" ( (binary_expression "uVar5 < 0x100" identifier < number_literal) )) (goto_statement "goto LAB_001664bf;" goto statement_identifier ;)) (labeled_statement "LAB_001664c7:\n          s->state_in_ch = (uint)bVar4;" statement_identifier : (expression_statement "s->state_in_ch = (uint)bVar4;" (assignment_expression "s->state_in_ch = (uint)bVar4" (field_expression "s->state_in_ch" identifier -> field_identifier) = (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier)) ;)) (expression_statement "s->state_in_len = 1;" (assignment_expression "s->state_in_len = 1" (field_expression "s->state_in_len" identifier -> field_identifier) = number_literal) ;) }))))) (expression_statement "ppcVar2 = &s->strm->next_in;" (assignment_expression "ppcVar2 = &s->strm->next_in" identifier = (pointer_expression "&s->strm->next_in" & (field_expression "s->strm->next_in" (field_expression "s->strm" identifier -> field_identifier) -> field_identifier))) ;) (expression_statement "*ppcVar2 = *ppcVar2 + 1;" (assignment_expression "*ppcVar2 = *ppcVar2 + 1" (pointer_expression "*ppcVar2" * identifier) = (binary_expression "*ppcVar2 + 1" (pointer_expression "*ppcVar2" * identifier) + number_literal)) ;) (expression_statement "puVar1 = &s->strm->avail_in;" (assignment_expression "puVar1 = &s->strm->avail_in" identifier = (pointer_expression "&s->strm->avail_in" & (field_expression "s->strm->avail_in" (field_expression "s->strm" identifier -> field_identifier) -> field_identifier))) ;) (expression_statement "*puVar1 = *puVar1 - 1;" (assignment_expression "*puVar1 = *puVar1 - 1" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 - 1" (pointer_expression "*puVar1" * identifier) - number_literal)) ;) (expression_statement "pbVar7 = s->strm;" (assignment_expression "pbVar7 = s->strm" identifier = (field_expression "s->strm" identifier -> field_identifier)) ;) (if_statement "if (pbVar7->avail_in == 0) goto LAB_00166421;" if (parenthesized_expression "(pbVar7->avail_in == 0)" ( (binary_expression "pbVar7->avail_in == 0" (field_expression "pbVar7->avail_in" identifier -> field_identifier) == number_literal) )) (goto_statement "goto LAB_00166421;" goto statement_identifier ;)) (expression_statement "iVar6 = s->nblock;" (assignment_expression "iVar6 = s->nblock" identifier = (field_expression "s->nblock" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(iVar6 < s->nblockMAX)" ( (binary_expression "iVar6 < s->nblockMAX" identifier < (field_expression "s->nblockMAX" identifier -> field_identifier)) )) ;) })) (if_statement "if (s->nblock < s->nblockMAX) goto LAB_001662e7;" if (parenthesized_expression "(s->nblock < s->nblockMAX)" ( (binary_expression "s->nblock < s->nblockMAX" (field_expression "s->nblock" identifier -> field_identifier) < (field_expression "s->nblockMAX" identifier -> field_identifier)) )) (goto_statement "goto LAB_001662e7;" goto statement_identifier ;)) }))) (expression_statement "BZ2_compressBlock(s,0);" (call_expression "BZ2_compressBlock(s,0)" identifier (argument_list "(s,0)" ( identifier , number_literal ))) ;) (expression_statement "s->state = '\x01';" (assignment_expression "s->state = '\x01'" (field_expression "s->state" identifier -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) (goto_statement "goto LAB_001662e7;" goto statement_identifier ;) (labeled_statement "LAB_00166337:\n  if (s->state_out_pos < s->posZ) {\n    return;\n  }" statement_identifier : (if_statement "if (s->state_out_pos < s->posZ) {\n    return;\n  }" if (parenthesized_expression "(s->state_out_pos < s->posZ)" ( (binary_expression "s->state_out_pos < s->posZ" (field_expression "s->state_out_pos" identifier -> field_identifier) < (field_expression "s->posZ" identifier -> field_identifier)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) (goto_statement "goto LAB_00166350;" goto statement_identifier ;) })))
(translation_unit "void FUN_001662d9(long *param_1)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  long lVar4;\n  long *plVar5;\n  undefined1 *puVar6;\n  \n  param_1 = (long *)*param_1;\nLAB_001662e7:\n  do {\n    if (*(char *)((long)param_1 + 9) == '\x01') {\n      lVar4 = *param_1;\n      if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n      puVar6 = (undefined1 *)param_1[0xe];\n      if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;\n      goto LAB_00166350;\n    }\n  } while (*(char *)((long)param_1 + 9) != '\x02');\n  goto LAB_0016639a;\n  while (puVar6 = (undefined1 *)param_1[0xe], puVar6 < (undefined1 *)param_1[0xd]) {\nLAB_00166306:\n    param_1[0xe] = (long)(puVar6 + 1);\n    **(undefined1 **)(lVar4 + 0x10) = *puVar6;\n    *(int *)(*param_1 + 0x1c) = *(int *)(*param_1 + 0x1c) + -1;\n    *(long *)(*param_1 + 0x10) = *(long *)(*param_1 + 0x10) + 1;\n    *(long *)(*param_1 + 0x20) = *(long *)(*param_1 + 0x20) + 1;\n    lVar4 = *param_1;\n    if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n  }\nLAB_00166350:\n  if (((char)param_1[1] == '\x04') && (*(int *)(lVar4 + 0x18) == 0)) {\n    if (0xff < *(uint *)(param_1 + 0xb)) {\n      return;\n    }\n    if (*(int *)((long)param_1 + 0x5c) < 1) {\n      return;\n    }\n  }\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  *(undefined4 *)(param_1 + 0x11) = 0xffffffff;\n  plVar5 = param_1 + 0x14;\n  do {\n    *(undefined1 *)plVar5 = 0;\n    plVar5 = (long *)((long)plVar5 + 1);\n  } while (param_1 + 0x34 != plVar5);\n  *(int *)(param_1 + 0x12) = (int)param_1[0x12] + 1;\n  *(undefined1 *)((long)param_1 + 9) = 2;\nLAB_0016639a:\n  lVar4 = *param_1;\n  if (*(int *)(lVar4 + 0x18) == 0) {\nLAB_00166421:\n    if ((char)param_1[1] != '\x02') {\n      if (*(uint *)(param_1 + 0xb) < 0x100) {\n        FUN_00164cd7(param_1);\n      }\n      *(undefined4 *)(param_1 + 0xb) = 0x100;\n      *(undefined4 *)((long)param_1 + 0x5c) = 0;\n      FUN_001661c4(param_1,(char)param_1[1] == '\x04');\n      *(undefined1 *)((long)param_1 + 9) = 1;\n      goto LAB_001662e7;\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) {\n      return;\n    }\n  }\n  else {\n    iVar3 = (int)param_1[0xc];\n    if (iVar3 < *(int *)((long)param_1 + 100)) {\n      do {\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      } while (iVar3 < *(int *)((long)param_1 + 100));\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) goto LAB_001662e7;\n  }\n  FUN_001661c4(param_1,0);\n  *(undefined1 *)((long)param_1 + 9) = 1;\n  goto LAB_001662e7;\nLAB_00166337:\n  if ((ulong)param_1[0xe] < (ulong)param_1[0xd]) {\n    return;\n  }\n  goto LAB_00166350;\n}\n\n" (function_definition "void FUN_001662d9(long *param_1)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  long lVar4;\n  long *plVar5;\n  undefined1 *puVar6;\n  \n  param_1 = (long *)*param_1;\nLAB_001662e7:\n  do {\n    if (*(char *)((long)param_1 + 9) == '\x01') {\n      lVar4 = *param_1;\n      if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n      puVar6 = (undefined1 *)param_1[0xe];\n      if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;\n      goto LAB_00166350;\n    }\n  } while (*(char *)((long)param_1 + 9) != '\x02');\n  goto LAB_0016639a;\n  while (puVar6 = (undefined1 *)param_1[0xe], puVar6 < (undefined1 *)param_1[0xd]) {\nLAB_00166306:\n    param_1[0xe] = (long)(puVar6 + 1);\n    **(undefined1 **)(lVar4 + 0x10) = *puVar6;\n    *(int *)(*param_1 + 0x1c) = *(int *)(*param_1 + 0x1c) + -1;\n    *(long *)(*param_1 + 0x10) = *(long *)(*param_1 + 0x10) + 1;\n    *(long *)(*param_1 + 0x20) = *(long *)(*param_1 + 0x20) + 1;\n    lVar4 = *param_1;\n    if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n  }\nLAB_00166350:\n  if (((char)param_1[1] == '\x04') && (*(int *)(lVar4 + 0x18) == 0)) {\n    if (0xff < *(uint *)(param_1 + 0xb)) {\n      return;\n    }\n    if (*(int *)((long)param_1 + 0x5c) < 1) {\n      return;\n    }\n  }\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  *(undefined4 *)(param_1 + 0x11) = 0xffffffff;\n  plVar5 = param_1 + 0x14;\n  do {\n    *(undefined1 *)plVar5 = 0;\n    plVar5 = (long *)((long)plVar5 + 1);\n  } while (param_1 + 0x34 != plVar5);\n  *(int *)(param_1 + 0x12) = (int)param_1[0x12] + 1;\n  *(undefined1 *)((long)param_1 + 9) = 2;\nLAB_0016639a:\n  lVar4 = *param_1;\n  if (*(int *)(lVar4 + 0x18) == 0) {\nLAB_00166421:\n    if ((char)param_1[1] != '\x02') {\n      if (*(uint *)(param_1 + 0xb) < 0x100) {\n        FUN_00164cd7(param_1);\n      }\n      *(undefined4 *)(param_1 + 0xb) = 0x100;\n      *(undefined4 *)((long)param_1 + 0x5c) = 0;\n      FUN_001661c4(param_1,(char)param_1[1] == '\x04');\n      *(undefined1 *)((long)param_1 + 9) = 1;\n      goto LAB_001662e7;\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) {\n      return;\n    }\n  }\n  else {\n    iVar3 = (int)param_1[0xc];\n    if (iVar3 < *(int *)((long)param_1 + 100)) {\n      do {\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      } while (iVar3 < *(int *)((long)param_1 + 100));\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) goto LAB_001662e7;\n  }\n  FUN_001661c4(param_1,0);\n  *(undefined1 *)((long)param_1 + 9) = 1;\n  goto LAB_001662e7;\nLAB_00166337:\n  if ((ulong)param_1[0xe] < (ulong)param_1[0xd]) {\n    return;\n  }\n  goto LAB_00166350;\n}" primitive_type (function_declarator "FUN_001662d9(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  uint uVar2;\n  int iVar3;\n  long lVar4;\n  long *plVar5;\n  undefined1 *puVar6;\n  \n  param_1 = (long *)*param_1;\nLAB_001662e7:\n  do {\n    if (*(char *)((long)param_1 + 9) == '\x01') {\n      lVar4 = *param_1;\n      if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n      puVar6 = (undefined1 *)param_1[0xe];\n      if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;\n      goto LAB_00166350;\n    }\n  } while (*(char *)((long)param_1 + 9) != '\x02');\n  goto LAB_0016639a;\n  while (puVar6 = (undefined1 *)param_1[0xe], puVar6 < (undefined1 *)param_1[0xd]) {\nLAB_00166306:\n    param_1[0xe] = (long)(puVar6 + 1);\n    **(undefined1 **)(lVar4 + 0x10) = *puVar6;\n    *(int *)(*param_1 + 0x1c) = *(int *)(*param_1 + 0x1c) + -1;\n    *(long *)(*param_1 + 0x10) = *(long *)(*param_1 + 0x10) + 1;\n    *(long *)(*param_1 + 0x20) = *(long *)(*param_1 + 0x20) + 1;\n    lVar4 = *param_1;\n    if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n  }\nLAB_00166350:\n  if (((char)param_1[1] == '\x04') && (*(int *)(lVar4 + 0x18) == 0)) {\n    if (0xff < *(uint *)(param_1 + 0xb)) {\n      return;\n    }\n    if (*(int *)((long)param_1 + 0x5c) < 1) {\n      return;\n    }\n  }\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  *(undefined4 *)(param_1 + 0x11) = 0xffffffff;\n  plVar5 = param_1 + 0x14;\n  do {\n    *(undefined1 *)plVar5 = 0;\n    plVar5 = (long *)((long)plVar5 + 1);\n  } while (param_1 + 0x34 != plVar5);\n  *(int *)(param_1 + 0x12) = (int)param_1[0x12] + 1;\n  *(undefined1 *)((long)param_1 + 9) = 2;\nLAB_0016639a:\n  lVar4 = *param_1;\n  if (*(int *)(lVar4 + 0x18) == 0) {\nLAB_00166421:\n    if ((char)param_1[1] != '\x02') {\n      if (*(uint *)(param_1 + 0xb) < 0x100) {\n        FUN_00164cd7(param_1);\n      }\n      *(undefined4 *)(param_1 + 0xb) = 0x100;\n      *(undefined4 *)((long)param_1 + 0x5c) = 0;\n      FUN_001661c4(param_1,(char)param_1[1] == '\x04');\n      *(undefined1 *)((long)param_1 + 9) = 1;\n      goto LAB_001662e7;\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) {\n      return;\n    }\n  }\n  else {\n    iVar3 = (int)param_1[0xc];\n    if (iVar3 < *(int *)((long)param_1 + 100)) {\n      do {\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      } while (iVar3 < *(int *)((long)param_1 + 100));\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) goto LAB_001662e7;\n  }\n  FUN_001661c4(param_1,0);\n  *(undefined1 *)((long)param_1 + 9) = 1;\n  goto LAB_001662e7;\nLAB_00166337:\n  if ((ulong)param_1[0xe] < (ulong)param_1[0xd]) {\n    return;\n  }\n  goto LAB_00166350;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "long *plVar5;" (sized_type_specifier "long" long) (pointer_declarator "*plVar5" * identifier) ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (expression_statement "param_1 = (long *)*param_1;" (assignment_expression "param_1 = (long *)*param_1" identifier = (cast_expression "(long *)*param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (labeled_statement "LAB_001662e7:\n  do {\n    if (*(char *)((long)param_1 + 9) == '\x01') {\n      lVar4 = *param_1;\n      if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n      puVar6 = (undefined1 *)param_1[0xe];\n      if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;\n      goto LAB_00166350;\n    }\n  } while (*(char *)((long)param_1 + 9) != '\x02');" statement_identifier : (do_statement "do {\n    if (*(char *)((long)param_1 + 9) == '\x01') {\n      lVar4 = *param_1;\n      if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n      puVar6 = (undefined1 *)param_1[0xe];\n      if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;\n      goto LAB_00166350;\n    }\n  } while (*(char *)((long)param_1 + 9) != '\x02');" do (compound_statement "{\n    if (*(char *)((long)param_1 + 9) == '\x01') {\n      lVar4 = *param_1;\n      if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n      puVar6 = (undefined1 *)param_1[0xe];\n      if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;\n      goto LAB_00166350;\n    }\n  }" { (if_statement "if (*(char *)((long)param_1 + 9) == '\x01') {\n      lVar4 = *param_1;\n      if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n      puVar6 = (undefined1 *)param_1[0xe];\n      if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;\n      goto LAB_00166350;\n    }" if (parenthesized_expression "(*(char *)((long)param_1 + 9) == '\x01')" ( (binary_expression "*(char *)((long)param_1 + 9) == '\x01'" (pointer_expression "*(char *)((long)param_1 + 9)" * (cast_expression "(char *)((long)param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 9)" ( (binary_expression "(long)param_1 + 9" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n      lVar4 = *param_1;\n      if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n      puVar6 = (undefined1 *)param_1[0xe];\n      if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;\n      goto LAB_00166350;\n    }" { (expression_statement "lVar4 = *param_1;" (assignment_expression "lVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;" if (parenthesized_expression "(*(int *)(lVar4 + 0x1c) == 0)" ( (binary_expression "*(int *)(lVar4 + 0x1c) == 0" (pointer_expression "*(int *)(lVar4 + 0x1c)" * (cast_expression "(int *)(lVar4 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x1c)" ( (binary_expression "lVar4 + 0x1c" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_00166337;" goto statement_identifier ;)) (expression_statement "puVar6 = (undefined1 *)param_1[0xe];" (assignment_expression "puVar6 = (undefined1 *)param_1[0xe]" identifier = (cast_expression "(undefined1 *)param_1[0xe]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0xe]" identifier [ number_literal ]))) ;) (if_statement "if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;" if (parenthesized_expression "(puVar6 < (undefined1 *)param_1[0xd])" ( (binary_expression "puVar6 < (undefined1 *)param_1[0xd]" identifier < (cast_expression "(undefined1 *)param_1[0xd]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0xd]" identifier [ number_literal ]))) )) (goto_statement "goto LAB_00166306;" goto statement_identifier ;)) (goto_statement "goto LAB_00166350;" goto statement_identifier ;) })) }) while (parenthesized_expression "(*(char *)((long)param_1 + 9) != '\x02')" ( (binary_expression "*(char *)((long)param_1 + 9) != '\x02'" (pointer_expression "*(char *)((long)param_1 + 9)" * (cast_expression "(char *)((long)param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 9)" ( (binary_expression "(long)param_1 + 9" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != (char_literal "'\x02'" ' escape_sequence ')) )) ;)) (goto_statement "goto LAB_0016639a;" goto statement_identifier ;) (while_statement "while (puVar6 = (undefined1 *)param_1[0xe], puVar6 < (undefined1 *)param_1[0xd]) {\nLAB_00166306:\n    param_1[0xe] = (long)(puVar6 + 1);\n    **(undefined1 **)(lVar4 + 0x10) = *puVar6;\n    *(int *)(*param_1 + 0x1c) = *(int *)(*param_1 + 0x1c) + -1;\n    *(long *)(*param_1 + 0x10) = *(long *)(*param_1 + 0x10) + 1;\n    *(long *)(*param_1 + 0x20) = *(long *)(*param_1 + 0x20) + 1;\n    lVar4 = *param_1;\n    if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n  }" while (parenthesized_expression "(puVar6 = (undefined1 *)param_1[0xe], puVar6 < (undefined1 *)param_1[0xd])" ( (comma_expression "puVar6 = (undefined1 *)param_1[0xe], puVar6 < (undefined1 *)param_1[0xd]" (assignment_expression "puVar6 = (undefined1 *)param_1[0xe]" identifier = (cast_expression "(undefined1 *)param_1[0xe]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0xe]" identifier [ number_literal ]))) , (binary_expression "puVar6 < (undefined1 *)param_1[0xd]" identifier < (cast_expression "(undefined1 *)param_1[0xd]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0xd]" identifier [ number_literal ])))) )) (compound_statement "{\nLAB_00166306:\n    param_1[0xe] = (long)(puVar6 + 1);\n    **(undefined1 **)(lVar4 + 0x10) = *puVar6;\n    *(int *)(*param_1 + 0x1c) = *(int *)(*param_1 + 0x1c) + -1;\n    *(long *)(*param_1 + 0x10) = *(long *)(*param_1 + 0x10) + 1;\n    *(long *)(*param_1 + 0x20) = *(long *)(*param_1 + 0x20) + 1;\n    lVar4 = *param_1;\n    if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n  }" { (labeled_statement "LAB_00166306:\n    param_1[0xe] = (long)(puVar6 + 1);" statement_identifier : (expression_statement "param_1[0xe] = (long)(puVar6 + 1);" (assignment_expression "param_1[0xe] = (long)(puVar6 + 1)" (subscript_expression "param_1[0xe]" identifier [ number_literal ]) = (cast_expression "(long)(puVar6 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(puVar6 + 1)" ( (binary_expression "puVar6 + 1" identifier + number_literal) )))) ;)) (expression_statement "**(undefined1 **)(lVar4 + 0x10) = *puVar6;" (assignment_expression "**(undefined1 **)(lVar4 + 0x10) = *puVar6" (pointer_expression "**(undefined1 **)(lVar4 + 0x10)" * (pointer_expression "*(undefined1 **)(lVar4 + 0x10)" * (cast_expression "(undefined1 **)(lVar4 + 0x10)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar4 + 0x10)" ( (binary_expression "lVar4 + 0x10" identifier + number_literal) ))))) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "*(int *)(*param_1 + 0x1c) = *(int *)(*param_1 + 0x1c) + -1;" (assignment_expression "*(int *)(*param_1 + 0x1c) = *(int *)(*param_1 + 0x1c) + -1" (pointer_expression "*(int *)(*param_1 + 0x1c)" * (cast_expression "(int *)(*param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x1c)" ( (binary_expression "*param_1 + 0x1c" (pointer_expression "*param_1" * identifier) + number_literal) )))) = (binary_expression "*(int *)(*param_1 + 0x1c) + -1" (pointer_expression "*(int *)(*param_1 + 0x1c)" * (cast_expression "(int *)(*param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x1c)" ( (binary_expression "*param_1 + 0x1c" (pointer_expression "*param_1" * identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "*(long *)(*param_1 + 0x10) = *(long *)(*param_1 + 0x10) + 1;" (assignment_expression "*(long *)(*param_1 + 0x10) = *(long *)(*param_1 + 0x10) + 1" (pointer_expression "*(long *)(*param_1 + 0x10)" * (cast_expression "(long *)(*param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x10)" ( (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" * identifier) + number_literal) )))) = (binary_expression "*(long *)(*param_1 + 0x10) + 1" (pointer_expression "*(long *)(*param_1 + 0x10)" * (cast_expression "(long *)(*param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x10)" ( (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" * identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "*(long *)(*param_1 + 0x20) = *(long *)(*param_1 + 0x20) + 1;" (assignment_expression "*(long *)(*param_1 + 0x20) = *(long *)(*param_1 + 0x20) + 1" (pointer_expression "*(long *)(*param_1 + 0x20)" * (cast_expression "(long *)(*param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x20)" ( (binary_expression "*param_1 + 0x20" (pointer_expression "*param_1" * identifier) + number_literal) )))) = (binary_expression "*(long *)(*param_1 + 0x20) + 1" (pointer_expression "*(long *)(*param_1 + 0x20)" * (cast_expression "(long *)(*param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x20)" ( (binary_expression "*param_1 + 0x20" (pointer_expression "*param_1" * identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "lVar4 = *param_1;" (assignment_expression "lVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;" if (parenthesized_expression "(*(int *)(lVar4 + 0x1c) == 0)" ( (binary_expression "*(int *)(lVar4 + 0x1c) == 0" (pointer_expression "*(int *)(lVar4 + 0x1c)" * (cast_expression "(int *)(lVar4 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x1c)" ( (binary_expression "lVar4 + 0x1c" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_00166337;" goto statement_identifier ;)) })) (labeled_statement "LAB_00166350:\n  if (((char)param_1[1] == '\x04') && (*(int *)(lVar4 + 0x18) == 0)) {\n    if (0xff < *(uint *)(param_1 + 0xb)) {\n      return;\n    }\n    if (*(int *)((long)param_1 + 0x5c) < 1) {\n      return;\n    }\n  }" statement_identifier : (if_statement "if (((char)param_1[1] == '\x04') && (*(int *)(lVar4 + 0x18) == 0)) {\n    if (0xff < *(uint *)(param_1 + 0xb)) {\n      return;\n    }\n    if (*(int *)((long)param_1 + 0x5c) < 1) {\n      return;\n    }\n  }" if (parenthesized_expression "(((char)param_1[1] == '\x04') && (*(int *)(lVar4 + 0x18) == 0))" ( (binary_expression "((char)param_1[1] == '\x04') && (*(int *)(lVar4 + 0x18) == 0)" (parenthesized_expression "((char)param_1[1] == '\x04')" ( (binary_expression "(char)param_1[1] == '\x04'" (cast_expression "(char)param_1[1]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) == (char_literal "'\x04'" ' escape_sequence ')) )) && (parenthesized_expression "(*(int *)(lVar4 + 0x18) == 0)" ( (binary_expression "*(int *)(lVar4 + 0x18) == 0" (pointer_expression "*(int *)(lVar4 + 0x18)" * (cast_expression "(int *)(lVar4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x18)" ( (binary_expression "lVar4 + 0x18" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    if (0xff < *(uint *)(param_1 + 0xb)) {\n      return;\n    }\n    if (*(int *)((long)param_1 + 0x5c) < 1) {\n      return;\n    }\n  }" { (if_statement "if (0xff < *(uint *)(param_1 + 0xb)) {\n      return;\n    }" if (parenthesized_expression "(0xff < *(uint *)(param_1 + 0xb))" ( (binary_expression "0xff < *(uint *)(param_1 + 0xb)" number_literal < (pointer_expression "*(uint *)(param_1 + 0xb)" * (cast_expression "(uint *)(param_1 + 0xb)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb)" ( (binary_expression "param_1 + 0xb" identifier + number_literal) ))))) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (if_statement "if (*(int *)((long)param_1 + 0x5c) < 1) {\n      return;\n    }" if (parenthesized_expression "(*(int *)((long)param_1 + 0x5c) < 1)" ( (binary_expression "*(int *)((long)param_1 + 0x5c) < 1" (pointer_expression "*(int *)((long)param_1 + 0x5c)" * (cast_expression "(int *)((long)param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x5c)" ( (binary_expression "(long)param_1 + 0x5c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) < number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }))) (expression_statement "*(undefined4 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x11) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x11) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x11)" * (cast_expression "(undefined4 *)(param_1 + 0x11)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x11)" ( (binary_expression "param_1 + 0x11" identifier + number_literal) )))) = number_literal) ;) (expression_statement "plVar5 = param_1 + 0x14;" (assignment_expression "plVar5 = param_1 + 0x14" identifier = (binary_expression "param_1 + 0x14" identifier + number_literal)) ;) (do_statement "do {\n    *(undefined1 *)plVar5 = 0;\n    plVar5 = (long *)((long)plVar5 + 1);\n  } while (param_1 + 0x34 != plVar5);" do (compound_statement "{\n    *(undefined1 *)plVar5 = 0;\n    plVar5 = (long *)((long)plVar5 + 1);\n  }" { (expression_statement "*(undefined1 *)plVar5 = 0;" (assignment_expression "*(undefined1 *)plVar5 = 0" (pointer_expression "*(undefined1 *)plVar5" * (cast_expression "(undefined1 *)plVar5" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "plVar5 = (long *)((long)plVar5 + 1);" (assignment_expression "plVar5 = (long *)((long)plVar5 + 1)" identifier = (cast_expression "(long *)((long)plVar5 + 1)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar5 + 1)" ( (binary_expression "(long)plVar5 + 1" (cast_expression "(long)plVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) }) while (parenthesized_expression "(param_1 + 0x34 != plVar5)" ( (binary_expression "param_1 + 0x34 != plVar5" (binary_expression "param_1 + 0x34" identifier + number_literal) != identifier) )) ;) (expression_statement "*(int *)(param_1 + 0x12) = (int)param_1[0x12] + 1;" (assignment_expression "*(int *)(param_1 + 0x12) = (int)param_1[0x12] + 1" (pointer_expression "*(int *)(param_1 + 0x12)" * (cast_expression "(int *)(param_1 + 0x12)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x12)" ( (binary_expression "param_1 + 0x12" identifier + number_literal) )))) = (binary_expression "(int)param_1[0x12] + 1" (cast_expression "(int)param_1[0x12]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0x12]" identifier [ number_literal ])) + number_literal)) ;) (expression_statement "*(undefined1 *)((long)param_1 + 9) = 2;" (assignment_expression "*(undefined1 *)((long)param_1 + 9) = 2" (pointer_expression "*(undefined1 *)((long)param_1 + 9)" * (cast_expression "(undefined1 *)((long)param_1 + 9)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 9)" ( (binary_expression "(long)param_1 + 9" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (labeled_statement "LAB_0016639a:\n  lVar4 = *param_1;" statement_identifier : (expression_statement "lVar4 = *param_1;" (assignment_expression "lVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;)) (if_statement "if (*(int *)(lVar4 + 0x18) == 0) {\nLAB_00166421:\n    if ((char)param_1[1] != '\x02') {\n      if (*(uint *)(param_1 + 0xb) < 0x100) {\n        FUN_00164cd7(param_1);\n      }\n      *(undefined4 *)(param_1 + 0xb) = 0x100;\n      *(undefined4 *)((long)param_1 + 0x5c) = 0;\n      FUN_001661c4(param_1,(char)param_1[1] == '\x04');\n      *(undefined1 *)((long)param_1 + 9) = 1;\n      goto LAB_001662e7;\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) {\n      return;\n    }\n  }\n  else {\n    iVar3 = (int)param_1[0xc];\n    if (iVar3 < *(int *)((long)param_1 + 100)) {\n      do {\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      } while (iVar3 < *(int *)((long)param_1 + 100));\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) goto LAB_001662e7;\n  }" if (parenthesized_expression "(*(int *)(lVar4 + 0x18) == 0)" ( (binary_expression "*(int *)(lVar4 + 0x18) == 0" (pointer_expression "*(int *)(lVar4 + 0x18)" * (cast_expression "(int *)(lVar4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x18)" ( (binary_expression "lVar4 + 0x18" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\nLAB_00166421:\n    if ((char)param_1[1] != '\x02') {\n      if (*(uint *)(param_1 + 0xb) < 0x100) {\n        FUN_00164cd7(param_1);\n      }\n      *(undefined4 *)(param_1 + 0xb) = 0x100;\n      *(undefined4 *)((long)param_1 + 0x5c) = 0;\n      FUN_001661c4(param_1,(char)param_1[1] == '\x04');\n      *(undefined1 *)((long)param_1 + 9) = 1;\n      goto LAB_001662e7;\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) {\n      return;\n    }\n  }" { (labeled_statement "LAB_00166421:\n    if ((char)param_1[1] != '\x02') {\n      if (*(uint *)(param_1 + 0xb) < 0x100) {\n        FUN_00164cd7(param_1);\n      }\n      *(undefined4 *)(param_1 + 0xb) = 0x100;\n      *(undefined4 *)((long)param_1 + 0x5c) = 0;\n      FUN_001661c4(param_1,(char)param_1[1] == '\x04');\n      *(undefined1 *)((long)param_1 + 9) = 1;\n      goto LAB_001662e7;\n    }" statement_identifier : (if_statement "if ((char)param_1[1] != '\x02') {\n      if (*(uint *)(param_1 + 0xb) < 0x100) {\n        FUN_00164cd7(param_1);\n      }\n      *(undefined4 *)(param_1 + 0xb) = 0x100;\n      *(undefined4 *)((long)param_1 + 0x5c) = 0;\n      FUN_001661c4(param_1,(char)param_1[1] == '\x04');\n      *(undefined1 *)((long)param_1 + 9) = 1;\n      goto LAB_001662e7;\n    }" if (parenthesized_expression "((char)param_1[1] != '\x02')" ( (binary_expression "(char)param_1[1] != '\x02'" (cast_expression "(char)param_1[1]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) != (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n      if (*(uint *)(param_1 + 0xb) < 0x100) {\n        FUN_00164cd7(param_1);\n      }\n      *(undefined4 *)(param_1 + 0xb) = 0x100;\n      *(undefined4 *)((long)param_1 + 0x5c) = 0;\n      FUN_001661c4(param_1,(char)param_1[1] == '\x04');\n      *(undefined1 *)((long)param_1 + 9) = 1;\n      goto LAB_001662e7;\n    }" { (if_statement "if (*(uint *)(param_1 + 0xb) < 0x100) {\n        FUN_00164cd7(param_1);\n      }" if (parenthesized_expression "(*(uint *)(param_1 + 0xb) < 0x100)" ( (binary_expression "*(uint *)(param_1 + 0xb) < 0x100" (pointer_expression "*(uint *)(param_1 + 0xb)" * (cast_expression "(uint *)(param_1 + 0xb)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb)" ( (binary_expression "param_1 + 0xb" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n        FUN_00164cd7(param_1);\n      }" { (expression_statement "FUN_00164cd7(param_1);" (call_expression "FUN_00164cd7(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0xb) = 0x100;" (assignment_expression "*(undefined4 *)(param_1 + 0xb) = 0x100" (pointer_expression "*(undefined4 *)(param_1 + 0xb)" * (cast_expression "(undefined4 *)(param_1 + 0xb)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb)" ( (binary_expression "param_1 + 0xb" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((long)param_1 + 0x5c) = 0;" (assignment_expression "*(undefined4 *)((long)param_1 + 0x5c) = 0" (pointer_expression "*(undefined4 *)((long)param_1 + 0x5c)" * (cast_expression "(undefined4 *)((long)param_1 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x5c)" ( (binary_expression "(long)param_1 + 0x5c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "FUN_001661c4(param_1,(char)param_1[1] == '\x04');" (call_expression "FUN_001661c4(param_1,(char)param_1[1] == '\x04')" identifier (argument_list "(param_1,(char)param_1[1] == '\x04')" ( identifier , (binary_expression "(char)param_1[1] == '\x04'" (cast_expression "(char)param_1[1]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) == (char_literal "'\x04'" ' escape_sequence ')) ))) ;) (expression_statement "*(undefined1 *)((long)param_1 + 9) = 1;" (assignment_expression "*(undefined1 *)((long)param_1 + 9) = 1" (pointer_expression "*(undefined1 *)((long)param_1 + 9)" * (cast_expression "(undefined1 *)((long)param_1 + 9)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 9)" ( (binary_expression "(long)param_1 + 9" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_001662e7;" goto statement_identifier ;) }))) (if_statement "if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) {\n      return;\n    }" if (parenthesized_expression "((int)param_1[0xc] < *(int *)((long)param_1 + 100))" ( (binary_expression "(int)param_1[0xc] < *(int *)((long)param_1 + 100)" (cast_expression "(int)param_1[0xc]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0xc]" identifier [ number_literal ])) < (pointer_expression "*(int *)((long)param_1 + 100)" * (cast_expression "(int *)((long)param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 100)" ( (binary_expression "(long)param_1 + 100" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }) (else_clause "else {\n    iVar3 = (int)param_1[0xc];\n    if (iVar3 < *(int *)((long)param_1 + 100)) {\n      do {\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      } while (iVar3 < *(int *)((long)param_1 + 100));\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) goto LAB_001662e7;\n  }" else (compound_statement "{\n    iVar3 = (int)param_1[0xc];\n    if (iVar3 < *(int *)((long)param_1 + 100)) {\n      do {\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      } while (iVar3 < *(int *)((long)param_1 + 100));\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) goto LAB_001662e7;\n  }" { (expression_statement "iVar3 = (int)param_1[0xc];" (assignment_expression "iVar3 = (int)param_1[0xc]" identifier = (cast_expression "(int)param_1[0xc]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0xc]" identifier [ number_literal ]))) ;) (if_statement "if (iVar3 < *(int *)((long)param_1 + 100)) {\n      do {\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      } while (iVar3 < *(int *)((long)param_1 + 100));\n    }" if (parenthesized_expression "(iVar3 < *(int *)((long)param_1 + 100))" ( (binary_expression "iVar3 < *(int *)((long)param_1 + 100)" identifier < (pointer_expression "*(int *)((long)param_1 + 100)" * (cast_expression "(int *)((long)param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 100)" ( (binary_expression "(long)param_1 + 100" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) )) (compound_statement "{\n      do {\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      } while (iVar3 < *(int *)((long)param_1 + 100));\n    }" { (do_statement "do {\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      } while (iVar3 < *(int *)((long)param_1 + 100));" do (compound_statement "{\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      }" { (expression_statement "bVar1 = **(byte **)(lVar4 + 8);" (assignment_expression "bVar1 = **(byte **)(lVar4 + 8)" identifier = (pointer_expression "**(byte **)(lVar4 + 8)" * (pointer_expression "*(byte **)(lVar4 + 8)" * (cast_expression "(byte **)(lVar4 + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar4 + 8)" ( (binary_expression "lVar4 + 8" identifier + number_literal) )))))) ;) (expression_statement "uVar2 = *(uint *)(param_1 + 0xb);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0xb)" identifier = (pointer_expression "*(uint *)(param_1 + 0xb)" * (cast_expression "(uint *)(param_1 + 0xb)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb)" ( (binary_expression "param_1 + 0xb" identifier + number_literal) ))))) ;) (if_statement "if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }" if (parenthesized_expression "(bVar1 == uVar2)" ( (binary_expression "bVar1 == uVar2" identifier == identifier) )) (compound_statement "{\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }" { (if_statement "if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }" if (parenthesized_expression "(*(int *)((long)param_1 + 0x5c) == 0xff)" ( (binary_expression "*(int *)((long)param_1 + 0x5c) == 0xff" (pointer_expression "*(int *)((long)param_1 + 0x5c)" * (cast_expression "(int *)((long)param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x5c)" ( (binary_expression "(long)param_1 + 0x5c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }" { (labeled_statement "LAB_001664bf:\n            FUN_00164cd7(param_1);" statement_identifier : (expression_statement "FUN_00164cd7(param_1);" (call_expression "FUN_00164cd7(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;)) (goto_statement "goto LAB_001664c7;" goto statement_identifier ;) })) (expression_statement "*(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;" (assignment_expression "*(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1" (pointer_expression "*(int *)((long)param_1 + 0x5c)" * (cast_expression "(int *)((long)param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x5c)" ( (binary_expression "(long)param_1 + 0x5c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (binary_expression "*(int *)((long)param_1 + 0x5c) + 1" (pointer_expression "*(int *)((long)param_1 + 0x5c)" * (cast_expression "(int *)((long)param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x5c)" ( (binary_expression "(long)param_1 + 0x5c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal)) ;) }) (else_clause "else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }" else (if_statement "if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }" if (parenthesized_expression "(*(int *)((long)param_1 + 0x5c) == 1)" ( (binary_expression "*(int *)((long)param_1 + 0x5c) == 1" (pointer_expression "*(int *)((long)param_1 + 0x5c)" * (cast_expression "(int *)((long)param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x5c)" ( (binary_expression "(long)param_1 + 0x5c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }" { (expression_statement "*(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);" (assignment_expression "*(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4)" (pointer_expression "*(uint *)(param_1 + 0x11)" * (cast_expression "(uint *)(param_1 + 0x11)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x11)" ( (binary_expression "param_1 + 0x11" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4)" (binary_expression "*(uint *)(param_1 + 0x11) << 8" (pointer_expression "*(uint *)(param_1 + 0x11)" * (cast_expression "(uint *)(param_1 + 0x11)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x11)" ( (binary_expression "param_1 + 0x11" identifier + number_literal) )))) << number_literal) ^ (pointer_expression "*(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4)" * (cast_expression "(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4)" ( (binary_expression "param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4" (subscript_expression "param_1[0x10]" identifier [ number_literal ]) + (binary_expression "(ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4" (call_expression "(ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff)" ( (binary_expression "(*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff" (parenthesized_expression "(*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2)" ( (binary_expression "*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2" (binary_expression "*(uint *)(param_1 + 0x11) >> 0x18" (pointer_expression "*(uint *)(param_1 + 0x11)" * (cast_expression "(uint *)(param_1 + 0x11)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x11)" ( (binary_expression "param_1 + 0x11" identifier + number_literal) )))) >> number_literal) ^ identifier) )) & number_literal) ))) * number_literal)) )))))) ;) (expression_statement "*(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;" (assignment_expression "*(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1" (pointer_expression "*(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0)" * (cast_expression "(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + (ulong)uVar2 + 0xa0)" ( (binary_expression "(long)param_1 + (ulong)uVar2 + 0xa0" (binary_expression "(long)param_1 + (ulong)uVar2" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (cast_expression "(ulong)uVar2" ( (type_descriptor "ulong" type_identifier) ) identifier)) + number_literal) )))) = number_literal) ;) (expression_statement "*(char *)(param_1[8] + (long)iVar3) = (char)uVar2;" (assignment_expression "*(char *)(param_1[8] + (long)iVar3) = (char)uVar2" (pointer_expression "*(char *)(param_1[8] + (long)iVar3)" * (cast_expression "(char *)(param_1[8] + (long)iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[8] + (long)iVar3)" ( (binary_expression "param_1[8] + (long)iVar3" (subscript_expression "param_1[8]" identifier [ number_literal ]) + (cast_expression "(long)iVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )))) = (cast_expression "(char)uVar2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "*(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;" (assignment_expression "*(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "(int)param_1[0xc] + 1" (cast_expression "(int)param_1[0xc]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0xc]" identifier [ number_literal ])) + number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0xb) = (uint)bVar1;" (assignment_expression "*(uint *)(param_1 + 0xb) = (uint)bVar1" (pointer_expression "*(uint *)(param_1 + 0xb)" * (cast_expression "(uint *)(param_1 + 0xb)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb)" ( (binary_expression "param_1 + 0xb" identifier + number_literal) )))) = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) }) (else_clause "else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }" else (compound_statement "{\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }" { (if_statement "if (uVar2 < 0x100) goto LAB_001664bf;" if (parenthesized_expression "(uVar2 < 0x100)" ( (binary_expression "uVar2 < 0x100" identifier < number_literal) )) (goto_statement "goto LAB_001664bf;" goto statement_identifier ;)) (labeled_statement "LAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;" statement_identifier : (expression_statement "*(uint *)(param_1 + 0xb) = (uint)bVar1;" (assignment_expression "*(uint *)(param_1 + 0xb) = (uint)bVar1" (pointer_expression "*(uint *)(param_1 + 0xb)" * (cast_expression "(uint *)(param_1 + 0xb)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb)" ( (binary_expression "param_1 + 0xb" identifier + number_literal) )))) = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;)) (expression_statement "*(undefined4 *)((long)param_1 + 0x5c) = 1;" (assignment_expression "*(undefined4 *)((long)param_1 + 0x5c) = 1" (pointer_expression "*(undefined4 *)((long)param_1 + 0x5c)" * (cast_expression "(undefined4 *)((long)param_1 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x5c)" ( (binary_expression "(long)param_1 + 0x5c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) }))))) (expression_statement "*(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;" (assignment_expression "*(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1" (pointer_expression "*(long *)(*param_1 + 8)" * (cast_expression "(long *)(*param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 8)" ( (binary_expression "*param_1 + 8" (pointer_expression "*param_1" * identifier) + number_literal) )))) = (binary_expression "*(long *)(*param_1 + 8) + 1" (pointer_expression "*(long *)(*param_1 + 8)" * (cast_expression "(long *)(*param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 8)" ( (binary_expression "*param_1 + 8" (pointer_expression "*param_1" * identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;" (assignment_expression "*(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1" (pointer_expression "*(int *)(*param_1 + 0x18)" * (cast_expression "(int *)(*param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x18)" ( (binary_expression "*param_1 + 0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) = (binary_expression "*(int *)(*param_1 + 0x18) + -1" (pointer_expression "*(int *)(*param_1 + 0x18)" * (cast_expression "(int *)(*param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x18)" ( (binary_expression "*param_1 + 0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "lVar4 = *param_1;" (assignment_expression "lVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;" if (parenthesized_expression "(*(int *)(lVar4 + 0x18) == 0)" ( (binary_expression "*(int *)(lVar4 + 0x18) == 0" (pointer_expression "*(int *)(lVar4 + 0x18)" * (cast_expression "(int *)(lVar4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x18)" ( (binary_expression "lVar4 + 0x18" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_00166421;" goto statement_identifier ;)) (expression_statement "iVar3 = (int)param_1[0xc];" (assignment_expression "iVar3 = (int)param_1[0xc]" identifier = (cast_expression "(int)param_1[0xc]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0xc]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(iVar3 < *(int *)((long)param_1 + 100))" ( (binary_expression "iVar3 < *(int *)((long)param_1 + 100)" identifier < (pointer_expression "*(int *)((long)param_1 + 100)" * (cast_expression "(int *)((long)param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 100)" ( (binary_expression "(long)param_1 + 100" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) )) ;) })) (if_statement "if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) goto LAB_001662e7;" if (parenthesized_expression "((int)param_1[0xc] < *(int *)((long)param_1 + 100))" ( (binary_expression "(int)param_1[0xc] < *(int *)((long)param_1 + 100)" (cast_expression "(int)param_1[0xc]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0xc]" identifier [ number_literal ])) < (pointer_expression "*(int *)((long)param_1 + 100)" * (cast_expression "(int *)((long)param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 100)" ( (binary_expression "(long)param_1 + 100" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) )) (goto_statement "goto LAB_001662e7;" goto statement_identifier ;)) }))) (expression_statement "FUN_001661c4(param_1,0);" (call_expression "FUN_001661c4(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))) ;) (expression_statement "*(undefined1 *)((long)param_1 + 9) = 1;" (assignment_expression "*(undefined1 *)((long)param_1 + 9) = 1" (pointer_expression "*(undefined1 *)((long)param_1 + 9)" * (cast_expression "(undefined1 *)((long)param_1 + 9)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 9)" ( (binary_expression "(long)param_1 + 9" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_001662e7;" goto statement_identifier ;) (labeled_statement "LAB_00166337:\n  if ((ulong)param_1[0xe] < (ulong)param_1[0xd]) {\n    return;\n  }" statement_identifier : (if_statement "if ((ulong)param_1[0xe] < (ulong)param_1[0xd]) {\n    return;\n  }" if (parenthesized_expression "((ulong)param_1[0xe] < (ulong)param_1[0xd])" ( (binary_expression "(ulong)param_1[0xe] < (ulong)param_1[0xd]" (cast_expression "(ulong)param_1[0xe]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_1[0xe]" identifier [ number_literal ])) < (cast_expression "(ulong)param_1[0xd]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_1[0xd]" identifier [ number_literal ]))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) (goto_statement "goto LAB_00166350;" goto statement_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 (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (labeled_statement statement_identifier : (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) != (char_literal ' escape_sequence ')) )) ;)) (goto_statement goto statement_identifier ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) , (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;)) (expression_statement (assignment_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (goto_statement goto statement_identifier ;)) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) < LIT) )) (compound_statement { (return_statement return ;) })) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) != IDENT) )) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) != (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) == (char_literal ' escape_sequence ')) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (goto_statement goto statement_identifier ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) )) (compound_statement { (return_statement return ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (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) ))))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (goto_statement goto statement_identifier ;) })) (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) )))) + LIT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) << LIT) ^ (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) >> LIT) ^ IDENT) )) & LIT) ))) * LIT)) )))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (cast_expression ( (type_descriptor TYPE) ) IDENT)) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) )))) = (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 (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) }))))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) }) while (parenthesized_expression ( (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) ))))) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (call_expression IDENT (argument_list ( 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) )))) = LIT) ;) (goto_statement goto statement_identifier ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (return_statement return ;) }))) (goto_statement goto statement_identifier ;) })))
(function_definition "void FUN_001662d9(long *param_1)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  long lVar4;\n  long *plVar5;\n  undefined1 *puVar6;\n  \n  param_1 = (long *)*param_1;\nLAB_001662e7:\n  do {\n    if (*(char *)((long)param_1 + 9) == '\x01') {\n      lVar4 = *param_1;\n      if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n      puVar6 = (undefined1 *)param_1[0xe];\n      if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;\n      goto LAB_00166350;\n    }\n  } while (*(char *)((long)param_1 + 9) != '\x02');\n  goto LAB_0016639a;\n  while (puVar6 = (undefined1 *)param_1[0xe], puVar6 < (undefined1 *)param_1[0xd]) {\nLAB_00166306:\n    param_1[0xe] = (long)(puVar6 + 1);\n    **(undefined1 **)(lVar4 + 0x10) = *puVar6;\n    *(int *)(*param_1 + 0x1c) = *(int *)(*param_1 + 0x1c) + -1;\n    *(long *)(*param_1 + 0x10) = *(long *)(*param_1 + 0x10) + 1;\n    *(long *)(*param_1 + 0x20) = *(long *)(*param_1 + 0x20) + 1;\n    lVar4 = *param_1;\n    if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n  }\nLAB_00166350:\n  if (((char)param_1[1] == '\x04') && (*(int *)(lVar4 + 0x18) == 0)) {\n    if (0xff < *(uint *)(param_1 + 0xb)) {\n      return;\n    }\n    if (*(int *)((long)param_1 + 0x5c) < 1) {\n      return;\n    }\n  }\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  *(undefined4 *)(param_1 + 0x11) = 0xffffffff;\n  plVar5 = param_1 + 0x14;\n  do {\n    *(undefined1 *)plVar5 = 0;\n    plVar5 = (long *)((long)plVar5 + 1);\n  } while (param_1 + 0x34 != plVar5);\n  *(int *)(param_1 + 0x12) = (int)param_1[0x12] + 1;\n  *(undefined1 *)((long)param_1 + 9) = 2;\nLAB_0016639a:\n  lVar4 = *param_1;\n  if (*(int *)(lVar4 + 0x18) == 0) {\nLAB_00166421:\n    if ((char)param_1[1] != '\x02') {\n      if (*(uint *)(param_1 + 0xb) < 0x100) {\n        FUN_00164cd7(param_1);\n      }\n      *(undefined4 *)(param_1 + 0xb) = 0x100;\n      *(undefined4 *)((long)param_1 + 0x5c) = 0;\n      FUN_001661c4(param_1,(char)param_1[1] == '\x04');\n      *(undefined1 *)((long)param_1 + 9) = 1;\n      goto LAB_001662e7;\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) {\n      return;\n    }\n  }\n  else {\n    iVar3 = (int)param_1[0xc];\n    if (iVar3 < *(int *)((long)param_1 + 100)) {\n      do {\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      } while (iVar3 < *(int *)((long)param_1 + 100));\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) goto LAB_001662e7;\n  }\n  FUN_001661c4(param_1,0);\n  *(undefined1 *)((long)param_1 + 9) = 1;\n  goto LAB_001662e7;\nLAB_00166337:\n  if ((ulong)param_1[0xe] < (ulong)param_1[0xd]) {\n    return;\n  }\n  goto LAB_00166350;\n}" (primitive_type "void") (function_declarator "FUN_001662d9(long *param_1)" (identifier "FUN_001662d9") (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  uint uVar2;\n  int iVar3;\n  long lVar4;\n  long *plVar5;\n  undefined1 *puVar6;\n  \n  param_1 = (long *)*param_1;\nLAB_001662e7:\n  do {\n    if (*(char *)((long)param_1 + 9) == '\x01') {\n      lVar4 = *param_1;\n      if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n      puVar6 = (undefined1 *)param_1[0xe];\n      if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;\n      goto LAB_00166350;\n    }\n  } while (*(char *)((long)param_1 + 9) != '\x02');\n  goto LAB_0016639a;\n  while (puVar6 = (undefined1 *)param_1[0xe], puVar6 < (undefined1 *)param_1[0xd]) {\nLAB_00166306:\n    param_1[0xe] = (long)(puVar6 + 1);\n    **(undefined1 **)(lVar4 + 0x10) = *puVar6;\n    *(int *)(*param_1 + 0x1c) = *(int *)(*param_1 + 0x1c) + -1;\n    *(long *)(*param_1 + 0x10) = *(long *)(*param_1 + 0x10) + 1;\n    *(long *)(*param_1 + 0x20) = *(long *)(*param_1 + 0x20) + 1;\n    lVar4 = *param_1;\n    if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n  }\nLAB_00166350:\n  if (((char)param_1[1] == '\x04') && (*(int *)(lVar4 + 0x18) == 0)) {\n    if (0xff < *(uint *)(param_1 + 0xb)) {\n      return;\n    }\n    if (*(int *)((long)param_1 + 0x5c) < 1) {\n      return;\n    }\n  }\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  *(undefined4 *)(param_1 + 0x11) = 0xffffffff;\n  plVar5 = param_1 + 0x14;\n  do {\n    *(undefined1 *)plVar5 = 0;\n    plVar5 = (long *)((long)plVar5 + 1);\n  } while (param_1 + 0x34 != plVar5);\n  *(int *)(param_1 + 0x12) = (int)param_1[0x12] + 1;\n  *(undefined1 *)((long)param_1 + 9) = 2;\nLAB_0016639a:\n  lVar4 = *param_1;\n  if (*(int *)(lVar4 + 0x18) == 0) {\nLAB_00166421:\n    if ((char)param_1[1] != '\x02') {\n      if (*(uint *)(param_1 + 0xb) < 0x100) {\n        FUN_00164cd7(param_1);\n      }\n      *(undefined4 *)(param_1 + 0xb) = 0x100;\n      *(undefined4 *)((long)param_1 + 0x5c) = 0;\n      FUN_001661c4(param_1,(char)param_1[1] == '\x04');\n      *(undefined1 *)((long)param_1 + 9) = 1;\n      goto LAB_001662e7;\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) {\n      return;\n    }\n  }\n  else {\n    iVar3 = (int)param_1[0xc];\n    if (iVar3 < *(int *)((long)param_1 + 100)) {\n      do {\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      } while (iVar3 < *(int *)((long)param_1 + 100));\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) goto LAB_001662e7;\n  }\n  FUN_001661c4(param_1,0);\n  *(undefined1 *)((long)param_1 + 9) = 1;\n  goto LAB_001662e7;\nLAB_00166337:\n  if ((ulong)param_1[0xe] < (ulong)param_1[0xd]) {\n    return;\n  }\n  goto LAB_00166350;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "long *plVar5;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar5" (* "*") (identifier "plVar5")) (; ";")) (declaration "undefined1 *puVar6;" (type_identifier "undefined1") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (expression_statement "param_1 = (long *)*param_1;" (assignment_expression "param_1 = (long *)*param_1" (identifier "param_1") (= "=") (cast_expression "(long *)*param_1" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (labeled_statement "LAB_001662e7:\n  do {\n    if (*(char *)((long)param_1 + 9) == '\x01') {\n      lVar4 = *param_1;\n      if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n      puVar6 = (undefined1 *)param_1[0xe];\n      if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;\n      goto LAB_00166350;\n    }\n  } while (*(char *)((long)param_1 + 9) != '\x02');" (statement_identifier "LAB_001662e7") (: ":") (do_statement "do {\n    if (*(char *)((long)param_1 + 9) == '\x01') {\n      lVar4 = *param_1;\n      if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n      puVar6 = (undefined1 *)param_1[0xe];\n      if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;\n      goto LAB_00166350;\n    }\n  } while (*(char *)((long)param_1 + 9) != '\x02');" (do "do") (compound_statement "{\n    if (*(char *)((long)param_1 + 9) == '\x01') {\n      lVar4 = *param_1;\n      if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n      puVar6 = (undefined1 *)param_1[0xe];\n      if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;\n      goto LAB_00166350;\n    }\n  }" ({ "{") (if_statement "if (*(char *)((long)param_1 + 9) == '\x01') {\n      lVar4 = *param_1;\n      if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n      puVar6 = (undefined1 *)param_1[0xe];\n      if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;\n      goto LAB_00166350;\n    }" (if "if") (parenthesized_expression "(*(char *)((long)param_1 + 9) == '\x01')" (( "(") (binary_expression "*(char *)((long)param_1 + 9) == '\x01'" (pointer_expression "*(char *)((long)param_1 + 9)" (* "*") (cast_expression "(char *)((long)param_1 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 9)" (( "(") (binary_expression "(long)param_1 + 9" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "9")) () ")")))) (== "==") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")) (compound_statement "{\n      lVar4 = *param_1;\n      if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n      puVar6 = (undefined1 *)param_1[0xe];\n      if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;\n      goto LAB_00166350;\n    }" ({ "{") (expression_statement "lVar4 = *param_1;" (assignment_expression "lVar4 = *param_1" (identifier "lVar4") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;" (if "if") (parenthesized_expression "(*(int *)(lVar4 + 0x1c) == 0)" (( "(") (binary_expression "*(int *)(lVar4 + 0x1c) == 0" (pointer_expression "*(int *)(lVar4 + 0x1c)" (* "*") (cast_expression "(int *)(lVar4 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x1c)" (( "(") (binary_expression "lVar4 + 0x1c" (identifier "lVar4") (+ "+") (number_literal "0x1c")) () ")")))) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00166337;" (goto "goto") (statement_identifier "LAB_00166337") (; ";"))) (expression_statement "puVar6 = (undefined1 *)param_1[0xe];" (assignment_expression "puVar6 = (undefined1 *)param_1[0xe]" (identifier "puVar6") (= "=") (cast_expression "(undefined1 *)param_1[0xe]" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0xe]" (identifier "param_1") ([ "[") (number_literal "0xe") (] "]")))) (; ";")) (if_statement "if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;" (if "if") (parenthesized_expression "(puVar6 < (undefined1 *)param_1[0xd])" (( "(") (binary_expression "puVar6 < (undefined1 *)param_1[0xd]" (identifier "puVar6") (< "<") (cast_expression "(undefined1 *)param_1[0xd]" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0xd]" (identifier "param_1") ([ "[") (number_literal "0xd") (] "]")))) () ")")) (goto_statement "goto LAB_00166306;" (goto "goto") (statement_identifier "LAB_00166306") (; ";"))) (goto_statement "goto LAB_00166350;" (goto "goto") (statement_identifier "LAB_00166350") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(*(char *)((long)param_1 + 9) != '\x02')" (( "(") (binary_expression "*(char *)((long)param_1 + 9) != '\x02'" (pointer_expression "*(char *)((long)param_1 + 9)" (* "*") (cast_expression "(char *)((long)param_1 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 9)" (( "(") (binary_expression "(long)param_1 + 9" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "9")) () ")")))) (!= "!=") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")")) (; ";"))) (goto_statement "goto LAB_0016639a;" (goto "goto") (statement_identifier "LAB_0016639a") (; ";")) (while_statement "while (puVar6 = (undefined1 *)param_1[0xe], puVar6 < (undefined1 *)param_1[0xd]) {\nLAB_00166306:\n    param_1[0xe] = (long)(puVar6 + 1);\n    **(undefined1 **)(lVar4 + 0x10) = *puVar6;\n    *(int *)(*param_1 + 0x1c) = *(int *)(*param_1 + 0x1c) + -1;\n    *(long *)(*param_1 + 0x10) = *(long *)(*param_1 + 0x10) + 1;\n    *(long *)(*param_1 + 0x20) = *(long *)(*param_1 + 0x20) + 1;\n    lVar4 = *param_1;\n    if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n  }" (while "while") (parenthesized_expression "(puVar6 = (undefined1 *)param_1[0xe], puVar6 < (undefined1 *)param_1[0xd])" (( "(") (comma_expression "puVar6 = (undefined1 *)param_1[0xe], puVar6 < (undefined1 *)param_1[0xd]" (assignment_expression "puVar6 = (undefined1 *)param_1[0xe]" (identifier "puVar6") (= "=") (cast_expression "(undefined1 *)param_1[0xe]" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0xe]" (identifier "param_1") ([ "[") (number_literal "0xe") (] "]")))) (, ",") (binary_expression "puVar6 < (undefined1 *)param_1[0xd]" (identifier "puVar6") (< "<") (cast_expression "(undefined1 *)param_1[0xd]" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0xd]" (identifier "param_1") ([ "[") (number_literal "0xd") (] "]"))))) () ")")) (compound_statement "{\nLAB_00166306:\n    param_1[0xe] = (long)(puVar6 + 1);\n    **(undefined1 **)(lVar4 + 0x10) = *puVar6;\n    *(int *)(*param_1 + 0x1c) = *(int *)(*param_1 + 0x1c) + -1;\n    *(long *)(*param_1 + 0x10) = *(long *)(*param_1 + 0x10) + 1;\n    *(long *)(*param_1 + 0x20) = *(long *)(*param_1 + 0x20) + 1;\n    lVar4 = *param_1;\n    if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;\n  }" ({ "{") (labeled_statement "LAB_00166306:\n    param_1[0xe] = (long)(puVar6 + 1);" (statement_identifier "LAB_00166306") (: ":") (expression_statement "param_1[0xe] = (long)(puVar6 + 1);" (assignment_expression "param_1[0xe] = (long)(puVar6 + 1)" (subscript_expression "param_1[0xe]" (identifier "param_1") ([ "[") (number_literal "0xe") (] "]")) (= "=") (cast_expression "(long)(puVar6 + 1)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(puVar6 + 1)" (( "(") (binary_expression "puVar6 + 1" (identifier "puVar6") (+ "+") (number_literal "1")) () ")")))) (; ";"))) (expression_statement "**(undefined1 **)(lVar4 + 0x10) = *puVar6;" (assignment_expression "**(undefined1 **)(lVar4 + 0x10) = *puVar6" (pointer_expression "**(undefined1 **)(lVar4 + 0x10)" (* "*") (pointer_expression "*(undefined1 **)(lVar4 + 0x10)" (* "*") (cast_expression "(undefined1 **)(lVar4 + 0x10)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar4 + 0x10)" (( "(") (binary_expression "lVar4 + 0x10" (identifier "lVar4") (+ "+") (number_literal "0x10")) () ")"))))) (= "=") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) (; ";")) (expression_statement "*(int *)(*param_1 + 0x1c) = *(int *)(*param_1 + 0x1c) + -1;" (assignment_expression "*(int *)(*param_1 + 0x1c) = *(int *)(*param_1 + 0x1c) + -1" (pointer_expression "*(int *)(*param_1 + 0x1c)" (* "*") (cast_expression "(int *)(*param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x1c)" (( "(") (binary_expression "*param_1 + 0x1c" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (binary_expression "*(int *)(*param_1 + 0x1c) + -1" (pointer_expression "*(int *)(*param_1 + 0x1c)" (* "*") (cast_expression "(int *)(*param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x1c)" (( "(") (binary_expression "*param_1 + 0x1c" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x1c")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*(long *)(*param_1 + 0x10) = *(long *)(*param_1 + 0x10) + 1;" (assignment_expression "*(long *)(*param_1 + 0x10) = *(long *)(*param_1 + 0x10) + 1" (pointer_expression "*(long *)(*param_1 + 0x10)" (* "*") (cast_expression "(long *)(*param_1 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x10)" (( "(") (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x10")) () ")")))) (= "=") (binary_expression "*(long *)(*param_1 + 0x10) + 1" (pointer_expression "*(long *)(*param_1 + 0x10)" (* "*") (cast_expression "(long *)(*param_1 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x10)" (( "(") (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(long *)(*param_1 + 0x20) = *(long *)(*param_1 + 0x20) + 1;" (assignment_expression "*(long *)(*param_1 + 0x20) = *(long *)(*param_1 + 0x20) + 1" (pointer_expression "*(long *)(*param_1 + 0x20)" (* "*") (cast_expression "(long *)(*param_1 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x20)" (( "(") (binary_expression "*param_1 + 0x20" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x20")) () ")")))) (= "=") (binary_expression "*(long *)(*param_1 + 0x20) + 1" (pointer_expression "*(long *)(*param_1 + 0x20)" (* "*") (cast_expression "(long *)(*param_1 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x20)" (( "(") (binary_expression "*param_1 + 0x20" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x20")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "lVar4 = *param_1;" (assignment_expression "lVar4 = *param_1" (identifier "lVar4") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;" (if "if") (parenthesized_expression "(*(int *)(lVar4 + 0x1c) == 0)" (( "(") (binary_expression "*(int *)(lVar4 + 0x1c) == 0" (pointer_expression "*(int *)(lVar4 + 0x1c)" (* "*") (cast_expression "(int *)(lVar4 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x1c)" (( "(") (binary_expression "lVar4 + 0x1c" (identifier "lVar4") (+ "+") (number_literal "0x1c")) () ")")))) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00166337;" (goto "goto") (statement_identifier "LAB_00166337") (; ";"))) (} "}"))) (labeled_statement "LAB_00166350:\n  if (((char)param_1[1] == '\x04') && (*(int *)(lVar4 + 0x18) == 0)) {\n    if (0xff < *(uint *)(param_1 + 0xb)) {\n      return;\n    }\n    if (*(int *)((long)param_1 + 0x5c) < 1) {\n      return;\n    }\n  }" (statement_identifier "LAB_00166350") (: ":") (if_statement "if (((char)param_1[1] == '\x04') && (*(int *)(lVar4 + 0x18) == 0)) {\n    if (0xff < *(uint *)(param_1 + 0xb)) {\n      return;\n    }\n    if (*(int *)((long)param_1 + 0x5c) < 1) {\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(((char)param_1[1] == '\x04') && (*(int *)(lVar4 + 0x18) == 0))" (( "(") (binary_expression "((char)param_1[1] == '\x04') && (*(int *)(lVar4 + 0x18) == 0)" (parenthesized_expression "((char)param_1[1] == '\x04')" (( "(") (binary_expression "(char)param_1[1] == '\x04'" (cast_expression "(char)param_1[1]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (== "==") (char_literal "'\x04'" (' "'") (escape_sequence "\x04") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(lVar4 + 0x18) == 0)" (( "(") (binary_expression "*(int *)(lVar4 + 0x18) == 0" (pointer_expression "*(int *)(lVar4 + 0x18)" (* "*") (cast_expression "(int *)(lVar4 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x18)" (( "(") (binary_expression "lVar4 + 0x18" (identifier "lVar4") (+ "+") (number_literal "0x18")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    if (0xff < *(uint *)(param_1 + 0xb)) {\n      return;\n    }\n    if (*(int *)((long)param_1 + 0x5c) < 1) {\n      return;\n    }\n  }" ({ "{") (if_statement "if (0xff < *(uint *)(param_1 + 0xb)) {\n      return;\n    }" (if "if") (parenthesized_expression "(0xff < *(uint *)(param_1 + 0xb))" (( "(") (binary_expression "0xff < *(uint *)(param_1 + 0xb)" (number_literal "0xff") (< "<") (pointer_expression "*(uint *)(param_1 + 0xb)" (* "*") (cast_expression "(uint *)(param_1 + 0xb)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb)" (( "(") (binary_expression "param_1 + 0xb" (identifier "param_1") (+ "+") (number_literal "0xb")) () ")"))))) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (*(int *)((long)param_1 + 0x5c) < 1) {\n      return;\n    }" (if "if") (parenthesized_expression "(*(int *)((long)param_1 + 0x5c) < 1)" (( "(") (binary_expression "*(int *)((long)param_1 + 0x5c) < 1" (pointer_expression "*(int *)((long)param_1 + 0x5c)" (* "*") (cast_expression "(int *)((long)param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x5c)" (( "(") (binary_expression "(long)param_1 + 0x5c" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x5c")) () ")")))) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")))) (expression_statement "*(undefined4 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x11) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x11) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x11)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x11)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x11)" (( "(") (binary_expression "param_1 + 0x11" (identifier "param_1") (+ "+") (number_literal "0x11")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "plVar5 = param_1 + 0x14;" (assignment_expression "plVar5 = param_1 + 0x14" (identifier "plVar5") (= "=") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14"))) (; ";")) (do_statement "do {\n    *(undefined1 *)plVar5 = 0;\n    plVar5 = (long *)((long)plVar5 + 1);\n  } while (param_1 + 0x34 != plVar5);" (do "do") (compound_statement "{\n    *(undefined1 *)plVar5 = 0;\n    plVar5 = (long *)((long)plVar5 + 1);\n  }" ({ "{") (expression_statement "*(undefined1 *)plVar5 = 0;" (assignment_expression "*(undefined1 *)plVar5 = 0" (pointer_expression "*(undefined1 *)plVar5" (* "*") (cast_expression "(undefined1 *)plVar5" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "plVar5"))) (= "=") (number_literal "0")) (; ";")) (expression_statement "plVar5 = (long *)((long)plVar5 + 1);" (assignment_expression "plVar5 = (long *)((long)plVar5 + 1)" (identifier "plVar5") (= "=") (cast_expression "(long *)((long)plVar5 + 1)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar5 + 1)" (( "(") (binary_expression "(long)plVar5 + 1" (cast_expression "(long)plVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar5")) (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1 + 0x34 != plVar5)" (( "(") (binary_expression "param_1 + 0x34 != plVar5" (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) (!= "!=") (identifier "plVar5")) () ")")) (; ";")) (expression_statement "*(int *)(param_1 + 0x12) = (int)param_1[0x12] + 1;" (assignment_expression "*(int *)(param_1 + 0x12) = (int)param_1[0x12] + 1" (pointer_expression "*(int *)(param_1 + 0x12)" (* "*") (cast_expression "(int *)(param_1 + 0x12)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x12)" (( "(") (binary_expression "param_1 + 0x12" (identifier "param_1") (+ "+") (number_literal "0x12")) () ")")))) (= "=") (binary_expression "(int)param_1[0x12] + 1" (cast_expression "(int)param_1[0x12]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[0x12]" (identifier "param_1") ([ "[") (number_literal "0x12") (] "]"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined1 *)((long)param_1 + 9) = 2;" (assignment_expression "*(undefined1 *)((long)param_1 + 9) = 2" (pointer_expression "*(undefined1 *)((long)param_1 + 9)" (* "*") (cast_expression "(undefined1 *)((long)param_1 + 9)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 9)" (( "(") (binary_expression "(long)param_1 + 9" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "9")) () ")")))) (= "=") (number_literal "2")) (; ";")) (labeled_statement "LAB_0016639a:\n  lVar4 = *param_1;" (statement_identifier "LAB_0016639a") (: ":") (expression_statement "lVar4 = *param_1;" (assignment_expression "lVar4 = *param_1" (identifier "lVar4") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";"))) (if_statement "if (*(int *)(lVar4 + 0x18) == 0) {\nLAB_00166421:\n    if ((char)param_1[1] != '\x02') {\n      if (*(uint *)(param_1 + 0xb) < 0x100) {\n        FUN_00164cd7(param_1);\n      }\n      *(undefined4 *)(param_1 + 0xb) = 0x100;\n      *(undefined4 *)((long)param_1 + 0x5c) = 0;\n      FUN_001661c4(param_1,(char)param_1[1] == '\x04');\n      *(undefined1 *)((long)param_1 + 9) = 1;\n      goto LAB_001662e7;\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) {\n      return;\n    }\n  }\n  else {\n    iVar3 = (int)param_1[0xc];\n    if (iVar3 < *(int *)((long)param_1 + 100)) {\n      do {\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      } while (iVar3 < *(int *)((long)param_1 + 100));\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) goto LAB_001662e7;\n  }" (if "if") (parenthesized_expression "(*(int *)(lVar4 + 0x18) == 0)" (( "(") (binary_expression "*(int *)(lVar4 + 0x18) == 0" (pointer_expression "*(int *)(lVar4 + 0x18)" (* "*") (cast_expression "(int *)(lVar4 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x18)" (( "(") (binary_expression "lVar4 + 0x18" (identifier "lVar4") (+ "+") (number_literal "0x18")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00166421:\n    if ((char)param_1[1] != '\x02') {\n      if (*(uint *)(param_1 + 0xb) < 0x100) {\n        FUN_00164cd7(param_1);\n      }\n      *(undefined4 *)(param_1 + 0xb) = 0x100;\n      *(undefined4 *)((long)param_1 + 0x5c) = 0;\n      FUN_001661c4(param_1,(char)param_1[1] == '\x04');\n      *(undefined1 *)((long)param_1 + 9) = 1;\n      goto LAB_001662e7;\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) {\n      return;\n    }\n  }" ({ "{") (labeled_statement "LAB_00166421:\n    if ((char)param_1[1] != '\x02') {\n      if (*(uint *)(param_1 + 0xb) < 0x100) {\n        FUN_00164cd7(param_1);\n      }\n      *(undefined4 *)(param_1 + 0xb) = 0x100;\n      *(undefined4 *)((long)param_1 + 0x5c) = 0;\n      FUN_001661c4(param_1,(char)param_1[1] == '\x04');\n      *(undefined1 *)((long)param_1 + 9) = 1;\n      goto LAB_001662e7;\n    }" (statement_identifier "LAB_00166421") (: ":") (if_statement "if ((char)param_1[1] != '\x02') {\n      if (*(uint *)(param_1 + 0xb) < 0x100) {\n        FUN_00164cd7(param_1);\n      }\n      *(undefined4 *)(param_1 + 0xb) = 0x100;\n      *(undefined4 *)((long)param_1 + 0x5c) = 0;\n      FUN_001661c4(param_1,(char)param_1[1] == '\x04');\n      *(undefined1 *)((long)param_1 + 9) = 1;\n      goto LAB_001662e7;\n    }" (if "if") (parenthesized_expression "((char)param_1[1] != '\x02')" (( "(") (binary_expression "(char)param_1[1] != '\x02'" (cast_expression "(char)param_1[1]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (!= "!=") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")")) (compound_statement "{\n      if (*(uint *)(param_1 + 0xb) < 0x100) {\n        FUN_00164cd7(param_1);\n      }\n      *(undefined4 *)(param_1 + 0xb) = 0x100;\n      *(undefined4 *)((long)param_1 + 0x5c) = 0;\n      FUN_001661c4(param_1,(char)param_1[1] == '\x04');\n      *(undefined1 *)((long)param_1 + 9) = 1;\n      goto LAB_001662e7;\n    }" ({ "{") (if_statement "if (*(uint *)(param_1 + 0xb) < 0x100) {\n        FUN_00164cd7(param_1);\n      }" (if "if") (parenthesized_expression "(*(uint *)(param_1 + 0xb) < 0x100)" (( "(") (binary_expression "*(uint *)(param_1 + 0xb) < 0x100" (pointer_expression "*(uint *)(param_1 + 0xb)" (* "*") (cast_expression "(uint *)(param_1 + 0xb)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb)" (( "(") (binary_expression "param_1 + 0xb" (identifier "param_1") (+ "+") (number_literal "0xb")) () ")")))) (< "<") (number_literal "0x100")) () ")")) (compound_statement "{\n        FUN_00164cd7(param_1);\n      }" ({ "{") (expression_statement "FUN_00164cd7(param_1);" (call_expression "FUN_00164cd7(param_1)" (identifier "FUN_00164cd7") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0xb) = 0x100;" (assignment_expression "*(undefined4 *)(param_1 + 0xb) = 0x100" (pointer_expression "*(undefined4 *)(param_1 + 0xb)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xb)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb)" (( "(") (binary_expression "param_1 + 0xb" (identifier "param_1") (+ "+") (number_literal "0xb")) () ")")))) (= "=") (number_literal "0x100")) (; ";")) (expression_statement "*(undefined4 *)((long)param_1 + 0x5c) = 0;" (assignment_expression "*(undefined4 *)((long)param_1 + 0x5c) = 0" (pointer_expression "*(undefined4 *)((long)param_1 + 0x5c)" (* "*") (cast_expression "(undefined4 *)((long)param_1 + 0x5c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x5c)" (( "(") (binary_expression "(long)param_1 + 0x5c" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x5c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_001661c4(param_1,(char)param_1[1] == '\x04');" (call_expression "FUN_001661c4(param_1,(char)param_1[1] == '\x04')" (identifier "FUN_001661c4") (argument_list "(param_1,(char)param_1[1] == '\x04')" (( "(") (identifier "param_1") (, ",") (binary_expression "(char)param_1[1] == '\x04'" (cast_expression "(char)param_1[1]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (== "==") (char_literal "'\x04'" (' "'") (escape_sequence "\x04") (' "'"))) () ")"))) (; ";")) (expression_statement "*(undefined1 *)((long)param_1 + 9) = 1;" (assignment_expression "*(undefined1 *)((long)param_1 + 9) = 1" (pointer_expression "*(undefined1 *)((long)param_1 + 9)" (* "*") (cast_expression "(undefined1 *)((long)param_1 + 9)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 9)" (( "(") (binary_expression "(long)param_1 + 9" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "9")) () ")")))) (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_001662e7;" (goto "goto") (statement_identifier "LAB_001662e7") (; ";")) (} "}")))) (if_statement "if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) {\n      return;\n    }" (if "if") (parenthesized_expression "((int)param_1[0xc] < *(int *)((long)param_1 + 100))" (( "(") (binary_expression "(int)param_1[0xc] < *(int *)((long)param_1 + 100)" (cast_expression "(int)param_1[0xc]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[0xc]" (identifier "param_1") ([ "[") (number_literal "0xc") (] "]"))) (< "<") (pointer_expression "*(int *)((long)param_1 + 100)" (* "*") (cast_expression "(int *)((long)param_1 + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 100)" (( "(") (binary_expression "(long)param_1 + 100" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "100")) () ")"))))) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar3 = (int)param_1[0xc];\n    if (iVar3 < *(int *)((long)param_1 + 100)) {\n      do {\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      } while (iVar3 < *(int *)((long)param_1 + 100));\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) goto LAB_001662e7;\n  }" (else "else") (compound_statement "{\n    iVar3 = (int)param_1[0xc];\n    if (iVar3 < *(int *)((long)param_1 + 100)) {\n      do {\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      } while (iVar3 < *(int *)((long)param_1 + 100));\n    }\n    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) goto LAB_001662e7;\n  }" ({ "{") (expression_statement "iVar3 = (int)param_1[0xc];" (assignment_expression "iVar3 = (int)param_1[0xc]" (identifier "iVar3") (= "=") (cast_expression "(int)param_1[0xc]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[0xc]" (identifier "param_1") ([ "[") (number_literal "0xc") (] "]")))) (; ";")) (if_statement "if (iVar3 < *(int *)((long)param_1 + 100)) {\n      do {\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      } while (iVar3 < *(int *)((long)param_1 + 100));\n    }" (if "if") (parenthesized_expression "(iVar3 < *(int *)((long)param_1 + 100))" (( "(") (binary_expression "iVar3 < *(int *)((long)param_1 + 100)" (identifier "iVar3") (< "<") (pointer_expression "*(int *)((long)param_1 + 100)" (* "*") (cast_expression "(int *)((long)param_1 + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 100)" (( "(") (binary_expression "(long)param_1 + 100" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "100")) () ")"))))) () ")")) (compound_statement "{\n      do {\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      } while (iVar3 < *(int *)((long)param_1 + 100));\n    }" ({ "{") (do_statement "do {\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      } while (iVar3 < *(int *)((long)param_1 + 100));" (do "do") (compound_statement "{\n        bVar1 = **(byte **)(lVar4 + 8);\n        uVar2 = *(uint *)(param_1 + 0xb);\n        if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }\n        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;\n        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;\n        lVar4 = *param_1;\n        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;\n        iVar3 = (int)param_1[0xc];\n      }" ({ "{") (expression_statement "bVar1 = **(byte **)(lVar4 + 8);" (assignment_expression "bVar1 = **(byte **)(lVar4 + 8)" (identifier "bVar1") (= "=") (pointer_expression "**(byte **)(lVar4 + 8)" (* "*") (pointer_expression "*(byte **)(lVar4 + 8)" (* "*") (cast_expression "(byte **)(lVar4 + 8)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar4 + 8)" (( "(") (binary_expression "lVar4 + 8" (identifier "lVar4") (+ "+") (number_literal "8")) () ")")))))) (; ";")) (expression_statement "uVar2 = *(uint *)(param_1 + 0xb);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0xb)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(param_1 + 0xb)" (* "*") (cast_expression "(uint *)(param_1 + 0xb)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb)" (( "(") (binary_expression "param_1 + 0xb" (identifier "param_1") (+ "+") (number_literal "0xb")) () ")"))))) (; ";")) (if_statement "if (bVar1 == uVar2) {\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }\n        else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }" (if "if") (parenthesized_expression "(bVar1 == uVar2)" (( "(") (binary_expression "bVar1 == uVar2" (identifier "bVar1") (== "==") (identifier "uVar2")) () ")")) (compound_statement "{\n          if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }\n          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;\n        }" ({ "{") (if_statement "if (*(int *)((long)param_1 + 0x5c) == 0xff) {\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }" (if "if") (parenthesized_expression "(*(int *)((long)param_1 + 0x5c) == 0xff)" (( "(") (binary_expression "*(int *)((long)param_1 + 0x5c) == 0xff" (pointer_expression "*(int *)((long)param_1 + 0x5c)" (* "*") (cast_expression "(int *)((long)param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x5c)" (( "(") (binary_expression "(long)param_1 + 0x5c" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x5c")) () ")")))) (== "==") (number_literal "0xff")) () ")")) (compound_statement "{\nLAB_001664bf:\n            FUN_00164cd7(param_1);\n            goto LAB_001664c7;\n          }" ({ "{") (labeled_statement "LAB_001664bf:\n            FUN_00164cd7(param_1);" (statement_identifier "LAB_001664bf") (: ":") (expression_statement "FUN_00164cd7(param_1);" (call_expression "FUN_00164cd7(param_1)" (identifier "FUN_00164cd7") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";"))) (goto_statement "goto LAB_001664c7;" (goto "goto") (statement_identifier "LAB_001664c7") (; ";")) (} "}"))) (expression_statement "*(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;" (assignment_expression "*(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1" (pointer_expression "*(int *)((long)param_1 + 0x5c)" (* "*") (cast_expression "(int *)((long)param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x5c)" (( "(") (binary_expression "(long)param_1 + 0x5c" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x5c")) () ")")))) (= "=") (binary_expression "*(int *)((long)param_1 + 0x5c) + 1" (pointer_expression "*(int *)((long)param_1 + 0x5c)" (* "*") (cast_expression "(int *)((long)param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x5c)" (( "(") (binary_expression "(long)param_1 + 0x5c" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x5c")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }" (else "else") (if_statement "if (*(int *)((long)param_1 + 0x5c) == 1) {\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }\n        else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }" (if "if") (parenthesized_expression "(*(int *)((long)param_1 + 0x5c) == 1)" (( "(") (binary_expression "*(int *)((long)param_1 + 0x5c) == 1" (pointer_expression "*(int *)((long)param_1 + 0x5c)" (* "*") (cast_expression "(int *)((long)param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x5c)" (( "(") (binary_expression "(long)param_1 + 0x5c" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x5c")) () ")")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n          *(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);\n          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;\n          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;\n          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n        }" ({ "{") (expression_statement "*(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);" (assignment_expression "*(uint *)(param_1 + 0x11) =\n               *(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4)" (pointer_expression "*(uint *)(param_1 + 0x11)" (* "*") (cast_expression "(uint *)(param_1 + 0x11)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x11)" (( "(") (binary_expression "param_1 + 0x11" (identifier "param_1") (+ "+") (number_literal "0x11")) () ")")))) (= "=") (binary_expression "*(uint *)(param_1 + 0x11) << 8 ^\n               *(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4)" (binary_expression "*(uint *)(param_1 + 0x11) << 8" (pointer_expression "*(uint *)(param_1 + 0x11)" (* "*") (cast_expression "(uint *)(param_1 + 0x11)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x11)" (( "(") (binary_expression "param_1 + 0x11" (identifier "param_1") (+ "+") (number_literal "0x11")) () ")")))) (<< "<<") (number_literal "8")) (^ "^") (pointer_expression "*(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4)" (* "*") (cast_expression "(uint *)(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4)" (( "(") (binary_expression "param_1[0x10] +\n                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4" (subscript_expression "param_1[0x10]" (identifier "param_1") ([ "[") (number_literal "0x10") (] "]")) (+ "+") (binary_expression "(ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4" (call_expression "(ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff" (parenthesized_expression "(*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2)" (( "(") (binary_expression "*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2" (binary_expression "*(uint *)(param_1 + 0x11) >> 0x18" (pointer_expression "*(uint *)(param_1 + 0x11)" (* "*") (cast_expression "(uint *)(param_1 + 0x11)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x11)" (( "(") (binary_expression "param_1 + 0x11" (identifier "param_1") (+ "+") (number_literal "0x11")) () ")")))) (>> ">>") (number_literal "0x18")) (^ "^") (identifier "uVar2")) () ")")) (& "&") (number_literal "0xff")) () ")"))) (* "*") (number_literal "4"))) () ")")))))) (; ";")) (expression_statement "*(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;" (assignment_expression "*(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1" (pointer_expression "*(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0)" (* "*") (cast_expression "(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + (ulong)uVar2 + 0xa0)" (( "(") (binary_expression "(long)param_1 + (ulong)uVar2 + 0xa0" (binary_expression "(long)param_1 + (ulong)uVar2" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (cast_expression "(ulong)uVar2" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar2"))) (+ "+") (number_literal "0xa0")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(char *)(param_1[8] + (long)iVar3) = (char)uVar2;" (assignment_expression "*(char *)(param_1[8] + (long)iVar3) = (char)uVar2" (pointer_expression "*(char *)(param_1[8] + (long)iVar3)" (* "*") (cast_expression "(char *)(param_1[8] + (long)iVar3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[8] + (long)iVar3)" (( "(") (binary_expression "param_1[8] + (long)iVar3" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (+ "+") (cast_expression "(long)iVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar3"))) () ")")))) (= "=") (cast_expression "(char)uVar2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar2"))) (; ";")) (expression_statement "*(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;" (assignment_expression "*(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "(int)param_1[0xc] + 1" (cast_expression "(int)param_1[0xc]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[0xc]" (identifier "param_1") ([ "[") (number_literal "0xc") (] "]"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(uint *)(param_1 + 0xb) = (uint)bVar1;" (assignment_expression "*(uint *)(param_1 + 0xb) = (uint)bVar1" (pointer_expression "*(uint *)(param_1 + 0xb)" (* "*") (cast_expression "(uint *)(param_1 + 0xb)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb)" (( "(") (binary_expression "param_1 + 0xb" (identifier "param_1") (+ "+") (number_literal "0xb")) () ")")))) (= "=") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1"))) (; ";")) (} "}")) (else_clause "else {\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }" (else "else") (compound_statement "{\n          if (uVar2 < 0x100) goto LAB_001664bf;\nLAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;\n          *(undefined4 *)((long)param_1 + 0x5c) = 1;\n        }" ({ "{") (if_statement "if (uVar2 < 0x100) goto LAB_001664bf;" (if "if") (parenthesized_expression "(uVar2 < 0x100)" (( "(") (binary_expression "uVar2 < 0x100" (identifier "uVar2") (< "<") (number_literal "0x100")) () ")")) (goto_statement "goto LAB_001664bf;" (goto "goto") (statement_identifier "LAB_001664bf") (; ";"))) (labeled_statement "LAB_001664c7:\n          *(uint *)(param_1 + 0xb) = (uint)bVar1;" (statement_identifier "LAB_001664c7") (: ":") (expression_statement "*(uint *)(param_1 + 0xb) = (uint)bVar1;" (assignment_expression "*(uint *)(param_1 + 0xb) = (uint)bVar1" (pointer_expression "*(uint *)(param_1 + 0xb)" (* "*") (cast_expression "(uint *)(param_1 + 0xb)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb)" (( "(") (binary_expression "param_1 + 0xb" (identifier "param_1") (+ "+") (number_literal "0xb")) () ")")))) (= "=") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1"))) (; ";"))) (expression_statement "*(undefined4 *)((long)param_1 + 0x5c) = 1;" (assignment_expression "*(undefined4 *)((long)param_1 + 0x5c) = 1" (pointer_expression "*(undefined4 *)((long)param_1 + 0x5c)" (* "*") (cast_expression "(undefined4 *)((long)param_1 + 0x5c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x5c)" (( "(") (binary_expression "(long)param_1 + 0x5c" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x5c")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}")))))) (expression_statement "*(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;" (assignment_expression "*(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1" (pointer_expression "*(long *)(*param_1 + 8)" (* "*") (cast_expression "(long *)(*param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 8)" (( "(") (binary_expression "*param_1 + 8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "*(long *)(*param_1 + 8) + 1" (pointer_expression "*(long *)(*param_1 + 8)" (* "*") (cast_expression "(long *)(*param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 8)" (( "(") (binary_expression "*param_1 + 8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;" (assignment_expression "*(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1" (pointer_expression "*(int *)(*param_1 + 0x18)" (* "*") (cast_expression "(int *)(*param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x18)" (( "(") (binary_expression "*param_1 + 0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x18")) () ")")))) (= "=") (binary_expression "*(int *)(*param_1 + 0x18) + -1" (pointer_expression "*(int *)(*param_1 + 0x18)" (* "*") (cast_expression "(int *)(*param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x18)" (( "(") (binary_expression "*param_1 + 0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "lVar4 = *param_1;" (assignment_expression "lVar4 = *param_1" (identifier "lVar4") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;" (if "if") (parenthesized_expression "(*(int *)(lVar4 + 0x18) == 0)" (( "(") (binary_expression "*(int *)(lVar4 + 0x18) == 0" (pointer_expression "*(int *)(lVar4 + 0x18)" (* "*") (cast_expression "(int *)(lVar4 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x18)" (( "(") (binary_expression "lVar4 + 0x18" (identifier "lVar4") (+ "+") (number_literal "0x18")) () ")")))) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00166421;" (goto "goto") (statement_identifier "LAB_00166421") (; ";"))) (expression_statement "iVar3 = (int)param_1[0xc];" (assignment_expression "iVar3 = (int)param_1[0xc]" (identifier "iVar3") (= "=") (cast_expression "(int)param_1[0xc]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[0xc]" (identifier "param_1") ([ "[") (number_literal "0xc") (] "]")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 < *(int *)((long)param_1 + 100))" (( "(") (binary_expression "iVar3 < *(int *)((long)param_1 + 100)" (identifier "iVar3") (< "<") (pointer_expression "*(int *)((long)param_1 + 100)" (* "*") (cast_expression "(int *)((long)param_1 + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 100)" (( "(") (binary_expression "(long)param_1 + 100" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "100")) () ")"))))) () ")")) (; ";")) (} "}"))) (if_statement "if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) goto LAB_001662e7;" (if "if") (parenthesized_expression "((int)param_1[0xc] < *(int *)((long)param_1 + 100))" (( "(") (binary_expression "(int)param_1[0xc] < *(int *)((long)param_1 + 100)" (cast_expression "(int)param_1[0xc]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[0xc]" (identifier "param_1") ([ "[") (number_literal "0xc") (] "]"))) (< "<") (pointer_expression "*(int *)((long)param_1 + 100)" (* "*") (cast_expression "(int *)((long)param_1 + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 100)" (( "(") (binary_expression "(long)param_1 + 100" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "100")) () ")"))))) () ")")) (goto_statement "goto LAB_001662e7;" (goto "goto") (statement_identifier "LAB_001662e7") (; ";"))) (} "}")))) (expression_statement "FUN_001661c4(param_1,0);" (call_expression "FUN_001661c4(param_1,0)" (identifier "FUN_001661c4") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "*(undefined1 *)((long)param_1 + 9) = 1;" (assignment_expression "*(undefined1 *)((long)param_1 + 9) = 1" (pointer_expression "*(undefined1 *)((long)param_1 + 9)" (* "*") (cast_expression "(undefined1 *)((long)param_1 + 9)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 9)" (( "(") (binary_expression "(long)param_1 + 9" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "9")) () ")")))) (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_001662e7;" (goto "goto") (statement_identifier "LAB_001662e7") (; ";")) (labeled_statement "LAB_00166337:\n  if ((ulong)param_1[0xe] < (ulong)param_1[0xd]) {\n    return;\n  }" (statement_identifier "LAB_00166337") (: ":") (if_statement "if ((ulong)param_1[0xe] < (ulong)param_1[0xd]) {\n    return;\n  }" (if "if") (parenthesized_expression "((ulong)param_1[0xe] < (ulong)param_1[0xd])" (( "(") (binary_expression "(ulong)param_1[0xe] < (ulong)param_1[0xd]" (cast_expression "(ulong)param_1[0xe]" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (subscript_expression "param_1[0xe]" (identifier "param_1") ([ "[") (number_literal "0xe") (] "]"))) (< "<") (cast_expression "(ulong)param_1[0xd]" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (subscript_expression "param_1[0xd]" (identifier "param_1") ([ "[") (number_literal "0xd") (] "]")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}")))) (goto_statement "goto LAB_00166350;" (goto "goto") (statement_identifier "LAB_00166350") (; ";")) (} "}")))

void function_1(type_1 *strm)

{
  type_2 *puVar1;
  char **ppcVar2;
  type_3 *puVar3;
  type_4 var_6;
  type_2 var_7;
  type_5 *s;
  int var_5;
  type_1 *pbVar7;
  type_6 *var_2;
  uint8_t *var_1;
  
  s = (type_5 *)strm->state;
LAB_001662e7:
  do {
    if (s->state == '\x01') {
      pbVar7 = s->strm;
      if (pbVar7->avail_out == 0) goto LAB_00166337;
      var_1 = s->state_out_pos;
      if (var_1 < s->posZ) goto LAB_00166306;
      goto LAB_00166350;
    }
  } while (s->state != '\x02');
  goto LAB_0016639a;
  while (var_1 = s->state_out_pos, var_1 < s->posZ) {
LAB_00166306:
    s->state_out_pos = var_1 + 1;
    *pbVar7->next_out = *var_1;
    puVar1 = &s->strm->avail_out;
    *puVar1 = *puVar1 - 1;
    ppcVar2 = &s->strm->next_out;
    *ppcVar2 = *ppcVar2 + 1;
    puVar3 = &s->strm->total_out;
    *puVar3 = *puVar3 + 1;
    pbVar7 = s->strm;
    if (pbVar7->avail_out == 0) goto LAB_00166337;
  }
LAB_00166350:
  if ((s->mode == '\x04') && (pbVar7->avail_in == 0)) {
    if (0xff < s->state_in_ch) {
      return;
    }
    if (s->state_in_len < 1) {
      return;
    }
  }
  s->nblock = 0;
  s->blockCRC = 0xffffffff;
  var_2 = s->inUse;
  do {
    *var_2 = '\0';
    var_2 = var_2 + 1;
  } while (s->unseqToSeq != var_2);
  s->blockNo = s->blockNo + 1;
  s->state = '\x02';
LAB_0016639a:
  pbVar7 = s->strm;
  if (pbVar7->avail_in == 0) {
LAB_00166421:
    if (s->mode != '\x02') {
      if (s->state_in_ch < 0x100) {
        var_3(s);
      }
      s->state_in_ch = 0x100;
      s->state_in_len = 0;
      var_4(s,(type_2)(s->mode == '\x04'));
      s->state = '\x01';
      goto LAB_001662e7;
    }
    if (s->nblock < s->nblockMAX) {
      return;
    }
  }
  else {
    var_5 = s->nblock;
    if (var_5 < s->nblockMAX) {
      do {
        var_6 = *pbVar7->next_in;
        var_7 = s->state_in_ch;
        if (var_6 == var_7) {
          if (s->state_in_len == 0xff) {
LAB_001664bf:
            var_3(s);
            goto LAB_001664c7;
          }
          s->state_in_len = s->state_in_len + 1;
        }
        else if (s->state_in_len == 1) {
          s->blockCRC = s->blockCRC << 8 ^ s->crc32table[(s->blockCRC >> 0x18 ^ var_7) & 0xff];
          s->inUse[var_7] = '\x01';
          s->block[var_5] = (uint8_t)var_7;
          s->nblock = s->nblock + 1;
          s->state_in_ch = (type_2)var_6;
        }
        else {
          if (var_7 < 0x100) goto LAB_001664bf;
LAB_001664c7:
          s->state_in_ch = (type_2)var_6;
          s->state_in_len = 1;
        }
        ppcVar2 = &s->strm->next_in;
        *ppcVar2 = *ppcVar2 + 1;
        puVar1 = &s->strm->avail_in;
        *puVar1 = *puVar1 - 1;
        pbVar7 = s->strm;
        if (pbVar7->avail_in == 0) goto LAB_00166421;
        var_5 = s->nblock;
      } while (var_5 < s->nblockMAX);
    }
    if (s->nblock < s->nblockMAX) goto LAB_001662e7;
  }
  var_4(s,0);
  s->state = '\x01';
  goto LAB_001662e7;
LAB_00166337:
  if (s->state_out_pos < s->posZ) {
    return;
  }
  goto LAB_00166350;
}


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

void MASKED(long *param_1)

{
  byte bVar1;
  uint uVar2;
  int iVar3;
  long lVar4;
  long *plVar5;
  undefined1 *puVar6;
  
  param_1 = (long *)*param_1;
LAB_001662e7:
  do {
    if (*(char *)((long)param_1 + 9) == '\x01') {
      lVar4 = *param_1;
      if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;
      puVar6 = (undefined1 *)param_1[0xe];
      if (puVar6 < (undefined1 *)param_1[0xd]) goto LAB_00166306;
      goto LAB_00166350;
    }
  } while (*(char *)((long)param_1 + 9) != '\x02');
  goto LAB_0016639a;
  while (puVar6 = (undefined1 *)param_1[0xe], puVar6 < (undefined1 *)param_1[0xd]) {
LAB_00166306:
    param_1[0xe] = (long)(puVar6 + 1);
    **(undefined1 **)(lVar4 + 0x10) = *puVar6;
    *(int *)(*param_1 + 0x1c) = *(int *)(*param_1 + 0x1c) + -1;
    *(long *)(*param_1 + 0x10) = *(long *)(*param_1 + 0x10) + 1;
    *(long *)(*param_1 + 0x20) = *(long *)(*param_1 + 0x20) + 1;
    lVar4 = *param_1;
    if (*(int *)(lVar4 + 0x1c) == 0) goto LAB_00166337;
  }
LAB_00166350:
  if (((char)param_1[1] == '\x04') && (*(int *)(lVar4 + 0x18) == 0)) {
    if (0xff < *(uint *)(param_1 + 0xb)) {
      return;
    }
    if (*(int *)((long)param_1 + 0x5c) < 1) {
      return;
    }
  }
  *(undefined4 *)(param_1 + 0xc) = 0;
  *(undefined4 *)(param_1 + 0x11) = 0xffffffff;
  plVar5 = param_1 + 0x14;
  do {
    *(undefined1 *)plVar5 = 0;
    plVar5 = (long *)((long)plVar5 + 1);
  } while (param_1 + 0x34 != plVar5);
  *(int *)(param_1 + 0x12) = (int)param_1[0x12] + 1;
  *(undefined1 *)((long)param_1 + 9) = 2;
LAB_0016639a:
  lVar4 = *param_1;
  if (*(int *)(lVar4 + 0x18) == 0) {
LAB_00166421:
    if ((char)param_1[1] != '\x02') {
      if (*(uint *)(param_1 + 0xb) < 0x100) {
        FUN_00164cd7(param_1);
      }
      *(undefined4 *)(param_1 + 0xb) = 0x100;
      *(undefined4 *)((long)param_1 + 0x5c) = 0;
      FUN_001661c4(param_1,(char)param_1[1] == '\x04');
      *(undefined1 *)((long)param_1 + 9) = 1;
      goto LAB_001662e7;
    }
    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) {
      return;
    }
  }
  else {
    iVar3 = (int)param_1[0xc];
    if (iVar3 < *(int *)((long)param_1 + 100)) {
      do {
        bVar1 = **(byte **)(lVar4 + 8);
        uVar2 = *(uint *)(param_1 + 0xb);
        if (bVar1 == uVar2) {
          if (*(int *)((long)param_1 + 0x5c) == 0xff) {
LAB_001664bf:
            FUN_00164cd7(param_1);
            goto LAB_001664c7;
          }
          *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;
        }
        else if (*(int *)((long)param_1 + 0x5c) == 1) {
          *(uint *)(param_1 + 0x11) =
               *(uint *)(param_1 + 0x11) << 8 ^
               *(uint *)(param_1[0x10] +
                        (ulong)((*(uint *)(param_1 + 0x11) >> 0x18 ^ uVar2) & 0xff) * 4);
          *(undefined1 *)((long)param_1 + (ulong)uVar2 + 0xa0) = 1;
          *(char *)(param_1[8] + (long)iVar3) = (char)uVar2;
          *(int *)(param_1 + 0xc) = (int)param_1[0xc] + 1;
          *(uint *)(param_1 + 0xb) = (uint)bVar1;
        }
        else {
          if (uVar2 < 0x100) goto LAB_001664bf;
LAB_001664c7:
          *(uint *)(param_1 + 0xb) = (uint)bVar1;
          *(undefined4 *)((long)param_1 + 0x5c) = 1;
        }
        *(long *)(*param_1 + 8) = *(long *)(*param_1 + 8) + 1;
        *(int *)(*param_1 + 0x18) = *(int *)(*param_1 + 0x18) + -1;
        lVar4 = *param_1;
        if (*(int *)(lVar4 + 0x18) == 0) goto LAB_00166421;
        iVar3 = (int)param_1[0xc];
      } while (iVar3 < *(int *)((long)param_1 + 100));
    }
    if ((int)param_1[0xc] < *(int *)((long)param_1 + 100)) goto LAB_001662e7;
  }
  FUN_001661c4(param_1,0);
  *(undefined1 *)((long)param_1 + 9) = 1;
  goto LAB_001662e7;
LAB_00166337:
  if ((ulong)param_1[0xe] < (ulong)param_1[0xd]) {
    return;
  }
  goto LAB_00166350;
}

