
void sg_get_command_name(uint8_t *cmdp,int peri_type,int buff_len,char *buff)

{
  uint uVar1;
  undefined1 *puVar2;
  int iVar3;
  undefined1 *puVar4;
  ushort uVar5;
  byte *pbVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  undefined *puVar10;
  code *pcVar11;
  undefined1 auStack_cc [127];
  undefined1 uStack_4d;
  int iStack_4c;
  uint16_t u;
  
  iVar3 = *(int *)PTR___stack_chk_guard_00057a50;
  if ((buff != (char *)0x0) && (0 < buff_len)) {
    if (buff_len == 1) {
      *buff = '\0';
    }
    else if (cmdp == (uint8_t *)0x0) {
      (*(code *)PTR_sg_scnpr_00057904)
                (buff,buff_len,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);
      cmdp = (uint8_t *)buff;
    }
    else {
      pbVar6 = (byte *)(uint)*cmdp;
      if (pbVar6 == (byte *)0x7f) {
        uVar5 = *(ushort *)(cmdp + 8);
      }
      else {
        uVar5 = cmdp[1] & 0x1f;
      }
      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,peri_type,buff_len);
      cmdp = pbVar6;
    }
  }
  if (iVar3 == *(int *)PTR___stack_chk_guard_00057a50) {
    return;
  }
  puVar10 = PTR___stack_chk_fail_00057a1c;
  (*(code *)PTR___stack_chk_fail_00057a1c)();
  iStack_4c = **(int **)(puVar10 + 0x3f114);
  puVar2 = auStack_cc;
  iVar3 = 0x80;
  puVar4 = puVar2;
  (**(code **)(puVar10 + 0x3ef1c))();
  uStack_4d = 0;
  (**(code **)(puVar10 + 0x3efb0))(*(int *)(puVar10 + 0x3ef00) + 0x5114);
  if (*cmdp == 0x7f) {
    iVar9 = cmdp[7] + 8;
  }
  else {
    iVar9 = (**(code **)(puVar10 + 0x3f0d8))();
    if (iVar9 < 1) {
      iVar9 = *(int *)(puVar10 + 0x3ef04);
      goto LAB_00018a08;
    }
  }
  iVar7 = 0;
  iVar8 = *(int *)(puVar10 + 0x3ef00);
  pbVar6 = cmdp;
  do {
    puVar2 = (undefined1 *)(uint)*pbVar6;
    (**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c);
    iVar7 = iVar7 + 1;
    pbVar6 = cmdp + iVar7;
  } while (iVar7 < iVar9);
  iVar9 = *(int *)(puVar10 + 0x3ef04);
LAB_00018a08:
  uVar1 = iVar9 + 0x2918;
  (**(code **)(puVar10 + 0x3efb0))();
  if (iStack_4c == **(int **)(puVar10 + 0x3f114)) {
    return;
  }
  pcVar11 = *(code **)(puVar10 + 0x3f0e0);
  (*pcVar11)();
  iVar9 = *(int *)(pcVar11 + 0x3ee38);
  if (puVar2 == (undefined1 *)0x0) {
    iVar9 = *(int *)(pcVar11 + 0x3efd0);
  }
  if ((puVar4 != (undefined1 *)0x0) && (0 < iVar3)) {
    if (iVar3 == 1) {
      *puVar4 = 0;
    }
    else if (*(int *)(iVar9 + 4) == 0) {
LAB_00018b24:
      if (puVar2 == (undefined1 *)0x0) {
        if ((char)uVar1 < '\0') {
          (**(code **)(pcVar11 + 0x3f040))
                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,
                     pcVar11 + 0x46da0);
        }
        else {
          (**(code **)(pcVar11 + 0x3f040))
                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);
        }
      }
      else if (uVar1 < 0xc0) {
        if ((char)uVar1 < '\0') {
          (**(code **)(pcVar11 + 0x3f040))
                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);
        }
        else {
          (**(code **)(pcVar11 + 0x3f040))
                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);
        }
      }
      else {
        (**(code **)(pcVar11 + 0x3f040))
                  (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);
      }
    }
    else {
      iVar7 = *(int *)(pcVar11 + 0x3edcc);
      if (uVar1 != *(byte *)(iVar9 + 3)) {
        do {
          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;
          pbVar6 = (byte *)(iVar9 + 0xb);
          iVar9 = iVar9 + 8;
        } while (*pbVar6 != uVar1);
        iVar7 = *(int *)(pcVar11 + 0x3edcc);
      }
      (**(code **)(pcVar11 + 0x3eef4))(puVar4,iVar3,iVar7 + 0x50e0);
    }
  }
  return;
}



undefined1 * sg_get_command_name(byte *param_1,undefined4 param_2,int param_3,byte *param_4)

{
  uint uVar1;
  undefined1 *puVar2;
  undefined1 *puVar3;
  int iVar4;
  ushort uVar5;
  byte *pbVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  undefined *puVar10;
  code *pcVar11;
  undefined1 auStack_cc [127];
  undefined1 uStack_4d;
  undefined1 *puStack_4c;
  
  puVar3 = *(undefined1 **)PTR___stack_chk_guard_00057a50;
  if ((param_4 != (byte *)0x0) && (0 < param_3)) {
    if (param_3 == 1) {
      *param_4 = 0;
    }
    else if (param_1 == (byte *)0x0) {
      (*(code *)PTR_sg_scnpr_00057904)
                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);
      param_1 = param_4;
    }
    else {
      pbVar6 = (byte *)(uint)*param_1;
      if (pbVar6 == (byte *)0x7f) {
        uVar5 = *(ushort *)(param_1 + 8);
      }
      else {
        uVar5 = param_1[1] & 0x1f;
      }
      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);
      param_1 = pbVar6;
    }
  }
  if (puVar3 == *(undefined1 **)PTR___stack_chk_guard_00057a50) {
    return *(undefined1 **)PTR___stack_chk_guard_00057a50;
  }
  puVar10 = PTR___stack_chk_fail_00057a1c;
  (*(code *)PTR___stack_chk_fail_00057a1c)();
  puStack_4c = (undefined1 *)**(int **)(puVar10 + 0x3f114);
  puVar2 = auStack_cc;
  iVar4 = 0x80;
  puVar3 = puVar2;
  (**(code **)(puVar10 + 0x3ef1c))();
  uStack_4d = 0;
  (**(code **)(puVar10 + 0x3efb0))(*(int *)(puVar10 + 0x3ef00) + 0x5114);
  if (*param_1 == 0x7f) {
    iVar9 = param_1[7] + 8;
  }
  else {
    iVar9 = (**(code **)(puVar10 + 0x3f0d8))();
    if (iVar9 < 1) {
      iVar9 = *(int *)(puVar10 + 0x3ef04);
      goto LAB_00018a08;
    }
  }
  iVar7 = 0;
  iVar8 = *(int *)(puVar10 + 0x3ef00);
  pbVar6 = param_1;
  do {
    puVar2 = (undefined1 *)(uint)*pbVar6;
    (**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c);
    iVar7 = iVar7 + 1;
    pbVar6 = param_1 + iVar7;
  } while (iVar7 < iVar9);
  iVar9 = *(int *)(puVar10 + 0x3ef04);
LAB_00018a08:
  uVar1 = iVar9 + 0x2918;
  (**(code **)(puVar10 + 0x3efb0))();
  if (puStack_4c == (undefined1 *)**(int **)(puVar10 + 0x3f114)) {
    return (undefined1 *)**(int **)(puVar10 + 0x3f114);
  }
  pcVar11 = *(code **)(puVar10 + 0x3f0e0);
  (*pcVar11)();
  iVar9 = *(int *)(pcVar11 + 0x3ee38);
  if (puVar2 == (undefined1 *)0x0) {
    iVar9 = *(int *)(pcVar11 + 0x3efd0);
  }
  if ((puVar3 != (undefined1 *)0x0) && (0 < iVar4)) {
    if (iVar4 == 1) {
      *puVar3 = 0;
    }
    else if (*(int *)(iVar9 + 4) == 0) {
LAB_00018b24:
      if (puVar2 == (undefined1 *)0x0) {
        if ((char)uVar1 < '\0') {
          (**(code **)(pcVar11 + 0x3f040))
                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,
                     pcVar11 + 0x46da0);
        }
        else {
          (**(code **)(pcVar11 + 0x3f040))
                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);
        }
      }
      else if (uVar1 < 0xc0) {
        if ((char)uVar1 < '\0') {
          (**(code **)(pcVar11 + 0x3f040))
                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);
        }
        else {
          (**(code **)(pcVar11 + 0x3f040))
                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);
        }
      }
      else {
        (**(code **)(pcVar11 + 0x3f040))
                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);
      }
    }
    else {
      iVar7 = *(int *)(pcVar11 + 0x3edcc);
      if (uVar1 != *(byte *)(iVar9 + 3)) {
        do {
          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;
          pbVar6 = (byte *)(iVar9 + 0xb);
          iVar9 = iVar9 + 8;
        } while (*pbVar6 != uVar1);
        iVar7 = *(int *)(pcVar11 + 0x3edcc);
      }
      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);
    }
  }
  return puVar3;
}


