
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void process_signals(void)

{
  byte bVar1;
  int iVar2;
  uint uVar3;
  int iVar4;
  int *piVar5;
  byte *pbVar6;
  undefined1 *puVar7;
  sigset_t *psVar8;
  sigset_t *in_a1;
  int in_a2;
  undefined4 in_a3;
  undefined4 uVar9;
  sigset_t *psVar10;
  uint uVar11;
  undefined *puVar12;
  int iVar13;
  undefined4 *puVar14;
  int iVar15;
  uint uVar16;
  undefined *puVar17;
  sigset_t oldset;
  
  puVar17 = PTR_DAT_0005d118;
  iVar2 = *(int *)PTR___stack_chk_guard_0005d5c0;
  puVar12 = PTR_DAT_0005d118 + -0x27c0;
  while ((psVar8 = (sigset_t *)0x3, *(int *)(puVar17 + -0x27c4) != 0 ||
         (*(int *)(puVar17 + -0x27c8) != 0))) {
    set_color_context(RESET_CONTEXT);
    (*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0);
    (*(code *)PTR_sigprocmask_0005d5e0)(1,puVar12,&oldset);
    uVar9 = *(undefined4 *)(puVar17 + -0x27c4);
    if (*(int *)(puVar17 + -0x27c8) == 0) {
      (*(code *)PTR_signal_0005d5a4)(uVar9,0);
    }
    else {
      *(int *)(puVar17 + -0x27c8) = *(int *)(puVar17 + -0x27c8) + -1;
      uVar9 = 0x17;
    }
    (*(code *)PTR_raise_0005d614)(uVar9);
    in_a2 = 0;
    in_a1 = &oldset;
    (*(code *)PTR_sigprocmask_0005d5e0)(3);
  }
  if (iVar2 == *(int *)PTR___stack_chk_guard_0005d5c0) {
    return;
  }
  puVar17 = PTR___stack_chk_fail_0005d598;
  (*(code *)PTR___stack_chk_fail_0005d598)();
  if (**(char **)(puVar17 + 0x3c988) == '\0') {
    uVar11 = (int)in_a1 - (int)psVar8;
    if (uVar11 != 0) {
      puVar14 = *(undefined4 **)(puVar17 + 0x3c8d4);
      iVar2 = *(int *)(puVar17 + 0x3c9f0);
      do {
        uVar16 = 0x400;
        if (uVar11 < 0x401) {
          uVar16 = uVar11;
        }
        uVar3 = (**(code **)(puVar17 + 0x3cce0))(psVar8,1,uVar16,*puVar14);
        psVar8 = (sigset_t *)((int)psVar8->__val + uVar3);
        if (uVar3 < uVar16) {
          return;
        }
        uVar11 = uVar11 - uVar3;
        (*(code *)(iVar2 + 0x77c))();
      } while (uVar11 != 0);
    }
  }
  else {
    iVar2 = **(int **)(puVar17 + 0x3c8d4);
    uVar11 = **(uint **)(puVar17 + 0x3c9c0);
    uVar16 = 0;
    if (psVar8 < in_a1) {
      iVar15 = 1;
      iVar4 = *(int *)(puVar17 + 0x3c9f0);
      do {
        psVar10 = (sigset_t *)((int)psVar8->__val + 1);
        bVar1 = *(byte *)psVar8->__val;
        uVar3 = (uint)bVar1;
        if (bVar1 == 9) {
          if (uVar11 == 0) {
            trap(7);
          }
          iVar13 = uVar11 - uVar16 % uVar11;
          uVar16 = uVar16 + iVar13;
          do {
            puVar7 = *(undefined1 **)(iVar2 + 0x14);
            if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {
              *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;
              *puVar7 = 0x20;
            }
            else {
              (**(code **)(puVar17 + 0x3cbd8))(iVar2,0x20);
            }
            iVar13 = iVar13 + -1;
          } while (iVar13 != 0);
LAB_00020a58:
          if (in_a1 <= psVar10) {
            return;
          }
        }
        else {
          if (bVar1 != 0xd) {
            if (bVar1 == 8) {
              if (uVar16 != 0) {
                puVar7 = *(undefined1 **)(iVar2 + 0x14);
                uVar16 = uVar16 - 1;
                if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {
                  *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;
                  *puVar7 = 8;
                }
                else {
                  (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);
                }
              }
            }
            else {
              piVar5 = (int *)(**(code **)(puVar17 + 0x3cb74))();
              uVar16 = uVar16 - ((int)((uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19) >> 0x1f);
              pbVar6 = *(byte **)(iVar2 + 0x14);
              if (pbVar6 < *(byte **)(iVar2 + 0x18)) {
                *(byte **)(iVar2 + 0x14) = pbVar6 + 1;
                *pbVar6 = bVar1;
              }
              else {
                (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);
              }
            }
            goto LAB_00020a58;
          }
          puVar7 = *(undefined1 **)(iVar2 + 0x14);
          if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {
            *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;
            *puVar7 = 0xd;
          }
          else {
            (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);
          }
          if (in_a2 == 0) {
            uVar16 = 0;
            goto LAB_00020a58;
          }
          if (in_a1 <= psVar10) {
            return;
          }
          if (*(char *)psVar10->__val == '\n') {
            uVar16 = 0;
          }
          else {
            (**(code **)(puVar17 + 0x3cbb0))(iVar2,1,in_a2,in_a3);
            uVar16 = 0;
          }
        }
        iVar15 = iVar15 + 1;
        psVar8 = psVar10;
        if (iVar15 == 0x400) {
          (*(code *)(iVar4 + 0x77c))();
          iVar15 = 0;
        }
      } while( true );
    }
  }
  return;
}



void FUN_0002077c(undefined4 param_1,byte *param_2,int param_3,undefined4 param_4)

{
  byte bVar1;
  uint uVar2;
  int iVar3;
  int *piVar4;
  undefined1 *puVar5;
  byte *pbVar6;
  undefined4 uVar7;
  byte *pbVar8;
  uint uVar9;
  undefined *puVar10;
  int iVar11;
  int iVar12;
  undefined4 *puVar13;
  int iVar14;
  uint uVar15;
  undefined *puVar16;
  byte abStack_9c [128];
  int local_1c;
  
  puVar16 = PTR_DAT_0005d118;
  local_1c = *(int *)PTR___stack_chk_guard_0005d5c0;
  puVar10 = PTR_DAT_0005d118 + -0x27c0;
  while ((pbVar6 = (byte *)0x3, *(int *)(puVar16 + -0x27c4) != 0 ||
         (*(int *)(puVar16 + -0x27c8) != 0))) {
    set_color_context();
    (*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0);
    (*(code *)PTR_sigprocmask_0005d5e0)(1,puVar10,abStack_9c);
    uVar7 = *(undefined4 *)(puVar16 + -0x27c4);
    if (*(int *)(puVar16 + -0x27c8) == 0) {
      (*(code *)PTR_signal_0005d5a4)(uVar7,0);
    }
    else {
      *(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;
      uVar7 = 0x17;
    }
    (*(code *)PTR_raise_0005d614)(uVar7);
    param_3 = 0;
    param_2 = abStack_9c;
    (*(code *)PTR_sigprocmask_0005d5e0)(3);
  }
  if (local_1c == *(int *)PTR___stack_chk_guard_0005d5c0) {
    return;
  }
  puVar16 = PTR___stack_chk_fail_0005d598;
  (*(code *)PTR___stack_chk_fail_0005d598)();
  if (**(char **)(puVar16 + 0x3c988) == '\0') {
    uVar9 = (int)param_2 - (int)pbVar6;
    if (uVar9 != 0) {
      puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4);
      iVar11 = *(int *)(puVar16 + 0x3c9f0);
      do {
        uVar15 = 0x400;
        if (uVar9 < 0x401) {
          uVar15 = uVar9;
        }
        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);
        pbVar6 = pbVar6 + uVar2;
        if (uVar2 < uVar15) {
          return;
        }
        uVar9 = uVar9 - uVar2;
        (*(code *)(iVar11 + 0x77c))();
      } while (uVar9 != 0);
    }
  }
  else {
    iVar11 = **(int **)(puVar16 + 0x3c8d4);
    uVar9 = **(uint **)(puVar16 + 0x3c9c0);
    uVar15 = 0;
    if (pbVar6 < param_2) {
      iVar14 = 1;
      iVar3 = *(int *)(puVar16 + 0x3c9f0);
      do {
        pbVar8 = pbVar6 + 1;
        bVar1 = *pbVar6;
        uVar2 = (uint)bVar1;
        if (bVar1 == 9) {
          if (uVar9 == 0) {
            trap(7);
          }
          iVar12 = uVar9 - uVar15 % uVar9;
          uVar15 = uVar15 + iVar12;
          do {
            puVar5 = *(undefined1 **)(iVar11 + 0x14);
            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {
              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;
              *puVar5 = 0x20;
            }
            else {
              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);
            }
            iVar12 = iVar12 + -1;
          } while (iVar12 != 0);
LAB_00020a58:
          if (param_2 <= pbVar8) {
            return;
          }
        }
        else {
          if (bVar1 != 0xd) {
            if (bVar1 == 8) {
              if (uVar15 != 0) {
                puVar5 = *(undefined1 **)(iVar11 + 0x14);
                uVar15 = uVar15 - 1;
                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {
                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;
                  *puVar5 = 8;
                }
                else {
                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);
                }
              }
            }
            else {
              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();
              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);
              pbVar6 = *(byte **)(iVar11 + 0x14);
              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {
                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;
                *pbVar6 = bVar1;
              }
              else {
                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);
              }
            }
            goto LAB_00020a58;
          }
          puVar5 = *(undefined1 **)(iVar11 + 0x14);
          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {
            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;
            *puVar5 = 0xd;
          }
          else {
            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);
          }
          if (param_3 == 0) {
            uVar15 = 0;
            goto LAB_00020a58;
          }
          if (param_2 <= pbVar8) {
            return;
          }
          if (*pbVar8 == 10) {
            uVar15 = 0;
          }
          else {
            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);
            uVar15 = 0;
          }
        }
        iVar14 = iVar14 + 1;
        pbVar6 = pbVar8;
        if (iVar14 == 0x400) {
          (*(code *)(iVar3 + 0x77c))();
          iVar14 = 0;
        }
      } while( true );
    }
  }
  return;
}


