
int mbsnwidth(char *string,size_t nbytes,int flags)

{
  bool bVar1;
  ushort uVar2;
  char *string_00;
  uint uVar3;
  int iVar4;
  int *piVar5;
  size_t sVar6;
  int iVar7;
  char *pcVar8;
  char *pcVar9;
  undefined *puVar10;
  wchar_t wc;
  mbstate_t mbstate;
  
  puVar10 = PTR___stack_chk_guard_0008df8c;
  pcVar8 = string + nbytes;
  string_00 = *(char **)PTR___stack_chk_guard_0008df8c;
  uVar3 = (*(code *)PTR___ctype_get_mb_cur_max_0008df40)();
  if (uVar3 < 2) {
    iVar7 = 0;
    if (string < pcVar8) {
      pcVar9 = string + 1;
      piVar5 = (int *)(*(code *)PTR___ctype_b_loc_0008de2c)();
      nbytes = 0x7fffffff;
      do {
        uVar2 = *(ushort *)(*piVar5 + (uint)(byte)pcVar9[-1] * 2);
        if ((uVar2 & 0x40) == 0) {
          if ((flags & 2U) != 0) goto LAB_00066c90;
          if ((uVar2 & 0x200) == 0) goto LAB_00066c5c;
        }
        else {
LAB_00066c5c:
          if (iVar7 == 0x7fffffff) break;
          iVar7 = iVar7 + 1;
        }
        bVar1 = pcVar8 != pcVar9;
        pcVar9 = pcVar9 + 1;
      } while (bVar1);
    }
  }
  else {
    iVar7 = 0;
    if (string < pcVar8) {
      do {
        iVar4 = (int)*string;
        if (iVar4 < 0x40) {
          if ((0x24 < iVar4) || ((iVar4 - 0x20U & 0xff) < 4)) goto LAB_00066ad0;
LAB_00066b48:
          mbstate.__count = 0;
          mbstate.__value.__wch = 0;
          do {
            nbytes = (size_t)string;
            sVar6 = rpl_mbrtowc(&wc,string,(int)pcVar8 - (int)string,&mbstate);
            if (sVar6 == 0xffffffff) {
              if ((flags & 1U) != 0) goto LAB_00066c90;
              goto LAB_00066ad0;
            }
            if (sVar6 == 0xfffffffe) {
              if ((flags & 1U) != 0) goto LAB_00066c90;
              iVar7 = iVar7 + 1;
              string = pcVar8;
              break;
            }
            if (sVar6 == 0) {
              sVar6 = 1;
            }
            iVar4 = (*(code *)PTR_wcwidth_0008dfa4)(wc);
            if (iVar4 < 0) {
              if ((flags & 2U) != 0) goto LAB_00066c90;
              iVar4 = (*(code *)PTR_iswcntrl_0008df58)(wc);
              if (iVar4 == 0) {
                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;
                iVar7 = iVar7 + 1;
              }
            }
            else {
              if (0x7fffffff - iVar7 < iVar4) {
LAB_00066cb4:
                iVar7 = 0x7fffffff;
                goto LAB_00066ae4;
              }
              iVar7 = iVar7 + iVar4;
            }
            string = string + sVar6;
            iVar4 = (*(code *)PTR_mbsinit_0008df88)(&mbstate);
          } while (iVar4 == 0);
        }
        else {
          if ((iVar4 < 0x41) || ((0x5f < iVar4 && (0x1d < (iVar4 - 0x61U & 0xff)))))
          goto LAB_00066b48;
LAB_00066ad0:
          iVar7 = iVar7 + 1;
          string = string + 1;
        }
      } while (string < pcVar8);
    }
  }
LAB_00066ae4:
  if (string_00 != *(char **)puVar10) {
    puVar10 = PTR___stack_chk_fail_0008df68;
    (*(code *)PTR___stack_chk_fail_0008df68)();
    sVar6 = (**(code **)(puVar10 + 0x2722c))();
                    /* WARNING: Subroutine does not return */
    mbsnwidth(string_00,sVar6,nbytes);
  }
  return iVar7;
LAB_00066c90:
  iVar7 = -1;
  goto LAB_00066ae4;
}



int mbsnwidth(byte *param_1,byte *param_2,byte *param_3)

{
  ushort uVar1;
  byte *pbVar2;
  undefined4 *puVar3;
  uint uVar4;
  int iVar5;
  int *piVar6;
  undefined4 unaff_s0;
  int iVar7;
  undefined4 unaff_s1;
  byte *pbVar8;
  undefined4 unaff_s2;
  int unaff_s3;
  undefined4 *unaff_s4;
  undefined1 *unaff_s5;
  byte *unaff_s6;
  undefined4 unaff_s7;
  code *pcVar9;
  code *pcVar10;
  int iVar11;
  undefined4 unaff_s8;
  undefined4 unaff_retaddr;
  undefined4 uVar12;
  undefined1 auStackX_0 [16];
  
  pcVar10 = mbsnwidth;
code_r0x00066a10:
  puVar3 = *(undefined4 **)(pcVar10 + 0x2757c);
  pcVar9 = *(code **)(pcVar10 + 0x27530);
  *(undefined4 **)((int)register0x00000074 + -0x3c) = puVar3;
  *(code **)((int)register0x00000074 + -0x48) = pcVar10 + 0x2ebe0;
  *(byte **)((int)register0x00000074 + -0x10) = unaff_s6;
  *(undefined4 *)((int)register0x00000074 + -0x24) = unaff_s1;
  pbVar8 = param_1 + (int)param_2;
  *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;
  *(undefined4 *)((int)register0x00000074 + -8) = unaff_s8;
  *(undefined4 *)((int)register0x00000074 + -0xc) = unaff_s7;
  *(undefined1 **)((int)register0x00000074 + -0x14) = unaff_s5;
  *(undefined4 **)((int)register0x00000074 + -0x18) = unaff_s4;
  *(int *)((int)register0x00000074 + -0x1c) = unaff_s3;
  *(undefined4 *)((int)register0x00000074 + -0x20) = unaff_s2;
  *(undefined4 *)((int)register0x00000074 + -0x28) = unaff_s0;
  *(byte **)((int)register0x00000074 + 8) = param_3;
  *(undefined4 *)((int)register0x00000074 + -0x2c) = *puVar3;
  uVar4 = (*pcVar9)();
  iVar11 = *(int *)((int)register0x00000074 + -0x48);
  if (1 < uVar4) {
    iVar7 = 0;
    if (param_1 < pbVar8) {
      unaff_s2 = 0x7fffffff;
      *(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2;
      do {
        iVar5 = (int)(char)*param_1;
        if (iVar5 < 0x40) {
          if ((0x24 < iVar5) ||
             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4
             )) goto LAB_00066ad0;
LAB_00066b48:
          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);
          *unaff_s4 = 0;
          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);
          unaff_s7 = 0xffffffff;
          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;
          unaff_s8 = 0xfffffffe;
          do {
            param_2 = param_1;
            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);
            iVar11 = *(int *)((int)register0x00000074 + -0x48);
            if (unaff_s3 == -1) {
              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;
              goto LAB_00066ad0;
            }
            if (unaff_s3 == -2) {
              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;
              iVar7 = iVar7 + 1;
              param_1 = pbVar8;
              break;
            }
            if (unaff_s3 == 0) {
              unaff_s3 = 1;
            }
            iVar5 = (**(code **)(iVar11 + -0x764c))
                              (*(undefined4 *)((int)register0x00000074 + -0x38));
            iVar11 = *(int *)((int)register0x00000074 + -0x48);
            if (iVar5 < 0) {
              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;
              iVar5 = (**(code **)(iVar11 + -0x7698))
                                (*(undefined4 *)((int)register0x00000074 + -0x38));
              iVar11 = *(int *)((int)register0x00000074 + -0x48);
              if (iVar5 == 0) {
                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;
                iVar7 = iVar7 + 1;
              }
            }
            else {
              if (0x7fffffff - iVar7 < iVar5) {
LAB_00066cb4:
                iVar7 = 0x7fffffff;
                goto LAB_00066ae0;
              }
              iVar7 = iVar7 + iVar5;
            }
            param_1 = param_1 + unaff_s3;
            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);
            iVar11 = *(int *)((int)register0x00000074 + -0x48);
          } while (iVar5 == 0);
        }
        else {
          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))
          goto LAB_00066b48;
LAB_00066ad0:
          iVar7 = iVar7 + 1;
          param_1 = param_1 + 1;
        }
      } while (param_1 < pbVar8);
    }
    goto LAB_00066ae0;
  }
  iVar7 = 0;
  if (pbVar8 <= param_1) goto LAB_00066ae0;
  piVar6 = (int *)(**(code **)(iVar11 + -0x77c4))();
  param_2 = (byte *)0x7fffffff;
  iVar11 = *(int *)((int)register0x00000074 + -0x48);
  unaff_s4 = (undefined4 *)(*(uint *)((int)register0x00000074 + 8) & 2);
  pbVar2 = param_1;
  do {
    param_1 = pbVar2 + 1;
    uVar1 = *(ushort *)(*piVar6 + (uint)*pbVar2 * 2);
    param_3 = param_2;
    unaff_s6 = param_1;
    if ((uVar1 & 0x40) == 0) {
      if (unaff_s4 != (undefined4 *)0x0) goto LAB_00066c90;
      if ((uVar1 & 0x200) == 0) goto LAB_00066c5c;
    }
    else {
LAB_00066c5c:
      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);
      if (iVar7 == 0x7fffffff) goto LAB_00066ae4;
      iVar7 = iVar7 + 1;
    }
    pbVar2 = param_1;
  } while (pbVar8 != param_1);
  puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);
  goto LAB_00066ae4;
LAB_00066c90:
  iVar7 = -1;
LAB_00066ae0:
  puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);
  param_3 = param_2;
  unaff_s6 = param_1;
LAB_00066ae4:
  param_1 = *(byte **)((int)register0x00000074 + -0x2c);
  if (param_1 == (byte *)*puVar3) {
    return iVar7;
  }
  pcVar10 = *(code **)(iVar11 + -0x7688);
  uVar12 = 0x66ccc;
  (*pcVar10)();
  pcVar9 = *(code **)(pcVar10 + 0x2722c);
  *(byte **)((int)register0x00000074 + -0x60) = pbVar8;
  *(int *)((int)register0x00000074 + -100) = iVar7;
  *(undefined4 *)((int)register0x00000074 + -0x5c) = uVar12;
  *(code **)((int)register0x00000074 + -0x70) = pcVar10 + 0x2e924;
  param_2 = (byte *)(*pcVar9)();
  unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x5c);
  unaff_s1 = *(undefined4 *)((int)register0x00000074 + -0x60);
  unaff_s0 = *(undefined4 *)((int)register0x00000074 + -100);
  pcVar10 = *(code **)(*(int *)((int)register0x00000074 + -0x70) + -0x7c24);
  register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x58);
  goto code_r0x00066a10;
}


