
/* std::istream::ignore(int, int) */

istream * __thiscall std::istream::ignore(istream *this,int param_1,int param_2)

{
  uint uVar1;
  int iVar2;
  istream *piVar3;
  int iVar4;
  byte *pbVar5;
  byte *pbVar6;
  int *piVar7;
  char cVar8;
  int in_t9;
  code *pcVar9;
  char local_48 [8];
  byte *local_40;
  int local_3c;
  byte *local_38;
  int local_34;
  int local_30;
  
  if (param_2 == -1) {
    piVar3 = (istream *)(**(code **)(in_t9 + 0x11b9f8))();
    return piVar3;
  }
  pcVar9 = *(code **)(in_t9 + 0x11b3f4);
  *(undefined4 *)(this + 4) = 0;
  (*pcVar9)(local_48,this,1);
  if (param_1 < 1) {
    return this;
  }
  if (local_48[0] == '\0') {
    return this;
  }
  local_30 = (int)(char)param_2;
  piVar7 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78);
  if ((byte *)piVar7[2] < (byte *)piVar7[3]) {
    uVar1 = (uint)*(byte *)piVar7[2];
  }
  else {
    uVar1 = (**(code **)(*piVar7 + 0x24))(piVar7);
  }
  iVar4 = *(int *)(this + 4);
  cVar8 = '\0';
  do {
    while (iVar4 < param_1) {
      if (uVar1 == 0xffffffff) {
LAB_0031abb4:
        if (param_1 == 0x7fffffff) goto LAB_0031ab14;
        if (cVar8 != '\0') {
          *(undefined4 *)(this + 4) = 0x7fffffff;
        }
        goto LAB_0031ab24;
      }
      if (uVar1 == param_2) {
        if (param_1 == 0x7fffffff) {
          if (cVar8 == '\0') goto LAB_0031ac1c;
          goto LAB_0031abe8;
        }
        if (cVar8 != '\0') goto LAB_0031abe8;
        iVar4 = *(int *)(this + 4);
        goto LAB_0031ac10;
      }
      pbVar6 = (byte *)piVar7[3];
      pbVar5 = (byte *)piVar7[2];
      iVar2 = param_1 - iVar4;
      if ((int)pbVar6 - (int)pbVar5 <= param_1 - iVar4) {
        iVar2 = (int)pbVar6 - (int)pbVar5;
      }
      if (iVar2 < 2) {
        *(int *)(this + 4) = iVar4 + 1;
        if (pbVar5 < pbVar6) {
          pbVar5 = pbVar5 + 1;
          piVar7[2] = (int)pbVar5;
        }
        else {
          iVar4 = (**(code **)(*piVar7 + 0x28))(piVar7);
          if (iVar4 == -1) goto LAB_0031abb4;
          pbVar5 = (byte *)piVar7[2];
          pbVar6 = (byte *)piVar7[3];
        }
        if (pbVar6 <= pbVar5) goto LAB_0031ac70;
        uVar1 = (uint)*pbVar5;
        iVar4 = *(int *)(this + 4);
      }
      else {
        local_40 = pbVar5;
        local_3c = iVar2;
        local_38 = pbVar6;
        local_34 = iVar4;
        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar5,local_30,iVar2);
        iVar4 = local_3c;
        if (iVar2 != 0) {
          iVar4 = iVar2 - (int)local_40;
        }
        pbVar5 = local_40 + iVar4;
        iVar4 = local_34 + iVar4;
        piVar7[2] = (int)pbVar5;
        *(int *)(this + 4) = iVar4;
        if (pbVar5 < local_38) {
          uVar1 = (uint)*pbVar5;
        }
        else {
LAB_0031ac70:
                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */
          uVar1 = (**(code **)(*piVar7 + 0x24))(piVar7);
          iVar4 = *(int *)(this + 4);
        }
      }
    }
    if (param_1 != 0x7fffffff) {
      if (cVar8 != '\0') goto LAB_0031abe8;
      goto LAB_0031abf8;
    }
    if (uVar1 == 0xffffffff) {
LAB_0031ab14:
      if (cVar8 != '\0') {
        *(undefined4 *)(this + 4) = 0x7fffffff;
      }
      goto LAB_0031ab24;
    }
    if (uVar1 == param_2) {
      if (cVar8 != '\0') {
LAB_0031abe8:
        *(undefined4 *)(this + 4) = 0x7fffffff;
LAB_0031abf8:
        if (uVar1 == 0xffffffff) {
LAB_0031ab24:
          (**(code **)(in_t9 + 0x1186c8))
                    (this + *(int *)(*(int *)this + -0xc),
                     *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 2);
          return this;
        }
        if (param_2 != uVar1) {
          return this;
        }
        iVar4 = *(int *)(this + 4);
      }
LAB_0031ac10:
      if (iVar4 != 0x7fffffff) {
LAB_0031ac1c:
        *(int *)(this + 4) = iVar4 + 1;
      }
      if ((uint)piVar7[2] < (uint)piVar7[3]) {
        piVar7[2] = piVar7[2] + 1;
      }
      else {
        (**(code **)(*piVar7 + 0x28))(piVar7);
      }
      return this;
    }
    *(undefined4 *)(this + 4) = 0x80000000;
    iVar4 = -0x80000000;
    cVar8 = local_48[0];
  } while( true );
}



int * FUN_0031a984(int *param_1,int param_2,uint param_3)

{
  uint uVar1;
  int iVar2;
  int iVar3;
  byte *pbVar4;
  byte *pbVar5;
  int *piVar6;
  char cVar7;
  int in_t9;
  code *pcVar8;
  char local_48 [8];
  byte *local_40;
  int local_3c;
  byte *local_38;
  int local_34;
  int local_30;
  
  if (param_3 == 0xffffffff) {
    piVar6 = (int *)(**(code **)(in_t9 + 0x11b9f8))();
    return piVar6;
  }
  pcVar8 = *(code **)(in_t9 + 0x11b3f4);
  param_1[1] = 0;
  (*pcVar8)(local_48,param_1,1);
  if (param_2 < 1) {
    return param_1;
  }
  if (local_48[0] == '\0') {
    return param_1;
  }
  local_30 = (int)(char)param_3;
  piVar6 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);
  if ((byte *)piVar6[2] < (byte *)piVar6[3]) {
    uVar1 = (uint)*(byte *)piVar6[2];
  }
  else {
    uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);
  }
  iVar3 = param_1[1];
  cVar7 = '\0';
  do {
    while (iVar3 < param_2) {
      if (uVar1 == 0xffffffff) {
LAB_0031abb4:
        if (param_2 == 0x7fffffff) goto LAB_0031ab14;
        if (cVar7 != '\0') {
          param_1[1] = 0x7fffffff;
        }
        goto LAB_0031ab24;
      }
      if (uVar1 == param_3) {
        if (param_2 == 0x7fffffff) {
          if (cVar7 == '\0') goto LAB_0031ac1c;
          goto LAB_0031abe8;
        }
        if (cVar7 != '\0') goto LAB_0031abe8;
        iVar3 = param_1[1];
        goto LAB_0031ac10;
      }
      pbVar5 = (byte *)piVar6[3];
      pbVar4 = (byte *)piVar6[2];
      iVar2 = param_2 - iVar3;
      if ((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3) {
        iVar2 = (int)pbVar5 - (int)pbVar4;
      }
      if (iVar2 < 2) {
        param_1[1] = iVar3 + 1;
        if (pbVar4 < pbVar5) {
          pbVar4 = pbVar4 + 1;
          piVar6[2] = (int)pbVar4;
        }
        else {
          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);
          if (iVar3 == -1) goto LAB_0031abb4;
          pbVar4 = (byte *)piVar6[2];
          pbVar5 = (byte *)piVar6[3];
        }
        if (pbVar5 <= pbVar4) goto LAB_0031ac70;
        uVar1 = (uint)*pbVar4;
        iVar3 = param_1[1];
      }
      else {
        local_40 = pbVar4;
        local_3c = iVar2;
        local_38 = pbVar5;
        local_34 = iVar3;
        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);
        iVar3 = local_3c;
        if (iVar2 != 0) {
          iVar3 = iVar2 - (int)local_40;
        }
        pbVar4 = local_40 + iVar3;
        iVar3 = local_34 + iVar3;
        piVar6[2] = (int)pbVar4;
        param_1[1] = iVar3;
        if (pbVar4 < local_38) {
          uVar1 = (uint)*pbVar4;
        }
        else {
LAB_0031ac70:
                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */
          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);
          iVar3 = param_1[1];
        }
      }
    }
    if (param_2 != 0x7fffffff) {
      if (cVar7 != '\0') goto LAB_0031abe8;
      goto LAB_0031abf8;
    }
    if (uVar1 == 0xffffffff) {
LAB_0031ab14:
      if (cVar7 != '\0') {
        param_1[1] = 0x7fffffff;
      }
      goto LAB_0031ab24;
    }
    if (uVar1 == param_3) {
      if (cVar7 != '\0') {
LAB_0031abe8:
        param_1[1] = 0x7fffffff;
LAB_0031abf8:
        if (uVar1 == 0xffffffff) {
LAB_0031ab24:
          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);
          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);
          return param_1;
        }
        if (param_3 != uVar1) {
          return param_1;
        }
        iVar3 = param_1[1];
      }
LAB_0031ac10:
      if (iVar3 != 0x7fffffff) {
LAB_0031ac1c:
        param_1[1] = iVar3 + 1;
      }
      if ((uint)piVar6[2] < (uint)piVar6[3]) {
        piVar6[2] = piVar6[2] + 1;
      }
      else {
        (**(code **)(*piVar6 + 0x28))(piVar6);
      }
      return param_1;
    }
    param_1[1] = -0x80000000;
    iVar3 = -0x80000000;
    cVar7 = local_48[0];
  } while( true );
}