lui gp,0x4
addiu gp,gp,0x4974
addu gp,gp,t9
addiu sp,sp,-0xb8
sw ra,0xb4(sp)
sw s4,0xb0(sp)
sw s3,0xac(sp)
sw s2,0xa8(sp)
sw s1,0xa4(sp)
sw s0,0xa0(sp)
sw gp,0x10(sp)
lw v0,-0x7b30(gp)
lw v0,0x0(v0)
sw v0,0x9c(sp)
lw s2,-0x7fd8(gp)
lw s1,-0x7fd8(gp)
lw s4,-0x7f54(gp)
lw s3,-0x7fd8(gp)
b 0x00020858
_addiu s3,s3,-0x27c0
or t9,s4,zero
bal 0x000205e8
_nop
lw gp,0x10(sp)
lw v0,-0x7c20(gp)
lw a0,0x0(v0)
lw t9,-0x7b64(gp)
jalr t9
_nop
lw gp,0x10(sp)
addiu a2,sp,0x1c
or a1,s3,zero
li a0,0x1
lw t9,-0x7b10(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw s0,-0x27c4(s2)
lw v0,-0x27c8(s1)
beq v0,zero,0x000208a0
_addiu v0,v0,-0x1
sw v0,-0x27c8(s1)
li s0,0x17
or a0,s0,zero
lw t9,-0x7adc(gp)
jalr t9
_nop
lw gp,0x10(sp)
or a2,zero,zero
addiu a1,sp,0x1c
li a0,0x3
lw t9,-0x7b10(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw v0,-0x27c4(s2)
bne v0,zero,0x000207cc
_li a0,0x3
lw v0,-0x27c8(s1)
bne v0,zero,0x000207d0
_or t9,s4,zero
lw v1,0x9c(sp)
lw v0,-0x7b30(gp)
lw v0,0x0(v0)
bne v1,v0,0x000208c0
_lw ra,0xb4(sp)
lw s4,0xb0(sp)
lw s3,0xac(sp)
lw s2,0xa8(sp)
lw s1,0xa4(sp)
lw s0,0xa0(sp)
jr ra
_addiu sp,sp,0xb8
or a1,zero,zero
or a0,s0,zero
lw t9,-0x7b4c(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x0002082c
_or a0,s0,zero
lw t9,-0x7b58(gp)
jalr t9
_nop
(translation_unit "void FUN_0002077c(undefined4 param_1,byte *param_2,int param_3,undefined4 param_4)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  int *piVar4;\n  undefined1 *puVar5;\n  byte *pbVar6;\n  undefined4 uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  undefined *puVar10;\n  int iVar11;\n  int iVar12;\n  undefined4 *puVar13;\n  int iVar14;\n  uint uVar15;\n  undefined *puVar16;\n  byte abStack_9c [128];\n  int local_1c;\n  \n  puVar16 = PTR_DAT_0005d118;\n  local_1c = *(int *)PTR___stack_chk_guard_0005d5c0;\n  puVar10 = PTR_DAT_0005d118 + -0x27c0;\n  while ((pbVar6 = (byte *)0x3, *(int *)(puVar16 + -0x27c4) != 0 ||\n         (*(int *)(puVar16 + -0x27c8) != 0))) {\n    set_color_context();\n    (*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0);\n    (*(code *)PTR_sigprocmask_0005d5e0)(1,puVar10,abStack_9c);\n    uVar7 = *(undefined4 *)(puVar16 + -0x27c4);\n    if (*(int *)(puVar16 + -0x27c8) == 0) {\n      (*(code *)PTR_signal_0005d5a4)(uVar7,0);\n    }\n    else {\n      *(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;\n      uVar7 = 0x17;\n    }\n    (*(code *)PTR_raise_0005d614)(uVar7);\n    param_3 = 0;\n    param_2 = abStack_9c;\n    (*(code *)PTR_sigprocmask_0005d5e0)(3);\n  }\n  if (local_1c == *(int *)PTR___stack_chk_guard_0005d5c0) {\n    return;\n  }\n  puVar16 = PTR___stack_chk_fail_0005d598;\n  (*(code *)PTR___stack_chk_fail_0005d598)();\n  if (**(char **)(puVar16 + 0x3c988) == '\0') {\n    uVar9 = (int)param_2 - (int)pbVar6;\n    if (uVar9 != 0) {\n      puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4);\n      iVar11 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        uVar15 = 0x400;\n        if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }\n        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);\n        pbVar6 = pbVar6 + uVar2;\n        if (uVar2 < uVar15) {\n          return;\n        }\n        uVar9 = uVar9 - uVar2;\n        (*(code *)(iVar11 + 0x77c))();\n      } while (uVar9 != 0);\n    }\n  }\n  else {\n    iVar11 = **(int **)(puVar16 + 0x3c8d4);\n    uVar9 = **(uint **)(puVar16 + 0x3c9c0);\n    uVar15 = 0;\n    if (pbVar6 < param_2) {\n      iVar14 = 1;\n      iVar3 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      } while( true );\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_0002077c(undefined4 param_1,byte *param_2,int param_3,undefined4 param_4)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  int *piVar4;\n  undefined1 *puVar5;\n  byte *pbVar6;\n  undefined4 uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  undefined *puVar10;\n  int iVar11;\n  int iVar12;\n  undefined4 *puVar13;\n  int iVar14;\n  uint uVar15;\n  undefined *puVar16;\n  byte abStack_9c [128];\n  int local_1c;\n  \n  puVar16 = PTR_DAT_0005d118;\n  local_1c = *(int *)PTR___stack_chk_guard_0005d5c0;\n  puVar10 = PTR_DAT_0005d118 + -0x27c0;\n  while ((pbVar6 = (byte *)0x3, *(int *)(puVar16 + -0x27c4) != 0 ||\n         (*(int *)(puVar16 + -0x27c8) != 0))) {\n    set_color_context();\n    (*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0);\n    (*(code *)PTR_sigprocmask_0005d5e0)(1,puVar10,abStack_9c);\n    uVar7 = *(undefined4 *)(puVar16 + -0x27c4);\n    if (*(int *)(puVar16 + -0x27c8) == 0) {\n      (*(code *)PTR_signal_0005d5a4)(uVar7,0);\n    }\n    else {\n      *(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;\n      uVar7 = 0x17;\n    }\n    (*(code *)PTR_raise_0005d614)(uVar7);\n    param_3 = 0;\n    param_2 = abStack_9c;\n    (*(code *)PTR_sigprocmask_0005d5e0)(3);\n  }\n  if (local_1c == *(int *)PTR___stack_chk_guard_0005d5c0) {\n    return;\n  }\n  puVar16 = PTR___stack_chk_fail_0005d598;\n  (*(code *)PTR___stack_chk_fail_0005d598)();\n  if (**(char **)(puVar16 + 0x3c988) == '\0') {\n    uVar9 = (int)param_2 - (int)pbVar6;\n    if (uVar9 != 0) {\n      puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4);\n      iVar11 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        uVar15 = 0x400;\n        if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }\n        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);\n        pbVar6 = pbVar6 + uVar2;\n        if (uVar2 < uVar15) {\n          return;\n        }\n        uVar9 = uVar9 - uVar2;\n        (*(code *)(iVar11 + 0x77c))();\n      } while (uVar9 != 0);\n    }\n  }\n  else {\n    iVar11 = **(int **)(puVar16 + 0x3c8d4);\n    uVar9 = **(uint **)(puVar16 + 0x3c9c0);\n    uVar15 = 0;\n    if (pbVar6 < param_2) {\n      iVar14 = 1;\n      iVar3 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      } while( true );\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0002077c(undefined4 param_1,byte *param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,byte *param_2,int param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  int *piVar4;\n  undefined1 *puVar5;\n  byte *pbVar6;\n  undefined4 uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  undefined *puVar10;\n  int iVar11;\n  int iVar12;\n  undefined4 *puVar13;\n  int iVar14;\n  uint uVar15;\n  undefined *puVar16;\n  byte abStack_9c [128];\n  int local_1c;\n  \n  puVar16 = PTR_DAT_0005d118;\n  local_1c = *(int *)PTR___stack_chk_guard_0005d5c0;\n  puVar10 = PTR_DAT_0005d118 + -0x27c0;\n  while ((pbVar6 = (byte *)0x3, *(int *)(puVar16 + -0x27c4) != 0 ||\n         (*(int *)(puVar16 + -0x27c8) != 0))) {\n    set_color_context();\n    (*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0);\n    (*(code *)PTR_sigprocmask_0005d5e0)(1,puVar10,abStack_9c);\n    uVar7 = *(undefined4 *)(puVar16 + -0x27c4);\n    if (*(int *)(puVar16 + -0x27c8) == 0) {\n      (*(code *)PTR_signal_0005d5a4)(uVar7,0);\n    }\n    else {\n      *(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;\n      uVar7 = 0x17;\n    }\n    (*(code *)PTR_raise_0005d614)(uVar7);\n    param_3 = 0;\n    param_2 = abStack_9c;\n    (*(code *)PTR_sigprocmask_0005d5e0)(3);\n  }\n  if (local_1c == *(int *)PTR___stack_chk_guard_0005d5c0) {\n    return;\n  }\n  puVar16 = PTR___stack_chk_fail_0005d598;\n  (*(code *)PTR___stack_chk_fail_0005d598)();\n  if (**(char **)(puVar16 + 0x3c988) == '\0') {\n    uVar9 = (int)param_2 - (int)pbVar6;\n    if (uVar9 != 0) {\n      puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4);\n      iVar11 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        uVar15 = 0x400;\n        if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }\n        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);\n        pbVar6 = pbVar6 + uVar2;\n        if (uVar2 < uVar15) {\n          return;\n        }\n        uVar9 = uVar9 - uVar2;\n        (*(code *)(iVar11 + 0x77c))();\n      } while (uVar9 != 0);\n    }\n  }\n  else {\n    iVar11 = **(int **)(puVar16 + 0x3c8d4);\n    uVar9 = **(uint **)(puVar16 + 0x3c9c0);\n    uVar15 = 0;\n    if (pbVar6 < param_2) {\n      iVar14 = 1;\n      iVar3 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      } while( true );\n    }\n  }\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "undefined4 *puVar13;" type_identifier (pointer_declarator "*puVar13" * identifier) ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "uint uVar15;" type_identifier identifier ;) (declaration "undefined *puVar16;" type_identifier (pointer_declarator "*puVar16" * identifier) ;) (declaration "byte abStack_9c [128];" type_identifier (array_declarator "abStack_9c [128]" identifier [ number_literal ]) ;) (declaration "int local_1c;" primitive_type identifier ;) (expression_statement "puVar16 = PTR_DAT_0005d118;" (assignment_expression "puVar16 = PTR_DAT_0005d118" identifier = identifier) ;) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_0005d5c0;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_0005d5c0" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0005d5c0" * (cast_expression "(int *)PTR___stack_chk_guard_0005d5c0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar10 = PTR_DAT_0005d118 + -0x27c0;" (assignment_expression "puVar10 = PTR_DAT_0005d118 + -0x27c0" identifier = (binary_expression "PTR_DAT_0005d118 + -0x27c0" identifier + number_literal)) ;) (while_statement "while ((pbVar6 = (byte *)0x3, *(int *)(puVar16 + -0x27c4) != 0 ||\n         (*(int *)(puVar16 + -0x27c8) != 0))) {\n    set_color_context();\n    (*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0);\n    (*(code *)PTR_sigprocmask_0005d5e0)(1,puVar10,abStack_9c);\n    uVar7 = *(undefined4 *)(puVar16 + -0x27c4);\n    if (*(int *)(puVar16 + -0x27c8) == 0) {\n      (*(code *)PTR_signal_0005d5a4)(uVar7,0);\n    }\n    else {\n      *(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;\n      uVar7 = 0x17;\n    }\n    (*(code *)PTR_raise_0005d614)(uVar7);\n    param_3 = 0;\n    param_2 = abStack_9c;\n    (*(code *)PTR_sigprocmask_0005d5e0)(3);\n  }" while (parenthesized_expression "((pbVar6 = (byte *)0x3, *(int *)(puVar16 + -0x27c4) != 0 ||\n         (*(int *)(puVar16 + -0x27c8) != 0)))" ( (parenthesized_expression "(pbVar6 = (byte *)0x3, *(int *)(puVar16 + -0x27c4) != 0 ||\n         (*(int *)(puVar16 + -0x27c8) != 0))" ( (comma_expression "pbVar6 = (byte *)0x3, *(int *)(puVar16 + -0x27c4) != 0 ||\n         (*(int *)(puVar16 + -0x27c8) != 0)" (assignment_expression "pbVar6 = (byte *)0x3" identifier = (cast_expression "(byte *)0x3" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) , (binary_expression "*(int *)(puVar16 + -0x27c4) != 0 ||\n         (*(int *)(puVar16 + -0x27c8) != 0)" (binary_expression "*(int *)(puVar16 + -0x27c4) != 0" (pointer_expression "*(int *)(puVar16 + -0x27c4)" * (cast_expression "(int *)(puVar16 + -0x27c4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar16 + -0x27c4)" ( (binary_expression "puVar16 + -0x27c4" identifier + number_literal) )))) != number_literal) || (parenthesized_expression "(*(int *)(puVar16 + -0x27c8) != 0)" ( (binary_expression "*(int *)(puVar16 + -0x27c8) != 0" (pointer_expression "*(int *)(puVar16 + -0x27c8)" * (cast_expression "(int *)(puVar16 + -0x27c8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar16 + -0x27c8)" ( (binary_expression "puVar16 + -0x27c8" identifier + number_literal) )))) != number_literal) )))) )) )) (compound_statement "{\n    set_color_context();\n    (*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0);\n    (*(code *)PTR_sigprocmask_0005d5e0)(1,puVar10,abStack_9c);\n    uVar7 = *(undefined4 *)(puVar16 + -0x27c4);\n    if (*(int *)(puVar16 + -0x27c8) == 0) {\n      (*(code *)PTR_signal_0005d5a4)(uVar7,0);\n    }\n    else {\n      *(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;\n      uVar7 = 0x17;\n    }\n    (*(code *)PTR_raise_0005d614)(uVar7);\n    param_3 = 0;\n    param_2 = abStack_9c;\n    (*(code *)PTR_sigprocmask_0005d5e0)(3);\n  }" { (expression_statement "set_color_context();" (call_expression "set_color_context()" identifier (argument_list "()" ( ))) ;) (expression_statement "(*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0);" (call_expression "(*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0)" (parenthesized_expression "(*(code *)PTR_fflush_unlocked_0005d58c)" ( (pointer_expression "*(code *)PTR_fflush_unlocked_0005d58c" * (cast_expression "(code *)PTR_fflush_unlocked_0005d58c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_stdout_0005d4d0)" ( (pointer_expression "*(undefined4 *)PTR_stdout_0005d4d0" * (cast_expression "(undefined4 *)PTR_stdout_0005d4d0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "(*(code *)PTR_sigprocmask_0005d5e0)(1,puVar10,abStack_9c);" (call_expression "(*(code *)PTR_sigprocmask_0005d5e0)(1,puVar10,abStack_9c)" (parenthesized_expression "(*(code *)PTR_sigprocmask_0005d5e0)" ( (pointer_expression "*(code *)PTR_sigprocmask_0005d5e0" * (cast_expression "(code *)PTR_sigprocmask_0005d5e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,puVar10,abStack_9c)" ( number_literal , identifier , identifier ))) ;) (expression_statement "uVar7 = *(undefined4 *)(puVar16 + -0x27c4);" (assignment_expression "uVar7 = *(undefined4 *)(puVar16 + -0x27c4)" identifier = (pointer_expression "*(undefined4 *)(puVar16 + -0x27c4)" * (cast_expression "(undefined4 *)(puVar16 + -0x27c4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar16 + -0x27c4)" ( (binary_expression "puVar16 + -0x27c4" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(puVar16 + -0x27c8) == 0) {\n      (*(code *)PTR_signal_0005d5a4)(uVar7,0);\n    }\n    else {\n      *(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;\n      uVar7 = 0x17;\n    }" if (parenthesized_expression "(*(int *)(puVar16 + -0x27c8) == 0)" ( (binary_expression "*(int *)(puVar16 + -0x27c8) == 0" (pointer_expression "*(int *)(puVar16 + -0x27c8)" * (cast_expression "(int *)(puVar16 + -0x27c8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar16 + -0x27c8)" ( (binary_expression "puVar16 + -0x27c8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      (*(code *)PTR_signal_0005d5a4)(uVar7,0);\n    }" { (expression_statement "(*(code *)PTR_signal_0005d5a4)(uVar7,0);" (call_expression "(*(code *)PTR_signal_0005d5a4)(uVar7,0)" (parenthesized_expression "(*(code *)PTR_signal_0005d5a4)" ( (pointer_expression "*(code *)PTR_signal_0005d5a4" * (cast_expression "(code *)PTR_signal_0005d5a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar7,0)" ( identifier , number_literal ))) ;) }) (else_clause "else {\n      *(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;\n      uVar7 = 0x17;\n    }" else (compound_statement "{\n      *(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;\n      uVar7 = 0x17;\n    }" { (expression_statement "*(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;" (assignment_expression "*(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1" (pointer_expression "*(int *)(puVar16 + -0x27c8)" * (cast_expression "(int *)(puVar16 + -0x27c8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar16 + -0x27c8)" ( (binary_expression "puVar16 + -0x27c8" identifier + number_literal) )))) = (binary_expression "*(int *)(puVar16 + -0x27c8) + -1" (pointer_expression "*(int *)(puVar16 + -0x27c8)" * (cast_expression "(int *)(puVar16 + -0x27c8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar16 + -0x27c8)" ( (binary_expression "puVar16 + -0x27c8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "uVar7 = 0x17;" (assignment_expression "uVar7 = 0x17" identifier = number_literal) ;) }))) (expression_statement "(*(code *)PTR_raise_0005d614)(uVar7);" (call_expression "(*(code *)PTR_raise_0005d614)(uVar7)" (parenthesized_expression "(*(code *)PTR_raise_0005d614)" ( (pointer_expression "*(code *)PTR_raise_0005d614" * (cast_expression "(code *)PTR_raise_0005d614" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar7)" ( identifier ))) ;) (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" identifier = number_literal) ;) (expression_statement "param_2 = abStack_9c;" (assignment_expression "param_2 = abStack_9c" identifier = identifier) ;) (expression_statement "(*(code *)PTR_sigprocmask_0005d5e0)(3);" (call_expression "(*(code *)PTR_sigprocmask_0005d5e0)(3)" (parenthesized_expression "(*(code *)PTR_sigprocmask_0005d5e0)" ( (pointer_expression "*(code *)PTR_sigprocmask_0005d5e0" * (cast_expression "(code *)PTR_sigprocmask_0005d5e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3)" ( number_literal ))) ;) })) (if_statement "if (local_1c == *(int *)PTR___stack_chk_guard_0005d5c0) {\n    return;\n  }" if (parenthesized_expression "(local_1c == *(int *)PTR___stack_chk_guard_0005d5c0)" ( (binary_expression "local_1c == *(int *)PTR___stack_chk_guard_0005d5c0" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_0005d5c0" * (cast_expression "(int *)PTR___stack_chk_guard_0005d5c0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar16 = PTR___stack_chk_fail_0005d598;" (assignment_expression "puVar16 = PTR___stack_chk_fail_0005d598" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0005d598)();" (call_expression "(*(code *)PTR___stack_chk_fail_0005d598)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0005d598)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0005d598" * (cast_expression "(code *)PTR___stack_chk_fail_0005d598" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (**(char **)(puVar16 + 0x3c988) == '\0') {\n    uVar9 = (int)param_2 - (int)pbVar6;\n    if (uVar9 != 0) {\n      puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4);\n      iVar11 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        uVar15 = 0x400;\n        if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }\n        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);\n        pbVar6 = pbVar6 + uVar2;\n        if (uVar2 < uVar15) {\n          return;\n        }\n        uVar9 = uVar9 - uVar2;\n        (*(code *)(iVar11 + 0x77c))();\n      } while (uVar9 != 0);\n    }\n  }\n  else {\n    iVar11 = **(int **)(puVar16 + 0x3c8d4);\n    uVar9 = **(uint **)(puVar16 + 0x3c9c0);\n    uVar15 = 0;\n    if (pbVar6 < param_2) {\n      iVar14 = 1;\n      iVar3 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      } while( true );\n    }\n  }" if (parenthesized_expression "(**(char **)(puVar16 + 0x3c988) == '\0')" ( (binary_expression "**(char **)(puVar16 + 0x3c988) == '\0'" (pointer_expression "**(char **)(puVar16 + 0x3c988)" * (pointer_expression "*(char **)(puVar16 + 0x3c988)" * (cast_expression "(char **)(puVar16 + 0x3c988)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar16 + 0x3c988)" ( (binary_expression "puVar16 + 0x3c988" identifier + number_literal) ))))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar9 = (int)param_2 - (int)pbVar6;\n    if (uVar9 != 0) {\n      puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4);\n      iVar11 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        uVar15 = 0x400;\n        if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }\n        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);\n        pbVar6 = pbVar6 + uVar2;\n        if (uVar2 < uVar15) {\n          return;\n        }\n        uVar9 = uVar9 - uVar2;\n        (*(code *)(iVar11 + 0x77c))();\n      } while (uVar9 != 0);\n    }\n  }" { (expression_statement "uVar9 = (int)param_2 - (int)pbVar6;" (assignment_expression "uVar9 = (int)param_2 - (int)pbVar6" identifier = (binary_expression "(int)param_2 - (int)pbVar6" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar6" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (uVar9 != 0) {\n      puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4);\n      iVar11 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        uVar15 = 0x400;\n        if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }\n        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);\n        pbVar6 = pbVar6 + uVar2;\n        if (uVar2 < uVar15) {\n          return;\n        }\n        uVar9 = uVar9 - uVar2;\n        (*(code *)(iVar11 + 0x77c))();\n      } while (uVar9 != 0);\n    }" if (parenthesized_expression "(uVar9 != 0)" ( (binary_expression "uVar9 != 0" identifier != number_literal) )) (compound_statement "{\n      puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4);\n      iVar11 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        uVar15 = 0x400;\n        if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }\n        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);\n        pbVar6 = pbVar6 + uVar2;\n        if (uVar2 < uVar15) {\n          return;\n        }\n        uVar9 = uVar9 - uVar2;\n        (*(code *)(iVar11 + 0x77c))();\n      } while (uVar9 != 0);\n    }" { (expression_statement "puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4);" (assignment_expression "puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4)" identifier = (pointer_expression "*(undefined4 **)(puVar16 + 0x3c8d4)" * (cast_expression "(undefined4 **)(puVar16 + 0x3c8d4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar16 + 0x3c8d4)" ( (binary_expression "puVar16 + 0x3c8d4" identifier + number_literal) ))))) ;) (expression_statement "iVar11 = *(int *)(puVar16 + 0x3c9f0);" (assignment_expression "iVar11 = *(int *)(puVar16 + 0x3c9f0)" identifier = (pointer_expression "*(int *)(puVar16 + 0x3c9f0)" * (cast_expression "(int *)(puVar16 + 0x3c9f0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar16 + 0x3c9f0)" ( (binary_expression "puVar16 + 0x3c9f0" identifier + number_literal) ))))) ;) (do_statement "do {\n        uVar15 = 0x400;\n        if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }\n        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);\n        pbVar6 = pbVar6 + uVar2;\n        if (uVar2 < uVar15) {\n          return;\n        }\n        uVar9 = uVar9 - uVar2;\n        (*(code *)(iVar11 + 0x77c))();\n      } while (uVar9 != 0);" do (compound_statement "{\n        uVar15 = 0x400;\n        if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }\n        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);\n        pbVar6 = pbVar6 + uVar2;\n        if (uVar2 < uVar15) {\n          return;\n        }\n        uVar9 = uVar9 - uVar2;\n        (*(code *)(iVar11 + 0x77c))();\n      }" { (expression_statement "uVar15 = 0x400;" (assignment_expression "uVar15 = 0x400" identifier = number_literal) ;) (if_statement "if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }" if (parenthesized_expression "(uVar9 < 0x401)" ( (binary_expression "uVar9 < 0x401" identifier < number_literal) )) (compound_statement "{\n          uVar15 = uVar9;\n        }" { (expression_statement "uVar15 = uVar9;" (assignment_expression "uVar15 = uVar9" identifier = identifier) ;) })) (expression_statement "uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);" (assignment_expression "uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13)" identifier = (call_expression "(**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13)" (parenthesized_expression "(**(code **)(puVar16 + 0x3cce0))" ( (pointer_expression "**(code **)(puVar16 + 0x3cce0)" * (pointer_expression "*(code **)(puVar16 + 0x3cce0)" * (cast_expression "(code **)(puVar16 + 0x3cce0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar16 + 0x3cce0)" ( (binary_expression "puVar16 + 0x3cce0" identifier + number_literal) ))))) )) (argument_list "(pbVar6,1,uVar15,*puVar13)" ( identifier , number_literal , identifier , (pointer_expression "*puVar13" * identifier) )))) ;) (expression_statement "pbVar6 = pbVar6 + uVar2;" (assignment_expression "pbVar6 = pbVar6 + uVar2" identifier = (binary_expression "pbVar6 + uVar2" identifier + identifier)) ;) (if_statement "if (uVar2 < uVar15) {\n          return;\n        }" if (parenthesized_expression "(uVar2 < uVar15)" ( (binary_expression "uVar2 < uVar15" identifier < identifier) )) (compound_statement "{\n          return;\n        }" { (return_statement "return;" return ;) })) (expression_statement "uVar9 = uVar9 - uVar2;" (assignment_expression "uVar9 = uVar9 - uVar2" identifier = (binary_expression "uVar9 - uVar2" identifier - identifier)) ;) (expression_statement "(*(code *)(iVar11 + 0x77c))();" (call_expression "(*(code *)(iVar11 + 0x77c))()" (parenthesized_expression "(*(code *)(iVar11 + 0x77c))" ( (pointer_expression "*(code *)(iVar11 + 0x77c)" * (cast_expression "(code *)(iVar11 + 0x77c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x77c)" ( (binary_expression "iVar11 + 0x77c" identifier + number_literal) )))) )) (argument_list "()" ( ))) ;) }) while (parenthesized_expression "(uVar9 != 0)" ( (binary_expression "uVar9 != 0" identifier != number_literal) )) ;) })) }) (else_clause "else {\n    iVar11 = **(int **)(puVar16 + 0x3c8d4);\n    uVar9 = **(uint **)(puVar16 + 0x3c9c0);\n    uVar15 = 0;\n    if (pbVar6 < param_2) {\n      iVar14 = 1;\n      iVar3 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      } while( true );\n    }\n  }" else (compound_statement "{\n    iVar11 = **(int **)(puVar16 + 0x3c8d4);\n    uVar9 = **(uint **)(puVar16 + 0x3c9c0);\n    uVar15 = 0;\n    if (pbVar6 < param_2) {\n      iVar14 = 1;\n      iVar3 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      } while( true );\n    }\n  }" { (expression_statement "iVar11 = **(int **)(puVar16 + 0x3c8d4);" (assignment_expression "iVar11 = **(int **)(puVar16 + 0x3c8d4)" identifier = (pointer_expression "**(int **)(puVar16 + 0x3c8d4)" * (pointer_expression "*(int **)(puVar16 + 0x3c8d4)" * (cast_expression "(int **)(puVar16 + 0x3c8d4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar16 + 0x3c8d4)" ( (binary_expression "puVar16 + 0x3c8d4" identifier + number_literal) )))))) ;) (expression_statement "uVar9 = **(uint **)(puVar16 + 0x3c9c0);" (assignment_expression "uVar9 = **(uint **)(puVar16 + 0x3c9c0)" identifier = (pointer_expression "**(uint **)(puVar16 + 0x3c9c0)" * (pointer_expression "*(uint **)(puVar16 + 0x3c9c0)" * (cast_expression "(uint **)(puVar16 + 0x3c9c0)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar16 + 0x3c9c0)" ( (binary_expression "puVar16 + 0x3c9c0" identifier + number_literal) )))))) ;) (expression_statement "uVar15 = 0;" (assignment_expression "uVar15 = 0" identifier = number_literal) ;) (if_statement "if (pbVar6 < param_2) {\n      iVar14 = 1;\n      iVar3 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      } while( true );\n    }" if (parenthesized_expression "(pbVar6 < param_2)" ( (binary_expression "pbVar6 < param_2" identifier < identifier) )) (compound_statement "{\n      iVar14 = 1;\n      iVar3 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      } while( true );\n    }" { (expression_statement "iVar14 = 1;" (assignment_expression "iVar14 = 1" identifier = number_literal) ;) (expression_statement "iVar3 = *(int *)(puVar16 + 0x3c9f0);" (assignment_expression "iVar3 = *(int *)(puVar16 + 0x3c9f0)" identifier = (pointer_expression "*(int *)(puVar16 + 0x3c9f0)" * (cast_expression "(int *)(puVar16 + 0x3c9f0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar16 + 0x3c9f0)" ( (binary_expression "puVar16 + 0x3c9f0" identifier + number_literal) ))))) ;) (do_statement "do {\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      } while( true );" do (compound_statement "{\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      }" { (expression_statement "pbVar8 = pbVar6 + 1;" (assignment_expression "pbVar8 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = *pbVar6;" (assignment_expression "bVar1 = *pbVar6" identifier = (pointer_expression "*pbVar6" * identifier)) ;) (expression_statement "uVar2 = (uint)bVar1;" (assignment_expression "uVar2 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }" if (parenthesized_expression "(bVar1 == 9)" ( (binary_expression "bVar1 == 9" identifier == number_literal) )) (compound_statement "{\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }" { (if_statement "if (uVar9 == 0) {\n            trap(7);\n          }" if (parenthesized_expression "(uVar9 == 0)" ( (binary_expression "uVar9 == 0" identifier == number_literal) )) (compound_statement "{\n            trap(7);\n          }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "iVar12 = uVar9 - uVar15 % uVar9;" (assignment_expression "iVar12 = uVar9 - uVar15 % uVar9" identifier = (binary_expression "uVar9 - uVar15 % uVar9" identifier - (binary_expression "uVar15 % uVar9" identifier % identifier))) ;) (expression_statement "uVar15 = uVar15 + iVar12;" (assignment_expression "uVar15 = uVar15 + iVar12" identifier = (binary_expression "uVar15 + iVar12" identifier + identifier)) ;) (do_statement "do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);" do (compound_statement "{\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          }" { (expression_statement "puVar5 = *(undefined1 **)(iVar11 + 0x14);" (assignment_expression "puVar5 = *(undefined1 **)(iVar11 + 0x14)" identifier = (pointer_expression "*(undefined1 **)(iVar11 + 0x14)" * (cast_expression "(undefined1 **)(iVar11 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + 0x14)" ( (binary_expression "iVar11 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }" if (parenthesized_expression "(puVar5 < *(undefined1 **)(iVar11 + 0x18))" ( (binary_expression "puVar5 < *(undefined1 **)(iVar11 + 0x18)" identifier < (pointer_expression "*(undefined1 **)(iVar11 + 0x18)" * (cast_expression "(undefined1 **)(iVar11 + 0x18)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + 0x18)" ( (binary_expression "iVar11 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }" { (expression_statement "*(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;" (assignment_expression "*(undefined1 **)(iVar11 + 0x14) = puVar5 + 1" (pointer_expression "*(undefined1 **)(iVar11 + 0x14)" * (cast_expression "(undefined1 **)(iVar11 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + 0x14)" ( (binary_expression "iVar11 + 0x14" identifier + number_literal) )))) = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "*puVar5 = 0x20;" (assignment_expression "*puVar5 = 0x20" (pointer_expression "*puVar5" * identifier) = number_literal) ;) }) (else_clause "else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }" else (compound_statement "{\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }" { (expression_statement "(**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);" (call_expression "(**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20)" (parenthesized_expression "(**(code **)(puVar16 + 0x3cbd8))" ( (pointer_expression "**(code **)(puVar16 + 0x3cbd8)" * (pointer_expression "*(code **)(puVar16 + 0x3cbd8)" * (cast_expression "(code **)(puVar16 + 0x3cbd8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar16 + 0x3cbd8)" ( (binary_expression "puVar16 + 0x3cbd8" identifier + number_literal) ))))) )) (argument_list "(iVar11,0x20)" ( identifier , number_literal ))) ;) }))) (expression_statement "iVar12 = iVar12 + -1;" (assignment_expression "iVar12 = iVar12 + -1" identifier = (binary_expression "iVar12 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar12 != 0)" ( (binary_expression "iVar12 != 0" identifier != number_literal) )) ;) (labeled_statement "LAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }" statement_identifier : (if_statement "if (param_2 <= pbVar8) {\n            return;\n          }" if (parenthesized_expression "(param_2 <= pbVar8)" ( (binary_expression "param_2 <= pbVar8" identifier <= identifier) )) (compound_statement "{\n            return;\n          }" { (return_statement "return;" return ;) }))) }) (else_clause "else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }" else (compound_statement "{\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }" { (if_statement "if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }" if (parenthesized_expression "(bVar1 != 0xd)" ( (binary_expression "bVar1 != 0xd" identifier != number_literal) )) (compound_statement "{\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }" { (if_statement "if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }" if (parenthesized_expression "(bVar1 == 8)" ( (binary_expression "bVar1 == 8" identifier == number_literal) )) (compound_statement "{\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }" { (if_statement "if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }" if (parenthesized_expression "(uVar15 != 0)" ( (binary_expression "uVar15 != 0" identifier != number_literal) )) (compound_statement "{\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }" { (expression_statement "puVar5 = *(undefined1 **)(iVar11 + 0x14);" (assignment_expression "puVar5 = *(undefined1 **)(iVar11 + 0x14)" identifier = (pointer_expression "*(undefined1 **)(iVar11 + 0x14)" * (cast_expression "(undefined1 **)(iVar11 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + 0x14)" ( (binary_expression "iVar11 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar15 = uVar15 - 1;" (assignment_expression "uVar15 = uVar15 - 1" identifier = (binary_expression "uVar15 - 1" identifier - number_literal)) ;) (if_statement "if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }" if (parenthesized_expression "(puVar5 < *(undefined1 **)(iVar11 + 0x18))" ( (binary_expression "puVar5 < *(undefined1 **)(iVar11 + 0x18)" identifier < (pointer_expression "*(undefined1 **)(iVar11 + 0x18)" * (cast_expression "(undefined1 **)(iVar11 + 0x18)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + 0x18)" ( (binary_expression "iVar11 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }" { (expression_statement "*(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;" (assignment_expression "*(undefined1 **)(iVar11 + 0x14) = puVar5 + 1" (pointer_expression "*(undefined1 **)(iVar11 + 0x14)" * (cast_expression "(undefined1 **)(iVar11 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + 0x14)" ( (binary_expression "iVar11 + 0x14" identifier + number_literal) )))) = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "*puVar5 = 8;" (assignment_expression "*puVar5 = 8" (pointer_expression "*puVar5" * identifier) = number_literal) ;) }) (else_clause "else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }" else (compound_statement "{\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }" { (expression_statement "(**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);" (call_expression "(**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2)" (parenthesized_expression "(**(code **)(puVar16 + 0x3cbd8))" ( (pointer_expression "**(code **)(puVar16 + 0x3cbd8)" * (pointer_expression "*(code **)(puVar16 + 0x3cbd8)" * (cast_expression "(code **)(puVar16 + 0x3cbd8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar16 + 0x3cbd8)" ( (binary_expression "puVar16 + 0x3cbd8" identifier + number_literal) ))))) )) (argument_list "(iVar11,uVar2)" ( identifier , identifier ))) ;) }))) })) }) (else_clause "else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }" else (compound_statement "{\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }" { (expression_statement "piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();" (assignment_expression "piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))()" identifier = (cast_expression "(int *)(**(code **)(puVar16 + 0x3cb74))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar16 + 0x3cb74))()" (parenthesized_expression "(**(code **)(puVar16 + 0x3cb74))" ( (pointer_expression "**(code **)(puVar16 + 0x3cb74)" * (pointer_expression "*(code **)(puVar16 + 0x3cb74)" * (cast_expression "(code **)(puVar16 + 0x3cb74)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar16 + 0x3cb74)" ( (binary_expression "puVar16 + 0x3cb74" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);" (assignment_expression "uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f)" identifier = (binary_expression "uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f)" identifier - (parenthesized_expression "((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f)" ( (binary_expression "(int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f" (cast_expression "(int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19)" ( (binary_expression "(uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19" (binary_expression "(uint)*(ushort *)(*piVar4 + uVar2 * 2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(*piVar4 + uVar2 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar4 + uVar2 * 2)" ( (binary_expression "*piVar4 + uVar2 * 2" (pointer_expression "*piVar4" * identifier) + (binary_expression "uVar2 * 2" identifier * number_literal)) )))) << number_literal) ))) >> number_literal) )))) ;) (expression_statement "pbVar6 = *(byte **)(iVar11 + 0x14);" (assignment_expression "pbVar6 = *(byte **)(iVar11 + 0x14)" identifier = (pointer_expression "*(byte **)(iVar11 + 0x14)" * (cast_expression "(byte **)(iVar11 + 0x14)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + 0x14)" ( (binary_expression "iVar11 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }" if (parenthesized_expression "(pbVar6 < *(byte **)(iVar11 + 0x18))" ( (binary_expression "pbVar6 < *(byte **)(iVar11 + 0x18)" identifier < (pointer_expression "*(byte **)(iVar11 + 0x18)" * (cast_expression "(byte **)(iVar11 + 0x18)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + 0x18)" ( (binary_expression "iVar11 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }" { (expression_statement "*(byte **)(iVar11 + 0x14) = pbVar6 + 1;" (assignment_expression "*(byte **)(iVar11 + 0x14) = pbVar6 + 1" (pointer_expression "*(byte **)(iVar11 + 0x14)" * (cast_expression "(byte **)(iVar11 + 0x14)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + 0x14)" ( (binary_expression "iVar11 + 0x14" identifier + number_literal) )))) = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "*pbVar6 = bVar1;" (assignment_expression "*pbVar6 = bVar1" (pointer_expression "*pbVar6" * identifier) = identifier) ;) }) (else_clause "else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }" else (compound_statement "{\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }" { (expression_statement "(**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);" (call_expression "(**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2)" (parenthesized_expression "(**(code **)(puVar16 + 0x3cbd8))" ( (pointer_expression "**(code **)(puVar16 + 0x3cbd8)" * (pointer_expression "*(code **)(puVar16 + 0x3cbd8)" * (cast_expression "(code **)(puVar16 + 0x3cbd8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar16 + 0x3cbd8)" ( (binary_expression "puVar16 + 0x3cbd8" identifier + number_literal) ))))) )) (argument_list "(iVar11,uVar2)" ( identifier , identifier ))) ;) }))) }))) (goto_statement "goto LAB_00020a58;" goto statement_identifier ;) })) (expression_statement "puVar5 = *(undefined1 **)(iVar11 + 0x14);" (assignment_expression "puVar5 = *(undefined1 **)(iVar11 + 0x14)" identifier = (pointer_expression "*(undefined1 **)(iVar11 + 0x14)" * (cast_expression "(undefined1 **)(iVar11 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + 0x14)" ( (binary_expression "iVar11 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }" if (parenthesized_expression "(puVar5 < *(undefined1 **)(iVar11 + 0x18))" ( (binary_expression "puVar5 < *(undefined1 **)(iVar11 + 0x18)" identifier < (pointer_expression "*(undefined1 **)(iVar11 + 0x18)" * (cast_expression "(undefined1 **)(iVar11 + 0x18)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + 0x18)" ( (binary_expression "iVar11 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }" { (expression_statement "*(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;" (assignment_expression "*(undefined1 **)(iVar11 + 0x14) = puVar5 + 1" (pointer_expression "*(undefined1 **)(iVar11 + 0x14)" * (cast_expression "(undefined1 **)(iVar11 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + 0x14)" ( (binary_expression "iVar11 + 0x14" identifier + number_literal) )))) = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "*puVar5 = 0xd;" (assignment_expression "*puVar5 = 0xd" (pointer_expression "*puVar5" * identifier) = number_literal) ;) }) (else_clause "else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }" else (compound_statement "{\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }" { (expression_statement "(**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);" (call_expression "(**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2)" (parenthesized_expression "(**(code **)(puVar16 + 0x3cbd8))" ( (pointer_expression "**(code **)(puVar16 + 0x3cbd8)" * (pointer_expression "*(code **)(puVar16 + 0x3cbd8)" * (cast_expression "(code **)(puVar16 + 0x3cbd8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar16 + 0x3cbd8)" ( (binary_expression "puVar16 + 0x3cbd8" identifier + number_literal) ))))) )) (argument_list "(iVar11,uVar2)" ( identifier , identifier ))) ;) }))) (if_statement "if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }" { (expression_statement "uVar15 = 0;" (assignment_expression "uVar15 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00020a58;" goto statement_identifier ;) })) (if_statement "if (param_2 <= pbVar8) {\n            return;\n          }" if (parenthesized_expression "(param_2 <= pbVar8)" ( (binary_expression "param_2 <= pbVar8" identifier <= identifier) )) (compound_statement "{\n            return;\n          }" { (return_statement "return;" return ;) })) (if_statement "if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }" if (parenthesized_expression "(*pbVar8 == 10)" ( (binary_expression "*pbVar8 == 10" (pointer_expression "*pbVar8" * identifier) == number_literal) )) (compound_statement "{\n            uVar15 = 0;\n          }" { (expression_statement "uVar15 = 0;" (assignment_expression "uVar15 = 0" identifier = number_literal) ;) }) (else_clause "else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }" else (compound_statement "{\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }" { (expression_statement "(**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);" (call_expression "(**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4)" (parenthesized_expression "(**(code **)(puVar16 + 0x3cbb0))" ( (pointer_expression "**(code **)(puVar16 + 0x3cbb0)" * (pointer_expression "*(code **)(puVar16 + 0x3cbb0)" * (cast_expression "(code **)(puVar16 + 0x3cbb0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar16 + 0x3cbb0)" ( (binary_expression "puVar16 + 0x3cbb0" identifier + number_literal) ))))) )) (argument_list "(iVar11,1,param_3,param_4)" ( identifier , number_literal , identifier , identifier ))) ;) (expression_statement "uVar15 = 0;" (assignment_expression "uVar15 = 0" identifier = number_literal) ;) }))) }))) (expression_statement "iVar14 = iVar14 + 1;" (assignment_expression "iVar14 = iVar14 + 1" identifier = (binary_expression "iVar14 + 1" identifier + number_literal)) ;) (expression_statement "pbVar6 = pbVar8;" (assignment_expression "pbVar6 = pbVar8" identifier = identifier) ;) (if_statement "if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }" if (parenthesized_expression "(iVar14 == 0x400)" ( (binary_expression "iVar14 == 0x400" identifier == number_literal) )) (compound_statement "{\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }" { (expression_statement "(*(code *)(iVar3 + 0x77c))();" (call_expression "(*(code *)(iVar3 + 0x77c))()" (parenthesized_expression "(*(code *)(iVar3 + 0x77c))" ( (pointer_expression "*(code *)(iVar3 + 0x77c)" * (cast_expression "(code *)(iVar3 + 0x77c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x77c)" ( (binary_expression "iVar3 + 0x77c" identifier + number_literal) )))) )) (argument_list "()" ( ))) ;) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })) }))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid process_signals(void)\n\n{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int *piVar5;\n  byte *pbVar6;\n  undefined1 *puVar7;\n  sigset_t *psVar8;\n  sigset_t *in_a1;\n  int in_a2;\n  undefined4 in_a3;\n  undefined4 uVar9;\n  sigset_t *psVar10;\n  uint uVar11;\n  undefined *puVar12;\n  int iVar13;\n  undefined4 *puVar14;\n  int iVar15;\n  uint uVar16;\n  undefined *puVar17;\n  sigset_t oldset;\n  \n  puVar17 = PTR_DAT_0005d118;\n  iVar2 = *(int *)PTR___stack_chk_guard_0005d5c0;\n  puVar12 = PTR_DAT_0005d118 + -0x27c0;\n  while ((psVar8 = (sigset_t *)0x3, *(int *)(puVar17 + -0x27c4) != 0 ||\n         (*(int *)(puVar17 + -0x27c8) != 0))) {\n    set_color_context(RESET_CONTEXT);\n    (*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0);\n    (*(code *)PTR_sigprocmask_0005d5e0)(1,puVar12,&oldset);\n    uVar9 = *(undefined4 *)(puVar17 + -0x27c4);\n    if (*(int *)(puVar17 + -0x27c8) == 0) {\n      (*(code *)PTR_signal_0005d5a4)(uVar9,0);\n    }\n    else {\n      *(int *)(puVar17 + -0x27c8) = *(int *)(puVar17 + -0x27c8) + -1;\n      uVar9 = 0x17;\n    }\n    (*(code *)PTR_raise_0005d614)(uVar9);\n    in_a2 = 0;\n    in_a1 = &oldset;\n    (*(code *)PTR_sigprocmask_0005d5e0)(3);\n  }\n  if (iVar2 == *(int *)PTR___stack_chk_guard_0005d5c0) {\n    return;\n  }\n  puVar17 = PTR___stack_chk_fail_0005d598;\n  (*(code *)PTR___stack_chk_fail_0005d598)();\n  if (**(char **)(puVar17 + 0x3c988) == '\0') {\n    uVar11 = (int)in_a1 - (int)psVar8;\n    if (uVar11 != 0) {\n      puVar14 = *(undefined4 **)(puVar17 + 0x3c8d4);\n      iVar2 = *(int *)(puVar17 + 0x3c9f0);\n      do {\n        uVar16 = 0x400;\n        if (uVar11 < 0x401) {\n          uVar16 = uVar11;\n        }\n        uVar3 = (**(code **)(puVar17 + 0x3cce0))(psVar8,1,uVar16,*puVar14);\n        psVar8 = (sigset_t *)((int)psVar8->__val + uVar3);\n        if (uVar3 < uVar16) {\n          return;\n        }\n        uVar11 = uVar11 - uVar3;\n        (*(code *)(iVar2 + 0x77c))();\n      } while (uVar11 != 0);\n    }\n  }\n  else {\n    iVar2 = **(int **)(puVar17 + 0x3c8d4);\n    uVar11 = **(uint **)(puVar17 + 0x3c9c0);\n    uVar16 = 0;\n    if (psVar8 < in_a1) {\n      iVar15 = 1;\n      iVar4 = *(int *)(puVar17 + 0x3c9f0);\n      do {\n        psVar10 = (sigset_t *)((int)psVar8->__val + 1);\n        bVar1 = *(byte *)psVar8->__val;\n        uVar3 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar11 == 0) {\n            trap(7);\n          }\n          iVar13 = uVar11 - uVar16 % uVar11;\n          uVar16 = uVar16 + iVar13;\n          do {\n            puVar7 = *(undefined1 **)(iVar2 + 0x14);\n            if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n              *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n              *puVar7 = 0x20;\n            }\n            else {\n              (**(code **)(puVar17 + 0x3cbd8))(iVar2,0x20);\n            }\n            iVar13 = iVar13 + -1;\n          } while (iVar13 != 0);\nLAB_00020a58:\n          if (in_a1 <= psVar10) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar16 != 0) {\n                puVar7 = *(undefined1 **)(iVar2 + 0x14);\n                uVar16 = uVar16 - 1;\n                if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n                  *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n                  *puVar7 = 8;\n                }\n                else {\n                  (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n                }\n              }\n            }\n            else {\n              piVar5 = (int *)(**(code **)(puVar17 + 0x3cb74))();\n              uVar16 = uVar16 - ((int)((uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar2 + 0x14);\n              if (pbVar6 < *(byte **)(iVar2 + 0x18)) {\n                *(byte **)(iVar2 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar7 = *(undefined1 **)(iVar2 + 0x14);\n          if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n            *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n            *puVar7 = 0xd;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n          }\n          if (in_a2 == 0) {\n            uVar16 = 0;\n            goto LAB_00020a58;\n          }\n          if (in_a1 <= psVar10) {\n            return;\n          }\n          if (*(char *)psVar10->__val == '\n') {\n            uVar16 = 0;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbb0))(iVar2,1,in_a2,in_a3);\n            uVar16 = 0;\n          }\n        }\n        iVar15 = iVar15 + 1;\n        psVar8 = psVar10;\n        if (iVar15 == 0x400) {\n          (*(code *)(iVar4 + 0x77c))();\n          iVar15 = 0;\n        }\n      } while( true );\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void process_signals(void)\n\n{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int *piVar5;\n  byte *pbVar6;\n  undefined1 *puVar7;\n  sigset_t *psVar8;\n  sigset_t *in_a1;\n  int in_a2;\n  undefined4 in_a3;\n  undefined4 uVar9;\n  sigset_t *psVar10;\n  uint uVar11;\n  undefined *puVar12;\n  int iVar13;\n  undefined4 *puVar14;\n  int iVar15;\n  uint uVar16;\n  undefined *puVar17;\n  sigset_t oldset;\n  \n  puVar17 = PTR_DAT_0005d118;\n  iVar2 = *(int *)PTR___stack_chk_guard_0005d5c0;\n  puVar12 = PTR_DAT_0005d118 + -0x27c0;\n  while ((psVar8 = (sigset_t *)0x3, *(int *)(puVar17 + -0x27c4) != 0 ||\n         (*(int *)(puVar17 + -0x27c8) != 0))) {\n    set_color_context(RESET_CONTEXT);\n    (*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0);\n    (*(code *)PTR_sigprocmask_0005d5e0)(1,puVar12,&oldset);\n    uVar9 = *(undefined4 *)(puVar17 + -0x27c4);\n    if (*(int *)(puVar17 + -0x27c8) == 0) {\n      (*(code *)PTR_signal_0005d5a4)(uVar9,0);\n    }\n    else {\n      *(int *)(puVar17 + -0x27c8) = *(int *)(puVar17 + -0x27c8) + -1;\n      uVar9 = 0x17;\n    }\n    (*(code *)PTR_raise_0005d614)(uVar9);\n    in_a2 = 0;\n    in_a1 = &oldset;\n    (*(code *)PTR_sigprocmask_0005d5e0)(3);\n  }\n  if (iVar2 == *(int *)PTR___stack_chk_guard_0005d5c0) {\n    return;\n  }\n  puVar17 = PTR___stack_chk_fail_0005d598;\n  (*(code *)PTR___stack_chk_fail_0005d598)();\n  if (**(char **)(puVar17 + 0x3c988) == '\0') {\n    uVar11 = (int)in_a1 - (int)psVar8;\n    if (uVar11 != 0) {\n      puVar14 = *(undefined4 **)(puVar17 + 0x3c8d4);\n      iVar2 = *(int *)(puVar17 + 0x3c9f0);\n      do {\n        uVar16 = 0x400;\n        if (uVar11 < 0x401) {\n          uVar16 = uVar11;\n        }\n        uVar3 = (**(code **)(puVar17 + 0x3cce0))(psVar8,1,uVar16,*puVar14);\n        psVar8 = (sigset_t *)((int)psVar8->__val + uVar3);\n        if (uVar3 < uVar16) {\n          return;\n        }\n        uVar11 = uVar11 - uVar3;\n        (*(code *)(iVar2 + 0x77c))();\n      } while (uVar11 != 0);\n    }\n  }\n  else {\n    iVar2 = **(int **)(puVar17 + 0x3c8d4);\n    uVar11 = **(uint **)(puVar17 + 0x3c9c0);\n    uVar16 = 0;\n    if (psVar8 < in_a1) {\n      iVar15 = 1;\n      iVar4 = *(int *)(puVar17 + 0x3c9f0);\n      do {\n        psVar10 = (sigset_t *)((int)psVar8->__val + 1);\n        bVar1 = *(byte *)psVar8->__val;\n        uVar3 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar11 == 0) {\n            trap(7);\n          }\n          iVar13 = uVar11 - uVar16 % uVar11;\n          uVar16 = uVar16 + iVar13;\n          do {\n            puVar7 = *(undefined1 **)(iVar2 + 0x14);\n            if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n              *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n              *puVar7 = 0x20;\n            }\n            else {\n              (**(code **)(puVar17 + 0x3cbd8))(iVar2,0x20);\n            }\n            iVar13 = iVar13 + -1;\n          } while (iVar13 != 0);\nLAB_00020a58:\n          if (in_a1 <= psVar10) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar16 != 0) {\n                puVar7 = *(undefined1 **)(iVar2 + 0x14);\n                uVar16 = uVar16 - 1;\n                if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n                  *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n                  *puVar7 = 8;\n                }\n                else {\n                  (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n                }\n              }\n            }\n            else {\n              piVar5 = (int *)(**(code **)(puVar17 + 0x3cb74))();\n              uVar16 = uVar16 - ((int)((uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar2 + 0x14);\n              if (pbVar6 < *(byte **)(iVar2 + 0x18)) {\n                *(byte **)(iVar2 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar7 = *(undefined1 **)(iVar2 + 0x14);\n          if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n            *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n            *puVar7 = 0xd;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n          }\n          if (in_a2 == 0) {\n            uVar16 = 0;\n            goto LAB_00020a58;\n          }\n          if (in_a1 <= psVar10) {\n            return;\n          }\n          if (*(char *)psVar10->__val == '\n') {\n            uVar16 = 0;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbb0))(iVar2,1,in_a2,in_a3);\n            uVar16 = 0;\n          }\n        }\n        iVar15 = iVar15 + 1;\n        psVar8 = psVar10;\n        if (iVar15 == 0x400) {\n          (*(code *)(iVar4 + 0x77c))();\n          iVar15 = 0;\n        }\n      } while( true );\n    }\n  }\n  return;\n}" primitive_type (function_declarator "process_signals(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int *piVar5;\n  byte *pbVar6;\n  undefined1 *puVar7;\n  sigset_t *psVar8;\n  sigset_t *in_a1;\n  int in_a2;\n  undefined4 in_a3;\n  undefined4 uVar9;\n  sigset_t *psVar10;\n  uint uVar11;\n  undefined *puVar12;\n  int iVar13;\n  undefined4 *puVar14;\n  int iVar15;\n  uint uVar16;\n  undefined *puVar17;\n  sigset_t oldset;\n  \n  puVar17 = PTR_DAT_0005d118;\n  iVar2 = *(int *)PTR___stack_chk_guard_0005d5c0;\n  puVar12 = PTR_DAT_0005d118 + -0x27c0;\n  while ((psVar8 = (sigset_t *)0x3, *(int *)(puVar17 + -0x27c4) != 0 ||\n         (*(int *)(puVar17 + -0x27c8) != 0))) {\n    set_color_context(RESET_CONTEXT);\n    (*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0);\n    (*(code *)PTR_sigprocmask_0005d5e0)(1,puVar12,&oldset);\n    uVar9 = *(undefined4 *)(puVar17 + -0x27c4);\n    if (*(int *)(puVar17 + -0x27c8) == 0) {\n      (*(code *)PTR_signal_0005d5a4)(uVar9,0);\n    }\n    else {\n      *(int *)(puVar17 + -0x27c8) = *(int *)(puVar17 + -0x27c8) + -1;\n      uVar9 = 0x17;\n    }\n    (*(code *)PTR_raise_0005d614)(uVar9);\n    in_a2 = 0;\n    in_a1 = &oldset;\n    (*(code *)PTR_sigprocmask_0005d5e0)(3);\n  }\n  if (iVar2 == *(int *)PTR___stack_chk_guard_0005d5c0) {\n    return;\n  }\n  puVar17 = PTR___stack_chk_fail_0005d598;\n  (*(code *)PTR___stack_chk_fail_0005d598)();\n  if (**(char **)(puVar17 + 0x3c988) == '\0') {\n    uVar11 = (int)in_a1 - (int)psVar8;\n    if (uVar11 != 0) {\n      puVar14 = *(undefined4 **)(puVar17 + 0x3c8d4);\n      iVar2 = *(int *)(puVar17 + 0x3c9f0);\n      do {\n        uVar16 = 0x400;\n        if (uVar11 < 0x401) {\n          uVar16 = uVar11;\n        }\n        uVar3 = (**(code **)(puVar17 + 0x3cce0))(psVar8,1,uVar16,*puVar14);\n        psVar8 = (sigset_t *)((int)psVar8->__val + uVar3);\n        if (uVar3 < uVar16) {\n          return;\n        }\n        uVar11 = uVar11 - uVar3;\n        (*(code *)(iVar2 + 0x77c))();\n      } while (uVar11 != 0);\n    }\n  }\n  else {\n    iVar2 = **(int **)(puVar17 + 0x3c8d4);\n    uVar11 = **(uint **)(puVar17 + 0x3c9c0);\n    uVar16 = 0;\n    if (psVar8 < in_a1) {\n      iVar15 = 1;\n      iVar4 = *(int *)(puVar17 + 0x3c9f0);\n      do {\n        psVar10 = (sigset_t *)((int)psVar8->__val + 1);\n        bVar1 = *(byte *)psVar8->__val;\n        uVar3 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar11 == 0) {\n            trap(7);\n          }\n          iVar13 = uVar11 - uVar16 % uVar11;\n          uVar16 = uVar16 + iVar13;\n          do {\n            puVar7 = *(undefined1 **)(iVar2 + 0x14);\n            if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n              *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n              *puVar7 = 0x20;\n            }\n            else {\n              (**(code **)(puVar17 + 0x3cbd8))(iVar2,0x20);\n            }\n            iVar13 = iVar13 + -1;\n          } while (iVar13 != 0);\nLAB_00020a58:\n          if (in_a1 <= psVar10) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar16 != 0) {\n                puVar7 = *(undefined1 **)(iVar2 + 0x14);\n                uVar16 = uVar16 - 1;\n                if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n                  *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n                  *puVar7 = 8;\n                }\n                else {\n                  (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n                }\n              }\n            }\n            else {\n              piVar5 = (int *)(**(code **)(puVar17 + 0x3cb74))();\n              uVar16 = uVar16 - ((int)((uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar2 + 0x14);\n              if (pbVar6 < *(byte **)(iVar2 + 0x18)) {\n                *(byte **)(iVar2 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar7 = *(undefined1 **)(iVar2 + 0x14);\n          if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n            *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n            *puVar7 = 0xd;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n          }\n          if (in_a2 == 0) {\n            uVar16 = 0;\n            goto LAB_00020a58;\n          }\n          if (in_a1 <= psVar10) {\n            return;\n          }\n          if (*(char *)psVar10->__val == '\n') {\n            uVar16 = 0;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbb0))(iVar2,1,in_a2,in_a3);\n            uVar16 = 0;\n          }\n        }\n        iVar15 = iVar15 + 1;\n        psVar8 = psVar10;\n        if (iVar15 == 0x400) {\n          (*(code *)(iVar4 + 0x77c))();\n          iVar15 = 0;\n        }\n      } while( true );\n    }\n  }\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "undefined1 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "sigset_t *psVar8;" type_identifier (pointer_declarator "*psVar8" * identifier) ;) (declaration "sigset_t *in_a1;" type_identifier (pointer_declarator "*in_a1" * identifier) ;) (declaration "int in_a2;" primitive_type identifier ;) (declaration "undefined4 in_a3;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "sigset_t *psVar10;" type_identifier (pointer_declarator "*psVar10" * identifier) ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "undefined *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "undefined4 *puVar14;" type_identifier (pointer_declarator "*puVar14" * identifier) ;) (declaration "int iVar15;" primitive_type identifier ;) (declaration "uint uVar16;" type_identifier identifier ;) (declaration "undefined *puVar17;" type_identifier (pointer_declarator "*puVar17" * identifier) ;) (declaration "sigset_t oldset;" type_identifier identifier ;) (expression_statement "puVar17 = PTR_DAT_0005d118;" (assignment_expression "puVar17 = PTR_DAT_0005d118" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_0005d5c0;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_0005d5c0" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0005d5c0" * (cast_expression "(int *)PTR___stack_chk_guard_0005d5c0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar12 = PTR_DAT_0005d118 + -0x27c0;" (assignment_expression "puVar12 = PTR_DAT_0005d118 + -0x27c0" identifier = (binary_expression "PTR_DAT_0005d118 + -0x27c0" identifier + number_literal)) ;) (while_statement "while ((psVar8 = (sigset_t *)0x3, *(int *)(puVar17 + -0x27c4) != 0 ||\n         (*(int *)(puVar17 + -0x27c8) != 0))) {\n    set_color_context(RESET_CONTEXT);\n    (*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0);\n    (*(code *)PTR_sigprocmask_0005d5e0)(1,puVar12,&oldset);\n    uVar9 = *(undefined4 *)(puVar17 + -0x27c4);\n    if (*(int *)(puVar17 + -0x27c8) == 0) {\n      (*(code *)PTR_signal_0005d5a4)(uVar9,0);\n    }\n    else {\n      *(int *)(puVar17 + -0x27c8) = *(int *)(puVar17 + -0x27c8) + -1;\n      uVar9 = 0x17;\n    }\n    (*(code *)PTR_raise_0005d614)(uVar9);\n    in_a2 = 0;\n    in_a1 = &oldset;\n    (*(code *)PTR_sigprocmask_0005d5e0)(3);\n  }" while (parenthesized_expression "((psVar8 = (sigset_t *)0x3, *(int *)(puVar17 + -0x27c4) != 0 ||\n         (*(int *)(puVar17 + -0x27c8) != 0)))" ( (parenthesized_expression "(psVar8 = (sigset_t *)0x3, *(int *)(puVar17 + -0x27c4) != 0 ||\n         (*(int *)(puVar17 + -0x27c8) != 0))" ( (comma_expression "psVar8 = (sigset_t *)0x3, *(int *)(puVar17 + -0x27c4) != 0 ||\n         (*(int *)(puVar17 + -0x27c8) != 0)" (assignment_expression "psVar8 = (sigset_t *)0x3" identifier = (cast_expression "(sigset_t *)0x3" ( (type_descriptor "sigset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) , (binary_expression "*(int *)(puVar17 + -0x27c4) != 0 ||\n         (*(int *)(puVar17 + -0x27c8) != 0)" (binary_expression "*(int *)(puVar17 + -0x27c4) != 0" (pointer_expression "*(int *)(puVar17 + -0x27c4)" * (cast_expression "(int *)(puVar17 + -0x27c4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar17 + -0x27c4)" ( (binary_expression "puVar17 + -0x27c4" identifier + number_literal) )))) != number_literal) || (parenthesized_expression "(*(int *)(puVar17 + -0x27c8) != 0)" ( (binary_expression "*(int *)(puVar17 + -0x27c8) != 0" (pointer_expression "*(int *)(puVar17 + -0x27c8)" * (cast_expression "(int *)(puVar17 + -0x27c8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar17 + -0x27c8)" ( (binary_expression "puVar17 + -0x27c8" identifier + number_literal) )))) != number_literal) )))) )) )) (compound_statement "{\n    set_color_context(RESET_CONTEXT);\n    (*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0);\n    (*(code *)PTR_sigprocmask_0005d5e0)(1,puVar12,&oldset);\n    uVar9 = *(undefined4 *)(puVar17 + -0x27c4);\n    if (*(int *)(puVar17 + -0x27c8) == 0) {\n      (*(code *)PTR_signal_0005d5a4)(uVar9,0);\n    }\n    else {\n      *(int *)(puVar17 + -0x27c8) = *(int *)(puVar17 + -0x27c8) + -1;\n      uVar9 = 0x17;\n    }\n    (*(code *)PTR_raise_0005d614)(uVar9);\n    in_a2 = 0;\n    in_a1 = &oldset;\n    (*(code *)PTR_sigprocmask_0005d5e0)(3);\n  }" { (expression_statement "set_color_context(RESET_CONTEXT);" (call_expression "set_color_context(RESET_CONTEXT)" identifier (argument_list "(RESET_CONTEXT)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0);" (call_expression "(*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0)" (parenthesized_expression "(*(code *)PTR_fflush_unlocked_0005d58c)" ( (pointer_expression "*(code *)PTR_fflush_unlocked_0005d58c" * (cast_expression "(code *)PTR_fflush_unlocked_0005d58c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_stdout_0005d4d0)" ( (pointer_expression "*(undefined4 *)PTR_stdout_0005d4d0" * (cast_expression "(undefined4 *)PTR_stdout_0005d4d0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "(*(code *)PTR_sigprocmask_0005d5e0)(1,puVar12,&oldset);" (call_expression "(*(code *)PTR_sigprocmask_0005d5e0)(1,puVar12,&oldset)" (parenthesized_expression "(*(code *)PTR_sigprocmask_0005d5e0)" ( (pointer_expression "*(code *)PTR_sigprocmask_0005d5e0" * (cast_expression "(code *)PTR_sigprocmask_0005d5e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,puVar12,&oldset)" ( number_literal , identifier , (pointer_expression "&oldset" & identifier) ))) ;) (expression_statement "uVar9 = *(undefined4 *)(puVar17 + -0x27c4);" (assignment_expression "uVar9 = *(undefined4 *)(puVar17 + -0x27c4)" identifier = (pointer_expression "*(undefined4 *)(puVar17 + -0x27c4)" * (cast_expression "(undefined4 *)(puVar17 + -0x27c4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar17 + -0x27c4)" ( (binary_expression "puVar17 + -0x27c4" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(puVar17 + -0x27c8) == 0) {\n      (*(code *)PTR_signal_0005d5a4)(uVar9,0);\n    }\n    else {\n      *(int *)(puVar17 + -0x27c8) = *(int *)(puVar17 + -0x27c8) + -1;\n      uVar9 = 0x17;\n    }" if (parenthesized_expression "(*(int *)(puVar17 + -0x27c8) == 0)" ( (binary_expression "*(int *)(puVar17 + -0x27c8) == 0" (pointer_expression "*(int *)(puVar17 + -0x27c8)" * (cast_expression "(int *)(puVar17 + -0x27c8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar17 + -0x27c8)" ( (binary_expression "puVar17 + -0x27c8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      (*(code *)PTR_signal_0005d5a4)(uVar9,0);\n    }" { (expression_statement "(*(code *)PTR_signal_0005d5a4)(uVar9,0);" (call_expression "(*(code *)PTR_signal_0005d5a4)(uVar9,0)" (parenthesized_expression "(*(code *)PTR_signal_0005d5a4)" ( (pointer_expression "*(code *)PTR_signal_0005d5a4" * (cast_expression "(code *)PTR_signal_0005d5a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar9,0)" ( identifier , number_literal ))) ;) }) (else_clause "else {\n      *(int *)(puVar17 + -0x27c8) = *(int *)(puVar17 + -0x27c8) + -1;\n      uVar9 = 0x17;\n    }" else (compound_statement "{\n      *(int *)(puVar17 + -0x27c8) = *(int *)(puVar17 + -0x27c8) + -1;\n      uVar9 = 0x17;\n    }" { (expression_statement "*(int *)(puVar17 + -0x27c8) = *(int *)(puVar17 + -0x27c8) + -1;" (assignment_expression "*(int *)(puVar17 + -0x27c8) = *(int *)(puVar17 + -0x27c8) + -1" (pointer_expression "*(int *)(puVar17 + -0x27c8)" * (cast_expression "(int *)(puVar17 + -0x27c8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar17 + -0x27c8)" ( (binary_expression "puVar17 + -0x27c8" identifier + number_literal) )))) = (binary_expression "*(int *)(puVar17 + -0x27c8) + -1" (pointer_expression "*(int *)(puVar17 + -0x27c8)" * (cast_expression "(int *)(puVar17 + -0x27c8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar17 + -0x27c8)" ( (binary_expression "puVar17 + -0x27c8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "uVar9 = 0x17;" (assignment_expression "uVar9 = 0x17" identifier = number_literal) ;) }))) (expression_statement "(*(code *)PTR_raise_0005d614)(uVar9);" (call_expression "(*(code *)PTR_raise_0005d614)(uVar9)" (parenthesized_expression "(*(code *)PTR_raise_0005d614)" ( (pointer_expression "*(code *)PTR_raise_0005d614" * (cast_expression "(code *)PTR_raise_0005d614" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar9)" ( identifier ))) ;) (expression_statement "in_a2 = 0;" (assignment_expression "in_a2 = 0" identifier = number_literal) ;) (expression_statement "in_a1 = &oldset;" (assignment_expression "in_a1 = &oldset" identifier = (pointer_expression "&oldset" & identifier)) ;) (expression_statement "(*(code *)PTR_sigprocmask_0005d5e0)(3);" (call_expression "(*(code *)PTR_sigprocmask_0005d5e0)(3)" (parenthesized_expression "(*(code *)PTR_sigprocmask_0005d5e0)" ( (pointer_expression "*(code *)PTR_sigprocmask_0005d5e0" * (cast_expression "(code *)PTR_sigprocmask_0005d5e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3)" ( number_literal ))) ;) })) (if_statement "if (iVar2 == *(int *)PTR___stack_chk_guard_0005d5c0) {\n    return;\n  }" if (parenthesized_expression "(iVar2 == *(int *)PTR___stack_chk_guard_0005d5c0)" ( (binary_expression "iVar2 == *(int *)PTR___stack_chk_guard_0005d5c0" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_0005d5c0" * (cast_expression "(int *)PTR___stack_chk_guard_0005d5c0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar17 = PTR___stack_chk_fail_0005d598;" (assignment_expression "puVar17 = PTR___stack_chk_fail_0005d598" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0005d598)();" (call_expression "(*(code *)PTR___stack_chk_fail_0005d598)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0005d598)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0005d598" * (cast_expression "(code *)PTR___stack_chk_fail_0005d598" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (**(char **)(puVar17 + 0x3c988) == '\0') {\n    uVar11 = (int)in_a1 - (int)psVar8;\n    if (uVar11 != 0) {\n      puVar14 = *(undefined4 **)(puVar17 + 0x3c8d4);\n      iVar2 = *(int *)(puVar17 + 0x3c9f0);\n      do {\n        uVar16 = 0x400;\n        if (uVar11 < 0x401) {\n          uVar16 = uVar11;\n        }\n        uVar3 = (**(code **)(puVar17 + 0x3cce0))(psVar8,1,uVar16,*puVar14);\n        psVar8 = (sigset_t *)((int)psVar8->__val + uVar3);\n        if (uVar3 < uVar16) {\n          return;\n        }\n        uVar11 = uVar11 - uVar3;\n        (*(code *)(iVar2 + 0x77c))();\n      } while (uVar11 != 0);\n    }\n  }\n  else {\n    iVar2 = **(int **)(puVar17 + 0x3c8d4);\n    uVar11 = **(uint **)(puVar17 + 0x3c9c0);\n    uVar16 = 0;\n    if (psVar8 < in_a1) {\n      iVar15 = 1;\n      iVar4 = *(int *)(puVar17 + 0x3c9f0);\n      do {\n        psVar10 = (sigset_t *)((int)psVar8->__val + 1);\n        bVar1 = *(byte *)psVar8->__val;\n        uVar3 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar11 == 0) {\n            trap(7);\n          }\n          iVar13 = uVar11 - uVar16 % uVar11;\n          uVar16 = uVar16 + iVar13;\n          do {\n            puVar7 = *(undefined1 **)(iVar2 + 0x14);\n            if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n              *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n              *puVar7 = 0x20;\n            }\n            else {\n              (**(code **)(puVar17 + 0x3cbd8))(iVar2,0x20);\n            }\n            iVar13 = iVar13 + -1;\n          } while (iVar13 != 0);\nLAB_00020a58:\n          if (in_a1 <= psVar10) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar16 != 0) {\n                puVar7 = *(undefined1 **)(iVar2 + 0x14);\n                uVar16 = uVar16 - 1;\n                if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n                  *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n                  *puVar7 = 8;\n                }\n                else {\n                  (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n                }\n              }\n            }\n            else {\n              piVar5 = (int *)(**(code **)(puVar17 + 0x3cb74))();\n              uVar16 = uVar16 - ((int)((uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar2 + 0x14);\n              if (pbVar6 < *(byte **)(iVar2 + 0x18)) {\n                *(byte **)(iVar2 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar7 = *(undefined1 **)(iVar2 + 0x14);\n          if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n            *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n            *puVar7 = 0xd;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n          }\n          if (in_a2 == 0) {\n            uVar16 = 0;\n            goto LAB_00020a58;\n          }\n          if (in_a1 <= psVar10) {\n            return;\n          }\n          if (*(char *)psVar10->__val == '\n') {\n            uVar16 = 0;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbb0))(iVar2,1,in_a2,in_a3);\n            uVar16 = 0;\n          }\n        }\n        iVar15 = iVar15 + 1;\n        psVar8 = psVar10;\n        if (iVar15 == 0x400) {\n          (*(code *)(iVar4 + 0x77c))();\n          iVar15 = 0;\n        }\n      } while( true );\n    }\n  }" if (parenthesized_expression "(**(char **)(puVar17 + 0x3c988) == '\0')" ( (binary_expression "**(char **)(puVar17 + 0x3c988) == '\0'" (pointer_expression "**(char **)(puVar17 + 0x3c988)" * (pointer_expression "*(char **)(puVar17 + 0x3c988)" * (cast_expression "(char **)(puVar17 + 0x3c988)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar17 + 0x3c988)" ( (binary_expression "puVar17 + 0x3c988" identifier + number_literal) ))))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar11 = (int)in_a1 - (int)psVar8;\n    if (uVar11 != 0) {\n      puVar14 = *(undefined4 **)(puVar17 + 0x3c8d4);\n      iVar2 = *(int *)(puVar17 + 0x3c9f0);\n      do {\n        uVar16 = 0x400;\n        if (uVar11 < 0x401) {\n          uVar16 = uVar11;\n        }\n        uVar3 = (**(code **)(puVar17 + 0x3cce0))(psVar8,1,uVar16,*puVar14);\n        psVar8 = (sigset_t *)((int)psVar8->__val + uVar3);\n        if (uVar3 < uVar16) {\n          return;\n        }\n        uVar11 = uVar11 - uVar3;\n        (*(code *)(iVar2 + 0x77c))();\n      } while (uVar11 != 0);\n    }\n  }" { (expression_statement "uVar11 = (int)in_a1 - (int)psVar8;" (assignment_expression "uVar11 = (int)in_a1 - (int)psVar8" identifier = (binary_expression "(int)in_a1 - (int)psVar8" (cast_expression "(int)in_a1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)psVar8" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (uVar11 != 0) {\n      puVar14 = *(undefined4 **)(puVar17 + 0x3c8d4);\n      iVar2 = *(int *)(puVar17 + 0x3c9f0);\n      do {\n        uVar16 = 0x400;\n        if (uVar11 < 0x401) {\n          uVar16 = uVar11;\n        }\n        uVar3 = (**(code **)(puVar17 + 0x3cce0))(psVar8,1,uVar16,*puVar14);\n        psVar8 = (sigset_t *)((int)psVar8->__val + uVar3);\n        if (uVar3 < uVar16) {\n          return;\n        }\n        uVar11 = uVar11 - uVar3;\n        (*(code *)(iVar2 + 0x77c))();\n      } while (uVar11 != 0);\n    }" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (compound_statement "{\n      puVar14 = *(undefined4 **)(puVar17 + 0x3c8d4);\n      iVar2 = *(int *)(puVar17 + 0x3c9f0);\n      do {\n        uVar16 = 0x400;\n        if (uVar11 < 0x401) {\n          uVar16 = uVar11;\n        }\n        uVar3 = (**(code **)(puVar17 + 0x3cce0))(psVar8,1,uVar16,*puVar14);\n        psVar8 = (sigset_t *)((int)psVar8->__val + uVar3);\n        if (uVar3 < uVar16) {\n          return;\n        }\n        uVar11 = uVar11 - uVar3;\n        (*(code *)(iVar2 + 0x77c))();\n      } while (uVar11 != 0);\n    }" { (expression_statement "puVar14 = *(undefined4 **)(puVar17 + 0x3c8d4);" (assignment_expression "puVar14 = *(undefined4 **)(puVar17 + 0x3c8d4)" identifier = (pointer_expression "*(undefined4 **)(puVar17 + 0x3c8d4)" * (cast_expression "(undefined4 **)(puVar17 + 0x3c8d4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar17 + 0x3c8d4)" ( (binary_expression "puVar17 + 0x3c8d4" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(puVar17 + 0x3c9f0);" (assignment_expression "iVar2 = *(int *)(puVar17 + 0x3c9f0)" identifier = (pointer_expression "*(int *)(puVar17 + 0x3c9f0)" * (cast_expression "(int *)(puVar17 + 0x3c9f0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar17 + 0x3c9f0)" ( (binary_expression "puVar17 + 0x3c9f0" identifier + number_literal) ))))) ;) (do_statement "do {\n        uVar16 = 0x400;\n        if (uVar11 < 0x401) {\n          uVar16 = uVar11;\n        }\n        uVar3 = (**(code **)(puVar17 + 0x3cce0))(psVar8,1,uVar16,*puVar14);\n        psVar8 = (sigset_t *)((int)psVar8->__val + uVar3);\n        if (uVar3 < uVar16) {\n          return;\n        }\n        uVar11 = uVar11 - uVar3;\n        (*(code *)(iVar2 + 0x77c))();\n      } while (uVar11 != 0);" do (compound_statement "{\n        uVar16 = 0x400;\n        if (uVar11 < 0x401) {\n          uVar16 = uVar11;\n        }\n        uVar3 = (**(code **)(puVar17 + 0x3cce0))(psVar8,1,uVar16,*puVar14);\n        psVar8 = (sigset_t *)((int)psVar8->__val + uVar3);\n        if (uVar3 < uVar16) {\n          return;\n        }\n        uVar11 = uVar11 - uVar3;\n        (*(code *)(iVar2 + 0x77c))();\n      }" { (expression_statement "uVar16 = 0x400;" (assignment_expression "uVar16 = 0x400" identifier = number_literal) ;) (if_statement "if (uVar11 < 0x401) {\n          uVar16 = uVar11;\n        }" if (parenthesized_expression "(uVar11 < 0x401)" ( (binary_expression "uVar11 < 0x401" identifier < number_literal) )) (compound_statement "{\n          uVar16 = uVar11;\n        }" { (expression_statement "uVar16 = uVar11;" (assignment_expression "uVar16 = uVar11" identifier = identifier) ;) })) (expression_statement "uVar3 = (**(code **)(puVar17 + 0x3cce0))(psVar8,1,uVar16,*puVar14);" (assignment_expression "uVar3 = (**(code **)(puVar17 + 0x3cce0))(psVar8,1,uVar16,*puVar14)" identifier = (call_expression "(**(code **)(puVar17 + 0x3cce0))(psVar8,1,uVar16,*puVar14)" (parenthesized_expression "(**(code **)(puVar17 + 0x3cce0))" ( (pointer_expression "**(code **)(puVar17 + 0x3cce0)" * (pointer_expression "*(code **)(puVar17 + 0x3cce0)" * (cast_expression "(code **)(puVar17 + 0x3cce0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar17 + 0x3cce0)" ( (binary_expression "puVar17 + 0x3cce0" identifier + number_literal) ))))) )) (argument_list "(psVar8,1,uVar16,*puVar14)" ( identifier , number_literal , identifier , (pointer_expression "*puVar14" * identifier) )))) ;) (expression_statement "psVar8 = (sigset_t *)((int)psVar8->__val + uVar3);" (assignment_expression "psVar8 = (sigset_t *)((int)psVar8->__val + uVar3)" identifier = (cast_expression "(sigset_t *)((int)psVar8->__val + uVar3)" ( (type_descriptor "sigset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar8->__val + uVar3)" ( (binary_expression "(int)psVar8->__val + uVar3" (cast_expression "(int)psVar8->__val" ( (type_descriptor "int" primitive_type) ) (field_expression "psVar8->__val" identifier -> field_identifier)) + identifier) )))) ;) (if_statement "if (uVar3 < uVar16) {\n          return;\n        }" if (parenthesized_expression "(uVar3 < uVar16)" ( (binary_expression "uVar3 < uVar16" identifier < identifier) )) (compound_statement "{\n          return;\n        }" { (return_statement "return;" return ;) })) (expression_statement "uVar11 = uVar11 - uVar3;" (assignment_expression "uVar11 = uVar11 - uVar3" identifier = (binary_expression "uVar11 - uVar3" identifier - identifier)) ;) (expression_statement "(*(code *)(iVar2 + 0x77c))();" (call_expression "(*(code *)(iVar2 + 0x77c))()" (parenthesized_expression "(*(code *)(iVar2 + 0x77c))" ( (pointer_expression "*(code *)(iVar2 + 0x77c)" * (cast_expression "(code *)(iVar2 + 0x77c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x77c)" ( (binary_expression "iVar2 + 0x77c" identifier + number_literal) )))) )) (argument_list "()" ( ))) ;) }) while (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) ;) })) }) (else_clause "else {\n    iVar2 = **(int **)(puVar17 + 0x3c8d4);\n    uVar11 = **(uint **)(puVar17 + 0x3c9c0);\n    uVar16 = 0;\n    if (psVar8 < in_a1) {\n      iVar15 = 1;\n      iVar4 = *(int *)(puVar17 + 0x3c9f0);\n      do {\n        psVar10 = (sigset_t *)((int)psVar8->__val + 1);\n        bVar1 = *(byte *)psVar8->__val;\n        uVar3 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar11 == 0) {\n            trap(7);\n          }\n          iVar13 = uVar11 - uVar16 % uVar11;\n          uVar16 = uVar16 + iVar13;\n          do {\n            puVar7 = *(undefined1 **)(iVar2 + 0x14);\n            if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n              *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n              *puVar7 = 0x20;\n            }\n            else {\n              (**(code **)(puVar17 + 0x3cbd8))(iVar2,0x20);\n            }\n            iVar13 = iVar13 + -1;\n          } while (iVar13 != 0);\nLAB_00020a58:\n          if (in_a1 <= psVar10) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar16 != 0) {\n                puVar7 = *(undefined1 **)(iVar2 + 0x14);\n                uVar16 = uVar16 - 1;\n                if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n                  *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n                  *puVar7 = 8;\n                }\n                else {\n                  (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n                }\n              }\n            }\n            else {\n              piVar5 = (int *)(**(code **)(puVar17 + 0x3cb74))();\n              uVar16 = uVar16 - ((int)((uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar2 + 0x14);\n              if (pbVar6 < *(byte **)(iVar2 + 0x18)) {\n                *(byte **)(iVar2 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar7 = *(undefined1 **)(iVar2 + 0x14);\n          if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n            *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n            *puVar7 = 0xd;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n          }\n          if (in_a2 == 0) {\n            uVar16 = 0;\n            goto LAB_00020a58;\n          }\n          if (in_a1 <= psVar10) {\n            return;\n          }\n          if (*(char *)psVar10->__val == '\n') {\n            uVar16 = 0;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbb0))(iVar2,1,in_a2,in_a3);\n            uVar16 = 0;\n          }\n        }\n        iVar15 = iVar15 + 1;\n        psVar8 = psVar10;\n        if (iVar15 == 0x400) {\n          (*(code *)(iVar4 + 0x77c))();\n          iVar15 = 0;\n        }\n      } while( true );\n    }\n  }" else (compound_statement "{\n    iVar2 = **(int **)(puVar17 + 0x3c8d4);\n    uVar11 = **(uint **)(puVar17 + 0x3c9c0);\n    uVar16 = 0;\n    if (psVar8 < in_a1) {\n      iVar15 = 1;\n      iVar4 = *(int *)(puVar17 + 0x3c9f0);\n      do {\n        psVar10 = (sigset_t *)((int)psVar8->__val + 1);\n        bVar1 = *(byte *)psVar8->__val;\n        uVar3 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar11 == 0) {\n            trap(7);\n          }\n          iVar13 = uVar11 - uVar16 % uVar11;\n          uVar16 = uVar16 + iVar13;\n          do {\n            puVar7 = *(undefined1 **)(iVar2 + 0x14);\n            if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n              *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n              *puVar7 = 0x20;\n            }\n            else {\n              (**(code **)(puVar17 + 0x3cbd8))(iVar2,0x20);\n            }\n            iVar13 = iVar13 + -1;\n          } while (iVar13 != 0);\nLAB_00020a58:\n          if (in_a1 <= psVar10) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar16 != 0) {\n                puVar7 = *(undefined1 **)(iVar2 + 0x14);\n                uVar16 = uVar16 - 1;\n                if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n                  *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n                  *puVar7 = 8;\n                }\n                else {\n                  (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n                }\n              }\n            }\n            else {\n              piVar5 = (int *)(**(code **)(puVar17 + 0x3cb74))();\n              uVar16 = uVar16 - ((int)((uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar2 + 0x14);\n              if (pbVar6 < *(byte **)(iVar2 + 0x18)) {\n                *(byte **)(iVar2 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar7 = *(undefined1 **)(iVar2 + 0x14);\n          if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n            *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n            *puVar7 = 0xd;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n          }\n          if (in_a2 == 0) {\n            uVar16 = 0;\n            goto LAB_00020a58;\n          }\n          if (in_a1 <= psVar10) {\n            return;\n          }\n          if (*(char *)psVar10->__val == '\n') {\n            uVar16 = 0;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbb0))(iVar2,1,in_a2,in_a3);\n            uVar16 = 0;\n          }\n        }\n        iVar15 = iVar15 + 1;\n        psVar8 = psVar10;\n        if (iVar15 == 0x400) {\n          (*(code *)(iVar4 + 0x77c))();\n          iVar15 = 0;\n        }\n      } while( true );\n    }\n  }" { (expression_statement "iVar2 = **(int **)(puVar17 + 0x3c8d4);" (assignment_expression "iVar2 = **(int **)(puVar17 + 0x3c8d4)" identifier = (pointer_expression "**(int **)(puVar17 + 0x3c8d4)" * (pointer_expression "*(int **)(puVar17 + 0x3c8d4)" * (cast_expression "(int **)(puVar17 + 0x3c8d4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar17 + 0x3c8d4)" ( (binary_expression "puVar17 + 0x3c8d4" identifier + number_literal) )))))) ;) (expression_statement "uVar11 = **(uint **)(puVar17 + 0x3c9c0);" (assignment_expression "uVar11 = **(uint **)(puVar17 + 0x3c9c0)" identifier = (pointer_expression "**(uint **)(puVar17 + 0x3c9c0)" * (pointer_expression "*(uint **)(puVar17 + 0x3c9c0)" * (cast_expression "(uint **)(puVar17 + 0x3c9c0)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar17 + 0x3c9c0)" ( (binary_expression "puVar17 + 0x3c9c0" identifier + number_literal) )))))) ;) (expression_statement "uVar16 = 0;" (assignment_expression "uVar16 = 0" identifier = number_literal) ;) (if_statement "if (psVar8 < in_a1) {\n      iVar15 = 1;\n      iVar4 = *(int *)(puVar17 + 0x3c9f0);\n      do {\n        psVar10 = (sigset_t *)((int)psVar8->__val + 1);\n        bVar1 = *(byte *)psVar8->__val;\n        uVar3 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar11 == 0) {\n            trap(7);\n          }\n          iVar13 = uVar11 - uVar16 % uVar11;\n          uVar16 = uVar16 + iVar13;\n          do {\n            puVar7 = *(undefined1 **)(iVar2 + 0x14);\n            if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n              *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n              *puVar7 = 0x20;\n            }\n            else {\n              (**(code **)(puVar17 + 0x3cbd8))(iVar2,0x20);\n            }\n            iVar13 = iVar13 + -1;\n          } while (iVar13 != 0);\nLAB_00020a58:\n          if (in_a1 <= psVar10) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar16 != 0) {\n                puVar7 = *(undefined1 **)(iVar2 + 0x14);\n                uVar16 = uVar16 - 1;\n                if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n                  *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n                  *puVar7 = 8;\n                }\n                else {\n                  (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n                }\n              }\n            }\n            else {\n              piVar5 = (int *)(**(code **)(puVar17 + 0x3cb74))();\n              uVar16 = uVar16 - ((int)((uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar2 + 0x14);\n              if (pbVar6 < *(byte **)(iVar2 + 0x18)) {\n                *(byte **)(iVar2 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar7 = *(undefined1 **)(iVar2 + 0x14);\n          if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n            *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n            *puVar7 = 0xd;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n          }\n          if (in_a2 == 0) {\n            uVar16 = 0;\n            goto LAB_00020a58;\n          }\n          if (in_a1 <= psVar10) {\n            return;\n          }\n          if (*(char *)psVar10->__val == '\n') {\n            uVar16 = 0;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbb0))(iVar2,1,in_a2,in_a3);\n            uVar16 = 0;\n          }\n        }\n        iVar15 = iVar15 + 1;\n        psVar8 = psVar10;\n        if (iVar15 == 0x400) {\n          (*(code *)(iVar4 + 0x77c))();\n          iVar15 = 0;\n        }\n      } while( true );\n    }" if (parenthesized_expression "(psVar8 < in_a1)" ( (binary_expression "psVar8 < in_a1" identifier < identifier) )) (compound_statement "{\n      iVar15 = 1;\n      iVar4 = *(int *)(puVar17 + 0x3c9f0);\n      do {\n        psVar10 = (sigset_t *)((int)psVar8->__val + 1);\n        bVar1 = *(byte *)psVar8->__val;\n        uVar3 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar11 == 0) {\n            trap(7);\n          }\n          iVar13 = uVar11 - uVar16 % uVar11;\n          uVar16 = uVar16 + iVar13;\n          do {\n            puVar7 = *(undefined1 **)(iVar2 + 0x14);\n            if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n              *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n              *puVar7 = 0x20;\n            }\n            else {\n              (**(code **)(puVar17 + 0x3cbd8))(iVar2,0x20);\n            }\n            iVar13 = iVar13 + -1;\n          } while (iVar13 != 0);\nLAB_00020a58:\n          if (in_a1 <= psVar10) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar16 != 0) {\n                puVar7 = *(undefined1 **)(iVar2 + 0x14);\n                uVar16 = uVar16 - 1;\n                if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n                  *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n                  *puVar7 = 8;\n                }\n                else {\n                  (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n                }\n              }\n            }\n            else {\n              piVar5 = (int *)(**(code **)(puVar17 + 0x3cb74))();\n              uVar16 = uVar16 - ((int)((uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar2 + 0x14);\n              if (pbVar6 < *(byte **)(iVar2 + 0x18)) {\n                *(byte **)(iVar2 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar7 = *(undefined1 **)(iVar2 + 0x14);\n          if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n            *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n            *puVar7 = 0xd;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n          }\n          if (in_a2 == 0) {\n            uVar16 = 0;\n            goto LAB_00020a58;\n          }\n          if (in_a1 <= psVar10) {\n            return;\n          }\n          if (*(char *)psVar10->__val == '\n') {\n            uVar16 = 0;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbb0))(iVar2,1,in_a2,in_a3);\n            uVar16 = 0;\n          }\n        }\n        iVar15 = iVar15 + 1;\n        psVar8 = psVar10;\n        if (iVar15 == 0x400) {\n          (*(code *)(iVar4 + 0x77c))();\n          iVar15 = 0;\n        }\n      } while( true );\n    }" { (expression_statement "iVar15 = 1;" (assignment_expression "iVar15 = 1" identifier = number_literal) ;) (expression_statement "iVar4 = *(int *)(puVar17 + 0x3c9f0);" (assignment_expression "iVar4 = *(int *)(puVar17 + 0x3c9f0)" identifier = (pointer_expression "*(int *)(puVar17 + 0x3c9f0)" * (cast_expression "(int *)(puVar17 + 0x3c9f0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar17 + 0x3c9f0)" ( (binary_expression "puVar17 + 0x3c9f0" identifier + number_literal) ))))) ;) (do_statement "do {\n        psVar10 = (sigset_t *)((int)psVar8->__val + 1);\n        bVar1 = *(byte *)psVar8->__val;\n        uVar3 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar11 == 0) {\n            trap(7);\n          }\n          iVar13 = uVar11 - uVar16 % uVar11;\n          uVar16 = uVar16 + iVar13;\n          do {\n            puVar7 = *(undefined1 **)(iVar2 + 0x14);\n            if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n              *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n              *puVar7 = 0x20;\n            }\n            else {\n              (**(code **)(puVar17 + 0x3cbd8))(iVar2,0x20);\n            }\n            iVar13 = iVar13 + -1;\n          } while (iVar13 != 0);\nLAB_00020a58:\n          if (in_a1 <= psVar10) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar16 != 0) {\n                puVar7 = *(undefined1 **)(iVar2 + 0x14);\n                uVar16 = uVar16 - 1;\n                if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n                  *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n                  *puVar7 = 8;\n                }\n                else {\n                  (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n                }\n              }\n            }\n            else {\n              piVar5 = (int *)(**(code **)(puVar17 + 0x3cb74))();\n              uVar16 = uVar16 - ((int)((uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar2 + 0x14);\n              if (pbVar6 < *(byte **)(iVar2 + 0x18)) {\n                *(byte **)(iVar2 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar7 = *(undefined1 **)(iVar2 + 0x14);\n          if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n            *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n            *puVar7 = 0xd;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n          }\n          if (in_a2 == 0) {\n            uVar16 = 0;\n            goto LAB_00020a58;\n          }\n          if (in_a1 <= psVar10) {\n            return;\n          }\n          if (*(char *)psVar10->__val == '\n') {\n            uVar16 = 0;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbb0))(iVar2,1,in_a2,in_a3);\n            uVar16 = 0;\n          }\n        }\n        iVar15 = iVar15 + 1;\n        psVar8 = psVar10;\n        if (iVar15 == 0x400) {\n          (*(code *)(iVar4 + 0x77c))();\n          iVar15 = 0;\n        }\n      } while( true );" do (compound_statement "{\n        psVar10 = (sigset_t *)((int)psVar8->__val + 1);\n        bVar1 = *(byte *)psVar8->__val;\n        uVar3 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar11 == 0) {\n            trap(7);\n          }\n          iVar13 = uVar11 - uVar16 % uVar11;\n          uVar16 = uVar16 + iVar13;\n          do {\n            puVar7 = *(undefined1 **)(iVar2 + 0x14);\n            if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n              *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n              *puVar7 = 0x20;\n            }\n            else {\n              (**(code **)(puVar17 + 0x3cbd8))(iVar2,0x20);\n            }\n            iVar13 = iVar13 + -1;\n          } while (iVar13 != 0);\nLAB_00020a58:\n          if (in_a1 <= psVar10) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar16 != 0) {\n                puVar7 = *(undefined1 **)(iVar2 + 0x14);\n                uVar16 = uVar16 - 1;\n                if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n                  *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n                  *puVar7 = 8;\n                }\n                else {\n                  (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n                }\n              }\n            }\n            else {\n              piVar5 = (int *)(**(code **)(puVar17 + 0x3cb74))();\n              uVar16 = uVar16 - ((int)((uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar2 + 0x14);\n              if (pbVar6 < *(byte **)(iVar2 + 0x18)) {\n                *(byte **)(iVar2 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar7 = *(undefined1 **)(iVar2 + 0x14);\n          if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n            *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n            *puVar7 = 0xd;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n          }\n          if (in_a2 == 0) {\n            uVar16 = 0;\n            goto LAB_00020a58;\n          }\n          if (in_a1 <= psVar10) {\n            return;\n          }\n          if (*(char *)psVar10->__val == '\n') {\n            uVar16 = 0;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbb0))(iVar2,1,in_a2,in_a3);\n            uVar16 = 0;\n          }\n        }\n        iVar15 = iVar15 + 1;\n        psVar8 = psVar10;\n        if (iVar15 == 0x400) {\n          (*(code *)(iVar4 + 0x77c))();\n          iVar15 = 0;\n        }\n      }" { (expression_statement "psVar10 = (sigset_t *)((int)psVar8->__val + 1);" (assignment_expression "psVar10 = (sigset_t *)((int)psVar8->__val + 1)" identifier = (cast_expression "(sigset_t *)((int)psVar8->__val + 1)" ( (type_descriptor "sigset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar8->__val + 1)" ( (binary_expression "(int)psVar8->__val + 1" (cast_expression "(int)psVar8->__val" ( (type_descriptor "int" primitive_type) ) (field_expression "psVar8->__val" identifier -> field_identifier)) + number_literal) )))) ;) (expression_statement "bVar1 = *(byte *)psVar8->__val;" (assignment_expression "bVar1 = *(byte *)psVar8->__val" identifier = (pointer_expression "*(byte *)psVar8->__val" * (cast_expression "(byte *)psVar8->__val" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "psVar8->__val" identifier -> field_identifier)))) ;) (expression_statement "uVar3 = (uint)bVar1;" (assignment_expression "uVar3 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if (bVar1 == 9) {\n          if (uVar11 == 0) {\n            trap(7);\n          }\n          iVar13 = uVar11 - uVar16 % uVar11;\n          uVar16 = uVar16 + iVar13;\n          do {\n            puVar7 = *(undefined1 **)(iVar2 + 0x14);\n            if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n              *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n              *puVar7 = 0x20;\n            }\n            else {\n              (**(code **)(puVar17 + 0x3cbd8))(iVar2,0x20);\n            }\n            iVar13 = iVar13 + -1;\n          } while (iVar13 != 0);\nLAB_00020a58:\n          if (in_a1 <= psVar10) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar16 != 0) {\n                puVar7 = *(undefined1 **)(iVar2 + 0x14);\n                uVar16 = uVar16 - 1;\n                if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n                  *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n                  *puVar7 = 8;\n                }\n                else {\n                  (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n                }\n              }\n            }\n            else {\n              piVar5 = (int *)(**(code **)(puVar17 + 0x3cb74))();\n              uVar16 = uVar16 - ((int)((uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar2 + 0x14);\n              if (pbVar6 < *(byte **)(iVar2 + 0x18)) {\n                *(byte **)(iVar2 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar7 = *(undefined1 **)(iVar2 + 0x14);\n          if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n            *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n            *puVar7 = 0xd;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n          }\n          if (in_a2 == 0) {\n            uVar16 = 0;\n            goto LAB_00020a58;\n          }\n          if (in_a1 <= psVar10) {\n            return;\n          }\n          if (*(char *)psVar10->__val == '\n') {\n            uVar16 = 0;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbb0))(iVar2,1,in_a2,in_a3);\n            uVar16 = 0;\n          }\n        }" if (parenthesized_expression "(bVar1 == 9)" ( (binary_expression "bVar1 == 9" identifier == number_literal) )) (compound_statement "{\n          if (uVar11 == 0) {\n            trap(7);\n          }\n          iVar13 = uVar11 - uVar16 % uVar11;\n          uVar16 = uVar16 + iVar13;\n          do {\n            puVar7 = *(undefined1 **)(iVar2 + 0x14);\n            if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n              *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n              *puVar7 = 0x20;\n            }\n            else {\n              (**(code **)(puVar17 + 0x3cbd8))(iVar2,0x20);\n            }\n            iVar13 = iVar13 + -1;\n          } while (iVar13 != 0);\nLAB_00020a58:\n          if (in_a1 <= psVar10) {\n            return;\n          }\n        }" { (if_statement "if (uVar11 == 0) {\n            trap(7);\n          }" if (parenthesized_expression "(uVar11 == 0)" ( (binary_expression "uVar11 == 0" identifier == number_literal) )) (compound_statement "{\n            trap(7);\n          }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "iVar13 = uVar11 - uVar16 % uVar11;" (assignment_expression "iVar13 = uVar11 - uVar16 % uVar11" identifier = (binary_expression "uVar11 - uVar16 % uVar11" identifier - (binary_expression "uVar16 % uVar11" identifier % identifier))) ;) (expression_statement "uVar16 = uVar16 + iVar13;" (assignment_expression "uVar16 = uVar16 + iVar13" identifier = (binary_expression "uVar16 + iVar13" identifier + identifier)) ;) (do_statement "do {\n            puVar7 = *(undefined1 **)(iVar2 + 0x14);\n            if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n              *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n              *puVar7 = 0x20;\n            }\n            else {\n              (**(code **)(puVar17 + 0x3cbd8))(iVar2,0x20);\n            }\n            iVar13 = iVar13 + -1;\n          } while (iVar13 != 0);" do (compound_statement "{\n            puVar7 = *(undefined1 **)(iVar2 + 0x14);\n            if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n              *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n              *puVar7 = 0x20;\n            }\n            else {\n              (**(code **)(puVar17 + 0x3cbd8))(iVar2,0x20);\n            }\n            iVar13 = iVar13 + -1;\n          }" { (expression_statement "puVar7 = *(undefined1 **)(iVar2 + 0x14);" (assignment_expression "puVar7 = *(undefined1 **)(iVar2 + 0x14)" identifier = (pointer_expression "*(undefined1 **)(iVar2 + 0x14)" * (cast_expression "(undefined1 **)(iVar2 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n              *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n              *puVar7 = 0x20;\n            }\n            else {\n              (**(code **)(puVar17 + 0x3cbd8))(iVar2,0x20);\n            }" if (parenthesized_expression "(puVar7 < *(undefined1 **)(iVar2 + 0x18))" ( (binary_expression "puVar7 < *(undefined1 **)(iVar2 + 0x18)" identifier < (pointer_expression "*(undefined1 **)(iVar2 + 0x18)" * (cast_expression "(undefined1 **)(iVar2 + 0x18)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n              *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n              *puVar7 = 0x20;\n            }" { (expression_statement "*(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;" (assignment_expression "*(undefined1 **)(iVar2 + 0x14) = puVar7 + 1" (pointer_expression "*(undefined1 **)(iVar2 + 0x14)" * (cast_expression "(undefined1 **)(iVar2 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) = (binary_expression "puVar7 + 1" identifier + number_literal)) ;) (expression_statement "*puVar7 = 0x20;" (assignment_expression "*puVar7 = 0x20" (pointer_expression "*puVar7" * identifier) = number_literal) ;) }) (else_clause "else {\n              (**(code **)(puVar17 + 0x3cbd8))(iVar2,0x20);\n            }" else (compound_statement "{\n              (**(code **)(puVar17 + 0x3cbd8))(iVar2,0x20);\n            }" { (expression_statement "(**(code **)(puVar17 + 0x3cbd8))(iVar2,0x20);" (call_expression "(**(code **)(puVar17 + 0x3cbd8))(iVar2,0x20)" (parenthesized_expression "(**(code **)(puVar17 + 0x3cbd8))" ( (pointer_expression "**(code **)(puVar17 + 0x3cbd8)" * (pointer_expression "*(code **)(puVar17 + 0x3cbd8)" * (cast_expression "(code **)(puVar17 + 0x3cbd8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar17 + 0x3cbd8)" ( (binary_expression "puVar17 + 0x3cbd8" identifier + number_literal) ))))) )) (argument_list "(iVar2,0x20)" ( identifier , number_literal ))) ;) }))) (expression_statement "iVar13 = iVar13 + -1;" (assignment_expression "iVar13 = iVar13 + -1" identifier = (binary_expression "iVar13 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar13 != 0)" ( (binary_expression "iVar13 != 0" identifier != number_literal) )) ;) (labeled_statement "LAB_00020a58:\n          if (in_a1 <= psVar10) {\n            return;\n          }" statement_identifier : (if_statement "if (in_a1 <= psVar10) {\n            return;\n          }" if (parenthesized_expression "(in_a1 <= psVar10)" ( (binary_expression "in_a1 <= psVar10" identifier <= identifier) )) (compound_statement "{\n            return;\n          }" { (return_statement "return;" return ;) }))) }) (else_clause "else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar16 != 0) {\n                puVar7 = *(undefined1 **)(iVar2 + 0x14);\n                uVar16 = uVar16 - 1;\n                if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n                  *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n                  *puVar7 = 8;\n                }\n                else {\n                  (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n                }\n              }\n            }\n            else {\n              piVar5 = (int *)(**(code **)(puVar17 + 0x3cb74))();\n              uVar16 = uVar16 - ((int)((uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar2 + 0x14);\n              if (pbVar6 < *(byte **)(iVar2 + 0x18)) {\n                *(byte **)(iVar2 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar7 = *(undefined1 **)(iVar2 + 0x14);\n          if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n            *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n            *puVar7 = 0xd;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n          }\n          if (in_a2 == 0) {\n            uVar16 = 0;\n            goto LAB_00020a58;\n          }\n          if (in_a1 <= psVar10) {\n            return;\n          }\n          if (*(char *)psVar10->__val == '\n') {\n            uVar16 = 0;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbb0))(iVar2,1,in_a2,in_a3);\n            uVar16 = 0;\n          }\n        }" else (compound_statement "{\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar16 != 0) {\n                puVar7 = *(undefined1 **)(iVar2 + 0x14);\n                uVar16 = uVar16 - 1;\n                if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n                  *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n                  *puVar7 = 8;\n                }\n                else {\n                  (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n                }\n              }\n            }\n            else {\n              piVar5 = (int *)(**(code **)(puVar17 + 0x3cb74))();\n              uVar16 = uVar16 - ((int)((uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar2 + 0x14);\n              if (pbVar6 < *(byte **)(iVar2 + 0x18)) {\n                *(byte **)(iVar2 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar7 = *(undefined1 **)(iVar2 + 0x14);\n          if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n            *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n            *puVar7 = 0xd;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n          }\n          if (in_a2 == 0) {\n            uVar16 = 0;\n            goto LAB_00020a58;\n          }\n          if (in_a1 <= psVar10) {\n            return;\n          }\n          if (*(char *)psVar10->__val == '\n') {\n            uVar16 = 0;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbb0))(iVar2,1,in_a2,in_a3);\n            uVar16 = 0;\n          }\n        }" { (if_statement "if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar16 != 0) {\n                puVar7 = *(undefined1 **)(iVar2 + 0x14);\n                uVar16 = uVar16 - 1;\n                if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n                  *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n                  *puVar7 = 8;\n                }\n                else {\n                  (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n                }\n              }\n            }\n            else {\n              piVar5 = (int *)(**(code **)(puVar17 + 0x3cb74))();\n              uVar16 = uVar16 - ((int)((uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar2 + 0x14);\n              if (pbVar6 < *(byte **)(iVar2 + 0x18)) {\n                *(byte **)(iVar2 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n              }\n            }\n            goto LAB_00020a58;\n          }" if (parenthesized_expression "(bVar1 != 0xd)" ( (binary_expression "bVar1 != 0xd" identifier != number_literal) )) (compound_statement "{\n            if (bVar1 == 8) {\n              if (uVar16 != 0) {\n                puVar7 = *(undefined1 **)(iVar2 + 0x14);\n                uVar16 = uVar16 - 1;\n                if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n                  *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n                  *puVar7 = 8;\n                }\n                else {\n                  (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n                }\n              }\n            }\n            else {\n              piVar5 = (int *)(**(code **)(puVar17 + 0x3cb74))();\n              uVar16 = uVar16 - ((int)((uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar2 + 0x14);\n              if (pbVar6 < *(byte **)(iVar2 + 0x18)) {\n                *(byte **)(iVar2 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n              }\n            }\n            goto LAB_00020a58;\n          }" { (if_statement "if (bVar1 == 8) {\n              if (uVar16 != 0) {\n                puVar7 = *(undefined1 **)(iVar2 + 0x14);\n                uVar16 = uVar16 - 1;\n                if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n                  *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n                  *puVar7 = 8;\n                }\n                else {\n                  (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n                }\n              }\n            }\n            else {\n              piVar5 = (int *)(**(code **)(puVar17 + 0x3cb74))();\n              uVar16 = uVar16 - ((int)((uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar2 + 0x14);\n              if (pbVar6 < *(byte **)(iVar2 + 0x18)) {\n                *(byte **)(iVar2 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n              }\n            }" if (parenthesized_expression "(bVar1 == 8)" ( (binary_expression "bVar1 == 8" identifier == number_literal) )) (compound_statement "{\n              if (uVar16 != 0) {\n                puVar7 = *(undefined1 **)(iVar2 + 0x14);\n                uVar16 = uVar16 - 1;\n                if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n                  *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n                  *puVar7 = 8;\n                }\n                else {\n                  (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n                }\n              }\n            }" { (if_statement "if (uVar16 != 0) {\n                puVar7 = *(undefined1 **)(iVar2 + 0x14);\n                uVar16 = uVar16 - 1;\n                if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n                  *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n                  *puVar7 = 8;\n                }\n                else {\n                  (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n                }\n              }" if (parenthesized_expression "(uVar16 != 0)" ( (binary_expression "uVar16 != 0" identifier != number_literal) )) (compound_statement "{\n                puVar7 = *(undefined1 **)(iVar2 + 0x14);\n                uVar16 = uVar16 - 1;\n                if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n                  *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n                  *puVar7 = 8;\n                }\n                else {\n                  (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n                }\n              }" { (expression_statement "puVar7 = *(undefined1 **)(iVar2 + 0x14);" (assignment_expression "puVar7 = *(undefined1 **)(iVar2 + 0x14)" identifier = (pointer_expression "*(undefined1 **)(iVar2 + 0x14)" * (cast_expression "(undefined1 **)(iVar2 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar16 = uVar16 - 1;" (assignment_expression "uVar16 = uVar16 - 1" identifier = (binary_expression "uVar16 - 1" identifier - number_literal)) ;) (if_statement "if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n                  *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n                  *puVar7 = 8;\n                }\n                else {\n                  (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n                }" if (parenthesized_expression "(puVar7 < *(undefined1 **)(iVar2 + 0x18))" ( (binary_expression "puVar7 < *(undefined1 **)(iVar2 + 0x18)" identifier < (pointer_expression "*(undefined1 **)(iVar2 + 0x18)" * (cast_expression "(undefined1 **)(iVar2 + 0x18)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n                  *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n                  *puVar7 = 8;\n                }" { (expression_statement "*(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;" (assignment_expression "*(undefined1 **)(iVar2 + 0x14) = puVar7 + 1" (pointer_expression "*(undefined1 **)(iVar2 + 0x14)" * (cast_expression "(undefined1 **)(iVar2 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) = (binary_expression "puVar7 + 1" identifier + number_literal)) ;) (expression_statement "*puVar7 = 8;" (assignment_expression "*puVar7 = 8" (pointer_expression "*puVar7" * identifier) = number_literal) ;) }) (else_clause "else {\n                  (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n                }" else (compound_statement "{\n                  (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n                }" { (expression_statement "(**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);" (call_expression "(**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3)" (parenthesized_expression "(**(code **)(puVar17 + 0x3cbd8))" ( (pointer_expression "**(code **)(puVar17 + 0x3cbd8)" * (pointer_expression "*(code **)(puVar17 + 0x3cbd8)" * (cast_expression "(code **)(puVar17 + 0x3cbd8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar17 + 0x3cbd8)" ( (binary_expression "puVar17 + 0x3cbd8" identifier + number_literal) ))))) )) (argument_list "(iVar2,uVar3)" ( identifier , identifier ))) ;) }))) })) }) (else_clause "else {\n              piVar5 = (int *)(**(code **)(puVar17 + 0x3cb74))();\n              uVar16 = uVar16 - ((int)((uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar2 + 0x14);\n              if (pbVar6 < *(byte **)(iVar2 + 0x18)) {\n                *(byte **)(iVar2 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n              }\n            }" else (compound_statement "{\n              piVar5 = (int *)(**(code **)(puVar17 + 0x3cb74))();\n              uVar16 = uVar16 - ((int)((uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar2 + 0x14);\n              if (pbVar6 < *(byte **)(iVar2 + 0x18)) {\n                *(byte **)(iVar2 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n              }\n            }" { (expression_statement "piVar5 = (int *)(**(code **)(puVar17 + 0x3cb74))();" (assignment_expression "piVar5 = (int *)(**(code **)(puVar17 + 0x3cb74))()" identifier = (cast_expression "(int *)(**(code **)(puVar17 + 0x3cb74))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar17 + 0x3cb74))()" (parenthesized_expression "(**(code **)(puVar17 + 0x3cb74))" ( (pointer_expression "**(code **)(puVar17 + 0x3cb74)" * (pointer_expression "*(code **)(puVar17 + 0x3cb74)" * (cast_expression "(code **)(puVar17 + 0x3cb74)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar17 + 0x3cb74)" ( (binary_expression "puVar17 + 0x3cb74" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar16 = uVar16 - ((int)((uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19) >> 0x1f);" (assignment_expression "uVar16 = uVar16 - ((int)((uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19) >> 0x1f)" identifier = (binary_expression "uVar16 - ((int)((uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19) >> 0x1f)" identifier - (parenthesized_expression "((int)((uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19) >> 0x1f)" ( (binary_expression "(int)((uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19) >> 0x1f" (cast_expression "(int)((uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19)" ( (binary_expression "(uint)*(ushort *)(*piVar5 + uVar3 * 2) << 0x19" (binary_expression "(uint)*(ushort *)(*piVar5 + uVar3 * 2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(*piVar5 + uVar3 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar5 + uVar3 * 2)" ( (binary_expression "*piVar5 + uVar3 * 2" (pointer_expression "*piVar5" * identifier) + (binary_expression "uVar3 * 2" identifier * number_literal)) )))) << number_literal) ))) >> number_literal) )))) ;) (expression_statement "pbVar6 = *(byte **)(iVar2 + 0x14);" (assignment_expression "pbVar6 = *(byte **)(iVar2 + 0x14)" identifier = (pointer_expression "*(byte **)(iVar2 + 0x14)" * (cast_expression "(byte **)(iVar2 + 0x14)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (pbVar6 < *(byte **)(iVar2 + 0x18)) {\n                *(byte **)(iVar2 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n              }" if (parenthesized_expression "(pbVar6 < *(byte **)(iVar2 + 0x18))" ( (binary_expression "pbVar6 < *(byte **)(iVar2 + 0x18)" identifier < (pointer_expression "*(byte **)(iVar2 + 0x18)" * (cast_expression "(byte **)(iVar2 + 0x18)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n                *(byte **)(iVar2 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }" { (expression_statement "*(byte **)(iVar2 + 0x14) = pbVar6 + 1;" (assignment_expression "*(byte **)(iVar2 + 0x14) = pbVar6 + 1" (pointer_expression "*(byte **)(iVar2 + 0x14)" * (cast_expression "(byte **)(iVar2 + 0x14)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "*pbVar6 = bVar1;" (assignment_expression "*pbVar6 = bVar1" (pointer_expression "*pbVar6" * identifier) = identifier) ;) }) (else_clause "else {\n                (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n              }" else (compound_statement "{\n                (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n              }" { (expression_statement "(**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);" (call_expression "(**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3)" (parenthesized_expression "(**(code **)(puVar17 + 0x3cbd8))" ( (pointer_expression "**(code **)(puVar17 + 0x3cbd8)" * (pointer_expression "*(code **)(puVar17 + 0x3cbd8)" * (cast_expression "(code **)(puVar17 + 0x3cbd8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar17 + 0x3cbd8)" ( (binary_expression "puVar17 + 0x3cbd8" identifier + number_literal) ))))) )) (argument_list "(iVar2,uVar3)" ( identifier , identifier ))) ;) }))) }))) (goto_statement "goto LAB_00020a58;" goto statement_identifier ;) })) (expression_statement "puVar7 = *(undefined1 **)(iVar2 + 0x14);" (assignment_expression "puVar7 = *(undefined1 **)(iVar2 + 0x14)" identifier = (pointer_expression "*(undefined1 **)(iVar2 + 0x14)" * (cast_expression "(undefined1 **)(iVar2 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (puVar7 < *(undefined1 **)(iVar2 + 0x18)) {\n            *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n            *puVar7 = 0xd;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n          }" if (parenthesized_expression "(puVar7 < *(undefined1 **)(iVar2 + 0x18))" ( (binary_expression "puVar7 < *(undefined1 **)(iVar2 + 0x18)" identifier < (pointer_expression "*(undefined1 **)(iVar2 + 0x18)" * (cast_expression "(undefined1 **)(iVar2 + 0x18)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n            *(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;\n            *puVar7 = 0xd;\n          }" { (expression_statement "*(undefined1 **)(iVar2 + 0x14) = puVar7 + 1;" (assignment_expression "*(undefined1 **)(iVar2 + 0x14) = puVar7 + 1" (pointer_expression "*(undefined1 **)(iVar2 + 0x14)" * (cast_expression "(undefined1 **)(iVar2 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) = (binary_expression "puVar7 + 1" identifier + number_literal)) ;) (expression_statement "*puVar7 = 0xd;" (assignment_expression "*puVar7 = 0xd" (pointer_expression "*puVar7" * identifier) = number_literal) ;) }) (else_clause "else {\n            (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n          }" else (compound_statement "{\n            (**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);\n          }" { (expression_statement "(**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3);" (call_expression "(**(code **)(puVar17 + 0x3cbd8))(iVar2,uVar3)" (parenthesized_expression "(**(code **)(puVar17 + 0x3cbd8))" ( (pointer_expression "**(code **)(puVar17 + 0x3cbd8)" * (pointer_expression "*(code **)(puVar17 + 0x3cbd8)" * (cast_expression "(code **)(puVar17 + 0x3cbd8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar17 + 0x3cbd8)" ( (binary_expression "puVar17 + 0x3cbd8" identifier + number_literal) ))))) )) (argument_list "(iVar2,uVar3)" ( identifier , identifier ))) ;) }))) (if_statement "if (in_a2 == 0) {\n            uVar16 = 0;\n            goto LAB_00020a58;\n          }" if (parenthesized_expression "(in_a2 == 0)" ( (binary_expression "in_a2 == 0" identifier == number_literal) )) (compound_statement "{\n            uVar16 = 0;\n            goto LAB_00020a58;\n          }" { (expression_statement "uVar16 = 0;" (assignment_expression "uVar16 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00020a58;" goto statement_identifier ;) })) (if_statement "if (in_a1 <= psVar10) {\n            return;\n          }" if (parenthesized_expression "(in_a1 <= psVar10)" ( (binary_expression "in_a1 <= psVar10" identifier <= identifier) )) (compound_statement "{\n            return;\n          }" { (return_statement "return;" return ;) })) (if_statement "if (*(char *)psVar10->__val == '\n') {\n            uVar16 = 0;\n          }\n          else {\n            (**(code **)(puVar17 + 0x3cbb0))(iVar2,1,in_a2,in_a3);\n            uVar16 = 0;\n          }" if (parenthesized_expression "(*(char *)psVar10->__val == '\n')" ( (binary_expression "*(char *)psVar10->__val == '\n'" (pointer_expression "*(char *)psVar10->__val" * (cast_expression "(char *)psVar10->__val" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "psVar10->__val" identifier -> field_identifier))) == (char_literal "'\n'" ' escape_sequence ')) )) (compound_statement "{\n            uVar16 = 0;\n          }" { (expression_statement "uVar16 = 0;" (assignment_expression "uVar16 = 0" identifier = number_literal) ;) }) (else_clause "else {\n            (**(code **)(puVar17 + 0x3cbb0))(iVar2,1,in_a2,in_a3);\n            uVar16 = 0;\n          }" else (compound_statement "{\n            (**(code **)(puVar17 + 0x3cbb0))(iVar2,1,in_a2,in_a3);\n            uVar16 = 0;\n          }" { (expression_statement "(**(code **)(puVar17 + 0x3cbb0))(iVar2,1,in_a2,in_a3);" (call_expression "(**(code **)(puVar17 + 0x3cbb0))(iVar2,1,in_a2,in_a3)" (parenthesized_expression "(**(code **)(puVar17 + 0x3cbb0))" ( (pointer_expression "**(code **)(puVar17 + 0x3cbb0)" * (pointer_expression "*(code **)(puVar17 + 0x3cbb0)" * (cast_expression "(code **)(puVar17 + 0x3cbb0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar17 + 0x3cbb0)" ( (binary_expression "puVar17 + 0x3cbb0" identifier + number_literal) ))))) )) (argument_list "(iVar2,1,in_a2,in_a3)" ( identifier , number_literal , identifier , identifier ))) ;) (expression_statement "uVar16 = 0;" (assignment_expression "uVar16 = 0" identifier = number_literal) ;) }))) }))) (expression_statement "iVar15 = iVar15 + 1;" (assignment_expression "iVar15 = iVar15 + 1" identifier = (binary_expression "iVar15 + 1" identifier + number_literal)) ;) (expression_statement "psVar8 = psVar10;" (assignment_expression "psVar8 = psVar10" identifier = identifier) ;) (if_statement "if (iVar15 == 0x400) {\n          (*(code *)(iVar4 + 0x77c))();\n          iVar15 = 0;\n        }" if (parenthesized_expression "(iVar15 == 0x400)" ( (binary_expression "iVar15 == 0x400" identifier == number_literal) )) (compound_statement "{\n          (*(code *)(iVar4 + 0x77c))();\n          iVar15 = 0;\n        }" { (expression_statement "(*(code *)(iVar4 + 0x77c))();" (call_expression "(*(code *)(iVar4 + 0x77c))()" (parenthesized_expression "(*(code *)(iVar4 + 0x77c))" ( (pointer_expression "*(code *)(iVar4 + 0x77c)" * (cast_expression "(code *)(iVar4 + 0x77c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x77c)" ( (binary_expression "iVar4 + 0x77c" identifier + number_literal) )))) )) (argument_list "()" ( ))) ;) (expression_statement "iVar15 = 0;" (assignment_expression "iVar15 = 0" identifier = number_literal) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })) }))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0002077c(undefined4 param_1,byte *param_2,int param_3,undefined4 param_4)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  int *piVar4;\n  undefined1 *puVar5;\n  byte *pbVar6;\n  undefined4 uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  undefined *puVar10;\n  int iVar11;\n  int iVar12;\n  undefined4 *puVar13;\n  int iVar14;\n  uint uVar15;\n  undefined *puVar16;\n  byte abStack_9c [128];\n  int local_1c;\n  \n  puVar16 = PTR_DAT_0005d118;\n  local_1c = *(int *)PTR___stack_chk_guard_0005d5c0;\n  puVar10 = PTR_DAT_0005d118 + -0x27c0;\n  while ((pbVar6 = (byte *)0x3, *(int *)(puVar16 + -0x27c4) != 0 ||\n         (*(int *)(puVar16 + -0x27c8) != 0))) {\n    set_color_context();\n    (*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0);\n    (*(code *)PTR_sigprocmask_0005d5e0)(1,puVar10,abStack_9c);\n    uVar7 = *(undefined4 *)(puVar16 + -0x27c4);\n    if (*(int *)(puVar16 + -0x27c8) == 0) {\n      (*(code *)PTR_signal_0005d5a4)(uVar7,0);\n    }\n    else {\n      *(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;\n      uVar7 = 0x17;\n    }\n    (*(code *)PTR_raise_0005d614)(uVar7);\n    param_3 = 0;\n    param_2 = abStack_9c;\n    (*(code *)PTR_sigprocmask_0005d5e0)(3);\n  }\n  if (local_1c == *(int *)PTR___stack_chk_guard_0005d5c0) {\n    return;\n  }\n  puVar16 = PTR___stack_chk_fail_0005d598;\n  (*(code *)PTR___stack_chk_fail_0005d598)();\n  if (**(char **)(puVar16 + 0x3c988) == '\0') {\n    uVar9 = (int)param_2 - (int)pbVar6;\n    if (uVar9 != 0) {\n      puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4);\n      iVar11 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        uVar15 = 0x400;\n        if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }\n        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);\n        pbVar6 = pbVar6 + uVar2;\n        if (uVar2 < uVar15) {\n          return;\n        }\n        uVar9 = uVar9 - uVar2;\n        (*(code *)(iVar11 + 0x77c))();\n      } while (uVar9 != 0);\n    }\n  }\n  else {\n    iVar11 = **(int **)(puVar16 + 0x3c8d4);\n    uVar9 = **(uint **)(puVar16 + 0x3c9c0);\n    uVar15 = 0;\n    if (pbVar6 < param_2) {\n      iVar14 = 1;\n      iVar3 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      } while( true );\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_0002077c(undefined4 param_1,byte *param_2,int param_3,undefined4 param_4)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  int *piVar4;\n  undefined1 *puVar5;\n  byte *pbVar6;\n  undefined4 uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  undefined *puVar10;\n  int iVar11;\n  int iVar12;\n  undefined4 *puVar13;\n  int iVar14;\n  uint uVar15;\n  undefined *puVar16;\n  byte abStack_9c [128];\n  int local_1c;\n  \n  puVar16 = PTR_DAT_0005d118;\n  local_1c = *(int *)PTR___stack_chk_guard_0005d5c0;\n  puVar10 = PTR_DAT_0005d118 + -0x27c0;\n  while ((pbVar6 = (byte *)0x3, *(int *)(puVar16 + -0x27c4) != 0 ||\n         (*(int *)(puVar16 + -0x27c8) != 0))) {\n    set_color_context();\n    (*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0);\n    (*(code *)PTR_sigprocmask_0005d5e0)(1,puVar10,abStack_9c);\n    uVar7 = *(undefined4 *)(puVar16 + -0x27c4);\n    if (*(int *)(puVar16 + -0x27c8) == 0) {\n      (*(code *)PTR_signal_0005d5a4)(uVar7,0);\n    }\n    else {\n      *(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;\n      uVar7 = 0x17;\n    }\n    (*(code *)PTR_raise_0005d614)(uVar7);\n    param_3 = 0;\n    param_2 = abStack_9c;\n    (*(code *)PTR_sigprocmask_0005d5e0)(3);\n  }\n  if (local_1c == *(int *)PTR___stack_chk_guard_0005d5c0) {\n    return;\n  }\n  puVar16 = PTR___stack_chk_fail_0005d598;\n  (*(code *)PTR___stack_chk_fail_0005d598)();\n  if (**(char **)(puVar16 + 0x3c988) == '\0') {\n    uVar9 = (int)param_2 - (int)pbVar6;\n    if (uVar9 != 0) {\n      puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4);\n      iVar11 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        uVar15 = 0x400;\n        if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }\n        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);\n        pbVar6 = pbVar6 + uVar2;\n        if (uVar2 < uVar15) {\n          return;\n        }\n        uVar9 = uVar9 - uVar2;\n        (*(code *)(iVar11 + 0x77c))();\n      } while (uVar9 != 0);\n    }\n  }\n  else {\n    iVar11 = **(int **)(puVar16 + 0x3c8d4);\n    uVar9 = **(uint **)(puVar16 + 0x3c9c0);\n    uVar15 = 0;\n    if (pbVar6 < param_2) {\n      iVar14 = 1;\n      iVar3 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      } while( true );\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0002077c(undefined4 param_1,byte *param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,byte *param_2,int param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  int *piVar4;\n  undefined1 *puVar5;\n  byte *pbVar6;\n  undefined4 uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  undefined *puVar10;\n  int iVar11;\n  int iVar12;\n  undefined4 *puVar13;\n  int iVar14;\n  uint uVar15;\n  undefined *puVar16;\n  byte abStack_9c [128];\n  int local_1c;\n  \n  puVar16 = PTR_DAT_0005d118;\n  local_1c = *(int *)PTR___stack_chk_guard_0005d5c0;\n  puVar10 = PTR_DAT_0005d118 + -0x27c0;\n  while ((pbVar6 = (byte *)0x3, *(int *)(puVar16 + -0x27c4) != 0 ||\n         (*(int *)(puVar16 + -0x27c8) != 0))) {\n    set_color_context();\n    (*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0);\n    (*(code *)PTR_sigprocmask_0005d5e0)(1,puVar10,abStack_9c);\n    uVar7 = *(undefined4 *)(puVar16 + -0x27c4);\n    if (*(int *)(puVar16 + -0x27c8) == 0) {\n      (*(code *)PTR_signal_0005d5a4)(uVar7,0);\n    }\n    else {\n      *(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;\n      uVar7 = 0x17;\n    }\n    (*(code *)PTR_raise_0005d614)(uVar7);\n    param_3 = 0;\n    param_2 = abStack_9c;\n    (*(code *)PTR_sigprocmask_0005d5e0)(3);\n  }\n  if (local_1c == *(int *)PTR___stack_chk_guard_0005d5c0) {\n    return;\n  }\n  puVar16 = PTR___stack_chk_fail_0005d598;\n  (*(code *)PTR___stack_chk_fail_0005d598)();\n  if (**(char **)(puVar16 + 0x3c988) == '\0') {\n    uVar9 = (int)param_2 - (int)pbVar6;\n    if (uVar9 != 0) {\n      puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4);\n      iVar11 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        uVar15 = 0x400;\n        if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }\n        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);\n        pbVar6 = pbVar6 + uVar2;\n        if (uVar2 < uVar15) {\n          return;\n        }\n        uVar9 = uVar9 - uVar2;\n        (*(code *)(iVar11 + 0x77c))();\n      } while (uVar9 != 0);\n    }\n  }\n  else {\n    iVar11 = **(int **)(puVar16 + 0x3c8d4);\n    uVar9 = **(uint **)(puVar16 + 0x3c9c0);\n    uVar15 = 0;\n    if (pbVar6 < param_2) {\n      iVar14 = 1;\n      iVar3 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      } while( true );\n    }\n  }\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "undefined4 *puVar13;" type_identifier (pointer_declarator "*puVar13" * identifier) ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "uint uVar15;" type_identifier identifier ;) (declaration "undefined *puVar16;" type_identifier (pointer_declarator "*puVar16" * identifier) ;) (declaration "byte abStack_9c [128];" type_identifier (array_declarator "abStack_9c [128]" identifier [ number_literal ]) ;) (declaration "int local_1c;" primitive_type identifier ;) (expression_statement "puVar16 = PTR_DAT_0005d118;" (assignment_expression "puVar16 = PTR_DAT_0005d118" identifier = identifier) ;) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_0005d5c0;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_0005d5c0" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0005d5c0" * (cast_expression "(int *)PTR___stack_chk_guard_0005d5c0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar10 = PTR_DAT_0005d118 + -0x27c0;" (assignment_expression "puVar10 = PTR_DAT_0005d118 + -0x27c0" identifier = (binary_expression "PTR_DAT_0005d118 + -0x27c0" identifier + number_literal)) ;) (while_statement "while ((pbVar6 = (byte *)0x3, *(int *)(puVar16 + -0x27c4) != 0 ||\n         (*(int *)(puVar16 + -0x27c8) != 0))) {\n    set_color_context();\n    (*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0);\n    (*(code *)PTR_sigprocmask_0005d5e0)(1,puVar10,abStack_9c);\n    uVar7 = *(undefined4 *)(puVar16 + -0x27c4);\n    if (*(int *)(puVar16 + -0x27c8) == 0) {\n      (*(code *)PTR_signal_0005d5a4)(uVar7,0);\n    }\n    else {\n      *(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;\n      uVar7 = 0x17;\n    }\n    (*(code *)PTR_raise_0005d614)(uVar7);\n    param_3 = 0;\n    param_2 = abStack_9c;\n    (*(code *)PTR_sigprocmask_0005d5e0)(3);\n  }" while (parenthesized_expression "((pbVar6 = (byte *)0x3, *(int *)(puVar16 + -0x27c4) != 0 ||\n         (*(int *)(puVar16 + -0x27c8) != 0)))" ( (parenthesized_expression "(pbVar6 = (byte *)0x3, *(int *)(puVar16 + -0x27c4) != 0 ||\n         (*(int *)(puVar16 + -0x27c8) != 0))" ( (comma_expression "pbVar6 = (byte *)0x3, *(int *)(puVar16 + -0x27c4) != 0 ||\n         (*(int *)(puVar16 + -0x27c8) != 0)" (assignment_expression "pbVar6 = (byte *)0x3" identifier = (cast_expression "(byte *)0x3" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) , (binary_expression "*(int *)(puVar16 + -0x27c4) != 0 ||\n         (*(int *)(puVar16 + -0x27c8) != 0)" (binary_expression "*(int *)(puVar16 + -0x27c4) != 0" (pointer_expression "*(int *)(puVar16 + -0x27c4)" * (cast_expression "(int *)(puVar16 + -0x27c4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar16 + -0x27c4)" ( (binary_expression "puVar16 + -0x27c4" identifier + number_literal) )))) != number_literal) || (parenthesized_expression "(*(int *)(puVar16 + -0x27c8) != 0)" ( (binary_expression "*(int *)(puVar16 + -0x27c8) != 0" (pointer_expression "*(int *)(puVar16 + -0x27c8)" * (cast_expression "(int *)(puVar16 + -0x27c8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar16 + -0x27c8)" ( (binary_expression "puVar16 + -0x27c8" identifier + number_literal) )))) != number_literal) )))) )) )) (compound_statement "{\n    set_color_context();\n    (*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0);\n    (*(code *)PTR_sigprocmask_0005d5e0)(1,puVar10,abStack_9c);\n    uVar7 = *(undefined4 *)(puVar16 + -0x27c4);\n    if (*(int *)(puVar16 + -0x27c8) == 0) {\n      (*(code *)PTR_signal_0005d5a4)(uVar7,0);\n    }\n    else {\n      *(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;\n      uVar7 = 0x17;\n    }\n    (*(code *)PTR_raise_0005d614)(uVar7);\n    param_3 = 0;\n    param_2 = abStack_9c;\n    (*(code *)PTR_sigprocmask_0005d5e0)(3);\n  }" { (expression_statement "set_color_context();" (call_expression "set_color_context()" identifier (argument_list "()" ( ))) ;) (expression_statement "(*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0);" (call_expression "(*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0)" (parenthesized_expression "(*(code *)PTR_fflush_unlocked_0005d58c)" ( (pointer_expression "*(code *)PTR_fflush_unlocked_0005d58c" * (cast_expression "(code *)PTR_fflush_unlocked_0005d58c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_stdout_0005d4d0)" ( (pointer_expression "*(undefined4 *)PTR_stdout_0005d4d0" * (cast_expression "(undefined4 *)PTR_stdout_0005d4d0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "(*(code *)PTR_sigprocmask_0005d5e0)(1,puVar10,abStack_9c);" (call_expression "(*(code *)PTR_sigprocmask_0005d5e0)(1,puVar10,abStack_9c)" (parenthesized_expression "(*(code *)PTR_sigprocmask_0005d5e0)" ( (pointer_expression "*(code *)PTR_sigprocmask_0005d5e0" * (cast_expression "(code *)PTR_sigprocmask_0005d5e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,puVar10,abStack_9c)" ( number_literal , identifier , identifier ))) ;) (expression_statement "uVar7 = *(undefined4 *)(puVar16 + -0x27c4);" (assignment_expression "uVar7 = *(undefined4 *)(puVar16 + -0x27c4)" identifier = (pointer_expression "*(undefined4 *)(puVar16 + -0x27c4)" * (cast_expression "(undefined4 *)(puVar16 + -0x27c4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar16 + -0x27c4)" ( (binary_expression "puVar16 + -0x27c4" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(puVar16 + -0x27c8) == 0) {\n      (*(code *)PTR_signal_0005d5a4)(uVar7,0);\n    }\n    else {\n      *(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;\n      uVar7 = 0x17;\n    }" if (parenthesized_expression "(*(int *)(puVar16 + -0x27c8) == 0)" ( (binary_expression "*(int *)(puVar16 + -0x27c8) == 0" (pointer_expression "*(int *)(puVar16 + -0x27c8)" * (cast_expression "(int *)(puVar16 + -0x27c8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar16 + -0x27c8)" ( (binary_expression "puVar16 + -0x27c8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      (*(code *)PTR_signal_0005d5a4)(uVar7,0);\n    }" { (expression_statement "(*(code *)PTR_signal_0005d5a4)(uVar7,0);" (call_expression "(*(code *)PTR_signal_0005d5a4)(uVar7,0)" (parenthesized_expression "(*(code *)PTR_signal_0005d5a4)" ( (pointer_expression "*(code *)PTR_signal_0005d5a4" * (cast_expression "(code *)PTR_signal_0005d5a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar7,0)" ( identifier , number_literal ))) ;) }) (else_clause "else {\n      *(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;\n      uVar7 = 0x17;\n    }" else (compound_statement "{\n      *(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;\n      uVar7 = 0x17;\n    }" { (expression_statement "*(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;" (assignment_expression "*(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1" (pointer_expression "*(int *)(puVar16 + -0x27c8)" * (cast_expression "(int *)(puVar16 + -0x27c8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar16 + -0x27c8)" ( (binary_expression "puVar16 + -0x27c8" identifier + number_literal) )))) = (binary_expression "*(int *)(puVar16 + -0x27c8) + -1" (pointer_expression "*(int *)(puVar16 + -0x27c8)" * (cast_expression "(int *)(puVar16 + -0x27c8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar16 + -0x27c8)" ( (binary_expression "puVar16 + -0x27c8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "uVar7 = 0x17;" (assignment_expression "uVar7 = 0x17" identifier = number_literal) ;) }))) (expression_statement "(*(code *)PTR_raise_0005d614)(uVar7);" (call_expression "(*(code *)PTR_raise_0005d614)(uVar7)" (parenthesized_expression "(*(code *)PTR_raise_0005d614)" ( (pointer_expression "*(code *)PTR_raise_0005d614" * (cast_expression "(code *)PTR_raise_0005d614" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar7)" ( identifier ))) ;) (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" identifier = number_literal) ;) (expression_statement "param_2 = abStack_9c;" (assignment_expression "param_2 = abStack_9c" identifier = identifier) ;) (expression_statement "(*(code *)PTR_sigprocmask_0005d5e0)(3);" (call_expression "(*(code *)PTR_sigprocmask_0005d5e0)(3)" (parenthesized_expression "(*(code *)PTR_sigprocmask_0005d5e0)" ( (pointer_expression "*(code *)PTR_sigprocmask_0005d5e0" * (cast_expression "(code *)PTR_sigprocmask_0005d5e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3)" ( number_literal ))) ;) })) (if_statement "if (local_1c == *(int *)PTR___stack_chk_guard_0005d5c0) {\n    return;\n  }" if (parenthesized_expression "(local_1c == *(int *)PTR___stack_chk_guard_0005d5c0)" ( (binary_expression "local_1c == *(int *)PTR___stack_chk_guard_0005d5c0" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_0005d5c0" * (cast_expression "(int *)PTR___stack_chk_guard_0005d5c0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar16 = PTR___stack_chk_fail_0005d598;" (assignment_expression "puVar16 = PTR___stack_chk_fail_0005d598" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0005d598)();" (call_expression "(*(code *)PTR___stack_chk_fail_0005d598)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0005d598)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0005d598" * (cast_expression "(code *)PTR___stack_chk_fail_0005d598" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (**(char **)(puVar16 + 0x3c988) == '\0') {\n    uVar9 = (int)param_2 - (int)pbVar6;\n    if (uVar9 != 0) {\n      puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4);\n      iVar11 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        uVar15 = 0x400;\n        if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }\n        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);\n        pbVar6 = pbVar6 + uVar2;\n        if (uVar2 < uVar15) {\n          return;\n        }\n        uVar9 = uVar9 - uVar2;\n        (*(code *)(iVar11 + 0x77c))();\n      } while (uVar9 != 0);\n    }\n  }\n  else {\n    iVar11 = **(int **)(puVar16 + 0x3c8d4);\n    uVar9 = **(uint **)(puVar16 + 0x3c9c0);\n    uVar15 = 0;\n    if (pbVar6 < param_2) {\n      iVar14 = 1;\n      iVar3 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      } while( true );\n    }\n  }" if (parenthesized_expression "(**(char **)(puVar16 + 0x3c988) == '\0')" ( (binary_expression "**(char **)(puVar16 + 0x3c988) == '\0'" (pointer_expression "**(char **)(puVar16 + 0x3c988)" * (pointer_expression "*(char **)(puVar16 + 0x3c988)" * (cast_expression "(char **)(puVar16 + 0x3c988)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar16 + 0x3c988)" ( (binary_expression "puVar16 + 0x3c988" identifier + number_literal) ))))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar9 = (int)param_2 - (int)pbVar6;\n    if (uVar9 != 0) {\n      puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4);\n      iVar11 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        uVar15 = 0x400;\n        if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }\n        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);\n        pbVar6 = pbVar6 + uVar2;\n        if (uVar2 < uVar15) {\n          return;\n        }\n        uVar9 = uVar9 - uVar2;\n        (*(code *)(iVar11 + 0x77c))();\n      } while (uVar9 != 0);\n    }\n  }" { (expression_statement "uVar9 = (int)param_2 - (int)pbVar6;" (assignment_expression "uVar9 = (int)param_2 - (int)pbVar6" identifier = (binary_expression "(int)param_2 - (int)pbVar6" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar6" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (uVar9 != 0) {\n      puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4);\n      iVar11 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        uVar15 = 0x400;\n        if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }\n        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);\n        pbVar6 = pbVar6 + uVar2;\n        if (uVar2 < uVar15) {\n          return;\n        }\n        uVar9 = uVar9 - uVar2;\n        (*(code *)(iVar11 + 0x77c))();\n      } while (uVar9 != 0);\n    }" if (parenthesized_expression "(uVar9 != 0)" ( (binary_expression "uVar9 != 0" identifier != number_literal) )) (compound_statement "{\n      puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4);\n      iVar11 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        uVar15 = 0x400;\n        if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }\n        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);\n        pbVar6 = pbVar6 + uVar2;\n        if (uVar2 < uVar15) {\n          return;\n        }\n        uVar9 = uVar9 - uVar2;\n        (*(code *)(iVar11 + 0x77c))();\n      } while (uVar9 != 0);\n    }" { (expression_statement "puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4);" (assignment_expression "puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4)" identifier = (pointer_expression "*(undefined4 **)(puVar16 + 0x3c8d4)" * (cast_expression "(undefined4 **)(puVar16 + 0x3c8d4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar16 + 0x3c8d4)" ( (binary_expression "puVar16 + 0x3c8d4" identifier + number_literal) ))))) ;) (expression_statement "iVar11 = *(int *)(puVar16 + 0x3c9f0);" (assignment_expression "iVar11 = *(int *)(puVar16 + 0x3c9f0)" identifier = (pointer_expression "*(int *)(puVar16 + 0x3c9f0)" * (cast_expression "(int *)(puVar16 + 0x3c9f0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar16 + 0x3c9f0)" ( (binary_expression "puVar16 + 0x3c9f0" identifier + number_literal) ))))) ;) (do_statement "do {\n        uVar15 = 0x400;\n        if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }\n        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);\n        pbVar6 = pbVar6 + uVar2;\n        if (uVar2 < uVar15) {\n          return;\n        }\n        uVar9 = uVar9 - uVar2;\n        (*(code *)(iVar11 + 0x77c))();\n      } while (uVar9 != 0);" do (compound_statement "{\n        uVar15 = 0x400;\n        if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }\n        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);\n        pbVar6 = pbVar6 + uVar2;\n        if (uVar2 < uVar15) {\n          return;\n        }\n        uVar9 = uVar9 - uVar2;\n        (*(code *)(iVar11 + 0x77c))();\n      }" { (expression_statement "uVar15 = 0x400;" (assignment_expression "uVar15 = 0x400" identifier = number_literal) ;) (if_statement "if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }" if (parenthesized_expression "(uVar9 < 0x401)" ( (binary_expression "uVar9 < 0x401" identifier < number_literal) )) (compound_statement "{\n          uVar15 = uVar9;\n        }" { (expression_statement "uVar15 = uVar9;" (assignment_expression "uVar15 = uVar9" identifier = identifier) ;) })) (expression_statement "uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);" (assignment_expression "uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13)" identifier = (call_expression "(**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13)" (parenthesized_expression "(**(code **)(puVar16 + 0x3cce0))" ( (pointer_expression "**(code **)(puVar16 + 0x3cce0)" * (pointer_expression "*(code **)(puVar16 + 0x3cce0)" * (cast_expression "(code **)(puVar16 + 0x3cce0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar16 + 0x3cce0)" ( (binary_expression "puVar16 + 0x3cce0" identifier + number_literal) ))))) )) (argument_list "(pbVar6,1,uVar15,*puVar13)" ( identifier , number_literal , identifier , (pointer_expression "*puVar13" * identifier) )))) ;) (expression_statement "pbVar6 = pbVar6 + uVar2;" (assignment_expression "pbVar6 = pbVar6 + uVar2" identifier = (binary_expression "pbVar6 + uVar2" identifier + identifier)) ;) (if_statement "if (uVar2 < uVar15) {\n          return;\n        }" if (parenthesized_expression "(uVar2 < uVar15)" ( (binary_expression "uVar2 < uVar15" identifier < identifier) )) (compound_statement "{\n          return;\n        }" { (return_statement "return;" return ;) })) (expression_statement "uVar9 = uVar9 - uVar2;" (assignment_expression "uVar9 = uVar9 - uVar2" identifier = (binary_expression "uVar9 - uVar2" identifier - identifier)) ;) (expression_statement "(*(code *)(iVar11 + 0x77c))();" (call_expression "(*(code *)(iVar11 + 0x77c))()" (parenthesized_expression "(*(code *)(iVar11 + 0x77c))" ( (pointer_expression "*(code *)(iVar11 + 0x77c)" * (cast_expression "(code *)(iVar11 + 0x77c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x77c)" ( (binary_expression "iVar11 + 0x77c" identifier + number_literal) )))) )) (argument_list "()" ( ))) ;) }) while (parenthesized_expression "(uVar9 != 0)" ( (binary_expression "uVar9 != 0" identifier != number_literal) )) ;) })) }) (else_clause "else {\n    iVar11 = **(int **)(puVar16 + 0x3c8d4);\n    uVar9 = **(uint **)(puVar16 + 0x3c9c0);\n    uVar15 = 0;\n    if (pbVar6 < param_2) {\n      iVar14 = 1;\n      iVar3 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      } while( true );\n    }\n  }" else (compound_statement "{\n    iVar11 = **(int **)(puVar16 + 0x3c8d4);\n    uVar9 = **(uint **)(puVar16 + 0x3c9c0);\n    uVar15 = 0;\n    if (pbVar6 < param_2) {\n      iVar14 = 1;\n      iVar3 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      } while( true );\n    }\n  }" { (expression_statement "iVar11 = **(int **)(puVar16 + 0x3c8d4);" (assignment_expression "iVar11 = **(int **)(puVar16 + 0x3c8d4)" identifier = (pointer_expression "**(int **)(puVar16 + 0x3c8d4)" * (pointer_expression "*(int **)(puVar16 + 0x3c8d4)" * (cast_expression "(int **)(puVar16 + 0x3c8d4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar16 + 0x3c8d4)" ( (binary_expression "puVar16 + 0x3c8d4" identifier + number_literal) )))))) ;) (expression_statement "uVar9 = **(uint **)(puVar16 + 0x3c9c0);" (assignment_expression "uVar9 = **(uint **)(puVar16 + 0x3c9c0)" identifier = (pointer_expression "**(uint **)(puVar16 + 0x3c9c0)" * (pointer_expression "*(uint **)(puVar16 + 0x3c9c0)" * (cast_expression "(uint **)(puVar16 + 0x3c9c0)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar16 + 0x3c9c0)" ( (binary_expression "puVar16 + 0x3c9c0" identifier + number_literal) )))))) ;) (expression_statement "uVar15 = 0;" (assignment_expression "uVar15 = 0" identifier = number_literal) ;) (if_statement "if (pbVar6 < param_2) {\n      iVar14 = 1;\n      iVar3 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      } while( true );\n    }" if (parenthesized_expression "(pbVar6 < param_2)" ( (binary_expression "pbVar6 < param_2" identifier < identifier) )) (compound_statement "{\n      iVar14 = 1;\n      iVar3 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      } while( true );\n    }" { (expression_statement "iVar14 = 1;" (assignment_expression "iVar14 = 1" identifier = number_literal) ;) (expression_statement "iVar3 = *(int *)(puVar16 + 0x3c9f0);" (assignment_expression "iVar3 = *(int *)(puVar16 + 0x3c9f0)" identifier = (pointer_expression "*(int *)(puVar16 + 0x3c9f0)" * (cast_expression "(int *)(puVar16 + 0x3c9f0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar16 + 0x3c9f0)" ( (binary_expression "puVar16 + 0x3c9f0" identifier + number_literal) ))))) ;) (do_statement "do {\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      } while( true );" do (compound_statement "{\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      }" { (expression_statement "pbVar8 = pbVar6 + 1;" (assignment_expression "pbVar8 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = *pbVar6;" (assignment_expression "bVar1 = *pbVar6" identifier = (pointer_expression "*pbVar6" * identifier)) ;) (expression_statement "uVar2 = (uint)bVar1;" (assignment_expression "uVar2 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }" if (parenthesized_expression "(bVar1 == 9)" ( (binary_expression "bVar1 == 9" identifier == number_literal) )) (compound_statement "{\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }" { (if_statement "if (uVar9 == 0) {\n            trap(7);\n          }" if (parenthesized_expression "(uVar9 == 0)" ( (binary_expression "uVar9 == 0" identifier == number_literal) )) (compound_statement "{\n            trap(7);\n          }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "iVar12 = uVar9 - uVar15 % uVar9;" (assignment_expression "iVar12 = uVar9 - uVar15 % uVar9" identifier = (binary_expression "uVar9 - uVar15 % uVar9" identifier - (binary_expression "uVar15 % uVar9" identifier % identifier))) ;) (expression_statement "uVar15 = uVar15 + iVar12;" (assignment_expression "uVar15 = uVar15 + iVar12" identifier = (binary_expression "uVar15 + iVar12" identifier + identifier)) ;) (do_statement "do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);" do (compound_statement "{\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          }" { (expression_statement "puVar5 = *(undefined1 **)(iVar11 + 0x14);" (assignment_expression "puVar5 = *(undefined1 **)(iVar11 + 0x14)" identifier = (pointer_expression "*(undefined1 **)(iVar11 + 0x14)" * (cast_expression "(undefined1 **)(iVar11 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + 0x14)" ( (binary_expression "iVar11 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }" if (parenthesized_expression "(puVar5 < *(undefined1 **)(iVar11 + 0x18))" ( (binary_expression "puVar5 < *(undefined1 **)(iVar11 + 0x18)" identifier < (pointer_expression "*(undefined1 **)(iVar11 + 0x18)" * (cast_expression "(undefined1 **)(iVar11 + 0x18)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + 0x18)" ( (binary_expression "iVar11 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }" { (expression_statement "*(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;" (assignment_expression "*(undefined1 **)(iVar11 + 0x14) = puVar5 + 1" (pointer_expression "*(undefined1 **)(iVar11 + 0x14)" * (cast_expression "(undefined1 **)(iVar11 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + 0x14)" ( (binary_expression "iVar11 + 0x14" identifier + number_literal) )))) = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "*puVar5 = 0x20;" (assignment_expression "*puVar5 = 0x20" (pointer_expression "*puVar5" * identifier) = number_literal) ;) }) (else_clause "else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }" else (compound_statement "{\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }" { (expression_statement "(**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);" (call_expression "(**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20)" (parenthesized_expression "(**(code **)(puVar16 + 0x3cbd8))" ( (pointer_expression "**(code **)(puVar16 + 0x3cbd8)" * (pointer_expression "*(code **)(puVar16 + 0x3cbd8)" * (cast_expression "(code **)(puVar16 + 0x3cbd8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar16 + 0x3cbd8)" ( (binary_expression "puVar16 + 0x3cbd8" identifier + number_literal) ))))) )) (argument_list "(iVar11,0x20)" ( identifier , number_literal ))) ;) }))) (expression_statement "iVar12 = iVar12 + -1;" (assignment_expression "iVar12 = iVar12 + -1" identifier = (binary_expression "iVar12 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar12 != 0)" ( (binary_expression "iVar12 != 0" identifier != number_literal) )) ;) (labeled_statement "LAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }" statement_identifier : (if_statement "if (param_2 <= pbVar8) {\n            return;\n          }" if (parenthesized_expression "(param_2 <= pbVar8)" ( (binary_expression "param_2 <= pbVar8" identifier <= identifier) )) (compound_statement "{\n            return;\n          }" { (return_statement "return;" return ;) }))) }) (else_clause "else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }" else (compound_statement "{\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }" { (if_statement "if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }" if (parenthesized_expression "(bVar1 != 0xd)" ( (binary_expression "bVar1 != 0xd" identifier != number_literal) )) (compound_statement "{\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }" { (if_statement "if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }" if (parenthesized_expression "(bVar1 == 8)" ( (binary_expression "bVar1 == 8" identifier == number_literal) )) (compound_statement "{\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }" { (if_statement "if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }" if (parenthesized_expression "(uVar15 != 0)" ( (binary_expression "uVar15 != 0" identifier != number_literal) )) (compound_statement "{\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }" { (expression_statement "puVar5 = *(undefined1 **)(iVar11 + 0x14);" (assignment_expression "puVar5 = *(undefined1 **)(iVar11 + 0x14)" identifier = (pointer_expression "*(undefined1 **)(iVar11 + 0x14)" * (cast_expression "(undefined1 **)(iVar11 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + 0x14)" ( (binary_expression "iVar11 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar15 = uVar15 - 1;" (assignment_expression "uVar15 = uVar15 - 1" identifier = (binary_expression "uVar15 - 1" identifier - number_literal)) ;) (if_statement "if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }" if (parenthesized_expression "(puVar5 < *(undefined1 **)(iVar11 + 0x18))" ( (binary_expression "puVar5 < *(undefined1 **)(iVar11 + 0x18)" identifier < (pointer_expression "*(undefined1 **)(iVar11 + 0x18)" * (cast_expression "(undefined1 **)(iVar11 + 0x18)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + 0x18)" ( (binary_expression "iVar11 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }" { (expression_statement "*(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;" (assignment_expression "*(undefined1 **)(iVar11 + 0x14) = puVar5 + 1" (pointer_expression "*(undefined1 **)(iVar11 + 0x14)" * (cast_expression "(undefined1 **)(iVar11 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + 0x14)" ( (binary_expression "iVar11 + 0x14" identifier + number_literal) )))) = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "*puVar5 = 8;" (assignment_expression "*puVar5 = 8" (pointer_expression "*puVar5" * identifier) = number_literal) ;) }) (else_clause "else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }" else (compound_statement "{\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }" { (expression_statement "(**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);" (call_expression "(**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2)" (parenthesized_expression "(**(code **)(puVar16 + 0x3cbd8))" ( (pointer_expression "**(code **)(puVar16 + 0x3cbd8)" * (pointer_expression "*(code **)(puVar16 + 0x3cbd8)" * (cast_expression "(code **)(puVar16 + 0x3cbd8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar16 + 0x3cbd8)" ( (binary_expression "puVar16 + 0x3cbd8" identifier + number_literal) ))))) )) (argument_list "(iVar11,uVar2)" ( identifier , identifier ))) ;) }))) })) }) (else_clause "else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }" else (compound_statement "{\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }" { (expression_statement "piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();" (assignment_expression "piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))()" identifier = (cast_expression "(int *)(**(code **)(puVar16 + 0x3cb74))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar16 + 0x3cb74))()" (parenthesized_expression "(**(code **)(puVar16 + 0x3cb74))" ( (pointer_expression "**(code **)(puVar16 + 0x3cb74)" * (pointer_expression "*(code **)(puVar16 + 0x3cb74)" * (cast_expression "(code **)(puVar16 + 0x3cb74)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar16 + 0x3cb74)" ( (binary_expression "puVar16 + 0x3cb74" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);" (assignment_expression "uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f)" identifier = (binary_expression "uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f)" identifier - (parenthesized_expression "((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f)" ( (binary_expression "(int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f" (cast_expression "(int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19)" ( (binary_expression "(uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19" (binary_expression "(uint)*(ushort *)(*piVar4 + uVar2 * 2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(*piVar4 + uVar2 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar4 + uVar2 * 2)" ( (binary_expression "*piVar4 + uVar2 * 2" (pointer_expression "*piVar4" * identifier) + (binary_expression "uVar2 * 2" identifier * number_literal)) )))) << number_literal) ))) >> number_literal) )))) ;) (expression_statement "pbVar6 = *(byte **)(iVar11 + 0x14);" (assignment_expression "pbVar6 = *(byte **)(iVar11 + 0x14)" identifier = (pointer_expression "*(byte **)(iVar11 + 0x14)" * (cast_expression "(byte **)(iVar11 + 0x14)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + 0x14)" ( (binary_expression "iVar11 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }" if (parenthesized_expression "(pbVar6 < *(byte **)(iVar11 + 0x18))" ( (binary_expression "pbVar6 < *(byte **)(iVar11 + 0x18)" identifier < (pointer_expression "*(byte **)(iVar11 + 0x18)" * (cast_expression "(byte **)(iVar11 + 0x18)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + 0x18)" ( (binary_expression "iVar11 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }" { (expression_statement "*(byte **)(iVar11 + 0x14) = pbVar6 + 1;" (assignment_expression "*(byte **)(iVar11 + 0x14) = pbVar6 + 1" (pointer_expression "*(byte **)(iVar11 + 0x14)" * (cast_expression "(byte **)(iVar11 + 0x14)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + 0x14)" ( (binary_expression "iVar11 + 0x14" identifier + number_literal) )))) = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "*pbVar6 = bVar1;" (assignment_expression "*pbVar6 = bVar1" (pointer_expression "*pbVar6" * identifier) = identifier) ;) }) (else_clause "else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }" else (compound_statement "{\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }" { (expression_statement "(**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);" (call_expression "(**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2)" (parenthesized_expression "(**(code **)(puVar16 + 0x3cbd8))" ( (pointer_expression "**(code **)(puVar16 + 0x3cbd8)" * (pointer_expression "*(code **)(puVar16 + 0x3cbd8)" * (cast_expression "(code **)(puVar16 + 0x3cbd8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar16 + 0x3cbd8)" ( (binary_expression "puVar16 + 0x3cbd8" identifier + number_literal) ))))) )) (argument_list "(iVar11,uVar2)" ( identifier , identifier ))) ;) }))) }))) (goto_statement "goto LAB_00020a58;" goto statement_identifier ;) })) (expression_statement "puVar5 = *(undefined1 **)(iVar11 + 0x14);" (assignment_expression "puVar5 = *(undefined1 **)(iVar11 + 0x14)" identifier = (pointer_expression "*(undefined1 **)(iVar11 + 0x14)" * (cast_expression "(undefined1 **)(iVar11 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + 0x14)" ( (binary_expression "iVar11 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }" if (parenthesized_expression "(puVar5 < *(undefined1 **)(iVar11 + 0x18))" ( (binary_expression "puVar5 < *(undefined1 **)(iVar11 + 0x18)" identifier < (pointer_expression "*(undefined1 **)(iVar11 + 0x18)" * (cast_expression "(undefined1 **)(iVar11 + 0x18)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + 0x18)" ( (binary_expression "iVar11 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }" { (expression_statement "*(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;" (assignment_expression "*(undefined1 **)(iVar11 + 0x14) = puVar5 + 1" (pointer_expression "*(undefined1 **)(iVar11 + 0x14)" * (cast_expression "(undefined1 **)(iVar11 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + 0x14)" ( (binary_expression "iVar11 + 0x14" identifier + number_literal) )))) = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "*puVar5 = 0xd;" (assignment_expression "*puVar5 = 0xd" (pointer_expression "*puVar5" * identifier) = number_literal) ;) }) (else_clause "else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }" else (compound_statement "{\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }" { (expression_statement "(**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);" (call_expression "(**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2)" (parenthesized_expression "(**(code **)(puVar16 + 0x3cbd8))" ( (pointer_expression "**(code **)(puVar16 + 0x3cbd8)" * (pointer_expression "*(code **)(puVar16 + 0x3cbd8)" * (cast_expression "(code **)(puVar16 + 0x3cbd8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar16 + 0x3cbd8)" ( (binary_expression "puVar16 + 0x3cbd8" identifier + number_literal) ))))) )) (argument_list "(iVar11,uVar2)" ( identifier , identifier ))) ;) }))) (if_statement "if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }" { (expression_statement "uVar15 = 0;" (assignment_expression "uVar15 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00020a58;" goto statement_identifier ;) })) (if_statement "if (param_2 <= pbVar8) {\n            return;\n          }" if (parenthesized_expression "(param_2 <= pbVar8)" ( (binary_expression "param_2 <= pbVar8" identifier <= identifier) )) (compound_statement "{\n            return;\n          }" { (return_statement "return;" return ;) })) (if_statement "if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }" if (parenthesized_expression "(*pbVar8 == 10)" ( (binary_expression "*pbVar8 == 10" (pointer_expression "*pbVar8" * identifier) == number_literal) )) (compound_statement "{\n            uVar15 = 0;\n          }" { (expression_statement "uVar15 = 0;" (assignment_expression "uVar15 = 0" identifier = number_literal) ;) }) (else_clause "else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }" else (compound_statement "{\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }" { (expression_statement "(**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);" (call_expression "(**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4)" (parenthesized_expression "(**(code **)(puVar16 + 0x3cbb0))" ( (pointer_expression "**(code **)(puVar16 + 0x3cbb0)" * (pointer_expression "*(code **)(puVar16 + 0x3cbb0)" * (cast_expression "(code **)(puVar16 + 0x3cbb0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar16 + 0x3cbb0)" ( (binary_expression "puVar16 + 0x3cbb0" identifier + number_literal) ))))) )) (argument_list "(iVar11,1,param_3,param_4)" ( identifier , number_literal , identifier , identifier ))) ;) (expression_statement "uVar15 = 0;" (assignment_expression "uVar15 = 0" identifier = number_literal) ;) }))) }))) (expression_statement "iVar14 = iVar14 + 1;" (assignment_expression "iVar14 = iVar14 + 1" identifier = (binary_expression "iVar14 + 1" identifier + number_literal)) ;) (expression_statement "pbVar6 = pbVar8;" (assignment_expression "pbVar6 = pbVar8" identifier = identifier) ;) (if_statement "if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }" if (parenthesized_expression "(iVar14 == 0x400)" ( (binary_expression "iVar14 == 0x400" identifier == number_literal) )) (compound_statement "{\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }" { (expression_statement "(*(code *)(iVar3 + 0x77c))();" (call_expression "(*(code *)(iVar3 + 0x77c))()" (parenthesized_expression "(*(code *)(iVar3 + 0x77c))" ( (pointer_expression "*(code *)(iVar3 + 0x77c)" * (cast_expression "(code *)(iVar3 + 0x77c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x77c)" ( (binary_expression "iVar3 + 0x77c" identifier + number_literal) )))) )) (argument_list "()" ( ))) ;) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (while_statement while (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) , (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )))) )) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT , IDENT ))) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (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) ))))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , LIT , IDENT , (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) }) (else_clause else (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 * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (binary_expression IDENT % IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , LIT ))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return ;) }))) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT ))) ;) }))) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression IDENT * LIT)) )))) << LIT) ))) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT ))) ;) }))) }))) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , LIT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) }) while (parenthesized_expression ( BOOL )) ;) })) }))) (return_statement return ;) })))
(function_definition "void FUN_0002077c(undefined4 param_1,byte *param_2,int param_3,undefined4 param_4)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  int *piVar4;\n  undefined1 *puVar5;\n  byte *pbVar6;\n  undefined4 uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  undefined *puVar10;\n  int iVar11;\n  int iVar12;\n  undefined4 *puVar13;\n  int iVar14;\n  uint uVar15;\n  undefined *puVar16;\n  byte abStack_9c [128];\n  int local_1c;\n  \n  puVar16 = PTR_DAT_0005d118;\n  local_1c = *(int *)PTR___stack_chk_guard_0005d5c0;\n  puVar10 = PTR_DAT_0005d118 + -0x27c0;\n  while ((pbVar6 = (byte *)0x3, *(int *)(puVar16 + -0x27c4) != 0 ||\n         (*(int *)(puVar16 + -0x27c8) != 0))) {\n    set_color_context();\n    (*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0);\n    (*(code *)PTR_sigprocmask_0005d5e0)(1,puVar10,abStack_9c);\n    uVar7 = *(undefined4 *)(puVar16 + -0x27c4);\n    if (*(int *)(puVar16 + -0x27c8) == 0) {\n      (*(code *)PTR_signal_0005d5a4)(uVar7,0);\n    }\n    else {\n      *(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;\n      uVar7 = 0x17;\n    }\n    (*(code *)PTR_raise_0005d614)(uVar7);\n    param_3 = 0;\n    param_2 = abStack_9c;\n    (*(code *)PTR_sigprocmask_0005d5e0)(3);\n  }\n  if (local_1c == *(int *)PTR___stack_chk_guard_0005d5c0) {\n    return;\n  }\n  puVar16 = PTR___stack_chk_fail_0005d598;\n  (*(code *)PTR___stack_chk_fail_0005d598)();\n  if (**(char **)(puVar16 + 0x3c988) == '\0') {\n    uVar9 = (int)param_2 - (int)pbVar6;\n    if (uVar9 != 0) {\n      puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4);\n      iVar11 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        uVar15 = 0x400;\n        if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }\n        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);\n        pbVar6 = pbVar6 + uVar2;\n        if (uVar2 < uVar15) {\n          return;\n        }\n        uVar9 = uVar9 - uVar2;\n        (*(code *)(iVar11 + 0x77c))();\n      } while (uVar9 != 0);\n    }\n  }\n  else {\n    iVar11 = **(int **)(puVar16 + 0x3c8d4);\n    uVar9 = **(uint **)(puVar16 + 0x3c9c0);\n    uVar15 = 0;\n    if (pbVar6 < param_2) {\n      iVar14 = 1;\n      iVar3 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      } while( true );\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0002077c(undefined4 param_1,byte *param_2,int param_3,undefined4 param_4)" (identifier "FUN_0002077c") (parameter_list "(undefined4 param_1,byte *param_2,int param_3,undefined4 param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "byte *param_2" (type_identifier "byte") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  int *piVar4;\n  undefined1 *puVar5;\n  byte *pbVar6;\n  undefined4 uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  undefined *puVar10;\n  int iVar11;\n  int iVar12;\n  undefined4 *puVar13;\n  int iVar14;\n  uint uVar15;\n  undefined *puVar16;\n  byte abStack_9c [128];\n  int local_1c;\n  \n  puVar16 = PTR_DAT_0005d118;\n  local_1c = *(int *)PTR___stack_chk_guard_0005d5c0;\n  puVar10 = PTR_DAT_0005d118 + -0x27c0;\n  while ((pbVar6 = (byte *)0x3, *(int *)(puVar16 + -0x27c4) != 0 ||\n         (*(int *)(puVar16 + -0x27c8) != 0))) {\n    set_color_context();\n    (*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0);\n    (*(code *)PTR_sigprocmask_0005d5e0)(1,puVar10,abStack_9c);\n    uVar7 = *(undefined4 *)(puVar16 + -0x27c4);\n    if (*(int *)(puVar16 + -0x27c8) == 0) {\n      (*(code *)PTR_signal_0005d5a4)(uVar7,0);\n    }\n    else {\n      *(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;\n      uVar7 = 0x17;\n    }\n    (*(code *)PTR_raise_0005d614)(uVar7);\n    param_3 = 0;\n    param_2 = abStack_9c;\n    (*(code *)PTR_sigprocmask_0005d5e0)(3);\n  }\n  if (local_1c == *(int *)PTR___stack_chk_guard_0005d5c0) {\n    return;\n  }\n  puVar16 = PTR___stack_chk_fail_0005d598;\n  (*(code *)PTR___stack_chk_fail_0005d598)();\n  if (**(char **)(puVar16 + 0x3c988) == '\0') {\n    uVar9 = (int)param_2 - (int)pbVar6;\n    if (uVar9 != 0) {\n      puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4);\n      iVar11 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        uVar15 = 0x400;\n        if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }\n        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);\n        pbVar6 = pbVar6 + uVar2;\n        if (uVar2 < uVar15) {\n          return;\n        }\n        uVar9 = uVar9 - uVar2;\n        (*(code *)(iVar11 + 0x77c))();\n      } while (uVar9 != 0);\n    }\n  }\n  else {\n    iVar11 = **(int **)(puVar16 + 0x3c8d4);\n    uVar9 = **(uint **)(puVar16 + 0x3c9c0);\n    uVar15 = 0;\n    if (pbVar6 < param_2) {\n      iVar14 = 1;\n      iVar3 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      } while( true );\n    }\n  }\n  return;\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 "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "undefined1 *puVar5;" (type_identifier "undefined1") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "byte *pbVar6;" (type_identifier "byte") (pointer_declarator "*pbVar6" (* "*") (identifier "pbVar6")) (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "byte *pbVar8;" (type_identifier "byte") (pointer_declarator "*pbVar8" (* "*") (identifier "pbVar8")) (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "undefined *puVar10;" (type_identifier "undefined") (pointer_declarator "*puVar10" (* "*") (identifier "puVar10")) (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (declaration "int iVar12;" (primitive_type "int") (identifier "iVar12") (; ";")) (declaration "undefined4 *puVar13;" (type_identifier "undefined4") (pointer_declarator "*puVar13" (* "*") (identifier "puVar13")) (; ";")) (declaration "int iVar14;" (primitive_type "int") (identifier "iVar14") (; ";")) (declaration "uint uVar15;" (type_identifier "uint") (identifier "uVar15") (; ";")) (declaration "undefined *puVar16;" (type_identifier "undefined") (pointer_declarator "*puVar16" (* "*") (identifier "puVar16")) (; ";")) (declaration "byte abStack_9c [128];" (type_identifier "byte") (array_declarator "abStack_9c [128]" (identifier "abStack_9c") ([ "[") (number_literal "128") (] "]")) (; ";")) (declaration "int local_1c;" (primitive_type "int") (identifier "local_1c") (; ";")) (expression_statement "puVar16 = PTR_DAT_0005d118;" (assignment_expression "puVar16 = PTR_DAT_0005d118" (identifier "puVar16") (= "=") (identifier "PTR_DAT_0005d118")) (; ";")) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_0005d5c0;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_0005d5c0" (identifier "local_1c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0005d5c0" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0005d5c0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0005d5c0")))) (; ";")) (expression_statement "puVar10 = PTR_DAT_0005d118 + -0x27c0;" (assignment_expression "puVar10 = PTR_DAT_0005d118 + -0x27c0" (identifier "puVar10") (= "=") (binary_expression "PTR_DAT_0005d118 + -0x27c0" (identifier "PTR_DAT_0005d118") (+ "+") (number_literal "-0x27c0"))) (; ";")) (while_statement "while ((pbVar6 = (byte *)0x3, *(int *)(puVar16 + -0x27c4) != 0 ||\n         (*(int *)(puVar16 + -0x27c8) != 0))) {\n    set_color_context();\n    (*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0);\n    (*(code *)PTR_sigprocmask_0005d5e0)(1,puVar10,abStack_9c);\n    uVar7 = *(undefined4 *)(puVar16 + -0x27c4);\n    if (*(int *)(puVar16 + -0x27c8) == 0) {\n      (*(code *)PTR_signal_0005d5a4)(uVar7,0);\n    }\n    else {\n      *(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;\n      uVar7 = 0x17;\n    }\n    (*(code *)PTR_raise_0005d614)(uVar7);\n    param_3 = 0;\n    param_2 = abStack_9c;\n    (*(code *)PTR_sigprocmask_0005d5e0)(3);\n  }" (while "while") (parenthesized_expression "((pbVar6 = (byte *)0x3, *(int *)(puVar16 + -0x27c4) != 0 ||\n         (*(int *)(puVar16 + -0x27c8) != 0)))" (( "(") (parenthesized_expression "(pbVar6 = (byte *)0x3, *(int *)(puVar16 + -0x27c4) != 0 ||\n         (*(int *)(puVar16 + -0x27c8) != 0))" (( "(") (comma_expression "pbVar6 = (byte *)0x3, *(int *)(puVar16 + -0x27c4) != 0 ||\n         (*(int *)(puVar16 + -0x27c8) != 0)" (assignment_expression "pbVar6 = (byte *)0x3" (identifier "pbVar6") (= "=") (cast_expression "(byte *)0x3" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x3"))) (, ",") (binary_expression "*(int *)(puVar16 + -0x27c4) != 0 ||\n         (*(int *)(puVar16 + -0x27c8) != 0)" (binary_expression "*(int *)(puVar16 + -0x27c4) != 0" (pointer_expression "*(int *)(puVar16 + -0x27c4)" (* "*") (cast_expression "(int *)(puVar16 + -0x27c4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar16 + -0x27c4)" (( "(") (binary_expression "puVar16 + -0x27c4" (identifier "puVar16") (+ "+") (number_literal "-0x27c4")) () ")")))) (!= "!=") (number_literal "0")) (|| "||") (parenthesized_expression "(*(int *)(puVar16 + -0x27c8) != 0)" (( "(") (binary_expression "*(int *)(puVar16 + -0x27c8) != 0" (pointer_expression "*(int *)(puVar16 + -0x27c8)" (* "*") (cast_expression "(int *)(puVar16 + -0x27c8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar16 + -0x27c8)" (( "(") (binary_expression "puVar16 + -0x27c8" (identifier "puVar16") (+ "+") (number_literal "-0x27c8")) () ")")))) (!= "!=") (number_literal "0")) () ")")))) () ")")) () ")")) (compound_statement "{\n    set_color_context();\n    (*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0);\n    (*(code *)PTR_sigprocmask_0005d5e0)(1,puVar10,abStack_9c);\n    uVar7 = *(undefined4 *)(puVar16 + -0x27c4);\n    if (*(int *)(puVar16 + -0x27c8) == 0) {\n      (*(code *)PTR_signal_0005d5a4)(uVar7,0);\n    }\n    else {\n      *(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;\n      uVar7 = 0x17;\n    }\n    (*(code *)PTR_raise_0005d614)(uVar7);\n    param_3 = 0;\n    param_2 = abStack_9c;\n    (*(code *)PTR_sigprocmask_0005d5e0)(3);\n  }" ({ "{") (expression_statement "set_color_context();" (call_expression "set_color_context()" (identifier "set_color_context") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0);" (call_expression "(*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0)" (parenthesized_expression "(*(code *)PTR_fflush_unlocked_0005d58c)" (( "(") (pointer_expression "*(code *)PTR_fflush_unlocked_0005d58c" (* "*") (cast_expression "(code *)PTR_fflush_unlocked_0005d58c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fflush_unlocked_0005d58c"))) () ")")) (argument_list "(*(undefined4 *)PTR_stdout_0005d4d0)" (( "(") (pointer_expression "*(undefined4 *)PTR_stdout_0005d4d0" (* "*") (cast_expression "(undefined4 *)PTR_stdout_0005d4d0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stdout_0005d4d0"))) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_sigprocmask_0005d5e0)(1,puVar10,abStack_9c);" (call_expression "(*(code *)PTR_sigprocmask_0005d5e0)(1,puVar10,abStack_9c)" (parenthesized_expression "(*(code *)PTR_sigprocmask_0005d5e0)" (( "(") (pointer_expression "*(code *)PTR_sigprocmask_0005d5e0" (* "*") (cast_expression "(code *)PTR_sigprocmask_0005d5e0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sigprocmask_0005d5e0"))) () ")")) (argument_list "(1,puVar10,abStack_9c)" (( "(") (number_literal "1") (, ",") (identifier "puVar10") (, ",") (identifier "abStack_9c") () ")"))) (; ";")) (expression_statement "uVar7 = *(undefined4 *)(puVar16 + -0x27c4);" (assignment_expression "uVar7 = *(undefined4 *)(puVar16 + -0x27c4)" (identifier "uVar7") (= "=") (pointer_expression "*(undefined4 *)(puVar16 + -0x27c4)" (* "*") (cast_expression "(undefined4 *)(puVar16 + -0x27c4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar16 + -0x27c4)" (( "(") (binary_expression "puVar16 + -0x27c4" (identifier "puVar16") (+ "+") (number_literal "-0x27c4")) () ")"))))) (; ";")) (if_statement "if (*(int *)(puVar16 + -0x27c8) == 0) {\n      (*(code *)PTR_signal_0005d5a4)(uVar7,0);\n    }\n    else {\n      *(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;\n      uVar7 = 0x17;\n    }" (if "if") (parenthesized_expression "(*(int *)(puVar16 + -0x27c8) == 0)" (( "(") (binary_expression "*(int *)(puVar16 + -0x27c8) == 0" (pointer_expression "*(int *)(puVar16 + -0x27c8)" (* "*") (cast_expression "(int *)(puVar16 + -0x27c8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar16 + -0x27c8)" (( "(") (binary_expression "puVar16 + -0x27c8" (identifier "puVar16") (+ "+") (number_literal "-0x27c8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR_signal_0005d5a4)(uVar7,0);\n    }" ({ "{") (expression_statement "(*(code *)PTR_signal_0005d5a4)(uVar7,0);" (call_expression "(*(code *)PTR_signal_0005d5a4)(uVar7,0)" (parenthesized_expression "(*(code *)PTR_signal_0005d5a4)" (( "(") (pointer_expression "*(code *)PTR_signal_0005d5a4" (* "*") (cast_expression "(code *)PTR_signal_0005d5a4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_signal_0005d5a4"))) () ")")) (argument_list "(uVar7,0)" (( "(") (identifier "uVar7") (, ",") (number_literal "0") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      *(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;\n      uVar7 = 0x17;\n    }" (else "else") (compound_statement "{\n      *(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;\n      uVar7 = 0x17;\n    }" ({ "{") (expression_statement "*(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;" (assignment_expression "*(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1" (pointer_expression "*(int *)(puVar16 + -0x27c8)" (* "*") (cast_expression "(int *)(puVar16 + -0x27c8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar16 + -0x27c8)" (( "(") (binary_expression "puVar16 + -0x27c8" (identifier "puVar16") (+ "+") (number_literal "-0x27c8")) () ")")))) (= "=") (binary_expression "*(int *)(puVar16 + -0x27c8) + -1" (pointer_expression "*(int *)(puVar16 + -0x27c8)" (* "*") (cast_expression "(int *)(puVar16 + -0x27c8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar16 + -0x27c8)" (( "(") (binary_expression "puVar16 + -0x27c8" (identifier "puVar16") (+ "+") (number_literal "-0x27c8")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar7 = 0x17;" (assignment_expression "uVar7 = 0x17" (identifier "uVar7") (= "=") (number_literal "0x17")) (; ";")) (} "}")))) (expression_statement "(*(code *)PTR_raise_0005d614)(uVar7);" (call_expression "(*(code *)PTR_raise_0005d614)(uVar7)" (parenthesized_expression "(*(code *)PTR_raise_0005d614)" (( "(") (pointer_expression "*(code *)PTR_raise_0005d614" (* "*") (cast_expression "(code *)PTR_raise_0005d614" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_raise_0005d614"))) () ")")) (argument_list "(uVar7)" (( "(") (identifier "uVar7") () ")"))) (; ";")) (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" (identifier "param_3") (= "=") (number_literal "0")) (; ";")) (expression_statement "param_2 = abStack_9c;" (assignment_expression "param_2 = abStack_9c" (identifier "param_2") (= "=") (identifier "abStack_9c")) (; ";")) (expression_statement "(*(code *)PTR_sigprocmask_0005d5e0)(3);" (call_expression "(*(code *)PTR_sigprocmask_0005d5e0)(3)" (parenthesized_expression "(*(code *)PTR_sigprocmask_0005d5e0)" (( "(") (pointer_expression "*(code *)PTR_sigprocmask_0005d5e0" (* "*") (cast_expression "(code *)PTR_sigprocmask_0005d5e0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sigprocmask_0005d5e0"))) () ")")) (argument_list "(3)" (( "(") (number_literal "3") () ")"))) (; ";")) (} "}"))) (if_statement "if (local_1c == *(int *)PTR___stack_chk_guard_0005d5c0) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_1c == *(int *)PTR___stack_chk_guard_0005d5c0)" (( "(") (binary_expression "local_1c == *(int *)PTR___stack_chk_guard_0005d5c0" (identifier "local_1c") (== "==") (pointer_expression "*(int *)PTR___stack_chk_guard_0005d5c0" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0005d5c0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0005d5c0")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar16 = PTR___stack_chk_fail_0005d598;" (assignment_expression "puVar16 = PTR___stack_chk_fail_0005d598" (identifier "puVar16") (= "=") (identifier "PTR___stack_chk_fail_0005d598")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_0005d598)();" (call_expression "(*(code *)PTR___stack_chk_fail_0005d598)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0005d598)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0005d598" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0005d598" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0005d598"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (**(char **)(puVar16 + 0x3c988) == '\0') {\n    uVar9 = (int)param_2 - (int)pbVar6;\n    if (uVar9 != 0) {\n      puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4);\n      iVar11 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        uVar15 = 0x400;\n        if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }\n        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);\n        pbVar6 = pbVar6 + uVar2;\n        if (uVar2 < uVar15) {\n          return;\n        }\n        uVar9 = uVar9 - uVar2;\n        (*(code *)(iVar11 + 0x77c))();\n      } while (uVar9 != 0);\n    }\n  }\n  else {\n    iVar11 = **(int **)(puVar16 + 0x3c8d4);\n    uVar9 = **(uint **)(puVar16 + 0x3c9c0);\n    uVar15 = 0;\n    if (pbVar6 < param_2) {\n      iVar14 = 1;\n      iVar3 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      } while( true );\n    }\n  }" (if "if") (parenthesized_expression "(**(char **)(puVar16 + 0x3c988) == '\0')" (( "(") (binary_expression "**(char **)(puVar16 + 0x3c988) == '\0'" (pointer_expression "**(char **)(puVar16 + 0x3c988)" (* "*") (pointer_expression "*(char **)(puVar16 + 0x3c988)" (* "*") (cast_expression "(char **)(puVar16 + 0x3c988)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar16 + 0x3c988)" (( "(") (binary_expression "puVar16 + 0x3c988" (identifier "puVar16") (+ "+") (number_literal "0x3c988")) () ")"))))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    uVar9 = (int)param_2 - (int)pbVar6;\n    if (uVar9 != 0) {\n      puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4);\n      iVar11 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        uVar15 = 0x400;\n        if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }\n        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);\n        pbVar6 = pbVar6 + uVar2;\n        if (uVar2 < uVar15) {\n          return;\n        }\n        uVar9 = uVar9 - uVar2;\n        (*(code *)(iVar11 + 0x77c))();\n      } while (uVar9 != 0);\n    }\n  }" ({ "{") (expression_statement "uVar9 = (int)param_2 - (int)pbVar6;" (assignment_expression "uVar9 = (int)param_2 - (int)pbVar6" (identifier "uVar9") (= "=") (binary_expression "(int)param_2 - (int)pbVar6" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (- "-") (cast_expression "(int)pbVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar6")))) (; ";")) (if_statement "if (uVar9 != 0) {\n      puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4);\n      iVar11 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        uVar15 = 0x400;\n        if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }\n        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);\n        pbVar6 = pbVar6 + uVar2;\n        if (uVar2 < uVar15) {\n          return;\n        }\n        uVar9 = uVar9 - uVar2;\n        (*(code *)(iVar11 + 0x77c))();\n      } while (uVar9 != 0);\n    }" (if "if") (parenthesized_expression "(uVar9 != 0)" (( "(") (binary_expression "uVar9 != 0" (identifier "uVar9") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4);\n      iVar11 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        uVar15 = 0x400;\n        if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }\n        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);\n        pbVar6 = pbVar6 + uVar2;\n        if (uVar2 < uVar15) {\n          return;\n        }\n        uVar9 = uVar9 - uVar2;\n        (*(code *)(iVar11 + 0x77c))();\n      } while (uVar9 != 0);\n    }" ({ "{") (expression_statement "puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4);" (assignment_expression "puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4)" (identifier "puVar13") (= "=") (pointer_expression "*(undefined4 **)(puVar16 + 0x3c8d4)" (* "*") (cast_expression "(undefined4 **)(puVar16 + 0x3c8d4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar16 + 0x3c8d4)" (( "(") (binary_expression "puVar16 + 0x3c8d4" (identifier "puVar16") (+ "+") (number_literal "0x3c8d4")) () ")"))))) (; ";")) (expression_statement "iVar11 = *(int *)(puVar16 + 0x3c9f0);" (assignment_expression "iVar11 = *(int *)(puVar16 + 0x3c9f0)" (identifier "iVar11") (= "=") (pointer_expression "*(int *)(puVar16 + 0x3c9f0)" (* "*") (cast_expression "(int *)(puVar16 + 0x3c9f0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar16 + 0x3c9f0)" (( "(") (binary_expression "puVar16 + 0x3c9f0" (identifier "puVar16") (+ "+") (number_literal "0x3c9f0")) () ")"))))) (; ";")) (do_statement "do {\n        uVar15 = 0x400;\n        if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }\n        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);\n        pbVar6 = pbVar6 + uVar2;\n        if (uVar2 < uVar15) {\n          return;\n        }\n        uVar9 = uVar9 - uVar2;\n        (*(code *)(iVar11 + 0x77c))();\n      } while (uVar9 != 0);" (do "do") (compound_statement "{\n        uVar15 = 0x400;\n        if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }\n        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);\n        pbVar6 = pbVar6 + uVar2;\n        if (uVar2 < uVar15) {\n          return;\n        }\n        uVar9 = uVar9 - uVar2;\n        (*(code *)(iVar11 + 0x77c))();\n      }" ({ "{") (expression_statement "uVar15 = 0x400;" (assignment_expression "uVar15 = 0x400" (identifier "uVar15") (= "=") (number_literal "0x400")) (; ";")) (if_statement "if (uVar9 < 0x401) {\n          uVar15 = uVar9;\n        }" (if "if") (parenthesized_expression "(uVar9 < 0x401)" (( "(") (binary_expression "uVar9 < 0x401" (identifier "uVar9") (< "<") (number_literal "0x401")) () ")")) (compound_statement "{\n          uVar15 = uVar9;\n        }" ({ "{") (expression_statement "uVar15 = uVar9;" (assignment_expression "uVar15 = uVar9" (identifier "uVar15") (= "=") (identifier "uVar9")) (; ";")) (} "}"))) (expression_statement "uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);" (assignment_expression "uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13)" (identifier "uVar2") (= "=") (call_expression "(**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13)" (parenthesized_expression "(**(code **)(puVar16 + 0x3cce0))" (( "(") (pointer_expression "**(code **)(puVar16 + 0x3cce0)" (* "*") (pointer_expression "*(code **)(puVar16 + 0x3cce0)" (* "*") (cast_expression "(code **)(puVar16 + 0x3cce0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar16 + 0x3cce0)" (( "(") (binary_expression "puVar16 + 0x3cce0" (identifier "puVar16") (+ "+") (number_literal "0x3cce0")) () ")"))))) () ")")) (argument_list "(pbVar6,1,uVar15,*puVar13)" (( "(") (identifier "pbVar6") (, ",") (number_literal "1") (, ",") (identifier "uVar15") (, ",") (pointer_expression "*puVar13" (* "*") (identifier "puVar13")) () ")")))) (; ";")) (expression_statement "pbVar6 = pbVar6 + uVar2;" (assignment_expression "pbVar6 = pbVar6 + uVar2" (identifier "pbVar6") (= "=") (binary_expression "pbVar6 + uVar2" (identifier "pbVar6") (+ "+") (identifier "uVar2"))) (; ";")) (if_statement "if (uVar2 < uVar15) {\n          return;\n        }" (if "if") (parenthesized_expression "(uVar2 < uVar15)" (( "(") (binary_expression "uVar2 < uVar15" (identifier "uVar2") (< "<") (identifier "uVar15")) () ")")) (compound_statement "{\n          return;\n        }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar9 = uVar9 - uVar2;" (assignment_expression "uVar9 = uVar9 - uVar2" (identifier "uVar9") (= "=") (binary_expression "uVar9 - uVar2" (identifier "uVar9") (- "-") (identifier "uVar2"))) (; ";")) (expression_statement "(*(code *)(iVar11 + 0x77c))();" (call_expression "(*(code *)(iVar11 + 0x77c))()" (parenthesized_expression "(*(code *)(iVar11 + 0x77c))" (( "(") (pointer_expression "*(code *)(iVar11 + 0x77c)" (* "*") (cast_expression "(code *)(iVar11 + 0x77c)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar11 + 0x77c)" (( "(") (binary_expression "iVar11 + 0x77c" (identifier "iVar11") (+ "+") (number_literal "0x77c")) () ")")))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar9 != 0)" (( "(") (binary_expression "uVar9 != 0" (identifier "uVar9") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar11 = **(int **)(puVar16 + 0x3c8d4);\n    uVar9 = **(uint **)(puVar16 + 0x3c9c0);\n    uVar15 = 0;\n    if (pbVar6 < param_2) {\n      iVar14 = 1;\n      iVar3 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      } while( true );\n    }\n  }" (else "else") (compound_statement "{\n    iVar11 = **(int **)(puVar16 + 0x3c8d4);\n    uVar9 = **(uint **)(puVar16 + 0x3c9c0);\n    uVar15 = 0;\n    if (pbVar6 < param_2) {\n      iVar14 = 1;\n      iVar3 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      } while( true );\n    }\n  }" ({ "{") (expression_statement "iVar11 = **(int **)(puVar16 + 0x3c8d4);" (assignment_expression "iVar11 = **(int **)(puVar16 + 0x3c8d4)" (identifier "iVar11") (= "=") (pointer_expression "**(int **)(puVar16 + 0x3c8d4)" (* "*") (pointer_expression "*(int **)(puVar16 + 0x3c8d4)" (* "*") (cast_expression "(int **)(puVar16 + 0x3c8d4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar16 + 0x3c8d4)" (( "(") (binary_expression "puVar16 + 0x3c8d4" (identifier "puVar16") (+ "+") (number_literal "0x3c8d4")) () ")")))))) (; ";")) (expression_statement "uVar9 = **(uint **)(puVar16 + 0x3c9c0);" (assignment_expression "uVar9 = **(uint **)(puVar16 + 0x3c9c0)" (identifier "uVar9") (= "=") (pointer_expression "**(uint **)(puVar16 + 0x3c9c0)" (* "*") (pointer_expression "*(uint **)(puVar16 + 0x3c9c0)" (* "*") (cast_expression "(uint **)(puVar16 + 0x3c9c0)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar16 + 0x3c9c0)" (( "(") (binary_expression "puVar16 + 0x3c9c0" (identifier "puVar16") (+ "+") (number_literal "0x3c9c0")) () ")")))))) (; ";")) (expression_statement "uVar15 = 0;" (assignment_expression "uVar15 = 0" (identifier "uVar15") (= "=") (number_literal "0")) (; ";")) (if_statement "if (pbVar6 < param_2) {\n      iVar14 = 1;\n      iVar3 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      } while( true );\n    }" (if "if") (parenthesized_expression "(pbVar6 < param_2)" (( "(") (binary_expression "pbVar6 < param_2" (identifier "pbVar6") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n      iVar14 = 1;\n      iVar3 = *(int *)(puVar16 + 0x3c9f0);\n      do {\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      } while( true );\n    }" ({ "{") (expression_statement "iVar14 = 1;" (assignment_expression "iVar14 = 1" (identifier "iVar14") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar3 = *(int *)(puVar16 + 0x3c9f0);" (assignment_expression "iVar3 = *(int *)(puVar16 + 0x3c9f0)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(puVar16 + 0x3c9f0)" (* "*") (cast_expression "(int *)(puVar16 + 0x3c9f0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar16 + 0x3c9f0)" (( "(") (binary_expression "puVar16 + 0x3c9f0" (identifier "puVar16") (+ "+") (number_literal "0x3c9f0")) () ")"))))) (; ";")) (do_statement "do {\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      } while( true );" (do "do") (compound_statement "{\n        pbVar8 = pbVar6 + 1;\n        bVar1 = *pbVar6;\n        uVar2 = (uint)bVar1;\n        if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }\n        iVar14 = iVar14 + 1;\n        pbVar6 = pbVar8;\n        if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }\n      }" ({ "{") (expression_statement "pbVar8 = pbVar6 + 1;" (assignment_expression "pbVar8 = pbVar6 + 1" (identifier "pbVar8") (= "=") (binary_expression "pbVar6 + 1" (identifier "pbVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar1 = *pbVar6;" (assignment_expression "bVar1 = *pbVar6" (identifier "bVar1") (= "=") (pointer_expression "*pbVar6" (* "*") (identifier "pbVar6"))) (; ";")) (expression_statement "uVar2 = (uint)bVar1;" (assignment_expression "uVar2 = (uint)bVar1" (identifier "uVar2") (= "=") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1"))) (; ";")) (if_statement "if (bVar1 == 9) {\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }\n        else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }" (if "if") (parenthesized_expression "(bVar1 == 9)" (( "(") (binary_expression "bVar1 == 9" (identifier "bVar1") (== "==") (number_literal "9")) () ")")) (compound_statement "{\n          if (uVar9 == 0) {\n            trap(7);\n          }\n          iVar12 = uVar9 - uVar15 % uVar9;\n          uVar15 = uVar15 + iVar12;\n          do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);\nLAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }\n        }" ({ "{") (if_statement "if (uVar9 == 0) {\n            trap(7);\n          }" (if "if") (parenthesized_expression "(uVar9 == 0)" (( "(") (binary_expression "uVar9 == 0" (identifier "uVar9") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            trap(7);\n          }" ({ "{") (expression_statement "trap(7);" (call_expression "trap(7)" (identifier "trap") (argument_list "(7)" (( "(") (number_literal "7") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar12 = uVar9 - uVar15 % uVar9;" (assignment_expression "iVar12 = uVar9 - uVar15 % uVar9" (identifier "iVar12") (= "=") (binary_expression "uVar9 - uVar15 % uVar9" (identifier "uVar9") (- "-") (binary_expression "uVar15 % uVar9" (identifier "uVar15") (% "%") (identifier "uVar9")))) (; ";")) (expression_statement "uVar15 = uVar15 + iVar12;" (assignment_expression "uVar15 = uVar15 + iVar12" (identifier "uVar15") (= "=") (binary_expression "uVar15 + iVar12" (identifier "uVar15") (+ "+") (identifier "iVar12"))) (; ";")) (do_statement "do {\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          } while (iVar12 != 0);" (do "do") (compound_statement "{\n            puVar5 = *(undefined1 **)(iVar11 + 0x14);\n            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }\n            iVar12 = iVar12 + -1;\n          }" ({ "{") (expression_statement "puVar5 = *(undefined1 **)(iVar11 + 0x14);" (assignment_expression "puVar5 = *(undefined1 **)(iVar11 + 0x14)" (identifier "puVar5") (= "=") (pointer_expression "*(undefined1 **)(iVar11 + 0x14)" (* "*") (cast_expression "(undefined1 **)(iVar11 + 0x14)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar11 + 0x14)" (( "(") (binary_expression "iVar11 + 0x14" (identifier "iVar11") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }\n            else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }" (if "if") (parenthesized_expression "(puVar5 < *(undefined1 **)(iVar11 + 0x18))" (( "(") (binary_expression "puVar5 < *(undefined1 **)(iVar11 + 0x18)" (identifier "puVar5") (< "<") (pointer_expression "*(undefined1 **)(iVar11 + 0x18)" (* "*") (cast_expression "(undefined1 **)(iVar11 + 0x18)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar11 + 0x18)" (( "(") (binary_expression "iVar11 + 0x18" (identifier "iVar11") (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (compound_statement "{\n              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n              *puVar5 = 0x20;\n            }" ({ "{") (expression_statement "*(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;" (assignment_expression "*(undefined1 **)(iVar11 + 0x14) = puVar5 + 1" (pointer_expression "*(undefined1 **)(iVar11 + 0x14)" (* "*") (cast_expression "(undefined1 **)(iVar11 + 0x14)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar11 + 0x14)" (( "(") (binary_expression "iVar11 + 0x14" (identifier "iVar11") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar5 = 0x20;" (assignment_expression "*puVar5 = 0x20" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "0x20")) (; ";")) (} "}")) (else_clause "else {\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }" (else "else") (compound_statement "{\n              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);\n            }" ({ "{") (expression_statement "(**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);" (call_expression "(**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20)" (parenthesized_expression "(**(code **)(puVar16 + 0x3cbd8))" (( "(") (pointer_expression "**(code **)(puVar16 + 0x3cbd8)" (* "*") (pointer_expression "*(code **)(puVar16 + 0x3cbd8)" (* "*") (cast_expression "(code **)(puVar16 + 0x3cbd8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar16 + 0x3cbd8)" (( "(") (binary_expression "puVar16 + 0x3cbd8" (identifier "puVar16") (+ "+") (number_literal "0x3cbd8")) () ")"))))) () ")")) (argument_list "(iVar11,0x20)" (( "(") (identifier "iVar11") (, ",") (number_literal "0x20") () ")"))) (; ";")) (} "}")))) (expression_statement "iVar12 = iVar12 + -1;" (assignment_expression "iVar12 = iVar12 + -1" (identifier "iVar12") (= "=") (binary_expression "iVar12 + -1" (identifier "iVar12") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar12 != 0)" (( "(") (binary_expression "iVar12 != 0" (identifier "iVar12") (!= "!=") (number_literal "0")) () ")")) (; ";")) (labeled_statement "LAB_00020a58:\n          if (param_2 <= pbVar8) {\n            return;\n          }" (statement_identifier "LAB_00020a58") (: ":") (if_statement "if (param_2 <= pbVar8) {\n            return;\n          }" (if "if") (parenthesized_expression "(param_2 <= pbVar8)" (( "(") (binary_expression "param_2 <= pbVar8" (identifier "param_2") (<= "<=") (identifier "pbVar8")) () ")")) (compound_statement "{\n            return;\n          }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}")))) (} "}")) (else_clause "else {\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }" (else "else") (compound_statement "{\n          if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }\n          puVar5 = *(undefined1 **)(iVar11 + 0x14);\n          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }\n          if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }\n          if (param_2 <= pbVar8) {\n            return;\n          }\n          if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }\n        }" ({ "{") (if_statement "if (bVar1 != 0xd) {\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }" (if "if") (parenthesized_expression "(bVar1 != 0xd)" (( "(") (binary_expression "bVar1 != 0xd" (identifier "bVar1") (!= "!=") (number_literal "0xd")) () ")")) (compound_statement "{\n            if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }\n            goto LAB_00020a58;\n          }" ({ "{") (if_statement "if (bVar1 == 8) {\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }\n            else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }" (if "if") (parenthesized_expression "(bVar1 == 8)" (( "(") (binary_expression "bVar1 == 8" (identifier "bVar1") (== "==") (number_literal "8")) () ")")) (compound_statement "{\n              if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }\n            }" ({ "{") (if_statement "if (uVar15 != 0) {\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }" (if "if") (parenthesized_expression "(uVar15 != 0)" (( "(") (binary_expression "uVar15 != 0" (identifier "uVar15") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                puVar5 = *(undefined1 **)(iVar11 + 0x14);\n                uVar15 = uVar15 - 1;\n                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }\n              }" ({ "{") (expression_statement "puVar5 = *(undefined1 **)(iVar11 + 0x14);" (assignment_expression "puVar5 = *(undefined1 **)(iVar11 + 0x14)" (identifier "puVar5") (= "=") (pointer_expression "*(undefined1 **)(iVar11 + 0x14)" (* "*") (cast_expression "(undefined1 **)(iVar11 + 0x14)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar11 + 0x14)" (( "(") (binary_expression "iVar11 + 0x14" (identifier "iVar11") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar15 = uVar15 - 1;" (assignment_expression "uVar15 = uVar15 - 1" (identifier "uVar15") (= "=") (binary_expression "uVar15 - 1" (identifier "uVar15") (- "-") (number_literal "1"))) (; ";")) (if_statement "if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }\n                else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }" (if "if") (parenthesized_expression "(puVar5 < *(undefined1 **)(iVar11 + 0x18))" (( "(") (binary_expression "puVar5 < *(undefined1 **)(iVar11 + 0x18)" (identifier "puVar5") (< "<") (pointer_expression "*(undefined1 **)(iVar11 + 0x18)" (* "*") (cast_expression "(undefined1 **)(iVar11 + 0x18)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar11 + 0x18)" (( "(") (binary_expression "iVar11 + 0x18" (identifier "iVar11") (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (compound_statement "{\n                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n                  *puVar5 = 8;\n                }" ({ "{") (expression_statement "*(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;" (assignment_expression "*(undefined1 **)(iVar11 + 0x14) = puVar5 + 1" (pointer_expression "*(undefined1 **)(iVar11 + 0x14)" (* "*") (cast_expression "(undefined1 **)(iVar11 + 0x14)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar11 + 0x14)" (( "(") (binary_expression "iVar11 + 0x14" (identifier "iVar11") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar5 = 8;" (assignment_expression "*puVar5 = 8" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "8")) (; ";")) (} "}")) (else_clause "else {\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }" (else "else") (compound_statement "{\n                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n                }" ({ "{") (expression_statement "(**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);" (call_expression "(**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2)" (parenthesized_expression "(**(code **)(puVar16 + 0x3cbd8))" (( "(") (pointer_expression "**(code **)(puVar16 + 0x3cbd8)" (* "*") (pointer_expression "*(code **)(puVar16 + 0x3cbd8)" (* "*") (cast_expression "(code **)(puVar16 + 0x3cbd8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar16 + 0x3cbd8)" (( "(") (binary_expression "puVar16 + 0x3cbd8" (identifier "puVar16") (+ "+") (number_literal "0x3cbd8")) () ")"))))) () ")")) (argument_list "(iVar11,uVar2)" (( "(") (identifier "iVar11") (, ",") (identifier "uVar2") () ")"))) (; ";")) (} "}")))) (} "}"))) (} "}")) (else_clause "else {\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }" (else "else") (compound_statement "{\n              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();\n              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);\n              pbVar6 = *(byte **)(iVar11 + 0x14);\n              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }\n            }" ({ "{") (expression_statement "piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();" (assignment_expression "piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))()" (identifier "piVar4") (= "=") (cast_expression "(int *)(**(code **)(puVar16 + 0x3cb74))()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(puVar16 + 0x3cb74))()" (parenthesized_expression "(**(code **)(puVar16 + 0x3cb74))" (( "(") (pointer_expression "**(code **)(puVar16 + 0x3cb74)" (* "*") (pointer_expression "*(code **)(puVar16 + 0x3cb74)" (* "*") (cast_expression "(code **)(puVar16 + 0x3cb74)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar16 + 0x3cb74)" (( "(") (binary_expression "puVar16 + 0x3cb74" (identifier "puVar16") (+ "+") (number_literal "0x3cb74")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);" (assignment_expression "uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f)" (identifier "uVar15") (= "=") (binary_expression "uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f)" (identifier "uVar15") (- "-") (parenthesized_expression "((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f)" (( "(") (binary_expression "(int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f" (cast_expression "(int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19)" (( "(") (binary_expression "(uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19" (binary_expression "(uint)*(ushort *)(*piVar4 + uVar2 * 2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(ushort *)(*piVar4 + uVar2 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar4 + uVar2 * 2)" (( "(") (binary_expression "*piVar4 + uVar2 * 2" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (binary_expression "uVar2 * 2" (identifier "uVar2") (* "*") (number_literal "2"))) () ")")))) (<< "<<") (number_literal "0x19")) () ")"))) (>> ">>") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "pbVar6 = *(byte **)(iVar11 + 0x14);" (assignment_expression "pbVar6 = *(byte **)(iVar11 + 0x14)" (identifier "pbVar6") (= "=") (pointer_expression "*(byte **)(iVar11 + 0x14)" (* "*") (cast_expression "(byte **)(iVar11 + 0x14)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar11 + 0x14)" (( "(") (binary_expression "iVar11 + 0x14" (identifier "iVar11") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (pbVar6 < *(byte **)(iVar11 + 0x18)) {\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }\n              else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }" (if "if") (parenthesized_expression "(pbVar6 < *(byte **)(iVar11 + 0x18))" (( "(") (binary_expression "pbVar6 < *(byte **)(iVar11 + 0x18)" (identifier "pbVar6") (< "<") (pointer_expression "*(byte **)(iVar11 + 0x18)" (* "*") (cast_expression "(byte **)(iVar11 + 0x18)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar11 + 0x18)" (( "(") (binary_expression "iVar11 + 0x18" (identifier "iVar11") (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (compound_statement "{\n                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;\n                *pbVar6 = bVar1;\n              }" ({ "{") (expression_statement "*(byte **)(iVar11 + 0x14) = pbVar6 + 1;" (assignment_expression "*(byte **)(iVar11 + 0x14) = pbVar6 + 1" (pointer_expression "*(byte **)(iVar11 + 0x14)" (* "*") (cast_expression "(byte **)(iVar11 + 0x14)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar11 + 0x14)" (( "(") (binary_expression "iVar11 + 0x14" (identifier "iVar11") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "pbVar6 + 1" (identifier "pbVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*pbVar6 = bVar1;" (assignment_expression "*pbVar6 = bVar1" (pointer_expression "*pbVar6" (* "*") (identifier "pbVar6")) (= "=") (identifier "bVar1")) (; ";")) (} "}")) (else_clause "else {\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }" (else "else") (compound_statement "{\n                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n              }" ({ "{") (expression_statement "(**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);" (call_expression "(**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2)" (parenthesized_expression "(**(code **)(puVar16 + 0x3cbd8))" (( "(") (pointer_expression "**(code **)(puVar16 + 0x3cbd8)" (* "*") (pointer_expression "*(code **)(puVar16 + 0x3cbd8)" (* "*") (cast_expression "(code **)(puVar16 + 0x3cbd8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar16 + 0x3cbd8)" (( "(") (binary_expression "puVar16 + 0x3cbd8" (identifier "puVar16") (+ "+") (number_literal "0x3cbd8")) () ")"))))) () ")")) (argument_list "(iVar11,uVar2)" (( "(") (identifier "iVar11") (, ",") (identifier "uVar2") () ")"))) (; ";")) (} "}")))) (} "}")))) (goto_statement "goto LAB_00020a58;" (goto "goto") (statement_identifier "LAB_00020a58") (; ";")) (} "}"))) (expression_statement "puVar5 = *(undefined1 **)(iVar11 + 0x14);" (assignment_expression "puVar5 = *(undefined1 **)(iVar11 + 0x14)" (identifier "puVar5") (= "=") (pointer_expression "*(undefined1 **)(iVar11 + 0x14)" (* "*") (cast_expression "(undefined1 **)(iVar11 + 0x14)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar11 + 0x14)" (( "(") (binary_expression "iVar11 + 0x14" (identifier "iVar11") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }" (if "if") (parenthesized_expression "(puVar5 < *(undefined1 **)(iVar11 + 0x18))" (( "(") (binary_expression "puVar5 < *(undefined1 **)(iVar11 + 0x18)" (identifier "puVar5") (< "<") (pointer_expression "*(undefined1 **)(iVar11 + 0x18)" (* "*") (cast_expression "(undefined1 **)(iVar11 + 0x18)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar11 + 0x18)" (( "(") (binary_expression "iVar11 + 0x18" (identifier "iVar11") (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (compound_statement "{\n            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;\n            *puVar5 = 0xd;\n          }" ({ "{") (expression_statement "*(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;" (assignment_expression "*(undefined1 **)(iVar11 + 0x14) = puVar5 + 1" (pointer_expression "*(undefined1 **)(iVar11 + 0x14)" (* "*") (cast_expression "(undefined1 **)(iVar11 + 0x14)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar11 + 0x14)" (( "(") (binary_expression "iVar11 + 0x14" (identifier "iVar11") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar5 = 0xd;" (assignment_expression "*puVar5 = 0xd" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "0xd")) (; ";")) (} "}")) (else_clause "else {\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }" (else "else") (compound_statement "{\n            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);\n          }" ({ "{") (expression_statement "(**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);" (call_expression "(**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2)" (parenthesized_expression "(**(code **)(puVar16 + 0x3cbd8))" (( "(") (pointer_expression "**(code **)(puVar16 + 0x3cbd8)" (* "*") (pointer_expression "*(code **)(puVar16 + 0x3cbd8)" (* "*") (cast_expression "(code **)(puVar16 + 0x3cbd8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar16 + 0x3cbd8)" (( "(") (binary_expression "puVar16 + 0x3cbd8" (identifier "puVar16") (+ "+") (number_literal "0x3cbd8")) () ")"))))) () ")")) (argument_list "(iVar11,uVar2)" (( "(") (identifier "iVar11") (, ",") (identifier "uVar2") () ")"))) (; ";")) (} "}")))) (if_statement "if (param_3 == 0) {\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            uVar15 = 0;\n            goto LAB_00020a58;\n          }" ({ "{") (expression_statement "uVar15 = 0;" (assignment_expression "uVar15 = 0" (identifier "uVar15") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00020a58;" (goto "goto") (statement_identifier "LAB_00020a58") (; ";")) (} "}"))) (if_statement "if (param_2 <= pbVar8) {\n            return;\n          }" (if "if") (parenthesized_expression "(param_2 <= pbVar8)" (( "(") (binary_expression "param_2 <= pbVar8" (identifier "param_2") (<= "<=") (identifier "pbVar8")) () ")")) (compound_statement "{\n            return;\n          }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (*pbVar8 == 10) {\n            uVar15 = 0;\n          }\n          else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }" (if "if") (parenthesized_expression "(*pbVar8 == 10)" (( "(") (binary_expression "*pbVar8 == 10" (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8")) (== "==") (number_literal "10")) () ")")) (compound_statement "{\n            uVar15 = 0;\n          }" ({ "{") (expression_statement "uVar15 = 0;" (assignment_expression "uVar15 = 0" (identifier "uVar15") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }" (else "else") (compound_statement "{\n            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);\n            uVar15 = 0;\n          }" ({ "{") (expression_statement "(**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);" (call_expression "(**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4)" (parenthesized_expression "(**(code **)(puVar16 + 0x3cbb0))" (( "(") (pointer_expression "**(code **)(puVar16 + 0x3cbb0)" (* "*") (pointer_expression "*(code **)(puVar16 + 0x3cbb0)" (* "*") (cast_expression "(code **)(puVar16 + 0x3cbb0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar16 + 0x3cbb0)" (( "(") (binary_expression "puVar16 + 0x3cbb0" (identifier "puVar16") (+ "+") (number_literal "0x3cbb0")) () ")"))))) () ")")) (argument_list "(iVar11,1,param_3,param_4)" (( "(") (identifier "iVar11") (, ",") (number_literal "1") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (expression_statement "uVar15 = 0;" (assignment_expression "uVar15 = 0" (identifier "uVar15") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")))) (expression_statement "iVar14 = iVar14 + 1;" (assignment_expression "iVar14 = iVar14 + 1" (identifier "iVar14") (= "=") (binary_expression "iVar14 + 1" (identifier "iVar14") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar6 = pbVar8;" (assignment_expression "pbVar6 = pbVar8" (identifier "pbVar6") (= "=") (identifier "pbVar8")) (; ";")) (if_statement "if (iVar14 == 0x400) {\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }" (if "if") (parenthesized_expression "(iVar14 == 0x400)" (( "(") (binary_expression "iVar14 == 0x400" (identifier "iVar14") (== "==") (number_literal "0x400")) () ")")) (compound_statement "{\n          (*(code *)(iVar3 + 0x77c))();\n          iVar14 = 0;\n        }" ({ "{") (expression_statement "(*(code *)(iVar3 + 0x77c))();" (call_expression "(*(code *)(iVar3 + 0x77c))()" (parenthesized_expression "(*(code *)(iVar3 + 0x77c))" (( "(") (pointer_expression "*(code *)(iVar3 + 0x77c)" (* "*") (cast_expression "(code *)(iVar3 + 0x77c)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x77c)" (( "(") (binary_expression "iVar3 + 0x77c" (identifier "iVar3") (+ "+") (number_literal "0x77c")) () ")")))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" (identifier "iVar14") (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}"))) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  type_1 var_10;
  int var_4;
  type_2 var_6;
  int var_18;
  int *piVar5;
  type_1 *var_15;
  type_3 *var_13;
  type_4 *var_8;
  type_4 *var_9;
  int var_16;
  type_5 in_a3;
  type_5 uVar9;
  type_4 *var_14;
  type_2 var_5;
  type_6 *puVar12;
  int var_12;
  type_5 *puVar14;
  int var_17;
  type_2 var_7;
  type_6 *var_2;
  type_4 oldset;
  
  var_2 = var_1;
  var_4 = *(int *)PTR___stack_chk_guard_0005d5c0;
  puVar12 = var_1 + -0x27c0;
  while ((var_8 = (type_4 *)0x3, *(int *)(var_2 + -0x27c4) != 0 ||
         (*(int *)(var_2 + -0x27c8) != 0))) {
    var_3(RESET_CONTEXT);
    (*(type_7 *)PTR_fflush_unlocked_0005d58c)(*(type_5 *)PTR_stdout_0005d4d0);
    (*(type_7 *)PTR_sigprocmask_0005d5e0)(1,puVar12,&oldset);
    uVar9 = *(type_5 *)(var_2 + -0x27c4);
    if (*(int *)(var_2 + -0x27c8) == 0) {
      (*(type_7 *)PTR_signal_0005d5a4)(uVar9,0);
    }
    else {
      *(int *)(var_2 + -0x27c8) = *(int *)(var_2 + -0x27c8) + -1;
      uVar9 = 0x17;
    }
    (*(type_7 *)PTR_raise_0005d614)(uVar9);
    var_16 = 0;
    var_9 = &oldset;
    (*(type_7 *)PTR_sigprocmask_0005d5e0)(3);
  }
  if (var_4 == *(int *)PTR___stack_chk_guard_0005d5c0) {
    return;
  }
  var_2 = PTR___stack_chk_fail_0005d598;
  (*(type_7 *)PTR___stack_chk_fail_0005d598)();
  if (**(char **)(var_2 + 0x3c988) == '\0') {
    var_5 = (int)var_9 - (int)var_8;
    if (var_5 != 0) {
      puVar14 = *(type_5 **)(var_2 + 0x3c8d4);
      var_4 = *(int *)(var_2 + 0x3c9f0);
      do {
        var_7 = 0x400;
        if (var_5 < 0x401) {
          var_7 = var_5;
        }
        var_6 = (**(type_7 **)(var_2 + 0x3cce0))(var_8,1,var_7,*puVar14);
        var_8 = (type_4 *)((int)var_8->__val + var_6);
        if (var_6 < var_7) {
          return;
        }
        var_5 = var_5 - var_6;
        (*(type_7 *)(var_4 + 0x77c))();
      } while (var_5 != 0);
    }
  }
  else {
    var_4 = **(int **)(var_2 + 0x3c8d4);
    var_5 = **(type_2 **)(var_2 + 0x3c9c0);
    var_7 = 0;
    if (var_8 < var_9) {
      var_17 = 1;
      var_18 = *(int *)(var_2 + 0x3c9f0);
      do {
        var_14 = (type_4 *)((int)var_8->__val + 1);
        var_10 = *(type_1 *)var_8->__val;
        var_6 = (type_2)var_10;
        if (var_10 == 9) {
          if (var_5 == 0) {
            var_11(7);
          }
          var_12 = var_5 - var_7 % var_5;
          var_7 = var_7 + var_12;
          do {
            var_13 = *(type_3 **)(var_4 + 0x14);
            if (var_13 < *(type_3 **)(var_4 + 0x18)) {
              *(type_3 **)(var_4 + 0x14) = var_13 + 1;
              *var_13 = 0x20;
            }
            else {
              (**(type_7 **)(var_2 + 0x3cbd8))(var_4,0x20);
            }
            var_12 = var_12 + -1;
          } while (var_12 != 0);
LAB_00020a58:
          if (var_9 <= var_14) {
            return;
          }
        }
        else {
          if (var_10 != 0xd) {
            if (var_10 == 8) {
              if (var_7 != 0) {
                var_13 = *(type_3 **)(var_4 + 0x14);
                var_7 = var_7 - 1;
                if (var_13 < *(type_3 **)(var_4 + 0x18)) {
                  *(type_3 **)(var_4 + 0x14) = var_13 + 1;
                  *var_13 = 8;
                }
                else {
                  (**(type_7 **)(var_2 + 0x3cbd8))(var_4,var_6);
                }
              }
            }
            else {
              piVar5 = (int *)(**(type_7 **)(var_2 + 0x3cb74))();
              var_7 = var_7 - ((int)((type_2)*(type_8 *)(*piVar5 + var_6 * 2) << 0x19) >> 0x1f);
              var_15 = *(type_1 **)(var_4 + 0x14);
              if (var_15 < *(type_1 **)(var_4 + 0x18)) {
                *(type_1 **)(var_4 + 0x14) = var_15 + 1;
                *var_15 = var_10;
              }
              else {
                (**(type_7 **)(var_2 + 0x3cbd8))(var_4,var_6);
              }
            }
            goto LAB_00020a58;
          }
          var_13 = *(type_3 **)(var_4 + 0x14);
          if (var_13 < *(type_3 **)(var_4 + 0x18)) {
            *(type_3 **)(var_4 + 0x14) = var_13 + 1;
            *var_13 = 0xd;
          }
          else {
            (**(type_7 **)(var_2 + 0x3cbd8))(var_4,var_6);
          }
          if (var_16 == 0) {
            var_7 = 0;
            goto LAB_00020a58;
          }
          if (var_9 <= var_14) {
            return;
          }
          if (*(char *)var_14->__val == '\n') {
            var_7 = 0;
          }
          else {
            (**(type_7 **)(var_2 + 0x3cbb0))(var_4,1,var_16,in_a3);
            var_7 = 0;
          }
        }
        var_17 = var_17 + 1;
        var_8 = var_14;
        if (var_17 == 0x400) {
          (*(type_7 *)(var_18 + 0x77c))();
          var_17 = 0;
        }
      } while( true );
    }
  }
  return;
}


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

void MASKED(undefined4 param_1,byte *param_2,int param_3,undefined4 param_4)

{
  byte bVar1;
  uint uVar2;
  int iVar3;
  int *piVar4;
  undefined1 *puVar5;
  byte *pbVar6;
  undefined4 uVar7;
  byte *pbVar8;
  uint uVar9;
  undefined *puVar10;
  int iVar11;
  int iVar12;
  undefined4 *puVar13;
  int iVar14;
  uint uVar15;
  undefined *puVar16;
  byte abStack_9c [128];
  int local_1c;
  
  puVar16 = PTR_DAT_0005d118;
  local_1c = *(int *)PTR___stack_chk_guard_0005d5c0;
  puVar10 = PTR_DAT_0005d118 + -0x27c0;
  while ((pbVar6 = (byte *)0x3, *(int *)(puVar16 + -0x27c4) != 0 ||
         (*(int *)(puVar16 + -0x27c8) != 0))) {
    set_color_context();
    (*(code *)PTR_fflush_unlocked_0005d58c)(*(undefined4 *)PTR_stdout_0005d4d0);
    (*(code *)PTR_sigprocmask_0005d5e0)(1,puVar10,abStack_9c);
    uVar7 = *(undefined4 *)(puVar16 + -0x27c4);
    if (*(int *)(puVar16 + -0x27c8) == 0) {
      (*(code *)PTR_signal_0005d5a4)(uVar7,0);
    }
    else {
      *(int *)(puVar16 + -0x27c8) = *(int *)(puVar16 + -0x27c8) + -1;
      uVar7 = 0x17;
    }
    (*(code *)PTR_raise_0005d614)(uVar7);
    param_3 = 0;
    param_2 = abStack_9c;
    (*(code *)PTR_sigprocmask_0005d5e0)(3);
  }
  if (local_1c == *(int *)PTR___stack_chk_guard_0005d5c0) {
    return;
  }
  puVar16 = PTR___stack_chk_fail_0005d598;
  (*(code *)PTR___stack_chk_fail_0005d598)();
  if (**(char **)(puVar16 + 0x3c988) == '\0') {
    uVar9 = (int)param_2 - (int)pbVar6;
    if (uVar9 != 0) {
      puVar13 = *(undefined4 **)(puVar16 + 0x3c8d4);
      iVar11 = *(int *)(puVar16 + 0x3c9f0);
      do {
        uVar15 = 0x400;
        if (uVar9 < 0x401) {
          uVar15 = uVar9;
        }
        uVar2 = (**(code **)(puVar16 + 0x3cce0))(pbVar6,1,uVar15,*puVar13);
        pbVar6 = pbVar6 + uVar2;
        if (uVar2 < uVar15) {
          return;
        }
        uVar9 = uVar9 - uVar2;
        (*(code *)(iVar11 + 0x77c))();
      } while (uVar9 != 0);
    }
  }
  else {
    iVar11 = **(int **)(puVar16 + 0x3c8d4);
    uVar9 = **(uint **)(puVar16 + 0x3c9c0);
    uVar15 = 0;
    if (pbVar6 < param_2) {
      iVar14 = 1;
      iVar3 = *(int *)(puVar16 + 0x3c9f0);
      do {
        pbVar8 = pbVar6 + 1;
        bVar1 = *pbVar6;
        uVar2 = (uint)bVar1;
        if (bVar1 == 9) {
          if (uVar9 == 0) {
            trap(7);
          }
          iVar12 = uVar9 - uVar15 % uVar9;
          uVar15 = uVar15 + iVar12;
          do {
            puVar5 = *(undefined1 **)(iVar11 + 0x14);
            if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {
              *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;
              *puVar5 = 0x20;
            }
            else {
              (**(code **)(puVar16 + 0x3cbd8))(iVar11,0x20);
            }
            iVar12 = iVar12 + -1;
          } while (iVar12 != 0);
LAB_00020a58:
          if (param_2 <= pbVar8) {
            return;
          }
        }
        else {
          if (bVar1 != 0xd) {
            if (bVar1 == 8) {
              if (uVar15 != 0) {
                puVar5 = *(undefined1 **)(iVar11 + 0x14);
                uVar15 = uVar15 - 1;
                if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {
                  *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;
                  *puVar5 = 8;
                }
                else {
                  (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);
                }
              }
            }
            else {
              piVar4 = (int *)(**(code **)(puVar16 + 0x3cb74))();
              uVar15 = uVar15 - ((int)((uint)*(ushort *)(*piVar4 + uVar2 * 2) << 0x19) >> 0x1f);
              pbVar6 = *(byte **)(iVar11 + 0x14);
              if (pbVar6 < *(byte **)(iVar11 + 0x18)) {
                *(byte **)(iVar11 + 0x14) = pbVar6 + 1;
                *pbVar6 = bVar1;
              }
              else {
                (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);
              }
            }
            goto LAB_00020a58;
          }
          puVar5 = *(undefined1 **)(iVar11 + 0x14);
          if (puVar5 < *(undefined1 **)(iVar11 + 0x18)) {
            *(undefined1 **)(iVar11 + 0x14) = puVar5 + 1;
            *puVar5 = 0xd;
          }
          else {
            (**(code **)(puVar16 + 0x3cbd8))(iVar11,uVar2);
          }
          if (param_3 == 0) {
            uVar15 = 0;
            goto LAB_00020a58;
          }
          if (param_2 <= pbVar8) {
            return;
          }
          if (*pbVar8 == 10) {
            uVar15 = 0;
          }
          else {
            (**(code **)(puVar16 + 0x3cbb0))(iVar11,1,param_3,param_4);
            uVar15 = 0;
          }
        }
        iVar14 = iVar14 + 1;
        pbVar6 = pbVar8;
        if (iVar14 == 0x400) {
          (*(code *)(iVar3 + 0x77c))();
          iVar14 = 0;
        }
      } while( true );
    }
  }
  return;
}