lui gp,0x4
addiu gp,gp,0x6fd0
addu gp,gp,t9
addiu sp,sp,-0x30
sw ra,0x2c(sp)
sw gp,0x18(sp)
or v0,a2,zero
lw a2,-0x7dc0(gp)
lw a2,0x0(a2)
sw a2,0x24(sp)
beq a3,zero,0x000188c4
_nop
blez v0,0x000188c4
_or v1,a3,zero
li a2,0x1
beq v0,a2,0x000188e0
_nop
beq a0,zero,0x000188e8
_li a2,0x7f
lbu t1,0x0(a0)
beq t1,a2,0x00018918
_nop
lbu t0,0x1(a0)
andi t0,t0,0x1f
sw v1,0x10(sp)
or a3,v0,zero
or a2,a1,zero
or a1,t0,zero
or a0,t1,zero
lw t9,-0x7f54(gp)
jalr t9
_nop
lw gp,0x18(sp)
lw v1,0x24(sp)
lw v0,-0x7dc0(gp)
lw v0,0x0(v0)
bne v1,v0,0x00018930
_lw ra,0x2c(sp)
jr ra
_addiu sp,sp,0x30
b 0x000188c4
_sb zero,0x0(a3)
lw a3,-0x7fd4(gp)
addiu a3,a3,0x50fc
lw a2,-0x7fd4(gp)
addiu a2,a2,0x50e0
or a1,v0,zero
or a0,v1,zero
lw t9,-0x7f0c(gp)
jalr t9
_nop
lw gp,0x18(sp)
b 0x000188c4
_nop
lbu a2,0x8(a0)
sb a2,0x22(sp)
lbu a0,0x9(a0)
sb a0,0x23(sp)
b 0x000188a0
_lhu t0,0x22(sp)
lw t9,-0x7df4(gp)
jalr t9
_nop
(translation_unit "undefined1 * sg_get_command_name(byte *param_1,undefined4 param_2,int param_3,byte *param_4)\n\n{\n  uint uVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  ushort uVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined *puVar10;\n  code *pcVar11;\n  undefined1 auStack_cc [127];\n  undefined1 uStack_4d;\n  undefined1 *puStack_4c;\n  \n  puVar3 = *(undefined1 **)PTR___stack_chk_guard_00057a50;\n  if ((param_4 != (byte *)0x0) && (0 < param_3)) {\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else if (param_1 == (byte *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      param_1 = param_4;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }\n  }\n  if (puVar3 == *(undefined1 **)PTR___stack_chk_guard_00057a50) {\n    return *(undefined1 **)PTR___stack_chk_guard_00057a50;\n  }\n  puVar10 = PTR___stack_chk_fail_00057a1c;\n  (*(code *)PTR___stack_chk_fail_00057a1c)();\n  puStack_4c = (undefined1 *)**(int **)(puVar10 + 0x3f114);\n  puVar2 = auStack_cc;\n  iVar4 = 0x80;\n  puVar3 = puVar2;\n  (**(code **)(puVar10 + 0x3ef1c))();\n  uStack_4d = 0;\n  (**(code **)(puVar10 + 0x3efb0))(*(int *)(puVar10 + 0x3ef00) + 0x5114);\n  if (*param_1 == 0x7f) {\n    iVar9 = param_1[7] + 8;\n  }\n  else {\n    iVar9 = (**(code **)(puVar10 + 0x3f0d8))();\n    if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }\n  }\n  iVar7 = 0;\n  iVar8 = *(int *)(puVar10 + 0x3ef00);\n  pbVar6 = param_1;\n  do {\n    puVar2 = (undefined1 *)(uint)*pbVar6;\n    (**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c);\n    iVar7 = iVar7 + 1;\n    pbVar6 = param_1 + iVar7;\n  } while (iVar7 < iVar9);\n  iVar9 = *(int *)(puVar10 + 0x3ef04);\nLAB_00018a08:\n  uVar1 = iVar9 + 0x2918;\n  (**(code **)(puVar10 + 0x3efb0))();\n  if (puStack_4c == (undefined1 *)**(int **)(puVar10 + 0x3f114)) {\n    return (undefined1 *)**(int **)(puVar10 + 0x3f114);\n  }\n  pcVar11 = *(code **)(puVar10 + 0x3f0e0);\n  (*pcVar11)();\n  iVar9 = *(int *)(pcVar11 + 0x3ee38);\n  if (puVar2 == (undefined1 *)0x0) {\n    iVar9 = *(int *)(pcVar11 + 0x3efd0);\n  }\n  if ((puVar3 != (undefined1 *)0x0) && (0 < iVar4)) {\n    if (iVar4 == 1) {\n      *puVar3 = 0;\n    }\n    else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }\n  }\n  return puVar3;\n}\n\n" (function_definition "undefined1 * sg_get_command_name(byte *param_1,undefined4 param_2,int param_3,byte *param_4)\n\n{\n  uint uVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  ushort uVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined *puVar10;\n  code *pcVar11;\n  undefined1 auStack_cc [127];\n  undefined1 uStack_4d;\n  undefined1 *puStack_4c;\n  \n  puVar3 = *(undefined1 **)PTR___stack_chk_guard_00057a50;\n  if ((param_4 != (byte *)0x0) && (0 < param_3)) {\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else if (param_1 == (byte *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      param_1 = param_4;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }\n  }\n  if (puVar3 == *(undefined1 **)PTR___stack_chk_guard_00057a50) {\n    return *(undefined1 **)PTR___stack_chk_guard_00057a50;\n  }\n  puVar10 = PTR___stack_chk_fail_00057a1c;\n  (*(code *)PTR___stack_chk_fail_00057a1c)();\n  puStack_4c = (undefined1 *)**(int **)(puVar10 + 0x3f114);\n  puVar2 = auStack_cc;\n  iVar4 = 0x80;\n  puVar3 = puVar2;\n  (**(code **)(puVar10 + 0x3ef1c))();\n  uStack_4d = 0;\n  (**(code **)(puVar10 + 0x3efb0))(*(int *)(puVar10 + 0x3ef00) + 0x5114);\n  if (*param_1 == 0x7f) {\n    iVar9 = param_1[7] + 8;\n  }\n  else {\n    iVar9 = (**(code **)(puVar10 + 0x3f0d8))();\n    if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }\n  }\n  iVar7 = 0;\n  iVar8 = *(int *)(puVar10 + 0x3ef00);\n  pbVar6 = param_1;\n  do {\n    puVar2 = (undefined1 *)(uint)*pbVar6;\n    (**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c);\n    iVar7 = iVar7 + 1;\n    pbVar6 = param_1 + iVar7;\n  } while (iVar7 < iVar9);\n  iVar9 = *(int *)(puVar10 + 0x3ef04);\nLAB_00018a08:\n  uVar1 = iVar9 + 0x2918;\n  (**(code **)(puVar10 + 0x3efb0))();\n  if (puStack_4c == (undefined1 *)**(int **)(puVar10 + 0x3f114)) {\n    return (undefined1 *)**(int **)(puVar10 + 0x3f114);\n  }\n  pcVar11 = *(code **)(puVar10 + 0x3f0e0);\n  (*pcVar11)();\n  iVar9 = *(int *)(pcVar11 + 0x3ee38);\n  if (puVar2 == (undefined1 *)0x0) {\n    iVar9 = *(int *)(pcVar11 + 0x3efd0);\n  }\n  if ((puVar3 != (undefined1 *)0x0) && (0 < iVar4)) {\n    if (iVar4 == 1) {\n      *puVar3 = 0;\n    }\n    else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }\n  }\n  return puVar3;\n}" type_identifier (pointer_declarator "* sg_get_command_name(byte *param_1,undefined4 param_2,int param_3,byte *param_4)" * (function_declarator "sg_get_command_name(byte *param_1,undefined4 param_2,int param_3,byte *param_4)" identifier (parameter_list "(byte *param_1,undefined4 param_2,int param_3,byte *param_4)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "byte *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) )))) (compound_statement "{\n  uint uVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  ushort uVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined *puVar10;\n  code *pcVar11;\n  undefined1 auStack_cc [127];\n  undefined1 uStack_4d;\n  undefined1 *puStack_4c;\n  \n  puVar3 = *(undefined1 **)PTR___stack_chk_guard_00057a50;\n  if ((param_4 != (byte *)0x0) && (0 < param_3)) {\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else if (param_1 == (byte *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      param_1 = param_4;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }\n  }\n  if (puVar3 == *(undefined1 **)PTR___stack_chk_guard_00057a50) {\n    return *(undefined1 **)PTR___stack_chk_guard_00057a50;\n  }\n  puVar10 = PTR___stack_chk_fail_00057a1c;\n  (*(code *)PTR___stack_chk_fail_00057a1c)();\n  puStack_4c = (undefined1 *)**(int **)(puVar10 + 0x3f114);\n  puVar2 = auStack_cc;\n  iVar4 = 0x80;\n  puVar3 = puVar2;\n  (**(code **)(puVar10 + 0x3ef1c))();\n  uStack_4d = 0;\n  (**(code **)(puVar10 + 0x3efb0))(*(int *)(puVar10 + 0x3ef00) + 0x5114);\n  if (*param_1 == 0x7f) {\n    iVar9 = param_1[7] + 8;\n  }\n  else {\n    iVar9 = (**(code **)(puVar10 + 0x3f0d8))();\n    if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }\n  }\n  iVar7 = 0;\n  iVar8 = *(int *)(puVar10 + 0x3ef00);\n  pbVar6 = param_1;\n  do {\n    puVar2 = (undefined1 *)(uint)*pbVar6;\n    (**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c);\n    iVar7 = iVar7 + 1;\n    pbVar6 = param_1 + iVar7;\n  } while (iVar7 < iVar9);\n  iVar9 = *(int *)(puVar10 + 0x3ef04);\nLAB_00018a08:\n  uVar1 = iVar9 + 0x2918;\n  (**(code **)(puVar10 + 0x3efb0))();\n  if (puStack_4c == (undefined1 *)**(int **)(puVar10 + 0x3f114)) {\n    return (undefined1 *)**(int **)(puVar10 + 0x3f114);\n  }\n  pcVar11 = *(code **)(puVar10 + 0x3f0e0);\n  (*pcVar11)();\n  iVar9 = *(int *)(pcVar11 + 0x3ee38);\n  if (puVar2 == (undefined1 *)0x0) {\n    iVar9 = *(int *)(pcVar11 + 0x3efd0);\n  }\n  if ((puVar3 != (undefined1 *)0x0) && (0 < iVar4)) {\n    if (iVar4 == 1) {\n      *puVar3 = 0;\n    }\n    else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }\n  }\n  return puVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "ushort uVar5;" type_identifier identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "code *pcVar11;" type_identifier (pointer_declarator "*pcVar11" * identifier) ;) (declaration "undefined1 auStack_cc [127];" type_identifier (array_declarator "auStack_cc [127]" identifier [ number_literal ]) ;) (declaration "undefined1 uStack_4d;" type_identifier identifier ;) (declaration "undefined1 *puStack_4c;" type_identifier (pointer_declarator "*puStack_4c" * identifier) ;) (expression_statement "puVar3 = *(undefined1 **)PTR___stack_chk_guard_00057a50;" (assignment_expression "puVar3 = *(undefined1 **)PTR___stack_chk_guard_00057a50" identifier = (pointer_expression "*(undefined1 **)PTR___stack_chk_guard_00057a50" * (cast_expression "(undefined1 **)PTR___stack_chk_guard_00057a50" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if ((param_4 != (byte *)0x0) && (0 < param_3)) {\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else if (param_1 == (byte *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      param_1 = param_4;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }\n  }" if (parenthesized_expression "((param_4 != (byte *)0x0) && (0 < param_3))" ( (binary_expression "(param_4 != (byte *)0x0) && (0 < param_3)" (parenthesized_expression "(param_4 != (byte *)0x0)" ( (binary_expression "param_4 != (byte *)0x0" identifier != (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) ))) )) (compound_statement "{\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else if (param_1 == (byte *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      param_1 = param_4;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }\n  }" { (if_statement "if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else if (param_1 == (byte *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      param_1 = param_4;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }" if (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) (compound_statement "{\n      *param_4 = 0;\n    }" { (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) }) (else_clause "else if (param_1 == (byte *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      param_1 = param_4;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }" else (if_statement "if (param_1 == (byte *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      param_1 = param_4;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }" if (parenthesized_expression "(param_1 == (byte *)0x0)" ( (binary_expression "param_1 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      param_1 = param_4;\n    }" { (expression_statement "(*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);" (call_expression "(*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc)" (parenthesized_expression "(*(code *)PTR_sg_scnpr_00057904)" ( (pointer_expression "*(code *)PTR_sg_scnpr_00057904" * (cast_expression "(code *)PTR_sg_scnpr_00057904" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc)" ( identifier , identifier , (binary_expression "PTR_LAB_0005783c + 0x50e0" identifier + number_literal) , (binary_expression "PTR_LAB_0005783c + 0x50fc" identifier + number_literal) ))) ;) (expression_statement "param_1 = param_4;" (assignment_expression "param_1 = param_4" identifier = identifier) ;) }) (else_clause "else {\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }" else (compound_statement "{\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }" { (expression_statement "pbVar6 = (byte *)(uint)*param_1;" (assignment_expression "pbVar6 = (byte *)(uint)*param_1" identifier = (binary_expression "(byte *)(uint)*param_1" (cast_expression "(byte *)(uint)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uint)" ( identifier ))) * identifier)) ;) (if_statement "if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }" if (parenthesized_expression "(pbVar6 == (byte *)0x7f)" ( (binary_expression "pbVar6 == (byte *)0x7f" identifier == (cast_expression "(byte *)0x7f" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        uVar5 = *(ushort *)(param_1 + 8);\n      }" { (expression_statement "uVar5 = *(ushort *)(param_1 + 8);" (assignment_expression "uVar5 = *(ushort *)(param_1 + 8)" identifier = (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        uVar5 = param_1[1] & 0x1f;\n      }" else (compound_statement "{\n        uVar5 = param_1[1] & 0x1f;\n      }" { (expression_statement "uVar5 = param_1[1] & 0x1f;" (assignment_expression "uVar5 = param_1[1] & 0x1f" identifier = (binary_expression "param_1[1] & 0x1f" (subscript_expression "param_1[1]" identifier [ number_literal ]) & number_literal)) ;) }))) (expression_statement "(*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);" (call_expression "(*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_sg_get_opcode_sa_name_000578bc)" ( (pointer_expression "*(code *)PTR_sg_get_opcode_sa_name_000578bc" * (cast_expression "(code *)PTR_sg_get_opcode_sa_name_000578bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pbVar6,uVar5,param_2,param_3)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "param_1 = pbVar6;" (assignment_expression "param_1 = pbVar6" identifier = identifier) ;) }))))) })) (if_statement "if (puVar3 == *(undefined1 **)PTR___stack_chk_guard_00057a50) {\n    return *(undefined1 **)PTR___stack_chk_guard_00057a50;\n  }" if (parenthesized_expression "(puVar3 == *(undefined1 **)PTR___stack_chk_guard_00057a50)" ( (binary_expression "puVar3 == *(undefined1 **)PTR___stack_chk_guard_00057a50" identifier == (pointer_expression "*(undefined1 **)PTR___stack_chk_guard_00057a50" * (cast_expression "(undefined1 **)PTR___stack_chk_guard_00057a50" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return *(undefined1 **)PTR___stack_chk_guard_00057a50;\n  }" { (return_statement "return *(undefined1 **)PTR___stack_chk_guard_00057a50;" return (pointer_expression "*(undefined1 **)PTR___stack_chk_guard_00057a50" * (cast_expression "(undefined1 **)PTR___stack_chk_guard_00057a50" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ;) })) (expression_statement "puVar10 = PTR___stack_chk_fail_00057a1c;" (assignment_expression "puVar10 = PTR___stack_chk_fail_00057a1c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00057a1c)();" (call_expression "(*(code *)PTR___stack_chk_fail_00057a1c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00057a1c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00057a1c" * (cast_expression "(code *)PTR___stack_chk_fail_00057a1c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puStack_4c = (undefined1 *)**(int **)(puVar10 + 0x3f114);" (assignment_expression "puStack_4c = (undefined1 *)**(int **)(puVar10 + 0x3f114)" identifier = (cast_expression "(undefined1 *)**(int **)(puVar10 + 0x3f114)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(int **)(puVar10 + 0x3f114)" * (pointer_expression "*(int **)(puVar10 + 0x3f114)" * (cast_expression "(int **)(puVar10 + 0x3f114)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x3f114)" ( (binary_expression "puVar10 + 0x3f114" identifier + number_literal) ))))))) ;) (expression_statement "puVar2 = auStack_cc;" (assignment_expression "puVar2 = auStack_cc" identifier = identifier) ;) (expression_statement "iVar4 = 0x80;" (assignment_expression "iVar4 = 0x80" identifier = number_literal) ;) (expression_statement "puVar3 = puVar2;" (assignment_expression "puVar3 = puVar2" identifier = identifier) ;) (expression_statement "(**(code **)(puVar10 + 0x3ef1c))();" (call_expression "(**(code **)(puVar10 + 0x3ef1c))()" (parenthesized_expression "(**(code **)(puVar10 + 0x3ef1c))" ( (pointer_expression "**(code **)(puVar10 + 0x3ef1c)" * (pointer_expression "*(code **)(puVar10 + 0x3ef1c)" * (cast_expression "(code **)(puVar10 + 0x3ef1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x3ef1c)" ( (binary_expression "puVar10 + 0x3ef1c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (expression_statement "uStack_4d = 0;" (assignment_expression "uStack_4d = 0" identifier = number_literal) ;) (expression_statement "(**(code **)(puVar10 + 0x3efb0))(*(int *)(puVar10 + 0x3ef00) + 0x5114);" (call_expression "(**(code **)(puVar10 + 0x3efb0))(*(int *)(puVar10 + 0x3ef00) + 0x5114)" (parenthesized_expression "(**(code **)(puVar10 + 0x3efb0))" ( (pointer_expression "**(code **)(puVar10 + 0x3efb0)" * (pointer_expression "*(code **)(puVar10 + 0x3efb0)" * (cast_expression "(code **)(puVar10 + 0x3efb0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x3efb0)" ( (binary_expression "puVar10 + 0x3efb0" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar10 + 0x3ef00) + 0x5114)" ( (binary_expression "*(int *)(puVar10 + 0x3ef00) + 0x5114" (pointer_expression "*(int *)(puVar10 + 0x3ef00)" * (cast_expression "(int *)(puVar10 + 0x3ef00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 0x3ef00)" ( (binary_expression "puVar10 + 0x3ef00" identifier + number_literal) )))) + number_literal) ))) ;) (if_statement "if (*param_1 == 0x7f) {\n    iVar9 = param_1[7] + 8;\n  }\n  else {\n    iVar9 = (**(code **)(puVar10 + 0x3f0d8))();\n    if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }\n  }" if (parenthesized_expression "(*param_1 == 0x7f)" ( (binary_expression "*param_1 == 0x7f" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n    iVar9 = param_1[7] + 8;\n  }" { (expression_statement "iVar9 = param_1[7] + 8;" (assignment_expression "iVar9 = param_1[7] + 8" identifier = (binary_expression "param_1[7] + 8" (subscript_expression "param_1[7]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else {\n    iVar9 = (**(code **)(puVar10 + 0x3f0d8))();\n    if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }\n  }" else (compound_statement "{\n    iVar9 = (**(code **)(puVar10 + 0x3f0d8))();\n    if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }\n  }" { (expression_statement "iVar9 = (**(code **)(puVar10 + 0x3f0d8))();" (assignment_expression "iVar9 = (**(code **)(puVar10 + 0x3f0d8))()" identifier = (call_expression "(**(code **)(puVar10 + 0x3f0d8))()" (parenthesized_expression "(**(code **)(puVar10 + 0x3f0d8))" ( (pointer_expression "**(code **)(puVar10 + 0x3f0d8)" * (pointer_expression "*(code **)(puVar10 + 0x3f0d8)" * (cast_expression "(code **)(puVar10 + 0x3f0d8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x3f0d8)" ( (binary_expression "puVar10 + 0x3f0d8" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }" if (parenthesized_expression "(iVar9 < 1)" ( (binary_expression "iVar9 < 1" identifier < number_literal) )) (compound_statement "{\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }" { (expression_statement "iVar9 = *(int *)(puVar10 + 0x3ef04);" (assignment_expression "iVar9 = *(int *)(puVar10 + 0x3ef04)" identifier = (pointer_expression "*(int *)(puVar10 + 0x3ef04)" * (cast_expression "(int *)(puVar10 + 0x3ef04)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 0x3ef04)" ( (binary_expression "puVar10 + 0x3ef04" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_00018a08;" goto statement_identifier ;) })) }))) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "iVar8 = *(int *)(puVar10 + 0x3ef00);" (assignment_expression "iVar8 = *(int *)(puVar10 + 0x3ef00)" identifier = (pointer_expression "*(int *)(puVar10 + 0x3ef00)" * (cast_expression "(int *)(puVar10 + 0x3ef00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 0x3ef00)" ( (binary_expression "puVar10 + 0x3ef00" identifier + number_literal) ))))) ;) (expression_statement "pbVar6 = param_1;" (assignment_expression "pbVar6 = param_1" identifier = identifier) ;) (do_statement "do {\n    puVar2 = (undefined1 *)(uint)*pbVar6;\n    (**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c);\n    iVar7 = iVar7 + 1;\n    pbVar6 = param_1 + iVar7;\n  } while (iVar7 < iVar9);" do (compound_statement "{\n    puVar2 = (undefined1 *)(uint)*pbVar6;\n    (**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c);\n    iVar7 = iVar7 + 1;\n    pbVar6 = param_1 + iVar7;\n  }" { (expression_statement "puVar2 = (undefined1 *)(uint)*pbVar6;" (assignment_expression "puVar2 = (undefined1 *)(uint)*pbVar6" identifier = (binary_expression "(undefined1 *)(uint)*pbVar6" (cast_expression "(undefined1 *)(uint)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uint)" ( identifier ))) * identifier)) ;) (expression_statement "(**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c);" (call_expression "(**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c)" (parenthesized_expression "(**(code **)(puVar10 + 0x3efb0))" ( (pointer_expression "**(code **)(puVar10 + 0x3efb0)" * (pointer_expression "*(code **)(puVar10 + 0x3efb0)" * (cast_expression "(code **)(puVar10 + 0x3efb0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x3efb0)" ( (binary_expression "puVar10 + 0x3efb0" identifier + number_literal) ))))) )) (argument_list "(iVar8 + 0x511c)" ( (binary_expression "iVar8 + 0x511c" identifier + number_literal) ))) ;) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "pbVar6 = param_1 + iVar7;" (assignment_expression "pbVar6 = param_1 + iVar7" identifier = (binary_expression "param_1 + iVar7" identifier + identifier)) ;) }) while (parenthesized_expression "(iVar7 < iVar9)" ( (binary_expression "iVar7 < iVar9" identifier < identifier) )) ;) (expression_statement "iVar9 = *(int *)(puVar10 + 0x3ef04);" (assignment_expression "iVar9 = *(int *)(puVar10 + 0x3ef04)" identifier = (pointer_expression "*(int *)(puVar10 + 0x3ef04)" * (cast_expression "(int *)(puVar10 + 0x3ef04)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 0x3ef04)" ( (binary_expression "puVar10 + 0x3ef04" identifier + number_literal) ))))) ;) (labeled_statement "LAB_00018a08:\n  uVar1 = iVar9 + 0x2918;" statement_identifier : (expression_statement "uVar1 = iVar9 + 0x2918;" (assignment_expression "uVar1 = iVar9 + 0x2918" identifier = (binary_expression "iVar9 + 0x2918" identifier + number_literal)) ;)) (expression_statement "(**(code **)(puVar10 + 0x3efb0))();" (call_expression "(**(code **)(puVar10 + 0x3efb0))()" (parenthesized_expression "(**(code **)(puVar10 + 0x3efb0))" ( (pointer_expression "**(code **)(puVar10 + 0x3efb0)" * (pointer_expression "*(code **)(puVar10 + 0x3efb0)" * (cast_expression "(code **)(puVar10 + 0x3efb0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x3efb0)" ( (binary_expression "puVar10 + 0x3efb0" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (if_statement "if (puStack_4c == (undefined1 *)**(int **)(puVar10 + 0x3f114)) {\n    return (undefined1 *)**(int **)(puVar10 + 0x3f114);\n  }" if (parenthesized_expression "(puStack_4c == (undefined1 *)**(int **)(puVar10 + 0x3f114))" ( (binary_expression "puStack_4c == (undefined1 *)**(int **)(puVar10 + 0x3f114)" identifier == (cast_expression "(undefined1 *)**(int **)(puVar10 + 0x3f114)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(int **)(puVar10 + 0x3f114)" * (pointer_expression "*(int **)(puVar10 + 0x3f114)" * (cast_expression "(int **)(puVar10 + 0x3f114)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x3f114)" ( (binary_expression "puVar10 + 0x3f114" identifier + number_literal) ))))))) )) (compound_statement "{\n    return (undefined1 *)**(int **)(puVar10 + 0x3f114);\n  }" { (return_statement "return (undefined1 *)**(int **)(puVar10 + 0x3f114);" return (cast_expression "(undefined1 *)**(int **)(puVar10 + 0x3f114)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(int **)(puVar10 + 0x3f114)" * (pointer_expression "*(int **)(puVar10 + 0x3f114)" * (cast_expression "(int **)(puVar10 + 0x3f114)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x3f114)" ( (binary_expression "puVar10 + 0x3f114" identifier + number_literal) )))))) ;) })) (expression_statement "pcVar11 = *(code **)(puVar10 + 0x3f0e0);" (assignment_expression "pcVar11 = *(code **)(puVar10 + 0x3f0e0)" identifier = (pointer_expression "*(code **)(puVar10 + 0x3f0e0)" * (cast_expression "(code **)(puVar10 + 0x3f0e0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x3f0e0)" ( (binary_expression "puVar10 + 0x3f0e0" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar11)();" (call_expression "(*pcVar11)()" (parenthesized_expression "(*pcVar11)" ( (pointer_expression "*pcVar11" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "iVar9 = *(int *)(pcVar11 + 0x3ee38);" (assignment_expression "iVar9 = *(int *)(pcVar11 + 0x3ee38)" identifier = (pointer_expression "*(int *)(pcVar11 + 0x3ee38)" * (cast_expression "(int *)(pcVar11 + 0x3ee38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3ee38)" ( (binary_expression "pcVar11 + 0x3ee38" identifier + number_literal) ))))) ;) (if_statement "if (puVar2 == (undefined1 *)0x0) {\n    iVar9 = *(int *)(pcVar11 + 0x3efd0);\n  }" if (parenthesized_expression "(puVar2 == (undefined1 *)0x0)" ( (binary_expression "puVar2 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar9 = *(int *)(pcVar11 + 0x3efd0);\n  }" { (expression_statement "iVar9 = *(int *)(pcVar11 + 0x3efd0);" (assignment_expression "iVar9 = *(int *)(pcVar11 + 0x3efd0)" identifier = (pointer_expression "*(int *)(pcVar11 + 0x3efd0)" * (cast_expression "(int *)(pcVar11 + 0x3efd0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3efd0)" ( (binary_expression "pcVar11 + 0x3efd0" identifier + number_literal) ))))) ;) })) (if_statement "if ((puVar3 != (undefined1 *)0x0) && (0 < iVar4)) {\n    if (iVar4 == 1) {\n      *puVar3 = 0;\n    }\n    else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }\n  }" if (parenthesized_expression "((puVar3 != (undefined1 *)0x0) && (0 < iVar4))" ( (binary_expression "(puVar3 != (undefined1 *)0x0) && (0 < iVar4)" (parenthesized_expression "(puVar3 != (undefined1 *)0x0)" ( (binary_expression "puVar3 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) ))) )) (compound_statement "{\n    if (iVar4 == 1) {\n      *puVar3 = 0;\n    }\n    else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }\n  }" { (if_statement "if (iVar4 == 1) {\n      *puVar3 = 0;\n    }\n    else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }" if (parenthesized_expression "(iVar4 == 1)" ( (binary_expression "iVar4 == 1" identifier == number_literal) )) (compound_statement "{\n      *puVar3 = 0;\n    }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) }) (else_clause "else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }" else (if_statement "if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }" if (parenthesized_expression "(*(int *)(iVar9 + 4) == 0)" ( (binary_expression "*(int *)(iVar9 + 4) == 0" (pointer_expression "*(int *)(iVar9 + 4)" * (cast_expression "(int *)(iVar9 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 4)" ( (binary_expression "iVar9 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }" { (labeled_statement "LAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }" statement_identifier : (if_statement "if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }" if (parenthesized_expression "(puVar2 == (undefined1 *)0x0)" ( (binary_expression "puVar2 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }" { (if_statement "if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }" if (parenthesized_expression "((char)uVar1 < '\0')" ( (binary_expression "(char)uVar1 < '\0'" (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }" { (expression_statement "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);" (call_expression "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0)" (parenthesized_expression "(**(code **)(pcVar11 + 0x3f040))" ( (pointer_expression "**(code **)(pcVar11 + 0x3f040)" * (pointer_expression "*(code **)(pcVar11 + 0x3f040)" * (cast_expression "(code **)(pcVar11 + 0x3f040)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar11 + 0x3f040)" ( (binary_expression "pcVar11 + 0x3f040" identifier + number_literal) ))))) )) (argument_list "(puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0)" ( identifier , identifier , number_literal , number_literal , (binary_expression "*(int *)(pcVar11 + 0x3edcc) + 0x5124" (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" * (cast_expression "(int *)(pcVar11 + 0x3edcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3edcc)" ( (binary_expression "pcVar11 + 0x3edcc" identifier + number_literal) )))) + number_literal) , identifier , (binary_expression "pcVar11 + 0x46da0" identifier + number_literal) ))) ;) }) (else_clause "else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }" else (compound_statement "{\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }" { (expression_statement "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);" (call_expression "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1)" (parenthesized_expression "(**(code **)(pcVar11 + 0x3f040))" ( (pointer_expression "**(code **)(pcVar11 + 0x3f040)" * (pointer_expression "*(code **)(pcVar11 + 0x3f040)" * (cast_expression "(code **)(pcVar11 + 0x3f040)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar11 + 0x3f040)" ( (binary_expression "pcVar11 + 0x3f040" identifier + number_literal) ))))) )) (argument_list "(puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1)" ( identifier , identifier , number_literal , number_literal , (binary_expression "*(int *)(pcVar11 + 0x3edcc) + 0x5168" (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" * (cast_expression "(int *)(pcVar11 + 0x3edcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3edcc)" ( (binary_expression "pcVar11 + 0x3edcc" identifier + number_literal) )))) + number_literal) , identifier ))) ;) }))) }) (else_clause "else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }" else (if_statement "if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }" if (parenthesized_expression "(uVar1 < 0xc0)" ( (binary_expression "uVar1 < 0xc0" identifier < number_literal) )) (compound_statement "{\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }" { (if_statement "if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }" if (parenthesized_expression "((char)uVar1 < '\0')" ( (binary_expression "(char)uVar1 < '\0'" (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }" { (expression_statement "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);" (call_expression "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1)" (parenthesized_expression "(**(code **)(pcVar11 + 0x3f040))" ( (pointer_expression "**(code **)(pcVar11 + 0x3f040)" * (pointer_expression "*(code **)(pcVar11 + 0x3f040)" * (cast_expression "(code **)(pcVar11 + 0x3f040)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar11 + 0x3f040)" ( (binary_expression "pcVar11 + 0x3f040" identifier + number_literal) ))))) )) (argument_list "(puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1)" ( identifier , identifier , number_literal , number_literal , (binary_expression "*(int *)(pcVar11 + 0x3edcc) + 0x5144" (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" * (cast_expression "(int *)(pcVar11 + 0x3edcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3edcc)" ( (binary_expression "pcVar11 + 0x3edcc" identifier + number_literal) )))) + number_literal) , identifier ))) ;) }) (else_clause "else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }" else (compound_statement "{\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }" { (expression_statement "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);" (call_expression "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1)" (parenthesized_expression "(**(code **)(pcVar11 + 0x3f040))" ( (pointer_expression "**(code **)(pcVar11 + 0x3f040)" * (pointer_expression "*(code **)(pcVar11 + 0x3f040)" * (cast_expression "(code **)(pcVar11 + 0x3f040)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar11 + 0x3f040)" ( (binary_expression "pcVar11 + 0x3f040" identifier + number_literal) ))))) )) (argument_list "(puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1)" ( identifier , identifier , number_literal , number_literal , (binary_expression "*(int *)(pcVar11 + 0x3edcc) + 0x5168" (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" * (cast_expression "(int *)(pcVar11 + 0x3edcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3edcc)" ( (binary_expression "pcVar11 + 0x3edcc" identifier + number_literal) )))) + number_literal) , identifier ))) ;) }))) }) (else_clause "else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }" else (compound_statement "{\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }" { (expression_statement "(**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);" (call_expression "(**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1)" (parenthesized_expression "(**(code **)(pcVar11 + 0x3f040))" ( (pointer_expression "**(code **)(pcVar11 + 0x3f040)" * (pointer_expression "*(code **)(pcVar11 + 0x3f040)" * (cast_expression "(code **)(pcVar11 + 0x3f040)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar11 + 0x3f040)" ( (binary_expression "pcVar11 + 0x3f040" identifier + number_literal) ))))) )) (argument_list "(puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1)" ( identifier , identifier , number_literal , number_literal , (binary_expression "*(int *)(pcVar11 + 0x3edcc) + 0x5124" (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" * (cast_expression "(int *)(pcVar11 + 0x3edcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3edcc)" ( (binary_expression "pcVar11 + 0x3edcc" identifier + number_literal) )))) + number_literal) , identifier ))) ;) })))))) }) (else_clause "else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }" else (compound_statement "{\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }" { (expression_statement "iVar7 = *(int *)(pcVar11 + 0x3edcc);" (assignment_expression "iVar7 = *(int *)(pcVar11 + 0x3edcc)" identifier = (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" * (cast_expression "(int *)(pcVar11 + 0x3edcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3edcc)" ( (binary_expression "pcVar11 + 0x3edcc" identifier + number_literal) ))))) ;) (if_statement "if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }" if (parenthesized_expression "(uVar1 != *(byte *)(iVar9 + 3))" ( (binary_expression "uVar1 != *(byte *)(iVar9 + 3)" identifier != (pointer_expression "*(byte *)(iVar9 + 3)" * (cast_expression "(byte *)(iVar9 + 3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 3)" ( (binary_expression "iVar9 + 3" identifier + number_literal) ))))) )) (compound_statement "{\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }" { (do_statement "do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);" do (compound_statement "{\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        }" { (if_statement "if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;" if (parenthesized_expression "(*(int *)(iVar9 + 0xc) == 0)" ( (binary_expression "*(int *)(iVar9 + 0xc) == 0" (pointer_expression "*(int *)(iVar9 + 0xc)" * (cast_expression "(int *)(iVar9 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0xc)" ( (binary_expression "iVar9 + 0xc" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_00018b24;" goto statement_identifier ;)) (expression_statement "pbVar6 = (byte *)(iVar9 + 0xb);" (assignment_expression "pbVar6 = (byte *)(iVar9 + 0xb)" identifier = (cast_expression "(byte *)(iVar9 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0xb)" ( (binary_expression "iVar9 + 0xb" identifier + number_literal) )))) ;) (expression_statement "iVar9 = iVar9 + 8;" (assignment_expression "iVar9 = iVar9 + 8" identifier = (binary_expression "iVar9 + 8" identifier + number_literal)) ;) }) while (parenthesized_expression "(*pbVar6 != uVar1)" ( (binary_expression "*pbVar6 != uVar1" (pointer_expression "*pbVar6" * identifier) != identifier) )) ;) (expression_statement "iVar7 = *(int *)(pcVar11 + 0x3edcc);" (assignment_expression "iVar7 = *(int *)(pcVar11 + 0x3edcc)" identifier = (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" * (cast_expression "(int *)(pcVar11 + 0x3edcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3edcc)" ( (binary_expression "pcVar11 + 0x3edcc" identifier + number_literal) ))))) ;) })) (expression_statement "(**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);" (call_expression "(**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0)" (parenthesized_expression "(**(code **)(pcVar11 + 0x3eef4))" ( (pointer_expression "**(code **)(pcVar11 + 0x3eef4)" * (pointer_expression "*(code **)(pcVar11 + 0x3eef4)" * (cast_expression "(code **)(pcVar11 + 0x3eef4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar11 + 0x3eef4)" ( (binary_expression "pcVar11 + 0x3eef4" identifier + number_literal) ))))) )) (argument_list "(puVar3,iVar4,iVar7 + 0x50e0)" ( identifier , identifier , (binary_expression "iVar7 + 0x50e0" identifier + number_literal) ))) ;) }))))) })) (return_statement "return puVar3;" return identifier ;) })))
(translation_unit "void sg_get_command_name(uint8_t *cmdp,int peri_type,int buff_len,char *buff)\n\n{\n  uint uVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  ushort uVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined *puVar10;\n  code *pcVar11;\n  undefined1 auStack_cc [127];\n  undefined1 uStack_4d;\n  int iStack_4c;\n  uint16_t u;\n  \n  iVar3 = *(int *)PTR___stack_chk_guard_00057a50;\n  if ((buff != (char *)0x0) && (0 < buff_len)) {\n    if (buff_len == 1) {\n      *buff = '\0';\n    }\n    else if (cmdp == (uint8_t *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (buff,buff_len,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      cmdp = (uint8_t *)buff;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*cmdp;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(cmdp + 8);\n      }\n      else {\n        uVar5 = cmdp[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,peri_type,buff_len);\n      cmdp = pbVar6;\n    }\n  }\n  if (iVar3 == *(int *)PTR___stack_chk_guard_00057a50) {\n    return;\n  }\n  puVar10 = PTR___stack_chk_fail_00057a1c;\n  (*(code *)PTR___stack_chk_fail_00057a1c)();\n  iStack_4c = **(int **)(puVar10 + 0x3f114);\n  puVar2 = auStack_cc;\n  iVar3 = 0x80;\n  puVar4 = puVar2;\n  (**(code **)(puVar10 + 0x3ef1c))();\n  uStack_4d = 0;\n  (**(code **)(puVar10 + 0x3efb0))(*(int *)(puVar10 + 0x3ef00) + 0x5114);\n  if (*cmdp == 0x7f) {\n    iVar9 = cmdp[7] + 8;\n  }\n  else {\n    iVar9 = (**(code **)(puVar10 + 0x3f0d8))();\n    if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }\n  }\n  iVar7 = 0;\n  iVar8 = *(int *)(puVar10 + 0x3ef00);\n  pbVar6 = cmdp;\n  do {\n    puVar2 = (undefined1 *)(uint)*pbVar6;\n    (**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c);\n    iVar7 = iVar7 + 1;\n    pbVar6 = cmdp + iVar7;\n  } while (iVar7 < iVar9);\n  iVar9 = *(int *)(puVar10 + 0x3ef04);\nLAB_00018a08:\n  uVar1 = iVar9 + 0x2918;\n  (**(code **)(puVar10 + 0x3efb0))();\n  if (iStack_4c == **(int **)(puVar10 + 0x3f114)) {\n    return;\n  }\n  pcVar11 = *(code **)(puVar10 + 0x3f0e0);\n  (*pcVar11)();\n  iVar9 = *(int *)(pcVar11 + 0x3ee38);\n  if (puVar2 == (undefined1 *)0x0) {\n    iVar9 = *(int *)(pcVar11 + 0x3efd0);\n  }\n  if ((puVar4 != (undefined1 *)0x0) && (0 < iVar3)) {\n    if (iVar3 == 1) {\n      *puVar4 = 0;\n    }\n    else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar4,iVar3,iVar7 + 0x50e0);\n    }\n  }\n  return;\n}\n\n" (function_definition "void sg_get_command_name(uint8_t *cmdp,int peri_type,int buff_len,char *buff)\n\n{\n  uint uVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  ushort uVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined *puVar10;\n  code *pcVar11;\n  undefined1 auStack_cc [127];\n  undefined1 uStack_4d;\n  int iStack_4c;\n  uint16_t u;\n  \n  iVar3 = *(int *)PTR___stack_chk_guard_00057a50;\n  if ((buff != (char *)0x0) && (0 < buff_len)) {\n    if (buff_len == 1) {\n      *buff = '\0';\n    }\n    else if (cmdp == (uint8_t *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (buff,buff_len,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      cmdp = (uint8_t *)buff;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*cmdp;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(cmdp + 8);\n      }\n      else {\n        uVar5 = cmdp[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,peri_type,buff_len);\n      cmdp = pbVar6;\n    }\n  }\n  if (iVar3 == *(int *)PTR___stack_chk_guard_00057a50) {\n    return;\n  }\n  puVar10 = PTR___stack_chk_fail_00057a1c;\n  (*(code *)PTR___stack_chk_fail_00057a1c)();\n  iStack_4c = **(int **)(puVar10 + 0x3f114);\n  puVar2 = auStack_cc;\n  iVar3 = 0x80;\n  puVar4 = puVar2;\n  (**(code **)(puVar10 + 0x3ef1c))();\n  uStack_4d = 0;\n  (**(code **)(puVar10 + 0x3efb0))(*(int *)(puVar10 + 0x3ef00) + 0x5114);\n  if (*cmdp == 0x7f) {\n    iVar9 = cmdp[7] + 8;\n  }\n  else {\n    iVar9 = (**(code **)(puVar10 + 0x3f0d8))();\n    if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }\n  }\n  iVar7 = 0;\n  iVar8 = *(int *)(puVar10 + 0x3ef00);\n  pbVar6 = cmdp;\n  do {\n    puVar2 = (undefined1 *)(uint)*pbVar6;\n    (**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c);\n    iVar7 = iVar7 + 1;\n    pbVar6 = cmdp + iVar7;\n  } while (iVar7 < iVar9);\n  iVar9 = *(int *)(puVar10 + 0x3ef04);\nLAB_00018a08:\n  uVar1 = iVar9 + 0x2918;\n  (**(code **)(puVar10 + 0x3efb0))();\n  if (iStack_4c == **(int **)(puVar10 + 0x3f114)) {\n    return;\n  }\n  pcVar11 = *(code **)(puVar10 + 0x3f0e0);\n  (*pcVar11)();\n  iVar9 = *(int *)(pcVar11 + 0x3ee38);\n  if (puVar2 == (undefined1 *)0x0) {\n    iVar9 = *(int *)(pcVar11 + 0x3efd0);\n  }\n  if ((puVar4 != (undefined1 *)0x0) && (0 < iVar3)) {\n    if (iVar3 == 1) {\n      *puVar4 = 0;\n    }\n    else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar4,iVar3,iVar7 + 0x50e0);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "sg_get_command_name(uint8_t *cmdp,int peri_type,int buff_len,char *buff)" identifier (parameter_list "(uint8_t *cmdp,int peri_type,int buff_len,char *buff)" ( (parameter_declaration "uint8_t *cmdp" primitive_type (pointer_declarator "*cmdp" * identifier)) , (parameter_declaration "int peri_type" primitive_type identifier) , (parameter_declaration "int buff_len" primitive_type identifier) , (parameter_declaration "char *buff" primitive_type (pointer_declarator "*buff" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  ushort uVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined *puVar10;\n  code *pcVar11;\n  undefined1 auStack_cc [127];\n  undefined1 uStack_4d;\n  int iStack_4c;\n  uint16_t u;\n  \n  iVar3 = *(int *)PTR___stack_chk_guard_00057a50;\n  if ((buff != (char *)0x0) && (0 < buff_len)) {\n    if (buff_len == 1) {\n      *buff = '\0';\n    }\n    else if (cmdp == (uint8_t *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (buff,buff_len,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      cmdp = (uint8_t *)buff;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*cmdp;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(cmdp + 8);\n      }\n      else {\n        uVar5 = cmdp[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,peri_type,buff_len);\n      cmdp = pbVar6;\n    }\n  }\n  if (iVar3 == *(int *)PTR___stack_chk_guard_00057a50) {\n    return;\n  }\n  puVar10 = PTR___stack_chk_fail_00057a1c;\n  (*(code *)PTR___stack_chk_fail_00057a1c)();\n  iStack_4c = **(int **)(puVar10 + 0x3f114);\n  puVar2 = auStack_cc;\n  iVar3 = 0x80;\n  puVar4 = puVar2;\n  (**(code **)(puVar10 + 0x3ef1c))();\n  uStack_4d = 0;\n  (**(code **)(puVar10 + 0x3efb0))(*(int *)(puVar10 + 0x3ef00) + 0x5114);\n  if (*cmdp == 0x7f) {\n    iVar9 = cmdp[7] + 8;\n  }\n  else {\n    iVar9 = (**(code **)(puVar10 + 0x3f0d8))();\n    if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }\n  }\n  iVar7 = 0;\n  iVar8 = *(int *)(puVar10 + 0x3ef00);\n  pbVar6 = cmdp;\n  do {\n    puVar2 = (undefined1 *)(uint)*pbVar6;\n    (**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c);\n    iVar7 = iVar7 + 1;\n    pbVar6 = cmdp + iVar7;\n  } while (iVar7 < iVar9);\n  iVar9 = *(int *)(puVar10 + 0x3ef04);\nLAB_00018a08:\n  uVar1 = iVar9 + 0x2918;\n  (**(code **)(puVar10 + 0x3efb0))();\n  if (iStack_4c == **(int **)(puVar10 + 0x3f114)) {\n    return;\n  }\n  pcVar11 = *(code **)(puVar10 + 0x3f0e0);\n  (*pcVar11)();\n  iVar9 = *(int *)(pcVar11 + 0x3ee38);\n  if (puVar2 == (undefined1 *)0x0) {\n    iVar9 = *(int *)(pcVar11 + 0x3efd0);\n  }\n  if ((puVar4 != (undefined1 *)0x0) && (0 < iVar3)) {\n    if (iVar3 == 1) {\n      *puVar4 = 0;\n    }\n    else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar4,iVar3,iVar7 + 0x50e0);\n    }\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "ushort uVar5;" type_identifier identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "code *pcVar11;" type_identifier (pointer_declarator "*pcVar11" * identifier) ;) (declaration "undefined1 auStack_cc [127];" type_identifier (array_declarator "auStack_cc [127]" identifier [ number_literal ]) ;) (declaration "undefined1 uStack_4d;" type_identifier identifier ;) (declaration "int iStack_4c;" primitive_type identifier ;) (declaration "uint16_t u;" primitive_type identifier ;) (expression_statement "iVar3 = *(int *)PTR___stack_chk_guard_00057a50;" (assignment_expression "iVar3 = *(int *)PTR___stack_chk_guard_00057a50" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00057a50" * (cast_expression "(int *)PTR___stack_chk_guard_00057a50" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((buff != (char *)0x0) && (0 < buff_len)) {\n    if (buff_len == 1) {\n      *buff = '\0';\n    }\n    else if (cmdp == (uint8_t *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (buff,buff_len,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      cmdp = (uint8_t *)buff;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*cmdp;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(cmdp + 8);\n      }\n      else {\n        uVar5 = cmdp[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,peri_type,buff_len);\n      cmdp = pbVar6;\n    }\n  }" if (parenthesized_expression "((buff != (char *)0x0) && (0 < buff_len))" ( (binary_expression "(buff != (char *)0x0) && (0 < buff_len)" (parenthesized_expression "(buff != (char *)0x0)" ( (binary_expression "buff != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(0 < buff_len)" ( (binary_expression "0 < buff_len" number_literal < identifier) ))) )) (compound_statement "{\n    if (buff_len == 1) {\n      *buff = '\0';\n    }\n    else if (cmdp == (uint8_t *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (buff,buff_len,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      cmdp = (uint8_t *)buff;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*cmdp;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(cmdp + 8);\n      }\n      else {\n        uVar5 = cmdp[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,peri_type,buff_len);\n      cmdp = pbVar6;\n    }\n  }" { (if_statement "if (buff_len == 1) {\n      *buff = '\0';\n    }\n    else if (cmdp == (uint8_t *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (buff,buff_len,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      cmdp = (uint8_t *)buff;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*cmdp;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(cmdp + 8);\n      }\n      else {\n        uVar5 = cmdp[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,peri_type,buff_len);\n      cmdp = pbVar6;\n    }" if (parenthesized_expression "(buff_len == 1)" ( (binary_expression "buff_len == 1" identifier == number_literal) )) (compound_statement "{\n      *buff = '\0';\n    }" { (expression_statement "*buff = '\0';" (assignment_expression "*buff = '\0'" (pointer_expression "*buff" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else if (cmdp == (uint8_t *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (buff,buff_len,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      cmdp = (uint8_t *)buff;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*cmdp;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(cmdp + 8);\n      }\n      else {\n        uVar5 = cmdp[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,peri_type,buff_len);\n      cmdp = pbVar6;\n    }" else (if_statement "if (cmdp == (uint8_t *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (buff,buff_len,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      cmdp = (uint8_t *)buff;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*cmdp;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(cmdp + 8);\n      }\n      else {\n        uVar5 = cmdp[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,peri_type,buff_len);\n      cmdp = pbVar6;\n    }" if (parenthesized_expression "(cmdp == (uint8_t *)0x0)" ( (binary_expression "cmdp == (uint8_t *)0x0" identifier == (cast_expression "(uint8_t *)0x0" ( (type_descriptor "uint8_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*(code *)PTR_sg_scnpr_00057904)\n                (buff,buff_len,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      cmdp = (uint8_t *)buff;\n    }" { (expression_statement "(*(code *)PTR_sg_scnpr_00057904)\n                (buff,buff_len,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);" (call_expression "(*(code *)PTR_sg_scnpr_00057904)\n                (buff,buff_len,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc)" (parenthesized_expression "(*(code *)PTR_sg_scnpr_00057904)" ( (pointer_expression "*(code *)PTR_sg_scnpr_00057904" * (cast_expression "(code *)PTR_sg_scnpr_00057904" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(buff,buff_len,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc)" ( identifier , identifier , (binary_expression "PTR_LAB_0005783c + 0x50e0" identifier + number_literal) , (binary_expression "PTR_LAB_0005783c + 0x50fc" identifier + number_literal) ))) ;) (expression_statement "cmdp = (uint8_t *)buff;" (assignment_expression "cmdp = (uint8_t *)buff" identifier = (cast_expression "(uint8_t *)buff" ( (type_descriptor "uint8_t *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) }) (else_clause "else {\n      pbVar6 = (byte *)(uint)*cmdp;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(cmdp + 8);\n      }\n      else {\n        uVar5 = cmdp[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,peri_type,buff_len);\n      cmdp = pbVar6;\n    }" else (compound_statement "{\n      pbVar6 = (byte *)(uint)*cmdp;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(cmdp + 8);\n      }\n      else {\n        uVar5 = cmdp[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,peri_type,buff_len);\n      cmdp = pbVar6;\n    }" { (expression_statement "pbVar6 = (byte *)(uint)*cmdp;" (assignment_expression "pbVar6 = (byte *)(uint)*cmdp" identifier = (binary_expression "(byte *)(uint)*cmdp" (cast_expression "(byte *)(uint)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uint)" ( identifier ))) * identifier)) ;) (if_statement "if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(cmdp + 8);\n      }\n      else {\n        uVar5 = cmdp[1] & 0x1f;\n      }" if (parenthesized_expression "(pbVar6 == (byte *)0x7f)" ( (binary_expression "pbVar6 == (byte *)0x7f" identifier == (cast_expression "(byte *)0x7f" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        uVar5 = *(ushort *)(cmdp + 8);\n      }" { (expression_statement "uVar5 = *(ushort *)(cmdp + 8);" (assignment_expression "uVar5 = *(ushort *)(cmdp + 8)" identifier = (pointer_expression "*(ushort *)(cmdp + 8)" * (cast_expression "(ushort *)(cmdp + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(cmdp + 8)" ( (binary_expression "cmdp + 8" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        uVar5 = cmdp[1] & 0x1f;\n      }" else (compound_statement "{\n        uVar5 = cmdp[1] & 0x1f;\n      }" { (expression_statement "uVar5 = cmdp[1] & 0x1f;" (assignment_expression "uVar5 = cmdp[1] & 0x1f" identifier = (binary_expression "cmdp[1] & 0x1f" (subscript_expression "cmdp[1]" identifier [ number_literal ]) & number_literal)) ;) }))) (expression_statement "(*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,peri_type,buff_len);" (call_expression "(*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,peri_type,buff_len)" (parenthesized_expression "(*(code *)PTR_sg_get_opcode_sa_name_000578bc)" ( (pointer_expression "*(code *)PTR_sg_get_opcode_sa_name_000578bc" * (cast_expression "(code *)PTR_sg_get_opcode_sa_name_000578bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pbVar6,uVar5,peri_type,buff_len)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "cmdp = pbVar6;" (assignment_expression "cmdp = pbVar6" identifier = identifier) ;) }))))) })) (if_statement "if (iVar3 == *(int *)PTR___stack_chk_guard_00057a50) {\n    return;\n  }" if (parenthesized_expression "(iVar3 == *(int *)PTR___stack_chk_guard_00057a50)" ( (binary_expression "iVar3 == *(int *)PTR___stack_chk_guard_00057a50" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_00057a50" * (cast_expression "(int *)PTR___stack_chk_guard_00057a50" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar10 = PTR___stack_chk_fail_00057a1c;" (assignment_expression "puVar10 = PTR___stack_chk_fail_00057a1c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00057a1c)();" (call_expression "(*(code *)PTR___stack_chk_fail_00057a1c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00057a1c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00057a1c" * (cast_expression "(code *)PTR___stack_chk_fail_00057a1c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iStack_4c = **(int **)(puVar10 + 0x3f114);" (assignment_expression "iStack_4c = **(int **)(puVar10 + 0x3f114)" identifier = (pointer_expression "**(int **)(puVar10 + 0x3f114)" * (pointer_expression "*(int **)(puVar10 + 0x3f114)" * (cast_expression "(int **)(puVar10 + 0x3f114)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x3f114)" ( (binary_expression "puVar10 + 0x3f114" identifier + number_literal) )))))) ;) (expression_statement "puVar2 = auStack_cc;" (assignment_expression "puVar2 = auStack_cc" identifier = identifier) ;) (expression_statement "iVar3 = 0x80;" (assignment_expression "iVar3 = 0x80" identifier = number_literal) ;) (expression_statement "puVar4 = puVar2;" (assignment_expression "puVar4 = puVar2" identifier = identifier) ;) (expression_statement "(**(code **)(puVar10 + 0x3ef1c))();" (call_expression "(**(code **)(puVar10 + 0x3ef1c))()" (parenthesized_expression "(**(code **)(puVar10 + 0x3ef1c))" ( (pointer_expression "**(code **)(puVar10 + 0x3ef1c)" * (pointer_expression "*(code **)(puVar10 + 0x3ef1c)" * (cast_expression "(code **)(puVar10 + 0x3ef1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x3ef1c)" ( (binary_expression "puVar10 + 0x3ef1c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (expression_statement "uStack_4d = 0;" (assignment_expression "uStack_4d = 0" identifier = number_literal) ;) (expression_statement "(**(code **)(puVar10 + 0x3efb0))(*(int *)(puVar10 + 0x3ef00) + 0x5114);" (call_expression "(**(code **)(puVar10 + 0x3efb0))(*(int *)(puVar10 + 0x3ef00) + 0x5114)" (parenthesized_expression "(**(code **)(puVar10 + 0x3efb0))" ( (pointer_expression "**(code **)(puVar10 + 0x3efb0)" * (pointer_expression "*(code **)(puVar10 + 0x3efb0)" * (cast_expression "(code **)(puVar10 + 0x3efb0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x3efb0)" ( (binary_expression "puVar10 + 0x3efb0" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar10 + 0x3ef00) + 0x5114)" ( (binary_expression "*(int *)(puVar10 + 0x3ef00) + 0x5114" (pointer_expression "*(int *)(puVar10 + 0x3ef00)" * (cast_expression "(int *)(puVar10 + 0x3ef00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 0x3ef00)" ( (binary_expression "puVar10 + 0x3ef00" identifier + number_literal) )))) + number_literal) ))) ;) (if_statement "if (*cmdp == 0x7f) {\n    iVar9 = cmdp[7] + 8;\n  }\n  else {\n    iVar9 = (**(code **)(puVar10 + 0x3f0d8))();\n    if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }\n  }" if (parenthesized_expression "(*cmdp == 0x7f)" ( (binary_expression "*cmdp == 0x7f" (pointer_expression "*cmdp" * identifier) == number_literal) )) (compound_statement "{\n    iVar9 = cmdp[7] + 8;\n  }" { (expression_statement "iVar9 = cmdp[7] + 8;" (assignment_expression "iVar9 = cmdp[7] + 8" identifier = (binary_expression "cmdp[7] + 8" (subscript_expression "cmdp[7]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else {\n    iVar9 = (**(code **)(puVar10 + 0x3f0d8))();\n    if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }\n  }" else (compound_statement "{\n    iVar9 = (**(code **)(puVar10 + 0x3f0d8))();\n    if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }\n  }" { (expression_statement "iVar9 = (**(code **)(puVar10 + 0x3f0d8))();" (assignment_expression "iVar9 = (**(code **)(puVar10 + 0x3f0d8))()" identifier = (call_expression "(**(code **)(puVar10 + 0x3f0d8))()" (parenthesized_expression "(**(code **)(puVar10 + 0x3f0d8))" ( (pointer_expression "**(code **)(puVar10 + 0x3f0d8)" * (pointer_expression "*(code **)(puVar10 + 0x3f0d8)" * (cast_expression "(code **)(puVar10 + 0x3f0d8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x3f0d8)" ( (binary_expression "puVar10 + 0x3f0d8" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }" if (parenthesized_expression "(iVar9 < 1)" ( (binary_expression "iVar9 < 1" identifier < number_literal) )) (compound_statement "{\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }" { (expression_statement "iVar9 = *(int *)(puVar10 + 0x3ef04);" (assignment_expression "iVar9 = *(int *)(puVar10 + 0x3ef04)" identifier = (pointer_expression "*(int *)(puVar10 + 0x3ef04)" * (cast_expression "(int *)(puVar10 + 0x3ef04)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 0x3ef04)" ( (binary_expression "puVar10 + 0x3ef04" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_00018a08;" goto statement_identifier ;) })) }))) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "iVar8 = *(int *)(puVar10 + 0x3ef00);" (assignment_expression "iVar8 = *(int *)(puVar10 + 0x3ef00)" identifier = (pointer_expression "*(int *)(puVar10 + 0x3ef00)" * (cast_expression "(int *)(puVar10 + 0x3ef00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 0x3ef00)" ( (binary_expression "puVar10 + 0x3ef00" identifier + number_literal) ))))) ;) (expression_statement "pbVar6 = cmdp;" (assignment_expression "pbVar6 = cmdp" identifier = identifier) ;) (do_statement "do {\n    puVar2 = (undefined1 *)(uint)*pbVar6;\n    (**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c);\n    iVar7 = iVar7 + 1;\n    pbVar6 = cmdp + iVar7;\n  } while (iVar7 < iVar9);" do (compound_statement "{\n    puVar2 = (undefined1 *)(uint)*pbVar6;\n    (**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c);\n    iVar7 = iVar7 + 1;\n    pbVar6 = cmdp + iVar7;\n  }" { (expression_statement "puVar2 = (undefined1 *)(uint)*pbVar6;" (assignment_expression "puVar2 = (undefined1 *)(uint)*pbVar6" identifier = (binary_expression "(undefined1 *)(uint)*pbVar6" (cast_expression "(undefined1 *)(uint)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uint)" ( identifier ))) * identifier)) ;) (expression_statement "(**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c);" (call_expression "(**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c)" (parenthesized_expression "(**(code **)(puVar10 + 0x3efb0))" ( (pointer_expression "**(code **)(puVar10 + 0x3efb0)" * (pointer_expression "*(code **)(puVar10 + 0x3efb0)" * (cast_expression "(code **)(puVar10 + 0x3efb0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x3efb0)" ( (binary_expression "puVar10 + 0x3efb0" identifier + number_literal) ))))) )) (argument_list "(iVar8 + 0x511c)" ( (binary_expression "iVar8 + 0x511c" identifier + number_literal) ))) ;) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "pbVar6 = cmdp + iVar7;" (assignment_expression "pbVar6 = cmdp + iVar7" identifier = (binary_expression "cmdp + iVar7" identifier + identifier)) ;) }) while (parenthesized_expression "(iVar7 < iVar9)" ( (binary_expression "iVar7 < iVar9" identifier < identifier) )) ;) (expression_statement "iVar9 = *(int *)(puVar10 + 0x3ef04);" (assignment_expression "iVar9 = *(int *)(puVar10 + 0x3ef04)" identifier = (pointer_expression "*(int *)(puVar10 + 0x3ef04)" * (cast_expression "(int *)(puVar10 + 0x3ef04)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 0x3ef04)" ( (binary_expression "puVar10 + 0x3ef04" identifier + number_literal) ))))) ;) (labeled_statement "LAB_00018a08:\n  uVar1 = iVar9 + 0x2918;" statement_identifier : (expression_statement "uVar1 = iVar9 + 0x2918;" (assignment_expression "uVar1 = iVar9 + 0x2918" identifier = (binary_expression "iVar9 + 0x2918" identifier + number_literal)) ;)) (expression_statement "(**(code **)(puVar10 + 0x3efb0))();" (call_expression "(**(code **)(puVar10 + 0x3efb0))()" (parenthesized_expression "(**(code **)(puVar10 + 0x3efb0))" ( (pointer_expression "**(code **)(puVar10 + 0x3efb0)" * (pointer_expression "*(code **)(puVar10 + 0x3efb0)" * (cast_expression "(code **)(puVar10 + 0x3efb0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x3efb0)" ( (binary_expression "puVar10 + 0x3efb0" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (if_statement "if (iStack_4c == **(int **)(puVar10 + 0x3f114)) {\n    return;\n  }" if (parenthesized_expression "(iStack_4c == **(int **)(puVar10 + 0x3f114))" ( (binary_expression "iStack_4c == **(int **)(puVar10 + 0x3f114)" identifier == (pointer_expression "**(int **)(puVar10 + 0x3f114)" * (pointer_expression "*(int **)(puVar10 + 0x3f114)" * (cast_expression "(int **)(puVar10 + 0x3f114)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x3f114)" ( (binary_expression "puVar10 + 0x3f114" identifier + number_literal) )))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "pcVar11 = *(code **)(puVar10 + 0x3f0e0);" (assignment_expression "pcVar11 = *(code **)(puVar10 + 0x3f0e0)" identifier = (pointer_expression "*(code **)(puVar10 + 0x3f0e0)" * (cast_expression "(code **)(puVar10 + 0x3f0e0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x3f0e0)" ( (binary_expression "puVar10 + 0x3f0e0" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar11)();" (call_expression "(*pcVar11)()" (parenthesized_expression "(*pcVar11)" ( (pointer_expression "*pcVar11" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "iVar9 = *(int *)(pcVar11 + 0x3ee38);" (assignment_expression "iVar9 = *(int *)(pcVar11 + 0x3ee38)" identifier = (pointer_expression "*(int *)(pcVar11 + 0x3ee38)" * (cast_expression "(int *)(pcVar11 + 0x3ee38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3ee38)" ( (binary_expression "pcVar11 + 0x3ee38" identifier + number_literal) ))))) ;) (if_statement "if (puVar2 == (undefined1 *)0x0) {\n    iVar9 = *(int *)(pcVar11 + 0x3efd0);\n  }" if (parenthesized_expression "(puVar2 == (undefined1 *)0x0)" ( (binary_expression "puVar2 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar9 = *(int *)(pcVar11 + 0x3efd0);\n  }" { (expression_statement "iVar9 = *(int *)(pcVar11 + 0x3efd0);" (assignment_expression "iVar9 = *(int *)(pcVar11 + 0x3efd0)" identifier = (pointer_expression "*(int *)(pcVar11 + 0x3efd0)" * (cast_expression "(int *)(pcVar11 + 0x3efd0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3efd0)" ( (binary_expression "pcVar11 + 0x3efd0" identifier + number_literal) ))))) ;) })) (if_statement "if ((puVar4 != (undefined1 *)0x0) && (0 < iVar3)) {\n    if (iVar3 == 1) {\n      *puVar4 = 0;\n    }\n    else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar4,iVar3,iVar7 + 0x50e0);\n    }\n  }" if (parenthesized_expression "((puVar4 != (undefined1 *)0x0) && (0 < iVar3))" ( (binary_expression "(puVar4 != (undefined1 *)0x0) && (0 < iVar3)" (parenthesized_expression "(puVar4 != (undefined1 *)0x0)" ( (binary_expression "puVar4 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) ))) )) (compound_statement "{\n    if (iVar3 == 1) {\n      *puVar4 = 0;\n    }\n    else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar4,iVar3,iVar7 + 0x50e0);\n    }\n  }" { (if_statement "if (iVar3 == 1) {\n      *puVar4 = 0;\n    }\n    else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar4,iVar3,iVar7 + 0x50e0);\n    }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n      *puVar4 = 0;\n    }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) }) (else_clause "else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar4,iVar3,iVar7 + 0x50e0);\n    }" else (if_statement "if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar4,iVar3,iVar7 + 0x50e0);\n    }" if (parenthesized_expression "(*(int *)(iVar9 + 4) == 0)" ( (binary_expression "*(int *)(iVar9 + 4) == 0" (pointer_expression "*(int *)(iVar9 + 4)" * (cast_expression "(int *)(iVar9 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 4)" ( (binary_expression "iVar9 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }" { (labeled_statement "LAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }" statement_identifier : (if_statement "if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }" if (parenthesized_expression "(puVar2 == (undefined1 *)0x0)" ( (binary_expression "puVar2 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }" { (if_statement "if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }" if (parenthesized_expression "((char)uVar1 < '\0')" ( (binary_expression "(char)uVar1 < '\0'" (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }" { (expression_statement "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);" (call_expression "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0)" (parenthesized_expression "(**(code **)(pcVar11 + 0x3f040))" ( (pointer_expression "**(code **)(pcVar11 + 0x3f040)" * (pointer_expression "*(code **)(pcVar11 + 0x3f040)" * (cast_expression "(code **)(pcVar11 + 0x3f040)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar11 + 0x3f040)" ( (binary_expression "pcVar11 + 0x3f040" identifier + number_literal) ))))) )) (argument_list "(puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0)" ( identifier , identifier , number_literal , number_literal , (binary_expression "*(int *)(pcVar11 + 0x3edcc) + 0x5124" (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" * (cast_expression "(int *)(pcVar11 + 0x3edcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3edcc)" ( (binary_expression "pcVar11 + 0x3edcc" identifier + number_literal) )))) + number_literal) , identifier , (binary_expression "pcVar11 + 0x46da0" identifier + number_literal) ))) ;) }) (else_clause "else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }" else (compound_statement "{\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }" { (expression_statement "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);" (call_expression "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1)" (parenthesized_expression "(**(code **)(pcVar11 + 0x3f040))" ( (pointer_expression "**(code **)(pcVar11 + 0x3f040)" * (pointer_expression "*(code **)(pcVar11 + 0x3f040)" * (cast_expression "(code **)(pcVar11 + 0x3f040)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar11 + 0x3f040)" ( (binary_expression "pcVar11 + 0x3f040" identifier + number_literal) ))))) )) (argument_list "(puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1)" ( identifier , identifier , number_literal , number_literal , (binary_expression "*(int *)(pcVar11 + 0x3edcc) + 0x5168" (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" * (cast_expression "(int *)(pcVar11 + 0x3edcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3edcc)" ( (binary_expression "pcVar11 + 0x3edcc" identifier + number_literal) )))) + number_literal) , identifier ))) ;) }))) }) (else_clause "else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }" else (if_statement "if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }" if (parenthesized_expression "(uVar1 < 0xc0)" ( (binary_expression "uVar1 < 0xc0" identifier < number_literal) )) (compound_statement "{\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }" { (if_statement "if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }" if (parenthesized_expression "((char)uVar1 < '\0')" ( (binary_expression "(char)uVar1 < '\0'" (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }" { (expression_statement "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);" (call_expression "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1)" (parenthesized_expression "(**(code **)(pcVar11 + 0x3f040))" ( (pointer_expression "**(code **)(pcVar11 + 0x3f040)" * (pointer_expression "*(code **)(pcVar11 + 0x3f040)" * (cast_expression "(code **)(pcVar11 + 0x3f040)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar11 + 0x3f040)" ( (binary_expression "pcVar11 + 0x3f040" identifier + number_literal) ))))) )) (argument_list "(puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1)" ( identifier , identifier , number_literal , number_literal , (binary_expression "*(int *)(pcVar11 + 0x3edcc) + 0x5144" (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" * (cast_expression "(int *)(pcVar11 + 0x3edcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3edcc)" ( (binary_expression "pcVar11 + 0x3edcc" identifier + number_literal) )))) + number_literal) , identifier ))) ;) }) (else_clause "else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }" else (compound_statement "{\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }" { (expression_statement "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);" (call_expression "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1)" (parenthesized_expression "(**(code **)(pcVar11 + 0x3f040))" ( (pointer_expression "**(code **)(pcVar11 + 0x3f040)" * (pointer_expression "*(code **)(pcVar11 + 0x3f040)" * (cast_expression "(code **)(pcVar11 + 0x3f040)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar11 + 0x3f040)" ( (binary_expression "pcVar11 + 0x3f040" identifier + number_literal) ))))) )) (argument_list "(puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1)" ( identifier , identifier , number_literal , number_literal , (binary_expression "*(int *)(pcVar11 + 0x3edcc) + 0x5168" (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" * (cast_expression "(int *)(pcVar11 + 0x3edcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3edcc)" ( (binary_expression "pcVar11 + 0x3edcc" identifier + number_literal) )))) + number_literal) , identifier ))) ;) }))) }) (else_clause "else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }" else (compound_statement "{\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }" { (expression_statement "(**(code **)(pcVar11 + 0x3f040))\n                  (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);" (call_expression "(**(code **)(pcVar11 + 0x3f040))\n                  (puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1)" (parenthesized_expression "(**(code **)(pcVar11 + 0x3f040))" ( (pointer_expression "**(code **)(pcVar11 + 0x3f040)" * (pointer_expression "*(code **)(pcVar11 + 0x3f040)" * (cast_expression "(code **)(pcVar11 + 0x3f040)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar11 + 0x3f040)" ( (binary_expression "pcVar11 + 0x3f040" identifier + number_literal) ))))) )) (argument_list "(puVar4,iVar3,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1)" ( identifier , identifier , number_literal , number_literal , (binary_expression "*(int *)(pcVar11 + 0x3edcc) + 0x5124" (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" * (cast_expression "(int *)(pcVar11 + 0x3edcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3edcc)" ( (binary_expression "pcVar11 + 0x3edcc" identifier + number_literal) )))) + number_literal) , identifier ))) ;) })))))) }) (else_clause "else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar4,iVar3,iVar7 + 0x50e0);\n    }" else (compound_statement "{\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar4,iVar3,iVar7 + 0x50e0);\n    }" { (expression_statement "iVar7 = *(int *)(pcVar11 + 0x3edcc);" (assignment_expression "iVar7 = *(int *)(pcVar11 + 0x3edcc)" identifier = (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" * (cast_expression "(int *)(pcVar11 + 0x3edcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3edcc)" ( (binary_expression "pcVar11 + 0x3edcc" identifier + number_literal) ))))) ;) (if_statement "if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }" if (parenthesized_expression "(uVar1 != *(byte *)(iVar9 + 3))" ( (binary_expression "uVar1 != *(byte *)(iVar9 + 3)" identifier != (pointer_expression "*(byte *)(iVar9 + 3)" * (cast_expression "(byte *)(iVar9 + 3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 3)" ( (binary_expression "iVar9 + 3" identifier + number_literal) ))))) )) (compound_statement "{\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }" { (do_statement "do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);" do (compound_statement "{\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        }" { (if_statement "if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;" if (parenthesized_expression "(*(int *)(iVar9 + 0xc) == 0)" ( (binary_expression "*(int *)(iVar9 + 0xc) == 0" (pointer_expression "*(int *)(iVar9 + 0xc)" * (cast_expression "(int *)(iVar9 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0xc)" ( (binary_expression "iVar9 + 0xc" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_00018b24;" goto statement_identifier ;)) (expression_statement "pbVar6 = (byte *)(iVar9 + 0xb);" (assignment_expression "pbVar6 = (byte *)(iVar9 + 0xb)" identifier = (cast_expression "(byte *)(iVar9 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0xb)" ( (binary_expression "iVar9 + 0xb" identifier + number_literal) )))) ;) (expression_statement "iVar9 = iVar9 + 8;" (assignment_expression "iVar9 = iVar9 + 8" identifier = (binary_expression "iVar9 + 8" identifier + number_literal)) ;) }) while (parenthesized_expression "(*pbVar6 != uVar1)" ( (binary_expression "*pbVar6 != uVar1" (pointer_expression "*pbVar6" * identifier) != identifier) )) ;) (expression_statement "iVar7 = *(int *)(pcVar11 + 0x3edcc);" (assignment_expression "iVar7 = *(int *)(pcVar11 + 0x3edcc)" identifier = (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" * (cast_expression "(int *)(pcVar11 + 0x3edcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3edcc)" ( (binary_expression "pcVar11 + 0x3edcc" identifier + number_literal) ))))) ;) })) (expression_statement "(**(code **)(pcVar11 + 0x3eef4))(puVar4,iVar3,iVar7 + 0x50e0);" (call_expression "(**(code **)(pcVar11 + 0x3eef4))(puVar4,iVar3,iVar7 + 0x50e0)" (parenthesized_expression "(**(code **)(pcVar11 + 0x3eef4))" ( (pointer_expression "**(code **)(pcVar11 + 0x3eef4)" * (pointer_expression "*(code **)(pcVar11 + 0x3eef4)" * (cast_expression "(code **)(pcVar11 + 0x3eef4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar11 + 0x3eef4)" ( (binary_expression "pcVar11 + 0x3eef4" identifier + number_literal) ))))) )) (argument_list "(puVar4,iVar3,iVar7 + 0x50e0)" ( identifier , identifier , (binary_expression "iVar7 + 0x50e0" identifier + number_literal) ))) ;) }))))) })) (return_statement "return;" return ;) })))
(translation_unit "undefined1 * sg_get_command_name(byte *param_1,undefined4 param_2,int param_3,byte *param_4)\n\n{\n  uint uVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  ushort uVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined *puVar10;\n  code *pcVar11;\n  undefined1 auStack_cc [127];\n  undefined1 uStack_4d;\n  undefined1 *puStack_4c;\n  \n  puVar3 = *(undefined1 **)PTR___stack_chk_guard_00057a50;\n  if ((param_4 != (byte *)0x0) && (0 < param_3)) {\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else if (param_1 == (byte *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      param_1 = param_4;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }\n  }\n  if (puVar3 == *(undefined1 **)PTR___stack_chk_guard_00057a50) {\n    return *(undefined1 **)PTR___stack_chk_guard_00057a50;\n  }\n  puVar10 = PTR___stack_chk_fail_00057a1c;\n  (*(code *)PTR___stack_chk_fail_00057a1c)();\n  puStack_4c = (undefined1 *)**(int **)(puVar10 + 0x3f114);\n  puVar2 = auStack_cc;\n  iVar4 = 0x80;\n  puVar3 = puVar2;\n  (**(code **)(puVar10 + 0x3ef1c))();\n  uStack_4d = 0;\n  (**(code **)(puVar10 + 0x3efb0))(*(int *)(puVar10 + 0x3ef00) + 0x5114);\n  if (*param_1 == 0x7f) {\n    iVar9 = param_1[7] + 8;\n  }\n  else {\n    iVar9 = (**(code **)(puVar10 + 0x3f0d8))();\n    if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }\n  }\n  iVar7 = 0;\n  iVar8 = *(int *)(puVar10 + 0x3ef00);\n  pbVar6 = param_1;\n  do {\n    puVar2 = (undefined1 *)(uint)*pbVar6;\n    (**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c);\n    iVar7 = iVar7 + 1;\n    pbVar6 = param_1 + iVar7;\n  } while (iVar7 < iVar9);\n  iVar9 = *(int *)(puVar10 + 0x3ef04);\nLAB_00018a08:\n  uVar1 = iVar9 + 0x2918;\n  (**(code **)(puVar10 + 0x3efb0))();\n  if (puStack_4c == (undefined1 *)**(int **)(puVar10 + 0x3f114)) {\n    return (undefined1 *)**(int **)(puVar10 + 0x3f114);\n  }\n  pcVar11 = *(code **)(puVar10 + 0x3f0e0);\n  (*pcVar11)();\n  iVar9 = *(int *)(pcVar11 + 0x3ee38);\n  if (puVar2 == (undefined1 *)0x0) {\n    iVar9 = *(int *)(pcVar11 + 0x3efd0);\n  }\n  if ((puVar3 != (undefined1 *)0x0) && (0 < iVar4)) {\n    if (iVar4 == 1) {\n      *puVar3 = 0;\n    }\n    else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }\n  }\n  return puVar3;\n}\n\n" (function_definition "undefined1 * sg_get_command_name(byte *param_1,undefined4 param_2,int param_3,byte *param_4)\n\n{\n  uint uVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  ushort uVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined *puVar10;\n  code *pcVar11;\n  undefined1 auStack_cc [127];\n  undefined1 uStack_4d;\n  undefined1 *puStack_4c;\n  \n  puVar3 = *(undefined1 **)PTR___stack_chk_guard_00057a50;\n  if ((param_4 != (byte *)0x0) && (0 < param_3)) {\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else if (param_1 == (byte *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      param_1 = param_4;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }\n  }\n  if (puVar3 == *(undefined1 **)PTR___stack_chk_guard_00057a50) {\n    return *(undefined1 **)PTR___stack_chk_guard_00057a50;\n  }\n  puVar10 = PTR___stack_chk_fail_00057a1c;\n  (*(code *)PTR___stack_chk_fail_00057a1c)();\n  puStack_4c = (undefined1 *)**(int **)(puVar10 + 0x3f114);\n  puVar2 = auStack_cc;\n  iVar4 = 0x80;\n  puVar3 = puVar2;\n  (**(code **)(puVar10 + 0x3ef1c))();\n  uStack_4d = 0;\n  (**(code **)(puVar10 + 0x3efb0))(*(int *)(puVar10 + 0x3ef00) + 0x5114);\n  if (*param_1 == 0x7f) {\n    iVar9 = param_1[7] + 8;\n  }\n  else {\n    iVar9 = (**(code **)(puVar10 + 0x3f0d8))();\n    if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }\n  }\n  iVar7 = 0;\n  iVar8 = *(int *)(puVar10 + 0x3ef00);\n  pbVar6 = param_1;\n  do {\n    puVar2 = (undefined1 *)(uint)*pbVar6;\n    (**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c);\n    iVar7 = iVar7 + 1;\n    pbVar6 = param_1 + iVar7;\n  } while (iVar7 < iVar9);\n  iVar9 = *(int *)(puVar10 + 0x3ef04);\nLAB_00018a08:\n  uVar1 = iVar9 + 0x2918;\n  (**(code **)(puVar10 + 0x3efb0))();\n  if (puStack_4c == (undefined1 *)**(int **)(puVar10 + 0x3f114)) {\n    return (undefined1 *)**(int **)(puVar10 + 0x3f114);\n  }\n  pcVar11 = *(code **)(puVar10 + 0x3f0e0);\n  (*pcVar11)();\n  iVar9 = *(int *)(pcVar11 + 0x3ee38);\n  if (puVar2 == (undefined1 *)0x0) {\n    iVar9 = *(int *)(pcVar11 + 0x3efd0);\n  }\n  if ((puVar3 != (undefined1 *)0x0) && (0 < iVar4)) {\n    if (iVar4 == 1) {\n      *puVar3 = 0;\n    }\n    else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }\n  }\n  return puVar3;\n}" type_identifier (pointer_declarator "* sg_get_command_name(byte *param_1,undefined4 param_2,int param_3,byte *param_4)" * (function_declarator "sg_get_command_name(byte *param_1,undefined4 param_2,int param_3,byte *param_4)" identifier (parameter_list "(byte *param_1,undefined4 param_2,int param_3,byte *param_4)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "byte *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) )))) (compound_statement "{\n  uint uVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  ushort uVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined *puVar10;\n  code *pcVar11;\n  undefined1 auStack_cc [127];\n  undefined1 uStack_4d;\n  undefined1 *puStack_4c;\n  \n  puVar3 = *(undefined1 **)PTR___stack_chk_guard_00057a50;\n  if ((param_4 != (byte *)0x0) && (0 < param_3)) {\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else if (param_1 == (byte *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      param_1 = param_4;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }\n  }\n  if (puVar3 == *(undefined1 **)PTR___stack_chk_guard_00057a50) {\n    return *(undefined1 **)PTR___stack_chk_guard_00057a50;\n  }\n  puVar10 = PTR___stack_chk_fail_00057a1c;\n  (*(code *)PTR___stack_chk_fail_00057a1c)();\n  puStack_4c = (undefined1 *)**(int **)(puVar10 + 0x3f114);\n  puVar2 = auStack_cc;\n  iVar4 = 0x80;\n  puVar3 = puVar2;\n  (**(code **)(puVar10 + 0x3ef1c))();\n  uStack_4d = 0;\n  (**(code **)(puVar10 + 0x3efb0))(*(int *)(puVar10 + 0x3ef00) + 0x5114);\n  if (*param_1 == 0x7f) {\n    iVar9 = param_1[7] + 8;\n  }\n  else {\n    iVar9 = (**(code **)(puVar10 + 0x3f0d8))();\n    if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }\n  }\n  iVar7 = 0;\n  iVar8 = *(int *)(puVar10 + 0x3ef00);\n  pbVar6 = param_1;\n  do {\n    puVar2 = (undefined1 *)(uint)*pbVar6;\n    (**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c);\n    iVar7 = iVar7 + 1;\n    pbVar6 = param_1 + iVar7;\n  } while (iVar7 < iVar9);\n  iVar9 = *(int *)(puVar10 + 0x3ef04);\nLAB_00018a08:\n  uVar1 = iVar9 + 0x2918;\n  (**(code **)(puVar10 + 0x3efb0))();\n  if (puStack_4c == (undefined1 *)**(int **)(puVar10 + 0x3f114)) {\n    return (undefined1 *)**(int **)(puVar10 + 0x3f114);\n  }\n  pcVar11 = *(code **)(puVar10 + 0x3f0e0);\n  (*pcVar11)();\n  iVar9 = *(int *)(pcVar11 + 0x3ee38);\n  if (puVar2 == (undefined1 *)0x0) {\n    iVar9 = *(int *)(pcVar11 + 0x3efd0);\n  }\n  if ((puVar3 != (undefined1 *)0x0) && (0 < iVar4)) {\n    if (iVar4 == 1) {\n      *puVar3 = 0;\n    }\n    else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }\n  }\n  return puVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "ushort uVar5;" type_identifier identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "code *pcVar11;" type_identifier (pointer_declarator "*pcVar11" * identifier) ;) (declaration "undefined1 auStack_cc [127];" type_identifier (array_declarator "auStack_cc [127]" identifier [ number_literal ]) ;) (declaration "undefined1 uStack_4d;" type_identifier identifier ;) (declaration "undefined1 *puStack_4c;" type_identifier (pointer_declarator "*puStack_4c" * identifier) ;) (expression_statement "puVar3 = *(undefined1 **)PTR___stack_chk_guard_00057a50;" (assignment_expression "puVar3 = *(undefined1 **)PTR___stack_chk_guard_00057a50" identifier = (pointer_expression "*(undefined1 **)PTR___stack_chk_guard_00057a50" * (cast_expression "(undefined1 **)PTR___stack_chk_guard_00057a50" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if ((param_4 != (byte *)0x0) && (0 < param_3)) {\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else if (param_1 == (byte *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      param_1 = param_4;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }\n  }" if (parenthesized_expression "((param_4 != (byte *)0x0) && (0 < param_3))" ( (binary_expression "(param_4 != (byte *)0x0) && (0 < param_3)" (parenthesized_expression "(param_4 != (byte *)0x0)" ( (binary_expression "param_4 != (byte *)0x0" identifier != (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) ))) )) (compound_statement "{\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else if (param_1 == (byte *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      param_1 = param_4;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }\n  }" { (if_statement "if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else if (param_1 == (byte *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      param_1 = param_4;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }" if (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) (compound_statement "{\n      *param_4 = 0;\n    }" { (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) }) (else_clause "else if (param_1 == (byte *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      param_1 = param_4;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }" else (if_statement "if (param_1 == (byte *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      param_1 = param_4;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }" if (parenthesized_expression "(param_1 == (byte *)0x0)" ( (binary_expression "param_1 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      param_1 = param_4;\n    }" { (expression_statement "(*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);" (call_expression "(*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc)" (parenthesized_expression "(*(code *)PTR_sg_scnpr_00057904)" ( (pointer_expression "*(code *)PTR_sg_scnpr_00057904" * (cast_expression "(code *)PTR_sg_scnpr_00057904" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc)" ( identifier , identifier , (binary_expression "PTR_LAB_0005783c + 0x50e0" identifier + number_literal) , (binary_expression "PTR_LAB_0005783c + 0x50fc" identifier + number_literal) ))) ;) (expression_statement "param_1 = param_4;" (assignment_expression "param_1 = param_4" identifier = identifier) ;) }) (else_clause "else {\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }" else (compound_statement "{\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }" { (expression_statement "pbVar6 = (byte *)(uint)*param_1;" (assignment_expression "pbVar6 = (byte *)(uint)*param_1" identifier = (binary_expression "(byte *)(uint)*param_1" (cast_expression "(byte *)(uint)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uint)" ( identifier ))) * identifier)) ;) (if_statement "if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }" if (parenthesized_expression "(pbVar6 == (byte *)0x7f)" ( (binary_expression "pbVar6 == (byte *)0x7f" identifier == (cast_expression "(byte *)0x7f" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        uVar5 = *(ushort *)(param_1 + 8);\n      }" { (expression_statement "uVar5 = *(ushort *)(param_1 + 8);" (assignment_expression "uVar5 = *(ushort *)(param_1 + 8)" identifier = (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        uVar5 = param_1[1] & 0x1f;\n      }" else (compound_statement "{\n        uVar5 = param_1[1] & 0x1f;\n      }" { (expression_statement "uVar5 = param_1[1] & 0x1f;" (assignment_expression "uVar5 = param_1[1] & 0x1f" identifier = (binary_expression "param_1[1] & 0x1f" (subscript_expression "param_1[1]" identifier [ number_literal ]) & number_literal)) ;) }))) (expression_statement "(*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);" (call_expression "(*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_sg_get_opcode_sa_name_000578bc)" ( (pointer_expression "*(code *)PTR_sg_get_opcode_sa_name_000578bc" * (cast_expression "(code *)PTR_sg_get_opcode_sa_name_000578bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pbVar6,uVar5,param_2,param_3)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "param_1 = pbVar6;" (assignment_expression "param_1 = pbVar6" identifier = identifier) ;) }))))) })) (if_statement "if (puVar3 == *(undefined1 **)PTR___stack_chk_guard_00057a50) {\n    return *(undefined1 **)PTR___stack_chk_guard_00057a50;\n  }" if (parenthesized_expression "(puVar3 == *(undefined1 **)PTR___stack_chk_guard_00057a50)" ( (binary_expression "puVar3 == *(undefined1 **)PTR___stack_chk_guard_00057a50" identifier == (pointer_expression "*(undefined1 **)PTR___stack_chk_guard_00057a50" * (cast_expression "(undefined1 **)PTR___stack_chk_guard_00057a50" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return *(undefined1 **)PTR___stack_chk_guard_00057a50;\n  }" { (return_statement "return *(undefined1 **)PTR___stack_chk_guard_00057a50;" return (pointer_expression "*(undefined1 **)PTR___stack_chk_guard_00057a50" * (cast_expression "(undefined1 **)PTR___stack_chk_guard_00057a50" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ;) })) (expression_statement "puVar10 = PTR___stack_chk_fail_00057a1c;" (assignment_expression "puVar10 = PTR___stack_chk_fail_00057a1c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00057a1c)();" (call_expression "(*(code *)PTR___stack_chk_fail_00057a1c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00057a1c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00057a1c" * (cast_expression "(code *)PTR___stack_chk_fail_00057a1c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puStack_4c = (undefined1 *)**(int **)(puVar10 + 0x3f114);" (assignment_expression "puStack_4c = (undefined1 *)**(int **)(puVar10 + 0x3f114)" identifier = (cast_expression "(undefined1 *)**(int **)(puVar10 + 0x3f114)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(int **)(puVar10 + 0x3f114)" * (pointer_expression "*(int **)(puVar10 + 0x3f114)" * (cast_expression "(int **)(puVar10 + 0x3f114)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x3f114)" ( (binary_expression "puVar10 + 0x3f114" identifier + number_literal) ))))))) ;) (expression_statement "puVar2 = auStack_cc;" (assignment_expression "puVar2 = auStack_cc" identifier = identifier) ;) (expression_statement "iVar4 = 0x80;" (assignment_expression "iVar4 = 0x80" identifier = number_literal) ;) (expression_statement "puVar3 = puVar2;" (assignment_expression "puVar3 = puVar2" identifier = identifier) ;) (expression_statement "(**(code **)(puVar10 + 0x3ef1c))();" (call_expression "(**(code **)(puVar10 + 0x3ef1c))()" (parenthesized_expression "(**(code **)(puVar10 + 0x3ef1c))" ( (pointer_expression "**(code **)(puVar10 + 0x3ef1c)" * (pointer_expression "*(code **)(puVar10 + 0x3ef1c)" * (cast_expression "(code **)(puVar10 + 0x3ef1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x3ef1c)" ( (binary_expression "puVar10 + 0x3ef1c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (expression_statement "uStack_4d = 0;" (assignment_expression "uStack_4d = 0" identifier = number_literal) ;) (expression_statement "(**(code **)(puVar10 + 0x3efb0))(*(int *)(puVar10 + 0x3ef00) + 0x5114);" (call_expression "(**(code **)(puVar10 + 0x3efb0))(*(int *)(puVar10 + 0x3ef00) + 0x5114)" (parenthesized_expression "(**(code **)(puVar10 + 0x3efb0))" ( (pointer_expression "**(code **)(puVar10 + 0x3efb0)" * (pointer_expression "*(code **)(puVar10 + 0x3efb0)" * (cast_expression "(code **)(puVar10 + 0x3efb0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x3efb0)" ( (binary_expression "puVar10 + 0x3efb0" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar10 + 0x3ef00) + 0x5114)" ( (binary_expression "*(int *)(puVar10 + 0x3ef00) + 0x5114" (pointer_expression "*(int *)(puVar10 + 0x3ef00)" * (cast_expression "(int *)(puVar10 + 0x3ef00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 0x3ef00)" ( (binary_expression "puVar10 + 0x3ef00" identifier + number_literal) )))) + number_literal) ))) ;) (if_statement "if (*param_1 == 0x7f) {\n    iVar9 = param_1[7] + 8;\n  }\n  else {\n    iVar9 = (**(code **)(puVar10 + 0x3f0d8))();\n    if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }\n  }" if (parenthesized_expression "(*param_1 == 0x7f)" ( (binary_expression "*param_1 == 0x7f" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n    iVar9 = param_1[7] + 8;\n  }" { (expression_statement "iVar9 = param_1[7] + 8;" (assignment_expression "iVar9 = param_1[7] + 8" identifier = (binary_expression "param_1[7] + 8" (subscript_expression "param_1[7]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else {\n    iVar9 = (**(code **)(puVar10 + 0x3f0d8))();\n    if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }\n  }" else (compound_statement "{\n    iVar9 = (**(code **)(puVar10 + 0x3f0d8))();\n    if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }\n  }" { (expression_statement "iVar9 = (**(code **)(puVar10 + 0x3f0d8))();" (assignment_expression "iVar9 = (**(code **)(puVar10 + 0x3f0d8))()" identifier = (call_expression "(**(code **)(puVar10 + 0x3f0d8))()" (parenthesized_expression "(**(code **)(puVar10 + 0x3f0d8))" ( (pointer_expression "**(code **)(puVar10 + 0x3f0d8)" * (pointer_expression "*(code **)(puVar10 + 0x3f0d8)" * (cast_expression "(code **)(puVar10 + 0x3f0d8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x3f0d8)" ( (binary_expression "puVar10 + 0x3f0d8" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }" if (parenthesized_expression "(iVar9 < 1)" ( (binary_expression "iVar9 < 1" identifier < number_literal) )) (compound_statement "{\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }" { (expression_statement "iVar9 = *(int *)(puVar10 + 0x3ef04);" (assignment_expression "iVar9 = *(int *)(puVar10 + 0x3ef04)" identifier = (pointer_expression "*(int *)(puVar10 + 0x3ef04)" * (cast_expression "(int *)(puVar10 + 0x3ef04)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 0x3ef04)" ( (binary_expression "puVar10 + 0x3ef04" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_00018a08;" goto statement_identifier ;) })) }))) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "iVar8 = *(int *)(puVar10 + 0x3ef00);" (assignment_expression "iVar8 = *(int *)(puVar10 + 0x3ef00)" identifier = (pointer_expression "*(int *)(puVar10 + 0x3ef00)" * (cast_expression "(int *)(puVar10 + 0x3ef00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 0x3ef00)" ( (binary_expression "puVar10 + 0x3ef00" identifier + number_literal) ))))) ;) (expression_statement "pbVar6 = param_1;" (assignment_expression "pbVar6 = param_1" identifier = identifier) ;) (do_statement "do {\n    puVar2 = (undefined1 *)(uint)*pbVar6;\n    (**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c);\n    iVar7 = iVar7 + 1;\n    pbVar6 = param_1 + iVar7;\n  } while (iVar7 < iVar9);" do (compound_statement "{\n    puVar2 = (undefined1 *)(uint)*pbVar6;\n    (**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c);\n    iVar7 = iVar7 + 1;\n    pbVar6 = param_1 + iVar7;\n  }" { (expression_statement "puVar2 = (undefined1 *)(uint)*pbVar6;" (assignment_expression "puVar2 = (undefined1 *)(uint)*pbVar6" identifier = (binary_expression "(undefined1 *)(uint)*pbVar6" (cast_expression "(undefined1 *)(uint)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uint)" ( identifier ))) * identifier)) ;) (expression_statement "(**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c);" (call_expression "(**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c)" (parenthesized_expression "(**(code **)(puVar10 + 0x3efb0))" ( (pointer_expression "**(code **)(puVar10 + 0x3efb0)" * (pointer_expression "*(code **)(puVar10 + 0x3efb0)" * (cast_expression "(code **)(puVar10 + 0x3efb0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x3efb0)" ( (binary_expression "puVar10 + 0x3efb0" identifier + number_literal) ))))) )) (argument_list "(iVar8 + 0x511c)" ( (binary_expression "iVar8 + 0x511c" identifier + number_literal) ))) ;) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "pbVar6 = param_1 + iVar7;" (assignment_expression "pbVar6 = param_1 + iVar7" identifier = (binary_expression "param_1 + iVar7" identifier + identifier)) ;) }) while (parenthesized_expression "(iVar7 < iVar9)" ( (binary_expression "iVar7 < iVar9" identifier < identifier) )) ;) (expression_statement "iVar9 = *(int *)(puVar10 + 0x3ef04);" (assignment_expression "iVar9 = *(int *)(puVar10 + 0x3ef04)" identifier = (pointer_expression "*(int *)(puVar10 + 0x3ef04)" * (cast_expression "(int *)(puVar10 + 0x3ef04)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 0x3ef04)" ( (binary_expression "puVar10 + 0x3ef04" identifier + number_literal) ))))) ;) (labeled_statement "LAB_00018a08:\n  uVar1 = iVar9 + 0x2918;" statement_identifier : (expression_statement "uVar1 = iVar9 + 0x2918;" (assignment_expression "uVar1 = iVar9 + 0x2918" identifier = (binary_expression "iVar9 + 0x2918" identifier + number_literal)) ;)) (expression_statement "(**(code **)(puVar10 + 0x3efb0))();" (call_expression "(**(code **)(puVar10 + 0x3efb0))()" (parenthesized_expression "(**(code **)(puVar10 + 0x3efb0))" ( (pointer_expression "**(code **)(puVar10 + 0x3efb0)" * (pointer_expression "*(code **)(puVar10 + 0x3efb0)" * (cast_expression "(code **)(puVar10 + 0x3efb0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x3efb0)" ( (binary_expression "puVar10 + 0x3efb0" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (if_statement "if (puStack_4c == (undefined1 *)**(int **)(puVar10 + 0x3f114)) {\n    return (undefined1 *)**(int **)(puVar10 + 0x3f114);\n  }" if (parenthesized_expression "(puStack_4c == (undefined1 *)**(int **)(puVar10 + 0x3f114))" ( (binary_expression "puStack_4c == (undefined1 *)**(int **)(puVar10 + 0x3f114)" identifier == (cast_expression "(undefined1 *)**(int **)(puVar10 + 0x3f114)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(int **)(puVar10 + 0x3f114)" * (pointer_expression "*(int **)(puVar10 + 0x3f114)" * (cast_expression "(int **)(puVar10 + 0x3f114)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x3f114)" ( (binary_expression "puVar10 + 0x3f114" identifier + number_literal) ))))))) )) (compound_statement "{\n    return (undefined1 *)**(int **)(puVar10 + 0x3f114);\n  }" { (return_statement "return (undefined1 *)**(int **)(puVar10 + 0x3f114);" return (cast_expression "(undefined1 *)**(int **)(puVar10 + 0x3f114)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(int **)(puVar10 + 0x3f114)" * (pointer_expression "*(int **)(puVar10 + 0x3f114)" * (cast_expression "(int **)(puVar10 + 0x3f114)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x3f114)" ( (binary_expression "puVar10 + 0x3f114" identifier + number_literal) )))))) ;) })) (expression_statement "pcVar11 = *(code **)(puVar10 + 0x3f0e0);" (assignment_expression "pcVar11 = *(code **)(puVar10 + 0x3f0e0)" identifier = (pointer_expression "*(code **)(puVar10 + 0x3f0e0)" * (cast_expression "(code **)(puVar10 + 0x3f0e0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x3f0e0)" ( (binary_expression "puVar10 + 0x3f0e0" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar11)();" (call_expression "(*pcVar11)()" (parenthesized_expression "(*pcVar11)" ( (pointer_expression "*pcVar11" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "iVar9 = *(int *)(pcVar11 + 0x3ee38);" (assignment_expression "iVar9 = *(int *)(pcVar11 + 0x3ee38)" identifier = (pointer_expression "*(int *)(pcVar11 + 0x3ee38)" * (cast_expression "(int *)(pcVar11 + 0x3ee38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3ee38)" ( (binary_expression "pcVar11 + 0x3ee38" identifier + number_literal) ))))) ;) (if_statement "if (puVar2 == (undefined1 *)0x0) {\n    iVar9 = *(int *)(pcVar11 + 0x3efd0);\n  }" if (parenthesized_expression "(puVar2 == (undefined1 *)0x0)" ( (binary_expression "puVar2 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar9 = *(int *)(pcVar11 + 0x3efd0);\n  }" { (expression_statement "iVar9 = *(int *)(pcVar11 + 0x3efd0);" (assignment_expression "iVar9 = *(int *)(pcVar11 + 0x3efd0)" identifier = (pointer_expression "*(int *)(pcVar11 + 0x3efd0)" * (cast_expression "(int *)(pcVar11 + 0x3efd0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3efd0)" ( (binary_expression "pcVar11 + 0x3efd0" identifier + number_literal) ))))) ;) })) (if_statement "if ((puVar3 != (undefined1 *)0x0) && (0 < iVar4)) {\n    if (iVar4 == 1) {\n      *puVar3 = 0;\n    }\n    else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }\n  }" if (parenthesized_expression "((puVar3 != (undefined1 *)0x0) && (0 < iVar4))" ( (binary_expression "(puVar3 != (undefined1 *)0x0) && (0 < iVar4)" (parenthesized_expression "(puVar3 != (undefined1 *)0x0)" ( (binary_expression "puVar3 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) ))) )) (compound_statement "{\n    if (iVar4 == 1) {\n      *puVar3 = 0;\n    }\n    else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }\n  }" { (if_statement "if (iVar4 == 1) {\n      *puVar3 = 0;\n    }\n    else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }" if (parenthesized_expression "(iVar4 == 1)" ( (binary_expression "iVar4 == 1" identifier == number_literal) )) (compound_statement "{\n      *puVar3 = 0;\n    }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) }) (else_clause "else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }" else (if_statement "if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }" if (parenthesized_expression "(*(int *)(iVar9 + 4) == 0)" ( (binary_expression "*(int *)(iVar9 + 4) == 0" (pointer_expression "*(int *)(iVar9 + 4)" * (cast_expression "(int *)(iVar9 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 4)" ( (binary_expression "iVar9 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }" { (labeled_statement "LAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }" statement_identifier : (if_statement "if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }" if (parenthesized_expression "(puVar2 == (undefined1 *)0x0)" ( (binary_expression "puVar2 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }" { (if_statement "if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }" if (parenthesized_expression "((char)uVar1 < '\0')" ( (binary_expression "(char)uVar1 < '\0'" (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }" { (expression_statement "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);" (call_expression "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0)" (parenthesized_expression "(**(code **)(pcVar11 + 0x3f040))" ( (pointer_expression "**(code **)(pcVar11 + 0x3f040)" * (pointer_expression "*(code **)(pcVar11 + 0x3f040)" * (cast_expression "(code **)(pcVar11 + 0x3f040)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar11 + 0x3f040)" ( (binary_expression "pcVar11 + 0x3f040" identifier + number_literal) ))))) )) (argument_list "(puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0)" ( identifier , identifier , number_literal , number_literal , (binary_expression "*(int *)(pcVar11 + 0x3edcc) + 0x5124" (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" * (cast_expression "(int *)(pcVar11 + 0x3edcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3edcc)" ( (binary_expression "pcVar11 + 0x3edcc" identifier + number_literal) )))) + number_literal) , identifier , (binary_expression "pcVar11 + 0x46da0" identifier + number_literal) ))) ;) }) (else_clause "else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }" else (compound_statement "{\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }" { (expression_statement "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);" (call_expression "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1)" (parenthesized_expression "(**(code **)(pcVar11 + 0x3f040))" ( (pointer_expression "**(code **)(pcVar11 + 0x3f040)" * (pointer_expression "*(code **)(pcVar11 + 0x3f040)" * (cast_expression "(code **)(pcVar11 + 0x3f040)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar11 + 0x3f040)" ( (binary_expression "pcVar11 + 0x3f040" identifier + number_literal) ))))) )) (argument_list "(puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1)" ( identifier , identifier , number_literal , number_literal , (binary_expression "*(int *)(pcVar11 + 0x3edcc) + 0x5168" (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" * (cast_expression "(int *)(pcVar11 + 0x3edcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3edcc)" ( (binary_expression "pcVar11 + 0x3edcc" identifier + number_literal) )))) + number_literal) , identifier ))) ;) }))) }) (else_clause "else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }" else (if_statement "if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }" if (parenthesized_expression "(uVar1 < 0xc0)" ( (binary_expression "uVar1 < 0xc0" identifier < number_literal) )) (compound_statement "{\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }" { (if_statement "if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }" if (parenthesized_expression "((char)uVar1 < '\0')" ( (binary_expression "(char)uVar1 < '\0'" (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }" { (expression_statement "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);" (call_expression "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1)" (parenthesized_expression "(**(code **)(pcVar11 + 0x3f040))" ( (pointer_expression "**(code **)(pcVar11 + 0x3f040)" * (pointer_expression "*(code **)(pcVar11 + 0x3f040)" * (cast_expression "(code **)(pcVar11 + 0x3f040)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar11 + 0x3f040)" ( (binary_expression "pcVar11 + 0x3f040" identifier + number_literal) ))))) )) (argument_list "(puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1)" ( identifier , identifier , number_literal , number_literal , (binary_expression "*(int *)(pcVar11 + 0x3edcc) + 0x5144" (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" * (cast_expression "(int *)(pcVar11 + 0x3edcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3edcc)" ( (binary_expression "pcVar11 + 0x3edcc" identifier + number_literal) )))) + number_literal) , identifier ))) ;) }) (else_clause "else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }" else (compound_statement "{\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }" { (expression_statement "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);" (call_expression "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1)" (parenthesized_expression "(**(code **)(pcVar11 + 0x3f040))" ( (pointer_expression "**(code **)(pcVar11 + 0x3f040)" * (pointer_expression "*(code **)(pcVar11 + 0x3f040)" * (cast_expression "(code **)(pcVar11 + 0x3f040)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar11 + 0x3f040)" ( (binary_expression "pcVar11 + 0x3f040" identifier + number_literal) ))))) )) (argument_list "(puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1)" ( identifier , identifier , number_literal , number_literal , (binary_expression "*(int *)(pcVar11 + 0x3edcc) + 0x5168" (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" * (cast_expression "(int *)(pcVar11 + 0x3edcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3edcc)" ( (binary_expression "pcVar11 + 0x3edcc" identifier + number_literal) )))) + number_literal) , identifier ))) ;) }))) }) (else_clause "else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }" else (compound_statement "{\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }" { (expression_statement "(**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);" (call_expression "(**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1)" (parenthesized_expression "(**(code **)(pcVar11 + 0x3f040))" ( (pointer_expression "**(code **)(pcVar11 + 0x3f040)" * (pointer_expression "*(code **)(pcVar11 + 0x3f040)" * (cast_expression "(code **)(pcVar11 + 0x3f040)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar11 + 0x3f040)" ( (binary_expression "pcVar11 + 0x3f040" identifier + number_literal) ))))) )) (argument_list "(puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1)" ( identifier , identifier , number_literal , number_literal , (binary_expression "*(int *)(pcVar11 + 0x3edcc) + 0x5124" (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" * (cast_expression "(int *)(pcVar11 + 0x3edcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3edcc)" ( (binary_expression "pcVar11 + 0x3edcc" identifier + number_literal) )))) + number_literal) , identifier ))) ;) })))))) }) (else_clause "else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }" else (compound_statement "{\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }" { (expression_statement "iVar7 = *(int *)(pcVar11 + 0x3edcc);" (assignment_expression "iVar7 = *(int *)(pcVar11 + 0x3edcc)" identifier = (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" * (cast_expression "(int *)(pcVar11 + 0x3edcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3edcc)" ( (binary_expression "pcVar11 + 0x3edcc" identifier + number_literal) ))))) ;) (if_statement "if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }" if (parenthesized_expression "(uVar1 != *(byte *)(iVar9 + 3))" ( (binary_expression "uVar1 != *(byte *)(iVar9 + 3)" identifier != (pointer_expression "*(byte *)(iVar9 + 3)" * (cast_expression "(byte *)(iVar9 + 3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 3)" ( (binary_expression "iVar9 + 3" identifier + number_literal) ))))) )) (compound_statement "{\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }" { (do_statement "do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);" do (compound_statement "{\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        }" { (if_statement "if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;" if (parenthesized_expression "(*(int *)(iVar9 + 0xc) == 0)" ( (binary_expression "*(int *)(iVar9 + 0xc) == 0" (pointer_expression "*(int *)(iVar9 + 0xc)" * (cast_expression "(int *)(iVar9 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0xc)" ( (binary_expression "iVar9 + 0xc" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_00018b24;" goto statement_identifier ;)) (expression_statement "pbVar6 = (byte *)(iVar9 + 0xb);" (assignment_expression "pbVar6 = (byte *)(iVar9 + 0xb)" identifier = (cast_expression "(byte *)(iVar9 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0xb)" ( (binary_expression "iVar9 + 0xb" identifier + number_literal) )))) ;) (expression_statement "iVar9 = iVar9 + 8;" (assignment_expression "iVar9 = iVar9 + 8" identifier = (binary_expression "iVar9 + 8" identifier + number_literal)) ;) }) while (parenthesized_expression "(*pbVar6 != uVar1)" ( (binary_expression "*pbVar6 != uVar1" (pointer_expression "*pbVar6" * identifier) != identifier) )) ;) (expression_statement "iVar7 = *(int *)(pcVar11 + 0x3edcc);" (assignment_expression "iVar7 = *(int *)(pcVar11 + 0x3edcc)" identifier = (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" * (cast_expression "(int *)(pcVar11 + 0x3edcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar11 + 0x3edcc)" ( (binary_expression "pcVar11 + 0x3edcc" identifier + number_literal) ))))) ;) })) (expression_statement "(**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);" (call_expression "(**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0)" (parenthesized_expression "(**(code **)(pcVar11 + 0x3eef4))" ( (pointer_expression "**(code **)(pcVar11 + 0x3eef4)" * (pointer_expression "*(code **)(pcVar11 + 0x3eef4)" * (cast_expression "(code **)(pcVar11 + 0x3eef4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar11 + 0x3eef4)" ( (binary_expression "pcVar11 + 0x3eef4" identifier + number_literal) ))))) )) (argument_list "(puVar3,iVar4,iVar7 + 0x50e0)" ( identifier , identifier , (binary_expression "iVar7 + 0x50e0" identifier + number_literal) ))) ;) }))))) })) (return_statement "return puVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * 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 IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( IDENT ))) * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) & LIT)) ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))))) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) ;) })) (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 ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (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 = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) }) (else_clause else (compound_statement { (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 ( )))) ;) (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 *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (goto_statement goto statement_identifier ;) })) }))) (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) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( IDENT ))) * IDENT)) ;) (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 ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (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 ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))))) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (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 (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (char_literal ' escape_sequence ')) )) (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 , LIT , LIT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , IDENT , (binary_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 , LIT , LIT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , IDENT ))) ;) }))) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (char_literal ' escape_sequence ')) )) (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 , LIT , LIT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , 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 , LIT , LIT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , 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 , LIT , LIT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , IDENT ))) ;) })))))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (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 , (binary_expression IDENT + LIT) ))) ;) }))))) })) (return_statement return IDENT ;) })))
(function_definition "undefined1 * sg_get_command_name(byte *param_1,undefined4 param_2,int param_3,byte *param_4)\n\n{\n  uint uVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  ushort uVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined *puVar10;\n  code *pcVar11;\n  undefined1 auStack_cc [127];\n  undefined1 uStack_4d;\n  undefined1 *puStack_4c;\n  \n  puVar3 = *(undefined1 **)PTR___stack_chk_guard_00057a50;\n  if ((param_4 != (byte *)0x0) && (0 < param_3)) {\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else if (param_1 == (byte *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      param_1 = param_4;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }\n  }\n  if (puVar3 == *(undefined1 **)PTR___stack_chk_guard_00057a50) {\n    return *(undefined1 **)PTR___stack_chk_guard_00057a50;\n  }\n  puVar10 = PTR___stack_chk_fail_00057a1c;\n  (*(code *)PTR___stack_chk_fail_00057a1c)();\n  puStack_4c = (undefined1 *)**(int **)(puVar10 + 0x3f114);\n  puVar2 = auStack_cc;\n  iVar4 = 0x80;\n  puVar3 = puVar2;\n  (**(code **)(puVar10 + 0x3ef1c))();\n  uStack_4d = 0;\n  (**(code **)(puVar10 + 0x3efb0))(*(int *)(puVar10 + 0x3ef00) + 0x5114);\n  if (*param_1 == 0x7f) {\n    iVar9 = param_1[7] + 8;\n  }\n  else {\n    iVar9 = (**(code **)(puVar10 + 0x3f0d8))();\n    if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }\n  }\n  iVar7 = 0;\n  iVar8 = *(int *)(puVar10 + 0x3ef00);\n  pbVar6 = param_1;\n  do {\n    puVar2 = (undefined1 *)(uint)*pbVar6;\n    (**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c);\n    iVar7 = iVar7 + 1;\n    pbVar6 = param_1 + iVar7;\n  } while (iVar7 < iVar9);\n  iVar9 = *(int *)(puVar10 + 0x3ef04);\nLAB_00018a08:\n  uVar1 = iVar9 + 0x2918;\n  (**(code **)(puVar10 + 0x3efb0))();\n  if (puStack_4c == (undefined1 *)**(int **)(puVar10 + 0x3f114)) {\n    return (undefined1 *)**(int **)(puVar10 + 0x3f114);\n  }\n  pcVar11 = *(code **)(puVar10 + 0x3f0e0);\n  (*pcVar11)();\n  iVar9 = *(int *)(pcVar11 + 0x3ee38);\n  if (puVar2 == (undefined1 *)0x0) {\n    iVar9 = *(int *)(pcVar11 + 0x3efd0);\n  }\n  if ((puVar3 != (undefined1 *)0x0) && (0 < iVar4)) {\n    if (iVar4 == 1) {\n      *puVar3 = 0;\n    }\n    else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }\n  }\n  return puVar3;\n}" (type_identifier "undefined1") (pointer_declarator "* sg_get_command_name(byte *param_1,undefined4 param_2,int param_3,byte *param_4)" (* "*") (function_declarator "sg_get_command_name(byte *param_1,undefined4 param_2,int param_3,byte *param_4)" (identifier "sg_get_command_name") (parameter_list "(byte *param_1,undefined4 param_2,int param_3,byte *param_4)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "byte *param_4" (type_identifier "byte") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")")))) (compound_statement "{\n  uint uVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  ushort uVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined *puVar10;\n  code *pcVar11;\n  undefined1 auStack_cc [127];\n  undefined1 uStack_4d;\n  undefined1 *puStack_4c;\n  \n  puVar3 = *(undefined1 **)PTR___stack_chk_guard_00057a50;\n  if ((param_4 != (byte *)0x0) && (0 < param_3)) {\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else if (param_1 == (byte *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      param_1 = param_4;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }\n  }\n  if (puVar3 == *(undefined1 **)PTR___stack_chk_guard_00057a50) {\n    return *(undefined1 **)PTR___stack_chk_guard_00057a50;\n  }\n  puVar10 = PTR___stack_chk_fail_00057a1c;\n  (*(code *)PTR___stack_chk_fail_00057a1c)();\n  puStack_4c = (undefined1 *)**(int **)(puVar10 + 0x3f114);\n  puVar2 = auStack_cc;\n  iVar4 = 0x80;\n  puVar3 = puVar2;\n  (**(code **)(puVar10 + 0x3ef1c))();\n  uStack_4d = 0;\n  (**(code **)(puVar10 + 0x3efb0))(*(int *)(puVar10 + 0x3ef00) + 0x5114);\n  if (*param_1 == 0x7f) {\n    iVar9 = param_1[7] + 8;\n  }\n  else {\n    iVar9 = (**(code **)(puVar10 + 0x3f0d8))();\n    if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }\n  }\n  iVar7 = 0;\n  iVar8 = *(int *)(puVar10 + 0x3ef00);\n  pbVar6 = param_1;\n  do {\n    puVar2 = (undefined1 *)(uint)*pbVar6;\n    (**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c);\n    iVar7 = iVar7 + 1;\n    pbVar6 = param_1 + iVar7;\n  } while (iVar7 < iVar9);\n  iVar9 = *(int *)(puVar10 + 0x3ef04);\nLAB_00018a08:\n  uVar1 = iVar9 + 0x2918;\n  (**(code **)(puVar10 + 0x3efb0))();\n  if (puStack_4c == (undefined1 *)**(int **)(puVar10 + 0x3f114)) {\n    return (undefined1 *)**(int **)(puVar10 + 0x3f114);\n  }\n  pcVar11 = *(code **)(puVar10 + 0x3f0e0);\n  (*pcVar11)();\n  iVar9 = *(int *)(pcVar11 + 0x3ee38);\n  if (puVar2 == (undefined1 *)0x0) {\n    iVar9 = *(int *)(pcVar11 + 0x3efd0);\n  }\n  if ((puVar3 != (undefined1 *)0x0) && (0 < iVar4)) {\n    if (iVar4 == 1) {\n      *puVar3 = 0;\n    }\n    else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }\n  }\n  return puVar3;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined1 *puVar2;" (type_identifier "undefined1") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined1 *puVar3;" (type_identifier "undefined1") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "ushort uVar5;" (type_identifier "ushort") (identifier "uVar5") (; ";")) (declaration "byte *pbVar6;" (type_identifier "byte") (pointer_declarator "*pbVar6" (* "*") (identifier "pbVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "undefined *puVar10;" (type_identifier "undefined") (pointer_declarator "*puVar10" (* "*") (identifier "puVar10")) (; ";")) (declaration "code *pcVar11;" (type_identifier "code") (pointer_declarator "*pcVar11" (* "*") (identifier "pcVar11")) (; ";")) (declaration "undefined1 auStack_cc [127];" (type_identifier "undefined1") (array_declarator "auStack_cc [127]" (identifier "auStack_cc") ([ "[") (number_literal "127") (] "]")) (; ";")) (declaration "undefined1 uStack_4d;" (type_identifier "undefined1") (identifier "uStack_4d") (; ";")) (declaration "undefined1 *puStack_4c;" (type_identifier "undefined1") (pointer_declarator "*puStack_4c" (* "*") (identifier "puStack_4c")) (; ";")) (expression_statement "puVar3 = *(undefined1 **)PTR___stack_chk_guard_00057a50;" (assignment_expression "puVar3 = *(undefined1 **)PTR___stack_chk_guard_00057a50" (identifier "puVar3") (= "=") (pointer_expression "*(undefined1 **)PTR___stack_chk_guard_00057a50" (* "*") (cast_expression "(undefined1 **)PTR___stack_chk_guard_00057a50" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___stack_chk_guard_00057a50")))) (; ";")) (if_statement "if ((param_4 != (byte *)0x0) && (0 < param_3)) {\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else if (param_1 == (byte *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      param_1 = param_4;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }\n  }" (if "if") (parenthesized_expression "((param_4 != (byte *)0x0) && (0 < param_3))" (( "(") (binary_expression "(param_4 != (byte *)0x0) && (0 < param_3)" (parenthesized_expression "(param_4 != (byte *)0x0)" (( "(") (binary_expression "param_4 != (byte *)0x0" (identifier "param_4") (!= "!=") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(0 < param_3)" (( "(") (binary_expression "0 < param_3" (number_literal "0") (< "<") (identifier "param_3")) () ")"))) () ")")) (compound_statement "{\n    if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else if (param_1 == (byte *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      param_1 = param_4;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }\n  }" ({ "{") (if_statement "if (param_3 == 1) {\n      *param_4 = 0;\n    }\n    else if (param_1 == (byte *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      param_1 = param_4;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }" (if "if") (parenthesized_expression "(param_3 == 1)" (( "(") (binary_expression "param_3 == 1" (identifier "param_3") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      *param_4 = 0;\n    }" ({ "{") (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else if (param_1 == (byte *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      param_1 = param_4;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }" (else "else") (if_statement "if (param_1 == (byte *)0x0) {\n      (*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      param_1 = param_4;\n    }\n    else {\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }" (if "if") (parenthesized_expression "(param_1 == (byte *)0x0)" (( "(") (binary_expression "param_1 == (byte *)0x0" (identifier "param_1") (== "==") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      (*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);\n      param_1 = param_4;\n    }" ({ "{") (expression_statement "(*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);" (call_expression "(*(code *)PTR_sg_scnpr_00057904)\n                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc)" (parenthesized_expression "(*(code *)PTR_sg_scnpr_00057904)" (( "(") (pointer_expression "*(code *)PTR_sg_scnpr_00057904" (* "*") (cast_expression "(code *)PTR_sg_scnpr_00057904" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sg_scnpr_00057904"))) () ")")) (argument_list "(param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc)" (( "(") (identifier "param_4") (, ",") (identifier "param_3") (, ",") (binary_expression "PTR_LAB_0005783c + 0x50e0" (identifier "PTR_LAB_0005783c") (+ "+") (number_literal "0x50e0")) (, ",") (binary_expression "PTR_LAB_0005783c + 0x50fc" (identifier "PTR_LAB_0005783c") (+ "+") (number_literal "0x50fc")) () ")"))) (; ";")) (expression_statement "param_1 = param_4;" (assignment_expression "param_1 = param_4" (identifier "param_1") (= "=") (identifier "param_4")) (; ";")) (} "}")) (else_clause "else {\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }" (else "else") (compound_statement "{\n      pbVar6 = (byte *)(uint)*param_1;\n      if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }\n      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);\n      param_1 = pbVar6;\n    }" ({ "{") (expression_statement "pbVar6 = (byte *)(uint)*param_1;" (assignment_expression "pbVar6 = (byte *)(uint)*param_1" (identifier "pbVar6") (= "=") (binary_expression "(byte *)(uint)*param_1" (cast_expression "(byte *)(uint)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")"))) (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (pbVar6 == (byte *)0x7f) {\n        uVar5 = *(ushort *)(param_1 + 8);\n      }\n      else {\n        uVar5 = param_1[1] & 0x1f;\n      }" (if "if") (parenthesized_expression "(pbVar6 == (byte *)0x7f)" (( "(") (binary_expression "pbVar6 == (byte *)0x7f" (identifier "pbVar6") (== "==") (cast_expression "(byte *)0x7f" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x7f"))) () ")")) (compound_statement "{\n        uVar5 = *(ushort *)(param_1 + 8);\n      }" ({ "{") (expression_statement "uVar5 = *(ushort *)(param_1 + 8);" (assignment_expression "uVar5 = *(ushort *)(param_1 + 8)" (identifier "uVar5") (= "=") (pointer_expression "*(ushort *)(param_1 + 8)" (* "*") (cast_expression "(ushort *)(param_1 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n        uVar5 = param_1[1] & 0x1f;\n      }" (else "else") (compound_statement "{\n        uVar5 = param_1[1] & 0x1f;\n      }" ({ "{") (expression_statement "uVar5 = param_1[1] & 0x1f;" (assignment_expression "uVar5 = param_1[1] & 0x1f" (identifier "uVar5") (= "=") (binary_expression "param_1[1] & 0x1f" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (& "&") (number_literal "0x1f"))) (; ";")) (} "}")))) (expression_statement "(*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);" (call_expression "(*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_sg_get_opcode_sa_name_000578bc)" (( "(") (pointer_expression "*(code *)PTR_sg_get_opcode_sa_name_000578bc" (* "*") (cast_expression "(code *)PTR_sg_get_opcode_sa_name_000578bc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sg_get_opcode_sa_name_000578bc"))) () ")")) (argument_list "(pbVar6,uVar5,param_2,param_3)" (( "(") (identifier "pbVar6") (, ",") (identifier "uVar5") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "param_1 = pbVar6;" (assignment_expression "param_1 = pbVar6" (identifier "param_1") (= "=") (identifier "pbVar6")) (; ";")) (} "}")))))) (} "}"))) (if_statement "if (puVar3 == *(undefined1 **)PTR___stack_chk_guard_00057a50) {\n    return *(undefined1 **)PTR___stack_chk_guard_00057a50;\n  }" (if "if") (parenthesized_expression "(puVar3 == *(undefined1 **)PTR___stack_chk_guard_00057a50)" (( "(") (binary_expression "puVar3 == *(undefined1 **)PTR___stack_chk_guard_00057a50" (identifier "puVar3") (== "==") (pointer_expression "*(undefined1 **)PTR___stack_chk_guard_00057a50" (* "*") (cast_expression "(undefined1 **)PTR___stack_chk_guard_00057a50" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___stack_chk_guard_00057a50")))) () ")")) (compound_statement "{\n    return *(undefined1 **)PTR___stack_chk_guard_00057a50;\n  }" ({ "{") (return_statement "return *(undefined1 **)PTR___stack_chk_guard_00057a50;" (return "return") (pointer_expression "*(undefined1 **)PTR___stack_chk_guard_00057a50" (* "*") (cast_expression "(undefined1 **)PTR___stack_chk_guard_00057a50" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___stack_chk_guard_00057a50"))) (; ";")) (} "}"))) (expression_statement "puVar10 = PTR___stack_chk_fail_00057a1c;" (assignment_expression "puVar10 = PTR___stack_chk_fail_00057a1c" (identifier "puVar10") (= "=") (identifier "PTR___stack_chk_fail_00057a1c")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_00057a1c)();" (call_expression "(*(code *)PTR___stack_chk_fail_00057a1c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00057a1c)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_00057a1c" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_00057a1c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_00057a1c"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puStack_4c = (undefined1 *)**(int **)(puVar10 + 0x3f114);" (assignment_expression "puStack_4c = (undefined1 *)**(int **)(puVar10 + 0x3f114)" (identifier "puStack_4c") (= "=") (cast_expression "(undefined1 *)**(int **)(puVar10 + 0x3f114)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "**(int **)(puVar10 + 0x3f114)" (* "*") (pointer_expression "*(int **)(puVar10 + 0x3f114)" (* "*") (cast_expression "(int **)(puVar10 + 0x3f114)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x3f114)" (( "(") (binary_expression "puVar10 + 0x3f114" (identifier "puVar10") (+ "+") (number_literal "0x3f114")) () ")"))))))) (; ";")) (expression_statement "puVar2 = auStack_cc;" (assignment_expression "puVar2 = auStack_cc" (identifier "puVar2") (= "=") (identifier "auStack_cc")) (; ";")) (expression_statement "iVar4 = 0x80;" (assignment_expression "iVar4 = 0x80" (identifier "iVar4") (= "=") (number_literal "0x80")) (; ";")) (expression_statement "puVar3 = puVar2;" (assignment_expression "puVar3 = puVar2" (identifier "puVar3") (= "=") (identifier "puVar2")) (; ";")) (expression_statement "(**(code **)(puVar10 + 0x3ef1c))();" (call_expression "(**(code **)(puVar10 + 0x3ef1c))()" (parenthesized_expression "(**(code **)(puVar10 + 0x3ef1c))" (( "(") (pointer_expression "**(code **)(puVar10 + 0x3ef1c)" (* "*") (pointer_expression "*(code **)(puVar10 + 0x3ef1c)" (* "*") (cast_expression "(code **)(puVar10 + 0x3ef1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x3ef1c)" (( "(") (binary_expression "puVar10 + 0x3ef1c" (identifier "puVar10") (+ "+") (number_literal "0x3ef1c")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uStack_4d = 0;" (assignment_expression "uStack_4d = 0" (identifier "uStack_4d") (= "=") (number_literal "0")) (; ";")) (expression_statement "(**(code **)(puVar10 + 0x3efb0))(*(int *)(puVar10 + 0x3ef00) + 0x5114);" (call_expression "(**(code **)(puVar10 + 0x3efb0))(*(int *)(puVar10 + 0x3ef00) + 0x5114)" (parenthesized_expression "(**(code **)(puVar10 + 0x3efb0))" (( "(") (pointer_expression "**(code **)(puVar10 + 0x3efb0)" (* "*") (pointer_expression "*(code **)(puVar10 + 0x3efb0)" (* "*") (cast_expression "(code **)(puVar10 + 0x3efb0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x3efb0)" (( "(") (binary_expression "puVar10 + 0x3efb0" (identifier "puVar10") (+ "+") (number_literal "0x3efb0")) () ")"))))) () ")")) (argument_list "(*(int *)(puVar10 + 0x3ef00) + 0x5114)" (( "(") (binary_expression "*(int *)(puVar10 + 0x3ef00) + 0x5114" (pointer_expression "*(int *)(puVar10 + 0x3ef00)" (* "*") (cast_expression "(int *)(puVar10 + 0x3ef00)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar10 + 0x3ef00)" (( "(") (binary_expression "puVar10 + 0x3ef00" (identifier "puVar10") (+ "+") (number_literal "0x3ef00")) () ")")))) (+ "+") (number_literal "0x5114")) () ")"))) (; ";")) (if_statement "if (*param_1 == 0x7f) {\n    iVar9 = param_1[7] + 8;\n  }\n  else {\n    iVar9 = (**(code **)(puVar10 + 0x3f0d8))();\n    if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }\n  }" (if "if") (parenthesized_expression "(*param_1 == 0x7f)" (( "(") (binary_expression "*param_1 == 0x7f" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "0x7f")) () ")")) (compound_statement "{\n    iVar9 = param_1[7] + 8;\n  }" ({ "{") (expression_statement "iVar9 = param_1[7] + 8;" (assignment_expression "iVar9 = param_1[7] + 8" (identifier "iVar9") (= "=") (binary_expression "param_1[7] + 8" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (+ "+") (number_literal "8"))) (; ";")) (} "}")) (else_clause "else {\n    iVar9 = (**(code **)(puVar10 + 0x3f0d8))();\n    if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }\n  }" (else "else") (compound_statement "{\n    iVar9 = (**(code **)(puVar10 + 0x3f0d8))();\n    if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }\n  }" ({ "{") (expression_statement "iVar9 = (**(code **)(puVar10 + 0x3f0d8))();" (assignment_expression "iVar9 = (**(code **)(puVar10 + 0x3f0d8))()" (identifier "iVar9") (= "=") (call_expression "(**(code **)(puVar10 + 0x3f0d8))()" (parenthesized_expression "(**(code **)(puVar10 + 0x3f0d8))" (( "(") (pointer_expression "**(code **)(puVar10 + 0x3f0d8)" (* "*") (pointer_expression "*(code **)(puVar10 + 0x3f0d8)" (* "*") (cast_expression "(code **)(puVar10 + 0x3f0d8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x3f0d8)" (( "(") (binary_expression "puVar10 + 0x3f0d8" (identifier "puVar10") (+ "+") (number_literal "0x3f0d8")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar9 < 1) {\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }" (if "if") (parenthesized_expression "(iVar9 < 1)" (( "(") (binary_expression "iVar9 < 1" (identifier "iVar9") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      iVar9 = *(int *)(puVar10 + 0x3ef04);\n      goto LAB_00018a08;\n    }" ({ "{") (expression_statement "iVar9 = *(int *)(puVar10 + 0x3ef04);" (assignment_expression "iVar9 = *(int *)(puVar10 + 0x3ef04)" (identifier "iVar9") (= "=") (pointer_expression "*(int *)(puVar10 + 0x3ef04)" (* "*") (cast_expression "(int *)(puVar10 + 0x3ef04)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar10 + 0x3ef04)" (( "(") (binary_expression "puVar10 + 0x3ef04" (identifier "puVar10") (+ "+") (number_literal "0x3ef04")) () ")"))))) (; ";")) (goto_statement "goto LAB_00018a08;" (goto "goto") (statement_identifier "LAB_00018a08") (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar8 = *(int *)(puVar10 + 0x3ef00);" (assignment_expression "iVar8 = *(int *)(puVar10 + 0x3ef00)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(puVar10 + 0x3ef00)" (* "*") (cast_expression "(int *)(puVar10 + 0x3ef00)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar10 + 0x3ef00)" (( "(") (binary_expression "puVar10 + 0x3ef00" (identifier "puVar10") (+ "+") (number_literal "0x3ef00")) () ")"))))) (; ";")) (expression_statement "pbVar6 = param_1;" (assignment_expression "pbVar6 = param_1" (identifier "pbVar6") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n    puVar2 = (undefined1 *)(uint)*pbVar6;\n    (**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c);\n    iVar7 = iVar7 + 1;\n    pbVar6 = param_1 + iVar7;\n  } while (iVar7 < iVar9);" (do "do") (compound_statement "{\n    puVar2 = (undefined1 *)(uint)*pbVar6;\n    (**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c);\n    iVar7 = iVar7 + 1;\n    pbVar6 = param_1 + iVar7;\n  }" ({ "{") (expression_statement "puVar2 = (undefined1 *)(uint)*pbVar6;" (assignment_expression "puVar2 = (undefined1 *)(uint)*pbVar6" (identifier "puVar2") (= "=") (binary_expression "(undefined1 *)(uint)*pbVar6" (cast_expression "(undefined1 *)(uint)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")"))) (* "*") (identifier "pbVar6"))) (; ";")) (expression_statement "(**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c);" (call_expression "(**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c)" (parenthesized_expression "(**(code **)(puVar10 + 0x3efb0))" (( "(") (pointer_expression "**(code **)(puVar10 + 0x3efb0)" (* "*") (pointer_expression "*(code **)(puVar10 + 0x3efb0)" (* "*") (cast_expression "(code **)(puVar10 + 0x3efb0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x3efb0)" (( "(") (binary_expression "puVar10 + 0x3efb0" (identifier "puVar10") (+ "+") (number_literal "0x3efb0")) () ")"))))) () ")")) (argument_list "(iVar8 + 0x511c)" (( "(") (binary_expression "iVar8 + 0x511c" (identifier "iVar8") (+ "+") (number_literal "0x511c")) () ")"))) (; ";")) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar6 = param_1 + iVar7;" (assignment_expression "pbVar6 = param_1 + iVar7" (identifier "pbVar6") (= "=") (binary_expression "param_1 + iVar7" (identifier "param_1") (+ "+") (identifier "iVar7"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar7 < iVar9)" (( "(") (binary_expression "iVar7 < iVar9" (identifier "iVar7") (< "<") (identifier "iVar9")) () ")")) (; ";")) (expression_statement "iVar9 = *(int *)(puVar10 + 0x3ef04);" (assignment_expression "iVar9 = *(int *)(puVar10 + 0x3ef04)" (identifier "iVar9") (= "=") (pointer_expression "*(int *)(puVar10 + 0x3ef04)" (* "*") (cast_expression "(int *)(puVar10 + 0x3ef04)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar10 + 0x3ef04)" (( "(") (binary_expression "puVar10 + 0x3ef04" (identifier "puVar10") (+ "+") (number_literal "0x3ef04")) () ")"))))) (; ";")) (labeled_statement "LAB_00018a08:\n  uVar1 = iVar9 + 0x2918;" (statement_identifier "LAB_00018a08") (: ":") (expression_statement "uVar1 = iVar9 + 0x2918;" (assignment_expression "uVar1 = iVar9 + 0x2918" (identifier "uVar1") (= "=") (binary_expression "iVar9 + 0x2918" (identifier "iVar9") (+ "+") (number_literal "0x2918"))) (; ";"))) (expression_statement "(**(code **)(puVar10 + 0x3efb0))();" (call_expression "(**(code **)(puVar10 + 0x3efb0))()" (parenthesized_expression "(**(code **)(puVar10 + 0x3efb0))" (( "(") (pointer_expression "**(code **)(puVar10 + 0x3efb0)" (* "*") (pointer_expression "*(code **)(puVar10 + 0x3efb0)" (* "*") (cast_expression "(code **)(puVar10 + 0x3efb0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x3efb0)" (( "(") (binary_expression "puVar10 + 0x3efb0" (identifier "puVar10") (+ "+") (number_literal "0x3efb0")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (puStack_4c == (undefined1 *)**(int **)(puVar10 + 0x3f114)) {\n    return (undefined1 *)**(int **)(puVar10 + 0x3f114);\n  }" (if "if") (parenthesized_expression "(puStack_4c == (undefined1 *)**(int **)(puVar10 + 0x3f114))" (( "(") (binary_expression "puStack_4c == (undefined1 *)**(int **)(puVar10 + 0x3f114)" (identifier "puStack_4c") (== "==") (cast_expression "(undefined1 *)**(int **)(puVar10 + 0x3f114)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "**(int **)(puVar10 + 0x3f114)" (* "*") (pointer_expression "*(int **)(puVar10 + 0x3f114)" (* "*") (cast_expression "(int **)(puVar10 + 0x3f114)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x3f114)" (( "(") (binary_expression "puVar10 + 0x3f114" (identifier "puVar10") (+ "+") (number_literal "0x3f114")) () ")"))))))) () ")")) (compound_statement "{\n    return (undefined1 *)**(int **)(puVar10 + 0x3f114);\n  }" ({ "{") (return_statement "return (undefined1 *)**(int **)(puVar10 + 0x3f114);" (return "return") (cast_expression "(undefined1 *)**(int **)(puVar10 + 0x3f114)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "**(int **)(puVar10 + 0x3f114)" (* "*") (pointer_expression "*(int **)(puVar10 + 0x3f114)" (* "*") (cast_expression "(int **)(puVar10 + 0x3f114)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x3f114)" (( "(") (binary_expression "puVar10 + 0x3f114" (identifier "puVar10") (+ "+") (number_literal "0x3f114")) () ")")))))) (; ";")) (} "}"))) (expression_statement "pcVar11 = *(code **)(puVar10 + 0x3f0e0);" (assignment_expression "pcVar11 = *(code **)(puVar10 + 0x3f0e0)" (identifier "pcVar11") (= "=") (pointer_expression "*(code **)(puVar10 + 0x3f0e0)" (* "*") (cast_expression "(code **)(puVar10 + 0x3f0e0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x3f0e0)" (( "(") (binary_expression "puVar10 + 0x3f0e0" (identifier "puVar10") (+ "+") (number_literal "0x3f0e0")) () ")"))))) (; ";")) (expression_statement "(*pcVar11)();" (call_expression "(*pcVar11)()" (parenthesized_expression "(*pcVar11)" (( "(") (pointer_expression "*pcVar11" (* "*") (identifier "pcVar11")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar9 = *(int *)(pcVar11 + 0x3ee38);" (assignment_expression "iVar9 = *(int *)(pcVar11 + 0x3ee38)" (identifier "iVar9") (= "=") (pointer_expression "*(int *)(pcVar11 + 0x3ee38)" (* "*") (cast_expression "(int *)(pcVar11 + 0x3ee38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar11 + 0x3ee38)" (( "(") (binary_expression "pcVar11 + 0x3ee38" (identifier "pcVar11") (+ "+") (number_literal "0x3ee38")) () ")"))))) (; ";")) (if_statement "if (puVar2 == (undefined1 *)0x0) {\n    iVar9 = *(int *)(pcVar11 + 0x3efd0);\n  }" (if "if") (parenthesized_expression "(puVar2 == (undefined1 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined1 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar9 = *(int *)(pcVar11 + 0x3efd0);\n  }" ({ "{") (expression_statement "iVar9 = *(int *)(pcVar11 + 0x3efd0);" (assignment_expression "iVar9 = *(int *)(pcVar11 + 0x3efd0)" (identifier "iVar9") (= "=") (pointer_expression "*(int *)(pcVar11 + 0x3efd0)" (* "*") (cast_expression "(int *)(pcVar11 + 0x3efd0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar11 + 0x3efd0)" (( "(") (binary_expression "pcVar11 + 0x3efd0" (identifier "pcVar11") (+ "+") (number_literal "0x3efd0")) () ")"))))) (; ";")) (} "}"))) (if_statement "if ((puVar3 != (undefined1 *)0x0) && (0 < iVar4)) {\n    if (iVar4 == 1) {\n      *puVar3 = 0;\n    }\n    else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }\n  }" (if "if") (parenthesized_expression "((puVar3 != (undefined1 *)0x0) && (0 < iVar4))" (( "(") (binary_expression "(puVar3 != (undefined1 *)0x0) && (0 < iVar4)" (parenthesized_expression "(puVar3 != (undefined1 *)0x0)" (( "(") (binary_expression "puVar3 != (undefined1 *)0x0" (identifier "puVar3") (!= "!=") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(0 < iVar4)" (( "(") (binary_expression "0 < iVar4" (number_literal "0") (< "<") (identifier "iVar4")) () ")"))) () ")")) (compound_statement "{\n    if (iVar4 == 1) {\n      *puVar3 = 0;\n    }\n    else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }\n  }" ({ "{") (if_statement "if (iVar4 == 1) {\n      *puVar3 = 0;\n    }\n    else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }" (if "if") (parenthesized_expression "(iVar4 == 1)" (( "(") (binary_expression "iVar4 == 1" (identifier "iVar4") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      *puVar3 = 0;\n    }" ({ "{") (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }" (else "else") (if_statement "if (*(int *)(iVar9 + 4) == 0) {\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }\n    else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar9 + 4) == 0)" (( "(") (binary_expression "*(int *)(iVar9 + 4) == 0" (pointer_expression "*(int *)(iVar9 + 4)" (* "*") (cast_expression "(int *)(iVar9 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + 4)" (( "(") (binary_expression "iVar9 + 4" (identifier "iVar9") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }\n    }" ({ "{") (labeled_statement "LAB_00018b24:\n      if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }" (statement_identifier "LAB_00018b24") (: ":") (if_statement "if (puVar2 == (undefined1 *)0x0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }" (if "if") (parenthesized_expression "(puVar2 == (undefined1 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined1 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }" ({ "{") (if_statement "if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }" (if "if") (parenthesized_expression "((char)uVar1 < '\0')" (( "(") (binary_expression "(char)uVar1 < '\0'" (cast_expression "(char)uVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar1")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);\n        }" ({ "{") (expression_statement "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0);" (call_expression "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0)" (parenthesized_expression "(**(code **)(pcVar11 + 0x3f040))" (( "(") (pointer_expression "**(code **)(pcVar11 + 0x3f040)" (* "*") (pointer_expression "*(code **)(pcVar11 + 0x3f040)" (* "*") (cast_expression "(code **)(pcVar11 + 0x3f040)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar11 + 0x3f040)" (( "(") (binary_expression "pcVar11 + 0x3f040" (identifier "pcVar11") (+ "+") (number_literal "0x3f040")) () ")"))))) () ")")) (argument_list "(puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,\n                     pcVar11 + 0x46da0)" (( "(") (identifier "puVar3") (, ",") (identifier "iVar4") (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (binary_expression "*(int *)(pcVar11 + 0x3edcc) + 0x5124" (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" (* "*") (cast_expression "(int *)(pcVar11 + 0x3edcc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar11 + 0x3edcc)" (( "(") (binary_expression "pcVar11 + 0x3edcc" (identifier "pcVar11") (+ "+") (number_literal "0x3edcc")) () ")")))) (+ "+") (number_literal "0x5124")) (, ",") (identifier "uVar1") (, ",") (binary_expression "pcVar11 + 0x46da0" (identifier "pcVar11") (+ "+") (number_literal "0x46da0")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }" (else "else") (compound_statement "{\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }" ({ "{") (expression_statement "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);" (call_expression "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1)" (parenthesized_expression "(**(code **)(pcVar11 + 0x3f040))" (( "(") (pointer_expression "**(code **)(pcVar11 + 0x3f040)" (* "*") (pointer_expression "*(code **)(pcVar11 + 0x3f040)" (* "*") (cast_expression "(code **)(pcVar11 + 0x3f040)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar11 + 0x3f040)" (( "(") (binary_expression "pcVar11 + 0x3f040" (identifier "pcVar11") (+ "+") (number_literal "0x3f040")) () ")"))))) () ")")) (argument_list "(puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1)" (( "(") (identifier "puVar3") (, ",") (identifier "iVar4") (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (binary_expression "*(int *)(pcVar11 + 0x3edcc) + 0x5168" (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" (* "*") (cast_expression "(int *)(pcVar11 + 0x3edcc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar11 + 0x3edcc)" (( "(") (binary_expression "pcVar11 + 0x3edcc" (identifier "pcVar11") (+ "+") (number_literal "0x3edcc")) () ")")))) (+ "+") (number_literal "0x5168")) (, ",") (identifier "uVar1") () ")"))) (; ";")) (} "}")))) (} "}")) (else_clause "else if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }" (else "else") (if_statement "if (uVar1 < 0xc0) {\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }\n      else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }" (if "if") (parenthesized_expression "(uVar1 < 0xc0)" (( "(") (binary_expression "uVar1 < 0xc0" (identifier "uVar1") (< "<") (number_literal "0xc0")) () ")")) (compound_statement "{\n        if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }\n      }" ({ "{") (if_statement "if ((char)uVar1 < '\0') {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }\n        else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }" (if "if") (parenthesized_expression "((char)uVar1 < '\0')" (( "(") (binary_expression "(char)uVar1 < '\0'" (cast_expression "(char)uVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar1")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);\n        }" ({ "{") (expression_statement "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);" (call_expression "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1)" (parenthesized_expression "(**(code **)(pcVar11 + 0x3f040))" (( "(") (pointer_expression "**(code **)(pcVar11 + 0x3f040)" (* "*") (pointer_expression "*(code **)(pcVar11 + 0x3f040)" (* "*") (cast_expression "(code **)(pcVar11 + 0x3f040)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar11 + 0x3f040)" (( "(") (binary_expression "pcVar11 + 0x3f040" (identifier "pcVar11") (+ "+") (number_literal "0x3f040")) () ")"))))) () ")")) (argument_list "(puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1)" (( "(") (identifier "puVar3") (, ",") (identifier "iVar4") (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (binary_expression "*(int *)(pcVar11 + 0x3edcc) + 0x5144" (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" (* "*") (cast_expression "(int *)(pcVar11 + 0x3edcc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar11 + 0x3edcc)" (( "(") (binary_expression "pcVar11 + 0x3edcc" (identifier "pcVar11") (+ "+") (number_literal "0x3edcc")) () ")")))) (+ "+") (number_literal "0x5144")) (, ",") (identifier "uVar1") () ")"))) (; ";")) (} "}")) (else_clause "else {\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }" (else "else") (compound_statement "{\n          (**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);\n        }" ({ "{") (expression_statement "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);" (call_expression "(**(code **)(pcVar11 + 0x3f040))\n                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1)" (parenthesized_expression "(**(code **)(pcVar11 + 0x3f040))" (( "(") (pointer_expression "**(code **)(pcVar11 + 0x3f040)" (* "*") (pointer_expression "*(code **)(pcVar11 + 0x3f040)" (* "*") (cast_expression "(code **)(pcVar11 + 0x3f040)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar11 + 0x3f040)" (( "(") (binary_expression "pcVar11 + 0x3f040" (identifier "pcVar11") (+ "+") (number_literal "0x3f040")) () ")"))))) () ")")) (argument_list "(puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1)" (( "(") (identifier "puVar3") (, ",") (identifier "iVar4") (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (binary_expression "*(int *)(pcVar11 + 0x3edcc) + 0x5168" (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" (* "*") (cast_expression "(int *)(pcVar11 + 0x3edcc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar11 + 0x3edcc)" (( "(") (binary_expression "pcVar11 + 0x3edcc" (identifier "pcVar11") (+ "+") (number_literal "0x3edcc")) () ")")))) (+ "+") (number_literal "0x5168")) (, ",") (identifier "uVar1") () ")"))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }" (else "else") (compound_statement "{\n        (**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);\n      }" ({ "{") (expression_statement "(**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);" (call_expression "(**(code **)(pcVar11 + 0x3f040))\n                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1)" (parenthesized_expression "(**(code **)(pcVar11 + 0x3f040))" (( "(") (pointer_expression "**(code **)(pcVar11 + 0x3f040)" (* "*") (pointer_expression "*(code **)(pcVar11 + 0x3f040)" (* "*") (cast_expression "(code **)(pcVar11 + 0x3f040)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar11 + 0x3f040)" (( "(") (binary_expression "pcVar11 + 0x3f040" (identifier "pcVar11") (+ "+") (number_literal "0x3f040")) () ")"))))) () ")")) (argument_list "(puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1)" (( "(") (identifier "puVar3") (, ",") (identifier "iVar4") (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (binary_expression "*(int *)(pcVar11 + 0x3edcc) + 0x5124" (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" (* "*") (cast_expression "(int *)(pcVar11 + 0x3edcc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar11 + 0x3edcc)" (( "(") (binary_expression "pcVar11 + 0x3edcc" (identifier "pcVar11") (+ "+") (number_literal "0x3edcc")) () ")")))) (+ "+") (number_literal "0x5124")) (, ",") (identifier "uVar1") () ")"))) (; ";")) (} "}"))))))) (} "}")) (else_clause "else {\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }" (else "else") (compound_statement "{\n      iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }\n      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);\n    }" ({ "{") (expression_statement "iVar7 = *(int *)(pcVar11 + 0x3edcc);" (assignment_expression "iVar7 = *(int *)(pcVar11 + 0x3edcc)" (identifier "iVar7") (= "=") (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" (* "*") (cast_expression "(int *)(pcVar11 + 0x3edcc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar11 + 0x3edcc)" (( "(") (binary_expression "pcVar11 + 0x3edcc" (identifier "pcVar11") (+ "+") (number_literal "0x3edcc")) () ")"))))) (; ";")) (if_statement "if (uVar1 != *(byte *)(iVar9 + 3)) {\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }" (if "if") (parenthesized_expression "(uVar1 != *(byte *)(iVar9 + 3))" (( "(") (binary_expression "uVar1 != *(byte *)(iVar9 + 3)" (identifier "uVar1") (!= "!=") (pointer_expression "*(byte *)(iVar9 + 3)" (* "*") (cast_expression "(byte *)(iVar9 + 3)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + 3)" (( "(") (binary_expression "iVar9 + 3" (identifier "iVar9") (+ "+") (number_literal "3")) () ")"))))) () ")")) (compound_statement "{\n        do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);\n        iVar7 = *(int *)(pcVar11 + 0x3edcc);\n      }" ({ "{") (do_statement "do {\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        } while (*pbVar6 != uVar1);" (do "do") (compound_statement "{\n          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;\n          pbVar6 = (byte *)(iVar9 + 0xb);\n          iVar9 = iVar9 + 8;\n        }" ({ "{") (if_statement "if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;" (if "if") (parenthesized_expression "(*(int *)(iVar9 + 0xc) == 0)" (( "(") (binary_expression "*(int *)(iVar9 + 0xc) == 0" (pointer_expression "*(int *)(iVar9 + 0xc)" (* "*") (cast_expression "(int *)(iVar9 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + 0xc)" (( "(") (binary_expression "iVar9 + 0xc" (identifier "iVar9") (+ "+") (number_literal "0xc")) () ")")))) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00018b24;" (goto "goto") (statement_identifier "LAB_00018b24") (; ";"))) (expression_statement "pbVar6 = (byte *)(iVar9 + 0xb);" (assignment_expression "pbVar6 = (byte *)(iVar9 + 0xb)" (identifier "pbVar6") (= "=") (cast_expression "(byte *)(iVar9 + 0xb)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + 0xb)" (( "(") (binary_expression "iVar9 + 0xb" (identifier "iVar9") (+ "+") (number_literal "0xb")) () ")")))) (; ";")) (expression_statement "iVar9 = iVar9 + 8;" (assignment_expression "iVar9 = iVar9 + 8" (identifier "iVar9") (= "=") (binary_expression "iVar9 + 8" (identifier "iVar9") (+ "+") (number_literal "8"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*pbVar6 != uVar1)" (( "(") (binary_expression "*pbVar6 != uVar1" (pointer_expression "*pbVar6" (* "*") (identifier "pbVar6")) (!= "!=") (identifier "uVar1")) () ")")) (; ";")) (expression_statement "iVar7 = *(int *)(pcVar11 + 0x3edcc);" (assignment_expression "iVar7 = *(int *)(pcVar11 + 0x3edcc)" (identifier "iVar7") (= "=") (pointer_expression "*(int *)(pcVar11 + 0x3edcc)" (* "*") (cast_expression "(int *)(pcVar11 + 0x3edcc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar11 + 0x3edcc)" (( "(") (binary_expression "pcVar11 + 0x3edcc" (identifier "pcVar11") (+ "+") (number_literal "0x3edcc")) () ")"))))) (; ";")) (} "}"))) (expression_statement "(**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);" (call_expression "(**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0)" (parenthesized_expression "(**(code **)(pcVar11 + 0x3eef4))" (( "(") (pointer_expression "**(code **)(pcVar11 + 0x3eef4)" (* "*") (pointer_expression "*(code **)(pcVar11 + 0x3eef4)" (* "*") (cast_expression "(code **)(pcVar11 + 0x3eef4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar11 + 0x3eef4)" (( "(") (binary_expression "pcVar11 + 0x3eef4" (identifier "pcVar11") (+ "+") (number_literal "0x3eef4")) () ")"))))) () ")")) (argument_list "(puVar3,iVar4,iVar7 + 0x50e0)" (( "(") (identifier "puVar3") (, ",") (identifier "iVar4") (, ",") (binary_expression "iVar7 + 0x50e0" (identifier "iVar7") (+ "+") (number_literal "0x50e0")) () ")"))) (; ";")) (} "}")))))) (} "}"))) (return_statement "return puVar3;" (return "return") (identifier "puVar3") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator 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: (primitive_type) 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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (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: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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) (identifier) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (identifier))) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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) (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))))))) (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: (identifier))))) consequence: (compound_statement (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier)))))) (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))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (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: (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: (number_literal))) (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 (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))))) (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: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) alternative: (else_clause (compound_statement (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)))) (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (goto_statement label: (statement_identifier))))))) (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))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (identifier))) right: (identifier)))) (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 (binary_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: (binary_expression left: (identifier) right: (identifier))))) condition: (parenthesized_expression (binary_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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (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))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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))))))))) consequence: (compound_statement (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (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 (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list))) (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (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) (number_literal) (number_literal) (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)) (identifier) (binary_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) (identifier) (number_literal) (number_literal) (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)) (identifier)))))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (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) (number_literal) (number_literal) (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)) (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) (number_literal) (number_literal) (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)) (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) (number_literal) (number_literal) (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)) (identifier))))))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (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)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (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) (binary_expression left: (identifier) right: (number_literal)))))))))))) (return_statement (identifier)))))

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