lui gp,0x12
addiu gp,gp,-0x7b4
addu gp,gp,t9
addiu sp,sp,-0x60
li v0,-0x1
sw gp,0x10(sp)
sw ra,0x5c(sp)
sw s8,0x58(sp)
sw s7,0x54(sp)
sw s6,0x50(sp)
sw s5,0x4c(sp)
sw s4,0x48(sp)
sw s3,0x44(sp)
sw s2,0x40(sp)
sw s1,0x3c(sp)
beq a2,v0,0x0031ab78
_sw s0,0x38(sp)
or s0,a0,zero
lw t9,-0x4458(gp)
or s2,a2,zero
addiu a0,sp,0x18
sw zero,0x4(s0)
li a2,0x1
or s1,a1,zero
jalr t9
_or a1,s0,zero
blez s1,0x0031ab44
_lw gp,0x10(sp)
lbu s5,0x18(sp)
beq s5,zero,0x0031ab48
_or v0,s0,zero
lw v0,0x0(s0)
seb v1,s2
sw v1,0x30(sp)
lw v0,-0xc(v0)
addu v0,s0,v0
lw s4,0x78(v0)
lw v1,0x8(s4)
lw v0,0xc(s4)
sltu v0,v1,v0
beq v0,zero,0x0031ac8c
_nop
lbu v0,0x0(v1)
lui s8,0x7fff
lw v1,0x4(s0)
or s6,zero,zero
li s3,-0x1
lui s7,0x8000
ori s8,s8,0xffff
slt a0,v1,s1
beq a0,zero,0x0031aaec
_nop
beq v0,s3,0x0031abb4
_nop
beq v0,s2,0x0031abd4
_lui a0,0x7fff
lw t1,0xc(s4)
subu v0,s1,v1
lw a3,0x8(s4)
subu a0,t1,a3
slt t0,v0,a0
movz v0,a0,t0
or t0,v0,zero
slti v0,v0,0x2
bne v0,zero,0x0031ac40
_lw t9,-0x3b28(gp)
or a2,t0,zero
lw a1,0x30(sp)
or a0,a3,zero
sw v1,0x2c(sp)
sw t1,0x28(sp)
sw t0,0x24(sp)
jalr t9
_sw a3,0x20(sp)
lw gp,0x10(sp)
lw a3,0x20(sp)
lw t0,0x24(sp)
lw t1,0x28(sp)
beq v0,zero,0x0031aac8
_lw v1,0x2c(sp)
subu t0,v0,a3
addu a3,a3,t0
addu v1,v1,t0
sltu v0,a3,t1
sw a3,0x8(s4)
beq v0,zero,0x0031ac70
_sw v1,0x4(s0)
slt a0,v1,s1
bne a0,zero,0x0031aa54
_lbu v0,0x0(a3)
bne s1,s8,0x0031ace0
_nop
beq v0,s3,0x0031ab14
_nop
beq v0,s2,0x0031ad00
_nop
sw s7,0x4(s0)
or s6,s5,zero
b 0x0031aa48
_lui v1,0x8000
beq s6,zero,0x0031ab24
_lui v0,0x7fff
ori v0,v0,0xffff
sw v0,0x4(s0)
lw v0,0x0(s0)
lw t9,-0x7184(gp)
lw v0,-0xc(v0)
addu v0,s0,v0
or a0,v0,zero
lw a1,0x14(v0)
jalr t9
_ori a1,a1,0x2
or v0,s0,zero
lw ra,0x5c(sp)
lw s8,0x58(sp)
lw s7,0x54(sp)
lw s6,0x50(sp)
lw s5,0x4c(sp)
lw s4,0x48(sp)
lw s3,0x44(sp)
lw s2,0x40(sp)
lw s1,0x3c(sp)
lw s0,0x38(sp)
jr ra
_addiu sp,sp,0x60
lw t9,-0x3e54(gp)
jalr t9
_nop
lw ra,0x5c(sp)
lw s8,0x58(sp)
lw s7,0x54(sp)
lw s6,0x50(sp)
lw s5,0x4c(sp)
lw s4,0x48(sp)
lw s3,0x44(sp)
lw s2,0x40(sp)
lw s1,0x3c(sp)
lw s0,0x38(sp)
jr ra
_addiu sp,sp,0x60
lui v0,0x7fff
ori v0,v0,0xffff
beq s1,v0,0x0031ab14
_nop
beq s6,zero,0x0031ab24
_nop
b 0x0031ab24
_sw v0,0x4(s0)
ori a0,a0,0xffff
bne s1,a0,0x0031acf0
_nop
beq s6,zero,0x0031ac1c
_addiu v1,v1,0x1
lui v1,0x7fff
ori v1,v1,0xffff
sw v1,0x4(s0)
li v1,-0x1
beq v0,v1,0x0031ab24
_nop
bne s2,v0,0x0031ab48
_or v0,s0,zero
lw v1,0x4(s0)
lui v0,0x7fff
ori v0,v0,0xffff
beq v1,v0,0x0031ac20
_addiu v1,v1,0x1
sw v1,0x4(s0)
lw v0,0x8(s4)
lw v1,0xc(s4)
sltu v1,v0,v1
beq v1,zero,0x0031acc8
_addiu v1,v0,0x1
or v0,s0,zero
b 0x0031ab48
_sw v1,0x8(s4)
addiu v1,v1,0x1
sltu v0,a3,t1
beq v0,zero,0x0031aca4
_sw v1,0x4(s0)
addiu a3,a3,0x1
sw a3,0x8(s4)
sltu v0,a3,t1
beq v0,zero,0x0031ac70
_nop
lbu v0,0x0(a3)
b 0x0031aa48
_lw v1,0x4(s0)
lw v0,0x0(s4)
lw t9,0x24(v0)
jalr t9
_or a0,s4,zero
lw gp,0x10(sp)
b 0x0031aa48
_lw v1,0x4(s0)
lw v0,0x0(s4)
lw t9,0x24(v0)
jalr t9
_or a0,s4,zero
b 0x0031aa30
_lw gp,0x10(sp)
lw v0,0x0(s4)
lw t9,0x28(v0)
jalr t9
_or a0,s4,zero
beq v0,s3,0x0031abb4
_lw gp,0x10(sp)
lw a3,0x8(s4)
b 0x0031ac58
_lw t1,0xc(s4)
lw v0,0x0(s4)
lw t9,0x28(v0)
jalr t9
_or a0,s4,zero
b 0x0031ab48
_or v0,s0,zero
bne s6,zero,0x0031abe8
_li v1,-0x1
b 0x0031abf8
_nop
bne s6,zero,0x0031abe8
_nop
b 0x0031ac0c
_lw v1,0x4(s0)
bne s6,zero,0x0031abe8
_nop
b 0x0031ac10
_lui v0,0x7fff
(translation_unit "int * FUN_0031a984(int *param_1,int param_2,uint param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  int *piVar6;\n  char cVar7;\n  int in_t9;\n  code *pcVar8;\n  char local_48 [8];\n  byte *local_40;\n  int local_3c;\n  byte *local_38;\n  int local_34;\n  int local_30;\n  \n  if (param_3 == 0xffffffff) {\n    piVar6 = (int *)(**(code **)(in_t9 + 0x11b9f8))();\n    return piVar6;\n  }\n  pcVar8 = *(code **)(in_t9 + 0x11b3f4);\n  param_1[1] = 0;\n  (*pcVar8)(local_48,param_1,1);\n  if (param_2 < 1) {\n    return param_1;\n  }\n  if (local_48[0] == '\0') {\n    return param_1;\n  }\n  local_30 = (int)(char)param_3;\n  piVar6 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar6[2] < (byte *)piVar6[3]) {\n    uVar1 = (uint)*(byte *)piVar6[2];\n  }\n  else {\n    uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n  }\n  iVar3 = param_1[1];\n  cVar7 = '\0';\n  do {\n    while (iVar3 < param_2) {\n      if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar7 != '\0') goto LAB_0031abe8;\n        iVar3 = param_1[1];\n        goto LAB_0031ac10;\n      }\n      pbVar5 = (byte *)piVar6[3];\n      pbVar4 = (byte *)piVar6[2];\n      iVar2 = param_2 - iVar3;\n      if ((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3) {\n        iVar2 = (int)pbVar5 - (int)pbVar4;\n      }\n      if (iVar2 < 2) {\n        param_1[1] = iVar3 + 1;\n        if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }\n        if (pbVar5 <= pbVar4) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar4;\n        iVar3 = param_1[1];\n      }\n      else {\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (cVar7 != '\0') goto LAB_0031abe8;\n      goto LAB_0031abf8;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_0031ab14:\n      if (cVar7 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_0031ab24;\n    }\n    if (uVar1 == param_3) {\n      if (cVar7 != '\0') {\nLAB_0031abe8:\n        param_1[1] = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\n        iVar3 = param_1[1];\n      }\nLAB_0031ac10:\n      if (iVar3 != 0x7fffffff) {\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }\n      if ((uint)piVar6[2] < (uint)piVar6[3]) {\n        piVar6[2] = piVar6[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }\n      return param_1;\n    }\n    param_1[1] = -0x80000000;\n    iVar3 = -0x80000000;\n    cVar7 = local_48[0];\n  } while( true );\n}\n\n" (function_definition "int * FUN_0031a984(int *param_1,int param_2,uint param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  int *piVar6;\n  char cVar7;\n  int in_t9;\n  code *pcVar8;\n  char local_48 [8];\n  byte *local_40;\n  int local_3c;\n  byte *local_38;\n  int local_34;\n  int local_30;\n  \n  if (param_3 == 0xffffffff) {\n    piVar6 = (int *)(**(code **)(in_t9 + 0x11b9f8))();\n    return piVar6;\n  }\n  pcVar8 = *(code **)(in_t9 + 0x11b3f4);\n  param_1[1] = 0;\n  (*pcVar8)(local_48,param_1,1);\n  if (param_2 < 1) {\n    return param_1;\n  }\n  if (local_48[0] == '\0') {\n    return param_1;\n  }\n  local_30 = (int)(char)param_3;\n  piVar6 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar6[2] < (byte *)piVar6[3]) {\n    uVar1 = (uint)*(byte *)piVar6[2];\n  }\n  else {\n    uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n  }\n  iVar3 = param_1[1];\n  cVar7 = '\0';\n  do {\n    while (iVar3 < param_2) {\n      if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar7 != '\0') goto LAB_0031abe8;\n        iVar3 = param_1[1];\n        goto LAB_0031ac10;\n      }\n      pbVar5 = (byte *)piVar6[3];\n      pbVar4 = (byte *)piVar6[2];\n      iVar2 = param_2 - iVar3;\n      if ((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3) {\n        iVar2 = (int)pbVar5 - (int)pbVar4;\n      }\n      if (iVar2 < 2) {\n        param_1[1] = iVar3 + 1;\n        if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }\n        if (pbVar5 <= pbVar4) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar4;\n        iVar3 = param_1[1];\n      }\n      else {\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (cVar7 != '\0') goto LAB_0031abe8;\n      goto LAB_0031abf8;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_0031ab14:\n      if (cVar7 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_0031ab24;\n    }\n    if (uVar1 == param_3) {\n      if (cVar7 != '\0') {\nLAB_0031abe8:\n        param_1[1] = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\n        iVar3 = param_1[1];\n      }\nLAB_0031ac10:\n      if (iVar3 != 0x7fffffff) {\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }\n      if ((uint)piVar6[2] < (uint)piVar6[3]) {\n        piVar6[2] = piVar6[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }\n      return param_1;\n    }\n    param_1[1] = -0x80000000;\n    iVar3 = -0x80000000;\n    cVar7 = local_48[0];\n  } while( true );\n}" primitive_type (pointer_declarator "* FUN_0031a984(int *param_1,int param_2,uint param_3)" * (function_declarator "FUN_0031a984(int *param_1,int param_2,uint param_3)" identifier (parameter_list "(int *param_1,int param_2,uint param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) )))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  int *piVar6;\n  char cVar7;\n  int in_t9;\n  code *pcVar8;\n  char local_48 [8];\n  byte *local_40;\n  int local_3c;\n  byte *local_38;\n  int local_34;\n  int local_30;\n  \n  if (param_3 == 0xffffffff) {\n    piVar6 = (int *)(**(code **)(in_t9 + 0x11b9f8))();\n    return piVar6;\n  }\n  pcVar8 = *(code **)(in_t9 + 0x11b3f4);\n  param_1[1] = 0;\n  (*pcVar8)(local_48,param_1,1);\n  if (param_2 < 1) {\n    return param_1;\n  }\n  if (local_48[0] == '\0') {\n    return param_1;\n  }\n  local_30 = (int)(char)param_3;\n  piVar6 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar6[2] < (byte *)piVar6[3]) {\n    uVar1 = (uint)*(byte *)piVar6[2];\n  }\n  else {\n    uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n  }\n  iVar3 = param_1[1];\n  cVar7 = '\0';\n  do {\n    while (iVar3 < param_2) {\n      if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar7 != '\0') goto LAB_0031abe8;\n        iVar3 = param_1[1];\n        goto LAB_0031ac10;\n      }\n      pbVar5 = (byte *)piVar6[3];\n      pbVar4 = (byte *)piVar6[2];\n      iVar2 = param_2 - iVar3;\n      if ((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3) {\n        iVar2 = (int)pbVar5 - (int)pbVar4;\n      }\n      if (iVar2 < 2) {\n        param_1[1] = iVar3 + 1;\n        if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }\n        if (pbVar5 <= pbVar4) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar4;\n        iVar3 = param_1[1];\n      }\n      else {\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (cVar7 != '\0') goto LAB_0031abe8;\n      goto LAB_0031abf8;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_0031ab14:\n      if (cVar7 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_0031ab24;\n    }\n    if (uVar1 == param_3) {\n      if (cVar7 != '\0') {\nLAB_0031abe8:\n        param_1[1] = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\n        iVar3 = param_1[1];\n      }\nLAB_0031ac10:\n      if (iVar3 != 0x7fffffff) {\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }\n      if ((uint)piVar6[2] < (uint)piVar6[3]) {\n        piVar6[2] = piVar6[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }\n      return param_1;\n    }\n    param_1[1] = -0x80000000;\n    iVar3 = -0x80000000;\n    cVar7 = local_48[0];\n  } while( true );\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "char cVar7;" primitive_type identifier ;) (declaration "int in_t9;" primitive_type identifier ;) (declaration "code *pcVar8;" type_identifier (pointer_declarator "*pcVar8" * identifier) ;) (declaration "char local_48 [8];" primitive_type (array_declarator "local_48 [8]" identifier [ number_literal ]) ;) (declaration "byte *local_40;" type_identifier (pointer_declarator "*local_40" * identifier) ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "byte *local_38;" type_identifier (pointer_declarator "*local_38" * identifier) ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "int local_30;" primitive_type identifier ;) (if_statement "if (param_3 == 0xffffffff) {\n    piVar6 = (int *)(**(code **)(in_t9 + 0x11b9f8))();\n    return piVar6;\n  }" if (parenthesized_expression "(param_3 == 0xffffffff)" ( (binary_expression "param_3 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n    piVar6 = (int *)(**(code **)(in_t9 + 0x11b9f8))();\n    return piVar6;\n  }" { (expression_statement "piVar6 = (int *)(**(code **)(in_t9 + 0x11b9f8))();" (assignment_expression "piVar6 = (int *)(**(code **)(in_t9 + 0x11b9f8))()" identifier = (cast_expression "(int *)(**(code **)(in_t9 + 0x11b9f8))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(in_t9 + 0x11b9f8))()" (parenthesized_expression "(**(code **)(in_t9 + 0x11b9f8))" ( (pointer_expression "**(code **)(in_t9 + 0x11b9f8)" * (pointer_expression "*(code **)(in_t9 + 0x11b9f8)" * (cast_expression "(code **)(in_t9 + 0x11b9f8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x11b9f8)" ( (binary_expression "in_t9 + 0x11b9f8" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (return_statement "return piVar6;" return identifier ;) })) (expression_statement "pcVar8 = *(code **)(in_t9 + 0x11b3f4);" (assignment_expression "pcVar8 = *(code **)(in_t9 + 0x11b3f4)" identifier = (pointer_expression "*(code **)(in_t9 + 0x11b3f4)" * (cast_expression "(code **)(in_t9 + 0x11b3f4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x11b3f4)" ( (binary_expression "in_t9 + 0x11b3f4" identifier + number_literal) ))))) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "(*pcVar8)(local_48,param_1,1);" (call_expression "(*pcVar8)(local_48,param_1,1)" (parenthesized_expression "(*pcVar8)" ( (pointer_expression "*pcVar8" * identifier) )) (argument_list "(local_48,param_1,1)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (param_2 < 1) {\n    return param_1;\n  }" if (parenthesized_expression "(param_2 < 1)" ( (binary_expression "param_2 < 1" identifier < number_literal) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (if_statement "if (local_48[0] == '\0') {\n    return param_1;\n  }" if (parenthesized_expression "(local_48[0] == '\0')" ( (binary_expression "local_48[0] == '\0'" (subscript_expression "local_48[0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "local_30 = (int)(char)param_3;" (assignment_expression "local_30 = (int)(char)param_3" identifier = (cast_expression "(int)(char)param_3" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)param_3" ( (type_descriptor "char" primitive_type) ) identifier))) ;) (expression_statement "piVar6 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);" (assignment_expression "piVar6 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" identifier = (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" * (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x78" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))))) ;) (if_statement "if ((byte *)piVar6[2] < (byte *)piVar6[3]) {\n    uVar1 = (uint)*(byte *)piVar6[2];\n  }\n  else {\n    uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n  }" if (parenthesized_expression "((byte *)piVar6[2] < (byte *)piVar6[3])" ( (binary_expression "(byte *)piVar6[2] < (byte *)piVar6[3]" (cast_expression "(byte *)piVar6[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[2]" identifier [ number_literal ])) < (cast_expression "(byte *)piVar6[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[3]" identifier [ number_literal ]))) )) (compound_statement "{\n    uVar1 = (uint)*(byte *)piVar6[2];\n  }" { (expression_statement "uVar1 = (uint)*(byte *)piVar6[2];" (assignment_expression "uVar1 = (uint)*(byte *)piVar6[2]" identifier = (binary_expression "(uint)*(byte *)piVar6[2]" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)piVar6[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n    uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n  }" else (compound_statement "{\n    uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n  }" { (expression_statement "uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);" (assignment_expression "uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6)" identifier = (call_expression "(**(code **)(*piVar6 + 0x24))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x24))" ( (pointer_expression "**(code **)(*piVar6 + 0x24)" * (pointer_expression "*(code **)(*piVar6 + 0x24)" * (cast_expression "(code **)(*piVar6 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 0x24)" ( (binary_expression "*piVar6 + 0x24" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) )) (argument_list "(piVar6)" ( identifier )))) ;) }))) (expression_statement "iVar3 = param_1[1];" (assignment_expression "iVar3 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "cVar7 = '\0';" (assignment_expression "cVar7 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (do_statement "do {\n    while (iVar3 < param_2) {\n      if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar7 != '\0') goto LAB_0031abe8;\n        iVar3 = param_1[1];\n        goto LAB_0031ac10;\n      }\n      pbVar5 = (byte *)piVar6[3];\n      pbVar4 = (byte *)piVar6[2];\n      iVar2 = param_2 - iVar3;\n      if ((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3) {\n        iVar2 = (int)pbVar5 - (int)pbVar4;\n      }\n      if (iVar2 < 2) {\n        param_1[1] = iVar3 + 1;\n        if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }\n        if (pbVar5 <= pbVar4) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar4;\n        iVar3 = param_1[1];\n      }\n      else {\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (cVar7 != '\0') goto LAB_0031abe8;\n      goto LAB_0031abf8;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_0031ab14:\n      if (cVar7 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_0031ab24;\n    }\n    if (uVar1 == param_3) {\n      if (cVar7 != '\0') {\nLAB_0031abe8:\n        param_1[1] = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\n        iVar3 = param_1[1];\n      }\nLAB_0031ac10:\n      if (iVar3 != 0x7fffffff) {\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }\n      if ((uint)piVar6[2] < (uint)piVar6[3]) {\n        piVar6[2] = piVar6[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }\n      return param_1;\n    }\n    param_1[1] = -0x80000000;\n    iVar3 = -0x80000000;\n    cVar7 = local_48[0];\n  } while( true );" do (compound_statement "{\n    while (iVar3 < param_2) {\n      if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar7 != '\0') goto LAB_0031abe8;\n        iVar3 = param_1[1];\n        goto LAB_0031ac10;\n      }\n      pbVar5 = (byte *)piVar6[3];\n      pbVar4 = (byte *)piVar6[2];\n      iVar2 = param_2 - iVar3;\n      if ((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3) {\n        iVar2 = (int)pbVar5 - (int)pbVar4;\n      }\n      if (iVar2 < 2) {\n        param_1[1] = iVar3 + 1;\n        if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }\n        if (pbVar5 <= pbVar4) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar4;\n        iVar3 = param_1[1];\n      }\n      else {\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (cVar7 != '\0') goto LAB_0031abe8;\n      goto LAB_0031abf8;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_0031ab14:\n      if (cVar7 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_0031ab24;\n    }\n    if (uVar1 == param_3) {\n      if (cVar7 != '\0') {\nLAB_0031abe8:\n        param_1[1] = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\n        iVar3 = param_1[1];\n      }\nLAB_0031ac10:\n      if (iVar3 != 0x7fffffff) {\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }\n      if ((uint)piVar6[2] < (uint)piVar6[3]) {\n        piVar6[2] = piVar6[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }\n      return param_1;\n    }\n    param_1[1] = -0x80000000;\n    iVar3 = -0x80000000;\n    cVar7 = local_48[0];\n  }" { (while_statement "while (iVar3 < param_2) {\n      if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar7 != '\0') goto LAB_0031abe8;\n        iVar3 = param_1[1];\n        goto LAB_0031ac10;\n      }\n      pbVar5 = (byte *)piVar6[3];\n      pbVar4 = (byte *)piVar6[2];\n      iVar2 = param_2 - iVar3;\n      if ((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3) {\n        iVar2 = (int)pbVar5 - (int)pbVar4;\n      }\n      if (iVar2 < 2) {\n        param_1[1] = iVar3 + 1;\n        if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }\n        if (pbVar5 <= pbVar4) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar4;\n        iVar3 = param_1[1];\n      }\n      else {\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }\n    }" while (parenthesized_expression "(iVar3 < param_2)" ( (binary_expression "iVar3 < param_2" identifier < identifier) )) (compound_statement "{\n      if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar7 != '\0') goto LAB_0031abe8;\n        iVar3 = param_1[1];\n        goto LAB_0031ac10;\n      }\n      pbVar5 = (byte *)piVar6[3];\n      pbVar4 = (byte *)piVar6[2];\n      iVar2 = param_2 - iVar3;\n      if ((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3) {\n        iVar2 = (int)pbVar5 - (int)pbVar4;\n      }\n      if (iVar2 < 2) {\n        param_1[1] = iVar3 + 1;\n        if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }\n        if (pbVar5 <= pbVar4) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar4;\n        iVar3 = param_1[1];\n      }\n      else {\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }\n    }" { (if_statement "if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\nLAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }" { (labeled_statement "LAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;" statement_identifier : (if_statement "if (param_2 == 0x7fffffff) goto LAB_0031ab14;" if (parenthesized_expression "(param_2 == 0x7fffffff)" ( (binary_expression "param_2 == 0x7fffffff" identifier == number_literal) )) (goto_statement "goto LAB_0031ab14;" goto statement_identifier ;))) (if_statement "if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }" if (parenthesized_expression "(cVar7 != '\0')" ( (binary_expression "cVar7 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          param_1[1] = 0x7fffffff;\n        }" { (expression_statement "param_1[1] = 0x7fffffff;" (assignment_expression "param_1[1] = 0x7fffffff" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) })) (goto_statement "goto LAB_0031ab24;" goto statement_identifier ;) })) (if_statement "if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar7 != '\0') goto LAB_0031abe8;\n        iVar3 = param_1[1];\n        goto LAB_0031ac10;\n      }" if (parenthesized_expression "(uVar1 == param_3)" ( (binary_expression "uVar1 == param_3" identifier == identifier) )) (compound_statement "{\n        if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar7 != '\0') goto LAB_0031abe8;\n        iVar3 = param_1[1];\n        goto LAB_0031ac10;\n      }" { (if_statement "if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }" if (parenthesized_expression "(param_2 == 0x7fffffff)" ( (binary_expression "param_2 == 0x7fffffff" identifier == number_literal) )) (compound_statement "{\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }" { (if_statement "if (cVar7 == '\0') goto LAB_0031ac1c;" if (parenthesized_expression "(cVar7 == '\0')" ( (binary_expression "cVar7 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0031ac1c;" goto statement_identifier ;)) (goto_statement "goto LAB_0031abe8;" goto statement_identifier ;) })) (if_statement "if (cVar7 != '\0') goto LAB_0031abe8;" if (parenthesized_expression "(cVar7 != '\0')" ( (binary_expression "cVar7 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0031abe8;" goto statement_identifier ;)) (expression_statement "iVar3 = param_1[1];" (assignment_expression "iVar3 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (goto_statement "goto LAB_0031ac10;" goto statement_identifier ;) })) (expression_statement "pbVar5 = (byte *)piVar6[3];" (assignment_expression "pbVar5 = (byte *)piVar6[3]" identifier = (cast_expression "(byte *)piVar6[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[3]" identifier [ number_literal ]))) ;) (expression_statement "pbVar4 = (byte *)piVar6[2];" (assignment_expression "pbVar4 = (byte *)piVar6[2]" identifier = (cast_expression "(byte *)piVar6[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[2]" identifier [ number_literal ]))) ;) (expression_statement "iVar2 = param_2 - iVar3;" (assignment_expression "iVar2 = param_2 - iVar3" identifier = (binary_expression "param_2 - iVar3" identifier - identifier)) ;) (if_statement "if ((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3) {\n        iVar2 = (int)pbVar5 - (int)pbVar4;\n      }" if (parenthesized_expression "((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3)" ( (binary_expression "(int)pbVar5 - (int)pbVar4 <= param_2 - iVar3" (binary_expression "(int)pbVar5 - (int)pbVar4" (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier)) <= (binary_expression "param_2 - iVar3" identifier - identifier)) )) (compound_statement "{\n        iVar2 = (int)pbVar5 - (int)pbVar4;\n      }" { (expression_statement "iVar2 = (int)pbVar5 - (int)pbVar4;" (assignment_expression "iVar2 = (int)pbVar5 - (int)pbVar4" identifier = (binary_expression "(int)pbVar5 - (int)pbVar4" (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (if_statement "if (iVar2 < 2) {\n        param_1[1] = iVar3 + 1;\n        if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }\n        if (pbVar5 <= pbVar4) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar4;\n        iVar3 = param_1[1];\n      }\n      else {\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }" if (parenthesized_expression "(iVar2 < 2)" ( (binary_expression "iVar2 < 2" identifier < number_literal) )) (compound_statement "{\n        param_1[1] = iVar3 + 1;\n        if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }\n        if (pbVar5 <= pbVar4) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar4;\n        iVar3 = param_1[1];\n      }" { (expression_statement "param_1[1] = iVar3 + 1;" (assignment_expression "param_1[1] = iVar3 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (if_statement "if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }" if (parenthesized_expression "(pbVar4 < pbVar5)" ( (binary_expression "pbVar4 < pbVar5" identifier < identifier) )) (compound_statement "{\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }" { (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "piVar6[2] = (int)pbVar4;" (assignment_expression "piVar6[2] = (int)pbVar4" (subscript_expression "piVar6[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }" else (compound_statement "{\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }" { (expression_statement "iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);" (assignment_expression "iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6)" identifier = (call_expression "(**(code **)(*piVar6 + 0x28))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x28))" ( (pointer_expression "**(code **)(*piVar6 + 0x28)" * (pointer_expression "*(code **)(*piVar6 + 0x28)" * (cast_expression "(code **)(*piVar6 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 0x28)" ( (binary_expression "*piVar6 + 0x28" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) )) (argument_list "(piVar6)" ( identifier )))) ;) (if_statement "if (iVar3 == -1) goto LAB_0031abb4;" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (goto_statement "goto LAB_0031abb4;" goto statement_identifier ;)) (expression_statement "pbVar4 = (byte *)piVar6[2];" (assignment_expression "pbVar4 = (byte *)piVar6[2]" identifier = (cast_expression "(byte *)piVar6[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar5 = (byte *)piVar6[3];" (assignment_expression "pbVar5 = (byte *)piVar6[3]" identifier = (cast_expression "(byte *)piVar6[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[3]" identifier [ number_literal ]))) ;) }))) (if_statement "if (pbVar5 <= pbVar4) goto LAB_0031ac70;" if (parenthesized_expression "(pbVar5 <= pbVar4)" ( (binary_expression "pbVar5 <= pbVar4" identifier <= identifier) )) (goto_statement "goto LAB_0031ac70;" goto statement_identifier ;)) (expression_statement "uVar1 = (uint)*pbVar4;" (assignment_expression "uVar1 = (uint)*pbVar4" identifier = (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "iVar3 = param_1[1];" (assignment_expression "iVar3 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }" else (compound_statement "{\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }" { (expression_statement "local_40 = pbVar4;" (assignment_expression "local_40 = pbVar4" identifier = identifier) ;) (expression_statement "local_3c = iVar2;" (assignment_expression "local_3c = iVar2" identifier = identifier) ;) (expression_statement "local_38 = pbVar5;" (assignment_expression "local_38 = pbVar5" identifier = identifier) ;) (expression_statement "local_34 = iVar3;" (assignment_expression "local_34 = iVar3" identifier = identifier) ;) (expression_statement "iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);" (assignment_expression "iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2)" identifier = (call_expression "(**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2)" (parenthesized_expression "(**(code **)(in_t9 + 0x11bd24))" ( (pointer_expression "**(code **)(in_t9 + 0x11bd24)" * (pointer_expression "*(code **)(in_t9 + 0x11bd24)" * (cast_expression "(code **)(in_t9 + 0x11bd24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x11bd24)" ( (binary_expression "in_t9 + 0x11bd24" identifier + number_literal) ))))) )) (argument_list "(pbVar4,local_30,iVar2)" ( identifier , identifier , identifier )))) ;) (expression_statement "iVar3 = local_3c;" (assignment_expression "iVar3 = local_3c" identifier = identifier) ;) (if_statement "if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n          iVar3 = iVar2 - (int)local_40;\n        }" { (expression_statement "iVar3 = iVar2 - (int)local_40;" (assignment_expression "iVar3 = iVar2 - (int)local_40" identifier = (binary_expression "iVar2 - (int)local_40" identifier - (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (expression_statement "pbVar4 = local_40 + iVar3;" (assignment_expression "pbVar4 = local_40 + iVar3" identifier = (binary_expression "local_40 + iVar3" identifier + identifier)) ;) (expression_statement "iVar3 = local_34 + iVar3;" (assignment_expression "iVar3 = local_34 + iVar3" identifier = (binary_expression "local_34 + iVar3" identifier + identifier)) ;) (expression_statement "piVar6[2] = (int)pbVar4;" (assignment_expression "piVar6[2] = (int)pbVar4" (subscript_expression "piVar6[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[1] = iVar3;" (assignment_expression "param_1[1] = iVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }" if (parenthesized_expression "(pbVar4 < local_38)" ( (binary_expression "pbVar4 < local_38" identifier < identifier) )) (compound_statement "{\n          uVar1 = (uint)*pbVar4;\n        }" { (expression_statement "uVar1 = (uint)*pbVar4;" (assignment_expression "uVar1 = (uint)*pbVar4" identifier = (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }) (else_clause "else {\nLAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }" else (compound_statement "{\nLAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }" { (labeled_statement "LAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);" statement_identifier : comment (expression_statement "uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);" (assignment_expression "uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6)" identifier = (call_expression "(**(code **)(*piVar6 + 0x24))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x24))" ( (pointer_expression "**(code **)(*piVar6 + 0x24)" * (pointer_expression "*(code **)(*piVar6 + 0x24)" * (cast_expression "(code **)(*piVar6 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 0x24)" ( (binary_expression "*piVar6 + 0x24" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) )) (argument_list "(piVar6)" ( identifier )))) ;)) (expression_statement "iVar3 = param_1[1];" (assignment_expression "iVar3 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }))) }))) })) (if_statement "if (param_2 != 0x7fffffff) {\n      if (cVar7 != '\0') goto LAB_0031abe8;\n      goto LAB_0031abf8;\n    }" if (parenthesized_expression "(param_2 != 0x7fffffff)" ( (binary_expression "param_2 != 0x7fffffff" identifier != number_literal) )) (compound_statement "{\n      if (cVar7 != '\0') goto LAB_0031abe8;\n      goto LAB_0031abf8;\n    }" { (if_statement "if (cVar7 != '\0') goto LAB_0031abe8;" if (parenthesized_expression "(cVar7 != '\0')" ( (binary_expression "cVar7 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0031abe8;" goto statement_identifier ;)) (goto_statement "goto LAB_0031abf8;" goto statement_identifier ;) })) (if_statement "if (uVar1 == 0xffffffff) {\nLAB_0031ab14:\n      if (cVar7 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_0031ab24;\n    }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\nLAB_0031ab14:\n      if (cVar7 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_0031ab24;\n    }" { (labeled_statement "LAB_0031ab14:\n      if (cVar7 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }" statement_identifier : (if_statement "if (cVar7 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }" if (parenthesized_expression "(cVar7 != '\0')" ( (binary_expression "cVar7 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        param_1[1] = 0x7fffffff;\n      }" { (expression_statement "param_1[1] = 0x7fffffff;" (assignment_expression "param_1[1] = 0x7fffffff" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) }))) (goto_statement "goto LAB_0031ab24;" goto statement_identifier ;) })) (if_statement "if (uVar1 == param_3) {\n      if (cVar7 != '\0') {\nLAB_0031abe8:\n        param_1[1] = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\n        iVar3 = param_1[1];\n      }\nLAB_0031ac10:\n      if (iVar3 != 0x7fffffff) {\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }\n      if ((uint)piVar6[2] < (uint)piVar6[3]) {\n        piVar6[2] = piVar6[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }\n      return param_1;\n    }" if (parenthesized_expression "(uVar1 == param_3)" ( (binary_expression "uVar1 == param_3" identifier == identifier) )) (compound_statement "{\n      if (cVar7 != '\0') {\nLAB_0031abe8:\n        param_1[1] = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\n        iVar3 = param_1[1];\n      }\nLAB_0031ac10:\n      if (iVar3 != 0x7fffffff) {\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }\n      if ((uint)piVar6[2] < (uint)piVar6[3]) {\n        piVar6[2] = piVar6[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }\n      return param_1;\n    }" { (if_statement "if (cVar7 != '\0') {\nLAB_0031abe8:\n        param_1[1] = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\n        iVar3 = param_1[1];\n      }" if (parenthesized_expression "(cVar7 != '\0')" ( (binary_expression "cVar7 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_0031abe8:\n        param_1[1] = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\n        iVar3 = param_1[1];\n      }" { (labeled_statement "LAB_0031abe8:\n        param_1[1] = 0x7fffffff;" statement_identifier : (expression_statement "param_1[1] = 0x7fffffff;" (assignment_expression "param_1[1] = 0x7fffffff" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;)) (labeled_statement "LAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }" statement_identifier : (if_statement "if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }" { (labeled_statement "LAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);" statement_identifier : (expression_statement "iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);" (assignment_expression "iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc)" identifier = (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))))) ;)) (expression_statement "(**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);" (call_expression "(**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2)" (parenthesized_expression "(**(code **)(in_t9 + 0x1186c8))" ( (pointer_expression "**(code **)(in_t9 + 0x1186c8)" * (pointer_expression "*(code **)(in_t9 + 0x1186c8)" * (cast_expression "(code **)(in_t9 + 0x1186c8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x1186c8)" ( (binary_expression "in_t9 + 0x1186c8" identifier + number_literal) ))))) )) (argument_list "(iVar3,*(uint *)(iVar3 + 0x14) | 2)" ( identifier , (binary_expression "*(uint *)(iVar3 + 0x14) | 2" (pointer_expression "*(uint *)(iVar3 + 0x14)" * (cast_expression "(uint *)(iVar3 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return param_1;" return identifier ;) }))) (if_statement "if (param_3 != uVar1) {\n          return param_1;\n        }" if (parenthesized_expression "(param_3 != uVar1)" ( (binary_expression "param_3 != uVar1" identifier != identifier) )) (compound_statement "{\n          return param_1;\n        }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar3 = param_1[1];" (assignment_expression "iVar3 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) })) (labeled_statement "LAB_0031ac10:\n      if (iVar3 != 0x7fffffff) {\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }" statement_identifier : (if_statement "if (iVar3 != 0x7fffffff) {\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }" if (parenthesized_expression "(iVar3 != 0x7fffffff)" ( (binary_expression "iVar3 != 0x7fffffff" identifier != number_literal) )) (compound_statement "{\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }" { (labeled_statement "LAB_0031ac1c:\n        param_1[1] = iVar3 + 1;" statement_identifier : (expression_statement "param_1[1] = iVar3 + 1;" (assignment_expression "param_1[1] = iVar3 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar3 + 1" identifier + number_literal)) ;)) }))) (if_statement "if ((uint)piVar6[2] < (uint)piVar6[3]) {\n        piVar6[2] = piVar6[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }" if (parenthesized_expression "((uint)piVar6[2] < (uint)piVar6[3])" ( (binary_expression "(uint)piVar6[2] < (uint)piVar6[3]" (cast_expression "(uint)piVar6[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar6[2]" identifier [ number_literal ])) < (cast_expression "(uint)piVar6[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar6[3]" identifier [ number_literal ]))) )) (compound_statement "{\n        piVar6[2] = piVar6[2] + 1;\n      }" { (expression_statement "piVar6[2] = piVar6[2] + 1;" (assignment_expression "piVar6[2] = piVar6[2] + 1" (subscript_expression "piVar6[2]" identifier [ number_literal ]) = (binary_expression "piVar6[2] + 1" (subscript_expression "piVar6[2]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else {\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }" else (compound_statement "{\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }" { (expression_statement "(**(code **)(*piVar6 + 0x28))(piVar6);" (call_expression "(**(code **)(*piVar6 + 0x28))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x28))" ( (pointer_expression "**(code **)(*piVar6 + 0x28)" * (pointer_expression "*(code **)(*piVar6 + 0x28)" * (cast_expression "(code **)(*piVar6 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 0x28)" ( (binary_expression "*piVar6 + 0x28" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) )) (argument_list "(piVar6)" ( identifier ))) ;) }))) (return_statement "return param_1;" return identifier ;) })) (expression_statement "param_1[1] = -0x80000000;" (assignment_expression "param_1[1] = -0x80000000" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar3 = -0x80000000;" (assignment_expression "iVar3 = -0x80000000" identifier = number_literal) ;) (expression_statement "cVar7 = local_48[0];" (assignment_expression "cVar7 = local_48[0]" identifier = (subscript_expression "local_48[0]" identifier [ number_literal ])) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* std::istream::ignore(int, int) */\n\nistream * __thiscall std::istream::ignore(istream *this,int param_1,int param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  istream *piVar3;\n  int iVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  int *piVar7;\n  char cVar8;\n  int in_t9;\n  code *pcVar9;\n  char local_48 [8];\n  byte *local_40;\n  int local_3c;\n  byte *local_38;\n  int local_34;\n  int local_30;\n  \n  if (param_2 == -1) {\n    piVar3 = (istream *)(**(code **)(in_t9 + 0x11b9f8))();\n    return piVar3;\n  }\n  pcVar9 = *(code **)(in_t9 + 0x11b3f4);\n  *(undefined4 *)(this + 4) = 0;\n  (*pcVar9)(local_48,this,1);\n  if (param_1 < 1) {\n    return this;\n  }\n  if (local_48[0] == '\0') {\n    return this;\n  }\n  local_30 = (int)(char)param_2;\n  piVar7 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78);\n  if ((byte *)piVar7[2] < (byte *)piVar7[3]) {\n    uVar1 = (uint)*(byte *)piVar7[2];\n  }\n  else {\n    uVar1 = (**(code **)(*piVar7 + 0x24))(piVar7);\n  }\n  iVar4 = *(int *)(this + 4);\n  cVar8 = '\0';\n  do {\n    while (iVar4 < param_1) {\n      if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_1 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar8 != '\0') {\n          *(undefined4 *)(this + 4) = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }\n      if (uVar1 == param_2) {\n        if (param_1 == 0x7fffffff) {\n          if (cVar8 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar8 != '\0') goto LAB_0031abe8;\n        iVar4 = *(int *)(this + 4);\n        goto LAB_0031ac10;\n      }\n      pbVar6 = (byte *)piVar7[3];\n      pbVar5 = (byte *)piVar7[2];\n      iVar2 = param_1 - iVar4;\n      if ((int)pbVar6 - (int)pbVar5 <= param_1 - iVar4) {\n        iVar2 = (int)pbVar6 - (int)pbVar5;\n      }\n      if (iVar2 < 2) {\n        *(int *)(this + 4) = iVar4 + 1;\n        if (pbVar5 < pbVar6) {\n          pbVar5 = pbVar5 + 1;\n          piVar7[2] = (int)pbVar5;\n        }\n        else {\n          iVar4 = (**(code **)(*piVar7 + 0x28))(piVar7);\n          if (iVar4 == -1) goto LAB_0031abb4;\n          pbVar5 = (byte *)piVar7[2];\n          pbVar6 = (byte *)piVar7[3];\n        }\n        if (pbVar6 <= pbVar5) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar5;\n        iVar4 = *(int *)(this + 4);\n      }\n      else {\n        local_40 = pbVar5;\n        local_3c = iVar2;\n        local_38 = pbVar6;\n        local_34 = iVar4;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar5,local_30,iVar2);\n        iVar4 = local_3c;\n        if (iVar2 != 0) {\n          iVar4 = iVar2 - (int)local_40;\n        }\n        pbVar5 = local_40 + iVar4;\n        iVar4 = local_34 + iVar4;\n        piVar7[2] = (int)pbVar5;\n        *(int *)(this + 4) = iVar4;\n        if (pbVar5 < local_38) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar7 + 0x24))(piVar7);\n          iVar4 = *(int *)(this + 4);\n        }\n      }\n    }\n    if (param_1 != 0x7fffffff) {\n      if (cVar8 != '\0') goto LAB_0031abe8;\n      goto LAB_0031abf8;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_0031ab14:\n      if (cVar8 != '\0') {\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }\n      goto LAB_0031ab24;\n    }\n    if (uVar1 == param_2) {\n      if (cVar8 != '\0') {\nLAB_0031abe8:\n        *(undefined4 *)(this + 4) = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          (**(code **)(in_t9 + 0x1186c8))\n                    (this + *(int *)(*(int *)this + -0xc),\n                     *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 2);\n          return this;\n        }\n        if (param_2 != uVar1) {\n          return this;\n        }\n        iVar4 = *(int *)(this + 4);\n      }\nLAB_0031ac10:\n      if (iVar4 != 0x7fffffff) {\nLAB_0031ac1c:\n        *(int *)(this + 4) = iVar4 + 1;\n      }\n      if ((uint)piVar7[2] < (uint)piVar7[3]) {\n        piVar7[2] = piVar7[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar7 + 0x28))(piVar7);\n      }\n      return this;\n    }\n    *(undefined4 *)(this + 4) = 0x80000000;\n    iVar4 = -0x80000000;\n    cVar8 = local_48[0];\n  } while( true );\n}\n\n" comment (ERROR "istream * __thiscall std::istream::ignore(istream *this,int param_1,int param_2)" (binary_expression "istream * __thiscall std::istream::ignore(istream *this" (binary_expression "istream * __thiscall" identifier * identifier) (ERROR "std::istream::ignore(istream" identifier : : identifier : : identifier ( identifier) * identifier) , primitive_type identifier , identifier identifier )) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  istream *piVar3;\n  int iVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  int *piVar7;\n  char cVar8;\n  int in_t9;\n  code *pcVar9;\n  char local_48 [8];\n  byte *local_40;\n  int local_3c;\n  byte *local_38;\n  int local_34;\n  int local_30;\n  \n  if (param_2 == -1) {\n    piVar3 = (istream *)(**(code **)(in_t9 + 0x11b9f8))();\n    return piVar3;\n  }\n  pcVar9 = *(code **)(in_t9 + 0x11b3f4);\n  *(undefined4 *)(this + 4) = 0;\n  (*pcVar9)(local_48,this,1);\n  if (param_1 < 1) {\n    return this;\n  }\n  if (local_48[0] == '\0') {\n    return this;\n  }\n  local_30 = (int)(char)param_2;\n  piVar7 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78);\n  if ((byte *)piVar7[2] < (byte *)piVar7[3]) {\n    uVar1 = (uint)*(byte *)piVar7[2];\n  }\n  else {\n    uVar1 = (**(code **)(*piVar7 + 0x24))(piVar7);\n  }\n  iVar4 = *(int *)(this + 4);\n  cVar8 = '\0';\n  do {\n    while (iVar4 < param_1) {\n      if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_1 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar8 != '\0') {\n          *(undefined4 *)(this + 4) = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }\n      if (uVar1 == param_2) {\n        if (param_1 == 0x7fffffff) {\n          if (cVar8 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar8 != '\0') goto LAB_0031abe8;\n        iVar4 = *(int *)(this + 4);\n        goto LAB_0031ac10;\n      }\n      pbVar6 = (byte *)piVar7[3];\n      pbVar5 = (byte *)piVar7[2];\n      iVar2 = param_1 - iVar4;\n      if ((int)pbVar6 - (int)pbVar5 <= param_1 - iVar4) {\n        iVar2 = (int)pbVar6 - (int)pbVar5;\n      }\n      if (iVar2 < 2) {\n        *(int *)(this + 4) = iVar4 + 1;\n        if (pbVar5 < pbVar6) {\n          pbVar5 = pbVar5 + 1;\n          piVar7[2] = (int)pbVar5;\n        }\n        else {\n          iVar4 = (**(code **)(*piVar7 + 0x28))(piVar7);\n          if (iVar4 == -1) goto LAB_0031abb4;\n          pbVar5 = (byte *)piVar7[2];\n          pbVar6 = (byte *)piVar7[3];\n        }\n        if (pbVar6 <= pbVar5) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar5;\n        iVar4 = *(int *)(this + 4);\n      }\n      else {\n        local_40 = pbVar5;\n        local_3c = iVar2;\n        local_38 = pbVar6;\n        local_34 = iVar4;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar5,local_30,iVar2);\n        iVar4 = local_3c;\n        if (iVar2 != 0) {\n          iVar4 = iVar2 - (int)local_40;\n        }\n        pbVar5 = local_40 + iVar4;\n        iVar4 = local_34 + iVar4;\n        piVar7[2] = (int)pbVar5;\n        *(int *)(this + 4) = iVar4;\n        if (pbVar5 < local_38) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar7 + 0x24))(piVar7);\n          iVar4 = *(int *)(this + 4);\n        }\n      }\n    }\n    if (param_1 != 0x7fffffff) {\n      if (cVar8 != '\0') goto LAB_0031abe8;\n      goto LAB_0031abf8;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_0031ab14:\n      if (cVar8 != '\0') {\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }\n      goto LAB_0031ab24;\n    }\n    if (uVar1 == param_2) {\n      if (cVar8 != '\0') {\nLAB_0031abe8:\n        *(undefined4 *)(this + 4) = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          (**(code **)(in_t9 + 0x1186c8))\n                    (this + *(int *)(*(int *)this + -0xc),\n                     *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 2);\n          return this;\n        }\n        if (param_2 != uVar1) {\n          return this;\n        }\n        iVar4 = *(int *)(this + 4);\n      }\nLAB_0031ac10:\n      if (iVar4 != 0x7fffffff) {\nLAB_0031ac1c:\n        *(int *)(this + 4) = iVar4 + 1;\n      }\n      if ((uint)piVar7[2] < (uint)piVar7[3]) {\n        piVar7[2] = piVar7[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar7 + 0x28))(piVar7);\n      }\n      return this;\n    }\n    *(undefined4 *)(this + 4) = 0x80000000;\n    iVar4 = -0x80000000;\n    cVar8 = local_48[0];\n  } while( true );\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "istream *piVar3;" type_identifier (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "char cVar8;" primitive_type identifier ;) (declaration "int in_t9;" primitive_type identifier ;) (declaration "code *pcVar9;" type_identifier (pointer_declarator "*pcVar9" * identifier) ;) (declaration "char local_48 [8];" primitive_type (array_declarator "local_48 [8]" identifier [ number_literal ]) ;) (declaration "byte *local_40;" type_identifier (pointer_declarator "*local_40" * identifier) ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "byte *local_38;" type_identifier (pointer_declarator "*local_38" * identifier) ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "int local_30;" primitive_type identifier ;) (if_statement "if (param_2 == -1) {\n    piVar3 = (istream *)(**(code **)(in_t9 + 0x11b9f8))();\n    return piVar3;\n  }" if (parenthesized_expression "(param_2 == -1)" ( (binary_expression "param_2 == -1" identifier == number_literal) )) (compound_statement "{\n    piVar3 = (istream *)(**(code **)(in_t9 + 0x11b9f8))();\n    return piVar3;\n  }" { (expression_statement "piVar3 = (istream *)(**(code **)(in_t9 + 0x11b9f8))();" (assignment_expression "piVar3 = (istream *)(**(code **)(in_t9 + 0x11b9f8))()" identifier = (cast_expression "(istream *)(**(code **)(in_t9 + 0x11b9f8))()" ( (type_descriptor "istream *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(in_t9 + 0x11b9f8))()" (parenthesized_expression "(**(code **)(in_t9 + 0x11b9f8))" ( (pointer_expression "**(code **)(in_t9 + 0x11b9f8)" * (pointer_expression "*(code **)(in_t9 + 0x11b9f8)" * (cast_expression "(code **)(in_t9 + 0x11b9f8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x11b9f8)" ( (binary_expression "in_t9 + 0x11b9f8" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (return_statement "return piVar3;" return identifier ;) })) (expression_statement "pcVar9 = *(code **)(in_t9 + 0x11b3f4);" (assignment_expression "pcVar9 = *(code **)(in_t9 + 0x11b3f4)" identifier = (pointer_expression "*(code **)(in_t9 + 0x11b3f4)" * (cast_expression "(code **)(in_t9 + 0x11b3f4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x11b3f4)" ( (binary_expression "in_t9 + 0x11b3f4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(this + 4) = 0;" (assignment_expression "*(undefined4 *)(this + 4) = 0" (pointer_expression "*(undefined4 *)(this + 4)" * (cast_expression "(undefined4 *)(this + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(*pcVar9)(local_48,this,1);" (call_expression "(*pcVar9)(local_48,this,1)" (parenthesized_expression "(*pcVar9)" ( (pointer_expression "*pcVar9" * identifier) )) (argument_list "(local_48,this,1)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (param_1 < 1) {\n    return this;\n  }" if (parenthesized_expression "(param_1 < 1)" ( (binary_expression "param_1 < 1" identifier < number_literal) )) (compound_statement "{\n    return this;\n  }" { (return_statement "return this;" return identifier ;) })) (if_statement "if (local_48[0] == '\0') {\n    return this;\n  }" if (parenthesized_expression "(local_48[0] == '\0')" ( (binary_expression "local_48[0] == '\0'" (subscript_expression "local_48[0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return this;\n  }" { (return_statement "return this;" return identifier ;) })) (expression_statement "local_30 = (int)(char)param_2;" (assignment_expression "local_30 = (int)(char)param_2" identifier = (cast_expression "(int)(char)param_2" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)param_2" ( (type_descriptor "char" primitive_type) ) identifier))) ;) (expression_statement "piVar7 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78);" (assignment_expression "piVar7 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78)" identifier = (pointer_expression "*(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78)" * (cast_expression "(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc) + 0x78)" ( (binary_expression "this + *(int *)(*(int *)this + -0xc) + 0x78" (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))))) ;) (if_statement "if ((byte *)piVar7[2] < (byte *)piVar7[3]) {\n    uVar1 = (uint)*(byte *)piVar7[2];\n  }\n  else {\n    uVar1 = (**(code **)(*piVar7 + 0x24))(piVar7);\n  }" if (parenthesized_expression "((byte *)piVar7[2] < (byte *)piVar7[3])" ( (binary_expression "(byte *)piVar7[2] < (byte *)piVar7[3]" (cast_expression "(byte *)piVar7[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar7[2]" identifier [ number_literal ])) < (cast_expression "(byte *)piVar7[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar7[3]" identifier [ number_literal ]))) )) (compound_statement "{\n    uVar1 = (uint)*(byte *)piVar7[2];\n  }" { (expression_statement "uVar1 = (uint)*(byte *)piVar7[2];" (assignment_expression "uVar1 = (uint)*(byte *)piVar7[2]" identifier = (binary_expression "(uint)*(byte *)piVar7[2]" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)piVar7[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar7[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n    uVar1 = (**(code **)(*piVar7 + 0x24))(piVar7);\n  }" else (compound_statement "{\n    uVar1 = (**(code **)(*piVar7 + 0x24))(piVar7);\n  }" { (expression_statement "uVar1 = (**(code **)(*piVar7 + 0x24))(piVar7);" (assignment_expression "uVar1 = (**(code **)(*piVar7 + 0x24))(piVar7)" identifier = (call_expression "(**(code **)(*piVar7 + 0x24))(piVar7)" (parenthesized_expression "(**(code **)(*piVar7 + 0x24))" ( (pointer_expression "**(code **)(*piVar7 + 0x24)" * (pointer_expression "*(code **)(*piVar7 + 0x24)" * (cast_expression "(code **)(*piVar7 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar7 + 0x24)" ( (binary_expression "*piVar7 + 0x24" (pointer_expression "*piVar7" * identifier) + number_literal) ))))) )) (argument_list "(piVar7)" ( identifier )))) ;) }))) (expression_statement "iVar4 = *(int *)(this + 4);" (assignment_expression "iVar4 = *(int *)(this + 4)" identifier = (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;) (expression_statement "cVar8 = '\0';" (assignment_expression "cVar8 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (do_statement "do {\n    while (iVar4 < param_1) {\n      if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_1 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar8 != '\0') {\n          *(undefined4 *)(this + 4) = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }\n      if (uVar1 == param_2) {\n        if (param_1 == 0x7fffffff) {\n          if (cVar8 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar8 != '\0') goto LAB_0031abe8;\n        iVar4 = *(int *)(this + 4);\n        goto LAB_0031ac10;\n      }\n      pbVar6 = (byte *)piVar7[3];\n      pbVar5 = (byte *)piVar7[2];\n      iVar2 = param_1 - iVar4;\n      if ((int)pbVar6 - (int)pbVar5 <= param_1 - iVar4) {\n        iVar2 = (int)pbVar6 - (int)pbVar5;\n      }\n      if (iVar2 < 2) {\n        *(int *)(this + 4) = iVar4 + 1;\n        if (pbVar5 < pbVar6) {\n          pbVar5 = pbVar5 + 1;\n          piVar7[2] = (int)pbVar5;\n        }\n        else {\n          iVar4 = (**(code **)(*piVar7 + 0x28))(piVar7);\n          if (iVar4 == -1) goto LAB_0031abb4;\n          pbVar5 = (byte *)piVar7[2];\n          pbVar6 = (byte *)piVar7[3];\n        }\n        if (pbVar6 <= pbVar5) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar5;\n        iVar4 = *(int *)(this + 4);\n      }\n      else {\n        local_40 = pbVar5;\n        local_3c = iVar2;\n        local_38 = pbVar6;\n        local_34 = iVar4;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar5,local_30,iVar2);\n        iVar4 = local_3c;\n        if (iVar2 != 0) {\n          iVar4 = iVar2 - (int)local_40;\n        }\n        pbVar5 = local_40 + iVar4;\n        iVar4 = local_34 + iVar4;\n        piVar7[2] = (int)pbVar5;\n        *(int *)(this + 4) = iVar4;\n        if (pbVar5 < local_38) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar7 + 0x24))(piVar7);\n          iVar4 = *(int *)(this + 4);\n        }\n      }\n    }\n    if (param_1 != 0x7fffffff) {\n      if (cVar8 != '\0') goto LAB_0031abe8;\n      goto LAB_0031abf8;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_0031ab14:\n      if (cVar8 != '\0') {\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }\n      goto LAB_0031ab24;\n    }\n    if (uVar1 == param_2) {\n      if (cVar8 != '\0') {\nLAB_0031abe8:\n        *(undefined4 *)(this + 4) = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          (**(code **)(in_t9 + 0x1186c8))\n                    (this + *(int *)(*(int *)this + -0xc),\n                     *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 2);\n          return this;\n        }\n        if (param_2 != uVar1) {\n          return this;\n        }\n        iVar4 = *(int *)(this + 4);\n      }\nLAB_0031ac10:\n      if (iVar4 != 0x7fffffff) {\nLAB_0031ac1c:\n        *(int *)(this + 4) = iVar4 + 1;\n      }\n      if ((uint)piVar7[2] < (uint)piVar7[3]) {\n        piVar7[2] = piVar7[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar7 + 0x28))(piVar7);\n      }\n      return this;\n    }\n    *(undefined4 *)(this + 4) = 0x80000000;\n    iVar4 = -0x80000000;\n    cVar8 = local_48[0];\n  } while( true );" do (compound_statement "{\n    while (iVar4 < param_1) {\n      if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_1 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar8 != '\0') {\n          *(undefined4 *)(this + 4) = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }\n      if (uVar1 == param_2) {\n        if (param_1 == 0x7fffffff) {\n          if (cVar8 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar8 != '\0') goto LAB_0031abe8;\n        iVar4 = *(int *)(this + 4);\n        goto LAB_0031ac10;\n      }\n      pbVar6 = (byte *)piVar7[3];\n      pbVar5 = (byte *)piVar7[2];\n      iVar2 = param_1 - iVar4;\n      if ((int)pbVar6 - (int)pbVar5 <= param_1 - iVar4) {\n        iVar2 = (int)pbVar6 - (int)pbVar5;\n      }\n      if (iVar2 < 2) {\n        *(int *)(this + 4) = iVar4 + 1;\n        if (pbVar5 < pbVar6) {\n          pbVar5 = pbVar5 + 1;\n          piVar7[2] = (int)pbVar5;\n        }\n        else {\n          iVar4 = (**(code **)(*piVar7 + 0x28))(piVar7);\n          if (iVar4 == -1) goto LAB_0031abb4;\n          pbVar5 = (byte *)piVar7[2];\n          pbVar6 = (byte *)piVar7[3];\n        }\n        if (pbVar6 <= pbVar5) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar5;\n        iVar4 = *(int *)(this + 4);\n      }\n      else {\n        local_40 = pbVar5;\n        local_3c = iVar2;\n        local_38 = pbVar6;\n        local_34 = iVar4;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar5,local_30,iVar2);\n        iVar4 = local_3c;\n        if (iVar2 != 0) {\n          iVar4 = iVar2 - (int)local_40;\n        }\n        pbVar5 = local_40 + iVar4;\n        iVar4 = local_34 + iVar4;\n        piVar7[2] = (int)pbVar5;\n        *(int *)(this + 4) = iVar4;\n        if (pbVar5 < local_38) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar7 + 0x24))(piVar7);\n          iVar4 = *(int *)(this + 4);\n        }\n      }\n    }\n    if (param_1 != 0x7fffffff) {\n      if (cVar8 != '\0') goto LAB_0031abe8;\n      goto LAB_0031abf8;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_0031ab14:\n      if (cVar8 != '\0') {\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }\n      goto LAB_0031ab24;\n    }\n    if (uVar1 == param_2) {\n      if (cVar8 != '\0') {\nLAB_0031abe8:\n        *(undefined4 *)(this + 4) = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          (**(code **)(in_t9 + 0x1186c8))\n                    (this + *(int *)(*(int *)this + -0xc),\n                     *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 2);\n          return this;\n        }\n        if (param_2 != uVar1) {\n          return this;\n        }\n        iVar4 = *(int *)(this + 4);\n      }\nLAB_0031ac10:\n      if (iVar4 != 0x7fffffff) {\nLAB_0031ac1c:\n        *(int *)(this + 4) = iVar4 + 1;\n      }\n      if ((uint)piVar7[2] < (uint)piVar7[3]) {\n        piVar7[2] = piVar7[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar7 + 0x28))(piVar7);\n      }\n      return this;\n    }\n    *(undefined4 *)(this + 4) = 0x80000000;\n    iVar4 = -0x80000000;\n    cVar8 = local_48[0];\n  }" { (while_statement "while (iVar4 < param_1) {\n      if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_1 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar8 != '\0') {\n          *(undefined4 *)(this + 4) = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }\n      if (uVar1 == param_2) {\n        if (param_1 == 0x7fffffff) {\n          if (cVar8 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar8 != '\0') goto LAB_0031abe8;\n        iVar4 = *(int *)(this + 4);\n        goto LAB_0031ac10;\n      }\n      pbVar6 = (byte *)piVar7[3];\n      pbVar5 = (byte *)piVar7[2];\n      iVar2 = param_1 - iVar4;\n      if ((int)pbVar6 - (int)pbVar5 <= param_1 - iVar4) {\n        iVar2 = (int)pbVar6 - (int)pbVar5;\n      }\n      if (iVar2 < 2) {\n        *(int *)(this + 4) = iVar4 + 1;\n        if (pbVar5 < pbVar6) {\n          pbVar5 = pbVar5 + 1;\n          piVar7[2] = (int)pbVar5;\n        }\n        else {\n          iVar4 = (**(code **)(*piVar7 + 0x28))(piVar7);\n          if (iVar4 == -1) goto LAB_0031abb4;\n          pbVar5 = (byte *)piVar7[2];\n          pbVar6 = (byte *)piVar7[3];\n        }\n        if (pbVar6 <= pbVar5) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar5;\n        iVar4 = *(int *)(this + 4);\n      }\n      else {\n        local_40 = pbVar5;\n        local_3c = iVar2;\n        local_38 = pbVar6;\n        local_34 = iVar4;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar5,local_30,iVar2);\n        iVar4 = local_3c;\n        if (iVar2 != 0) {\n          iVar4 = iVar2 - (int)local_40;\n        }\n        pbVar5 = local_40 + iVar4;\n        iVar4 = local_34 + iVar4;\n        piVar7[2] = (int)pbVar5;\n        *(int *)(this + 4) = iVar4;\n        if (pbVar5 < local_38) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar7 + 0x24))(piVar7);\n          iVar4 = *(int *)(this + 4);\n        }\n      }\n    }" while (parenthesized_expression "(iVar4 < param_1)" ( (binary_expression "iVar4 < param_1" identifier < identifier) )) (compound_statement "{\n      if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_1 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar8 != '\0') {\n          *(undefined4 *)(this + 4) = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }\n      if (uVar1 == param_2) {\n        if (param_1 == 0x7fffffff) {\n          if (cVar8 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar8 != '\0') goto LAB_0031abe8;\n        iVar4 = *(int *)(this + 4);\n        goto LAB_0031ac10;\n      }\n      pbVar6 = (byte *)piVar7[3];\n      pbVar5 = (byte *)piVar7[2];\n      iVar2 = param_1 - iVar4;\n      if ((int)pbVar6 - (int)pbVar5 <= param_1 - iVar4) {\n        iVar2 = (int)pbVar6 - (int)pbVar5;\n      }\n      if (iVar2 < 2) {\n        *(int *)(this + 4) = iVar4 + 1;\n        if (pbVar5 < pbVar6) {\n          pbVar5 = pbVar5 + 1;\n          piVar7[2] = (int)pbVar5;\n        }\n        else {\n          iVar4 = (**(code **)(*piVar7 + 0x28))(piVar7);\n          if (iVar4 == -1) goto LAB_0031abb4;\n          pbVar5 = (byte *)piVar7[2];\n          pbVar6 = (byte *)piVar7[3];\n        }\n        if (pbVar6 <= pbVar5) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar5;\n        iVar4 = *(int *)(this + 4);\n      }\n      else {\n        local_40 = pbVar5;\n        local_3c = iVar2;\n        local_38 = pbVar6;\n        local_34 = iVar4;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar5,local_30,iVar2);\n        iVar4 = local_3c;\n        if (iVar2 != 0) {\n          iVar4 = iVar2 - (int)local_40;\n        }\n        pbVar5 = local_40 + iVar4;\n        iVar4 = local_34 + iVar4;\n        piVar7[2] = (int)pbVar5;\n        *(int *)(this + 4) = iVar4;\n        if (pbVar5 < local_38) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar7 + 0x24))(piVar7);\n          iVar4 = *(int *)(this + 4);\n        }\n      }\n    }" { (if_statement "if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_1 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar8 != '\0') {\n          *(undefined4 *)(this + 4) = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\nLAB_0031abb4:\n        if (param_1 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar8 != '\0') {\n          *(undefined4 *)(this + 4) = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }" { (labeled_statement "LAB_0031abb4:\n        if (param_1 == 0x7fffffff) goto LAB_0031ab14;" statement_identifier : (if_statement "if (param_1 == 0x7fffffff) goto LAB_0031ab14;" if (parenthesized_expression "(param_1 == 0x7fffffff)" ( (binary_expression "param_1 == 0x7fffffff" identifier == number_literal) )) (goto_statement "goto LAB_0031ab14;" goto statement_identifier ;))) (if_statement "if (cVar8 != '\0') {\n          *(undefined4 *)(this + 4) = 0x7fffffff;\n        }" if (parenthesized_expression "(cVar8 != '\0')" ( (binary_expression "cVar8 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          *(undefined4 *)(this + 4) = 0x7fffffff;\n        }" { (expression_statement "*(undefined4 *)(this + 4) = 0x7fffffff;" (assignment_expression "*(undefined4 *)(this + 4) = 0x7fffffff" (pointer_expression "*(undefined4 *)(this + 4)" * (cast_expression "(undefined4 *)(this + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = number_literal) ;) })) (goto_statement "goto LAB_0031ab24;" goto statement_identifier ;) })) (if_statement "if (uVar1 == param_2) {\n        if (param_1 == 0x7fffffff) {\n          if (cVar8 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar8 != '\0') goto LAB_0031abe8;\n        iVar4 = *(int *)(this + 4);\n        goto LAB_0031ac10;\n      }" if (parenthesized_expression "(uVar1 == param_2)" ( (binary_expression "uVar1 == param_2" identifier == identifier) )) (compound_statement "{\n        if (param_1 == 0x7fffffff) {\n          if (cVar8 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar8 != '\0') goto LAB_0031abe8;\n        iVar4 = *(int *)(this + 4);\n        goto LAB_0031ac10;\n      }" { (if_statement "if (param_1 == 0x7fffffff) {\n          if (cVar8 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }" if (parenthesized_expression "(param_1 == 0x7fffffff)" ( (binary_expression "param_1 == 0x7fffffff" identifier == number_literal) )) (compound_statement "{\n          if (cVar8 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }" { (if_statement "if (cVar8 == '\0') goto LAB_0031ac1c;" if (parenthesized_expression "(cVar8 == '\0')" ( (binary_expression "cVar8 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0031ac1c;" goto statement_identifier ;)) (goto_statement "goto LAB_0031abe8;" goto statement_identifier ;) })) (if_statement "if (cVar8 != '\0') goto LAB_0031abe8;" if (parenthesized_expression "(cVar8 != '\0')" ( (binary_expression "cVar8 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0031abe8;" goto statement_identifier ;)) (expression_statement "iVar4 = *(int *)(this + 4);" (assignment_expression "iVar4 = *(int *)(this + 4)" identifier = (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_0031ac10;" goto statement_identifier ;) })) (expression_statement "pbVar6 = (byte *)piVar7[3];" (assignment_expression "pbVar6 = (byte *)piVar7[3]" identifier = (cast_expression "(byte *)piVar7[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar7[3]" identifier [ number_literal ]))) ;) (expression_statement "pbVar5 = (byte *)piVar7[2];" (assignment_expression "pbVar5 = (byte *)piVar7[2]" identifier = (cast_expression "(byte *)piVar7[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar7[2]" identifier [ number_literal ]))) ;) (expression_statement "iVar2 = param_1 - iVar4;" (assignment_expression "iVar2 = param_1 - iVar4" identifier = (binary_expression "param_1 - iVar4" identifier - identifier)) ;) (if_statement "if ((int)pbVar6 - (int)pbVar5 <= param_1 - iVar4) {\n        iVar2 = (int)pbVar6 - (int)pbVar5;\n      }" if (parenthesized_expression "((int)pbVar6 - (int)pbVar5 <= param_1 - iVar4)" ( (binary_expression "(int)pbVar6 - (int)pbVar5 <= param_1 - iVar4" (binary_expression "(int)pbVar6 - (int)pbVar5" (cast_expression "(int)pbVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier)) <= (binary_expression "param_1 - iVar4" identifier - identifier)) )) (compound_statement "{\n        iVar2 = (int)pbVar6 - (int)pbVar5;\n      }" { (expression_statement "iVar2 = (int)pbVar6 - (int)pbVar5;" (assignment_expression "iVar2 = (int)pbVar6 - (int)pbVar5" identifier = (binary_expression "(int)pbVar6 - (int)pbVar5" (cast_expression "(int)pbVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (if_statement "if (iVar2 < 2) {\n        *(int *)(this + 4) = iVar4 + 1;\n        if (pbVar5 < pbVar6) {\n          pbVar5 = pbVar5 + 1;\n          piVar7[2] = (int)pbVar5;\n        }\n        else {\n          iVar4 = (**(code **)(*piVar7 + 0x28))(piVar7);\n          if (iVar4 == -1) goto LAB_0031abb4;\n          pbVar5 = (byte *)piVar7[2];\n          pbVar6 = (byte *)piVar7[3];\n        }\n        if (pbVar6 <= pbVar5) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar5;\n        iVar4 = *(int *)(this + 4);\n      }\n      else {\n        local_40 = pbVar5;\n        local_3c = iVar2;\n        local_38 = pbVar6;\n        local_34 = iVar4;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar5,local_30,iVar2);\n        iVar4 = local_3c;\n        if (iVar2 != 0) {\n          iVar4 = iVar2 - (int)local_40;\n        }\n        pbVar5 = local_40 + iVar4;\n        iVar4 = local_34 + iVar4;\n        piVar7[2] = (int)pbVar5;\n        *(int *)(this + 4) = iVar4;\n        if (pbVar5 < local_38) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar7 + 0x24))(piVar7);\n          iVar4 = *(int *)(this + 4);\n        }\n      }" if (parenthesized_expression "(iVar2 < 2)" ( (binary_expression "iVar2 < 2" identifier < number_literal) )) (compound_statement "{\n        *(int *)(this + 4) = iVar4 + 1;\n        if (pbVar5 < pbVar6) {\n          pbVar5 = pbVar5 + 1;\n          piVar7[2] = (int)pbVar5;\n        }\n        else {\n          iVar4 = (**(code **)(*piVar7 + 0x28))(piVar7);\n          if (iVar4 == -1) goto LAB_0031abb4;\n          pbVar5 = (byte *)piVar7[2];\n          pbVar6 = (byte *)piVar7[3];\n        }\n        if (pbVar6 <= pbVar5) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar5;\n        iVar4 = *(int *)(this + 4);\n      }" { (expression_statement "*(int *)(this + 4) = iVar4 + 1;" (assignment_expression "*(int *)(this + 4) = iVar4 + 1" (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (if_statement "if (pbVar5 < pbVar6) {\n          pbVar5 = pbVar5 + 1;\n          piVar7[2] = (int)pbVar5;\n        }\n        else {\n          iVar4 = (**(code **)(*piVar7 + 0x28))(piVar7);\n          if (iVar4 == -1) goto LAB_0031abb4;\n          pbVar5 = (byte *)piVar7[2];\n          pbVar6 = (byte *)piVar7[3];\n        }" if (parenthesized_expression "(pbVar5 < pbVar6)" ( (binary_expression "pbVar5 < pbVar6" identifier < identifier) )) (compound_statement "{\n          pbVar5 = pbVar5 + 1;\n          piVar7[2] = (int)pbVar5;\n        }" { (expression_statement "pbVar5 = pbVar5 + 1;" (assignment_expression "pbVar5 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) (expression_statement "piVar7[2] = (int)pbVar5;" (assignment_expression "piVar7[2] = (int)pbVar5" (subscript_expression "piVar7[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n          iVar4 = (**(code **)(*piVar7 + 0x28))(piVar7);\n          if (iVar4 == -1) goto LAB_0031abb4;\n          pbVar5 = (byte *)piVar7[2];\n          pbVar6 = (byte *)piVar7[3];\n        }" else (compound_statement "{\n          iVar4 = (**(code **)(*piVar7 + 0x28))(piVar7);\n          if (iVar4 == -1) goto LAB_0031abb4;\n          pbVar5 = (byte *)piVar7[2];\n          pbVar6 = (byte *)piVar7[3];\n        }" { (expression_statement "iVar4 = (**(code **)(*piVar7 + 0x28))(piVar7);" (assignment_expression "iVar4 = (**(code **)(*piVar7 + 0x28))(piVar7)" identifier = (call_expression "(**(code **)(*piVar7 + 0x28))(piVar7)" (parenthesized_expression "(**(code **)(*piVar7 + 0x28))" ( (pointer_expression "**(code **)(*piVar7 + 0x28)" * (pointer_expression "*(code **)(*piVar7 + 0x28)" * (cast_expression "(code **)(*piVar7 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar7 + 0x28)" ( (binary_expression "*piVar7 + 0x28" (pointer_expression "*piVar7" * identifier) + number_literal) ))))) )) (argument_list "(piVar7)" ( identifier )))) ;) (if_statement "if (iVar4 == -1) goto LAB_0031abb4;" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (goto_statement "goto LAB_0031abb4;" goto statement_identifier ;)) (expression_statement "pbVar5 = (byte *)piVar7[2];" (assignment_expression "pbVar5 = (byte *)piVar7[2]" identifier = (cast_expression "(byte *)piVar7[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar7[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar6 = (byte *)piVar7[3];" (assignment_expression "pbVar6 = (byte *)piVar7[3]" identifier = (cast_expression "(byte *)piVar7[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar7[3]" identifier [ number_literal ]))) ;) }))) (if_statement "if (pbVar6 <= pbVar5) goto LAB_0031ac70;" if (parenthesized_expression "(pbVar6 <= pbVar5)" ( (binary_expression "pbVar6 <= pbVar5" identifier <= identifier) )) (goto_statement "goto LAB_0031ac70;" goto statement_identifier ;)) (expression_statement "uVar1 = (uint)*pbVar5;" (assignment_expression "uVar1 = (uint)*pbVar5" identifier = (binary_expression "(uint)*pbVar5" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "iVar4 = *(int *)(this + 4);" (assignment_expression "iVar4 = *(int *)(this + 4)" identifier = (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        local_40 = pbVar5;\n        local_3c = iVar2;\n        local_38 = pbVar6;\n        local_34 = iVar4;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar5,local_30,iVar2);\n        iVar4 = local_3c;\n        if (iVar2 != 0) {\n          iVar4 = iVar2 - (int)local_40;\n        }\n        pbVar5 = local_40 + iVar4;\n        iVar4 = local_34 + iVar4;\n        piVar7[2] = (int)pbVar5;\n        *(int *)(this + 4) = iVar4;\n        if (pbVar5 < local_38) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar7 + 0x24))(piVar7);\n          iVar4 = *(int *)(this + 4);\n        }\n      }" else (compound_statement "{\n        local_40 = pbVar5;\n        local_3c = iVar2;\n        local_38 = pbVar6;\n        local_34 = iVar4;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar5,local_30,iVar2);\n        iVar4 = local_3c;\n        if (iVar2 != 0) {\n          iVar4 = iVar2 - (int)local_40;\n        }\n        pbVar5 = local_40 + iVar4;\n        iVar4 = local_34 + iVar4;\n        piVar7[2] = (int)pbVar5;\n        *(int *)(this + 4) = iVar4;\n        if (pbVar5 < local_38) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar7 + 0x24))(piVar7);\n          iVar4 = *(int *)(this + 4);\n        }\n      }" { (expression_statement "local_40 = pbVar5;" (assignment_expression "local_40 = pbVar5" identifier = identifier) ;) (expression_statement "local_3c = iVar2;" (assignment_expression "local_3c = iVar2" identifier = identifier) ;) (expression_statement "local_38 = pbVar6;" (assignment_expression "local_38 = pbVar6" identifier = identifier) ;) (expression_statement "local_34 = iVar4;" (assignment_expression "local_34 = iVar4" identifier = identifier) ;) (expression_statement "iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar5,local_30,iVar2);" (assignment_expression "iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar5,local_30,iVar2)" identifier = (call_expression "(**(code **)(in_t9 + 0x11bd24))(pbVar5,local_30,iVar2)" (parenthesized_expression "(**(code **)(in_t9 + 0x11bd24))" ( (pointer_expression "**(code **)(in_t9 + 0x11bd24)" * (pointer_expression "*(code **)(in_t9 + 0x11bd24)" * (cast_expression "(code **)(in_t9 + 0x11bd24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x11bd24)" ( (binary_expression "in_t9 + 0x11bd24" identifier + number_literal) ))))) )) (argument_list "(pbVar5,local_30,iVar2)" ( identifier , identifier , identifier )))) ;) (expression_statement "iVar4 = local_3c;" (assignment_expression "iVar4 = local_3c" identifier = identifier) ;) (if_statement "if (iVar2 != 0) {\n          iVar4 = iVar2 - (int)local_40;\n        }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n          iVar4 = iVar2 - (int)local_40;\n        }" { (expression_statement "iVar4 = iVar2 - (int)local_40;" (assignment_expression "iVar4 = iVar2 - (int)local_40" identifier = (binary_expression "iVar2 - (int)local_40" identifier - (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (expression_statement "pbVar5 = local_40 + iVar4;" (assignment_expression "pbVar5 = local_40 + iVar4" identifier = (binary_expression "local_40 + iVar4" identifier + identifier)) ;) (expression_statement "iVar4 = local_34 + iVar4;" (assignment_expression "iVar4 = local_34 + iVar4" identifier = (binary_expression "local_34 + iVar4" identifier + identifier)) ;) (expression_statement "piVar7[2] = (int)pbVar5;" (assignment_expression "piVar7[2] = (int)pbVar5" (subscript_expression "piVar7[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(int *)(this + 4) = iVar4;" (assignment_expression "*(int *)(this + 4) = iVar4" (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = identifier) ;) (if_statement "if (pbVar5 < local_38) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar7 + 0x24))(piVar7);\n          iVar4 = *(int *)(this + 4);\n        }" if (parenthesized_expression "(pbVar5 < local_38)" ( (binary_expression "pbVar5 < local_38" identifier < identifier) )) (compound_statement "{\n          uVar1 = (uint)*pbVar5;\n        }" { (expression_statement "uVar1 = (uint)*pbVar5;" (assignment_expression "uVar1 = (uint)*pbVar5" identifier = (binary_expression "(uint)*pbVar5" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }) (else_clause "else {\nLAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar7 + 0x24))(piVar7);\n          iVar4 = *(int *)(this + 4);\n        }" else (compound_statement "{\nLAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar7 + 0x24))(piVar7);\n          iVar4 = *(int *)(this + 4);\n        }" { (labeled_statement "LAB_0031ac70:\n                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */\n          uVar1 = (**(code **)(*piVar7 + 0x24))(piVar7);" statement_identifier : comment (expression_statement "uVar1 = (**(code **)(*piVar7 + 0x24))(piVar7);" (assignment_expression "uVar1 = (**(code **)(*piVar7 + 0x24))(piVar7)" identifier = (call_expression "(**(code **)(*piVar7 + 0x24))(piVar7)" (parenthesized_expression "(**(code **)(*piVar7 + 0x24))" ( (pointer_expression "**(code **)(*piVar7 + 0x24)" * (pointer_expression "*(code **)(*piVar7 + 0x24)" * (cast_expression "(code **)(*piVar7 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar7 + 0x24)" ( (binary_expression "*piVar7 + 0x24" (pointer_expression "*piVar7" * identifier) + number_literal) ))))) )) (argument_list "(piVar7)" ( identifier )))) ;)) (expression_statement "iVar4 = *(int *)(this + 4);" (assignment_expression "iVar4 = *(int *)(this + 4)" identifier = (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;) }))) }))) })) (if_statement "if (param_1 != 0x7fffffff) {\n      if (cVar8 != '\0') goto LAB_0031abe8;\n      goto LAB_0031abf8;\n    }" if (parenthesized_expression "(param_1 != 0x7fffffff)" ( (binary_expression "param_1 != 0x7fffffff" identifier != number_literal) )) (compound_statement "{\n      if (cVar8 != '\0') goto LAB_0031abe8;\n      goto LAB_0031abf8;\n    }" { (if_statement "if (cVar8 != '\0') goto LAB_0031abe8;" if (parenthesized_expression "(cVar8 != '\0')" ( (binary_expression "cVar8 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0031abe8;" goto statement_identifier ;)) (goto_statement "goto LAB_0031abf8;" goto statement_identifier ;) })) (if_statement "if (uVar1 == 0xffffffff) {\nLAB_0031ab14:\n      if (cVar8 != '\0') {\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }\n      goto LAB_0031ab24;\n    }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\nLAB_0031ab14:\n      if (cVar8 != '\0') {\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }\n      goto LAB_0031ab24;\n    }" { (labeled_statement "LAB_0031ab14:\n      if (cVar8 != '\0') {\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }" statement_identifier : (if_statement "if (cVar8 != '\0') {\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }" if (parenthesized_expression "(cVar8 != '\0')" ( (binary_expression "cVar8 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }" { (expression_statement "*(undefined4 *)(this + 4) = 0x7fffffff;" (assignment_expression "*(undefined4 *)(this + 4) = 0x7fffffff" (pointer_expression "*(undefined4 *)(this + 4)" * (cast_expression "(undefined4 *)(this + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = number_literal) ;) }))) (goto_statement "goto LAB_0031ab24;" goto statement_identifier ;) })) (if_statement "if (uVar1 == param_2) {\n      if (cVar8 != '\0') {\nLAB_0031abe8:\n        *(undefined4 *)(this + 4) = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          (**(code **)(in_t9 + 0x1186c8))\n                    (this + *(int *)(*(int *)this + -0xc),\n                     *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 2);\n          return this;\n        }\n        if (param_2 != uVar1) {\n          return this;\n        }\n        iVar4 = *(int *)(this + 4);\n      }\nLAB_0031ac10:\n      if (iVar4 != 0x7fffffff) {\nLAB_0031ac1c:\n        *(int *)(this + 4) = iVar4 + 1;\n      }\n      if ((uint)piVar7[2] < (uint)piVar7[3]) {\n        piVar7[2] = piVar7[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar7 + 0x28))(piVar7);\n      }\n      return this;\n    }" if (parenthesized_expression "(uVar1 == param_2)" ( (binary_expression "uVar1 == param_2" identifier == identifier) )) (compound_statement "{\n      if (cVar8 != '\0') {\nLAB_0031abe8:\n        *(undefined4 *)(this + 4) = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          (**(code **)(in_t9 + 0x1186c8))\n                    (this + *(int *)(*(int *)this + -0xc),\n                     *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 2);\n          return this;\n        }\n        if (param_2 != uVar1) {\n          return this;\n        }\n        iVar4 = *(int *)(this + 4);\n      }\nLAB_0031ac10:\n      if (iVar4 != 0x7fffffff) {\nLAB_0031ac1c:\n        *(int *)(this + 4) = iVar4 + 1;\n      }\n      if ((uint)piVar7[2] < (uint)piVar7[3]) {\n        piVar7[2] = piVar7[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar7 + 0x28))(piVar7);\n      }\n      return this;\n    }" { (if_statement "if (cVar8 != '\0') {\nLAB_0031abe8:\n        *(undefined4 *)(this + 4) = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          (**(code **)(in_t9 + 0x1186c8))\n                    (this + *(int *)(*(int *)this + -0xc),\n                     *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 2);\n          return this;\n        }\n        if (param_2 != uVar1) {\n          return this;\n        }\n        iVar4 = *(int *)(this + 4);\n      }" if (parenthesized_expression "(cVar8 != '\0')" ( (binary_expression "cVar8 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_0031abe8:\n        *(undefined4 *)(this + 4) = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          (**(code **)(in_t9 + 0x1186c8))\n                    (this + *(int *)(*(int *)this + -0xc),\n                     *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 2);\n          return this;\n        }\n        if (param_2 != uVar1) {\n          return this;\n        }\n        iVar4 = *(int *)(this + 4);\n      }" { (labeled_statement "LAB_0031abe8:\n        *(undefined4 *)(this + 4) = 0x7fffffff;" statement_identifier : (expression_statement "*(undefined4 *)(this + 4) = 0x7fffffff;" (assignment_expression "*(undefined4 *)(this + 4) = 0x7fffffff" (pointer_expression "*(undefined4 *)(this + 4)" * (cast_expression "(undefined4 *)(this + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = number_literal) ;)) (labeled_statement "LAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          (**(code **)(in_t9 + 0x1186c8))\n                    (this + *(int *)(*(int *)this + -0xc),\n                     *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 2);\n          return this;\n        }" statement_identifier : (if_statement "if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          (**(code **)(in_t9 + 0x1186c8))\n                    (this + *(int *)(*(int *)this + -0xc),\n                     *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 2);\n          return this;\n        }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\nLAB_0031ab24:\n          (**(code **)(in_t9 + 0x1186c8))\n                    (this + *(int *)(*(int *)this + -0xc),\n                     *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 2);\n          return this;\n        }" { (labeled_statement "LAB_0031ab24:\n          (**(code **)(in_t9 + 0x1186c8))\n                    (this + *(int *)(*(int *)this + -0xc),\n                     *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 2);" statement_identifier : (expression_statement "(**(code **)(in_t9 + 0x1186c8))\n                    (this + *(int *)(*(int *)this + -0xc),\n                     *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 2);" (call_expression "(**(code **)(in_t9 + 0x1186c8))\n                    (this + *(int *)(*(int *)this + -0xc),\n                     *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 2)" (parenthesized_expression "(**(code **)(in_t9 + 0x1186c8))" ( (pointer_expression "**(code **)(in_t9 + 0x1186c8)" * (pointer_expression "*(code **)(in_t9 + 0x1186c8)" * (cast_expression "(code **)(in_t9 + 0x1186c8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x1186c8)" ( (binary_expression "in_t9 + 0x1186c8" identifier + number_literal) ))))) )) (argument_list "(this + *(int *)(*(int *)this + -0xc),\n                     *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 2)" ( (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) , (binary_expression "*(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 2" (pointer_expression "*(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14)" * (cast_expression "(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc) + 0x14)" ( (binary_expression "this + *(int *)(*(int *)this + -0xc) + 0x14" (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) )))) | number_literal) ))) ;)) (return_statement "return this;" return identifier ;) }))) (if_statement "if (param_2 != uVar1) {\n          return this;\n        }" if (parenthesized_expression "(param_2 != uVar1)" ( (binary_expression "param_2 != uVar1" identifier != identifier) )) (compound_statement "{\n          return this;\n        }" { (return_statement "return this;" return identifier ;) })) (expression_statement "iVar4 = *(int *)(this + 4);" (assignment_expression "iVar4 = *(int *)(this + 4)" identifier = (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;) })) (labeled_statement "LAB_0031ac10:\n      if (iVar4 != 0x7fffffff) {\nLAB_0031ac1c:\n        *(int *)(this + 4) = iVar4 + 1;\n      }" statement_identifier : (if_statement "if (iVar4 != 0x7fffffff) {\nLAB_0031ac1c:\n        *(int *)(this + 4) = iVar4 + 1;\n      }" if (parenthesized_expression "(iVar4 != 0x7fffffff)" ( (binary_expression "iVar4 != 0x7fffffff" identifier != number_literal) )) (compound_statement "{\nLAB_0031ac1c:\n        *(int *)(this + 4) = iVar4 + 1;\n      }" { (labeled_statement "LAB_0031ac1c:\n        *(int *)(this + 4) = iVar4 + 1;" statement_identifier : (expression_statement "*(int *)(this + 4) = iVar4 + 1;" (assignment_expression "*(int *)(this + 4) = iVar4 + 1" (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = (binary_expression "iVar4 + 1" identifier + number_literal)) ;)) }))) (if_statement "if ((uint)piVar7[2] < (uint)piVar7[3]) {\n        piVar7[2] = piVar7[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar7 + 0x28))(piVar7);\n      }" if (parenthesized_expression "((uint)piVar7[2] < (uint)piVar7[3])" ( (binary_expression "(uint)piVar7[2] < (uint)piVar7[3]" (cast_expression "(uint)piVar7[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar7[2]" identifier [ number_literal ])) < (cast_expression "(uint)piVar7[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar7[3]" identifier [ number_literal ]))) )) (compound_statement "{\n        piVar7[2] = piVar7[2] + 1;\n      }" { (expression_statement "piVar7[2] = piVar7[2] + 1;" (assignment_expression "piVar7[2] = piVar7[2] + 1" (subscript_expression "piVar7[2]" identifier [ number_literal ]) = (binary_expression "piVar7[2] + 1" (subscript_expression "piVar7[2]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else {\n        (**(code **)(*piVar7 + 0x28))(piVar7);\n      }" else (compound_statement "{\n        (**(code **)(*piVar7 + 0x28))(piVar7);\n      }" { (expression_statement "(**(code **)(*piVar7 + 0x28))(piVar7);" (call_expression "(**(code **)(*piVar7 + 0x28))(piVar7)" (parenthesized_expression "(**(code **)(*piVar7 + 0x28))" ( (pointer_expression "**(code **)(*piVar7 + 0x28)" * (pointer_expression "*(code **)(*piVar7 + 0x28)" * (cast_expression "(code **)(*piVar7 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar7 + 0x28)" ( (binary_expression "*piVar7 + 0x28" (pointer_expression "*piVar7" * identifier) + number_literal) ))))) )) (argument_list "(piVar7)" ( identifier ))) ;) }))) (return_statement "return this;" return identifier ;) })) (expression_statement "*(undefined4 *)(this + 4) = 0x80000000;" (assignment_expression "*(undefined4 *)(this + 4) = 0x80000000" (pointer_expression "*(undefined4 *)(this + 4)" * (cast_expression "(undefined4 *)(this + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar4 = -0x80000000;" (assignment_expression "iVar4 = -0x80000000" identifier = number_literal) ;) (expression_statement "cVar8 = local_48[0];" (assignment_expression "cVar8 = local_48[0]" identifier = (subscript_expression "local_48[0]" identifier [ number_literal ])) ;) }) while (parenthesized_expression "( true )" ( true )) ;) }))
(translation_unit "int * FUN_0031a984(int *param_1,int param_2,uint param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  int *piVar6;\n  char cVar7;\n  int in_t9;\n  code *pcVar8;\n  char local_48 [8];\n  byte *local_40;\n  int local_3c;\n  byte *local_38;\n  int local_34;\n  int local_30;\n  \n  if (param_3 == 0xffffffff) {\n    piVar6 = (int *)(**(code **)(in_t9 + 0x11b9f8))();\n    return piVar6;\n  }\n  pcVar8 = *(code **)(in_t9 + 0x11b3f4);\n  param_1[1] = 0;\n  (*pcVar8)(local_48,param_1,1);\n  if (param_2 < 1) {\n    return param_1;\n  }\n  if (local_48[0] == '\0') {\n    return param_1;\n  }\n  local_30 = (int)(char)param_3;\n  piVar6 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar6[2] < (byte *)piVar6[3]) {\n    uVar1 = (uint)*(byte *)piVar6[2];\n  }\n  else {\n    uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n  }\n  iVar3 = param_1[1];\n  cVar7 = '\0';\n  do {\n    while (iVar3 < param_2) {\n      if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar7 != '\0') goto LAB_0031abe8;\n        iVar3 = param_1[1];\n        goto LAB_0031ac10;\n      }\n      pbVar5 = (byte *)piVar6[3];\n      pbVar4 = (byte *)piVar6[2];\n      iVar2 = param_2 - iVar3;\n      if ((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3) {\n        iVar2 = (int)pbVar5 - (int)pbVar4;\n      }\n      if (iVar2 < 2) {\n        param_1[1] = iVar3 + 1;\n        if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }\n        if (pbVar5 <= pbVar4) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar4;\n        iVar3 = param_1[1];\n      }\n      else {\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (cVar7 != '\0') goto LAB_0031abe8;\n      goto LAB_0031abf8;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_0031ab14:\n      if (cVar7 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_0031ab24;\n    }\n    if (uVar1 == param_3) {\n      if (cVar7 != '\0') {\nLAB_0031abe8:\n        param_1[1] = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\n        iVar3 = param_1[1];\n      }\nLAB_0031ac10:\n      if (iVar3 != 0x7fffffff) {\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }\n      if ((uint)piVar6[2] < (uint)piVar6[3]) {\n        piVar6[2] = piVar6[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }\n      return param_1;\n    }\n    param_1[1] = -0x80000000;\n    iVar3 = -0x80000000;\n    cVar7 = local_48[0];\n  } while( true );\n}\n\n" (function_definition "int * FUN_0031a984(int *param_1,int param_2,uint param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  int *piVar6;\n  char cVar7;\n  int in_t9;\n  code *pcVar8;\n  char local_48 [8];\n  byte *local_40;\n  int local_3c;\n  byte *local_38;\n  int local_34;\n  int local_30;\n  \n  if (param_3 == 0xffffffff) {\n    piVar6 = (int *)(**(code **)(in_t9 + 0x11b9f8))();\n    return piVar6;\n  }\n  pcVar8 = *(code **)(in_t9 + 0x11b3f4);\n  param_1[1] = 0;\n  (*pcVar8)(local_48,param_1,1);\n  if (param_2 < 1) {\n    return param_1;\n  }\n  if (local_48[0] == '\0') {\n    return param_1;\n  }\n  local_30 = (int)(char)param_3;\n  piVar6 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar6[2] < (byte *)piVar6[3]) {\n    uVar1 = (uint)*(byte *)piVar6[2];\n  }\n  else {\n    uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n  }\n  iVar3 = param_1[1];\n  cVar7 = '\0';\n  do {\n    while (iVar3 < param_2) {\n      if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar7 != '\0') goto LAB_0031abe8;\n        iVar3 = param_1[1];\n        goto LAB_0031ac10;\n      }\n      pbVar5 = (byte *)piVar6[3];\n      pbVar4 = (byte *)piVar6[2];\n      iVar2 = param_2 - iVar3;\n      if ((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3) {\n        iVar2 = (int)pbVar5 - (int)pbVar4;\n      }\n      if (iVar2 < 2) {\n        param_1[1] = iVar3 + 1;\n        if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }\n        if (pbVar5 <= pbVar4) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar4;\n        iVar3 = param_1[1];\n      }\n      else {\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (cVar7 != '\0') goto LAB_0031abe8;\n      goto LAB_0031abf8;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_0031ab14:\n      if (cVar7 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_0031ab24;\n    }\n    if (uVar1 == param_3) {\n      if (cVar7 != '\0') {\nLAB_0031abe8:\n        param_1[1] = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\n        iVar3 = param_1[1];\n      }\nLAB_0031ac10:\n      if (iVar3 != 0x7fffffff) {\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }\n      if ((uint)piVar6[2] < (uint)piVar6[3]) {\n        piVar6[2] = piVar6[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }\n      return param_1;\n    }\n    param_1[1] = -0x80000000;\n    iVar3 = -0x80000000;\n    cVar7 = local_48[0];\n  } while( true );\n}" primitive_type (pointer_declarator "* FUN_0031a984(int *param_1,int param_2,uint param_3)" * (function_declarator "FUN_0031a984(int *param_1,int param_2,uint param_3)" identifier (parameter_list "(int *param_1,int param_2,uint param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) )))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  int *piVar6;\n  char cVar7;\n  int in_t9;\n  code *pcVar8;\n  char local_48 [8];\n  byte *local_40;\n  int local_3c;\n  byte *local_38;\n  int local_34;\n  int local_30;\n  \n  if (param_3 == 0xffffffff) {\n    piVar6 = (int *)(**(code **)(in_t9 + 0x11b9f8))();\n    return piVar6;\n  }\n  pcVar8 = *(code **)(in_t9 + 0x11b3f4);\n  param_1[1] = 0;\n  (*pcVar8)(local_48,param_1,1);\n  if (param_2 < 1) {\n    return param_1;\n  }\n  if (local_48[0] == '\0') {\n    return param_1;\n  }\n  local_30 = (int)(char)param_3;\n  piVar6 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar6[2] < (byte *)piVar6[3]) {\n    uVar1 = (uint)*(byte *)piVar6[2];\n  }\n  else {\n    uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n  }\n  iVar3 = param_1[1];\n  cVar7 = '\0';\n  do {\n    while (iVar3 < param_2) {\n      if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar7 != '\0') goto LAB_0031abe8;\n        iVar3 = param_1[1];\n        goto LAB_0031ac10;\n      }\n      pbVar5 = (byte *)piVar6[3];\n      pbVar4 = (byte *)piVar6[2];\n      iVar2 = param_2 - iVar3;\n      if ((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3) {\n        iVar2 = (int)pbVar5 - (int)pbVar4;\n      }\n      if (iVar2 < 2) {\n        param_1[1] = iVar3 + 1;\n        if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }\n        if (pbVar5 <= pbVar4) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar4;\n        iVar3 = param_1[1];\n      }\n      else {\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (cVar7 != '\0') goto LAB_0031abe8;\n      goto LAB_0031abf8;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_0031ab14:\n      if (cVar7 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_0031ab24;\n    }\n    if (uVar1 == param_3) {\n      if (cVar7 != '\0') {\nLAB_0031abe8:\n        param_1[1] = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\n        iVar3 = param_1[1];\n      }\nLAB_0031ac10:\n      if (iVar3 != 0x7fffffff) {\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }\n      if ((uint)piVar6[2] < (uint)piVar6[3]) {\n        piVar6[2] = piVar6[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }\n      return param_1;\n    }\n    param_1[1] = -0x80000000;\n    iVar3 = -0x80000000;\n    cVar7 = local_48[0];\n  } while( true );\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "char cVar7;" primitive_type identifier ;) (declaration "int in_t9;" primitive_type identifier ;) (declaration "code *pcVar8;" type_identifier (pointer_declarator "*pcVar8" * identifier) ;) (declaration "char local_48 [8];" primitive_type (array_declarator "local_48 [8]" identifier [ number_literal ]) ;) (declaration "byte *local_40;" type_identifier (pointer_declarator "*local_40" * identifier) ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "byte *local_38;" type_identifier (pointer_declarator "*local_38" * identifier) ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "int local_30;" primitive_type identifier ;) (if_statement "if (param_3 == 0xffffffff) {\n    piVar6 = (int *)(**(code **)(in_t9 + 0x11b9f8))();\n    return piVar6;\n  }" if (parenthesized_expression "(param_3 == 0xffffffff)" ( (binary_expression "param_3 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n    piVar6 = (int *)(**(code **)(in_t9 + 0x11b9f8))();\n    return piVar6;\n  }" { (expression_statement "piVar6 = (int *)(**(code **)(in_t9 + 0x11b9f8))();" (assignment_expression "piVar6 = (int *)(**(code **)(in_t9 + 0x11b9f8))()" identifier = (cast_expression "(int *)(**(code **)(in_t9 + 0x11b9f8))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(in_t9 + 0x11b9f8))()" (parenthesized_expression "(**(code **)(in_t9 + 0x11b9f8))" ( (pointer_expression "**(code **)(in_t9 + 0x11b9f8)" * (pointer_expression "*(code **)(in_t9 + 0x11b9f8)" * (cast_expression "(code **)(in_t9 + 0x11b9f8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x11b9f8)" ( (binary_expression "in_t9 + 0x11b9f8" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (return_statement "return piVar6;" return identifier ;) })) (expression_statement "pcVar8 = *(code **)(in_t9 + 0x11b3f4);" (assignment_expression "pcVar8 = *(code **)(in_t9 + 0x11b3f4)" identifier = (pointer_expression "*(code **)(in_t9 + 0x11b3f4)" * (cast_expression "(code **)(in_t9 + 0x11b3f4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x11b3f4)" ( (binary_expression "in_t9 + 0x11b3f4" identifier + number_literal) ))))) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "(*pcVar8)(local_48,param_1,1);" (call_expression "(*pcVar8)(local_48,param_1,1)" (parenthesized_expression "(*pcVar8)" ( (pointer_expression "*pcVar8" * identifier) )) (argument_list "(local_48,param_1,1)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (param_2 < 1) {\n    return param_1;\n  }" if (parenthesized_expression "(param_2 < 1)" ( (binary_expression "param_2 < 1" identifier < number_literal) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (if_statement "if (local_48[0] == '\0') {\n    return param_1;\n  }" if (parenthesized_expression "(local_48[0] == '\0')" ( (binary_expression "local_48[0] == '\0'" (subscript_expression "local_48[0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "local_30 = (int)(char)param_3;" (assignment_expression "local_30 = (int)(char)param_3" identifier = (cast_expression "(int)(char)param_3" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)param_3" ( (type_descriptor "char" primitive_type) ) identifier))) ;) (expression_statement "piVar6 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);" (assignment_expression "piVar6 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" identifier = (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" * (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x78" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))))) ;) (if_statement "if ((byte *)piVar6[2] < (byte *)piVar6[3]) {\n    uVar1 = (uint)*(byte *)piVar6[2];\n  }\n  else {\n    uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n  }" if (parenthesized_expression "((byte *)piVar6[2] < (byte *)piVar6[3])" ( (binary_expression "(byte *)piVar6[2] < (byte *)piVar6[3]" (cast_expression "(byte *)piVar6[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[2]" identifier [ number_literal ])) < (cast_expression "(byte *)piVar6[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[3]" identifier [ number_literal ]))) )) (compound_statement "{\n    uVar1 = (uint)*(byte *)piVar6[2];\n  }" { (expression_statement "uVar1 = (uint)*(byte *)piVar6[2];" (assignment_expression "uVar1 = (uint)*(byte *)piVar6[2]" identifier = (binary_expression "(uint)*(byte *)piVar6[2]" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)piVar6[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n    uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n  }" else (compound_statement "{\n    uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n  }" { (expression_statement "uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);" (assignment_expression "uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6)" identifier = (call_expression "(**(code **)(*piVar6 + 0x24))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x24))" ( (pointer_expression "**(code **)(*piVar6 + 0x24)" * (pointer_expression "*(code **)(*piVar6 + 0x24)" * (cast_expression "(code **)(*piVar6 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 0x24)" ( (binary_expression "*piVar6 + 0x24" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) )) (argument_list "(piVar6)" ( identifier )))) ;) }))) (expression_statement "iVar3 = param_1[1];" (assignment_expression "iVar3 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "cVar7 = '\0';" (assignment_expression "cVar7 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (do_statement "do {\n    while (iVar3 < param_2) {\n      if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar7 != '\0') goto LAB_0031abe8;\n        iVar3 = param_1[1];\n        goto LAB_0031ac10;\n      }\n      pbVar5 = (byte *)piVar6[3];\n      pbVar4 = (byte *)piVar6[2];\n      iVar2 = param_2 - iVar3;\n      if ((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3) {\n        iVar2 = (int)pbVar5 - (int)pbVar4;\n      }\n      if (iVar2 < 2) {\n        param_1[1] = iVar3 + 1;\n        if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }\n        if (pbVar5 <= pbVar4) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar4;\n        iVar3 = param_1[1];\n      }\n      else {\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (cVar7 != '\0') goto LAB_0031abe8;\n      goto LAB_0031abf8;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_0031ab14:\n      if (cVar7 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_0031ab24;\n    }\n    if (uVar1 == param_3) {\n      if (cVar7 != '\0') {\nLAB_0031abe8:\n        param_1[1] = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\n        iVar3 = param_1[1];\n      }\nLAB_0031ac10:\n      if (iVar3 != 0x7fffffff) {\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }\n      if ((uint)piVar6[2] < (uint)piVar6[3]) {\n        piVar6[2] = piVar6[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }\n      return param_1;\n    }\n    param_1[1] = -0x80000000;\n    iVar3 = -0x80000000;\n    cVar7 = local_48[0];\n  } while( true );" do (compound_statement "{\n    while (iVar3 < param_2) {\n      if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar7 != '\0') goto LAB_0031abe8;\n        iVar3 = param_1[1];\n        goto LAB_0031ac10;\n      }\n      pbVar5 = (byte *)piVar6[3];\n      pbVar4 = (byte *)piVar6[2];\n      iVar2 = param_2 - iVar3;\n      if ((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3) {\n        iVar2 = (int)pbVar5 - (int)pbVar4;\n      }\n      if (iVar2 < 2) {\n        param_1[1] = iVar3 + 1;\n        if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }\n        if (pbVar5 <= pbVar4) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar4;\n        iVar3 = param_1[1];\n      }\n      else {\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (cVar7 != '\0') goto LAB_0031abe8;\n      goto LAB_0031abf8;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_0031ab14:\n      if (cVar7 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_0031ab24;\n    }\n    if (uVar1 == param_3) {\n      if (cVar7 != '\0') {\nLAB_0031abe8:\n        param_1[1] = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\n        iVar3 = param_1[1];\n      }\nLAB_0031ac10:\n      if (iVar3 != 0x7fffffff) {\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }\n      if ((uint)piVar6[2] < (uint)piVar6[3]) {\n        piVar6[2] = piVar6[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }\n      return param_1;\n    }\n    param_1[1] = -0x80000000;\n    iVar3 = -0x80000000;\n    cVar7 = local_48[0];\n  }" { (while_statement "while (iVar3 < param_2) {\n      if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar7 != '\0') goto LAB_0031abe8;\n        iVar3 = param_1[1];\n        goto LAB_0031ac10;\n      }\n      pbVar5 = (byte *)piVar6[3];\n      pbVar4 = (byte *)piVar6[2];\n      iVar2 = param_2 - iVar3;\n      if ((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3) {\n        iVar2 = (int)pbVar5 - (int)pbVar4;\n      }\n      if (iVar2 < 2) {\n        param_1[1] = iVar3 + 1;\n        if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }\n        if (pbVar5 <= pbVar4) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar4;\n        iVar3 = param_1[1];\n      }\n      else {\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }\n    }" while (parenthesized_expression "(iVar3 < param_2)" ( (binary_expression "iVar3 < param_2" identifier < identifier) )) (compound_statement "{\n      if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar7 != '\0') goto LAB_0031abe8;\n        iVar3 = param_1[1];\n        goto LAB_0031ac10;\n      }\n      pbVar5 = (byte *)piVar6[3];\n      pbVar4 = (byte *)piVar6[2];\n      iVar2 = param_2 - iVar3;\n      if ((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3) {\n        iVar2 = (int)pbVar5 - (int)pbVar4;\n      }\n      if (iVar2 < 2) {\n        param_1[1] = iVar3 + 1;\n        if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }\n        if (pbVar5 <= pbVar4) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar4;\n        iVar3 = param_1[1];\n      }\n      else {\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }\n    }" { (if_statement "if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\nLAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }" { (labeled_statement "LAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;" statement_identifier : (if_statement "if (param_2 == 0x7fffffff) goto LAB_0031ab14;" if (parenthesized_expression "(param_2 == 0x7fffffff)" ( (binary_expression "param_2 == 0x7fffffff" identifier == number_literal) )) (goto_statement "goto LAB_0031ab14;" goto statement_identifier ;))) (if_statement "if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }" if (parenthesized_expression "(cVar7 != '\0')" ( (binary_expression "cVar7 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          param_1[1] = 0x7fffffff;\n        }" { (expression_statement "param_1[1] = 0x7fffffff;" (assignment_expression "param_1[1] = 0x7fffffff" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) })) (goto_statement "goto LAB_0031ab24;" goto statement_identifier ;) })) (if_statement "if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar7 != '\0') goto LAB_0031abe8;\n        iVar3 = param_1[1];\n        goto LAB_0031ac10;\n      }" if (parenthesized_expression "(uVar1 == param_3)" ( (binary_expression "uVar1 == param_3" identifier == identifier) )) (compound_statement "{\n        if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar7 != '\0') goto LAB_0031abe8;\n        iVar3 = param_1[1];\n        goto LAB_0031ac10;\n      }" { (if_statement "if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }" if (parenthesized_expression "(param_2 == 0x7fffffff)" ( (binary_expression "param_2 == 0x7fffffff" identifier == number_literal) )) (compound_statement "{\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }" { (if_statement "if (cVar7 == '\0') goto LAB_0031ac1c;" if (parenthesized_expression "(cVar7 == '\0')" ( (binary_expression "cVar7 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0031ac1c;" goto statement_identifier ;)) (goto_statement "goto LAB_0031abe8;" goto statement_identifier ;) })) (if_statement "if (cVar7 != '\0') goto LAB_0031abe8;" if (parenthesized_expression "(cVar7 != '\0')" ( (binary_expression "cVar7 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0031abe8;" goto statement_identifier ;)) (expression_statement "iVar3 = param_1[1];" (assignment_expression "iVar3 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (goto_statement "goto LAB_0031ac10;" goto statement_identifier ;) })) (expression_statement "pbVar5 = (byte *)piVar6[3];" (assignment_expression "pbVar5 = (byte *)piVar6[3]" identifier = (cast_expression "(byte *)piVar6[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[3]" identifier [ number_literal ]))) ;) (expression_statement "pbVar4 = (byte *)piVar6[2];" (assignment_expression "pbVar4 = (byte *)piVar6[2]" identifier = (cast_expression "(byte *)piVar6[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[2]" identifier [ number_literal ]))) ;) (expression_statement "iVar2 = param_2 - iVar3;" (assignment_expression "iVar2 = param_2 - iVar3" identifier = (binary_expression "param_2 - iVar3" identifier - identifier)) ;) (if_statement "if ((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3) {\n        iVar2 = (int)pbVar5 - (int)pbVar4;\n      }" if (parenthesized_expression "((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3)" ( (binary_expression "(int)pbVar5 - (int)pbVar4 <= param_2 - iVar3" (binary_expression "(int)pbVar5 - (int)pbVar4" (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier)) <= (binary_expression "param_2 - iVar3" identifier - identifier)) )) (compound_statement "{\n        iVar2 = (int)pbVar5 - (int)pbVar4;\n      }" { (expression_statement "iVar2 = (int)pbVar5 - (int)pbVar4;" (assignment_expression "iVar2 = (int)pbVar5 - (int)pbVar4" identifier = (binary_expression "(int)pbVar5 - (int)pbVar4" (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (if_statement "if (iVar2 < 2) {\n        param_1[1] = iVar3 + 1;\n        if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }\n        if (pbVar5 <= pbVar4) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar4;\n        iVar3 = param_1[1];\n      }\n      else {\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }" if (parenthesized_expression "(iVar2 < 2)" ( (binary_expression "iVar2 < 2" identifier < number_literal) )) (compound_statement "{\n        param_1[1] = iVar3 + 1;\n        if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }\n        if (pbVar5 <= pbVar4) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar4;\n        iVar3 = param_1[1];\n      }" { (expression_statement "param_1[1] = iVar3 + 1;" (assignment_expression "param_1[1] = iVar3 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (if_statement "if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }" if (parenthesized_expression "(pbVar4 < pbVar5)" ( (binary_expression "pbVar4 < pbVar5" identifier < identifier) )) (compound_statement "{\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }" { (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "piVar6[2] = (int)pbVar4;" (assignment_expression "piVar6[2] = (int)pbVar4" (subscript_expression "piVar6[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }" else (compound_statement "{\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }" { (expression_statement "iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);" (assignment_expression "iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6)" identifier = (call_expression "(**(code **)(*piVar6 + 0x28))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x28))" ( (pointer_expression "**(code **)(*piVar6 + 0x28)" * (pointer_expression "*(code **)(*piVar6 + 0x28)" * (cast_expression "(code **)(*piVar6 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 0x28)" ( (binary_expression "*piVar6 + 0x28" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) )) (argument_list "(piVar6)" ( identifier )))) ;) (if_statement "if (iVar3 == -1) goto LAB_0031abb4;" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (goto_statement "goto LAB_0031abb4;" goto statement_identifier ;)) (expression_statement "pbVar4 = (byte *)piVar6[2];" (assignment_expression "pbVar4 = (byte *)piVar6[2]" identifier = (cast_expression "(byte *)piVar6[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar5 = (byte *)piVar6[3];" (assignment_expression "pbVar5 = (byte *)piVar6[3]" identifier = (cast_expression "(byte *)piVar6[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[3]" identifier [ number_literal ]))) ;) }))) (if_statement "if (pbVar5 <= pbVar4) goto LAB_0031ac70;" if (parenthesized_expression "(pbVar5 <= pbVar4)" ( (binary_expression "pbVar5 <= pbVar4" identifier <= identifier) )) (goto_statement "goto LAB_0031ac70;" goto statement_identifier ;)) (expression_statement "uVar1 = (uint)*pbVar4;" (assignment_expression "uVar1 = (uint)*pbVar4" identifier = (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "iVar3 = param_1[1];" (assignment_expression "iVar3 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }" else (compound_statement "{\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }" { (expression_statement "local_40 = pbVar4;" (assignment_expression "local_40 = pbVar4" identifier = identifier) ;) (expression_statement "local_3c = iVar2;" (assignment_expression "local_3c = iVar2" identifier = identifier) ;) (expression_statement "local_38 = pbVar5;" (assignment_expression "local_38 = pbVar5" identifier = identifier) ;) (expression_statement "local_34 = iVar3;" (assignment_expression "local_34 = iVar3" identifier = identifier) ;) (expression_statement "iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);" (assignment_expression "iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2)" identifier = (call_expression "(**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2)" (parenthesized_expression "(**(code **)(in_t9 + 0x11bd24))" ( (pointer_expression "**(code **)(in_t9 + 0x11bd24)" * (pointer_expression "*(code **)(in_t9 + 0x11bd24)" * (cast_expression "(code **)(in_t9 + 0x11bd24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x11bd24)" ( (binary_expression "in_t9 + 0x11bd24" identifier + number_literal) ))))) )) (argument_list "(pbVar4,local_30,iVar2)" ( identifier , identifier , identifier )))) ;) (expression_statement "iVar3 = local_3c;" (assignment_expression "iVar3 = local_3c" identifier = identifier) ;) (if_statement "if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n          iVar3 = iVar2 - (int)local_40;\n        }" { (expression_statement "iVar3 = iVar2 - (int)local_40;" (assignment_expression "iVar3 = iVar2 - (int)local_40" identifier = (binary_expression "iVar2 - (int)local_40" identifier - (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (expression_statement "pbVar4 = local_40 + iVar3;" (assignment_expression "pbVar4 = local_40 + iVar3" identifier = (binary_expression "local_40 + iVar3" identifier + identifier)) ;) (expression_statement "iVar3 = local_34 + iVar3;" (assignment_expression "iVar3 = local_34 + iVar3" identifier = (binary_expression "local_34 + iVar3" identifier + identifier)) ;) (expression_statement "piVar6[2] = (int)pbVar4;" (assignment_expression "piVar6[2] = (int)pbVar4" (subscript_expression "piVar6[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[1] = iVar3;" (assignment_expression "param_1[1] = iVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }" if (parenthesized_expression "(pbVar4 < local_38)" ( (binary_expression "pbVar4 < local_38" identifier < identifier) )) (compound_statement "{\n          uVar1 = (uint)*pbVar4;\n        }" { (expression_statement "uVar1 = (uint)*pbVar4;" (assignment_expression "uVar1 = (uint)*pbVar4" identifier = (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }) (else_clause "else {\nLAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }" else (compound_statement "{\nLAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }" { (labeled_statement "LAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);" statement_identifier : (expression_statement "uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);" (assignment_expression "uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6)" identifier = (call_expression "(**(code **)(*piVar6 + 0x24))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x24))" ( (pointer_expression "**(code **)(*piVar6 + 0x24)" * (pointer_expression "*(code **)(*piVar6 + 0x24)" * (cast_expression "(code **)(*piVar6 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 0x24)" ( (binary_expression "*piVar6 + 0x24" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) )) (argument_list "(piVar6)" ( identifier )))) ;)) (expression_statement "iVar3 = param_1[1];" (assignment_expression "iVar3 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }))) }))) })) (if_statement "if (param_2 != 0x7fffffff) {\n      if (cVar7 != '\0') goto LAB_0031abe8;\n      goto LAB_0031abf8;\n    }" if (parenthesized_expression "(param_2 != 0x7fffffff)" ( (binary_expression "param_2 != 0x7fffffff" identifier != number_literal) )) (compound_statement "{\n      if (cVar7 != '\0') goto LAB_0031abe8;\n      goto LAB_0031abf8;\n    }" { (if_statement "if (cVar7 != '\0') goto LAB_0031abe8;" if (parenthesized_expression "(cVar7 != '\0')" ( (binary_expression "cVar7 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0031abe8;" goto statement_identifier ;)) (goto_statement "goto LAB_0031abf8;" goto statement_identifier ;) })) (if_statement "if (uVar1 == 0xffffffff) {\nLAB_0031ab14:\n      if (cVar7 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_0031ab24;\n    }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\nLAB_0031ab14:\n      if (cVar7 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_0031ab24;\n    }" { (labeled_statement "LAB_0031ab14:\n      if (cVar7 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }" statement_identifier : (if_statement "if (cVar7 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }" if (parenthesized_expression "(cVar7 != '\0')" ( (binary_expression "cVar7 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        param_1[1] = 0x7fffffff;\n      }" { (expression_statement "param_1[1] = 0x7fffffff;" (assignment_expression "param_1[1] = 0x7fffffff" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) }))) (goto_statement "goto LAB_0031ab24;" goto statement_identifier ;) })) (if_statement "if (uVar1 == param_3) {\n      if (cVar7 != '\0') {\nLAB_0031abe8:\n        param_1[1] = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\n        iVar3 = param_1[1];\n      }\nLAB_0031ac10:\n      if (iVar3 != 0x7fffffff) {\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }\n      if ((uint)piVar6[2] < (uint)piVar6[3]) {\n        piVar6[2] = piVar6[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }\n      return param_1;\n    }" if (parenthesized_expression "(uVar1 == param_3)" ( (binary_expression "uVar1 == param_3" identifier == identifier) )) (compound_statement "{\n      if (cVar7 != '\0') {\nLAB_0031abe8:\n        param_1[1] = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\n        iVar3 = param_1[1];\n      }\nLAB_0031ac10:\n      if (iVar3 != 0x7fffffff) {\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }\n      if ((uint)piVar6[2] < (uint)piVar6[3]) {\n        piVar6[2] = piVar6[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }\n      return param_1;\n    }" { (if_statement "if (cVar7 != '\0') {\nLAB_0031abe8:\n        param_1[1] = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\n        iVar3 = param_1[1];\n      }" if (parenthesized_expression "(cVar7 != '\0')" ( (binary_expression "cVar7 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_0031abe8:\n        param_1[1] = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\n        iVar3 = param_1[1];\n      }" { (labeled_statement "LAB_0031abe8:\n        param_1[1] = 0x7fffffff;" statement_identifier : (expression_statement "param_1[1] = 0x7fffffff;" (assignment_expression "param_1[1] = 0x7fffffff" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;)) (labeled_statement "LAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }" statement_identifier : (if_statement "if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }" { (labeled_statement "LAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);" statement_identifier : (expression_statement "iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);" (assignment_expression "iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc)" identifier = (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))))) ;)) (expression_statement "(**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);" (call_expression "(**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2)" (parenthesized_expression "(**(code **)(in_t9 + 0x1186c8))" ( (pointer_expression "**(code **)(in_t9 + 0x1186c8)" * (pointer_expression "*(code **)(in_t9 + 0x1186c8)" * (cast_expression "(code **)(in_t9 + 0x1186c8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x1186c8)" ( (binary_expression "in_t9 + 0x1186c8" identifier + number_literal) ))))) )) (argument_list "(iVar3,*(uint *)(iVar3 + 0x14) | 2)" ( identifier , (binary_expression "*(uint *)(iVar3 + 0x14) | 2" (pointer_expression "*(uint *)(iVar3 + 0x14)" * (cast_expression "(uint *)(iVar3 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return param_1;" return identifier ;) }))) (if_statement "if (param_3 != uVar1) {\n          return param_1;\n        }" if (parenthesized_expression "(param_3 != uVar1)" ( (binary_expression "param_3 != uVar1" identifier != identifier) )) (compound_statement "{\n          return param_1;\n        }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar3 = param_1[1];" (assignment_expression "iVar3 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) })) (labeled_statement "LAB_0031ac10:\n      if (iVar3 != 0x7fffffff) {\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }" statement_identifier : (if_statement "if (iVar3 != 0x7fffffff) {\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }" if (parenthesized_expression "(iVar3 != 0x7fffffff)" ( (binary_expression "iVar3 != 0x7fffffff" identifier != number_literal) )) (compound_statement "{\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }" { (labeled_statement "LAB_0031ac1c:\n        param_1[1] = iVar3 + 1;" statement_identifier : (expression_statement "param_1[1] = iVar3 + 1;" (assignment_expression "param_1[1] = iVar3 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar3 + 1" identifier + number_literal)) ;)) }))) (if_statement "if ((uint)piVar6[2] < (uint)piVar6[3]) {\n        piVar6[2] = piVar6[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }" if (parenthesized_expression "((uint)piVar6[2] < (uint)piVar6[3])" ( (binary_expression "(uint)piVar6[2] < (uint)piVar6[3]" (cast_expression "(uint)piVar6[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar6[2]" identifier [ number_literal ])) < (cast_expression "(uint)piVar6[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar6[3]" identifier [ number_literal ]))) )) (compound_statement "{\n        piVar6[2] = piVar6[2] + 1;\n      }" { (expression_statement "piVar6[2] = piVar6[2] + 1;" (assignment_expression "piVar6[2] = piVar6[2] + 1" (subscript_expression "piVar6[2]" identifier [ number_literal ]) = (binary_expression "piVar6[2] + 1" (subscript_expression "piVar6[2]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else {\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }" else (compound_statement "{\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }" { (expression_statement "(**(code **)(*piVar6 + 0x28))(piVar6);" (call_expression "(**(code **)(*piVar6 + 0x28))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x28))" ( (pointer_expression "**(code **)(*piVar6 + 0x28)" * (pointer_expression "*(code **)(*piVar6 + 0x28)" * (cast_expression "(code **)(*piVar6 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 0x28)" ( (binary_expression "*piVar6 + 0x28" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) )) (argument_list "(piVar6)" ( identifier ))) ;) }))) (return_statement "return param_1;" return identifier ;) })) (expression_statement "param_1[1] = -0x80000000;" (assignment_expression "param_1[1] = -0x80000000" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar3 = -0x80000000;" (assignment_expression "iVar3 = -0x80000000" identifier = number_literal) ;) (expression_statement "cVar7 = local_48[0];" (assignment_expression "cVar7 = local_48[0]" identifier = (subscript_expression "local_48[0]" identifier [ number_literal ])) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(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) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ 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 (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) }))) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) <= (binary_expression IDENT - IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }) (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 (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (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 (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) }))) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }))) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_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 , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT) ))) ;) (return_statement return IDENT ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;)) }))) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + 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 (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT ))) ;) }))) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "int * FUN_0031a984(int *param_1,int param_2,uint param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  int *piVar6;\n  char cVar7;\n  int in_t9;\n  code *pcVar8;\n  char local_48 [8];\n  byte *local_40;\n  int local_3c;\n  byte *local_38;\n  int local_34;\n  int local_30;\n  \n  if (param_3 == 0xffffffff) {\n    piVar6 = (int *)(**(code **)(in_t9 + 0x11b9f8))();\n    return piVar6;\n  }\n  pcVar8 = *(code **)(in_t9 + 0x11b3f4);\n  param_1[1] = 0;\n  (*pcVar8)(local_48,param_1,1);\n  if (param_2 < 1) {\n    return param_1;\n  }\n  if (local_48[0] == '\0') {\n    return param_1;\n  }\n  local_30 = (int)(char)param_3;\n  piVar6 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar6[2] < (byte *)piVar6[3]) {\n    uVar1 = (uint)*(byte *)piVar6[2];\n  }\n  else {\n    uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n  }\n  iVar3 = param_1[1];\n  cVar7 = '\0';\n  do {\n    while (iVar3 < param_2) {\n      if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar7 != '\0') goto LAB_0031abe8;\n        iVar3 = param_1[1];\n        goto LAB_0031ac10;\n      }\n      pbVar5 = (byte *)piVar6[3];\n      pbVar4 = (byte *)piVar6[2];\n      iVar2 = param_2 - iVar3;\n      if ((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3) {\n        iVar2 = (int)pbVar5 - (int)pbVar4;\n      }\n      if (iVar2 < 2) {\n        param_1[1] = iVar3 + 1;\n        if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }\n        if (pbVar5 <= pbVar4) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar4;\n        iVar3 = param_1[1];\n      }\n      else {\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (cVar7 != '\0') goto LAB_0031abe8;\n      goto LAB_0031abf8;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_0031ab14:\n      if (cVar7 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_0031ab24;\n    }\n    if (uVar1 == param_3) {\n      if (cVar7 != '\0') {\nLAB_0031abe8:\n        param_1[1] = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\n        iVar3 = param_1[1];\n      }\nLAB_0031ac10:\n      if (iVar3 != 0x7fffffff) {\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }\n      if ((uint)piVar6[2] < (uint)piVar6[3]) {\n        piVar6[2] = piVar6[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }\n      return param_1;\n    }\n    param_1[1] = -0x80000000;\n    iVar3 = -0x80000000;\n    cVar7 = local_48[0];\n  } while( true );\n}" (primitive_type "int") (pointer_declarator "* FUN_0031a984(int *param_1,int param_2,uint param_3)" (* "*") (function_declarator "FUN_0031a984(int *param_1,int param_2,uint param_3)" (identifier "FUN_0031a984") (parameter_list "(int *param_1,int param_2,uint param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")")))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  int *piVar6;\n  char cVar7;\n  int in_t9;\n  code *pcVar8;\n  char local_48 [8];\n  byte *local_40;\n  int local_3c;\n  byte *local_38;\n  int local_34;\n  int local_30;\n  \n  if (param_3 == 0xffffffff) {\n    piVar6 = (int *)(**(code **)(in_t9 + 0x11b9f8))();\n    return piVar6;\n  }\n  pcVar8 = *(code **)(in_t9 + 0x11b3f4);\n  param_1[1] = 0;\n  (*pcVar8)(local_48,param_1,1);\n  if (param_2 < 1) {\n    return param_1;\n  }\n  if (local_48[0] == '\0') {\n    return param_1;\n  }\n  local_30 = (int)(char)param_3;\n  piVar6 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar6[2] < (byte *)piVar6[3]) {\n    uVar1 = (uint)*(byte *)piVar6[2];\n  }\n  else {\n    uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n  }\n  iVar3 = param_1[1];\n  cVar7 = '\0';\n  do {\n    while (iVar3 < param_2) {\n      if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar7 != '\0') goto LAB_0031abe8;\n        iVar3 = param_1[1];\n        goto LAB_0031ac10;\n      }\n      pbVar5 = (byte *)piVar6[3];\n      pbVar4 = (byte *)piVar6[2];\n      iVar2 = param_2 - iVar3;\n      if ((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3) {\n        iVar2 = (int)pbVar5 - (int)pbVar4;\n      }\n      if (iVar2 < 2) {\n        param_1[1] = iVar3 + 1;\n        if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }\n        if (pbVar5 <= pbVar4) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar4;\n        iVar3 = param_1[1];\n      }\n      else {\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (cVar7 != '\0') goto LAB_0031abe8;\n      goto LAB_0031abf8;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_0031ab14:\n      if (cVar7 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_0031ab24;\n    }\n    if (uVar1 == param_3) {\n      if (cVar7 != '\0') {\nLAB_0031abe8:\n        param_1[1] = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\n        iVar3 = param_1[1];\n      }\nLAB_0031ac10:\n      if (iVar3 != 0x7fffffff) {\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }\n      if ((uint)piVar6[2] < (uint)piVar6[3]) {\n        piVar6[2] = piVar6[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }\n      return param_1;\n    }\n    param_1[1] = -0x80000000;\n    iVar3 = -0x80000000;\n    cVar7 = local_48[0];\n  } while( true );\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "char cVar7;" (primitive_type "char") (identifier "cVar7") (; ";")) (declaration "int in_t9;" (primitive_type "int") (identifier "in_t9") (; ";")) (declaration "code *pcVar8;" (type_identifier "code") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (declaration "char local_48 [8];" (primitive_type "char") (array_declarator "local_48 [8]" (identifier "local_48") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "byte *local_40;" (type_identifier "byte") (pointer_declarator "*local_40" (* "*") (identifier "local_40")) (; ";")) (declaration "int local_3c;" (primitive_type "int") (identifier "local_3c") (; ";")) (declaration "byte *local_38;" (type_identifier "byte") (pointer_declarator "*local_38" (* "*") (identifier "local_38")) (; ";")) (declaration "int local_34;" (primitive_type "int") (identifier "local_34") (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (if_statement "if (param_3 == 0xffffffff) {\n    piVar6 = (int *)(**(code **)(in_t9 + 0x11b9f8))();\n    return piVar6;\n  }" (if "if") (parenthesized_expression "(param_3 == 0xffffffff)" (( "(") (binary_expression "param_3 == 0xffffffff" (identifier "param_3") (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\n    piVar6 = (int *)(**(code **)(in_t9 + 0x11b9f8))();\n    return piVar6;\n  }" ({ "{") (expression_statement "piVar6 = (int *)(**(code **)(in_t9 + 0x11b9f8))();" (assignment_expression "piVar6 = (int *)(**(code **)(in_t9 + 0x11b9f8))()" (identifier "piVar6") (= "=") (cast_expression "(int *)(**(code **)(in_t9 + 0x11b9f8))()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(in_t9 + 0x11b9f8))()" (parenthesized_expression "(**(code **)(in_t9 + 0x11b9f8))" (( "(") (pointer_expression "**(code **)(in_t9 + 0x11b9f8)" (* "*") (pointer_expression "*(code **)(in_t9 + 0x11b9f8)" (* "*") (cast_expression "(code **)(in_t9 + 0x11b9f8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(in_t9 + 0x11b9f8)" (( "(") (binary_expression "in_t9 + 0x11b9f8" (identifier "in_t9") (+ "+") (number_literal "0x11b9f8")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (return_statement "return piVar6;" (return "return") (identifier "piVar6") (; ";")) (} "}"))) (expression_statement "pcVar8 = *(code **)(in_t9 + 0x11b3f4);" (assignment_expression "pcVar8 = *(code **)(in_t9 + 0x11b3f4)" (identifier "pcVar8") (= "=") (pointer_expression "*(code **)(in_t9 + 0x11b3f4)" (* "*") (cast_expression "(code **)(in_t9 + 0x11b3f4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(in_t9 + 0x11b3f4)" (( "(") (binary_expression "in_t9 + 0x11b3f4" (identifier "in_t9") (+ "+") (number_literal "0x11b3f4")) () ")"))))) (; ";")) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "(*pcVar8)(local_48,param_1,1);" (call_expression "(*pcVar8)(local_48,param_1,1)" (parenthesized_expression "(*pcVar8)" (( "(") (pointer_expression "*pcVar8" (* "*") (identifier "pcVar8")) () ")")) (argument_list "(local_48,param_1,1)" (( "(") (identifier "local_48") (, ",") (identifier "param_1") (, ",") (number_literal "1") () ")"))) (; ";")) (if_statement "if (param_2 < 1) {\n    return param_1;\n  }" (if "if") (parenthesized_expression "(param_2 < 1)" (( "(") (binary_expression "param_2 < 1" (identifier "param_2") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    return param_1;\n  }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (if_statement "if (local_48[0] == '\0') {\n    return param_1;\n  }" (if "if") (parenthesized_expression "(local_48[0] == '\0')" (( "(") (binary_expression "local_48[0] == '\0'" (subscript_expression "local_48[0]" (identifier "local_48") ([ "[") (number_literal "0") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    return param_1;\n  }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "local_30 = (int)(char)param_3;" (assignment_expression "local_30 = (int)(char)param_3" (identifier "local_30") (= "=") (cast_expression "(int)(char)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (cast_expression "(char)param_3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_3")))) (; ";")) (expression_statement "piVar6 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);" (assignment_expression "piVar6 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" (identifier "piVar6") (= "=") (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" (* "*") (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" (( "(") (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x78" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")"))))) (+ "+") (number_literal "0x78")) () ")"))))) (; ";")) (if_statement "if ((byte *)piVar6[2] < (byte *)piVar6[3]) {\n    uVar1 = (uint)*(byte *)piVar6[2];\n  }\n  else {\n    uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n  }" (if "if") (parenthesized_expression "((byte *)piVar6[2] < (byte *)piVar6[3])" (( "(") (binary_expression "(byte *)piVar6[2] < (byte *)piVar6[3]" (cast_expression "(byte *)piVar6[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar6[2]" (identifier "piVar6") ([ "[") (number_literal "2") (] "]"))) (< "<") (cast_expression "(byte *)piVar6[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar6[3]" (identifier "piVar6") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n    uVar1 = (uint)*(byte *)piVar6[2];\n  }" ({ "{") (expression_statement "uVar1 = (uint)*(byte *)piVar6[2];" (assignment_expression "uVar1 = (uint)*(byte *)piVar6[2]" (identifier "uVar1") (= "=") (binary_expression "(uint)*(byte *)piVar6[2]" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)piVar6[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar6[2]" (identifier "piVar6") ([ "[") (number_literal "2") (] "]"))))) (; ";")) (} "}")) (else_clause "else {\n    uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n  }" (else "else") (compound_statement "{\n    uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n  }" ({ "{") (expression_statement "uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);" (assignment_expression "uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6)" (identifier "uVar1") (= "=") (call_expression "(**(code **)(*piVar6 + 0x24))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x24))" (( "(") (pointer_expression "**(code **)(*piVar6 + 0x24)" (* "*") (pointer_expression "*(code **)(*piVar6 + 0x24)" (* "*") (cast_expression "(code **)(*piVar6 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar6 + 0x24)" (( "(") (binary_expression "*piVar6 + 0x24" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(piVar6)" (( "(") (identifier "piVar6") () ")")))) (; ";")) (} "}")))) (expression_statement "iVar3 = param_1[1];" (assignment_expression "iVar3 = param_1[1]" (identifier "iVar3") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "cVar7 = '\0';" (assignment_expression "cVar7 = '\0'" (identifier "cVar7") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (do_statement "do {\n    while (iVar3 < param_2) {\n      if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar7 != '\0') goto LAB_0031abe8;\n        iVar3 = param_1[1];\n        goto LAB_0031ac10;\n      }\n      pbVar5 = (byte *)piVar6[3];\n      pbVar4 = (byte *)piVar6[2];\n      iVar2 = param_2 - iVar3;\n      if ((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3) {\n        iVar2 = (int)pbVar5 - (int)pbVar4;\n      }\n      if (iVar2 < 2) {\n        param_1[1] = iVar3 + 1;\n        if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }\n        if (pbVar5 <= pbVar4) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar4;\n        iVar3 = param_1[1];\n      }\n      else {\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (cVar7 != '\0') goto LAB_0031abe8;\n      goto LAB_0031abf8;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_0031ab14:\n      if (cVar7 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_0031ab24;\n    }\n    if (uVar1 == param_3) {\n      if (cVar7 != '\0') {\nLAB_0031abe8:\n        param_1[1] = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\n        iVar3 = param_1[1];\n      }\nLAB_0031ac10:\n      if (iVar3 != 0x7fffffff) {\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }\n      if ((uint)piVar6[2] < (uint)piVar6[3]) {\n        piVar6[2] = piVar6[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }\n      return param_1;\n    }\n    param_1[1] = -0x80000000;\n    iVar3 = -0x80000000;\n    cVar7 = local_48[0];\n  } while( true );" (do "do") (compound_statement "{\n    while (iVar3 < param_2) {\n      if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar7 != '\0') goto LAB_0031abe8;\n        iVar3 = param_1[1];\n        goto LAB_0031ac10;\n      }\n      pbVar5 = (byte *)piVar6[3];\n      pbVar4 = (byte *)piVar6[2];\n      iVar2 = param_2 - iVar3;\n      if ((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3) {\n        iVar2 = (int)pbVar5 - (int)pbVar4;\n      }\n      if (iVar2 < 2) {\n        param_1[1] = iVar3 + 1;\n        if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }\n        if (pbVar5 <= pbVar4) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar4;\n        iVar3 = param_1[1];\n      }\n      else {\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (cVar7 != '\0') goto LAB_0031abe8;\n      goto LAB_0031abf8;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_0031ab14:\n      if (cVar7 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_0031ab24;\n    }\n    if (uVar1 == param_3) {\n      if (cVar7 != '\0') {\nLAB_0031abe8:\n        param_1[1] = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\n        iVar3 = param_1[1];\n      }\nLAB_0031ac10:\n      if (iVar3 != 0x7fffffff) {\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }\n      if ((uint)piVar6[2] < (uint)piVar6[3]) {\n        piVar6[2] = piVar6[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }\n      return param_1;\n    }\n    param_1[1] = -0x80000000;\n    iVar3 = -0x80000000;\n    cVar7 = local_48[0];\n  }" ({ "{") (while_statement "while (iVar3 < param_2) {\n      if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar7 != '\0') goto LAB_0031abe8;\n        iVar3 = param_1[1];\n        goto LAB_0031ac10;\n      }\n      pbVar5 = (byte *)piVar6[3];\n      pbVar4 = (byte *)piVar6[2];\n      iVar2 = param_2 - iVar3;\n      if ((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3) {\n        iVar2 = (int)pbVar5 - (int)pbVar4;\n      }\n      if (iVar2 < 2) {\n        param_1[1] = iVar3 + 1;\n        if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }\n        if (pbVar5 <= pbVar4) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar4;\n        iVar3 = param_1[1];\n      }\n      else {\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }\n    }" (while "while") (parenthesized_expression "(iVar3 < param_2)" (( "(") (binary_expression "iVar3 < param_2" (identifier "iVar3") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n      if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar7 != '\0') goto LAB_0031abe8;\n        iVar3 = param_1[1];\n        goto LAB_0031ac10;\n      }\n      pbVar5 = (byte *)piVar6[3];\n      pbVar4 = (byte *)piVar6[2];\n      iVar2 = param_2 - iVar3;\n      if ((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3) {\n        iVar2 = (int)pbVar5 - (int)pbVar4;\n      }\n      if (iVar2 < 2) {\n        param_1[1] = iVar3 + 1;\n        if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }\n        if (pbVar5 <= pbVar4) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar4;\n        iVar3 = param_1[1];\n      }\n      else {\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }\n    }" ({ "{") (if_statement "if (uVar1 == 0xffffffff) {\nLAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }" (if "if") (parenthesized_expression "(uVar1 == 0xffffffff)" (( "(") (binary_expression "uVar1 == 0xffffffff" (identifier "uVar1") (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\nLAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;\n        if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }\n        goto LAB_0031ab24;\n      }" ({ "{") (labeled_statement "LAB_0031abb4:\n        if (param_2 == 0x7fffffff) goto LAB_0031ab14;" (statement_identifier "LAB_0031abb4") (: ":") (if_statement "if (param_2 == 0x7fffffff) goto LAB_0031ab14;" (if "if") (parenthesized_expression "(param_2 == 0x7fffffff)" (( "(") (binary_expression "param_2 == 0x7fffffff" (identifier "param_2") (== "==") (number_literal "0x7fffffff")) () ")")) (goto_statement "goto LAB_0031ab14;" (goto "goto") (statement_identifier "LAB_0031ab14") (; ";")))) (if_statement "if (cVar7 != '\0') {\n          param_1[1] = 0x7fffffff;\n        }" (if "if") (parenthesized_expression "(cVar7 != '\0')" (( "(") (binary_expression "cVar7 != '\0'" (identifier "cVar7") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          param_1[1] = 0x7fffffff;\n        }" ({ "{") (expression_statement "param_1[1] = 0x7fffffff;" (assignment_expression "param_1[1] = 0x7fffffff" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x7fffffff")) (; ";")) (} "}"))) (goto_statement "goto LAB_0031ab24;" (goto "goto") (statement_identifier "LAB_0031ab24") (; ";")) (} "}"))) (if_statement "if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar7 != '\0') goto LAB_0031abe8;\n        iVar3 = param_1[1];\n        goto LAB_0031ac10;\n      }" (if "if") (parenthesized_expression "(uVar1 == param_3)" (( "(") (binary_expression "uVar1 == param_3" (identifier "uVar1") (== "==") (identifier "param_3")) () ")")) (compound_statement "{\n        if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }\n        if (cVar7 != '\0') goto LAB_0031abe8;\n        iVar3 = param_1[1];\n        goto LAB_0031ac10;\n      }" ({ "{") (if_statement "if (param_2 == 0x7fffffff) {\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }" (if "if") (parenthesized_expression "(param_2 == 0x7fffffff)" (( "(") (binary_expression "param_2 == 0x7fffffff" (identifier "param_2") (== "==") (number_literal "0x7fffffff")) () ")")) (compound_statement "{\n          if (cVar7 == '\0') goto LAB_0031ac1c;\n          goto LAB_0031abe8;\n        }" ({ "{") (if_statement "if (cVar7 == '\0') goto LAB_0031ac1c;" (if "if") (parenthesized_expression "(cVar7 == '\0')" (( "(") (binary_expression "cVar7 == '\0'" (identifier "cVar7") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_0031ac1c;" (goto "goto") (statement_identifier "LAB_0031ac1c") (; ";"))) (goto_statement "goto LAB_0031abe8;" (goto "goto") (statement_identifier "LAB_0031abe8") (; ";")) (} "}"))) (if_statement "if (cVar7 != '\0') goto LAB_0031abe8;" (if "if") (parenthesized_expression "(cVar7 != '\0')" (( "(") (binary_expression "cVar7 != '\0'" (identifier "cVar7") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_0031abe8;" (goto "goto") (statement_identifier "LAB_0031abe8") (; ";"))) (expression_statement "iVar3 = param_1[1];" (assignment_expression "iVar3 = param_1[1]" (identifier "iVar3") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (goto_statement "goto LAB_0031ac10;" (goto "goto") (statement_identifier "LAB_0031ac10") (; ";")) (} "}"))) (expression_statement "pbVar5 = (byte *)piVar6[3];" (assignment_expression "pbVar5 = (byte *)piVar6[3]" (identifier "pbVar5") (= "=") (cast_expression "(byte *)piVar6[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar6[3]" (identifier "piVar6") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "pbVar4 = (byte *)piVar6[2];" (assignment_expression "pbVar4 = (byte *)piVar6[2]" (identifier "pbVar4") (= "=") (cast_expression "(byte *)piVar6[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar6[2]" (identifier "piVar6") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "iVar2 = param_2 - iVar3;" (assignment_expression "iVar2 = param_2 - iVar3" (identifier "iVar2") (= "=") (binary_expression "param_2 - iVar3" (identifier "param_2") (- "-") (identifier "iVar3"))) (; ";")) (if_statement "if ((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3) {\n        iVar2 = (int)pbVar5 - (int)pbVar4;\n      }" (if "if") (parenthesized_expression "((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3)" (( "(") (binary_expression "(int)pbVar5 - (int)pbVar4 <= param_2 - iVar3" (binary_expression "(int)pbVar5 - (int)pbVar4" (cast_expression "(int)pbVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar5")) (- "-") (cast_expression "(int)pbVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar4"))) (<= "<=") (binary_expression "param_2 - iVar3" (identifier "param_2") (- "-") (identifier "iVar3"))) () ")")) (compound_statement "{\n        iVar2 = (int)pbVar5 - (int)pbVar4;\n      }" ({ "{") (expression_statement "iVar2 = (int)pbVar5 - (int)pbVar4;" (assignment_expression "iVar2 = (int)pbVar5 - (int)pbVar4" (identifier "iVar2") (= "=") (binary_expression "(int)pbVar5 - (int)pbVar4" (cast_expression "(int)pbVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar5")) (- "-") (cast_expression "(int)pbVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar4")))) (; ";")) (} "}"))) (if_statement "if (iVar2 < 2) {\n        param_1[1] = iVar3 + 1;\n        if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }\n        if (pbVar5 <= pbVar4) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar4;\n        iVar3 = param_1[1];\n      }\n      else {\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }" (if "if") (parenthesized_expression "(iVar2 < 2)" (( "(") (binary_expression "iVar2 < 2" (identifier "iVar2") (< "<") (number_literal "2")) () ")")) (compound_statement "{\n        param_1[1] = iVar3 + 1;\n        if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }\n        if (pbVar5 <= pbVar4) goto LAB_0031ac70;\n        uVar1 = (uint)*pbVar4;\n        iVar3 = param_1[1];\n      }" ({ "{") (expression_statement "param_1[1] = iVar3 + 1;" (assignment_expression "param_1[1] = iVar3 + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (pbVar4 < pbVar5) {\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }\n        else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }" (if "if") (parenthesized_expression "(pbVar4 < pbVar5)" (( "(") (binary_expression "pbVar4 < pbVar5" (identifier "pbVar4") (< "<") (identifier "pbVar5")) () ")")) (compound_statement "{\n          pbVar4 = pbVar4 + 1;\n          piVar6[2] = (int)pbVar4;\n        }" ({ "{") (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" (identifier "pbVar4") (= "=") (binary_expression "pbVar4 + 1" (identifier "pbVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar6[2] = (int)pbVar4;" (assignment_expression "piVar6[2] = (int)pbVar4" (subscript_expression "piVar6[2]" (identifier "piVar6") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)pbVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar4"))) (; ";")) (} "}")) (else_clause "else {\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }" (else "else") (compound_statement "{\n          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);\n          if (iVar3 == -1) goto LAB_0031abb4;\n          pbVar4 = (byte *)piVar6[2];\n          pbVar5 = (byte *)piVar6[3];\n        }" ({ "{") (expression_statement "iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);" (assignment_expression "iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6)" (identifier "iVar3") (= "=") (call_expression "(**(code **)(*piVar6 + 0x28))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x28))" (( "(") (pointer_expression "**(code **)(*piVar6 + 0x28)" (* "*") (pointer_expression "*(code **)(*piVar6 + 0x28)" (* "*") (cast_expression "(code **)(*piVar6 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar6 + 0x28)" (( "(") (binary_expression "*piVar6 + 0x28" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "(piVar6)" (( "(") (identifier "piVar6") () ")")))) (; ";")) (if_statement "if (iVar3 == -1) goto LAB_0031abb4;" (if "if") (parenthesized_expression "(iVar3 == -1)" (( "(") (binary_expression "iVar3 == -1" (identifier "iVar3") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_0031abb4;" (goto "goto") (statement_identifier "LAB_0031abb4") (; ";"))) (expression_statement "pbVar4 = (byte *)piVar6[2];" (assignment_expression "pbVar4 = (byte *)piVar6[2]" (identifier "pbVar4") (= "=") (cast_expression "(byte *)piVar6[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar6[2]" (identifier "piVar6") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "pbVar5 = (byte *)piVar6[3];" (assignment_expression "pbVar5 = (byte *)piVar6[3]" (identifier "pbVar5") (= "=") (cast_expression "(byte *)piVar6[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar6[3]" (identifier "piVar6") ([ "[") (number_literal "3") (] "]")))) (; ";")) (} "}")))) (if_statement "if (pbVar5 <= pbVar4) goto LAB_0031ac70;" (if "if") (parenthesized_expression "(pbVar5 <= pbVar4)" (( "(") (binary_expression "pbVar5 <= pbVar4" (identifier "pbVar5") (<= "<=") (identifier "pbVar4")) () ")")) (goto_statement "goto LAB_0031ac70;" (goto "goto") (statement_identifier "LAB_0031ac70") (; ";"))) (expression_statement "uVar1 = (uint)*pbVar4;" (assignment_expression "uVar1 = (uint)*pbVar4" (identifier "uVar1") (= "=") (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar4"))) (; ";")) (expression_statement "iVar3 = param_1[1];" (assignment_expression "iVar3 = param_1[1]" (identifier "iVar3") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }" (else "else") (compound_statement "{\n        local_40 = pbVar4;\n        local_3c = iVar2;\n        local_38 = pbVar5;\n        local_34 = iVar3;\n        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);\n        iVar3 = local_3c;\n        if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }\n        pbVar4 = local_40 + iVar3;\n        iVar3 = local_34 + iVar3;\n        piVar6[2] = (int)pbVar4;\n        param_1[1] = iVar3;\n        if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }\n      }" ({ "{") (expression_statement "local_40 = pbVar4;" (assignment_expression "local_40 = pbVar4" (identifier "local_40") (= "=") (identifier "pbVar4")) (; ";")) (expression_statement "local_3c = iVar2;" (assignment_expression "local_3c = iVar2" (identifier "local_3c") (= "=") (identifier "iVar2")) (; ";")) (expression_statement "local_38 = pbVar5;" (assignment_expression "local_38 = pbVar5" (identifier "local_38") (= "=") (identifier "pbVar5")) (; ";")) (expression_statement "local_34 = iVar3;" (assignment_expression "local_34 = iVar3" (identifier "local_34") (= "=") (identifier "iVar3")) (; ";")) (expression_statement "iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);" (assignment_expression "iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2)" (parenthesized_expression "(**(code **)(in_t9 + 0x11bd24))" (( "(") (pointer_expression "**(code **)(in_t9 + 0x11bd24)" (* "*") (pointer_expression "*(code **)(in_t9 + 0x11bd24)" (* "*") (cast_expression "(code **)(in_t9 + 0x11bd24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(in_t9 + 0x11bd24)" (( "(") (binary_expression "in_t9 + 0x11bd24" (identifier "in_t9") (+ "+") (number_literal "0x11bd24")) () ")"))))) () ")")) (argument_list "(pbVar4,local_30,iVar2)" (( "(") (identifier "pbVar4") (, ",") (identifier "local_30") (, ",") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "iVar3 = local_3c;" (assignment_expression "iVar3 = local_3c" (identifier "iVar3") (= "=") (identifier "local_3c")) (; ";")) (if_statement "if (iVar2 != 0) {\n          iVar3 = iVar2 - (int)local_40;\n        }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          iVar3 = iVar2 - (int)local_40;\n        }" ({ "{") (expression_statement "iVar3 = iVar2 - (int)local_40;" (assignment_expression "iVar3 = iVar2 - (int)local_40" (identifier "iVar3") (= "=") (binary_expression "iVar2 - (int)local_40" (identifier "iVar2") (- "-") (cast_expression "(int)local_40" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_40")))) (; ";")) (} "}"))) (expression_statement "pbVar4 = local_40 + iVar3;" (assignment_expression "pbVar4 = local_40 + iVar3" (identifier "pbVar4") (= "=") (binary_expression "local_40 + iVar3" (identifier "local_40") (+ "+") (identifier "iVar3"))) (; ";")) (expression_statement "iVar3 = local_34 + iVar3;" (assignment_expression "iVar3 = local_34 + iVar3" (identifier "iVar3") (= "=") (binary_expression "local_34 + iVar3" (identifier "local_34") (+ "+") (identifier "iVar3"))) (; ";")) (expression_statement "piVar6[2] = (int)pbVar4;" (assignment_expression "piVar6[2] = (int)pbVar4" (subscript_expression "piVar6[2]" (identifier "piVar6") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)pbVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar4"))) (; ";")) (expression_statement "param_1[1] = iVar3;" (assignment_expression "param_1[1] = iVar3" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (pbVar4 < local_38) {\n          uVar1 = (uint)*pbVar4;\n        }\n        else {\nLAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }" (if "if") (parenthesized_expression "(pbVar4 < local_38)" (( "(") (binary_expression "pbVar4 < local_38" (identifier "pbVar4") (< "<") (identifier "local_38")) () ")")) (compound_statement "{\n          uVar1 = (uint)*pbVar4;\n        }" ({ "{") (expression_statement "uVar1 = (uint)*pbVar4;" (assignment_expression "uVar1 = (uint)*pbVar4" (identifier "uVar1") (= "=") (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar4"))) (; ";")) (} "}")) (else_clause "else {\nLAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }" (else "else") (compound_statement "{\nLAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);\n          iVar3 = param_1[1];\n        }" ({ "{") (labeled_statement "LAB_0031ac70:\n                    \n          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);" (statement_identifier "LAB_0031ac70") (: ":") (expression_statement "uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);" (assignment_expression "uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6)" (identifier "uVar1") (= "=") (call_expression "(**(code **)(*piVar6 + 0x24))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x24))" (( "(") (pointer_expression "**(code **)(*piVar6 + 0x24)" (* "*") (pointer_expression "*(code **)(*piVar6 + 0x24)" (* "*") (cast_expression "(code **)(*piVar6 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar6 + 0x24)" (( "(") (binary_expression "*piVar6 + 0x24" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(piVar6)" (( "(") (identifier "piVar6") () ")")))) (; ";"))) (expression_statement "iVar3 = param_1[1];" (assignment_expression "iVar3 = param_1[1]" (identifier "iVar3") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")))) (} "}")))) (} "}"))) (if_statement "if (param_2 != 0x7fffffff) {\n      if (cVar7 != '\0') goto LAB_0031abe8;\n      goto LAB_0031abf8;\n    }" (if "if") (parenthesized_expression "(param_2 != 0x7fffffff)" (( "(") (binary_expression "param_2 != 0x7fffffff" (identifier "param_2") (!= "!=") (number_literal "0x7fffffff")) () ")")) (compound_statement "{\n      if (cVar7 != '\0') goto LAB_0031abe8;\n      goto LAB_0031abf8;\n    }" ({ "{") (if_statement "if (cVar7 != '\0') goto LAB_0031abe8;" (if "if") (parenthesized_expression "(cVar7 != '\0')" (( "(") (binary_expression "cVar7 != '\0'" (identifier "cVar7") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_0031abe8;" (goto "goto") (statement_identifier "LAB_0031abe8") (; ";"))) (goto_statement "goto LAB_0031abf8;" (goto "goto") (statement_identifier "LAB_0031abf8") (; ";")) (} "}"))) (if_statement "if (uVar1 == 0xffffffff) {\nLAB_0031ab14:\n      if (cVar7 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_0031ab24;\n    }" (if "if") (parenthesized_expression "(uVar1 == 0xffffffff)" (( "(") (binary_expression "uVar1 == 0xffffffff" (identifier "uVar1") (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\nLAB_0031ab14:\n      if (cVar7 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_0031ab24;\n    }" ({ "{") (labeled_statement "LAB_0031ab14:\n      if (cVar7 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }" (statement_identifier "LAB_0031ab14") (: ":") (if_statement "if (cVar7 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }" (if "if") (parenthesized_expression "(cVar7 != '\0')" (( "(") (binary_expression "cVar7 != '\0'" (identifier "cVar7") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        param_1[1] = 0x7fffffff;\n      }" ({ "{") (expression_statement "param_1[1] = 0x7fffffff;" (assignment_expression "param_1[1] = 0x7fffffff" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x7fffffff")) (; ";")) (} "}")))) (goto_statement "goto LAB_0031ab24;" (goto "goto") (statement_identifier "LAB_0031ab24") (; ";")) (} "}"))) (if_statement "if (uVar1 == param_3) {\n      if (cVar7 != '\0') {\nLAB_0031abe8:\n        param_1[1] = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\n        iVar3 = param_1[1];\n      }\nLAB_0031ac10:\n      if (iVar3 != 0x7fffffff) {\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }\n      if ((uint)piVar6[2] < (uint)piVar6[3]) {\n        piVar6[2] = piVar6[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }\n      return param_1;\n    }" (if "if") (parenthesized_expression "(uVar1 == param_3)" (( "(") (binary_expression "uVar1 == param_3" (identifier "uVar1") (== "==") (identifier "param_3")) () ")")) (compound_statement "{\n      if (cVar7 != '\0') {\nLAB_0031abe8:\n        param_1[1] = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\n        iVar3 = param_1[1];\n      }\nLAB_0031ac10:\n      if (iVar3 != 0x7fffffff) {\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }\n      if ((uint)piVar6[2] < (uint)piVar6[3]) {\n        piVar6[2] = piVar6[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }\n      return param_1;\n    }" ({ "{") (if_statement "if (cVar7 != '\0') {\nLAB_0031abe8:\n        param_1[1] = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\n        iVar3 = param_1[1];\n      }" (if "if") (parenthesized_expression "(cVar7 != '\0')" (( "(") (binary_expression "cVar7 != '\0'" (identifier "cVar7") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\nLAB_0031abe8:\n        param_1[1] = 0x7fffffff;\nLAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\n        iVar3 = param_1[1];\n      }" ({ "{") (labeled_statement "LAB_0031abe8:\n        param_1[1] = 0x7fffffff;" (statement_identifier "LAB_0031abe8") (: ":") (expression_statement "param_1[1] = 0x7fffffff;" (assignment_expression "param_1[1] = 0x7fffffff" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x7fffffff")) (; ";"))) (labeled_statement "LAB_0031abf8:\n        if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }" (statement_identifier "LAB_0031abf8") (: ":") (if_statement "if (uVar1 == 0xffffffff) {\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }" (if "if") (parenthesized_expression "(uVar1 == 0xffffffff)" (( "(") (binary_expression "uVar1 == 0xffffffff" (identifier "uVar1") (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\nLAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);\n          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);\n          return param_1;\n        }" ({ "{") (labeled_statement "LAB_0031ab24:\n          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);" (statement_identifier "LAB_0031ab24") (: ":") (expression_statement "iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);" (assignment_expression "iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc)" (identifier "iVar3") (= "=") (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")")))))) (; ";"))) (expression_statement "(**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);" (call_expression "(**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2)" (parenthesized_expression "(**(code **)(in_t9 + 0x1186c8))" (( "(") (pointer_expression "**(code **)(in_t9 + 0x1186c8)" (* "*") (pointer_expression "*(code **)(in_t9 + 0x1186c8)" (* "*") (cast_expression "(code **)(in_t9 + 0x1186c8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(in_t9 + 0x1186c8)" (( "(") (binary_expression "in_t9 + 0x1186c8" (identifier "in_t9") (+ "+") (number_literal "0x1186c8")) () ")"))))) () ")")) (argument_list "(iVar3,*(uint *)(iVar3 + 0x14) | 2)" (( "(") (identifier "iVar3") (, ",") (binary_expression "*(uint *)(iVar3 + 0x14) | 2" (pointer_expression "*(uint *)(iVar3 + 0x14)" (* "*") (cast_expression "(uint *)(iVar3 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")")))) (| "|") (number_literal "2")) () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))) (if_statement "if (param_3 != uVar1) {\n          return param_1;\n        }" (if "if") (parenthesized_expression "(param_3 != uVar1)" (( "(") (binary_expression "param_3 != uVar1" (identifier "param_3") (!= "!=") (identifier "uVar1")) () ")")) (compound_statement "{\n          return param_1;\n        }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "iVar3 = param_1[1];" (assignment_expression "iVar3 = param_1[1]" (identifier "iVar3") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}"))) (labeled_statement "LAB_0031ac10:\n      if (iVar3 != 0x7fffffff) {\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }" (statement_identifier "LAB_0031ac10") (: ":") (if_statement "if (iVar3 != 0x7fffffff) {\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }" (if "if") (parenthesized_expression "(iVar3 != 0x7fffffff)" (( "(") (binary_expression "iVar3 != 0x7fffffff" (identifier "iVar3") (!= "!=") (number_literal "0x7fffffff")) () ")")) (compound_statement "{\nLAB_0031ac1c:\n        param_1[1] = iVar3 + 1;\n      }" ({ "{") (labeled_statement "LAB_0031ac1c:\n        param_1[1] = iVar3 + 1;" (statement_identifier "LAB_0031ac1c") (: ":") (expression_statement "param_1[1] = iVar3 + 1;" (assignment_expression "param_1[1] = iVar3 + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";"))) (} "}")))) (if_statement "if ((uint)piVar6[2] < (uint)piVar6[3]) {\n        piVar6[2] = piVar6[2] + 1;\n      }\n      else {\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }" (if "if") (parenthesized_expression "((uint)piVar6[2] < (uint)piVar6[3])" (( "(") (binary_expression "(uint)piVar6[2] < (uint)piVar6[3]" (cast_expression "(uint)piVar6[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "piVar6[2]" (identifier "piVar6") ([ "[") (number_literal "2") (] "]"))) (< "<") (cast_expression "(uint)piVar6[3]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "piVar6[3]" (identifier "piVar6") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n        piVar6[2] = piVar6[2] + 1;\n      }" ({ "{") (expression_statement "piVar6[2] = piVar6[2] + 1;" (assignment_expression "piVar6[2] = piVar6[2] + 1" (subscript_expression "piVar6[2]" (identifier "piVar6") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "piVar6[2] + 1" (subscript_expression "piVar6[2]" (identifier "piVar6") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }" (else "else") (compound_statement "{\n        (**(code **)(*piVar6 + 0x28))(piVar6);\n      }" ({ "{") (expression_statement "(**(code **)(*piVar6 + 0x28))(piVar6);" (call_expression "(**(code **)(*piVar6 + 0x28))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x28))" (( "(") (pointer_expression "**(code **)(*piVar6 + 0x28)" (* "*") (pointer_expression "*(code **)(*piVar6 + 0x28)" (* "*") (cast_expression "(code **)(*piVar6 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar6 + 0x28)" (( "(") (binary_expression "*piVar6 + 0x28" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "(piVar6)" (( "(") (identifier "piVar6") () ")"))) (; ";")) (} "}")))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "param_1[1] = -0x80000000;" (assignment_expression "param_1[1] = -0x80000000" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "-0x80000000")) (; ";")) (expression_statement "iVar3 = -0x80000000;" (assignment_expression "iVar3 = -0x80000000" (identifier "iVar3") (= "=") (number_literal "-0x80000000")) (; ";")) (expression_statement "cVar7 = local_48[0];" (assignment_expression "cVar7 = local_48[0]" (identifier "cVar7") (= "=") (subscript_expression "local_48[0]" (identifier "local_48") ([ "[") (number_literal "0") (] "]"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

/* std::istream::ignore(int, int) */

type_2 * __thiscall std::type_2::ignore(type_2 *var_3,int var_4,int var_1)

{
  type_1 var_6;
  int var_8;
  type_2 *piVar3;
  int var_5;
  type_3 *var_9;
  type_3 *var_10;
  int *piVar7;
  char var_7;
  int var_2;
  type_4 *pcVar9;
  char local_48 [8];
  type_3 *var_11;
  int local_3c;
  type_3 *var_13;
  int var_12;
  int local_30;
  
  if (var_1 == -1) {
    piVar3 = (type_2 *)(**(type_4 **)(var_2 + 0x11b9f8))();
    return piVar3;
  }
  pcVar9 = *(type_4 **)(var_2 + 0x11b3f4);
  *(type_5 *)(var_3 + 4) = 0;
  (*pcVar9)(local_48,var_3,1);
  if (var_4 < 1) {
    return var_3;
  }
  if (local_48[0] == '\0') {
    return var_3;
  }
  local_30 = (int)(char)var_1;
  piVar7 = *(int **)(var_3 + *(int *)(*(int *)var_3 + -0xc) + 0x78);
  if ((type_3 *)piVar7[2] < (type_3 *)piVar7[3]) {
    var_6 = (type_1)*(type_3 *)piVar7[2];
  }
  else {
    var_6 = (**(type_4 **)(*piVar7 + 0x24))(piVar7);
  }
  var_5 = *(int *)(var_3 + 4);
  var_7 = '\0';
  do {
    while (var_5 < var_4) {
      if (var_6 == 0xffffffff) {
LAB_0031abb4:
        if (var_4 == 0x7fffffff) goto LAB_0031ab14;
        if (var_7 != '\0') {
          *(type_5 *)(var_3 + 4) = 0x7fffffff;
        }
        goto LAB_0031ab24;
      }
      if (var_6 == var_1) {
        if (var_4 == 0x7fffffff) {
          if (var_7 == '\0') goto LAB_0031ac1c;
          goto LAB_0031abe8;
        }
        if (var_7 != '\0') goto LAB_0031abe8;
        var_5 = *(int *)(var_3 + 4);
        goto LAB_0031ac10;
      }
      var_10 = (type_3 *)piVar7[3];
      var_9 = (type_3 *)piVar7[2];
      var_8 = var_4 - var_5;
      if ((int)var_10 - (int)var_9 <= var_4 - var_5) {
        var_8 = (int)var_10 - (int)var_9;
      }
      if (var_8 < 2) {
        *(int *)(var_3 + 4) = var_5 + 1;
        if (var_9 < var_10) {
          var_9 = var_9 + 1;
          piVar7[2] = (int)var_9;
        }
        else {
          var_5 = (**(type_4 **)(*piVar7 + 0x28))(piVar7);
          if (var_5 == -1) goto LAB_0031abb4;
          var_9 = (type_3 *)piVar7[2];
          var_10 = (type_3 *)piVar7[3];
        }
        if (var_10 <= var_9) goto LAB_0031ac70;
        var_6 = (type_1)*var_9;
        var_5 = *(int *)(var_3 + 4);
      }
      else {
        var_11 = var_9;
        local_3c = var_8;
        var_13 = var_10;
        var_12 = var_5;
        var_8 = (**(type_4 **)(var_2 + 0x11bd24))(var_9,local_30,var_8);
        var_5 = local_3c;
        if (var_8 != 0) {
          var_5 = var_8 - (int)var_11;
        }
        var_9 = var_11 + var_5;
        var_5 = var_12 + var_5;
        piVar7[2] = (int)var_9;
        *(int *)(var_3 + 4) = var_5;
        if (var_9 < var_13) {
          var_6 = (type_1)*var_9;
        }
        else {
LAB_0031ac70:
                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */
          var_6 = (**(type_4 **)(*piVar7 + 0x24))(piVar7);
          var_5 = *(int *)(var_3 + 4);
        }
      }
    }
    if (var_4 != 0x7fffffff) {
      if (var_7 != '\0') goto LAB_0031abe8;
      goto LAB_0031abf8;
    }
    if (var_6 == 0xffffffff) {
LAB_0031ab14:
      if (var_7 != '\0') {
        *(type_5 *)(var_3 + 4) = 0x7fffffff;
      }
      goto LAB_0031ab24;
    }
    if (var_6 == var_1) {
      if (var_7 != '\0') {
LAB_0031abe8:
        *(type_5 *)(var_3 + 4) = 0x7fffffff;
LAB_0031abf8:
        if (var_6 == 0xffffffff) {
LAB_0031ab24:
          (**(type_4 **)(var_2 + 0x1186c8))
                    (var_3 + *(int *)(*(int *)var_3 + -0xc),
                     *(type_1 *)(var_3 + *(int *)(*(int *)var_3 + -0xc) + 0x14) | 2);
          return var_3;
        }
        if (var_1 != var_6) {
          return var_3;
        }
        var_5 = *(int *)(var_3 + 4);
      }
LAB_0031ac10:
      if (var_5 != 0x7fffffff) {
LAB_0031ac1c:
        *(int *)(var_3 + 4) = var_5 + 1;
      }
      if ((type_1)piVar7[2] < (type_1)piVar7[3]) {
        piVar7[2] = piVar7[2] + 1;
      }
      else {
        (**(type_4 **)(*piVar7 + 0x28))(piVar7);
      }
      return var_3;
    }
    *(type_5 *)(var_3 + 4) = 0x80000000;
    var_5 = -0x80000000;
    var_7 = local_48[0];
  } while( true );
}


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

int * MASKED(int *param_1,int param_2,uint param_3)

{
  uint uVar1;
  int iVar2;
  int iVar3;
  byte *pbVar4;
  byte *pbVar5;
  int *piVar6;
  char cVar7;
  int in_t9;
  code *pcVar8;
  char local_48 [8];
  byte *local_40;
  int local_3c;
  byte *local_38;
  int local_34;
  int local_30;
  
  if (param_3 == 0xffffffff) {
    piVar6 = (int *)(**(code **)(in_t9 + 0x11b9f8))();
    return piVar6;
  }
  pcVar8 = *(code **)(in_t9 + 0x11b3f4);
  param_1[1] = 0;
  (*pcVar8)(local_48,param_1,1);
  if (param_2 < 1) {
    return param_1;
  }
  if (local_48[0] == '\0') {
    return param_1;
  }
  local_30 = (int)(char)param_3;
  piVar6 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);
  if ((byte *)piVar6[2] < (byte *)piVar6[3]) {
    uVar1 = (uint)*(byte *)piVar6[2];
  }
  else {
    uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);
  }
  iVar3 = param_1[1];
  cVar7 = '\0';
  do {
    while (iVar3 < param_2) {
      if (uVar1 == 0xffffffff) {
LAB_0031abb4:
        if (param_2 == 0x7fffffff) goto LAB_0031ab14;
        if (cVar7 != '\0') {
          param_1[1] = 0x7fffffff;
        }
        goto LAB_0031ab24;
      }
      if (uVar1 == param_3) {
        if (param_2 == 0x7fffffff) {
          if (cVar7 == '\0') goto LAB_0031ac1c;
          goto LAB_0031abe8;
        }
        if (cVar7 != '\0') goto LAB_0031abe8;
        iVar3 = param_1[1];
        goto LAB_0031ac10;
      }
      pbVar5 = (byte *)piVar6[3];
      pbVar4 = (byte *)piVar6[2];
      iVar2 = param_2 - iVar3;
      if ((int)pbVar5 - (int)pbVar4 <= param_2 - iVar3) {
        iVar2 = (int)pbVar5 - (int)pbVar4;
      }
      if (iVar2 < 2) {
        param_1[1] = iVar3 + 1;
        if (pbVar4 < pbVar5) {
          pbVar4 = pbVar4 + 1;
          piVar6[2] = (int)pbVar4;
        }
        else {
          iVar3 = (**(code **)(*piVar6 + 0x28))(piVar6);
          if (iVar3 == -1) goto LAB_0031abb4;
          pbVar4 = (byte *)piVar6[2];
          pbVar5 = (byte *)piVar6[3];
        }
        if (pbVar5 <= pbVar4) goto LAB_0031ac70;
        uVar1 = (uint)*pbVar4;
        iVar3 = param_1[1];
      }
      else {
        local_40 = pbVar4;
        local_3c = iVar2;
        local_38 = pbVar5;
        local_34 = iVar3;
        iVar2 = (**(code **)(in_t9 + 0x11bd24))(pbVar4,local_30,iVar2);
        iVar3 = local_3c;
        if (iVar2 != 0) {
          iVar3 = iVar2 - (int)local_40;
        }
        pbVar4 = local_40 + iVar3;
        iVar3 = local_34 + iVar3;
        piVar6[2] = (int)pbVar4;
        param_1[1] = iVar3;
        if (pbVar4 < local_38) {
          uVar1 = (uint)*pbVar4;
        }
        else {
LAB_0031ac70:
                    /* try { // try from 0031ac78 to 0031acd7 has its CatchHandler @ 0031ad10 */
          uVar1 = (**(code **)(*piVar6 + 0x24))(piVar6);
          iVar3 = param_1[1];
        }
      }
    }
    if (param_2 != 0x7fffffff) {
      if (cVar7 != '\0') goto LAB_0031abe8;
      goto LAB_0031abf8;
    }
    if (uVar1 == 0xffffffff) {
LAB_0031ab14:
      if (cVar7 != '\0') {
        param_1[1] = 0x7fffffff;
      }
      goto LAB_0031ab24;
    }
    if (uVar1 == param_3) {
      if (cVar7 != '\0') {
LAB_0031abe8:
        param_1[1] = 0x7fffffff;
LAB_0031abf8:
        if (uVar1 == 0xffffffff) {
LAB_0031ab24:
          iVar3 = (int)param_1 + *(int *)(*param_1 + -0xc);
          (**(code **)(in_t9 + 0x1186c8))(iVar3,*(uint *)(iVar3 + 0x14) | 2);
          return param_1;
        }
        if (param_3 != uVar1) {
          return param_1;
        }
        iVar3 = param_1[1];
      }
LAB_0031ac10:
      if (iVar3 != 0x7fffffff) {
LAB_0031ac1c:
        param_1[1] = iVar3 + 1;
      }
      if ((uint)piVar6[2] < (uint)piVar6[3]) {
        piVar6[2] = piVar6[2] + 1;
      }
      else {
        (**(code **)(*piVar6 + 0x28))(piVar6);
      }
      return param_1;
    }
    param_1[1] = -0x80000000;
    iVar3 = -0x80000000;
    cVar7 = local_48[0];
  } while( true );
}