lui gp,0x3
addiu gp,gp,-0x1420
addu gp,gp,t9
lw v0,-0x7664(gp)
addiu sp,sp,-0x58
lw t9,-0x76b0(gp)
sw v0,0x1c(sp)
sw gp,0x10(sp)
sw s6,0x48(sp)
or s6,a0,zero
sw s1,0x34(sp)
addu s1,a0,a1
sw ra,0x54(sp)
sw s8,0x50(sp)
sw s7,0x4c(sp)
sw s5,0x44(sp)
sw s4,0x40(sp)
sw s3,0x3c(sp)
sw s2,0x38(sp)
sw s0,0x30(sp)
sw a2,0x60(sp)
lw v0,0x0(v0)
sw v0,0x2c(sp)
jalr t9
_nop
sltiu v0,v0,0x2
bne v0,zero,0x00066c00
_lw gp,0x10(sp)
sltu v0,s6,s1
beq v0,zero,0x00066ae0
_or s0,zero,zero
lw v0,0x60(sp)
lui s2,0x7fff
ori s2,s2,0xffff
andi v0,v0,0x2
sw v0,0x18(sp)
lb v0,0x0(s6)
slti v1,v0,0x40
beq v1,zero,0x00066b24
_slti v1,v0,0x41
slti v1,v0,0x25
beq v1,zero,0x00066acc
_addiu v0,v0,-0x20
andi v0,v0,0xff
sltiu v0,v0,0x4
beq v0,zero,0x00066b48
_addiu s4,sp,0x24
addiu s6,s6,0x1
addiu s0,s0,0x1
sltu v0,s6,s1
bne v0,zero,0x00066aa0
_nop
lw v1,0x1c(sp)
or v0,s0,zero
lw a0,0x2c(sp)
lw v1,0x0(v1)
bne a0,v1,0x00066cc0
_lw ra,0x54(sp)
lw s8,0x50(sp)
lw s7,0x4c(sp)
lw s6,0x48(sp)
lw s5,0x44(sp)
lw s4,0x40(sp)
lw s3,0x3c(sp)
lw s2,0x38(sp)
lw s1,0x34(sp)
lw s0,0x30(sp)
jr ra
_addiu sp,sp,0x58
bne v1,zero,0x00066b44
_slti v1,v0,0x60
bne v1,zero,0x00066acc
_addiu v0,v0,-0x61
andi v0,v0,0xff
sltiu v0,v0,0x1e
bne v0,zero,0x00066acc
_nop
addiu s4,sp,0x24
sw zero,0x24(sp)
addiu s5,sp,0x20
li s7,-0x1
sw zero,0x4(s4)
b 0x00066b8c
_li s8,-0x2
subu a0,s2,s0
slt a0,a0,v0
bne a0,zero,0x00066cb4
_nop
addu s0,s0,v0
lw t9,-0x7668(gp)
or a0,s4,zero
jalr t9
_addu s6,s6,s3
bne v0,zero,0x00066ad4
_lw gp,0x10(sp)
lw t9,-0x7854(gp)
subu a2,s1,s6
or a3,s4,zero
or a1,s6,zero
bal 0x0006cdd0
_or a0,s5,zero
lw gp,0x10(sp)
beq v0,s7,0x00066c7c
_or s3,v0,zero
beq v0,s8,0x00066c98
_nop
bne v0,zero,0x00066bc4
_lw t9,-0x764c(gp)
li s3,0x1
jalr t9
_lw a0,0x20(sp)
bgez v0,0x00066b60
_lw gp,0x10(sp)
lw v0,0x18(sp)
bne v0,zero,0x00066c90
_lw t9,-0x7698(gp)
jalr t9
_lw a0,0x20(sp)
bne v0,zero,0x00066b74
_lw gp,0x10(sp)
beq s0,s2,0x00066cb4
_nop
b 0x00066b74
_addiu s0,s0,0x1
sltu v0,s6,s1
beq v0,zero,0x00066ae0
_or s0,zero,zero
lw t9,-0x77c4(gp)
jalr t9
_addiu s6,s6,0x1
lui a1,0x7fff
lw a0,0x0(v0)
lw v0,0x60(sp)
ori a1,a1,0xffff
lw gp,0x10(sp)
andi s4,v0,0x2
lbu v0,-0x1(s6)
sll v0,v0,0x1
addu v0,a0,v0
lhu v0,0x0(v0)
andi v1,v0,0x40
bne v1,zero,0x00066c5c
_nop
bne s4,zero,0x00066c90
_andi v0,v0,0x200
bne v0,zero,0x00066c68
_nop
beq s0,a1,0x00066ae4
_lw v1,0x1c(sp)
addiu s0,s0,0x1
bne s1,s6,0x00066c30
_addiu s6,s6,0x1
addiu s6,s6,-0x1
b 0x00066ae4
_lw v1,0x1c(sp)
lw v0,0x60(sp)
andi v0,v0,0x1
beq v0,zero,0x00066ad0
_addiu s6,s6,0x1
addiu s6,s6,-0x1
b 0x00066ae0
_li s0,-0x1
lw v0,0x60(sp)
andi v0,v0,0x1
bne v0,zero,0x00066c90
_nop
addiu s0,s0,0x1
b 0x00066ad4
_or s6,s1,zero
lui s0,0x7fff
b 0x00066ae0
_ori s0,s0,0xffff
lw t9,-0x7688(gp)
jalr t9
_nop
lui gp,0x3
addiu gp,gp,-0x16dc
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x76f8(gp)
sw s1,0x20(sp)
or s1,a1,zero
sw s0,0x1c(sp)
sw ra,0x24(sp)
sw gp,0x10(sp)
jalr t9
_or s0,a0,zero
or a2,s1,zero
lw gp,0x10(sp)
or a0,s0,zero
lw ra,0x24(sp)
or a1,v0,zero
lw s1,0x20(sp)
lw s0,0x1c(sp)
lw t9,-0x7c24(gp)
b 0x00066a10
_addiu sp,sp,0x28
(translation_unit "int mbsnwidth(byte *param_1,byte *param_2,byte *param_3)\n\n{\n  ushort uVar1;\n  byte *pbVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 unaff_s0;\n  int iVar7;\n  undefined4 unaff_s1;\n  byte *pbVar8;\n  undefined4 unaff_s2;\n  int unaff_s3;\n  undefined4 *unaff_s4;\n  undefined1 *unaff_s5;\n  byte *unaff_s6;\n  undefined4 unaff_s7;\n  code *pcVar9;\n  code *pcVar10;\n  int iVar11;\n  undefined4 unaff_s8;\n  undefined4 unaff_retaddr;\n  undefined4 uVar12;\n  undefined1 auStackX_0 [16];\n  \n  pcVar10 = mbsnwidth;\ncode_r0x00066a10:\n  puVar3 = *(undefined4 **)(pcVar10 + 0x2757c);\n  pcVar9 = *(code **)(pcVar10 + 0x27530);\n  *(undefined4 **)((int)register0x00000074 + -0x3c) = puVar3;\n  *(code **)((int)register0x00000074 + -0x48) = pcVar10 + 0x2ebe0;\n  *(byte **)((int)register0x00000074 + -0x10) = unaff_s6;\n  *(undefined4 *)((int)register0x00000074 + -0x24) = unaff_s1;\n  pbVar8 = param_1 + (int)param_2;\n  *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n  *(undefined4 *)((int)register0x00000074 + -8) = unaff_s8;\n  *(undefined4 *)((int)register0x00000074 + -0xc) = unaff_s7;\n  *(undefined1 **)((int)register0x00000074 + -0x14) = unaff_s5;\n  *(undefined4 **)((int)register0x00000074 + -0x18) = unaff_s4;\n  *(int *)((int)register0x00000074 + -0x1c) = unaff_s3;\n  *(undefined4 *)((int)register0x00000074 + -0x20) = unaff_s2;\n  *(undefined4 *)((int)register0x00000074 + -0x28) = unaff_s0;\n  *(byte **)((int)register0x00000074 + 8) = param_3;\n  *(undefined4 *)((int)register0x00000074 + -0x2c) = *puVar3;\n  uVar4 = (*pcVar9)();\n  iVar11 = *(int *)((int)register0x00000074 + -0x48);\n  if (1 < uVar4) {\n    iVar7 = 0;\n    if (param_1 < pbVar8) {\n      unaff_s2 = 0x7fffffff;\n      *(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2;\n      do {\n        iVar5 = (int)(char)*param_1;\n        if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }\n      } while (param_1 < pbVar8);\n    }\n    goto LAB_00066ae0;\n  }\n  iVar7 = 0;\n  if (pbVar8 <= param_1) goto LAB_00066ae0;\n  piVar6 = (int *)(**(code **)(iVar11 + -0x77c4))();\n  param_2 = (byte *)0x7fffffff;\n  iVar11 = *(int *)((int)register0x00000074 + -0x48);\n  unaff_s4 = (undefined4 *)(*(uint *)((int)register0x00000074 + 8) & 2);\n  pbVar2 = param_1;\n  do {\n    param_1 = pbVar2 + 1;\n    uVar1 = *(ushort *)(*piVar6 + (uint)*pbVar2 * 2);\n    param_3 = param_2;\n    unaff_s6 = param_1;\n    if ((uVar1 & 0x40) == 0) {\n      if (unaff_s4 != (undefined4 *)0x0) goto LAB_00066c90;\n      if ((uVar1 & 0x200) == 0) goto LAB_00066c5c;\n    }\n    else {\nLAB_00066c5c:\n      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n      if (iVar7 == 0x7fffffff) goto LAB_00066ae4;\n      iVar7 = iVar7 + 1;\n    }\n    pbVar2 = param_1;\n  } while (pbVar8 != param_1);\n  puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n  goto LAB_00066ae4;\nLAB_00066c90:\n  iVar7 = -1;\nLAB_00066ae0:\n  puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n  param_3 = param_2;\n  unaff_s6 = param_1;\nLAB_00066ae4:\n  param_1 = *(byte **)((int)register0x00000074 + -0x2c);\n  if (param_1 == (byte *)*puVar3) {\n    return iVar7;\n  }\n  pcVar10 = *(code **)(iVar11 + -0x7688);\n  uVar12 = 0x66ccc;\n  (*pcVar10)();\n  pcVar9 = *(code **)(pcVar10 + 0x2722c);\n  *(byte **)((int)register0x00000074 + -0x60) = pbVar8;\n  *(int *)((int)register0x00000074 + -100) = iVar7;\n  *(undefined4 *)((int)register0x00000074 + -0x5c) = uVar12;\n  *(code **)((int)register0x00000074 + -0x70) = pcVar10 + 0x2e924;\n  param_2 = (byte *)(*pcVar9)();\n  unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x5c);\n  unaff_s1 = *(undefined4 *)((int)register0x00000074 + -0x60);\n  unaff_s0 = *(undefined4 *)((int)register0x00000074 + -100);\n  pcVar10 = *(code **)(*(int *)((int)register0x00000074 + -0x70) + -0x7c24);\n  register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x58);\n  goto code_r0x00066a10;\n}\n\n" (function_definition "int mbsnwidth(byte *param_1,byte *param_2,byte *param_3)\n\n{\n  ushort uVar1;\n  byte *pbVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 unaff_s0;\n  int iVar7;\n  undefined4 unaff_s1;\n  byte *pbVar8;\n  undefined4 unaff_s2;\n  int unaff_s3;\n  undefined4 *unaff_s4;\n  undefined1 *unaff_s5;\n  byte *unaff_s6;\n  undefined4 unaff_s7;\n  code *pcVar9;\n  code *pcVar10;\n  int iVar11;\n  undefined4 unaff_s8;\n  undefined4 unaff_retaddr;\n  undefined4 uVar12;\n  undefined1 auStackX_0 [16];\n  \n  pcVar10 = mbsnwidth;\ncode_r0x00066a10:\n  puVar3 = *(undefined4 **)(pcVar10 + 0x2757c);\n  pcVar9 = *(code **)(pcVar10 + 0x27530);\n  *(undefined4 **)((int)register0x00000074 + -0x3c) = puVar3;\n  *(code **)((int)register0x00000074 + -0x48) = pcVar10 + 0x2ebe0;\n  *(byte **)((int)register0x00000074 + -0x10) = unaff_s6;\n  *(undefined4 *)((int)register0x00000074 + -0x24) = unaff_s1;\n  pbVar8 = param_1 + (int)param_2;\n  *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n  *(undefined4 *)((int)register0x00000074 + -8) = unaff_s8;\n  *(undefined4 *)((int)register0x00000074 + -0xc) = unaff_s7;\n  *(undefined1 **)((int)register0x00000074 + -0x14) = unaff_s5;\n  *(undefined4 **)((int)register0x00000074 + -0x18) = unaff_s4;\n  *(int *)((int)register0x00000074 + -0x1c) = unaff_s3;\n  *(undefined4 *)((int)register0x00000074 + -0x20) = unaff_s2;\n  *(undefined4 *)((int)register0x00000074 + -0x28) = unaff_s0;\n  *(byte **)((int)register0x00000074 + 8) = param_3;\n  *(undefined4 *)((int)register0x00000074 + -0x2c) = *puVar3;\n  uVar4 = (*pcVar9)();\n  iVar11 = *(int *)((int)register0x00000074 + -0x48);\n  if (1 < uVar4) {\n    iVar7 = 0;\n    if (param_1 < pbVar8) {\n      unaff_s2 = 0x7fffffff;\n      *(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2;\n      do {\n        iVar5 = (int)(char)*param_1;\n        if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }\n      } while (param_1 < pbVar8);\n    }\n    goto LAB_00066ae0;\n  }\n  iVar7 = 0;\n  if (pbVar8 <= param_1) goto LAB_00066ae0;\n  piVar6 = (int *)(**(code **)(iVar11 + -0x77c4))();\n  param_2 = (byte *)0x7fffffff;\n  iVar11 = *(int *)((int)register0x00000074 + -0x48);\n  unaff_s4 = (undefined4 *)(*(uint *)((int)register0x00000074 + 8) & 2);\n  pbVar2 = param_1;\n  do {\n    param_1 = pbVar2 + 1;\n    uVar1 = *(ushort *)(*piVar6 + (uint)*pbVar2 * 2);\n    param_3 = param_2;\n    unaff_s6 = param_1;\n    if ((uVar1 & 0x40) == 0) {\n      if (unaff_s4 != (undefined4 *)0x0) goto LAB_00066c90;\n      if ((uVar1 & 0x200) == 0) goto LAB_00066c5c;\n    }\n    else {\nLAB_00066c5c:\n      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n      if (iVar7 == 0x7fffffff) goto LAB_00066ae4;\n      iVar7 = iVar7 + 1;\n    }\n    pbVar2 = param_1;\n  } while (pbVar8 != param_1);\n  puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n  goto LAB_00066ae4;\nLAB_00066c90:\n  iVar7 = -1;\nLAB_00066ae0:\n  puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n  param_3 = param_2;\n  unaff_s6 = param_1;\nLAB_00066ae4:\n  param_1 = *(byte **)((int)register0x00000074 + -0x2c);\n  if (param_1 == (byte *)*puVar3) {\n    return iVar7;\n  }\n  pcVar10 = *(code **)(iVar11 + -0x7688);\n  uVar12 = 0x66ccc;\n  (*pcVar10)();\n  pcVar9 = *(code **)(pcVar10 + 0x2722c);\n  *(byte **)((int)register0x00000074 + -0x60) = pbVar8;\n  *(int *)((int)register0x00000074 + -100) = iVar7;\n  *(undefined4 *)((int)register0x00000074 + -0x5c) = uVar12;\n  *(code **)((int)register0x00000074 + -0x70) = pcVar10 + 0x2e924;\n  param_2 = (byte *)(*pcVar9)();\n  unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x5c);\n  unaff_s1 = *(undefined4 *)((int)register0x00000074 + -0x60);\n  unaff_s0 = *(undefined4 *)((int)register0x00000074 + -100);\n  pcVar10 = *(code **)(*(int *)((int)register0x00000074 + -0x70) + -0x7c24);\n  register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x58);\n  goto code_r0x00066a10;\n}" primitive_type (function_declarator "mbsnwidth(byte *param_1,byte *param_2,byte *param_3)" identifier (parameter_list "(byte *param_1,byte *param_2,byte *param_3)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "byte *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  ushort uVar1;\n  byte *pbVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 unaff_s0;\n  int iVar7;\n  undefined4 unaff_s1;\n  byte *pbVar8;\n  undefined4 unaff_s2;\n  int unaff_s3;\n  undefined4 *unaff_s4;\n  undefined1 *unaff_s5;\n  byte *unaff_s6;\n  undefined4 unaff_s7;\n  code *pcVar9;\n  code *pcVar10;\n  int iVar11;\n  undefined4 unaff_s8;\n  undefined4 unaff_retaddr;\n  undefined4 uVar12;\n  undefined1 auStackX_0 [16];\n  \n  pcVar10 = mbsnwidth;\ncode_r0x00066a10:\n  puVar3 = *(undefined4 **)(pcVar10 + 0x2757c);\n  pcVar9 = *(code **)(pcVar10 + 0x27530);\n  *(undefined4 **)((int)register0x00000074 + -0x3c) = puVar3;\n  *(code **)((int)register0x00000074 + -0x48) = pcVar10 + 0x2ebe0;\n  *(byte **)((int)register0x00000074 + -0x10) = unaff_s6;\n  *(undefined4 *)((int)register0x00000074 + -0x24) = unaff_s1;\n  pbVar8 = param_1 + (int)param_2;\n  *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n  *(undefined4 *)((int)register0x00000074 + -8) = unaff_s8;\n  *(undefined4 *)((int)register0x00000074 + -0xc) = unaff_s7;\n  *(undefined1 **)((int)register0x00000074 + -0x14) = unaff_s5;\n  *(undefined4 **)((int)register0x00000074 + -0x18) = unaff_s4;\n  *(int *)((int)register0x00000074 + -0x1c) = unaff_s3;\n  *(undefined4 *)((int)register0x00000074 + -0x20) = unaff_s2;\n  *(undefined4 *)((int)register0x00000074 + -0x28) = unaff_s0;\n  *(byte **)((int)register0x00000074 + 8) = param_3;\n  *(undefined4 *)((int)register0x00000074 + -0x2c) = *puVar3;\n  uVar4 = (*pcVar9)();\n  iVar11 = *(int *)((int)register0x00000074 + -0x48);\n  if (1 < uVar4) {\n    iVar7 = 0;\n    if (param_1 < pbVar8) {\n      unaff_s2 = 0x7fffffff;\n      *(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2;\n      do {\n        iVar5 = (int)(char)*param_1;\n        if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }\n      } while (param_1 < pbVar8);\n    }\n    goto LAB_00066ae0;\n  }\n  iVar7 = 0;\n  if (pbVar8 <= param_1) goto LAB_00066ae0;\n  piVar6 = (int *)(**(code **)(iVar11 + -0x77c4))();\n  param_2 = (byte *)0x7fffffff;\n  iVar11 = *(int *)((int)register0x00000074 + -0x48);\n  unaff_s4 = (undefined4 *)(*(uint *)((int)register0x00000074 + 8) & 2);\n  pbVar2 = param_1;\n  do {\n    param_1 = pbVar2 + 1;\n    uVar1 = *(ushort *)(*piVar6 + (uint)*pbVar2 * 2);\n    param_3 = param_2;\n    unaff_s6 = param_1;\n    if ((uVar1 & 0x40) == 0) {\n      if (unaff_s4 != (undefined4 *)0x0) goto LAB_00066c90;\n      if ((uVar1 & 0x200) == 0) goto LAB_00066c5c;\n    }\n    else {\nLAB_00066c5c:\n      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n      if (iVar7 == 0x7fffffff) goto LAB_00066ae4;\n      iVar7 = iVar7 + 1;\n    }\n    pbVar2 = param_1;\n  } while (pbVar8 != param_1);\n  puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n  goto LAB_00066ae4;\nLAB_00066c90:\n  iVar7 = -1;\nLAB_00066ae0:\n  puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n  param_3 = param_2;\n  unaff_s6 = param_1;\nLAB_00066ae4:\n  param_1 = *(byte **)((int)register0x00000074 + -0x2c);\n  if (param_1 == (byte *)*puVar3) {\n    return iVar7;\n  }\n  pcVar10 = *(code **)(iVar11 + -0x7688);\n  uVar12 = 0x66ccc;\n  (*pcVar10)();\n  pcVar9 = *(code **)(pcVar10 + 0x2722c);\n  *(byte **)((int)register0x00000074 + -0x60) = pbVar8;\n  *(int *)((int)register0x00000074 + -100) = iVar7;\n  *(undefined4 *)((int)register0x00000074 + -0x5c) = uVar12;\n  *(code **)((int)register0x00000074 + -0x70) = pcVar10 + 0x2e924;\n  param_2 = (byte *)(*pcVar9)();\n  unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x5c);\n  unaff_s1 = *(undefined4 *)((int)register0x00000074 + -0x60);\n  unaff_s0 = *(undefined4 *)((int)register0x00000074 + -100);\n  pcVar10 = *(code **)(*(int *)((int)register0x00000074 + -0x70) + -0x7c24);\n  register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x58);\n  goto code_r0x00066a10;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "undefined4 unaff_s0;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 unaff_s1;" type_identifier identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "undefined4 unaff_s2;" type_identifier identifier ;) (declaration "int unaff_s3;" primitive_type identifier ;) (declaration "undefined4 *unaff_s4;" type_identifier (pointer_declarator "*unaff_s4" * identifier) ;) (declaration "undefined1 *unaff_s5;" type_identifier (pointer_declarator "*unaff_s5" * identifier) ;) (declaration "byte *unaff_s6;" type_identifier (pointer_declarator "*unaff_s6" * identifier) ;) (declaration "undefined4 unaff_s7;" type_identifier identifier ;) (declaration "code *pcVar9;" type_identifier (pointer_declarator "*pcVar9" * identifier) ;) (declaration "code *pcVar10;" type_identifier (pointer_declarator "*pcVar10" * identifier) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "undefined4 unaff_s8;" type_identifier identifier ;) (declaration "undefined4 unaff_retaddr;" type_identifier identifier ;) (declaration "undefined4 uVar12;" type_identifier identifier ;) (declaration "undefined1 auStackX_0 [16];" type_identifier (array_declarator "auStackX_0 [16]" identifier [ number_literal ]) ;) (expression_statement "pcVar10 = mbsnwidth;" (assignment_expression "pcVar10 = mbsnwidth" identifier = identifier) ;) (labeled_statement "code_r0x00066a10:\n  puVar3 = *(undefined4 **)(pcVar10 + 0x2757c);" statement_identifier : (expression_statement "puVar3 = *(undefined4 **)(pcVar10 + 0x2757c);" (assignment_expression "puVar3 = *(undefined4 **)(pcVar10 + 0x2757c)" identifier = (pointer_expression "*(undefined4 **)(pcVar10 + 0x2757c)" * (cast_expression "(undefined4 **)(pcVar10 + 0x2757c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar10 + 0x2757c)" ( (binary_expression "pcVar10 + 0x2757c" identifier + number_literal) ))))) ;)) (expression_statement "pcVar9 = *(code **)(pcVar10 + 0x27530);" (assignment_expression "pcVar9 = *(code **)(pcVar10 + 0x27530)" identifier = (pointer_expression "*(code **)(pcVar10 + 0x27530)" * (cast_expression "(code **)(pcVar10 + 0x27530)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar10 + 0x27530)" ( (binary_expression "pcVar10 + 0x27530" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 **)((int)register0x00000074 + -0x3c) = puVar3;" (assignment_expression "*(undefined4 **)((int)register0x00000074 + -0x3c) = puVar3" (pointer_expression "*(undefined4 **)((int)register0x00000074 + -0x3c)" * (cast_expression "(undefined4 **)((int)register0x00000074 + -0x3c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x3c)" ( (binary_expression "(int)register0x00000074 + -0x3c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(code **)((int)register0x00000074 + -0x48) = pcVar10 + 0x2ebe0;" (assignment_expression "*(code **)((int)register0x00000074 + -0x48) = pcVar10 + 0x2ebe0" (pointer_expression "*(code **)((int)register0x00000074 + -0x48)" * (cast_expression "(code **)((int)register0x00000074 + -0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x48)" ( (binary_expression "(int)register0x00000074 + -0x48" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "pcVar10 + 0x2ebe0" identifier + number_literal)) ;) (expression_statement "*(byte **)((int)register0x00000074 + -0x10) = unaff_s6;" (assignment_expression "*(byte **)((int)register0x00000074 + -0x10) = unaff_s6" (pointer_expression "*(byte **)((int)register0x00000074 + -0x10)" * (cast_expression "(byte **)((int)register0x00000074 + -0x10)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x10)" ( (binary_expression "(int)register0x00000074 + -0x10" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x24) = unaff_s1;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x24) = unaff_s1" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x24)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x24)" ( (binary_expression "(int)register0x00000074 + -0x24" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "pbVar8 = param_1 + (int)param_2;" (assignment_expression "pbVar8 = param_1 + (int)param_2" identifier = (binary_expression "param_1 + (int)param_2" identifier + (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -4)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -4)" ( (binary_expression "(int)register0x00000074 + -4" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -8) = unaff_s8;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -8) = unaff_s8" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -8)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -8)" ( (binary_expression "(int)register0x00000074 + -8" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0xc) = unaff_s7;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0xc) = unaff_s7" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0xc)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0xc)" ( (binary_expression "(int)register0x00000074 + -0xc" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 **)((int)register0x00000074 + -0x14) = unaff_s5;" (assignment_expression "*(undefined1 **)((int)register0x00000074 + -0x14) = unaff_s5" (pointer_expression "*(undefined1 **)((int)register0x00000074 + -0x14)" * (cast_expression "(undefined1 **)((int)register0x00000074 + -0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x14)" ( (binary_expression "(int)register0x00000074 + -0x14" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 **)((int)register0x00000074 + -0x18) = unaff_s4;" (assignment_expression "*(undefined4 **)((int)register0x00000074 + -0x18) = unaff_s4" (pointer_expression "*(undefined4 **)((int)register0x00000074 + -0x18)" * (cast_expression "(undefined4 **)((int)register0x00000074 + -0x18)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x18)" ( (binary_expression "(int)register0x00000074 + -0x18" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)((int)register0x00000074 + -0x1c) = unaff_s3;" (assignment_expression "*(int *)((int)register0x00000074 + -0x1c) = unaff_s3" (pointer_expression "*(int *)((int)register0x00000074 + -0x1c)" * (cast_expression "(int *)((int)register0x00000074 + -0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x1c)" ( (binary_expression "(int)register0x00000074 + -0x1c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x20) = unaff_s2;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x20) = unaff_s2" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x20)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x20)" ( (binary_expression "(int)register0x00000074 + -0x20" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x28) = unaff_s0;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x28) = unaff_s0" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x28)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x28)" ( (binary_expression "(int)register0x00000074 + -0x28" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(byte **)((int)register0x00000074 + 8) = param_3;" (assignment_expression "*(byte **)((int)register0x00000074 + 8) = param_3" (pointer_expression "*(byte **)((int)register0x00000074 + 8)" * (cast_expression "(byte **)((int)register0x00000074 + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + 8)" ( (binary_expression "(int)register0x00000074 + 8" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x2c) = *puVar3;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x2c) = *puVar3" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x2c)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x2c)" ( (binary_expression "(int)register0x00000074 + -0x2c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "uVar4 = (*pcVar9)();" (assignment_expression "uVar4 = (*pcVar9)()" identifier = (call_expression "(*pcVar9)()" (parenthesized_expression "(*pcVar9)" ( (pointer_expression "*pcVar9" * identifier) )) (argument_list "()" ( )))) ;) (expression_statement "iVar11 = *(int *)((int)register0x00000074 + -0x48);" (assignment_expression "iVar11 = *(int *)((int)register0x00000074 + -0x48)" identifier = (pointer_expression "*(int *)((int)register0x00000074 + -0x48)" * (cast_expression "(int *)((int)register0x00000074 + -0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x48)" ( (binary_expression "(int)register0x00000074 + -0x48" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (1 < uVar4) {\n    iVar7 = 0;\n    if (param_1 < pbVar8) {\n      unaff_s2 = 0x7fffffff;\n      *(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2;\n      do {\n        iVar5 = (int)(char)*param_1;\n        if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }\n      } while (param_1 < pbVar8);\n    }\n    goto LAB_00066ae0;\n  }" if (parenthesized_expression "(1 < uVar4)" ( (binary_expression "1 < uVar4" number_literal < identifier) )) (compound_statement "{\n    iVar7 = 0;\n    if (param_1 < pbVar8) {\n      unaff_s2 = 0x7fffffff;\n      *(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2;\n      do {\n        iVar5 = (int)(char)*param_1;\n        if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }\n      } while (param_1 < pbVar8);\n    }\n    goto LAB_00066ae0;\n  }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (if_statement "if (param_1 < pbVar8) {\n      unaff_s2 = 0x7fffffff;\n      *(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2;\n      do {\n        iVar5 = (int)(char)*param_1;\n        if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }\n      } while (param_1 < pbVar8);\n    }" if (parenthesized_expression "(param_1 < pbVar8)" ( (binary_expression "param_1 < pbVar8" identifier < identifier) )) (compound_statement "{\n      unaff_s2 = 0x7fffffff;\n      *(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2;\n      do {\n        iVar5 = (int)(char)*param_1;\n        if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }\n      } while (param_1 < pbVar8);\n    }" { (expression_statement "unaff_s2 = 0x7fffffff;" (assignment_expression "unaff_s2 = 0x7fffffff" identifier = number_literal) ;) (expression_statement "*(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2;" (assignment_expression "*(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2" (pointer_expression "*(uint *)((int)register0x00000074 + -0x40)" * (cast_expression "(uint *)((int)register0x00000074 + -0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x40)" ( (binary_expression "(int)register0x00000074 + -0x40" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(uint *)((int)register0x00000074 + 8) & 2" (pointer_expression "*(uint *)((int)register0x00000074 + 8)" * (cast_expression "(uint *)((int)register0x00000074 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + 8)" ( (binary_expression "(int)register0x00000074 + 8" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal)) ;) (do_statement "do {\n        iVar5 = (int)(char)*param_1;\n        if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }\n      } while (param_1 < pbVar8);" do (compound_statement "{\n        iVar5 = (int)(char)*param_1;\n        if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }\n      }" { (expression_statement "iVar5 = (int)(char)*param_1;" (assignment_expression "iVar5 = (int)(char)*param_1" identifier = (cast_expression "(int)(char)*param_1" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)*param_1" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*param_1" * identifier)))) ;) (if_statement "if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }" if (parenthesized_expression "(iVar5 < 0x40)" ( (binary_expression "iVar5 < 0x40" identifier < number_literal) )) (compound_statement "{\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }" { (if_statement "if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;" if (parenthesized_expression "((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             ))" ( (binary_expression "(0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )" (parenthesized_expression "(0x24 < iVar5)" ( (binary_expression "0x24 < iVar5" number_literal < identifier) )) || (parenthesized_expression "(unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )" ( (comma_expression "unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4" (assignment_expression "unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34)" identifier = (cast_expression "(undefined4 *)((int)register0x00000074 + -0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x34)" ( (binary_expression "(int)register0x00000074 + -0x34" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (binary_expression "(iVar5 - 0x20U & 0xff) < 4" (parenthesized_expression "(iVar5 - 0x20U & 0xff)" ( (binary_expression "iVar5 - 0x20U & 0xff" (binary_expression "iVar5 - 0x20U" identifier - number_literal) & number_literal) )) < number_literal)) ))) )) (goto_statement "goto LAB_00066ad0;" goto statement_identifier ;)) (labeled_statement "LAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);" statement_identifier : (expression_statement "unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);" (assignment_expression "unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34)" identifier = (cast_expression "(undefined4 *)((int)register0x00000074 + -0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x34)" ( (binary_expression "(int)register0x00000074 + -0x34" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;)) (expression_statement "*unaff_s4 = 0;" (assignment_expression "*unaff_s4 = 0" (pointer_expression "*unaff_s4" * identifier) = number_literal) ;) (expression_statement "unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);" (assignment_expression "unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38)" identifier = (cast_expression "(undefined1 *)((int)register0x00000074 + -0x38)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x38)" ( (binary_expression "(int)register0x00000074 + -0x38" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "unaff_s7 = 0xffffffff;" (assignment_expression "unaff_s7 = 0xffffffff" identifier = number_literal) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x30) = 0;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x30) = 0" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x30)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x30)" ( (binary_expression "(int)register0x00000074 + -0x30" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "unaff_s8 = 0xfffffffe;" (assignment_expression "unaff_s8 = 0xfffffffe" identifier = number_literal) ;) (do_statement "do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);" do (compound_statement "{\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          }" { (expression_statement "param_2 = param_1;" (assignment_expression "param_2 = param_1" identifier = identifier) ;) (expression_statement "unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);" (assignment_expression "unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4)" identifier = (call_expression "rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4)" identifier (argument_list "(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4)" ( identifier , identifier , (binary_expression "(int)pbVar8 - (int)param_1" (cast_expression "(int)pbVar8" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) , identifier )))) ;) (expression_statement "iVar11 = *(int *)((int)register0x00000074 + -0x48);" (assignment_expression "iVar11 = *(int *)((int)register0x00000074 + -0x48)" identifier = (pointer_expression "*(int *)((int)register0x00000074 + -0x48)" * (cast_expression "(int *)((int)register0x00000074 + -0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x48)" ( (binary_expression "(int)register0x00000074 + -0x48" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }" if (parenthesized_expression "(unaff_s3 == -1)" ( (binary_expression "unaff_s3 == -1" identifier == number_literal) )) (compound_statement "{\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }" { (if_statement "if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;" if (parenthesized_expression "((*(uint *)((int)register0x00000074 + 8) & 1) != 0)" ( (binary_expression "(*(uint *)((int)register0x00000074 + 8) & 1) != 0" (parenthesized_expression "(*(uint *)((int)register0x00000074 + 8) & 1)" ( (binary_expression "*(uint *)((int)register0x00000074 + 8) & 1" (pointer_expression "*(uint *)((int)register0x00000074 + 8)" * (cast_expression "(uint *)((int)register0x00000074 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + 8)" ( (binary_expression "(int)register0x00000074 + 8" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) != number_literal) )) (goto_statement "goto LAB_00066c90;" goto statement_identifier ;)) (goto_statement "goto LAB_00066ad0;" goto statement_identifier ;) })) (if_statement "if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }" if (parenthesized_expression "(unaff_s3 == -2)" ( (binary_expression "unaff_s3 == -2" identifier == number_literal) )) (compound_statement "{\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }" { (if_statement "if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;" if (parenthesized_expression "((*(uint *)((int)register0x00000074 + 8) & 1) != 0)" ( (binary_expression "(*(uint *)((int)register0x00000074 + 8) & 1) != 0" (parenthesized_expression "(*(uint *)((int)register0x00000074 + 8) & 1)" ( (binary_expression "*(uint *)((int)register0x00000074 + 8) & 1" (pointer_expression "*(uint *)((int)register0x00000074 + 8)" * (cast_expression "(uint *)((int)register0x00000074 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + 8)" ( (binary_expression "(int)register0x00000074 + 8" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) != number_literal) )) (goto_statement "goto LAB_00066c90;" goto statement_identifier ;)) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "param_1 = pbVar8;" (assignment_expression "param_1 = pbVar8" identifier = identifier) ;) (break_statement "break;" break ;) })) (if_statement "if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }" if (parenthesized_expression "(unaff_s3 == 0)" ( (binary_expression "unaff_s3 == 0" identifier == number_literal) )) (compound_statement "{\n              unaff_s3 = 1;\n            }" { (expression_statement "unaff_s3 = 1;" (assignment_expression "unaff_s3 = 1" identifier = number_literal) ;) })) (expression_statement "iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));" (assignment_expression "iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38))" identifier = (call_expression "(**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38))" (parenthesized_expression "(**(code **)(iVar11 + -0x764c))" ( (pointer_expression "**(code **)(iVar11 + -0x764c)" * (pointer_expression "*(code **)(iVar11 + -0x764c)" * (cast_expression "(code **)(iVar11 + -0x764c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + -0x764c)" ( (binary_expression "iVar11 + -0x764c" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)((int)register0x00000074 + -0x38))" ( (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x38)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x38)" ( (binary_expression "(int)register0x00000074 + -0x38" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) )))) ;) (expression_statement "iVar11 = *(int *)((int)register0x00000074 + -0x48);" (assignment_expression "iVar11 = *(int *)((int)register0x00000074 + -0x48)" identifier = (pointer_expression "*(int *)((int)register0x00000074 + -0x48)" * (cast_expression "(int *)((int)register0x00000074 + -0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x48)" ( (binary_expression "(int)register0x00000074 + -0x48" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }" { (if_statement "if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;" if (parenthesized_expression "(*(int *)((int)register0x00000074 + -0x40) != 0)" ( (binary_expression "*(int *)((int)register0x00000074 + -0x40) != 0" (pointer_expression "*(int *)((int)register0x00000074 + -0x40)" * (cast_expression "(int *)((int)register0x00000074 + -0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x40)" ( (binary_expression "(int)register0x00000074 + -0x40" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_00066c90;" goto statement_identifier ;)) (expression_statement "iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));" (assignment_expression "iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38))" identifier = (call_expression "(**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38))" (parenthesized_expression "(**(code **)(iVar11 + -0x7698))" ( (pointer_expression "**(code **)(iVar11 + -0x7698)" * (pointer_expression "*(code **)(iVar11 + -0x7698)" * (cast_expression "(code **)(iVar11 + -0x7698)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + -0x7698)" ( (binary_expression "iVar11 + -0x7698" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)((int)register0x00000074 + -0x38))" ( (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x38)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x38)" ( (binary_expression "(int)register0x00000074 + -0x38" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) )))) ;) (expression_statement "iVar11 = *(int *)((int)register0x00000074 + -0x48);" (assignment_expression "iVar11 = *(int *)((int)register0x00000074 + -0x48)" identifier = (pointer_expression "*(int *)((int)register0x00000074 + -0x48)" * (cast_expression "(int *)((int)register0x00000074 + -0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x48)" ( (binary_expression "(int)register0x00000074 + -0x48" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }" { (if_statement "if (iVar7 == 0x7fffffff) goto LAB_00066cb4;" if (parenthesized_expression "(iVar7 == 0x7fffffff)" ( (binary_expression "iVar7 == 0x7fffffff" identifier == number_literal) )) (goto_statement "goto LAB_00066cb4;" goto statement_identifier ;)) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) })) }) (else_clause "else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }" else (compound_statement "{\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }" { (if_statement "if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }" if (parenthesized_expression "(0x7fffffff - iVar7 < iVar5)" ( (binary_expression "0x7fffffff - iVar7 < iVar5" (binary_expression "0x7fffffff - iVar7" number_literal - identifier) < identifier) )) (compound_statement "{\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }" { (labeled_statement "LAB_00066cb4:\n                iVar7 = 0x7fffffff;" statement_identifier : (expression_statement "iVar7 = 0x7fffffff;" (assignment_expression "iVar7 = 0x7fffffff" identifier = number_literal) ;)) (goto_statement "goto LAB_00066ae0;" goto statement_identifier ;) })) (expression_statement "iVar7 = iVar7 + iVar5;" (assignment_expression "iVar7 = iVar7 + iVar5" identifier = (binary_expression "iVar7 + iVar5" identifier + identifier)) ;) }))) (expression_statement "param_1 = param_1 + unaff_s3;" (assignment_expression "param_1 = param_1 + unaff_s3" identifier = (binary_expression "param_1 + unaff_s3" identifier + identifier)) ;) (expression_statement "iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);" (assignment_expression "iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4)" identifier = (call_expression "(**(code **)(iVar11 + -0x7668))(unaff_s4)" (parenthesized_expression "(**(code **)(iVar11 + -0x7668))" ( (pointer_expression "**(code **)(iVar11 + -0x7668)" * (pointer_expression "*(code **)(iVar11 + -0x7668)" * (cast_expression "(code **)(iVar11 + -0x7668)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + -0x7668)" ( (binary_expression "iVar11 + -0x7668" identifier + number_literal) ))))) )) (argument_list "(unaff_s4)" ( identifier )))) ;) (expression_statement "iVar11 = *(int *)((int)register0x00000074 + -0x48);" (assignment_expression "iVar11 = *(int *)((int)register0x00000074 + -0x48)" identifier = (pointer_expression "*(int *)((int)register0x00000074 + -0x48)" * (cast_expression "(int *)((int)register0x00000074 + -0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x48)" ( (binary_expression "(int)register0x00000074 + -0x48" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) }) while (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) ;) }) (else_clause "else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }" else (compound_statement "{\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }" { (if_statement "if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;" if (parenthesized_expression "((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))" ( (binary_expression "(iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff))))" (parenthesized_expression "(iVar5 < 0x41)" ( (binary_expression "iVar5 < 0x41" identifier < number_literal) )) || (parenthesized_expression "((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff))))" ( (parenthesized_expression "(0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))" ( (binary_expression "0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff))" (binary_expression "0x5f < iVar5" number_literal < identifier) && (parenthesized_expression "(0x1d < (iVar5 - 0x61U & 0xff))" ( (binary_expression "0x1d < (iVar5 - 0x61U & 0xff)" number_literal < (parenthesized_expression "(iVar5 - 0x61U & 0xff)" ( (binary_expression "iVar5 - 0x61U & 0xff" (binary_expression "iVar5 - 0x61U" identifier - number_literal) & number_literal) ))) ))) )) ))) )) (goto_statement "goto LAB_00066b48;" goto statement_identifier ;)) (labeled_statement "LAB_00066ad0:\n          iVar7 = iVar7 + 1;" statement_identifier : (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;)) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) }))) }) while (parenthesized_expression "(param_1 < pbVar8)" ( (binary_expression "param_1 < pbVar8" identifier < identifier) )) ;) })) (goto_statement "goto LAB_00066ae0;" goto statement_identifier ;) })) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (if_statement "if (pbVar8 <= param_1) goto LAB_00066ae0;" if (parenthesized_expression "(pbVar8 <= param_1)" ( (binary_expression "pbVar8 <= param_1" identifier <= identifier) )) (goto_statement "goto LAB_00066ae0;" goto statement_identifier ;)) (expression_statement "piVar6 = (int *)(**(code **)(iVar11 + -0x77c4))();" (assignment_expression "piVar6 = (int *)(**(code **)(iVar11 + -0x77c4))()" identifier = (cast_expression "(int *)(**(code **)(iVar11 + -0x77c4))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(iVar11 + -0x77c4))()" (parenthesized_expression "(**(code **)(iVar11 + -0x77c4))" ( (pointer_expression "**(code **)(iVar11 + -0x77c4)" * (pointer_expression "*(code **)(iVar11 + -0x77c4)" * (cast_expression "(code **)(iVar11 + -0x77c4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + -0x77c4)" ( (binary_expression "iVar11 + -0x77c4" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (expression_statement "param_2 = (byte *)0x7fffffff;" (assignment_expression "param_2 = (byte *)0x7fffffff" identifier = (cast_expression "(byte *)0x7fffffff" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar11 = *(int *)((int)register0x00000074 + -0x48);" (assignment_expression "iVar11 = *(int *)((int)register0x00000074 + -0x48)" identifier = (pointer_expression "*(int *)((int)register0x00000074 + -0x48)" * (cast_expression "(int *)((int)register0x00000074 + -0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x48)" ( (binary_expression "(int)register0x00000074 + -0x48" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "unaff_s4 = (undefined4 *)(*(uint *)((int)register0x00000074 + 8) & 2);" (assignment_expression "unaff_s4 = (undefined4 *)(*(uint *)((int)register0x00000074 + 8) & 2)" identifier = (cast_expression "(undefined4 *)(*(uint *)((int)register0x00000074 + 8) & 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(uint *)((int)register0x00000074 + 8) & 2)" ( (binary_expression "*(uint *)((int)register0x00000074 + 8) & 2" (pointer_expression "*(uint *)((int)register0x00000074 + 8)" * (cast_expression "(uint *)((int)register0x00000074 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + 8)" ( (binary_expression "(int)register0x00000074 + 8" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )))) ;) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" identifier = identifier) ;) (do_statement "do {\n    param_1 = pbVar2 + 1;\n    uVar1 = *(ushort *)(*piVar6 + (uint)*pbVar2 * 2);\n    param_3 = param_2;\n    unaff_s6 = param_1;\n    if ((uVar1 & 0x40) == 0) {\n      if (unaff_s4 != (undefined4 *)0x0) goto LAB_00066c90;\n      if ((uVar1 & 0x200) == 0) goto LAB_00066c5c;\n    }\n    else {\nLAB_00066c5c:\n      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n      if (iVar7 == 0x7fffffff) goto LAB_00066ae4;\n      iVar7 = iVar7 + 1;\n    }\n    pbVar2 = param_1;\n  } while (pbVar8 != param_1);" do (compound_statement "{\n    param_1 = pbVar2 + 1;\n    uVar1 = *(ushort *)(*piVar6 + (uint)*pbVar2 * 2);\n    param_3 = param_2;\n    unaff_s6 = param_1;\n    if ((uVar1 & 0x40) == 0) {\n      if (unaff_s4 != (undefined4 *)0x0) goto LAB_00066c90;\n      if ((uVar1 & 0x200) == 0) goto LAB_00066c5c;\n    }\n    else {\nLAB_00066c5c:\n      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n      if (iVar7 == 0x7fffffff) goto LAB_00066ae4;\n      iVar7 = iVar7 + 1;\n    }\n    pbVar2 = param_1;\n  }" { (expression_statement "param_1 = pbVar2 + 1;" (assignment_expression "param_1 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = *(ushort *)(*piVar6 + (uint)*pbVar2 * 2);" (assignment_expression "uVar1 = *(ushort *)(*piVar6 + (uint)*pbVar2 * 2)" identifier = (pointer_expression "*(ushort *)(*piVar6 + (uint)*pbVar2 * 2)" * (cast_expression "(ushort *)(*piVar6 + (uint)*pbVar2 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar6 + (uint)*pbVar2 * 2)" ( (binary_expression "*piVar6 + (uint)*pbVar2 * 2" (pointer_expression "*piVar6" * identifier) + (binary_expression "(uint)*pbVar2 * 2" (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) ))))) ;) (expression_statement "param_3 = param_2;" (assignment_expression "param_3 = param_2" identifier = identifier) ;) (expression_statement "unaff_s6 = param_1;" (assignment_expression "unaff_s6 = param_1" identifier = identifier) ;) (if_statement "if ((uVar1 & 0x40) == 0) {\n      if (unaff_s4 != (undefined4 *)0x0) goto LAB_00066c90;\n      if ((uVar1 & 0x200) == 0) goto LAB_00066c5c;\n    }\n    else {\nLAB_00066c5c:\n      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n      if (iVar7 == 0x7fffffff) goto LAB_00066ae4;\n      iVar7 = iVar7 + 1;\n    }" if (parenthesized_expression "((uVar1 & 0x40) == 0)" ( (binary_expression "(uVar1 & 0x40) == 0" (parenthesized_expression "(uVar1 & 0x40)" ( (binary_expression "uVar1 & 0x40" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      if (unaff_s4 != (undefined4 *)0x0) goto LAB_00066c90;\n      if ((uVar1 & 0x200) == 0) goto LAB_00066c5c;\n    }" { (if_statement "if (unaff_s4 != (undefined4 *)0x0) goto LAB_00066c90;" if (parenthesized_expression "(unaff_s4 != (undefined4 *)0x0)" ( (binary_expression "unaff_s4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00066c90;" goto statement_identifier ;)) (if_statement "if ((uVar1 & 0x200) == 0) goto LAB_00066c5c;" if (parenthesized_expression "((uVar1 & 0x200) == 0)" ( (binary_expression "(uVar1 & 0x200) == 0" (parenthesized_expression "(uVar1 & 0x200)" ( (binary_expression "uVar1 & 0x200" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_00066c5c;" goto statement_identifier ;)) }) (else_clause "else {\nLAB_00066c5c:\n      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n      if (iVar7 == 0x7fffffff) goto LAB_00066ae4;\n      iVar7 = iVar7 + 1;\n    }" else (compound_statement "{\nLAB_00066c5c:\n      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n      if (iVar7 == 0x7fffffff) goto LAB_00066ae4;\n      iVar7 = iVar7 + 1;\n    }" { (labeled_statement "LAB_00066c5c:\n      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);" statement_identifier : (expression_statement "puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);" (assignment_expression "puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c)" identifier = (pointer_expression "*(undefined4 **)((int)register0x00000074 + -0x3c)" * (cast_expression "(undefined4 **)((int)register0x00000074 + -0x3c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x3c)" ( (binary_expression "(int)register0x00000074 + -0x3c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;)) (if_statement "if (iVar7 == 0x7fffffff) goto LAB_00066ae4;" if (parenthesized_expression "(iVar7 == 0x7fffffff)" ( (binary_expression "iVar7 == 0x7fffffff" identifier == number_literal) )) (goto_statement "goto LAB_00066ae4;" goto statement_identifier ;)) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }))) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" identifier = identifier) ;) }) while (parenthesized_expression "(pbVar8 != param_1)" ( (binary_expression "pbVar8 != param_1" identifier != identifier) )) ;) (expression_statement "puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);" (assignment_expression "puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c)" identifier = (pointer_expression "*(undefined4 **)((int)register0x00000074 + -0x3c)" * (cast_expression "(undefined4 **)((int)register0x00000074 + -0x3c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x3c)" ( (binary_expression "(int)register0x00000074 + -0x3c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (goto_statement "goto LAB_00066ae4;" goto statement_identifier ;) (labeled_statement "LAB_00066c90:\n  iVar7 = -1;" statement_identifier : (expression_statement "iVar7 = -1;" (assignment_expression "iVar7 = -1" identifier = number_literal) ;)) (labeled_statement "LAB_00066ae0:\n  puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);" statement_identifier : (expression_statement "puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);" (assignment_expression "puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c)" identifier = (pointer_expression "*(undefined4 **)((int)register0x00000074 + -0x3c)" * (cast_expression "(undefined4 **)((int)register0x00000074 + -0x3c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x3c)" ( (binary_expression "(int)register0x00000074 + -0x3c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;)) (expression_statement "param_3 = param_2;" (assignment_expression "param_3 = param_2" identifier = identifier) ;) (expression_statement "unaff_s6 = param_1;" (assignment_expression "unaff_s6 = param_1" identifier = identifier) ;) (labeled_statement "LAB_00066ae4:\n  param_1 = *(byte **)((int)register0x00000074 + -0x2c);" statement_identifier : (expression_statement "param_1 = *(byte **)((int)register0x00000074 + -0x2c);" (assignment_expression "param_1 = *(byte **)((int)register0x00000074 + -0x2c)" identifier = (pointer_expression "*(byte **)((int)register0x00000074 + -0x2c)" * (cast_expression "(byte **)((int)register0x00000074 + -0x2c)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x2c)" ( (binary_expression "(int)register0x00000074 + -0x2c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;)) (if_statement "if (param_1 == (byte *)*puVar3) {\n    return iVar7;\n  }" if (parenthesized_expression "(param_1 == (byte *)*puVar3)" ( (binary_expression "param_1 == (byte *)*puVar3" identifier == (cast_expression "(byte *)*puVar3" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) )) (compound_statement "{\n    return iVar7;\n  }" { (return_statement "return iVar7;" return identifier ;) })) (expression_statement "pcVar10 = *(code **)(iVar11 + -0x7688);" (assignment_expression "pcVar10 = *(code **)(iVar11 + -0x7688)" identifier = (pointer_expression "*(code **)(iVar11 + -0x7688)" * (cast_expression "(code **)(iVar11 + -0x7688)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + -0x7688)" ( (binary_expression "iVar11 + -0x7688" identifier + number_literal) ))))) ;) (expression_statement "uVar12 = 0x66ccc;" (assignment_expression "uVar12 = 0x66ccc" identifier = number_literal) ;) (expression_statement "(*pcVar10)();" (call_expression "(*pcVar10)()" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "pcVar9 = *(code **)(pcVar10 + 0x2722c);" (assignment_expression "pcVar9 = *(code **)(pcVar10 + 0x2722c)" identifier = (pointer_expression "*(code **)(pcVar10 + 0x2722c)" * (cast_expression "(code **)(pcVar10 + 0x2722c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar10 + 0x2722c)" ( (binary_expression "pcVar10 + 0x2722c" identifier + number_literal) ))))) ;) (expression_statement "*(byte **)((int)register0x00000074 + -0x60) = pbVar8;" (assignment_expression "*(byte **)((int)register0x00000074 + -0x60) = pbVar8" (pointer_expression "*(byte **)((int)register0x00000074 + -0x60)" * (cast_expression "(byte **)((int)register0x00000074 + -0x60)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x60)" ( (binary_expression "(int)register0x00000074 + -0x60" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)((int)register0x00000074 + -100) = iVar7;" (assignment_expression "*(int *)((int)register0x00000074 + -100) = iVar7" (pointer_expression "*(int *)((int)register0x00000074 + -100)" * (cast_expression "(int *)((int)register0x00000074 + -100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -100)" ( (binary_expression "(int)register0x00000074 + -100" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x5c) = uVar12;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x5c) = uVar12" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x5c)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x5c)" ( (binary_expression "(int)register0x00000074 + -0x5c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(code **)((int)register0x00000074 + -0x70) = pcVar10 + 0x2e924;" (assignment_expression "*(code **)((int)register0x00000074 + -0x70) = pcVar10 + 0x2e924" (pointer_expression "*(code **)((int)register0x00000074 + -0x70)" * (cast_expression "(code **)((int)register0x00000074 + -0x70)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x70)" ( (binary_expression "(int)register0x00000074 + -0x70" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "pcVar10 + 0x2e924" identifier + number_literal)) ;) (expression_statement "param_2 = (byte *)(*pcVar9)();" (assignment_expression "param_2 = (byte *)(*pcVar9)()" identifier = (cast_expression "(byte *)(*pcVar9)()" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*pcVar9)()" (parenthesized_expression "(*pcVar9)" ( (pointer_expression "*pcVar9" * identifier) )) (argument_list "()" ( ))))) ;) (expression_statement "unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x5c);" (assignment_expression "unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x5c)" identifier = (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x5c)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x5c)" ( (binary_expression "(int)register0x00000074 + -0x5c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "unaff_s1 = *(undefined4 *)((int)register0x00000074 + -0x60);" (assignment_expression "unaff_s1 = *(undefined4 *)((int)register0x00000074 + -0x60)" identifier = (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x60)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x60)" ( (binary_expression "(int)register0x00000074 + -0x60" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "unaff_s0 = *(undefined4 *)((int)register0x00000074 + -100);" (assignment_expression "unaff_s0 = *(undefined4 *)((int)register0x00000074 + -100)" identifier = (pointer_expression "*(undefined4 *)((int)register0x00000074 + -100)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -100)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -100)" ( (binary_expression "(int)register0x00000074 + -100" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "pcVar10 = *(code **)(*(int *)((int)register0x00000074 + -0x70) + -0x7c24);" (assignment_expression "pcVar10 = *(code **)(*(int *)((int)register0x00000074 + -0x70) + -0x7c24)" identifier = (pointer_expression "*(code **)(*(int *)((int)register0x00000074 + -0x70) + -0x7c24)" * (cast_expression "(code **)(*(int *)((int)register0x00000074 + -0x70) + -0x7c24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)((int)register0x00000074 + -0x70) + -0x7c24)" ( (binary_expression "*(int *)((int)register0x00000074 + -0x70) + -0x7c24" (pointer_expression "*(int *)((int)register0x00000074 + -0x70)" * (cast_expression "(int *)((int)register0x00000074 + -0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x70)" ( (binary_expression "(int)register0x00000074 + -0x70" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) ))))) ;) (expression_statement "register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x58);" (assignment_expression "register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x58)" identifier = (cast_expression "(BADSPACEBASE *)((int)register0x00000074 + -0x58)" ( (type_descriptor "BADSPACEBASE *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x58)" ( (binary_expression "(int)register0x00000074 + -0x58" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (goto_statement "goto code_r0x00066a10;" goto statement_identifier ;) })))
(translation_unit "int mbsnwidth(char *string,size_t nbytes,int flags)\n\n{\n  bool bVar1;\n  ushort uVar2;\n  char *string_00;\n  uint uVar3;\n  int iVar4;\n  int *piVar5;\n  size_t sVar6;\n  int iVar7;\n  char *pcVar8;\n  char *pcVar9;\n  undefined *puVar10;\n  wchar_t wc;\n  mbstate_t mbstate;\n  \n  puVar10 = PTR___stack_chk_guard_0008df8c;\n  pcVar8 = string + nbytes;\n  string_00 = *(char **)PTR___stack_chk_guard_0008df8c;\n  uVar3 = (*(code *)PTR___ctype_get_mb_cur_max_0008df40)();\n  if (uVar3 < 2) {\n    iVar7 = 0;\n    if (string < pcVar8) {\n      pcVar9 = string + 1;\n      piVar5 = (int *)(*(code *)PTR___ctype_b_loc_0008de2c)();\n      nbytes = 0x7fffffff;\n      do {\n        uVar2 = *(ushort *)(*piVar5 + (uint)(byte)pcVar9[-1] * 2);\n        if ((uVar2 & 0x40) == 0) {\n          if ((flags & 2U) != 0) goto LAB_00066c90;\n          if ((uVar2 & 0x200) == 0) goto LAB_00066c5c;\n        }\n        else {\nLAB_00066c5c:\n          if (iVar7 == 0x7fffffff) break;\n          iVar7 = iVar7 + 1;\n        }\n        bVar1 = pcVar8 != pcVar9;\n        pcVar9 = pcVar9 + 1;\n      } while (bVar1);\n    }\n  }\n  else {\n    iVar7 = 0;\n    if (string < pcVar8) {\n      do {\n        iVar4 = (int)*string;\n        if (iVar4 < 0x40) {\n          if ((0x24 < iVar4) || ((iVar4 - 0x20U & 0xff) < 4)) goto LAB_00066ad0;\nLAB_00066b48:\n          mbstate.__count = 0;\n          mbstate.__value.__wch = 0;\n          do {\n            nbytes = (size_t)string;\n            sVar6 = rpl_mbrtowc(&wc,string,(int)pcVar8 - (int)string,&mbstate);\n            if (sVar6 == 0xffffffff) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (sVar6 == 0xfffffffe) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              string = pcVar8;\n              break;\n            }\n            if (sVar6 == 0) {\n              sVar6 = 1;\n            }\n            iVar4 = (*(code *)PTR_wcwidth_0008dfa4)(wc);\n            if (iVar4 < 0) {\n              if ((flags & 2U) != 0) goto LAB_00066c90;\n              iVar4 = (*(code *)PTR_iswcntrl_0008df58)(wc);\n              if (iVar4 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar4) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae4;\n              }\n              iVar7 = iVar7 + iVar4;\n            }\n            string = string + sVar6;\n            iVar4 = (*(code *)PTR_mbsinit_0008df88)(&mbstate);\n          } while (iVar4 == 0);\n        }\n        else {\n          if ((iVar4 < 0x41) || ((0x5f < iVar4 && (0x1d < (iVar4 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          string = string + 1;\n        }\n      } while (string < pcVar8);\n    }\n  }\nLAB_00066ae4:\n  if (string_00 != *(char **)puVar10) {\n    puVar10 = PTR___stack_chk_fail_0008df68;\n    (*(code *)PTR___stack_chk_fail_0008df68)();\n    sVar6 = (**(code **)(puVar10 + 0x2722c))();\n                    /* WARNING: Subroutine does not return */\n    mbsnwidth(string_00,sVar6,nbytes);\n  }\n  return iVar7;\nLAB_00066c90:\n  iVar7 = -1;\n  goto LAB_00066ae4;\n}\n\n" (function_definition "int mbsnwidth(char *string,size_t nbytes,int flags)\n\n{\n  bool bVar1;\n  ushort uVar2;\n  char *string_00;\n  uint uVar3;\n  int iVar4;\n  int *piVar5;\n  size_t sVar6;\n  int iVar7;\n  char *pcVar8;\n  char *pcVar9;\n  undefined *puVar10;\n  wchar_t wc;\n  mbstate_t mbstate;\n  \n  puVar10 = PTR___stack_chk_guard_0008df8c;\n  pcVar8 = string + nbytes;\n  string_00 = *(char **)PTR___stack_chk_guard_0008df8c;\n  uVar3 = (*(code *)PTR___ctype_get_mb_cur_max_0008df40)();\n  if (uVar3 < 2) {\n    iVar7 = 0;\n    if (string < pcVar8) {\n      pcVar9 = string + 1;\n      piVar5 = (int *)(*(code *)PTR___ctype_b_loc_0008de2c)();\n      nbytes = 0x7fffffff;\n      do {\n        uVar2 = *(ushort *)(*piVar5 + (uint)(byte)pcVar9[-1] * 2);\n        if ((uVar2 & 0x40) == 0) {\n          if ((flags & 2U) != 0) goto LAB_00066c90;\n          if ((uVar2 & 0x200) == 0) goto LAB_00066c5c;\n        }\n        else {\nLAB_00066c5c:\n          if (iVar7 == 0x7fffffff) break;\n          iVar7 = iVar7 + 1;\n        }\n        bVar1 = pcVar8 != pcVar9;\n        pcVar9 = pcVar9 + 1;\n      } while (bVar1);\n    }\n  }\n  else {\n    iVar7 = 0;\n    if (string < pcVar8) {\n      do {\n        iVar4 = (int)*string;\n        if (iVar4 < 0x40) {\n          if ((0x24 < iVar4) || ((iVar4 - 0x20U & 0xff) < 4)) goto LAB_00066ad0;\nLAB_00066b48:\n          mbstate.__count = 0;\n          mbstate.__value.__wch = 0;\n          do {\n            nbytes = (size_t)string;\n            sVar6 = rpl_mbrtowc(&wc,string,(int)pcVar8 - (int)string,&mbstate);\n            if (sVar6 == 0xffffffff) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (sVar6 == 0xfffffffe) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              string = pcVar8;\n              break;\n            }\n            if (sVar6 == 0) {\n              sVar6 = 1;\n            }\n            iVar4 = (*(code *)PTR_wcwidth_0008dfa4)(wc);\n            if (iVar4 < 0) {\n              if ((flags & 2U) != 0) goto LAB_00066c90;\n              iVar4 = (*(code *)PTR_iswcntrl_0008df58)(wc);\n              if (iVar4 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar4) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae4;\n              }\n              iVar7 = iVar7 + iVar4;\n            }\n            string = string + sVar6;\n            iVar4 = (*(code *)PTR_mbsinit_0008df88)(&mbstate);\n          } while (iVar4 == 0);\n        }\n        else {\n          if ((iVar4 < 0x41) || ((0x5f < iVar4 && (0x1d < (iVar4 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          string = string + 1;\n        }\n      } while (string < pcVar8);\n    }\n  }\nLAB_00066ae4:\n  if (string_00 != *(char **)puVar10) {\n    puVar10 = PTR___stack_chk_fail_0008df68;\n    (*(code *)PTR___stack_chk_fail_0008df68)();\n    sVar6 = (**(code **)(puVar10 + 0x2722c))();\n                    /* WARNING: Subroutine does not return */\n    mbsnwidth(string_00,sVar6,nbytes);\n  }\n  return iVar7;\nLAB_00066c90:\n  iVar7 = -1;\n  goto LAB_00066ae4;\n}" primitive_type (function_declarator "mbsnwidth(char *string,size_t nbytes,int flags)" identifier (parameter_list "(char *string,size_t nbytes,int flags)" ( (parameter_declaration "char *string" primitive_type (pointer_declarator "*string" * identifier)) , (parameter_declaration "size_t nbytes" primitive_type identifier) , (parameter_declaration "int flags" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  ushort uVar2;\n  char *string_00;\n  uint uVar3;\n  int iVar4;\n  int *piVar5;\n  size_t sVar6;\n  int iVar7;\n  char *pcVar8;\n  char *pcVar9;\n  undefined *puVar10;\n  wchar_t wc;\n  mbstate_t mbstate;\n  \n  puVar10 = PTR___stack_chk_guard_0008df8c;\n  pcVar8 = string + nbytes;\n  string_00 = *(char **)PTR___stack_chk_guard_0008df8c;\n  uVar3 = (*(code *)PTR___ctype_get_mb_cur_max_0008df40)();\n  if (uVar3 < 2) {\n    iVar7 = 0;\n    if (string < pcVar8) {\n      pcVar9 = string + 1;\n      piVar5 = (int *)(*(code *)PTR___ctype_b_loc_0008de2c)();\n      nbytes = 0x7fffffff;\n      do {\n        uVar2 = *(ushort *)(*piVar5 + (uint)(byte)pcVar9[-1] * 2);\n        if ((uVar2 & 0x40) == 0) {\n          if ((flags & 2U) != 0) goto LAB_00066c90;\n          if ((uVar2 & 0x200) == 0) goto LAB_00066c5c;\n        }\n        else {\nLAB_00066c5c:\n          if (iVar7 == 0x7fffffff) break;\n          iVar7 = iVar7 + 1;\n        }\n        bVar1 = pcVar8 != pcVar9;\n        pcVar9 = pcVar9 + 1;\n      } while (bVar1);\n    }\n  }\n  else {\n    iVar7 = 0;\n    if (string < pcVar8) {\n      do {\n        iVar4 = (int)*string;\n        if (iVar4 < 0x40) {\n          if ((0x24 < iVar4) || ((iVar4 - 0x20U & 0xff) < 4)) goto LAB_00066ad0;\nLAB_00066b48:\n          mbstate.__count = 0;\n          mbstate.__value.__wch = 0;\n          do {\n            nbytes = (size_t)string;\n            sVar6 = rpl_mbrtowc(&wc,string,(int)pcVar8 - (int)string,&mbstate);\n            if (sVar6 == 0xffffffff) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (sVar6 == 0xfffffffe) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              string = pcVar8;\n              break;\n            }\n            if (sVar6 == 0) {\n              sVar6 = 1;\n            }\n            iVar4 = (*(code *)PTR_wcwidth_0008dfa4)(wc);\n            if (iVar4 < 0) {\n              if ((flags & 2U) != 0) goto LAB_00066c90;\n              iVar4 = (*(code *)PTR_iswcntrl_0008df58)(wc);\n              if (iVar4 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar4) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae4;\n              }\n              iVar7 = iVar7 + iVar4;\n            }\n            string = string + sVar6;\n            iVar4 = (*(code *)PTR_mbsinit_0008df88)(&mbstate);\n          } while (iVar4 == 0);\n        }\n        else {\n          if ((iVar4 < 0x41) || ((0x5f < iVar4 && (0x1d < (iVar4 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          string = string + 1;\n        }\n      } while (string < pcVar8);\n    }\n  }\nLAB_00066ae4:\n  if (string_00 != *(char **)puVar10) {\n    puVar10 = PTR___stack_chk_fail_0008df68;\n    (*(code *)PTR___stack_chk_fail_0008df68)();\n    sVar6 = (**(code **)(puVar10 + 0x2722c))();\n                    /* WARNING: Subroutine does not return */\n    mbsnwidth(string_00,sVar6,nbytes);\n  }\n  return iVar7;\nLAB_00066c90:\n  iVar7 = -1;\n  goto LAB_00066ae4;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "ushort uVar2;" type_identifier identifier ;) (declaration "char *string_00;" primitive_type (pointer_declarator "*string_00" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "wchar_t wc;" type_identifier identifier ;) (declaration "mbstate_t mbstate;" type_identifier identifier ;) (expression_statement "puVar10 = PTR___stack_chk_guard_0008df8c;" (assignment_expression "puVar10 = PTR___stack_chk_guard_0008df8c" identifier = identifier) ;) (expression_statement "pcVar8 = string + nbytes;" (assignment_expression "pcVar8 = string + nbytes" identifier = (binary_expression "string + nbytes" identifier + identifier)) ;) (expression_statement "string_00 = *(char **)PTR___stack_chk_guard_0008df8c;" (assignment_expression "string_00 = *(char **)PTR___stack_chk_guard_0008df8c" identifier = (pointer_expression "*(char **)PTR___stack_chk_guard_0008df8c" * (cast_expression "(char **)PTR___stack_chk_guard_0008df8c" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "uVar3 = (*(code *)PTR___ctype_get_mb_cur_max_0008df40)();" (assignment_expression "uVar3 = (*(code *)PTR___ctype_get_mb_cur_max_0008df40)()" identifier = (call_expression "(*(code *)PTR___ctype_get_mb_cur_max_0008df40)()" (parenthesized_expression "(*(code *)PTR___ctype_get_mb_cur_max_0008df40)" ( (pointer_expression "*(code *)PTR___ctype_get_mb_cur_max_0008df40" * (cast_expression "(code *)PTR___ctype_get_mb_cur_max_0008df40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (uVar3 < 2) {\n    iVar7 = 0;\n    if (string < pcVar8) {\n      pcVar9 = string + 1;\n      piVar5 = (int *)(*(code *)PTR___ctype_b_loc_0008de2c)();\n      nbytes = 0x7fffffff;\n      do {\n        uVar2 = *(ushort *)(*piVar5 + (uint)(byte)pcVar9[-1] * 2);\n        if ((uVar2 & 0x40) == 0) {\n          if ((flags & 2U) != 0) goto LAB_00066c90;\n          if ((uVar2 & 0x200) == 0) goto LAB_00066c5c;\n        }\n        else {\nLAB_00066c5c:\n          if (iVar7 == 0x7fffffff) break;\n          iVar7 = iVar7 + 1;\n        }\n        bVar1 = pcVar8 != pcVar9;\n        pcVar9 = pcVar9 + 1;\n      } while (bVar1);\n    }\n  }\n  else {\n    iVar7 = 0;\n    if (string < pcVar8) {\n      do {\n        iVar4 = (int)*string;\n        if (iVar4 < 0x40) {\n          if ((0x24 < iVar4) || ((iVar4 - 0x20U & 0xff) < 4)) goto LAB_00066ad0;\nLAB_00066b48:\n          mbstate.__count = 0;\n          mbstate.__value.__wch = 0;\n          do {\n            nbytes = (size_t)string;\n            sVar6 = rpl_mbrtowc(&wc,string,(int)pcVar8 - (int)string,&mbstate);\n            if (sVar6 == 0xffffffff) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (sVar6 == 0xfffffffe) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              string = pcVar8;\n              break;\n            }\n            if (sVar6 == 0) {\n              sVar6 = 1;\n            }\n            iVar4 = (*(code *)PTR_wcwidth_0008dfa4)(wc);\n            if (iVar4 < 0) {\n              if ((flags & 2U) != 0) goto LAB_00066c90;\n              iVar4 = (*(code *)PTR_iswcntrl_0008df58)(wc);\n              if (iVar4 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar4) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae4;\n              }\n              iVar7 = iVar7 + iVar4;\n            }\n            string = string + sVar6;\n            iVar4 = (*(code *)PTR_mbsinit_0008df88)(&mbstate);\n          } while (iVar4 == 0);\n        }\n        else {\n          if ((iVar4 < 0x41) || ((0x5f < iVar4 && (0x1d < (iVar4 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          string = string + 1;\n        }\n      } while (string < pcVar8);\n    }\n  }" if (parenthesized_expression "(uVar3 < 2)" ( (binary_expression "uVar3 < 2" identifier < number_literal) )) (compound_statement "{\n    iVar7 = 0;\n    if (string < pcVar8) {\n      pcVar9 = string + 1;\n      piVar5 = (int *)(*(code *)PTR___ctype_b_loc_0008de2c)();\n      nbytes = 0x7fffffff;\n      do {\n        uVar2 = *(ushort *)(*piVar5 + (uint)(byte)pcVar9[-1] * 2);\n        if ((uVar2 & 0x40) == 0) {\n          if ((flags & 2U) != 0) goto LAB_00066c90;\n          if ((uVar2 & 0x200) == 0) goto LAB_00066c5c;\n        }\n        else {\nLAB_00066c5c:\n          if (iVar7 == 0x7fffffff) break;\n          iVar7 = iVar7 + 1;\n        }\n        bVar1 = pcVar8 != pcVar9;\n        pcVar9 = pcVar9 + 1;\n      } while (bVar1);\n    }\n  }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (if_statement "if (string < pcVar8) {\n      pcVar9 = string + 1;\n      piVar5 = (int *)(*(code *)PTR___ctype_b_loc_0008de2c)();\n      nbytes = 0x7fffffff;\n      do {\n        uVar2 = *(ushort *)(*piVar5 + (uint)(byte)pcVar9[-1] * 2);\n        if ((uVar2 & 0x40) == 0) {\n          if ((flags & 2U) != 0) goto LAB_00066c90;\n          if ((uVar2 & 0x200) == 0) goto LAB_00066c5c;\n        }\n        else {\nLAB_00066c5c:\n          if (iVar7 == 0x7fffffff) break;\n          iVar7 = iVar7 + 1;\n        }\n        bVar1 = pcVar8 != pcVar9;\n        pcVar9 = pcVar9 + 1;\n      } while (bVar1);\n    }" if (parenthesized_expression "(string < pcVar8)" ( (binary_expression "string < pcVar8" identifier < identifier) )) (compound_statement "{\n      pcVar9 = string + 1;\n      piVar5 = (int *)(*(code *)PTR___ctype_b_loc_0008de2c)();\n      nbytes = 0x7fffffff;\n      do {\n        uVar2 = *(ushort *)(*piVar5 + (uint)(byte)pcVar9[-1] * 2);\n        if ((uVar2 & 0x40) == 0) {\n          if ((flags & 2U) != 0) goto LAB_00066c90;\n          if ((uVar2 & 0x200) == 0) goto LAB_00066c5c;\n        }\n        else {\nLAB_00066c5c:\n          if (iVar7 == 0x7fffffff) break;\n          iVar7 = iVar7 + 1;\n        }\n        bVar1 = pcVar8 != pcVar9;\n        pcVar9 = pcVar9 + 1;\n      } while (bVar1);\n    }" { (expression_statement "pcVar9 = string + 1;" (assignment_expression "pcVar9 = string + 1" identifier = (binary_expression "string + 1" identifier + number_literal)) ;) (expression_statement "piVar5 = (int *)(*(code *)PTR___ctype_b_loc_0008de2c)();" (assignment_expression "piVar5 = (int *)(*(code *)PTR___ctype_b_loc_0008de2c)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_0008de2c)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_0008de2c)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_0008de2c)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_0008de2c" * (cast_expression "(code *)PTR___ctype_b_loc_0008de2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "nbytes = 0x7fffffff;" (assignment_expression "nbytes = 0x7fffffff" identifier = number_literal) ;) (do_statement "do {\n        uVar2 = *(ushort *)(*piVar5 + (uint)(byte)pcVar9[-1] * 2);\n        if ((uVar2 & 0x40) == 0) {\n          if ((flags & 2U) != 0) goto LAB_00066c90;\n          if ((uVar2 & 0x200) == 0) goto LAB_00066c5c;\n        }\n        else {\nLAB_00066c5c:\n          if (iVar7 == 0x7fffffff) break;\n          iVar7 = iVar7 + 1;\n        }\n        bVar1 = pcVar8 != pcVar9;\n        pcVar9 = pcVar9 + 1;\n      } while (bVar1);" do (compound_statement "{\n        uVar2 = *(ushort *)(*piVar5 + (uint)(byte)pcVar9[-1] * 2);\n        if ((uVar2 & 0x40) == 0) {\n          if ((flags & 2U) != 0) goto LAB_00066c90;\n          if ((uVar2 & 0x200) == 0) goto LAB_00066c5c;\n        }\n        else {\nLAB_00066c5c:\n          if (iVar7 == 0x7fffffff) break;\n          iVar7 = iVar7 + 1;\n        }\n        bVar1 = pcVar8 != pcVar9;\n        pcVar9 = pcVar9 + 1;\n      }" { (expression_statement "uVar2 = *(ushort *)(*piVar5 + (uint)(byte)pcVar9[-1] * 2);" (assignment_expression "uVar2 = *(ushort *)(*piVar5 + (uint)(byte)pcVar9[-1] * 2)" identifier = (pointer_expression "*(ushort *)(*piVar5 + (uint)(byte)pcVar9[-1] * 2)" * (cast_expression "(ushort *)(*piVar5 + (uint)(byte)pcVar9[-1] * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar5 + (uint)(byte)pcVar9[-1] * 2)" ( (binary_expression "*piVar5 + (uint)(byte)pcVar9[-1] * 2" (pointer_expression "*piVar5" * identifier) + (binary_expression "(uint)(byte)pcVar9[-1] * 2" (cast_expression "(uint)(byte)pcVar9[-1]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)pcVar9[-1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "pcVar9[-1]" identifier [ number_literal ]))) * number_literal)) ))))) ;) (if_statement "if ((uVar2 & 0x40) == 0) {\n          if ((flags & 2U) != 0) goto LAB_00066c90;\n          if ((uVar2 & 0x200) == 0) goto LAB_00066c5c;\n        }\n        else {\nLAB_00066c5c:\n          if (iVar7 == 0x7fffffff) break;\n          iVar7 = iVar7 + 1;\n        }" if (parenthesized_expression "((uVar2 & 0x40) == 0)" ( (binary_expression "(uVar2 & 0x40) == 0" (parenthesized_expression "(uVar2 & 0x40)" ( (binary_expression "uVar2 & 0x40" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n          if ((flags & 2U) != 0) goto LAB_00066c90;\n          if ((uVar2 & 0x200) == 0) goto LAB_00066c5c;\n        }" { (if_statement "if ((flags & 2U) != 0) goto LAB_00066c90;" if (parenthesized_expression "((flags & 2U) != 0)" ( (binary_expression "(flags & 2U) != 0" (parenthesized_expression "(flags & 2U)" ( (binary_expression "flags & 2U" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_00066c90;" goto statement_identifier ;)) (if_statement "if ((uVar2 & 0x200) == 0) goto LAB_00066c5c;" if (parenthesized_expression "((uVar2 & 0x200) == 0)" ( (binary_expression "(uVar2 & 0x200) == 0" (parenthesized_expression "(uVar2 & 0x200)" ( (binary_expression "uVar2 & 0x200" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_00066c5c;" goto statement_identifier ;)) }) (else_clause "else {\nLAB_00066c5c:\n          if (iVar7 == 0x7fffffff) break;\n          iVar7 = iVar7 + 1;\n        }" else (compound_statement "{\nLAB_00066c5c:\n          if (iVar7 == 0x7fffffff) break;\n          iVar7 = iVar7 + 1;\n        }" { (labeled_statement "LAB_00066c5c:\n          if (iVar7 == 0x7fffffff) break;" statement_identifier : (if_statement "if (iVar7 == 0x7fffffff) break;" if (parenthesized_expression "(iVar7 == 0x7fffffff)" ( (binary_expression "iVar7 == 0x7fffffff" identifier == number_literal) )) (break_statement "break;" break ;))) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }))) (expression_statement "bVar1 = pcVar8 != pcVar9;" (assignment_expression "bVar1 = pcVar8 != pcVar9" identifier = (binary_expression "pcVar8 != pcVar9" identifier != identifier)) ;) (expression_statement "pcVar9 = pcVar9 + 1;" (assignment_expression "pcVar9 = pcVar9 + 1" identifier = (binary_expression "pcVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar1)" ( identifier )) ;) })) }) (else_clause "else {\n    iVar7 = 0;\n    if (string < pcVar8) {\n      do {\n        iVar4 = (int)*string;\n        if (iVar4 < 0x40) {\n          if ((0x24 < iVar4) || ((iVar4 - 0x20U & 0xff) < 4)) goto LAB_00066ad0;\nLAB_00066b48:\n          mbstate.__count = 0;\n          mbstate.__value.__wch = 0;\n          do {\n            nbytes = (size_t)string;\n            sVar6 = rpl_mbrtowc(&wc,string,(int)pcVar8 - (int)string,&mbstate);\n            if (sVar6 == 0xffffffff) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (sVar6 == 0xfffffffe) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              string = pcVar8;\n              break;\n            }\n            if (sVar6 == 0) {\n              sVar6 = 1;\n            }\n            iVar4 = (*(code *)PTR_wcwidth_0008dfa4)(wc);\n            if (iVar4 < 0) {\n              if ((flags & 2U) != 0) goto LAB_00066c90;\n              iVar4 = (*(code *)PTR_iswcntrl_0008df58)(wc);\n              if (iVar4 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar4) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae4;\n              }\n              iVar7 = iVar7 + iVar4;\n            }\n            string = string + sVar6;\n            iVar4 = (*(code *)PTR_mbsinit_0008df88)(&mbstate);\n          } while (iVar4 == 0);\n        }\n        else {\n          if ((iVar4 < 0x41) || ((0x5f < iVar4 && (0x1d < (iVar4 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          string = string + 1;\n        }\n      } while (string < pcVar8);\n    }\n  }" else (compound_statement "{\n    iVar7 = 0;\n    if (string < pcVar8) {\n      do {\n        iVar4 = (int)*string;\n        if (iVar4 < 0x40) {\n          if ((0x24 < iVar4) || ((iVar4 - 0x20U & 0xff) < 4)) goto LAB_00066ad0;\nLAB_00066b48:\n          mbstate.__count = 0;\n          mbstate.__value.__wch = 0;\n          do {\n            nbytes = (size_t)string;\n            sVar6 = rpl_mbrtowc(&wc,string,(int)pcVar8 - (int)string,&mbstate);\n            if (sVar6 == 0xffffffff) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (sVar6 == 0xfffffffe) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              string = pcVar8;\n              break;\n            }\n            if (sVar6 == 0) {\n              sVar6 = 1;\n            }\n            iVar4 = (*(code *)PTR_wcwidth_0008dfa4)(wc);\n            if (iVar4 < 0) {\n              if ((flags & 2U) != 0) goto LAB_00066c90;\n              iVar4 = (*(code *)PTR_iswcntrl_0008df58)(wc);\n              if (iVar4 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar4) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae4;\n              }\n              iVar7 = iVar7 + iVar4;\n            }\n            string = string + sVar6;\n            iVar4 = (*(code *)PTR_mbsinit_0008df88)(&mbstate);\n          } while (iVar4 == 0);\n        }\n        else {\n          if ((iVar4 < 0x41) || ((0x5f < iVar4 && (0x1d < (iVar4 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          string = string + 1;\n        }\n      } while (string < pcVar8);\n    }\n  }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (if_statement "if (string < pcVar8) {\n      do {\n        iVar4 = (int)*string;\n        if (iVar4 < 0x40) {\n          if ((0x24 < iVar4) || ((iVar4 - 0x20U & 0xff) < 4)) goto LAB_00066ad0;\nLAB_00066b48:\n          mbstate.__count = 0;\n          mbstate.__value.__wch = 0;\n          do {\n            nbytes = (size_t)string;\n            sVar6 = rpl_mbrtowc(&wc,string,(int)pcVar8 - (int)string,&mbstate);\n            if (sVar6 == 0xffffffff) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (sVar6 == 0xfffffffe) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              string = pcVar8;\n              break;\n            }\n            if (sVar6 == 0) {\n              sVar6 = 1;\n            }\n            iVar4 = (*(code *)PTR_wcwidth_0008dfa4)(wc);\n            if (iVar4 < 0) {\n              if ((flags & 2U) != 0) goto LAB_00066c90;\n              iVar4 = (*(code *)PTR_iswcntrl_0008df58)(wc);\n              if (iVar4 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar4) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae4;\n              }\n              iVar7 = iVar7 + iVar4;\n            }\n            string = string + sVar6;\n            iVar4 = (*(code *)PTR_mbsinit_0008df88)(&mbstate);\n          } while (iVar4 == 0);\n        }\n        else {\n          if ((iVar4 < 0x41) || ((0x5f < iVar4 && (0x1d < (iVar4 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          string = string + 1;\n        }\n      } while (string < pcVar8);\n    }" if (parenthesized_expression "(string < pcVar8)" ( (binary_expression "string < pcVar8" identifier < identifier) )) (compound_statement "{\n      do {\n        iVar4 = (int)*string;\n        if (iVar4 < 0x40) {\n          if ((0x24 < iVar4) || ((iVar4 - 0x20U & 0xff) < 4)) goto LAB_00066ad0;\nLAB_00066b48:\n          mbstate.__count = 0;\n          mbstate.__value.__wch = 0;\n          do {\n            nbytes = (size_t)string;\n            sVar6 = rpl_mbrtowc(&wc,string,(int)pcVar8 - (int)string,&mbstate);\n            if (sVar6 == 0xffffffff) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (sVar6 == 0xfffffffe) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              string = pcVar8;\n              break;\n            }\n            if (sVar6 == 0) {\n              sVar6 = 1;\n            }\n            iVar4 = (*(code *)PTR_wcwidth_0008dfa4)(wc);\n            if (iVar4 < 0) {\n              if ((flags & 2U) != 0) goto LAB_00066c90;\n              iVar4 = (*(code *)PTR_iswcntrl_0008df58)(wc);\n              if (iVar4 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar4) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae4;\n              }\n              iVar7 = iVar7 + iVar4;\n            }\n            string = string + sVar6;\n            iVar4 = (*(code *)PTR_mbsinit_0008df88)(&mbstate);\n          } while (iVar4 == 0);\n        }\n        else {\n          if ((iVar4 < 0x41) || ((0x5f < iVar4 && (0x1d < (iVar4 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          string = string + 1;\n        }\n      } while (string < pcVar8);\n    }" { (do_statement "do {\n        iVar4 = (int)*string;\n        if (iVar4 < 0x40) {\n          if ((0x24 < iVar4) || ((iVar4 - 0x20U & 0xff) < 4)) goto LAB_00066ad0;\nLAB_00066b48:\n          mbstate.__count = 0;\n          mbstate.__value.__wch = 0;\n          do {\n            nbytes = (size_t)string;\n            sVar6 = rpl_mbrtowc(&wc,string,(int)pcVar8 - (int)string,&mbstate);\n            if (sVar6 == 0xffffffff) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (sVar6 == 0xfffffffe) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              string = pcVar8;\n              break;\n            }\n            if (sVar6 == 0) {\n              sVar6 = 1;\n            }\n            iVar4 = (*(code *)PTR_wcwidth_0008dfa4)(wc);\n            if (iVar4 < 0) {\n              if ((flags & 2U) != 0) goto LAB_00066c90;\n              iVar4 = (*(code *)PTR_iswcntrl_0008df58)(wc);\n              if (iVar4 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar4) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae4;\n              }\n              iVar7 = iVar7 + iVar4;\n            }\n            string = string + sVar6;\n            iVar4 = (*(code *)PTR_mbsinit_0008df88)(&mbstate);\n          } while (iVar4 == 0);\n        }\n        else {\n          if ((iVar4 < 0x41) || ((0x5f < iVar4 && (0x1d < (iVar4 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          string = string + 1;\n        }\n      } while (string < pcVar8);" do (compound_statement "{\n        iVar4 = (int)*string;\n        if (iVar4 < 0x40) {\n          if ((0x24 < iVar4) || ((iVar4 - 0x20U & 0xff) < 4)) goto LAB_00066ad0;\nLAB_00066b48:\n          mbstate.__count = 0;\n          mbstate.__value.__wch = 0;\n          do {\n            nbytes = (size_t)string;\n            sVar6 = rpl_mbrtowc(&wc,string,(int)pcVar8 - (int)string,&mbstate);\n            if (sVar6 == 0xffffffff) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (sVar6 == 0xfffffffe) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              string = pcVar8;\n              break;\n            }\n            if (sVar6 == 0) {\n              sVar6 = 1;\n            }\n            iVar4 = (*(code *)PTR_wcwidth_0008dfa4)(wc);\n            if (iVar4 < 0) {\n              if ((flags & 2U) != 0) goto LAB_00066c90;\n              iVar4 = (*(code *)PTR_iswcntrl_0008df58)(wc);\n              if (iVar4 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar4) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae4;\n              }\n              iVar7 = iVar7 + iVar4;\n            }\n            string = string + sVar6;\n            iVar4 = (*(code *)PTR_mbsinit_0008df88)(&mbstate);\n          } while (iVar4 == 0);\n        }\n        else {\n          if ((iVar4 < 0x41) || ((0x5f < iVar4 && (0x1d < (iVar4 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          string = string + 1;\n        }\n      }" { (expression_statement "iVar4 = (int)*string;" (assignment_expression "iVar4 = (int)*string" identifier = (cast_expression "(int)*string" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*string" * identifier))) ;) (if_statement "if (iVar4 < 0x40) {\n          if ((0x24 < iVar4) || ((iVar4 - 0x20U & 0xff) < 4)) goto LAB_00066ad0;\nLAB_00066b48:\n          mbstate.__count = 0;\n          mbstate.__value.__wch = 0;\n          do {\n            nbytes = (size_t)string;\n            sVar6 = rpl_mbrtowc(&wc,string,(int)pcVar8 - (int)string,&mbstate);\n            if (sVar6 == 0xffffffff) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (sVar6 == 0xfffffffe) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              string = pcVar8;\n              break;\n            }\n            if (sVar6 == 0) {\n              sVar6 = 1;\n            }\n            iVar4 = (*(code *)PTR_wcwidth_0008dfa4)(wc);\n            if (iVar4 < 0) {\n              if ((flags & 2U) != 0) goto LAB_00066c90;\n              iVar4 = (*(code *)PTR_iswcntrl_0008df58)(wc);\n              if (iVar4 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar4) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae4;\n              }\n              iVar7 = iVar7 + iVar4;\n            }\n            string = string + sVar6;\n            iVar4 = (*(code *)PTR_mbsinit_0008df88)(&mbstate);\n          } while (iVar4 == 0);\n        }\n        else {\n          if ((iVar4 < 0x41) || ((0x5f < iVar4 && (0x1d < (iVar4 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          string = string + 1;\n        }" if (parenthesized_expression "(iVar4 < 0x40)" ( (binary_expression "iVar4 < 0x40" identifier < number_literal) )) (compound_statement "{\n          if ((0x24 < iVar4) || ((iVar4 - 0x20U & 0xff) < 4)) goto LAB_00066ad0;\nLAB_00066b48:\n          mbstate.__count = 0;\n          mbstate.__value.__wch = 0;\n          do {\n            nbytes = (size_t)string;\n            sVar6 = rpl_mbrtowc(&wc,string,(int)pcVar8 - (int)string,&mbstate);\n            if (sVar6 == 0xffffffff) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (sVar6 == 0xfffffffe) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              string = pcVar8;\n              break;\n            }\n            if (sVar6 == 0) {\n              sVar6 = 1;\n            }\n            iVar4 = (*(code *)PTR_wcwidth_0008dfa4)(wc);\n            if (iVar4 < 0) {\n              if ((flags & 2U) != 0) goto LAB_00066c90;\n              iVar4 = (*(code *)PTR_iswcntrl_0008df58)(wc);\n              if (iVar4 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar4) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae4;\n              }\n              iVar7 = iVar7 + iVar4;\n            }\n            string = string + sVar6;\n            iVar4 = (*(code *)PTR_mbsinit_0008df88)(&mbstate);\n          } while (iVar4 == 0);\n        }" { (if_statement "if ((0x24 < iVar4) || ((iVar4 - 0x20U & 0xff) < 4)) goto LAB_00066ad0;" if (parenthesized_expression "((0x24 < iVar4) || ((iVar4 - 0x20U & 0xff) < 4))" ( (binary_expression "(0x24 < iVar4) || ((iVar4 - 0x20U & 0xff) < 4)" (parenthesized_expression "(0x24 < iVar4)" ( (binary_expression "0x24 < iVar4" number_literal < identifier) )) || (parenthesized_expression "((iVar4 - 0x20U & 0xff) < 4)" ( (binary_expression "(iVar4 - 0x20U & 0xff) < 4" (parenthesized_expression "(iVar4 - 0x20U & 0xff)" ( (binary_expression "iVar4 - 0x20U & 0xff" (binary_expression "iVar4 - 0x20U" identifier - number_literal) & number_literal) )) < number_literal) ))) )) (goto_statement "goto LAB_00066ad0;" goto statement_identifier ;)) (labeled_statement "LAB_00066b48:\n          mbstate.__count = 0;" statement_identifier : (expression_statement "mbstate.__count = 0;" (assignment_expression "mbstate.__count = 0" (field_expression "mbstate.__count" identifier . field_identifier) = number_literal) ;)) (expression_statement "mbstate.__value.__wch = 0;" (assignment_expression "mbstate.__value.__wch = 0" (field_expression "mbstate.__value.__wch" (field_expression "mbstate.__value" identifier . field_identifier) . field_identifier) = number_literal) ;) (do_statement "do {\n            nbytes = (size_t)string;\n            sVar6 = rpl_mbrtowc(&wc,string,(int)pcVar8 - (int)string,&mbstate);\n            if (sVar6 == 0xffffffff) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (sVar6 == 0xfffffffe) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              string = pcVar8;\n              break;\n            }\n            if (sVar6 == 0) {\n              sVar6 = 1;\n            }\n            iVar4 = (*(code *)PTR_wcwidth_0008dfa4)(wc);\n            if (iVar4 < 0) {\n              if ((flags & 2U) != 0) goto LAB_00066c90;\n              iVar4 = (*(code *)PTR_iswcntrl_0008df58)(wc);\n              if (iVar4 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar4) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae4;\n              }\n              iVar7 = iVar7 + iVar4;\n            }\n            string = string + sVar6;\n            iVar4 = (*(code *)PTR_mbsinit_0008df88)(&mbstate);\n          } while (iVar4 == 0);" do (compound_statement "{\n            nbytes = (size_t)string;\n            sVar6 = rpl_mbrtowc(&wc,string,(int)pcVar8 - (int)string,&mbstate);\n            if (sVar6 == 0xffffffff) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (sVar6 == 0xfffffffe) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              string = pcVar8;\n              break;\n            }\n            if (sVar6 == 0) {\n              sVar6 = 1;\n            }\n            iVar4 = (*(code *)PTR_wcwidth_0008dfa4)(wc);\n            if (iVar4 < 0) {\n              if ((flags & 2U) != 0) goto LAB_00066c90;\n              iVar4 = (*(code *)PTR_iswcntrl_0008df58)(wc);\n              if (iVar4 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar4) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae4;\n              }\n              iVar7 = iVar7 + iVar4;\n            }\n            string = string + sVar6;\n            iVar4 = (*(code *)PTR_mbsinit_0008df88)(&mbstate);\n          }" { (expression_statement "nbytes = (size_t)string;" (assignment_expression "nbytes = (size_t)string" identifier = (cast_expression "(size_t)string" ( (type_descriptor "size_t" primitive_type) ) identifier)) ;) (expression_statement "sVar6 = rpl_mbrtowc(&wc,string,(int)pcVar8 - (int)string,&mbstate);" (assignment_expression "sVar6 = rpl_mbrtowc(&wc,string,(int)pcVar8 - (int)string,&mbstate)" identifier = (call_expression "rpl_mbrtowc(&wc,string,(int)pcVar8 - (int)string,&mbstate)" identifier (argument_list "(&wc,string,(int)pcVar8 - (int)string,&mbstate)" ( (pointer_expression "&wc" & identifier) , identifier , (binary_expression "(int)pcVar8 - (int)string" (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)string" ( (type_descriptor "int" primitive_type) ) identifier)) , (pointer_expression "&mbstate" & identifier) )))) ;) (if_statement "if (sVar6 == 0xffffffff) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }" if (parenthesized_expression "(sVar6 == 0xffffffff)" ( (binary_expression "sVar6 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }" { (if_statement "if ((flags & 1U) != 0) goto LAB_00066c90;" if (parenthesized_expression "((flags & 1U) != 0)" ( (binary_expression "(flags & 1U) != 0" (parenthesized_expression "(flags & 1U)" ( (binary_expression "flags & 1U" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_00066c90;" goto statement_identifier ;)) (goto_statement "goto LAB_00066ad0;" goto statement_identifier ;) })) (if_statement "if (sVar6 == 0xfffffffe) {\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              string = pcVar8;\n              break;\n            }" if (parenthesized_expression "(sVar6 == 0xfffffffe)" ( (binary_expression "sVar6 == 0xfffffffe" identifier == number_literal) )) (compound_statement "{\n              if ((flags & 1U) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              string = pcVar8;\n              break;\n            }" { (if_statement "if ((flags & 1U) != 0) goto LAB_00066c90;" if (parenthesized_expression "((flags & 1U) != 0)" ( (binary_expression "(flags & 1U) != 0" (parenthesized_expression "(flags & 1U)" ( (binary_expression "flags & 1U" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_00066c90;" goto statement_identifier ;)) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "string = pcVar8;" (assignment_expression "string = pcVar8" identifier = identifier) ;) (break_statement "break;" break ;) })) (if_statement "if (sVar6 == 0) {\n              sVar6 = 1;\n            }" if (parenthesized_expression "(sVar6 == 0)" ( (binary_expression "sVar6 == 0" identifier == number_literal) )) (compound_statement "{\n              sVar6 = 1;\n            }" { (expression_statement "sVar6 = 1;" (assignment_expression "sVar6 = 1" identifier = number_literal) ;) })) (expression_statement "iVar4 = (*(code *)PTR_wcwidth_0008dfa4)(wc);" (assignment_expression "iVar4 = (*(code *)PTR_wcwidth_0008dfa4)(wc)" identifier = (call_expression "(*(code *)PTR_wcwidth_0008dfa4)(wc)" (parenthesized_expression "(*(code *)PTR_wcwidth_0008dfa4)" ( (pointer_expression "*(code *)PTR_wcwidth_0008dfa4" * (cast_expression "(code *)PTR_wcwidth_0008dfa4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(wc)" ( identifier )))) ;) (if_statement "if (iVar4 < 0) {\n              if ((flags & 2U) != 0) goto LAB_00066c90;\n              iVar4 = (*(code *)PTR_iswcntrl_0008df58)(wc);\n              if (iVar4 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar4) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae4;\n              }\n              iVar7 = iVar7 + iVar4;\n            }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n              if ((flags & 2U) != 0) goto LAB_00066c90;\n              iVar4 = (*(code *)PTR_iswcntrl_0008df58)(wc);\n              if (iVar4 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }" { (if_statement "if ((flags & 2U) != 0) goto LAB_00066c90;" if (parenthesized_expression "((flags & 2U) != 0)" ( (binary_expression "(flags & 2U) != 0" (parenthesized_expression "(flags & 2U)" ( (binary_expression "flags & 2U" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_00066c90;" goto statement_identifier ;)) (expression_statement "iVar4 = (*(code *)PTR_iswcntrl_0008df58)(wc);" (assignment_expression "iVar4 = (*(code *)PTR_iswcntrl_0008df58)(wc)" identifier = (call_expression "(*(code *)PTR_iswcntrl_0008df58)(wc)" (parenthesized_expression "(*(code *)PTR_iswcntrl_0008df58)" ( (pointer_expression "*(code *)PTR_iswcntrl_0008df58" * (cast_expression "(code *)PTR_iswcntrl_0008df58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(wc)" ( identifier )))) ;) (if_statement "if (iVar4 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }" { (if_statement "if (iVar7 == 0x7fffffff) goto LAB_00066cb4;" if (parenthesized_expression "(iVar7 == 0x7fffffff)" ( (binary_expression "iVar7 == 0x7fffffff" identifier == number_literal) )) (goto_statement "goto LAB_00066cb4;" goto statement_identifier ;)) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) })) }) (else_clause "else {\n              if (0x7fffffff - iVar7 < iVar4) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae4;\n              }\n              iVar7 = iVar7 + iVar4;\n            }" else (compound_statement "{\n              if (0x7fffffff - iVar7 < iVar4) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae4;\n              }\n              iVar7 = iVar7 + iVar4;\n            }" { (if_statement "if (0x7fffffff - iVar7 < iVar4) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae4;\n              }" if (parenthesized_expression "(0x7fffffff - iVar7 < iVar4)" ( (binary_expression "0x7fffffff - iVar7 < iVar4" (binary_expression "0x7fffffff - iVar7" number_literal - identifier) < identifier) )) (compound_statement "{\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae4;\n              }" { (labeled_statement "LAB_00066cb4:\n                iVar7 = 0x7fffffff;" statement_identifier : (expression_statement "iVar7 = 0x7fffffff;" (assignment_expression "iVar7 = 0x7fffffff" identifier = number_literal) ;)) (goto_statement "goto LAB_00066ae4;" goto statement_identifier ;) })) (expression_statement "iVar7 = iVar7 + iVar4;" (assignment_expression "iVar7 = iVar7 + iVar4" identifier = (binary_expression "iVar7 + iVar4" identifier + identifier)) ;) }))) (expression_statement "string = string + sVar6;" (assignment_expression "string = string + sVar6" identifier = (binary_expression "string + sVar6" identifier + identifier)) ;) (expression_statement "iVar4 = (*(code *)PTR_mbsinit_0008df88)(&mbstate);" (assignment_expression "iVar4 = (*(code *)PTR_mbsinit_0008df88)(&mbstate)" identifier = (call_expression "(*(code *)PTR_mbsinit_0008df88)(&mbstate)" (parenthesized_expression "(*(code *)PTR_mbsinit_0008df88)" ( (pointer_expression "*(code *)PTR_mbsinit_0008df88" * (cast_expression "(code *)PTR_mbsinit_0008df88" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&mbstate)" ( (pointer_expression "&mbstate" & identifier) )))) ;) }) while (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) ;) }) (else_clause "else {\n          if ((iVar4 < 0x41) || ((0x5f < iVar4 && (0x1d < (iVar4 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          string = string + 1;\n        }" else (compound_statement "{\n          if ((iVar4 < 0x41) || ((0x5f < iVar4 && (0x1d < (iVar4 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          string = string + 1;\n        }" { (if_statement "if ((iVar4 < 0x41) || ((0x5f < iVar4 && (0x1d < (iVar4 - 0x61U & 0xff)))))\n          goto LAB_00066b48;" if (parenthesized_expression "((iVar4 < 0x41) || ((0x5f < iVar4 && (0x1d < (iVar4 - 0x61U & 0xff)))))" ( (binary_expression "(iVar4 < 0x41) || ((0x5f < iVar4 && (0x1d < (iVar4 - 0x61U & 0xff))))" (parenthesized_expression "(iVar4 < 0x41)" ( (binary_expression "iVar4 < 0x41" identifier < number_literal) )) || (parenthesized_expression "((0x5f < iVar4 && (0x1d < (iVar4 - 0x61U & 0xff))))" ( (parenthesized_expression "(0x5f < iVar4 && (0x1d < (iVar4 - 0x61U & 0xff)))" ( (binary_expression "0x5f < iVar4 && (0x1d < (iVar4 - 0x61U & 0xff))" (binary_expression "0x5f < iVar4" number_literal < identifier) && (parenthesized_expression "(0x1d < (iVar4 - 0x61U & 0xff))" ( (binary_expression "0x1d < (iVar4 - 0x61U & 0xff)" number_literal < (parenthesized_expression "(iVar4 - 0x61U & 0xff)" ( (binary_expression "iVar4 - 0x61U & 0xff" (binary_expression "iVar4 - 0x61U" identifier - number_literal) & number_literal) ))) ))) )) ))) )) (goto_statement "goto LAB_00066b48;" goto statement_identifier ;)) (labeled_statement "LAB_00066ad0:\n          iVar7 = iVar7 + 1;" statement_identifier : (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;)) (expression_statement "string = string + 1;" (assignment_expression "string = string + 1" identifier = (binary_expression "string + 1" identifier + number_literal)) ;) }))) }) while (parenthesized_expression "(string < pcVar8)" ( (binary_expression "string < pcVar8" identifier < identifier) )) ;) })) }))) (labeled_statement "LAB_00066ae4:\n  if (string_00 != *(char **)puVar10) {\n    puVar10 = PTR___stack_chk_fail_0008df68;\n    (*(code *)PTR___stack_chk_fail_0008df68)();\n    sVar6 = (**(code **)(puVar10 + 0x2722c))();\n                    /* WARNING: Subroutine does not return */\n    mbsnwidth(string_00,sVar6,nbytes);\n  }" statement_identifier : (if_statement "if (string_00 != *(char **)puVar10) {\n    puVar10 = PTR___stack_chk_fail_0008df68;\n    (*(code *)PTR___stack_chk_fail_0008df68)();\n    sVar6 = (**(code **)(puVar10 + 0x2722c))();\n                    /* WARNING: Subroutine does not return */\n    mbsnwidth(string_00,sVar6,nbytes);\n  }" if (parenthesized_expression "(string_00 != *(char **)puVar10)" ( (binary_expression "string_00 != *(char **)puVar10" identifier != (pointer_expression "*(char **)puVar10" * (cast_expression "(char **)puVar10" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    puVar10 = PTR___stack_chk_fail_0008df68;\n    (*(code *)PTR___stack_chk_fail_0008df68)();\n    sVar6 = (**(code **)(puVar10 + 0x2722c))();\n                    /* WARNING: Subroutine does not return */\n    mbsnwidth(string_00,sVar6,nbytes);\n  }" { (expression_statement "puVar10 = PTR___stack_chk_fail_0008df68;" (assignment_expression "puVar10 = PTR___stack_chk_fail_0008df68" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0008df68)();" (call_expression "(*(code *)PTR___stack_chk_fail_0008df68)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0008df68)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0008df68" * (cast_expression "(code *)PTR___stack_chk_fail_0008df68" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "sVar6 = (**(code **)(puVar10 + 0x2722c))();" (assignment_expression "sVar6 = (**(code **)(puVar10 + 0x2722c))()" identifier = (call_expression "(**(code **)(puVar10 + 0x2722c))()" (parenthesized_expression "(**(code **)(puVar10 + 0x2722c))" ( (pointer_expression "**(code **)(puVar10 + 0x2722c)" * (pointer_expression "*(code **)(puVar10 + 0x2722c)" * (cast_expression "(code **)(puVar10 + 0x2722c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x2722c)" ( (binary_expression "puVar10 + 0x2722c" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) comment (expression_statement "mbsnwidth(string_00,sVar6,nbytes);" (call_expression "mbsnwidth(string_00,sVar6,nbytes)" identifier (argument_list "(string_00,sVar6,nbytes)" ( identifier , identifier , identifier ))) ;) }))) (return_statement "return iVar7;" return identifier ;) (labeled_statement "LAB_00066c90:\n  iVar7 = -1;" statement_identifier : (expression_statement "iVar7 = -1;" (assignment_expression "iVar7 = -1" identifier = number_literal) ;)) (goto_statement "goto LAB_00066ae4;" goto statement_identifier ;) })))
(translation_unit "int mbsnwidth(byte *param_1,byte *param_2,byte *param_3)\n\n{\n  ushort uVar1;\n  byte *pbVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 unaff_s0;\n  int iVar7;\n  undefined4 unaff_s1;\n  byte *pbVar8;\n  undefined4 unaff_s2;\n  int unaff_s3;\n  undefined4 *unaff_s4;\n  undefined1 *unaff_s5;\n  byte *unaff_s6;\n  undefined4 unaff_s7;\n  code *pcVar9;\n  code *pcVar10;\n  int iVar11;\n  undefined4 unaff_s8;\n  undefined4 unaff_retaddr;\n  undefined4 uVar12;\n  undefined1 auStackX_0 [16];\n  \n  pcVar10 = mbsnwidth;\ncode_r0x00066a10:\n  puVar3 = *(undefined4 **)(pcVar10 + 0x2757c);\n  pcVar9 = *(code **)(pcVar10 + 0x27530);\n  *(undefined4 **)((int)register0x00000074 + -0x3c) = puVar3;\n  *(code **)((int)register0x00000074 + -0x48) = pcVar10 + 0x2ebe0;\n  *(byte **)((int)register0x00000074 + -0x10) = unaff_s6;\n  *(undefined4 *)((int)register0x00000074 + -0x24) = unaff_s1;\n  pbVar8 = param_1 + (int)param_2;\n  *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n  *(undefined4 *)((int)register0x00000074 + -8) = unaff_s8;\n  *(undefined4 *)((int)register0x00000074 + -0xc) = unaff_s7;\n  *(undefined1 **)((int)register0x00000074 + -0x14) = unaff_s5;\n  *(undefined4 **)((int)register0x00000074 + -0x18) = unaff_s4;\n  *(int *)((int)register0x00000074 + -0x1c) = unaff_s3;\n  *(undefined4 *)((int)register0x00000074 + -0x20) = unaff_s2;\n  *(undefined4 *)((int)register0x00000074 + -0x28) = unaff_s0;\n  *(byte **)((int)register0x00000074 + 8) = param_3;\n  *(undefined4 *)((int)register0x00000074 + -0x2c) = *puVar3;\n  uVar4 = (*pcVar9)();\n  iVar11 = *(int *)((int)register0x00000074 + -0x48);\n  if (1 < uVar4) {\n    iVar7 = 0;\n    if (param_1 < pbVar8) {\n      unaff_s2 = 0x7fffffff;\n      *(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2;\n      do {\n        iVar5 = (int)(char)*param_1;\n        if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }\n      } while (param_1 < pbVar8);\n    }\n    goto LAB_00066ae0;\n  }\n  iVar7 = 0;\n  if (pbVar8 <= param_1) goto LAB_00066ae0;\n  piVar6 = (int *)(**(code **)(iVar11 + -0x77c4))();\n  param_2 = (byte *)0x7fffffff;\n  iVar11 = *(int *)((int)register0x00000074 + -0x48);\n  unaff_s4 = (undefined4 *)(*(uint *)((int)register0x00000074 + 8) & 2);\n  pbVar2 = param_1;\n  do {\n    param_1 = pbVar2 + 1;\n    uVar1 = *(ushort *)(*piVar6 + (uint)*pbVar2 * 2);\n    param_3 = param_2;\n    unaff_s6 = param_1;\n    if ((uVar1 & 0x40) == 0) {\n      if (unaff_s4 != (undefined4 *)0x0) goto LAB_00066c90;\n      if ((uVar1 & 0x200) == 0) goto LAB_00066c5c;\n    }\n    else {\nLAB_00066c5c:\n      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n      if (iVar7 == 0x7fffffff) goto LAB_00066ae4;\n      iVar7 = iVar7 + 1;\n    }\n    pbVar2 = param_1;\n  } while (pbVar8 != param_1);\n  puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n  goto LAB_00066ae4;\nLAB_00066c90:\n  iVar7 = -1;\nLAB_00066ae0:\n  puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n  param_3 = param_2;\n  unaff_s6 = param_1;\nLAB_00066ae4:\n  param_1 = *(byte **)((int)register0x00000074 + -0x2c);\n  if (param_1 == (byte *)*puVar3) {\n    return iVar7;\n  }\n  pcVar10 = *(code **)(iVar11 + -0x7688);\n  uVar12 = 0x66ccc;\n  (*pcVar10)();\n  pcVar9 = *(code **)(pcVar10 + 0x2722c);\n  *(byte **)((int)register0x00000074 + -0x60) = pbVar8;\n  *(int *)((int)register0x00000074 + -100) = iVar7;\n  *(undefined4 *)((int)register0x00000074 + -0x5c) = uVar12;\n  *(code **)((int)register0x00000074 + -0x70) = pcVar10 + 0x2e924;\n  param_2 = (byte *)(*pcVar9)();\n  unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x5c);\n  unaff_s1 = *(undefined4 *)((int)register0x00000074 + -0x60);\n  unaff_s0 = *(undefined4 *)((int)register0x00000074 + -100);\n  pcVar10 = *(code **)(*(int *)((int)register0x00000074 + -0x70) + -0x7c24);\n  register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x58);\n  goto code_r0x00066a10;\n}\n\n" (function_definition "int mbsnwidth(byte *param_1,byte *param_2,byte *param_3)\n\n{\n  ushort uVar1;\n  byte *pbVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 unaff_s0;\n  int iVar7;\n  undefined4 unaff_s1;\n  byte *pbVar8;\n  undefined4 unaff_s2;\n  int unaff_s3;\n  undefined4 *unaff_s4;\n  undefined1 *unaff_s5;\n  byte *unaff_s6;\n  undefined4 unaff_s7;\n  code *pcVar9;\n  code *pcVar10;\n  int iVar11;\n  undefined4 unaff_s8;\n  undefined4 unaff_retaddr;\n  undefined4 uVar12;\n  undefined1 auStackX_0 [16];\n  \n  pcVar10 = mbsnwidth;\ncode_r0x00066a10:\n  puVar3 = *(undefined4 **)(pcVar10 + 0x2757c);\n  pcVar9 = *(code **)(pcVar10 + 0x27530);\n  *(undefined4 **)((int)register0x00000074 + -0x3c) = puVar3;\n  *(code **)((int)register0x00000074 + -0x48) = pcVar10 + 0x2ebe0;\n  *(byte **)((int)register0x00000074 + -0x10) = unaff_s6;\n  *(undefined4 *)((int)register0x00000074 + -0x24) = unaff_s1;\n  pbVar8 = param_1 + (int)param_2;\n  *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n  *(undefined4 *)((int)register0x00000074 + -8) = unaff_s8;\n  *(undefined4 *)((int)register0x00000074 + -0xc) = unaff_s7;\n  *(undefined1 **)((int)register0x00000074 + -0x14) = unaff_s5;\n  *(undefined4 **)((int)register0x00000074 + -0x18) = unaff_s4;\n  *(int *)((int)register0x00000074 + -0x1c) = unaff_s3;\n  *(undefined4 *)((int)register0x00000074 + -0x20) = unaff_s2;\n  *(undefined4 *)((int)register0x00000074 + -0x28) = unaff_s0;\n  *(byte **)((int)register0x00000074 + 8) = param_3;\n  *(undefined4 *)((int)register0x00000074 + -0x2c) = *puVar3;\n  uVar4 = (*pcVar9)();\n  iVar11 = *(int *)((int)register0x00000074 + -0x48);\n  if (1 < uVar4) {\n    iVar7 = 0;\n    if (param_1 < pbVar8) {\n      unaff_s2 = 0x7fffffff;\n      *(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2;\n      do {\n        iVar5 = (int)(char)*param_1;\n        if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }\n      } while (param_1 < pbVar8);\n    }\n    goto LAB_00066ae0;\n  }\n  iVar7 = 0;\n  if (pbVar8 <= param_1) goto LAB_00066ae0;\n  piVar6 = (int *)(**(code **)(iVar11 + -0x77c4))();\n  param_2 = (byte *)0x7fffffff;\n  iVar11 = *(int *)((int)register0x00000074 + -0x48);\n  unaff_s4 = (undefined4 *)(*(uint *)((int)register0x00000074 + 8) & 2);\n  pbVar2 = param_1;\n  do {\n    param_1 = pbVar2 + 1;\n    uVar1 = *(ushort *)(*piVar6 + (uint)*pbVar2 * 2);\n    param_3 = param_2;\n    unaff_s6 = param_1;\n    if ((uVar1 & 0x40) == 0) {\n      if (unaff_s4 != (undefined4 *)0x0) goto LAB_00066c90;\n      if ((uVar1 & 0x200) == 0) goto LAB_00066c5c;\n    }\n    else {\nLAB_00066c5c:\n      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n      if (iVar7 == 0x7fffffff) goto LAB_00066ae4;\n      iVar7 = iVar7 + 1;\n    }\n    pbVar2 = param_1;\n  } while (pbVar8 != param_1);\n  puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n  goto LAB_00066ae4;\nLAB_00066c90:\n  iVar7 = -1;\nLAB_00066ae0:\n  puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n  param_3 = param_2;\n  unaff_s6 = param_1;\nLAB_00066ae4:\n  param_1 = *(byte **)((int)register0x00000074 + -0x2c);\n  if (param_1 == (byte *)*puVar3) {\n    return iVar7;\n  }\n  pcVar10 = *(code **)(iVar11 + -0x7688);\n  uVar12 = 0x66ccc;\n  (*pcVar10)();\n  pcVar9 = *(code **)(pcVar10 + 0x2722c);\n  *(byte **)((int)register0x00000074 + -0x60) = pbVar8;\n  *(int *)((int)register0x00000074 + -100) = iVar7;\n  *(undefined4 *)((int)register0x00000074 + -0x5c) = uVar12;\n  *(code **)((int)register0x00000074 + -0x70) = pcVar10 + 0x2e924;\n  param_2 = (byte *)(*pcVar9)();\n  unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x5c);\n  unaff_s1 = *(undefined4 *)((int)register0x00000074 + -0x60);\n  unaff_s0 = *(undefined4 *)((int)register0x00000074 + -100);\n  pcVar10 = *(code **)(*(int *)((int)register0x00000074 + -0x70) + -0x7c24);\n  register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x58);\n  goto code_r0x00066a10;\n}" primitive_type (function_declarator "mbsnwidth(byte *param_1,byte *param_2,byte *param_3)" identifier (parameter_list "(byte *param_1,byte *param_2,byte *param_3)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "byte *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  ushort uVar1;\n  byte *pbVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 unaff_s0;\n  int iVar7;\n  undefined4 unaff_s1;\n  byte *pbVar8;\n  undefined4 unaff_s2;\n  int unaff_s3;\n  undefined4 *unaff_s4;\n  undefined1 *unaff_s5;\n  byte *unaff_s6;\n  undefined4 unaff_s7;\n  code *pcVar9;\n  code *pcVar10;\n  int iVar11;\n  undefined4 unaff_s8;\n  undefined4 unaff_retaddr;\n  undefined4 uVar12;\n  undefined1 auStackX_0 [16];\n  \n  pcVar10 = mbsnwidth;\ncode_r0x00066a10:\n  puVar3 = *(undefined4 **)(pcVar10 + 0x2757c);\n  pcVar9 = *(code **)(pcVar10 + 0x27530);\n  *(undefined4 **)((int)register0x00000074 + -0x3c) = puVar3;\n  *(code **)((int)register0x00000074 + -0x48) = pcVar10 + 0x2ebe0;\n  *(byte **)((int)register0x00000074 + -0x10) = unaff_s6;\n  *(undefined4 *)((int)register0x00000074 + -0x24) = unaff_s1;\n  pbVar8 = param_1 + (int)param_2;\n  *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n  *(undefined4 *)((int)register0x00000074 + -8) = unaff_s8;\n  *(undefined4 *)((int)register0x00000074 + -0xc) = unaff_s7;\n  *(undefined1 **)((int)register0x00000074 + -0x14) = unaff_s5;\n  *(undefined4 **)((int)register0x00000074 + -0x18) = unaff_s4;\n  *(int *)((int)register0x00000074 + -0x1c) = unaff_s3;\n  *(undefined4 *)((int)register0x00000074 + -0x20) = unaff_s2;\n  *(undefined4 *)((int)register0x00000074 + -0x28) = unaff_s0;\n  *(byte **)((int)register0x00000074 + 8) = param_3;\n  *(undefined4 *)((int)register0x00000074 + -0x2c) = *puVar3;\n  uVar4 = (*pcVar9)();\n  iVar11 = *(int *)((int)register0x00000074 + -0x48);\n  if (1 < uVar4) {\n    iVar7 = 0;\n    if (param_1 < pbVar8) {\n      unaff_s2 = 0x7fffffff;\n      *(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2;\n      do {\n        iVar5 = (int)(char)*param_1;\n        if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }\n      } while (param_1 < pbVar8);\n    }\n    goto LAB_00066ae0;\n  }\n  iVar7 = 0;\n  if (pbVar8 <= param_1) goto LAB_00066ae0;\n  piVar6 = (int *)(**(code **)(iVar11 + -0x77c4))();\n  param_2 = (byte *)0x7fffffff;\n  iVar11 = *(int *)((int)register0x00000074 + -0x48);\n  unaff_s4 = (undefined4 *)(*(uint *)((int)register0x00000074 + 8) & 2);\n  pbVar2 = param_1;\n  do {\n    param_1 = pbVar2 + 1;\n    uVar1 = *(ushort *)(*piVar6 + (uint)*pbVar2 * 2);\n    param_3 = param_2;\n    unaff_s6 = param_1;\n    if ((uVar1 & 0x40) == 0) {\n      if (unaff_s4 != (undefined4 *)0x0) goto LAB_00066c90;\n      if ((uVar1 & 0x200) == 0) goto LAB_00066c5c;\n    }\n    else {\nLAB_00066c5c:\n      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n      if (iVar7 == 0x7fffffff) goto LAB_00066ae4;\n      iVar7 = iVar7 + 1;\n    }\n    pbVar2 = param_1;\n  } while (pbVar8 != param_1);\n  puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n  goto LAB_00066ae4;\nLAB_00066c90:\n  iVar7 = -1;\nLAB_00066ae0:\n  puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n  param_3 = param_2;\n  unaff_s6 = param_1;\nLAB_00066ae4:\n  param_1 = *(byte **)((int)register0x00000074 + -0x2c);\n  if (param_1 == (byte *)*puVar3) {\n    return iVar7;\n  }\n  pcVar10 = *(code **)(iVar11 + -0x7688);\n  uVar12 = 0x66ccc;\n  (*pcVar10)();\n  pcVar9 = *(code **)(pcVar10 + 0x2722c);\n  *(byte **)((int)register0x00000074 + -0x60) = pbVar8;\n  *(int *)((int)register0x00000074 + -100) = iVar7;\n  *(undefined4 *)((int)register0x00000074 + -0x5c) = uVar12;\n  *(code **)((int)register0x00000074 + -0x70) = pcVar10 + 0x2e924;\n  param_2 = (byte *)(*pcVar9)();\n  unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x5c);\n  unaff_s1 = *(undefined4 *)((int)register0x00000074 + -0x60);\n  unaff_s0 = *(undefined4 *)((int)register0x00000074 + -100);\n  pcVar10 = *(code **)(*(int *)((int)register0x00000074 + -0x70) + -0x7c24);\n  register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x58);\n  goto code_r0x00066a10;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "undefined4 unaff_s0;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 unaff_s1;" type_identifier identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "undefined4 unaff_s2;" type_identifier identifier ;) (declaration "int unaff_s3;" primitive_type identifier ;) (declaration "undefined4 *unaff_s4;" type_identifier (pointer_declarator "*unaff_s4" * identifier) ;) (declaration "undefined1 *unaff_s5;" type_identifier (pointer_declarator "*unaff_s5" * identifier) ;) (declaration "byte *unaff_s6;" type_identifier (pointer_declarator "*unaff_s6" * identifier) ;) (declaration "undefined4 unaff_s7;" type_identifier identifier ;) (declaration "code *pcVar9;" type_identifier (pointer_declarator "*pcVar9" * identifier) ;) (declaration "code *pcVar10;" type_identifier (pointer_declarator "*pcVar10" * identifier) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "undefined4 unaff_s8;" type_identifier identifier ;) (declaration "undefined4 unaff_retaddr;" type_identifier identifier ;) (declaration "undefined4 uVar12;" type_identifier identifier ;) (declaration "undefined1 auStackX_0 [16];" type_identifier (array_declarator "auStackX_0 [16]" identifier [ number_literal ]) ;) (expression_statement "pcVar10 = mbsnwidth;" (assignment_expression "pcVar10 = mbsnwidth" identifier = identifier) ;) (labeled_statement "code_r0x00066a10:\n  puVar3 = *(undefined4 **)(pcVar10 + 0x2757c);" statement_identifier : (expression_statement "puVar3 = *(undefined4 **)(pcVar10 + 0x2757c);" (assignment_expression "puVar3 = *(undefined4 **)(pcVar10 + 0x2757c)" identifier = (pointer_expression "*(undefined4 **)(pcVar10 + 0x2757c)" * (cast_expression "(undefined4 **)(pcVar10 + 0x2757c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar10 + 0x2757c)" ( (binary_expression "pcVar10 + 0x2757c" identifier + number_literal) ))))) ;)) (expression_statement "pcVar9 = *(code **)(pcVar10 + 0x27530);" (assignment_expression "pcVar9 = *(code **)(pcVar10 + 0x27530)" identifier = (pointer_expression "*(code **)(pcVar10 + 0x27530)" * (cast_expression "(code **)(pcVar10 + 0x27530)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar10 + 0x27530)" ( (binary_expression "pcVar10 + 0x27530" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 **)((int)register0x00000074 + -0x3c) = puVar3;" (assignment_expression "*(undefined4 **)((int)register0x00000074 + -0x3c) = puVar3" (pointer_expression "*(undefined4 **)((int)register0x00000074 + -0x3c)" * (cast_expression "(undefined4 **)((int)register0x00000074 + -0x3c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x3c)" ( (binary_expression "(int)register0x00000074 + -0x3c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(code **)((int)register0x00000074 + -0x48) = pcVar10 + 0x2ebe0;" (assignment_expression "*(code **)((int)register0x00000074 + -0x48) = pcVar10 + 0x2ebe0" (pointer_expression "*(code **)((int)register0x00000074 + -0x48)" * (cast_expression "(code **)((int)register0x00000074 + -0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x48)" ( (binary_expression "(int)register0x00000074 + -0x48" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "pcVar10 + 0x2ebe0" identifier + number_literal)) ;) (expression_statement "*(byte **)((int)register0x00000074 + -0x10) = unaff_s6;" (assignment_expression "*(byte **)((int)register0x00000074 + -0x10) = unaff_s6" (pointer_expression "*(byte **)((int)register0x00000074 + -0x10)" * (cast_expression "(byte **)((int)register0x00000074 + -0x10)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x10)" ( (binary_expression "(int)register0x00000074 + -0x10" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x24) = unaff_s1;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x24) = unaff_s1" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x24)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x24)" ( (binary_expression "(int)register0x00000074 + -0x24" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "pbVar8 = param_1 + (int)param_2;" (assignment_expression "pbVar8 = param_1 + (int)param_2" identifier = (binary_expression "param_1 + (int)param_2" identifier + (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -4)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -4)" ( (binary_expression "(int)register0x00000074 + -4" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -8) = unaff_s8;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -8) = unaff_s8" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -8)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -8)" ( (binary_expression "(int)register0x00000074 + -8" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0xc) = unaff_s7;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0xc) = unaff_s7" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0xc)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0xc)" ( (binary_expression "(int)register0x00000074 + -0xc" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 **)((int)register0x00000074 + -0x14) = unaff_s5;" (assignment_expression "*(undefined1 **)((int)register0x00000074 + -0x14) = unaff_s5" (pointer_expression "*(undefined1 **)((int)register0x00000074 + -0x14)" * (cast_expression "(undefined1 **)((int)register0x00000074 + -0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x14)" ( (binary_expression "(int)register0x00000074 + -0x14" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 **)((int)register0x00000074 + -0x18) = unaff_s4;" (assignment_expression "*(undefined4 **)((int)register0x00000074 + -0x18) = unaff_s4" (pointer_expression "*(undefined4 **)((int)register0x00000074 + -0x18)" * (cast_expression "(undefined4 **)((int)register0x00000074 + -0x18)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x18)" ( (binary_expression "(int)register0x00000074 + -0x18" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)((int)register0x00000074 + -0x1c) = unaff_s3;" (assignment_expression "*(int *)((int)register0x00000074 + -0x1c) = unaff_s3" (pointer_expression "*(int *)((int)register0x00000074 + -0x1c)" * (cast_expression "(int *)((int)register0x00000074 + -0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x1c)" ( (binary_expression "(int)register0x00000074 + -0x1c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x20) = unaff_s2;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x20) = unaff_s2" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x20)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x20)" ( (binary_expression "(int)register0x00000074 + -0x20" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x28) = unaff_s0;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x28) = unaff_s0" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x28)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x28)" ( (binary_expression "(int)register0x00000074 + -0x28" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(byte **)((int)register0x00000074 + 8) = param_3;" (assignment_expression "*(byte **)((int)register0x00000074 + 8) = param_3" (pointer_expression "*(byte **)((int)register0x00000074 + 8)" * (cast_expression "(byte **)((int)register0x00000074 + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + 8)" ( (binary_expression "(int)register0x00000074 + 8" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x2c) = *puVar3;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x2c) = *puVar3" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x2c)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x2c)" ( (binary_expression "(int)register0x00000074 + -0x2c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "uVar4 = (*pcVar9)();" (assignment_expression "uVar4 = (*pcVar9)()" identifier = (call_expression "(*pcVar9)()" (parenthesized_expression "(*pcVar9)" ( (pointer_expression "*pcVar9" * identifier) )) (argument_list "()" ( )))) ;) (expression_statement "iVar11 = *(int *)((int)register0x00000074 + -0x48);" (assignment_expression "iVar11 = *(int *)((int)register0x00000074 + -0x48)" identifier = (pointer_expression "*(int *)((int)register0x00000074 + -0x48)" * (cast_expression "(int *)((int)register0x00000074 + -0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x48)" ( (binary_expression "(int)register0x00000074 + -0x48" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (1 < uVar4) {\n    iVar7 = 0;\n    if (param_1 < pbVar8) {\n      unaff_s2 = 0x7fffffff;\n      *(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2;\n      do {\n        iVar5 = (int)(char)*param_1;\n        if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }\n      } while (param_1 < pbVar8);\n    }\n    goto LAB_00066ae0;\n  }" if (parenthesized_expression "(1 < uVar4)" ( (binary_expression "1 < uVar4" number_literal < identifier) )) (compound_statement "{\n    iVar7 = 0;\n    if (param_1 < pbVar8) {\n      unaff_s2 = 0x7fffffff;\n      *(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2;\n      do {\n        iVar5 = (int)(char)*param_1;\n        if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }\n      } while (param_1 < pbVar8);\n    }\n    goto LAB_00066ae0;\n  }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (if_statement "if (param_1 < pbVar8) {\n      unaff_s2 = 0x7fffffff;\n      *(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2;\n      do {\n        iVar5 = (int)(char)*param_1;\n        if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }\n      } while (param_1 < pbVar8);\n    }" if (parenthesized_expression "(param_1 < pbVar8)" ( (binary_expression "param_1 < pbVar8" identifier < identifier) )) (compound_statement "{\n      unaff_s2 = 0x7fffffff;\n      *(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2;\n      do {\n        iVar5 = (int)(char)*param_1;\n        if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }\n      } while (param_1 < pbVar8);\n    }" { (expression_statement "unaff_s2 = 0x7fffffff;" (assignment_expression "unaff_s2 = 0x7fffffff" identifier = number_literal) ;) (expression_statement "*(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2;" (assignment_expression "*(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2" (pointer_expression "*(uint *)((int)register0x00000074 + -0x40)" * (cast_expression "(uint *)((int)register0x00000074 + -0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x40)" ( (binary_expression "(int)register0x00000074 + -0x40" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(uint *)((int)register0x00000074 + 8) & 2" (pointer_expression "*(uint *)((int)register0x00000074 + 8)" * (cast_expression "(uint *)((int)register0x00000074 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + 8)" ( (binary_expression "(int)register0x00000074 + 8" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal)) ;) (do_statement "do {\n        iVar5 = (int)(char)*param_1;\n        if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }\n      } while (param_1 < pbVar8);" do (compound_statement "{\n        iVar5 = (int)(char)*param_1;\n        if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }\n      }" { (expression_statement "iVar5 = (int)(char)*param_1;" (assignment_expression "iVar5 = (int)(char)*param_1" identifier = (cast_expression "(int)(char)*param_1" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)*param_1" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*param_1" * identifier)))) ;) (if_statement "if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }" if (parenthesized_expression "(iVar5 < 0x40)" ( (binary_expression "iVar5 < 0x40" identifier < number_literal) )) (compound_statement "{\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }" { (if_statement "if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;" if (parenthesized_expression "((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             ))" ( (binary_expression "(0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )" (parenthesized_expression "(0x24 < iVar5)" ( (binary_expression "0x24 < iVar5" number_literal < identifier) )) || (parenthesized_expression "(unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )" ( (comma_expression "unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4" (assignment_expression "unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34)" identifier = (cast_expression "(undefined4 *)((int)register0x00000074 + -0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x34)" ( (binary_expression "(int)register0x00000074 + -0x34" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (binary_expression "(iVar5 - 0x20U & 0xff) < 4" (parenthesized_expression "(iVar5 - 0x20U & 0xff)" ( (binary_expression "iVar5 - 0x20U & 0xff" (binary_expression "iVar5 - 0x20U" identifier - number_literal) & number_literal) )) < number_literal)) ))) )) (goto_statement "goto LAB_00066ad0;" goto statement_identifier ;)) (labeled_statement "LAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);" statement_identifier : (expression_statement "unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);" (assignment_expression "unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34)" identifier = (cast_expression "(undefined4 *)((int)register0x00000074 + -0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x34)" ( (binary_expression "(int)register0x00000074 + -0x34" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;)) (expression_statement "*unaff_s4 = 0;" (assignment_expression "*unaff_s4 = 0" (pointer_expression "*unaff_s4" * identifier) = number_literal) ;) (expression_statement "unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);" (assignment_expression "unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38)" identifier = (cast_expression "(undefined1 *)((int)register0x00000074 + -0x38)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x38)" ( (binary_expression "(int)register0x00000074 + -0x38" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "unaff_s7 = 0xffffffff;" (assignment_expression "unaff_s7 = 0xffffffff" identifier = number_literal) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x30) = 0;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x30) = 0" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x30)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x30)" ( (binary_expression "(int)register0x00000074 + -0x30" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "unaff_s8 = 0xfffffffe;" (assignment_expression "unaff_s8 = 0xfffffffe" identifier = number_literal) ;) (do_statement "do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);" do (compound_statement "{\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          }" { (expression_statement "param_2 = param_1;" (assignment_expression "param_2 = param_1" identifier = identifier) ;) (expression_statement "unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);" (assignment_expression "unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4)" identifier = (call_expression "rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4)" identifier (argument_list "(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4)" ( identifier , identifier , (binary_expression "(int)pbVar8 - (int)param_1" (cast_expression "(int)pbVar8" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) , identifier )))) ;) (expression_statement "iVar11 = *(int *)((int)register0x00000074 + -0x48);" (assignment_expression "iVar11 = *(int *)((int)register0x00000074 + -0x48)" identifier = (pointer_expression "*(int *)((int)register0x00000074 + -0x48)" * (cast_expression "(int *)((int)register0x00000074 + -0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x48)" ( (binary_expression "(int)register0x00000074 + -0x48" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }" if (parenthesized_expression "(unaff_s3 == -1)" ( (binary_expression "unaff_s3 == -1" identifier == number_literal) )) (compound_statement "{\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }" { (if_statement "if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;" if (parenthesized_expression "((*(uint *)((int)register0x00000074 + 8) & 1) != 0)" ( (binary_expression "(*(uint *)((int)register0x00000074 + 8) & 1) != 0" (parenthesized_expression "(*(uint *)((int)register0x00000074 + 8) & 1)" ( (binary_expression "*(uint *)((int)register0x00000074 + 8) & 1" (pointer_expression "*(uint *)((int)register0x00000074 + 8)" * (cast_expression "(uint *)((int)register0x00000074 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + 8)" ( (binary_expression "(int)register0x00000074 + 8" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) != number_literal) )) (goto_statement "goto LAB_00066c90;" goto statement_identifier ;)) (goto_statement "goto LAB_00066ad0;" goto statement_identifier ;) })) (if_statement "if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }" if (parenthesized_expression "(unaff_s3 == -2)" ( (binary_expression "unaff_s3 == -2" identifier == number_literal) )) (compound_statement "{\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }" { (if_statement "if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;" if (parenthesized_expression "((*(uint *)((int)register0x00000074 + 8) & 1) != 0)" ( (binary_expression "(*(uint *)((int)register0x00000074 + 8) & 1) != 0" (parenthesized_expression "(*(uint *)((int)register0x00000074 + 8) & 1)" ( (binary_expression "*(uint *)((int)register0x00000074 + 8) & 1" (pointer_expression "*(uint *)((int)register0x00000074 + 8)" * (cast_expression "(uint *)((int)register0x00000074 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + 8)" ( (binary_expression "(int)register0x00000074 + 8" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) != number_literal) )) (goto_statement "goto LAB_00066c90;" goto statement_identifier ;)) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "param_1 = pbVar8;" (assignment_expression "param_1 = pbVar8" identifier = identifier) ;) (break_statement "break;" break ;) })) (if_statement "if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }" if (parenthesized_expression "(unaff_s3 == 0)" ( (binary_expression "unaff_s3 == 0" identifier == number_literal) )) (compound_statement "{\n              unaff_s3 = 1;\n            }" { (expression_statement "unaff_s3 = 1;" (assignment_expression "unaff_s3 = 1" identifier = number_literal) ;) })) (expression_statement "iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));" (assignment_expression "iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38))" identifier = (call_expression "(**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38))" (parenthesized_expression "(**(code **)(iVar11 + -0x764c))" ( (pointer_expression "**(code **)(iVar11 + -0x764c)" * (pointer_expression "*(code **)(iVar11 + -0x764c)" * (cast_expression "(code **)(iVar11 + -0x764c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + -0x764c)" ( (binary_expression "iVar11 + -0x764c" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)((int)register0x00000074 + -0x38))" ( (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x38)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x38)" ( (binary_expression "(int)register0x00000074 + -0x38" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) )))) ;) (expression_statement "iVar11 = *(int *)((int)register0x00000074 + -0x48);" (assignment_expression "iVar11 = *(int *)((int)register0x00000074 + -0x48)" identifier = (pointer_expression "*(int *)((int)register0x00000074 + -0x48)" * (cast_expression "(int *)((int)register0x00000074 + -0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x48)" ( (binary_expression "(int)register0x00000074 + -0x48" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }" { (if_statement "if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;" if (parenthesized_expression "(*(int *)((int)register0x00000074 + -0x40) != 0)" ( (binary_expression "*(int *)((int)register0x00000074 + -0x40) != 0" (pointer_expression "*(int *)((int)register0x00000074 + -0x40)" * (cast_expression "(int *)((int)register0x00000074 + -0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x40)" ( (binary_expression "(int)register0x00000074 + -0x40" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_00066c90;" goto statement_identifier ;)) (expression_statement "iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));" (assignment_expression "iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38))" identifier = (call_expression "(**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38))" (parenthesized_expression "(**(code **)(iVar11 + -0x7698))" ( (pointer_expression "**(code **)(iVar11 + -0x7698)" * (pointer_expression "*(code **)(iVar11 + -0x7698)" * (cast_expression "(code **)(iVar11 + -0x7698)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + -0x7698)" ( (binary_expression "iVar11 + -0x7698" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)((int)register0x00000074 + -0x38))" ( (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x38)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x38)" ( (binary_expression "(int)register0x00000074 + -0x38" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) )))) ;) (expression_statement "iVar11 = *(int *)((int)register0x00000074 + -0x48);" (assignment_expression "iVar11 = *(int *)((int)register0x00000074 + -0x48)" identifier = (pointer_expression "*(int *)((int)register0x00000074 + -0x48)" * (cast_expression "(int *)((int)register0x00000074 + -0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x48)" ( (binary_expression "(int)register0x00000074 + -0x48" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }" { (if_statement "if (iVar7 == 0x7fffffff) goto LAB_00066cb4;" if (parenthesized_expression "(iVar7 == 0x7fffffff)" ( (binary_expression "iVar7 == 0x7fffffff" identifier == number_literal) )) (goto_statement "goto LAB_00066cb4;" goto statement_identifier ;)) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) })) }) (else_clause "else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }" else (compound_statement "{\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }" { (if_statement "if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }" if (parenthesized_expression "(0x7fffffff - iVar7 < iVar5)" ( (binary_expression "0x7fffffff - iVar7 < iVar5" (binary_expression "0x7fffffff - iVar7" number_literal - identifier) < identifier) )) (compound_statement "{\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }" { (labeled_statement "LAB_00066cb4:\n                iVar7 = 0x7fffffff;" statement_identifier : (expression_statement "iVar7 = 0x7fffffff;" (assignment_expression "iVar7 = 0x7fffffff" identifier = number_literal) ;)) (goto_statement "goto LAB_00066ae0;" goto statement_identifier ;) })) (expression_statement "iVar7 = iVar7 + iVar5;" (assignment_expression "iVar7 = iVar7 + iVar5" identifier = (binary_expression "iVar7 + iVar5" identifier + identifier)) ;) }))) (expression_statement "param_1 = param_1 + unaff_s3;" (assignment_expression "param_1 = param_1 + unaff_s3" identifier = (binary_expression "param_1 + unaff_s3" identifier + identifier)) ;) (expression_statement "iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);" (assignment_expression "iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4)" identifier = (call_expression "(**(code **)(iVar11 + -0x7668))(unaff_s4)" (parenthesized_expression "(**(code **)(iVar11 + -0x7668))" ( (pointer_expression "**(code **)(iVar11 + -0x7668)" * (pointer_expression "*(code **)(iVar11 + -0x7668)" * (cast_expression "(code **)(iVar11 + -0x7668)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + -0x7668)" ( (binary_expression "iVar11 + -0x7668" identifier + number_literal) ))))) )) (argument_list "(unaff_s4)" ( identifier )))) ;) (expression_statement "iVar11 = *(int *)((int)register0x00000074 + -0x48);" (assignment_expression "iVar11 = *(int *)((int)register0x00000074 + -0x48)" identifier = (pointer_expression "*(int *)((int)register0x00000074 + -0x48)" * (cast_expression "(int *)((int)register0x00000074 + -0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x48)" ( (binary_expression "(int)register0x00000074 + -0x48" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) }) while (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) ;) }) (else_clause "else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }" else (compound_statement "{\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }" { (if_statement "if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;" if (parenthesized_expression "((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))" ( (binary_expression "(iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff))))" (parenthesized_expression "(iVar5 < 0x41)" ( (binary_expression "iVar5 < 0x41" identifier < number_literal) )) || (parenthesized_expression "((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff))))" ( (parenthesized_expression "(0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))" ( (binary_expression "0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff))" (binary_expression "0x5f < iVar5" number_literal < identifier) && (parenthesized_expression "(0x1d < (iVar5 - 0x61U & 0xff))" ( (binary_expression "0x1d < (iVar5 - 0x61U & 0xff)" number_literal < (parenthesized_expression "(iVar5 - 0x61U & 0xff)" ( (binary_expression "iVar5 - 0x61U & 0xff" (binary_expression "iVar5 - 0x61U" identifier - number_literal) & number_literal) ))) ))) )) ))) )) (goto_statement "goto LAB_00066b48;" goto statement_identifier ;)) (labeled_statement "LAB_00066ad0:\n          iVar7 = iVar7 + 1;" statement_identifier : (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;)) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) }))) }) while (parenthesized_expression "(param_1 < pbVar8)" ( (binary_expression "param_1 < pbVar8" identifier < identifier) )) ;) })) (goto_statement "goto LAB_00066ae0;" goto statement_identifier ;) })) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (if_statement "if (pbVar8 <= param_1) goto LAB_00066ae0;" if (parenthesized_expression "(pbVar8 <= param_1)" ( (binary_expression "pbVar8 <= param_1" identifier <= identifier) )) (goto_statement "goto LAB_00066ae0;" goto statement_identifier ;)) (expression_statement "piVar6 = (int *)(**(code **)(iVar11 + -0x77c4))();" (assignment_expression "piVar6 = (int *)(**(code **)(iVar11 + -0x77c4))()" identifier = (cast_expression "(int *)(**(code **)(iVar11 + -0x77c4))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(iVar11 + -0x77c4))()" (parenthesized_expression "(**(code **)(iVar11 + -0x77c4))" ( (pointer_expression "**(code **)(iVar11 + -0x77c4)" * (pointer_expression "*(code **)(iVar11 + -0x77c4)" * (cast_expression "(code **)(iVar11 + -0x77c4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + -0x77c4)" ( (binary_expression "iVar11 + -0x77c4" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (expression_statement "param_2 = (byte *)0x7fffffff;" (assignment_expression "param_2 = (byte *)0x7fffffff" identifier = (cast_expression "(byte *)0x7fffffff" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar11 = *(int *)((int)register0x00000074 + -0x48);" (assignment_expression "iVar11 = *(int *)((int)register0x00000074 + -0x48)" identifier = (pointer_expression "*(int *)((int)register0x00000074 + -0x48)" * (cast_expression "(int *)((int)register0x00000074 + -0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x48)" ( (binary_expression "(int)register0x00000074 + -0x48" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "unaff_s4 = (undefined4 *)(*(uint *)((int)register0x00000074 + 8) & 2);" (assignment_expression "unaff_s4 = (undefined4 *)(*(uint *)((int)register0x00000074 + 8) & 2)" identifier = (cast_expression "(undefined4 *)(*(uint *)((int)register0x00000074 + 8) & 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(uint *)((int)register0x00000074 + 8) & 2)" ( (binary_expression "*(uint *)((int)register0x00000074 + 8) & 2" (pointer_expression "*(uint *)((int)register0x00000074 + 8)" * (cast_expression "(uint *)((int)register0x00000074 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + 8)" ( (binary_expression "(int)register0x00000074 + 8" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )))) ;) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" identifier = identifier) ;) (do_statement "do {\n    param_1 = pbVar2 + 1;\n    uVar1 = *(ushort *)(*piVar6 + (uint)*pbVar2 * 2);\n    param_3 = param_2;\n    unaff_s6 = param_1;\n    if ((uVar1 & 0x40) == 0) {\n      if (unaff_s4 != (undefined4 *)0x0) goto LAB_00066c90;\n      if ((uVar1 & 0x200) == 0) goto LAB_00066c5c;\n    }\n    else {\nLAB_00066c5c:\n      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n      if (iVar7 == 0x7fffffff) goto LAB_00066ae4;\n      iVar7 = iVar7 + 1;\n    }\n    pbVar2 = param_1;\n  } while (pbVar8 != param_1);" do (compound_statement "{\n    param_1 = pbVar2 + 1;\n    uVar1 = *(ushort *)(*piVar6 + (uint)*pbVar2 * 2);\n    param_3 = param_2;\n    unaff_s6 = param_1;\n    if ((uVar1 & 0x40) == 0) {\n      if (unaff_s4 != (undefined4 *)0x0) goto LAB_00066c90;\n      if ((uVar1 & 0x200) == 0) goto LAB_00066c5c;\n    }\n    else {\nLAB_00066c5c:\n      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n      if (iVar7 == 0x7fffffff) goto LAB_00066ae4;\n      iVar7 = iVar7 + 1;\n    }\n    pbVar2 = param_1;\n  }" { (expression_statement "param_1 = pbVar2 + 1;" (assignment_expression "param_1 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = *(ushort *)(*piVar6 + (uint)*pbVar2 * 2);" (assignment_expression "uVar1 = *(ushort *)(*piVar6 + (uint)*pbVar2 * 2)" identifier = (pointer_expression "*(ushort *)(*piVar6 + (uint)*pbVar2 * 2)" * (cast_expression "(ushort *)(*piVar6 + (uint)*pbVar2 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar6 + (uint)*pbVar2 * 2)" ( (binary_expression "*piVar6 + (uint)*pbVar2 * 2" (pointer_expression "*piVar6" * identifier) + (binary_expression "(uint)*pbVar2 * 2" (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) ))))) ;) (expression_statement "param_3 = param_2;" (assignment_expression "param_3 = param_2" identifier = identifier) ;) (expression_statement "unaff_s6 = param_1;" (assignment_expression "unaff_s6 = param_1" identifier = identifier) ;) (if_statement "if ((uVar1 & 0x40) == 0) {\n      if (unaff_s4 != (undefined4 *)0x0) goto LAB_00066c90;\n      if ((uVar1 & 0x200) == 0) goto LAB_00066c5c;\n    }\n    else {\nLAB_00066c5c:\n      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n      if (iVar7 == 0x7fffffff) goto LAB_00066ae4;\n      iVar7 = iVar7 + 1;\n    }" if (parenthesized_expression "((uVar1 & 0x40) == 0)" ( (binary_expression "(uVar1 & 0x40) == 0" (parenthesized_expression "(uVar1 & 0x40)" ( (binary_expression "uVar1 & 0x40" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      if (unaff_s4 != (undefined4 *)0x0) goto LAB_00066c90;\n      if ((uVar1 & 0x200) == 0) goto LAB_00066c5c;\n    }" { (if_statement "if (unaff_s4 != (undefined4 *)0x0) goto LAB_00066c90;" if (parenthesized_expression "(unaff_s4 != (undefined4 *)0x0)" ( (binary_expression "unaff_s4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00066c90;" goto statement_identifier ;)) (if_statement "if ((uVar1 & 0x200) == 0) goto LAB_00066c5c;" if (parenthesized_expression "((uVar1 & 0x200) == 0)" ( (binary_expression "(uVar1 & 0x200) == 0" (parenthesized_expression "(uVar1 & 0x200)" ( (binary_expression "uVar1 & 0x200" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_00066c5c;" goto statement_identifier ;)) }) (else_clause "else {\nLAB_00066c5c:\n      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n      if (iVar7 == 0x7fffffff) goto LAB_00066ae4;\n      iVar7 = iVar7 + 1;\n    }" else (compound_statement "{\nLAB_00066c5c:\n      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n      if (iVar7 == 0x7fffffff) goto LAB_00066ae4;\n      iVar7 = iVar7 + 1;\n    }" { (labeled_statement "LAB_00066c5c:\n      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);" statement_identifier : (expression_statement "puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);" (assignment_expression "puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c)" identifier = (pointer_expression "*(undefined4 **)((int)register0x00000074 + -0x3c)" * (cast_expression "(undefined4 **)((int)register0x00000074 + -0x3c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x3c)" ( (binary_expression "(int)register0x00000074 + -0x3c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;)) (if_statement "if (iVar7 == 0x7fffffff) goto LAB_00066ae4;" if (parenthesized_expression "(iVar7 == 0x7fffffff)" ( (binary_expression "iVar7 == 0x7fffffff" identifier == number_literal) )) (goto_statement "goto LAB_00066ae4;" goto statement_identifier ;)) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }))) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" identifier = identifier) ;) }) while (parenthesized_expression "(pbVar8 != param_1)" ( (binary_expression "pbVar8 != param_1" identifier != identifier) )) ;) (expression_statement "puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);" (assignment_expression "puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c)" identifier = (pointer_expression "*(undefined4 **)((int)register0x00000074 + -0x3c)" * (cast_expression "(undefined4 **)((int)register0x00000074 + -0x3c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x3c)" ( (binary_expression "(int)register0x00000074 + -0x3c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (goto_statement "goto LAB_00066ae4;" goto statement_identifier ;) (labeled_statement "LAB_00066c90:\n  iVar7 = -1;" statement_identifier : (expression_statement "iVar7 = -1;" (assignment_expression "iVar7 = -1" identifier = number_literal) ;)) (labeled_statement "LAB_00066ae0:\n  puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);" statement_identifier : (expression_statement "puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);" (assignment_expression "puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c)" identifier = (pointer_expression "*(undefined4 **)((int)register0x00000074 + -0x3c)" * (cast_expression "(undefined4 **)((int)register0x00000074 + -0x3c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x3c)" ( (binary_expression "(int)register0x00000074 + -0x3c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;)) (expression_statement "param_3 = param_2;" (assignment_expression "param_3 = param_2" identifier = identifier) ;) (expression_statement "unaff_s6 = param_1;" (assignment_expression "unaff_s6 = param_1" identifier = identifier) ;) (labeled_statement "LAB_00066ae4:\n  param_1 = *(byte **)((int)register0x00000074 + -0x2c);" statement_identifier : (expression_statement "param_1 = *(byte **)((int)register0x00000074 + -0x2c);" (assignment_expression "param_1 = *(byte **)((int)register0x00000074 + -0x2c)" identifier = (pointer_expression "*(byte **)((int)register0x00000074 + -0x2c)" * (cast_expression "(byte **)((int)register0x00000074 + -0x2c)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x2c)" ( (binary_expression "(int)register0x00000074 + -0x2c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;)) (if_statement "if (param_1 == (byte *)*puVar3) {\n    return iVar7;\n  }" if (parenthesized_expression "(param_1 == (byte *)*puVar3)" ( (binary_expression "param_1 == (byte *)*puVar3" identifier == (cast_expression "(byte *)*puVar3" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) )) (compound_statement "{\n    return iVar7;\n  }" { (return_statement "return iVar7;" return identifier ;) })) (expression_statement "pcVar10 = *(code **)(iVar11 + -0x7688);" (assignment_expression "pcVar10 = *(code **)(iVar11 + -0x7688)" identifier = (pointer_expression "*(code **)(iVar11 + -0x7688)" * (cast_expression "(code **)(iVar11 + -0x7688)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + -0x7688)" ( (binary_expression "iVar11 + -0x7688" identifier + number_literal) ))))) ;) (expression_statement "uVar12 = 0x66ccc;" (assignment_expression "uVar12 = 0x66ccc" identifier = number_literal) ;) (expression_statement "(*pcVar10)();" (call_expression "(*pcVar10)()" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "pcVar9 = *(code **)(pcVar10 + 0x2722c);" (assignment_expression "pcVar9 = *(code **)(pcVar10 + 0x2722c)" identifier = (pointer_expression "*(code **)(pcVar10 + 0x2722c)" * (cast_expression "(code **)(pcVar10 + 0x2722c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar10 + 0x2722c)" ( (binary_expression "pcVar10 + 0x2722c" identifier + number_literal) ))))) ;) (expression_statement "*(byte **)((int)register0x00000074 + -0x60) = pbVar8;" (assignment_expression "*(byte **)((int)register0x00000074 + -0x60) = pbVar8" (pointer_expression "*(byte **)((int)register0x00000074 + -0x60)" * (cast_expression "(byte **)((int)register0x00000074 + -0x60)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x60)" ( (binary_expression "(int)register0x00000074 + -0x60" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)((int)register0x00000074 + -100) = iVar7;" (assignment_expression "*(int *)((int)register0x00000074 + -100) = iVar7" (pointer_expression "*(int *)((int)register0x00000074 + -100)" * (cast_expression "(int *)((int)register0x00000074 + -100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -100)" ( (binary_expression "(int)register0x00000074 + -100" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x5c) = uVar12;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x5c) = uVar12" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x5c)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x5c)" ( (binary_expression "(int)register0x00000074 + -0x5c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(code **)((int)register0x00000074 + -0x70) = pcVar10 + 0x2e924;" (assignment_expression "*(code **)((int)register0x00000074 + -0x70) = pcVar10 + 0x2e924" (pointer_expression "*(code **)((int)register0x00000074 + -0x70)" * (cast_expression "(code **)((int)register0x00000074 + -0x70)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x70)" ( (binary_expression "(int)register0x00000074 + -0x70" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "pcVar10 + 0x2e924" identifier + number_literal)) ;) (expression_statement "param_2 = (byte *)(*pcVar9)();" (assignment_expression "param_2 = (byte *)(*pcVar9)()" identifier = (cast_expression "(byte *)(*pcVar9)()" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*pcVar9)()" (parenthesized_expression "(*pcVar9)" ( (pointer_expression "*pcVar9" * identifier) )) (argument_list "()" ( ))))) ;) (expression_statement "unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x5c);" (assignment_expression "unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x5c)" identifier = (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x5c)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x5c)" ( (binary_expression "(int)register0x00000074 + -0x5c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "unaff_s1 = *(undefined4 *)((int)register0x00000074 + -0x60);" (assignment_expression "unaff_s1 = *(undefined4 *)((int)register0x00000074 + -0x60)" identifier = (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x60)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x60)" ( (binary_expression "(int)register0x00000074 + -0x60" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "unaff_s0 = *(undefined4 *)((int)register0x00000074 + -100);" (assignment_expression "unaff_s0 = *(undefined4 *)((int)register0x00000074 + -100)" identifier = (pointer_expression "*(undefined4 *)((int)register0x00000074 + -100)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -100)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -100)" ( (binary_expression "(int)register0x00000074 + -100" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "pcVar10 = *(code **)(*(int *)((int)register0x00000074 + -0x70) + -0x7c24);" (assignment_expression "pcVar10 = *(code **)(*(int *)((int)register0x00000074 + -0x70) + -0x7c24)" identifier = (pointer_expression "*(code **)(*(int *)((int)register0x00000074 + -0x70) + -0x7c24)" * (cast_expression "(code **)(*(int *)((int)register0x00000074 + -0x70) + -0x7c24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)((int)register0x00000074 + -0x70) + -0x7c24)" ( (binary_expression "*(int *)((int)register0x00000074 + -0x70) + -0x7c24" (pointer_expression "*(int *)((int)register0x00000074 + -0x70)" * (cast_expression "(int *)((int)register0x00000074 + -0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x70)" ( (binary_expression "(int)register0x00000074 + -0x70" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) ))))) ;) (expression_statement "register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x58);" (assignment_expression "register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x58)" identifier = (cast_expression "(BADSPACEBASE *)((int)register0x00000074 + -0x58)" ( (type_descriptor "BADSPACEBASE *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x58)" ( (binary_expression "(int)register0x00000074 + -0x58" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (goto_statement "goto code_r0x00066a10;" goto statement_identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) & LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) , (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & LIT) )) < LIT)) ))) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) & LIT) )) != LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) & LIT) )) != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (break_statement break ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (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 ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) != LIT) )) (goto_statement goto 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 IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression LIT - IDENT) < IDENT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = (binary_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 )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT == LIT) )) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression LIT < IDENT) && (parenthesized_expression ( (binary_expression LIT < (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & LIT) ))) ))) )) ))) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) & LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (goto_statement goto statement_identifier ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (compound_statement { (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 IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (goto_statement goto statement_identifier ;) })))
(function_definition "int mbsnwidth(byte *param_1,byte *param_2,byte *param_3)\n\n{\n  ushort uVar1;\n  byte *pbVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 unaff_s0;\n  int iVar7;\n  undefined4 unaff_s1;\n  byte *pbVar8;\n  undefined4 unaff_s2;\n  int unaff_s3;\n  undefined4 *unaff_s4;\n  undefined1 *unaff_s5;\n  byte *unaff_s6;\n  undefined4 unaff_s7;\n  code *pcVar9;\n  code *pcVar10;\n  int iVar11;\n  undefined4 unaff_s8;\n  undefined4 unaff_retaddr;\n  undefined4 uVar12;\n  undefined1 auStackX_0 [16];\n  \n  pcVar10 = mbsnwidth;\ncode_r0x00066a10:\n  puVar3 = *(undefined4 **)(pcVar10 + 0x2757c);\n  pcVar9 = *(code **)(pcVar10 + 0x27530);\n  *(undefined4 **)((int)register0x00000074 + -0x3c) = puVar3;\n  *(code **)((int)register0x00000074 + -0x48) = pcVar10 + 0x2ebe0;\n  *(byte **)((int)register0x00000074 + -0x10) = unaff_s6;\n  *(undefined4 *)((int)register0x00000074 + -0x24) = unaff_s1;\n  pbVar8 = param_1 + (int)param_2;\n  *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n  *(undefined4 *)((int)register0x00000074 + -8) = unaff_s8;\n  *(undefined4 *)((int)register0x00000074 + -0xc) = unaff_s7;\n  *(undefined1 **)((int)register0x00000074 + -0x14) = unaff_s5;\n  *(undefined4 **)((int)register0x00000074 + -0x18) = unaff_s4;\n  *(int *)((int)register0x00000074 + -0x1c) = unaff_s3;\n  *(undefined4 *)((int)register0x00000074 + -0x20) = unaff_s2;\n  *(undefined4 *)((int)register0x00000074 + -0x28) = unaff_s0;\n  *(byte **)((int)register0x00000074 + 8) = param_3;\n  *(undefined4 *)((int)register0x00000074 + -0x2c) = *puVar3;\n  uVar4 = (*pcVar9)();\n  iVar11 = *(int *)((int)register0x00000074 + -0x48);\n  if (1 < uVar4) {\n    iVar7 = 0;\n    if (param_1 < pbVar8) {\n      unaff_s2 = 0x7fffffff;\n      *(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2;\n      do {\n        iVar5 = (int)(char)*param_1;\n        if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }\n      } while (param_1 < pbVar8);\n    }\n    goto LAB_00066ae0;\n  }\n  iVar7 = 0;\n  if (pbVar8 <= param_1) goto LAB_00066ae0;\n  piVar6 = (int *)(**(code **)(iVar11 + -0x77c4))();\n  param_2 = (byte *)0x7fffffff;\n  iVar11 = *(int *)((int)register0x00000074 + -0x48);\n  unaff_s4 = (undefined4 *)(*(uint *)((int)register0x00000074 + 8) & 2);\n  pbVar2 = param_1;\n  do {\n    param_1 = pbVar2 + 1;\n    uVar1 = *(ushort *)(*piVar6 + (uint)*pbVar2 * 2);\n    param_3 = param_2;\n    unaff_s6 = param_1;\n    if ((uVar1 & 0x40) == 0) {\n      if (unaff_s4 != (undefined4 *)0x0) goto LAB_00066c90;\n      if ((uVar1 & 0x200) == 0) goto LAB_00066c5c;\n    }\n    else {\nLAB_00066c5c:\n      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n      if (iVar7 == 0x7fffffff) goto LAB_00066ae4;\n      iVar7 = iVar7 + 1;\n    }\n    pbVar2 = param_1;\n  } while (pbVar8 != param_1);\n  puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n  goto LAB_00066ae4;\nLAB_00066c90:\n  iVar7 = -1;\nLAB_00066ae0:\n  puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n  param_3 = param_2;\n  unaff_s6 = param_1;\nLAB_00066ae4:\n  param_1 = *(byte **)((int)register0x00000074 + -0x2c);\n  if (param_1 == (byte *)*puVar3) {\n    return iVar7;\n  }\n  pcVar10 = *(code **)(iVar11 + -0x7688);\n  uVar12 = 0x66ccc;\n  (*pcVar10)();\n  pcVar9 = *(code **)(pcVar10 + 0x2722c);\n  *(byte **)((int)register0x00000074 + -0x60) = pbVar8;\n  *(int *)((int)register0x00000074 + -100) = iVar7;\n  *(undefined4 *)((int)register0x00000074 + -0x5c) = uVar12;\n  *(code **)((int)register0x00000074 + -0x70) = pcVar10 + 0x2e924;\n  param_2 = (byte *)(*pcVar9)();\n  unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x5c);\n  unaff_s1 = *(undefined4 *)((int)register0x00000074 + -0x60);\n  unaff_s0 = *(undefined4 *)((int)register0x00000074 + -100);\n  pcVar10 = *(code **)(*(int *)((int)register0x00000074 + -0x70) + -0x7c24);\n  register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x58);\n  goto code_r0x00066a10;\n}" (primitive_type "int") (function_declarator "mbsnwidth(byte *param_1,byte *param_2,byte *param_3)" (identifier "mbsnwidth") (parameter_list "(byte *param_1,byte *param_2,byte *param_3)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "byte *param_2" (type_identifier "byte") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "byte *param_3" (type_identifier "byte") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  ushort uVar1;\n  byte *pbVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 unaff_s0;\n  int iVar7;\n  undefined4 unaff_s1;\n  byte *pbVar8;\n  undefined4 unaff_s2;\n  int unaff_s3;\n  undefined4 *unaff_s4;\n  undefined1 *unaff_s5;\n  byte *unaff_s6;\n  undefined4 unaff_s7;\n  code *pcVar9;\n  code *pcVar10;\n  int iVar11;\n  undefined4 unaff_s8;\n  undefined4 unaff_retaddr;\n  undefined4 uVar12;\n  undefined1 auStackX_0 [16];\n  \n  pcVar10 = mbsnwidth;\ncode_r0x00066a10:\n  puVar3 = *(undefined4 **)(pcVar10 + 0x2757c);\n  pcVar9 = *(code **)(pcVar10 + 0x27530);\n  *(undefined4 **)((int)register0x00000074 + -0x3c) = puVar3;\n  *(code **)((int)register0x00000074 + -0x48) = pcVar10 + 0x2ebe0;\n  *(byte **)((int)register0x00000074 + -0x10) = unaff_s6;\n  *(undefined4 *)((int)register0x00000074 + -0x24) = unaff_s1;\n  pbVar8 = param_1 + (int)param_2;\n  *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n  *(undefined4 *)((int)register0x00000074 + -8) = unaff_s8;\n  *(undefined4 *)((int)register0x00000074 + -0xc) = unaff_s7;\n  *(undefined1 **)((int)register0x00000074 + -0x14) = unaff_s5;\n  *(undefined4 **)((int)register0x00000074 + -0x18) = unaff_s4;\n  *(int *)((int)register0x00000074 + -0x1c) = unaff_s3;\n  *(undefined4 *)((int)register0x00000074 + -0x20) = unaff_s2;\n  *(undefined4 *)((int)register0x00000074 + -0x28) = unaff_s0;\n  *(byte **)((int)register0x00000074 + 8) = param_3;\n  *(undefined4 *)((int)register0x00000074 + -0x2c) = *puVar3;\n  uVar4 = (*pcVar9)();\n  iVar11 = *(int *)((int)register0x00000074 + -0x48);\n  if (1 < uVar4) {\n    iVar7 = 0;\n    if (param_1 < pbVar8) {\n      unaff_s2 = 0x7fffffff;\n      *(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2;\n      do {\n        iVar5 = (int)(char)*param_1;\n        if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }\n      } while (param_1 < pbVar8);\n    }\n    goto LAB_00066ae0;\n  }\n  iVar7 = 0;\n  if (pbVar8 <= param_1) goto LAB_00066ae0;\n  piVar6 = (int *)(**(code **)(iVar11 + -0x77c4))();\n  param_2 = (byte *)0x7fffffff;\n  iVar11 = *(int *)((int)register0x00000074 + -0x48);\n  unaff_s4 = (undefined4 *)(*(uint *)((int)register0x00000074 + 8) & 2);\n  pbVar2 = param_1;\n  do {\n    param_1 = pbVar2 + 1;\n    uVar1 = *(ushort *)(*piVar6 + (uint)*pbVar2 * 2);\n    param_3 = param_2;\n    unaff_s6 = param_1;\n    if ((uVar1 & 0x40) == 0) {\n      if (unaff_s4 != (undefined4 *)0x0) goto LAB_00066c90;\n      if ((uVar1 & 0x200) == 0) goto LAB_00066c5c;\n    }\n    else {\nLAB_00066c5c:\n      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n      if (iVar7 == 0x7fffffff) goto LAB_00066ae4;\n      iVar7 = iVar7 + 1;\n    }\n    pbVar2 = param_1;\n  } while (pbVar8 != param_1);\n  puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n  goto LAB_00066ae4;\nLAB_00066c90:\n  iVar7 = -1;\nLAB_00066ae0:\n  puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n  param_3 = param_2;\n  unaff_s6 = param_1;\nLAB_00066ae4:\n  param_1 = *(byte **)((int)register0x00000074 + -0x2c);\n  if (param_1 == (byte *)*puVar3) {\n    return iVar7;\n  }\n  pcVar10 = *(code **)(iVar11 + -0x7688);\n  uVar12 = 0x66ccc;\n  (*pcVar10)();\n  pcVar9 = *(code **)(pcVar10 + 0x2722c);\n  *(byte **)((int)register0x00000074 + -0x60) = pbVar8;\n  *(int *)((int)register0x00000074 + -100) = iVar7;\n  *(undefined4 *)((int)register0x00000074 + -0x5c) = uVar12;\n  *(code **)((int)register0x00000074 + -0x70) = pcVar10 + 0x2e924;\n  param_2 = (byte *)(*pcVar9)();\n  unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x5c);\n  unaff_s1 = *(undefined4 *)((int)register0x00000074 + -0x60);\n  unaff_s0 = *(undefined4 *)((int)register0x00000074 + -100);\n  pcVar10 = *(code **)(*(int *)((int)register0x00000074 + -0x70) + -0x7c24);\n  register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x58);\n  goto code_r0x00066a10;\n}" ({ "{") (declaration "ushort uVar1;" (type_identifier "ushort") (identifier "uVar1") (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "undefined4 unaff_s0;" (type_identifier "undefined4") (identifier "unaff_s0") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "undefined4 unaff_s1;" (type_identifier "undefined4") (identifier "unaff_s1") (; ";")) (declaration "byte *pbVar8;" (type_identifier "byte") (pointer_declarator "*pbVar8" (* "*") (identifier "pbVar8")) (; ";")) (declaration "undefined4 unaff_s2;" (type_identifier "undefined4") (identifier "unaff_s2") (; ";")) (declaration "int unaff_s3;" (primitive_type "int") (identifier "unaff_s3") (; ";")) (declaration "undefined4 *unaff_s4;" (type_identifier "undefined4") (pointer_declarator "*unaff_s4" (* "*") (identifier "unaff_s4")) (; ";")) (declaration "undefined1 *unaff_s5;" (type_identifier "undefined1") (pointer_declarator "*unaff_s5" (* "*") (identifier "unaff_s5")) (; ";")) (declaration "byte *unaff_s6;" (type_identifier "byte") (pointer_declarator "*unaff_s6" (* "*") (identifier "unaff_s6")) (; ";")) (declaration "undefined4 unaff_s7;" (type_identifier "undefined4") (identifier "unaff_s7") (; ";")) (declaration "code *pcVar9;" (type_identifier "code") (pointer_declarator "*pcVar9" (* "*") (identifier "pcVar9")) (; ";")) (declaration "code *pcVar10;" (type_identifier "code") (pointer_declarator "*pcVar10" (* "*") (identifier "pcVar10")) (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (declaration "undefined4 unaff_s8;" (type_identifier "undefined4") (identifier "unaff_s8") (; ";")) (declaration "undefined4 unaff_retaddr;" (type_identifier "undefined4") (identifier "unaff_retaddr") (; ";")) (declaration "undefined4 uVar12;" (type_identifier "undefined4") (identifier "uVar12") (; ";")) (declaration "undefined1 auStackX_0 [16];" (type_identifier "undefined1") (array_declarator "auStackX_0 [16]" (identifier "auStackX_0") ([ "[") (number_literal "16") (] "]")) (; ";")) (expression_statement "pcVar10 = mbsnwidth;" (assignment_expression "pcVar10 = mbsnwidth" (identifier "pcVar10") (= "=") (identifier "mbsnwidth")) (; ";")) (labeled_statement "code_r0x00066a10:\n  puVar3 = *(undefined4 **)(pcVar10 + 0x2757c);" (statement_identifier "code_r0x00066a10") (: ":") (expression_statement "puVar3 = *(undefined4 **)(pcVar10 + 0x2757c);" (assignment_expression "puVar3 = *(undefined4 **)(pcVar10 + 0x2757c)" (identifier "puVar3") (= "=") (pointer_expression "*(undefined4 **)(pcVar10 + 0x2757c)" (* "*") (cast_expression "(undefined4 **)(pcVar10 + 0x2757c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar10 + 0x2757c)" (( "(") (binary_expression "pcVar10 + 0x2757c" (identifier "pcVar10") (+ "+") (number_literal "0x2757c")) () ")"))))) (; ";"))) (expression_statement "pcVar9 = *(code **)(pcVar10 + 0x27530);" (assignment_expression "pcVar9 = *(code **)(pcVar10 + 0x27530)" (identifier "pcVar9") (= "=") (pointer_expression "*(code **)(pcVar10 + 0x27530)" (* "*") (cast_expression "(code **)(pcVar10 + 0x27530)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar10 + 0x27530)" (( "(") (binary_expression "pcVar10 + 0x27530" (identifier "pcVar10") (+ "+") (number_literal "0x27530")) () ")"))))) (; ";")) (expression_statement "*(undefined4 **)((int)register0x00000074 + -0x3c) = puVar3;" (assignment_expression "*(undefined4 **)((int)register0x00000074 + -0x3c) = puVar3" (pointer_expression "*(undefined4 **)((int)register0x00000074 + -0x3c)" (* "*") (cast_expression "(undefined4 **)((int)register0x00000074 + -0x3c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x3c)" (( "(") (binary_expression "(int)register0x00000074 + -0x3c" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x3c")) () ")")))) (= "=") (identifier "puVar3")) (; ";")) (expression_statement "*(code **)((int)register0x00000074 + -0x48) = pcVar10 + 0x2ebe0;" (assignment_expression "*(code **)((int)register0x00000074 + -0x48) = pcVar10 + 0x2ebe0" (pointer_expression "*(code **)((int)register0x00000074 + -0x48)" (* "*") (cast_expression "(code **)((int)register0x00000074 + -0x48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x48)" (( "(") (binary_expression "(int)register0x00000074 + -0x48" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x48")) () ")")))) (= "=") (binary_expression "pcVar10 + 0x2ebe0" (identifier "pcVar10") (+ "+") (number_literal "0x2ebe0"))) (; ";")) (expression_statement "*(byte **)((int)register0x00000074 + -0x10) = unaff_s6;" (assignment_expression "*(byte **)((int)register0x00000074 + -0x10) = unaff_s6" (pointer_expression "*(byte **)((int)register0x00000074 + -0x10)" (* "*") (cast_expression "(byte **)((int)register0x00000074 + -0x10)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x10)" (( "(") (binary_expression "(int)register0x00000074 + -0x10" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x10")) () ")")))) (= "=") (identifier "unaff_s6")) (; ";")) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x24) = unaff_s1;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x24) = unaff_s1" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x24)" (* "*") (cast_expression "(undefined4 *)((int)register0x00000074 + -0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x24)" (( "(") (binary_expression "(int)register0x00000074 + -0x24" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x24")) () ")")))) (= "=") (identifier "unaff_s1")) (; ";")) (expression_statement "pbVar8 = param_1 + (int)param_2;" (assignment_expression "pbVar8 = param_1 + (int)param_2" (identifier "pbVar8") (= "=") (binary_expression "param_1 + (int)param_2" (identifier "param_1") (+ "+") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")))) (; ";")) (expression_statement "*(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -4)" (* "*") (cast_expression "(undefined4 *)((int)register0x00000074 + -4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -4)" (( "(") (binary_expression "(int)register0x00000074 + -4" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-4")) () ")")))) (= "=") (identifier "unaff_retaddr")) (; ";")) (expression_statement "*(undefined4 *)((int)register0x00000074 + -8) = unaff_s8;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -8) = unaff_s8" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -8)" (* "*") (cast_expression "(undefined4 *)((int)register0x00000074 + -8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -8)" (( "(") (binary_expression "(int)register0x00000074 + -8" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-8")) () ")")))) (= "=") (identifier "unaff_s8")) (; ";")) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0xc) = unaff_s7;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0xc) = unaff_s7" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0xc)" (* "*") (cast_expression "(undefined4 *)((int)register0x00000074 + -0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0xc)" (( "(") (binary_expression "(int)register0x00000074 + -0xc" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0xc")) () ")")))) (= "=") (identifier "unaff_s7")) (; ";")) (expression_statement "*(undefined1 **)((int)register0x00000074 + -0x14) = unaff_s5;" (assignment_expression "*(undefined1 **)((int)register0x00000074 + -0x14) = unaff_s5" (pointer_expression "*(undefined1 **)((int)register0x00000074 + -0x14)" (* "*") (cast_expression "(undefined1 **)((int)register0x00000074 + -0x14)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x14)" (( "(") (binary_expression "(int)register0x00000074 + -0x14" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x14")) () ")")))) (= "=") (identifier "unaff_s5")) (; ";")) (expression_statement "*(undefined4 **)((int)register0x00000074 + -0x18) = unaff_s4;" (assignment_expression "*(undefined4 **)((int)register0x00000074 + -0x18) = unaff_s4" (pointer_expression "*(undefined4 **)((int)register0x00000074 + -0x18)" (* "*") (cast_expression "(undefined4 **)((int)register0x00000074 + -0x18)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x18)" (( "(") (binary_expression "(int)register0x00000074 + -0x18" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x18")) () ")")))) (= "=") (identifier "unaff_s4")) (; ";")) (expression_statement "*(int *)((int)register0x00000074 + -0x1c) = unaff_s3;" (assignment_expression "*(int *)((int)register0x00000074 + -0x1c) = unaff_s3" (pointer_expression "*(int *)((int)register0x00000074 + -0x1c)" (* "*") (cast_expression "(int *)((int)register0x00000074 + -0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x1c)" (( "(") (binary_expression "(int)register0x00000074 + -0x1c" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x1c")) () ")")))) (= "=") (identifier "unaff_s3")) (; ";")) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x20) = unaff_s2;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x20) = unaff_s2" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x20)" (* "*") (cast_expression "(undefined4 *)((int)register0x00000074 + -0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x20)" (( "(") (binary_expression "(int)register0x00000074 + -0x20" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x20")) () ")")))) (= "=") (identifier "unaff_s2")) (; ";")) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x28) = unaff_s0;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x28) = unaff_s0" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x28)" (* "*") (cast_expression "(undefined4 *)((int)register0x00000074 + -0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x28)" (( "(") (binary_expression "(int)register0x00000074 + -0x28" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x28")) () ")")))) (= "=") (identifier "unaff_s0")) (; ";")) (expression_statement "*(byte **)((int)register0x00000074 + 8) = param_3;" (assignment_expression "*(byte **)((int)register0x00000074 + 8) = param_3" (pointer_expression "*(byte **)((int)register0x00000074 + 8)" (* "*") (cast_expression "(byte **)((int)register0x00000074 + 8)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)register0x00000074 + 8)" (( "(") (binary_expression "(int)register0x00000074 + 8" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x2c) = *puVar3;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x2c) = *puVar3" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x2c)" (* "*") (cast_expression "(undefined4 *)((int)register0x00000074 + -0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x2c)" (( "(") (binary_expression "(int)register0x00000074 + -0x2c" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x2c")) () ")")))) (= "=") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) (; ";")) (expression_statement "uVar4 = (*pcVar9)();" (assignment_expression "uVar4 = (*pcVar9)()" (identifier "uVar4") (= "=") (call_expression "(*pcVar9)()" (parenthesized_expression "(*pcVar9)" (( "(") (pointer_expression "*pcVar9" (* "*") (identifier "pcVar9")) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar11 = *(int *)((int)register0x00000074 + -0x48);" (assignment_expression "iVar11 = *(int *)((int)register0x00000074 + -0x48)" (identifier "iVar11") (= "=") (pointer_expression "*(int *)((int)register0x00000074 + -0x48)" (* "*") (cast_expression "(int *)((int)register0x00000074 + -0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x48)" (( "(") (binary_expression "(int)register0x00000074 + -0x48" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x48")) () ")"))))) (; ";")) (if_statement "if (1 < uVar4) {\n    iVar7 = 0;\n    if (param_1 < pbVar8) {\n      unaff_s2 = 0x7fffffff;\n      *(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2;\n      do {\n        iVar5 = (int)(char)*param_1;\n        if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }\n      } while (param_1 < pbVar8);\n    }\n    goto LAB_00066ae0;\n  }" (if "if") (parenthesized_expression "(1 < uVar4)" (( "(") (binary_expression "1 < uVar4" (number_literal "1") (< "<") (identifier "uVar4")) () ")")) (compound_statement "{\n    iVar7 = 0;\n    if (param_1 < pbVar8) {\n      unaff_s2 = 0x7fffffff;\n      *(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2;\n      do {\n        iVar5 = (int)(char)*param_1;\n        if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }\n      } while (param_1 < pbVar8);\n    }\n    goto LAB_00066ae0;\n  }" ({ "{") (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_1 < pbVar8) {\n      unaff_s2 = 0x7fffffff;\n      *(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2;\n      do {\n        iVar5 = (int)(char)*param_1;\n        if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }\n      } while (param_1 < pbVar8);\n    }" (if "if") (parenthesized_expression "(param_1 < pbVar8)" (( "(") (binary_expression "param_1 < pbVar8" (identifier "param_1") (< "<") (identifier "pbVar8")) () ")")) (compound_statement "{\n      unaff_s2 = 0x7fffffff;\n      *(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2;\n      do {\n        iVar5 = (int)(char)*param_1;\n        if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }\n      } while (param_1 < pbVar8);\n    }" ({ "{") (expression_statement "unaff_s2 = 0x7fffffff;" (assignment_expression "unaff_s2 = 0x7fffffff" (identifier "unaff_s2") (= "=") (number_literal "0x7fffffff")) (; ";")) (expression_statement "*(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2;" (assignment_expression "*(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2" (pointer_expression "*(uint *)((int)register0x00000074 + -0x40)" (* "*") (cast_expression "(uint *)((int)register0x00000074 + -0x40)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x40)" (( "(") (binary_expression "(int)register0x00000074 + -0x40" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x40")) () ")")))) (= "=") (binary_expression "*(uint *)((int)register0x00000074 + 8) & 2" (pointer_expression "*(uint *)((int)register0x00000074 + 8)" (* "*") (cast_expression "(uint *)((int)register0x00000074 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + 8)" (( "(") (binary_expression "(int)register0x00000074 + 8" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "2"))) (; ";")) (do_statement "do {\n        iVar5 = (int)(char)*param_1;\n        if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }\n      } while (param_1 < pbVar8);" (do "do") (compound_statement "{\n        iVar5 = (int)(char)*param_1;\n        if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }\n      }" ({ "{") (expression_statement "iVar5 = (int)(char)*param_1;" (assignment_expression "iVar5 = (int)(char)*param_1" (identifier "iVar5") (= "=") (cast_expression "(int)(char)*param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (cast_expression "(char)*param_1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))))) (; ";")) (if_statement "if (iVar5 < 0x40) {\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }\n        else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }" (if "if") (parenthesized_expression "(iVar5 < 0x40)" (( "(") (binary_expression "iVar5 < 0x40" (identifier "iVar5") (< "<") (number_literal "0x40")) () ")")) (compound_statement "{\n          if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;\nLAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);\n          *unaff_s4 = 0;\n          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);\n          unaff_s7 = 0xffffffff;\n          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;\n          unaff_s8 = 0xfffffffe;\n          do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);\n        }" ({ "{") (if_statement "if ((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )) goto LAB_00066ad0;" (if "if") (parenthesized_expression "((0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             ))" (( "(") (binary_expression "(0x24 < iVar5) ||\n             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )" (parenthesized_expression "(0x24 < iVar5)" (( "(") (binary_expression "0x24 < iVar5" (number_literal "0x24") (< "<") (identifier "iVar5")) () ")")) (|| "||") (parenthesized_expression "(unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4\n             )" (( "(") (comma_expression "unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4" (assignment_expression "unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34)" (identifier "unaff_s4") (= "=") (cast_expression "(undefined4 *)((int)register0x00000074 + -0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x34)" (( "(") (binary_expression "(int)register0x00000074 + -0x34" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x34")) () ")")))) (, ",") (binary_expression "(iVar5 - 0x20U & 0xff) < 4" (parenthesized_expression "(iVar5 - 0x20U & 0xff)" (( "(") (binary_expression "iVar5 - 0x20U & 0xff" (binary_expression "iVar5 - 0x20U" (identifier "iVar5") (- "-") (number_literal "0x20U")) (& "&") (number_literal "0xff")) () ")")) (< "<") (number_literal "4"))) () ")"))) () ")")) (goto_statement "goto LAB_00066ad0;" (goto "goto") (statement_identifier "LAB_00066ad0") (; ";"))) (labeled_statement "LAB_00066b48:\n          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);" (statement_identifier "LAB_00066b48") (: ":") (expression_statement "unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);" (assignment_expression "unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34)" (identifier "unaff_s4") (= "=") (cast_expression "(undefined4 *)((int)register0x00000074 + -0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x34)" (( "(") (binary_expression "(int)register0x00000074 + -0x34" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x34")) () ")")))) (; ";"))) (expression_statement "*unaff_s4 = 0;" (assignment_expression "*unaff_s4 = 0" (pointer_expression "*unaff_s4" (* "*") (identifier "unaff_s4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);" (assignment_expression "unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38)" (identifier "unaff_s5") (= "=") (cast_expression "(undefined1 *)((int)register0x00000074 + -0x38)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x38)" (( "(") (binary_expression "(int)register0x00000074 + -0x38" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x38")) () ")")))) (; ";")) (expression_statement "unaff_s7 = 0xffffffff;" (assignment_expression "unaff_s7 = 0xffffffff" (identifier "unaff_s7") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x30) = 0;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x30) = 0" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x30)" (* "*") (cast_expression "(undefined4 *)((int)register0x00000074 + -0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x30)" (( "(") (binary_expression "(int)register0x00000074 + -0x30" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x30")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "unaff_s8 = 0xfffffffe;" (assignment_expression "unaff_s8 = 0xfffffffe" (identifier "unaff_s8") (= "=") (number_literal "0xfffffffe")) (; ";")) (do_statement "do {\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          } while (iVar5 == 0);" (do "do") (compound_statement "{\n            param_2 = param_1;\n            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }\n            if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }\n            if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }\n            iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n            if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }\n            param_1 = param_1 + unaff_s3;\n            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);\n            iVar11 = *(int *)((int)register0x00000074 + -0x48);\n          }" ({ "{") (expression_statement "param_2 = param_1;" (assignment_expression "param_2 = param_1" (identifier "param_2") (= "=") (identifier "param_1")) (; ";")) (expression_statement "unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);" (assignment_expression "unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4)" (identifier "unaff_s3") (= "=") (call_expression "rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4)" (identifier "rpl_mbrtowc") (argument_list "(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4)" (( "(") (identifier "unaff_s5") (, ",") (identifier "param_1") (, ",") (binary_expression "(int)pbVar8 - (int)param_1" (cast_expression "(int)pbVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar8")) (- "-") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) (, ",") (identifier "unaff_s4") () ")")))) (; ";")) (expression_statement "iVar11 = *(int *)((int)register0x00000074 + -0x48);" (assignment_expression "iVar11 = *(int *)((int)register0x00000074 + -0x48)" (identifier "iVar11") (= "=") (pointer_expression "*(int *)((int)register0x00000074 + -0x48)" (* "*") (cast_expression "(int *)((int)register0x00000074 + -0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x48)" (( "(") (binary_expression "(int)register0x00000074 + -0x48" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x48")) () ")"))))) (; ";")) (if_statement "if (unaff_s3 == -1) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }" (if "if") (parenthesized_expression "(unaff_s3 == -1)" (( "(") (binary_expression "unaff_s3 == -1" (identifier "unaff_s3") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              goto LAB_00066ad0;\n            }" ({ "{") (if_statement "if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;" (if "if") (parenthesized_expression "((*(uint *)((int)register0x00000074 + 8) & 1) != 0)" (( "(") (binary_expression "(*(uint *)((int)register0x00000074 + 8) & 1) != 0" (parenthesized_expression "(*(uint *)((int)register0x00000074 + 8) & 1)" (( "(") (binary_expression "*(uint *)((int)register0x00000074 + 8) & 1" (pointer_expression "*(uint *)((int)register0x00000074 + 8)" (* "*") (cast_expression "(uint *)((int)register0x00000074 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + 8)" (( "(") (binary_expression "(int)register0x00000074 + 8" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00066c90;" (goto "goto") (statement_identifier "LAB_00066c90") (; ";"))) (goto_statement "goto LAB_00066ad0;" (goto "goto") (statement_identifier "LAB_00066ad0") (; ";")) (} "}"))) (if_statement "if (unaff_s3 == -2) {\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }" (if "if") (parenthesized_expression "(unaff_s3 == -2)" (( "(") (binary_expression "unaff_s3 == -2" (identifier "unaff_s3") (== "==") (number_literal "-2")) () ")")) (compound_statement "{\n              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;\n              iVar7 = iVar7 + 1;\n              param_1 = pbVar8;\n              break;\n            }" ({ "{") (if_statement "if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;" (if "if") (parenthesized_expression "((*(uint *)((int)register0x00000074 + 8) & 1) != 0)" (( "(") (binary_expression "(*(uint *)((int)register0x00000074 + 8) & 1) != 0" (parenthesized_expression "(*(uint *)((int)register0x00000074 + 8) & 1)" (( "(") (binary_expression "*(uint *)((int)register0x00000074 + 8) & 1" (pointer_expression "*(uint *)((int)register0x00000074 + 8)" (* "*") (cast_expression "(uint *)((int)register0x00000074 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + 8)" (( "(") (binary_expression "(int)register0x00000074 + 8" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00066c90;" (goto "goto") (statement_identifier "LAB_00066c90") (; ";"))) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_1 = pbVar8;" (assignment_expression "param_1 = pbVar8" (identifier "param_1") (= "=") (identifier "pbVar8")) (; ";")) (break_statement "break;" (break "break") (; ";")) (} "}"))) (if_statement "if (unaff_s3 == 0) {\n              unaff_s3 = 1;\n            }" (if "if") (parenthesized_expression "(unaff_s3 == 0)" (( "(") (binary_expression "unaff_s3 == 0" (identifier "unaff_s3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              unaff_s3 = 1;\n            }" ({ "{") (expression_statement "unaff_s3 = 1;" (assignment_expression "unaff_s3 = 1" (identifier "unaff_s3") (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38));" (assignment_expression "iVar5 = (**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38))" (identifier "iVar5") (= "=") (call_expression "(**(code **)(iVar11 + -0x764c))\n                              (*(undefined4 *)((int)register0x00000074 + -0x38))" (parenthesized_expression "(**(code **)(iVar11 + -0x764c))" (( "(") (pointer_expression "**(code **)(iVar11 + -0x764c)" (* "*") (pointer_expression "*(code **)(iVar11 + -0x764c)" (* "*") (cast_expression "(code **)(iVar11 + -0x764c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar11 + -0x764c)" (( "(") (binary_expression "iVar11 + -0x764c" (identifier "iVar11") (+ "+") (number_literal "-0x764c")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)((int)register0x00000074 + -0x38))" (( "(") (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x38)" (* "*") (cast_expression "(undefined4 *)((int)register0x00000074 + -0x38)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x38)" (( "(") (binary_expression "(int)register0x00000074 + -0x38" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x38")) () ")")))) () ")")))) (; ";")) (expression_statement "iVar11 = *(int *)((int)register0x00000074 + -0x48);" (assignment_expression "iVar11 = *(int *)((int)register0x00000074 + -0x48)" (identifier "iVar11") (= "=") (pointer_expression "*(int *)((int)register0x00000074 + -0x48)" (* "*") (cast_expression "(int *)((int)register0x00000074 + -0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x48)" (( "(") (binary_expression "(int)register0x00000074 + -0x48" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x48")) () ")"))))) (; ";")) (if_statement "if (iVar5 < 0) {\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }\n            else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }" (if "if") (parenthesized_expression "(iVar5 < 0)" (( "(") (binary_expression "iVar5 < 0" (identifier "iVar5") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;\n              iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));\n              iVar11 = *(int *)((int)register0x00000074 + -0x48);\n              if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }\n            }" ({ "{") (if_statement "if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;" (if "if") (parenthesized_expression "(*(int *)((int)register0x00000074 + -0x40) != 0)" (( "(") (binary_expression "*(int *)((int)register0x00000074 + -0x40) != 0" (pointer_expression "*(int *)((int)register0x00000074 + -0x40)" (* "*") (cast_expression "(int *)((int)register0x00000074 + -0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x40)" (( "(") (binary_expression "(int)register0x00000074 + -0x40" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x40")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00066c90;" (goto "goto") (statement_identifier "LAB_00066c90") (; ";"))) (expression_statement "iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38));" (assignment_expression "iVar5 = (**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38))" (identifier "iVar5") (= "=") (call_expression "(**(code **)(iVar11 + -0x7698))\n                                (*(undefined4 *)((int)register0x00000074 + -0x38))" (parenthesized_expression "(**(code **)(iVar11 + -0x7698))" (( "(") (pointer_expression "**(code **)(iVar11 + -0x7698)" (* "*") (pointer_expression "*(code **)(iVar11 + -0x7698)" (* "*") (cast_expression "(code **)(iVar11 + -0x7698)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar11 + -0x7698)" (( "(") (binary_expression "iVar11 + -0x7698" (identifier "iVar11") (+ "+") (number_literal "-0x7698")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)((int)register0x00000074 + -0x38))" (( "(") (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x38)" (* "*") (cast_expression "(undefined4 *)((int)register0x00000074 + -0x38)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x38)" (( "(") (binary_expression "(int)register0x00000074 + -0x38" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x38")) () ")")))) () ")")))) (; ";")) (expression_statement "iVar11 = *(int *)((int)register0x00000074 + -0x48);" (assignment_expression "iVar11 = *(int *)((int)register0x00000074 + -0x48)" (identifier "iVar11") (= "=") (pointer_expression "*(int *)((int)register0x00000074 + -0x48)" (* "*") (cast_expression "(int *)((int)register0x00000074 + -0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x48)" (( "(") (binary_expression "(int)register0x00000074 + -0x48" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x48")) () ")"))))) (; ";")) (if_statement "if (iVar5 == 0) {\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;\n                iVar7 = iVar7 + 1;\n              }" ({ "{") (if_statement "if (iVar7 == 0x7fffffff) goto LAB_00066cb4;" (if "if") (parenthesized_expression "(iVar7 == 0x7fffffff)" (( "(") (binary_expression "iVar7 == 0x7fffffff" (identifier "iVar7") (== "==") (number_literal "0x7fffffff")) () ")")) (goto_statement "goto LAB_00066cb4;" (goto "goto") (statement_identifier "LAB_00066cb4") (; ";"))) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }" (else "else") (compound_statement "{\n              if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }\n              iVar7 = iVar7 + iVar5;\n            }" ({ "{") (if_statement "if (0x7fffffff - iVar7 < iVar5) {\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }" (if "if") (parenthesized_expression "(0x7fffffff - iVar7 < iVar5)" (( "(") (binary_expression "0x7fffffff - iVar7 < iVar5" (binary_expression "0x7fffffff - iVar7" (number_literal "0x7fffffff") (- "-") (identifier "iVar7")) (< "<") (identifier "iVar5")) () ")")) (compound_statement "{\nLAB_00066cb4:\n                iVar7 = 0x7fffffff;\n                goto LAB_00066ae0;\n              }" ({ "{") (labeled_statement "LAB_00066cb4:\n                iVar7 = 0x7fffffff;" (statement_identifier "LAB_00066cb4") (: ":") (expression_statement "iVar7 = 0x7fffffff;" (assignment_expression "iVar7 = 0x7fffffff" (identifier "iVar7") (= "=") (number_literal "0x7fffffff")) (; ";"))) (goto_statement "goto LAB_00066ae0;" (goto "goto") (statement_identifier "LAB_00066ae0") (; ";")) (} "}"))) (expression_statement "iVar7 = iVar7 + iVar5;" (assignment_expression "iVar7 = iVar7 + iVar5" (identifier "iVar7") (= "=") (binary_expression "iVar7 + iVar5" (identifier "iVar7") (+ "+") (identifier "iVar5"))) (; ";")) (} "}")))) (expression_statement "param_1 = param_1 + unaff_s3;" (assignment_expression "param_1 = param_1 + unaff_s3" (identifier "param_1") (= "=") (binary_expression "param_1 + unaff_s3" (identifier "param_1") (+ "+") (identifier "unaff_s3"))) (; ";")) (expression_statement "iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);" (assignment_expression "iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4)" (identifier "iVar5") (= "=") (call_expression "(**(code **)(iVar11 + -0x7668))(unaff_s4)" (parenthesized_expression "(**(code **)(iVar11 + -0x7668))" (( "(") (pointer_expression "**(code **)(iVar11 + -0x7668)" (* "*") (pointer_expression "*(code **)(iVar11 + -0x7668)" (* "*") (cast_expression "(code **)(iVar11 + -0x7668)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar11 + -0x7668)" (( "(") (binary_expression "iVar11 + -0x7668" (identifier "iVar11") (+ "+") (number_literal "-0x7668")) () ")"))))) () ")")) (argument_list "(unaff_s4)" (( "(") (identifier "unaff_s4") () ")")))) (; ";")) (expression_statement "iVar11 = *(int *)((int)register0x00000074 + -0x48);" (assignment_expression "iVar11 = *(int *)((int)register0x00000074 + -0x48)" (identifier "iVar11") (= "=") (pointer_expression "*(int *)((int)register0x00000074 + -0x48)" (* "*") (cast_expression "(int *)((int)register0x00000074 + -0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x48)" (( "(") (binary_expression "(int)register0x00000074 + -0x48" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x48")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (; ";")) (} "}")) (else_clause "else {\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }" (else "else") (compound_statement "{\n          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;\nLAB_00066ad0:\n          iVar7 = iVar7 + 1;\n          param_1 = param_1 + 1;\n        }" ({ "{") (if_statement "if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))\n          goto LAB_00066b48;" (if "if") (parenthesized_expression "((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))" (( "(") (binary_expression "(iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff))))" (parenthesized_expression "(iVar5 < 0x41)" (( "(") (binary_expression "iVar5 < 0x41" (identifier "iVar5") (< "<") (number_literal "0x41")) () ")")) (|| "||") (parenthesized_expression "((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff))))" (( "(") (parenthesized_expression "(0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))" (( "(") (binary_expression "0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff))" (binary_expression "0x5f < iVar5" (number_literal "0x5f") (< "<") (identifier "iVar5")) (&& "&&") (parenthesized_expression "(0x1d < (iVar5 - 0x61U & 0xff))" (( "(") (binary_expression "0x1d < (iVar5 - 0x61U & 0xff)" (number_literal "0x1d") (< "<") (parenthesized_expression "(iVar5 - 0x61U & 0xff)" (( "(") (binary_expression "iVar5 - 0x61U & 0xff" (binary_expression "iVar5 - 0x61U" (identifier "iVar5") (- "-") (number_literal "0x61U")) (& "&") (number_literal "0xff")) () ")"))) () ")"))) () ")")) () ")"))) () ")")) (goto_statement "goto LAB_00066b48;" (goto "goto") (statement_identifier "LAB_00066b48") (; ";"))) (labeled_statement "LAB_00066ad0:\n          iVar7 = iVar7 + 1;" (statement_identifier "LAB_00066ad0") (: ":") (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";"))) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (} "}")) (while "while") (parenthesized_expression "(param_1 < pbVar8)" (( "(") (binary_expression "param_1 < pbVar8" (identifier "param_1") (< "<") (identifier "pbVar8")) () ")")) (; ";")) (} "}"))) (goto_statement "goto LAB_00066ae0;" (goto "goto") (statement_identifier "LAB_00066ae0") (; ";")) (} "}"))) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (if_statement "if (pbVar8 <= param_1) goto LAB_00066ae0;" (if "if") (parenthesized_expression "(pbVar8 <= param_1)" (( "(") (binary_expression "pbVar8 <= param_1" (identifier "pbVar8") (<= "<=") (identifier "param_1")) () ")")) (goto_statement "goto LAB_00066ae0;" (goto "goto") (statement_identifier "LAB_00066ae0") (; ";"))) (expression_statement "piVar6 = (int *)(**(code **)(iVar11 + -0x77c4))();" (assignment_expression "piVar6 = (int *)(**(code **)(iVar11 + -0x77c4))()" (identifier "piVar6") (= "=") (cast_expression "(int *)(**(code **)(iVar11 + -0x77c4))()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(iVar11 + -0x77c4))()" (parenthesized_expression "(**(code **)(iVar11 + -0x77c4))" (( "(") (pointer_expression "**(code **)(iVar11 + -0x77c4)" (* "*") (pointer_expression "*(code **)(iVar11 + -0x77c4)" (* "*") (cast_expression "(code **)(iVar11 + -0x77c4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar11 + -0x77c4)" (( "(") (binary_expression "iVar11 + -0x77c4" (identifier "iVar11") (+ "+") (number_literal "-0x77c4")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "param_2 = (byte *)0x7fffffff;" (assignment_expression "param_2 = (byte *)0x7fffffff" (identifier "param_2") (= "=") (cast_expression "(byte *)0x7fffffff" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x7fffffff"))) (; ";")) (expression_statement "iVar11 = *(int *)((int)register0x00000074 + -0x48);" (assignment_expression "iVar11 = *(int *)((int)register0x00000074 + -0x48)" (identifier "iVar11") (= "=") (pointer_expression "*(int *)((int)register0x00000074 + -0x48)" (* "*") (cast_expression "(int *)((int)register0x00000074 + -0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x48)" (( "(") (binary_expression "(int)register0x00000074 + -0x48" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x48")) () ")"))))) (; ";")) (expression_statement "unaff_s4 = (undefined4 *)(*(uint *)((int)register0x00000074 + 8) & 2);" (assignment_expression "unaff_s4 = (undefined4 *)(*(uint *)((int)register0x00000074 + 8) & 2)" (identifier "unaff_s4") (= "=") (cast_expression "(undefined4 *)(*(uint *)((int)register0x00000074 + 8) & 2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(uint *)((int)register0x00000074 + 8) & 2)" (( "(") (binary_expression "*(uint *)((int)register0x00000074 + 8) & 2" (pointer_expression "*(uint *)((int)register0x00000074 + 8)" (* "*") (cast_expression "(uint *)((int)register0x00000074 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + 8)" (( "(") (binary_expression "(int)register0x00000074 + 8" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "2")) () ")")))) (; ";")) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" (identifier "pbVar2") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n    param_1 = pbVar2 + 1;\n    uVar1 = *(ushort *)(*piVar6 + (uint)*pbVar2 * 2);\n    param_3 = param_2;\n    unaff_s6 = param_1;\n    if ((uVar1 & 0x40) == 0) {\n      if (unaff_s4 != (undefined4 *)0x0) goto LAB_00066c90;\n      if ((uVar1 & 0x200) == 0) goto LAB_00066c5c;\n    }\n    else {\nLAB_00066c5c:\n      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n      if (iVar7 == 0x7fffffff) goto LAB_00066ae4;\n      iVar7 = iVar7 + 1;\n    }\n    pbVar2 = param_1;\n  } while (pbVar8 != param_1);" (do "do") (compound_statement "{\n    param_1 = pbVar2 + 1;\n    uVar1 = *(ushort *)(*piVar6 + (uint)*pbVar2 * 2);\n    param_3 = param_2;\n    unaff_s6 = param_1;\n    if ((uVar1 & 0x40) == 0) {\n      if (unaff_s4 != (undefined4 *)0x0) goto LAB_00066c90;\n      if ((uVar1 & 0x200) == 0) goto LAB_00066c5c;\n    }\n    else {\nLAB_00066c5c:\n      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n      if (iVar7 == 0x7fffffff) goto LAB_00066ae4;\n      iVar7 = iVar7 + 1;\n    }\n    pbVar2 = param_1;\n  }" ({ "{") (expression_statement "param_1 = pbVar2 + 1;" (assignment_expression "param_1 = pbVar2 + 1" (identifier "param_1") (= "=") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar1 = *(ushort *)(*piVar6 + (uint)*pbVar2 * 2);" (assignment_expression "uVar1 = *(ushort *)(*piVar6 + (uint)*pbVar2 * 2)" (identifier "uVar1") (= "=") (pointer_expression "*(ushort *)(*piVar6 + (uint)*pbVar2 * 2)" (* "*") (cast_expression "(ushort *)(*piVar6 + (uint)*pbVar2 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar6 + (uint)*pbVar2 * 2)" (( "(") (binary_expression "*piVar6 + (uint)*pbVar2 * 2" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (+ "+") (binary_expression "(uint)*pbVar2 * 2" (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar2")) (* "*") (number_literal "2"))) () ")"))))) (; ";")) (expression_statement "param_3 = param_2;" (assignment_expression "param_3 = param_2" (identifier "param_3") (= "=") (identifier "param_2")) (; ";")) (expression_statement "unaff_s6 = param_1;" (assignment_expression "unaff_s6 = param_1" (identifier "unaff_s6") (= "=") (identifier "param_1")) (; ";")) (if_statement "if ((uVar1 & 0x40) == 0) {\n      if (unaff_s4 != (undefined4 *)0x0) goto LAB_00066c90;\n      if ((uVar1 & 0x200) == 0) goto LAB_00066c5c;\n    }\n    else {\nLAB_00066c5c:\n      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n      if (iVar7 == 0x7fffffff) goto LAB_00066ae4;\n      iVar7 = iVar7 + 1;\n    }" (if "if") (parenthesized_expression "((uVar1 & 0x40) == 0)" (( "(") (binary_expression "(uVar1 & 0x40) == 0" (parenthesized_expression "(uVar1 & 0x40)" (( "(") (binary_expression "uVar1 & 0x40" (identifier "uVar1") (& "&") (number_literal "0x40")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (unaff_s4 != (undefined4 *)0x0) goto LAB_00066c90;\n      if ((uVar1 & 0x200) == 0) goto LAB_00066c5c;\n    }" ({ "{") (if_statement "if (unaff_s4 != (undefined4 *)0x0) goto LAB_00066c90;" (if "if") (parenthesized_expression "(unaff_s4 != (undefined4 *)0x0)" (( "(") (binary_expression "unaff_s4 != (undefined4 *)0x0" (identifier "unaff_s4") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00066c90;" (goto "goto") (statement_identifier "LAB_00066c90") (; ";"))) (if_statement "if ((uVar1 & 0x200) == 0) goto LAB_00066c5c;" (if "if") (parenthesized_expression "((uVar1 & 0x200) == 0)" (( "(") (binary_expression "(uVar1 & 0x200) == 0" (parenthesized_expression "(uVar1 & 0x200)" (( "(") (binary_expression "uVar1 & 0x200" (identifier "uVar1") (& "&") (number_literal "0x200")) () ")")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00066c5c;" (goto "goto") (statement_identifier "LAB_00066c5c") (; ";"))) (} "}")) (else_clause "else {\nLAB_00066c5c:\n      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n      if (iVar7 == 0x7fffffff) goto LAB_00066ae4;\n      iVar7 = iVar7 + 1;\n    }" (else "else") (compound_statement "{\nLAB_00066c5c:\n      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);\n      if (iVar7 == 0x7fffffff) goto LAB_00066ae4;\n      iVar7 = iVar7 + 1;\n    }" ({ "{") (labeled_statement "LAB_00066c5c:\n      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);" (statement_identifier "LAB_00066c5c") (: ":") (expression_statement "puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);" (assignment_expression "puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c)" (identifier "puVar3") (= "=") (pointer_expression "*(undefined4 **)((int)register0x00000074 + -0x3c)" (* "*") (cast_expression "(undefined4 **)((int)register0x00000074 + -0x3c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x3c)" (( "(") (binary_expression "(int)register0x00000074 + -0x3c" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x3c")) () ")"))))) (; ";"))) (if_statement "if (iVar7 == 0x7fffffff) goto LAB_00066ae4;" (if "if") (parenthesized_expression "(iVar7 == 0x7fffffff)" (( "(") (binary_expression "iVar7 == 0x7fffffff" (identifier "iVar7") (== "==") (number_literal "0x7fffffff")) () ")")) (goto_statement "goto LAB_00066ae4;" (goto "goto") (statement_identifier "LAB_00066ae4") (; ";"))) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" (identifier "pbVar2") (= "=") (identifier "param_1")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pbVar8 != param_1)" (( "(") (binary_expression "pbVar8 != param_1" (identifier "pbVar8") (!= "!=") (identifier "param_1")) () ")")) (; ";")) (expression_statement "puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);" (assignment_expression "puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c)" (identifier "puVar3") (= "=") (pointer_expression "*(undefined4 **)((int)register0x00000074 + -0x3c)" (* "*") (cast_expression "(undefined4 **)((int)register0x00000074 + -0x3c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x3c)" (( "(") (binary_expression "(int)register0x00000074 + -0x3c" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x3c")) () ")"))))) (; ";")) (goto_statement "goto LAB_00066ae4;" (goto "goto") (statement_identifier "LAB_00066ae4") (; ";")) (labeled_statement "LAB_00066c90:\n  iVar7 = -1;" (statement_identifier "LAB_00066c90") (: ":") (expression_statement "iVar7 = -1;" (assignment_expression "iVar7 = -1" (identifier "iVar7") (= "=") (number_literal "-1")) (; ";"))) (labeled_statement "LAB_00066ae0:\n  puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);" (statement_identifier "LAB_00066ae0") (: ":") (expression_statement "puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);" (assignment_expression "puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c)" (identifier "puVar3") (= "=") (pointer_expression "*(undefined4 **)((int)register0x00000074 + -0x3c)" (* "*") (cast_expression "(undefined4 **)((int)register0x00000074 + -0x3c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x3c)" (( "(") (binary_expression "(int)register0x00000074 + -0x3c" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x3c")) () ")"))))) (; ";"))) (expression_statement "param_3 = param_2;" (assignment_expression "param_3 = param_2" (identifier "param_3") (= "=") (identifier "param_2")) (; ";")) (expression_statement "unaff_s6 = param_1;" (assignment_expression "unaff_s6 = param_1" (identifier "unaff_s6") (= "=") (identifier "param_1")) (; ";")) (labeled_statement "LAB_00066ae4:\n  param_1 = *(byte **)((int)register0x00000074 + -0x2c);" (statement_identifier "LAB_00066ae4") (: ":") (expression_statement "param_1 = *(byte **)((int)register0x00000074 + -0x2c);" (assignment_expression "param_1 = *(byte **)((int)register0x00000074 + -0x2c)" (identifier "param_1") (= "=") (pointer_expression "*(byte **)((int)register0x00000074 + -0x2c)" (* "*") (cast_expression "(byte **)((int)register0x00000074 + -0x2c)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x2c)" (( "(") (binary_expression "(int)register0x00000074 + -0x2c" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x2c")) () ")"))))) (; ";"))) (if_statement "if (param_1 == (byte *)*puVar3) {\n    return iVar7;\n  }" (if "if") (parenthesized_expression "(param_1 == (byte *)*puVar3)" (( "(") (binary_expression "param_1 == (byte *)*puVar3" (identifier "param_1") (== "==") (cast_expression "(byte *)*puVar3" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar3" (* "*") (identifier "puVar3")))) () ")")) (compound_statement "{\n    return iVar7;\n  }" ({ "{") (return_statement "return iVar7;" (return "return") (identifier "iVar7") (; ";")) (} "}"))) (expression_statement "pcVar10 = *(code **)(iVar11 + -0x7688);" (assignment_expression "pcVar10 = *(code **)(iVar11 + -0x7688)" (identifier "pcVar10") (= "=") (pointer_expression "*(code **)(iVar11 + -0x7688)" (* "*") (cast_expression "(code **)(iVar11 + -0x7688)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar11 + -0x7688)" (( "(") (binary_expression "iVar11 + -0x7688" (identifier "iVar11") (+ "+") (number_literal "-0x7688")) () ")"))))) (; ";")) (expression_statement "uVar12 = 0x66ccc;" (assignment_expression "uVar12 = 0x66ccc" (identifier "uVar12") (= "=") (number_literal "0x66ccc")) (; ";")) (expression_statement "(*pcVar10)();" (call_expression "(*pcVar10)()" (parenthesized_expression "(*pcVar10)" (( "(") (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "pcVar9 = *(code **)(pcVar10 + 0x2722c);" (assignment_expression "pcVar9 = *(code **)(pcVar10 + 0x2722c)" (identifier "pcVar9") (= "=") (pointer_expression "*(code **)(pcVar10 + 0x2722c)" (* "*") (cast_expression "(code **)(pcVar10 + 0x2722c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar10 + 0x2722c)" (( "(") (binary_expression "pcVar10 + 0x2722c" (identifier "pcVar10") (+ "+") (number_literal "0x2722c")) () ")"))))) (; ";")) (expression_statement "*(byte **)((int)register0x00000074 + -0x60) = pbVar8;" (assignment_expression "*(byte **)((int)register0x00000074 + -0x60) = pbVar8" (pointer_expression "*(byte **)((int)register0x00000074 + -0x60)" (* "*") (cast_expression "(byte **)((int)register0x00000074 + -0x60)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x60)" (( "(") (binary_expression "(int)register0x00000074 + -0x60" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x60")) () ")")))) (= "=") (identifier "pbVar8")) (; ";")) (expression_statement "*(int *)((int)register0x00000074 + -100) = iVar7;" (assignment_expression "*(int *)((int)register0x00000074 + -100) = iVar7" (pointer_expression "*(int *)((int)register0x00000074 + -100)" (* "*") (cast_expression "(int *)((int)register0x00000074 + -100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -100)" (( "(") (binary_expression "(int)register0x00000074 + -100" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-100")) () ")")))) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x5c) = uVar12;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x5c) = uVar12" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x5c)" (* "*") (cast_expression "(undefined4 *)((int)register0x00000074 + -0x5c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x5c)" (( "(") (binary_expression "(int)register0x00000074 + -0x5c" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x5c")) () ")")))) (= "=") (identifier "uVar12")) (; ";")) (expression_statement "*(code **)((int)register0x00000074 + -0x70) = pcVar10 + 0x2e924;" (assignment_expression "*(code **)((int)register0x00000074 + -0x70) = pcVar10 + 0x2e924" (pointer_expression "*(code **)((int)register0x00000074 + -0x70)" (* "*") (cast_expression "(code **)((int)register0x00000074 + -0x70)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x70)" (( "(") (binary_expression "(int)register0x00000074 + -0x70" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x70")) () ")")))) (= "=") (binary_expression "pcVar10 + 0x2e924" (identifier "pcVar10") (+ "+") (number_literal "0x2e924"))) (; ";")) (expression_statement "param_2 = (byte *)(*pcVar9)();" (assignment_expression "param_2 = (byte *)(*pcVar9)()" (identifier "param_2") (= "=") (cast_expression "(byte *)(*pcVar9)()" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*pcVar9)()" (parenthesized_expression "(*pcVar9)" (( "(") (pointer_expression "*pcVar9" (* "*") (identifier "pcVar9")) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x5c);" (assignment_expression "unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x5c)" (identifier "unaff_retaddr") (= "=") (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x5c)" (* "*") (cast_expression "(undefined4 *)((int)register0x00000074 + -0x5c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x5c)" (( "(") (binary_expression "(int)register0x00000074 + -0x5c" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x5c")) () ")"))))) (; ";")) (expression_statement "unaff_s1 = *(undefined4 *)((int)register0x00000074 + -0x60);" (assignment_expression "unaff_s1 = *(undefined4 *)((int)register0x00000074 + -0x60)" (identifier "unaff_s1") (= "=") (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x60)" (* "*") (cast_expression "(undefined4 *)((int)register0x00000074 + -0x60)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x60)" (( "(") (binary_expression "(int)register0x00000074 + -0x60" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x60")) () ")"))))) (; ";")) (expression_statement "unaff_s0 = *(undefined4 *)((int)register0x00000074 + -100);" (assignment_expression "unaff_s0 = *(undefined4 *)((int)register0x00000074 + -100)" (identifier "unaff_s0") (= "=") (pointer_expression "*(undefined4 *)((int)register0x00000074 + -100)" (* "*") (cast_expression "(undefined4 *)((int)register0x00000074 + -100)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -100)" (( "(") (binary_expression "(int)register0x00000074 + -100" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-100")) () ")"))))) (; ";")) (expression_statement "pcVar10 = *(code **)(*(int *)((int)register0x00000074 + -0x70) + -0x7c24);" (assignment_expression "pcVar10 = *(code **)(*(int *)((int)register0x00000074 + -0x70) + -0x7c24)" (identifier "pcVar10") (= "=") (pointer_expression "*(code **)(*(int *)((int)register0x00000074 + -0x70) + -0x7c24)" (* "*") (cast_expression "(code **)(*(int *)((int)register0x00000074 + -0x70) + -0x7c24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)((int)register0x00000074 + -0x70) + -0x7c24)" (( "(") (binary_expression "*(int *)((int)register0x00000074 + -0x70) + -0x7c24" (pointer_expression "*(int *)((int)register0x00000074 + -0x70)" (* "*") (cast_expression "(int *)((int)register0x00000074 + -0x70)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x70)" (( "(") (binary_expression "(int)register0x00000074 + -0x70" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x70")) () ")")))) (+ "+") (number_literal "-0x7c24")) () ")"))))) (; ";")) (expression_statement "register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x58);" (assignment_expression "register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x58)" (identifier "register0x00000074") (= "=") (cast_expression "(BADSPACEBASE *)((int)register0x00000074 + -0x58)" (( "(") (type_descriptor "BADSPACEBASE *" (type_identifier "BADSPACEBASE") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x58)" (( "(") (binary_expression "(int)register0x00000074 + -0x58" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x58")) () ")")))) (; ";")) (goto_statement "goto code_r0x00066a10;" (goto "goto") (statement_identifier "code_r0x00066a10") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (number_literal)))) (do_statement body: (compound_statement (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: (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal)))))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (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: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (number_literal))) right: (number_literal))) 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 (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (break_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (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 (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (number_literal))) consequence: (goto_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: (identifier) right: (number_literal))))))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (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: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (number_literal) right: (identifier)) right: (identifier))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) (goto_statement label: (statement_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: (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))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (number_literal) right: (identifier)) right: (parenthesized_expression (binary_expression left: (number_literal) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))))))))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))))) (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: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) (goto_statement label: (statement_identifier)) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) consequence: (compound_statement (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: (identifier) right: (number_literal))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (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: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))) (goto_statement label: (statement_identifier)))))

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

{
  ushort uVar1;
  byte *pbVar2;
  undefined4 *puVar3;
  uint uVar4;
  int iVar5;
  int *piVar6;
  undefined4 unaff_s0;
  int iVar7;
  undefined4 unaff_s1;
  byte *pbVar8;
  undefined4 unaff_s2;
  int unaff_s3;
  undefined4 *unaff_s4;
  undefined1 *unaff_s5;
  byte *unaff_s6;
  undefined4 unaff_s7;
  code *pcVar9;
  code *pcVar10;
  int iVar11;
  undefined4 unaff_s8;
  undefined4 unaff_retaddr;
  undefined4 uVar12;
  undefined1 auStackX_0 [16];
  
  pcVar10 = MASKED;
code_r0x00066a10:
  puVar3 = *(undefined4 **)(pcVar10 + 0x2757c);
  pcVar9 = *(code **)(pcVar10 + 0x27530);
  *(undefined4 **)((int)register0x00000074 + -0x3c) = puVar3;
  *(code **)((int)register0x00000074 + -0x48) = pcVar10 + 0x2ebe0;
  *(byte **)((int)register0x00000074 + -0x10) = unaff_s6;
  *(undefined4 *)((int)register0x00000074 + -0x24) = unaff_s1;
  pbVar8 = param_1 + (int)param_2;
  *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;
  *(undefined4 *)((int)register0x00000074 + -8) = unaff_s8;
  *(undefined4 *)((int)register0x00000074 + -0xc) = unaff_s7;
  *(undefined1 **)((int)register0x00000074 + -0x14) = unaff_s5;
  *(undefined4 **)((int)register0x00000074 + -0x18) = unaff_s4;
  *(int *)((int)register0x00000074 + -0x1c) = unaff_s3;
  *(undefined4 *)((int)register0x00000074 + -0x20) = unaff_s2;
  *(undefined4 *)((int)register0x00000074 + -0x28) = unaff_s0;
  *(byte **)((int)register0x00000074 + 8) = param_3;
  *(undefined4 *)((int)register0x00000074 + -0x2c) = *puVar3;
  uVar4 = (*pcVar9)();
  iVar11 = *(int *)((int)register0x00000074 + -0x48);
  if (1 < uVar4) {
    iVar7 = 0;
    if (param_1 < pbVar8) {
      unaff_s2 = 0x7fffffff;
      *(uint *)((int)register0x00000074 + -0x40) = *(uint *)((int)register0x00000074 + 8) & 2;
      do {
        iVar5 = (int)(char)*param_1;
        if (iVar5 < 0x40) {
          if ((0x24 < iVar5) ||
             (unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34), (iVar5 - 0x20U & 0xff) < 4
             )) goto LAB_00066ad0;
LAB_00066b48:
          unaff_s4 = (undefined4 *)((int)register0x00000074 + -0x34);
          *unaff_s4 = 0;
          unaff_s5 = (undefined1 *)((int)register0x00000074 + -0x38);
          unaff_s7 = 0xffffffff;
          *(undefined4 *)((int)register0x00000074 + -0x30) = 0;
          unaff_s8 = 0xfffffffe;
          do {
            param_2 = param_1;
            unaff_s3 = rpl_mbrtowc(unaff_s5,param_1,(int)pbVar8 - (int)param_1,unaff_s4);
            iVar11 = *(int *)((int)register0x00000074 + -0x48);
            if (unaff_s3 == -1) {
              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;
              goto LAB_00066ad0;
            }
            if (unaff_s3 == -2) {
              if ((*(uint *)((int)register0x00000074 + 8) & 1) != 0) goto LAB_00066c90;
              iVar7 = iVar7 + 1;
              param_1 = pbVar8;
              break;
            }
            if (unaff_s3 == 0) {
              unaff_s3 = 1;
            }
            iVar5 = (**(code **)(iVar11 + -0x764c))
                              (*(undefined4 *)((int)register0x00000074 + -0x38));
            iVar11 = *(int *)((int)register0x00000074 + -0x48);
            if (iVar5 < 0) {
              if (*(int *)((int)register0x00000074 + -0x40) != 0) goto LAB_00066c90;
              iVar5 = (**(code **)(iVar11 + -0x7698))
                                (*(undefined4 *)((int)register0x00000074 + -0x38));
              iVar11 = *(int *)((int)register0x00000074 + -0x48);
              if (iVar5 == 0) {
                if (iVar7 == 0x7fffffff) goto LAB_00066cb4;
                iVar7 = iVar7 + 1;
              }
            }
            else {
              if (0x7fffffff - iVar7 < iVar5) {
LAB_00066cb4:
                iVar7 = 0x7fffffff;
                goto LAB_00066ae0;
              }
              iVar7 = iVar7 + iVar5;
            }
            param_1 = param_1 + unaff_s3;
            iVar5 = (**(code **)(iVar11 + -0x7668))(unaff_s4);
            iVar11 = *(int *)((int)register0x00000074 + -0x48);
          } while (iVar5 == 0);
        }
        else {
          if ((iVar5 < 0x41) || ((0x5f < iVar5 && (0x1d < (iVar5 - 0x61U & 0xff)))))
          goto LAB_00066b48;
LAB_00066ad0:
          iVar7 = iVar7 + 1;
          param_1 = param_1 + 1;
        }
      } while (param_1 < pbVar8);
    }
    goto LAB_00066ae0;
  }
  iVar7 = 0;
  if (pbVar8 <= param_1) goto LAB_00066ae0;
  piVar6 = (int *)(**(code **)(iVar11 + -0x77c4))();
  param_2 = (byte *)0x7fffffff;
  iVar11 = *(int *)((int)register0x00000074 + -0x48);
  unaff_s4 = (undefined4 *)(*(uint *)((int)register0x00000074 + 8) & 2);
  pbVar2 = param_1;
  do {
    param_1 = pbVar2 + 1;
    uVar1 = *(ushort *)(*piVar6 + (uint)*pbVar2 * 2);
    param_3 = param_2;
    unaff_s6 = param_1;
    if ((uVar1 & 0x40) == 0) {
      if (unaff_s4 != (undefined4 *)0x0) goto LAB_00066c90;
      if ((uVar1 & 0x200) == 0) goto LAB_00066c5c;
    }
    else {
LAB_00066c5c:
      puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);
      if (iVar7 == 0x7fffffff) goto LAB_00066ae4;
      iVar7 = iVar7 + 1;
    }
    pbVar2 = param_1;
  } while (pbVar8 != param_1);
  puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);
  goto LAB_00066ae4;
LAB_00066c90:
  iVar7 = -1;
LAB_00066ae0:
  puVar3 = *(undefined4 **)((int)register0x00000074 + -0x3c);
  param_3 = param_2;
  unaff_s6 = param_1;
LAB_00066ae4:
  param_1 = *(byte **)((int)register0x00000074 + -0x2c);
  if (param_1 == (byte *)*puVar3) {
    return iVar7;
  }
  pcVar10 = *(code **)(iVar11 + -0x7688);
  uVar12 = 0x66ccc;
  (*pcVar10)();
  pcVar9 = *(code **)(pcVar10 + 0x2722c);
  *(byte **)((int)register0x00000074 + -0x60) = pbVar8;
  *(int *)((int)register0x00000074 + -100) = iVar7;
  *(undefined4 *)((int)register0x00000074 + -0x5c) = uVar12;
  *(code **)((int)register0x00000074 + -0x70) = pcVar10 + 0x2e924;
  param_2 = (byte *)(*pcVar9)();
  unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x5c);
  unaff_s1 = *(undefined4 *)((int)register0x00000074 + -0x60);
  unaff_s0 = *(undefined4 *)((int)register0x00000074 + -100);
  pcVar10 = *(code **)(*(int *)((int)register0x00000074 + -0x70) + -0x7c24);
  register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x58);
  goto code_r0x00066a10;
}