{
  uint uVar1;
  undefined1 *puVar2;
  undefined1 *puVar3;
  int iVar4;
  ushort uVar5;
  byte *pbVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  undefined *puVar10;
  code *pcVar11;
  undefined1 auStack_cc [127];
  undefined1 uStack_4d;
  undefined1 *puStack_4c;
  
  puVar3 = *(undefined1 **)PTR___stack_chk_guard_00057a50;
  if ((param_4 != (byte *)0x0) && (0 < param_3)) {
    if (param_3 == 1) {
      *param_4 = 0;
    }
    else if (param_1 == (byte *)0x0) {
      (*(code *)PTR_sg_scnpr_00057904)
                (param_4,param_3,PTR_LAB_0005783c + 0x50e0,PTR_LAB_0005783c + 0x50fc);
      param_1 = param_4;
    }
    else {
      pbVar6 = (byte *)(uint)*param_1;
      if (pbVar6 == (byte *)0x7f) {
        uVar5 = *(ushort *)(param_1 + 8);
      }
      else {
        uVar5 = param_1[1] & 0x1f;
      }
      (*(code *)PTR_sg_get_opcode_sa_name_000578bc)(pbVar6,uVar5,param_2,param_3);
      param_1 = pbVar6;
    }
  }
  if (puVar3 == *(undefined1 **)PTR___stack_chk_guard_00057a50) {
    return *(undefined1 **)PTR___stack_chk_guard_00057a50;
  }
  puVar10 = PTR___stack_chk_fail_00057a1c;
  (*(code *)PTR___stack_chk_fail_00057a1c)();
  puStack_4c = (undefined1 *)**(int **)(puVar10 + 0x3f114);
  puVar2 = auStack_cc;
  iVar4 = 0x80;
  puVar3 = puVar2;
  (**(code **)(puVar10 + 0x3ef1c))();
  uStack_4d = 0;
  (**(code **)(puVar10 + 0x3efb0))(*(int *)(puVar10 + 0x3ef00) + 0x5114);
  if (*param_1 == 0x7f) {
    iVar9 = param_1[7] + 8;
  }
  else {
    iVar9 = (**(code **)(puVar10 + 0x3f0d8))();
    if (iVar9 < 1) {
      iVar9 = *(int *)(puVar10 + 0x3ef04);
      goto LAB_00018a08;
    }
  }
  iVar7 = 0;
  iVar8 = *(int *)(puVar10 + 0x3ef00);
  pbVar6 = param_1;
  do {
    puVar2 = (undefined1 *)(uint)*pbVar6;
    (**(code **)(puVar10 + 0x3efb0))(iVar8 + 0x511c);
    iVar7 = iVar7 + 1;
    pbVar6 = param_1 + iVar7;
  } while (iVar7 < iVar9);
  iVar9 = *(int *)(puVar10 + 0x3ef04);
LAB_00018a08:
  uVar1 = iVar9 + 0x2918;
  (**(code **)(puVar10 + 0x3efb0))();
  if (puStack_4c == (undefined1 *)**(int **)(puVar10 + 0x3f114)) {
    return (undefined1 *)**(int **)(puVar10 + 0x3f114);
  }
  pcVar11 = *(code **)(puVar10 + 0x3f0e0);
  (*pcVar11)();
  iVar9 = *(int *)(pcVar11 + 0x3ee38);
  if (puVar2 == (undefined1 *)0x0) {
    iVar9 = *(int *)(pcVar11 + 0x3efd0);
  }
  if ((puVar3 != (undefined1 *)0x0) && (0 < iVar4)) {
    if (iVar4 == 1) {
      *puVar3 = 0;
    }
    else if (*(int *)(iVar9 + 4) == 0) {
LAB_00018b24:
      if (puVar2 == (undefined1 *)0x0) {
        if ((char)uVar1 < '\0') {
          (**(code **)(pcVar11 + 0x3f040))
                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1,
                     pcVar11 + 0x46da0);
        }
        else {
          (**(code **)(pcVar11 + 0x3f040))
                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);
        }
      }
      else if (uVar1 < 0xc0) {
        if ((char)uVar1 < '\0') {
          (**(code **)(pcVar11 + 0x3f040))
                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5144,uVar1);
        }
        else {
          (**(code **)(pcVar11 + 0x3f040))
                    (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5168,uVar1);
        }
      }
      else {
        (**(code **)(pcVar11 + 0x3f040))
                  (puVar3,iVar4,1,0xffffffff,*(int *)(pcVar11 + 0x3edcc) + 0x5124,uVar1);
      }
    }
    else {
      iVar7 = *(int *)(pcVar11 + 0x3edcc);
      if (uVar1 != *(byte *)(iVar9 + 3)) {
        do {
          if (*(int *)(iVar9 + 0xc) == 0) goto LAB_00018b24;
          pbVar6 = (byte *)(iVar9 + 0xb);
          iVar9 = iVar9 + 8;
        } while (*pbVar6 != uVar1);
        iVar7 = *(int *)(pcVar11 + 0x3edcc);
      }
      (**(code **)(pcVar11 + 0x3eef4))(puVar3,iVar4,iVar7 + 0x50e0);
    }
  }
  return puVar3;
}

