
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 build_wcs_buffer(re_string_t *pstr)

{
  int iVar1;
  uchar uVar2;
  anon_union_4_2_91654ee9_for___value aVar3;
  wint_t *pwVar4;
  int iVar5;
  uchar *s;
  size_t sVar6;
  size_t sVar7;
  int iVar8;
  int iVar9;
  int iVar10;
  int in_GS_OFFSET;
  wchar_t wc;
  uchar buf [64];
  
  iVar10 = pstr->valid_len;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar5 = pstr->len;
  if (pstr->bufs_len <= pstr->len) {
    iVar5 = pstr->bufs_len;
  }
  if (iVar10 < iVar5) {
    iVar8 = iVar10;
LAB_0001bb00:
    do {
      iVar10 = (pstr->cur_state).__count;
      aVar3 = (pstr->cur_state).__value;
      sVar7 = iVar5 - iVar8;
      if (pstr->trans == (uchar *)0x0) {
        s = pstr->raw_mbs + pstr->raw_mbs_idx + iVar8;
      }
      else {
        if ((0 < pstr->mb_cur_max) && (0 < (int)sVar7)) {
          buf[0] = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar8]];
          pstr->mbs[iVar8] = buf[0];
          sVar6 = sVar7;
          if (pstr->mb_cur_max <= (int)sVar7) {
            sVar6 = pstr->mb_cur_max;
          }
          if (1 < (int)sVar6) {
            iVar9 = 1;
            s = buf;
            do {
              uVar2 = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar9 + iVar8]];
              pstr->mbs[iVar9 + iVar8] = uVar2;
              s[iVar9] = uVar2;
              iVar9 = iVar9 + 1;
              sVar6 = sVar7;
              if (pstr->mb_cur_max <= (int)sVar7) {
                sVar6 = pstr->mb_cur_max;
              }
            } while (iVar9 < (int)sVar6);
            goto LAB_0001bb26;
          }
        }
        s = buf;
      }
LAB_0001bb26:
      sVar7 = rpl_mbrtowc(&wc,(char *)s,sVar7,&pstr->cur_state);
      if (sVar7 - 1 < 0xfffffffe) {
        if (sVar7 == 0xfffffffe) {
          if (pstr->len <= pstr->bufs_len) goto LAB_0001bbb8;
          (pstr->cur_state).__count = iVar10;
          (pstr->cur_state).__value = aVar3;
          iVar10 = iVar8;
          break;
        }
      }
      else {
LAB_0001bbb8:
        wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar8];
        if (pstr->trans != (uchar *)0x0) {
          wc = (wchar_t)pstr->trans[wc];
        }
        (pstr->cur_state).__count = iVar10;
        sVar7 = 1;
        (pstr->cur_state).__value = aVar3;
      }
      pwVar4 = pstr->wcs;
      iVar10 = iVar8 + 1;
      pwVar4[iVar8] = wc;
      iVar9 = iVar8 + sVar7;
      if (iVar9 <= iVar10) {
        iVar8 = iVar10;
        if (iVar5 <= iVar10) break;
        goto LAB_0001bb00;
      }
      memset(pwVar4 + iVar8 + 1,0xff,sVar7 * 4 - 4);
      iVar8 = iVar9;
      iVar10 = iVar9;
    } while (iVar9 < iVar5);
  }
  pstr->valid_len = iVar10;
  pstr->valid_raw_len = iVar10;
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 FUN_0001bab0(int *param_1)

{
  undefined1 uVar1;
  int iVar2;
  int iVar3;
  undefined1 *puVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  int in_GS_OFFSET;
  uint local_64;
  undefined1 local_60 [64];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1babb;
  iVar9 = param_1[7];
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar3 = param_1[0xc];
  if (param_1[9] <= param_1[0xc]) {
    iVar3 = param_1[9];
  }
  if (iVar9 < iVar3) {
    iVar7 = iVar9;
LAB_0001bb00:
    do {
      iVar9 = param_1[4];
      iVar2 = param_1[5];
      iVar6 = iVar3 - iVar7;
      if (param_1[0x10] == 0) {
        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);
      }
      else {
        if ((0 < param_1[0x14]) && (0 < iVar6)) {
          local_60[0] = *(undefined1 *)
                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));
          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];
          iVar8 = iVar6;
          if (param_1[0x14] <= iVar6) {
            iVar8 = param_1[0x14];
          }
          if (1 < iVar8) {
            iVar8 = 1;
            puVar4 = local_60;
            do {
              uVar1 = *(undefined1 *)
                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));
              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;
              puVar4[iVar8] = uVar1;
              iVar8 = iVar8 + 1;
              iVar5 = iVar6;
              if (param_1[0x14] <= iVar6) {
                iVar5 = param_1[0x14];
              }
            } while (iVar8 < iVar5);
            goto LAB_0001bb26;
          }
        }
        puVar4 = local_60;
      }
LAB_0001bb26:
      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);
      if (iVar6 - 1U < 0xfffffffe) {
        if (iVar6 == -2) {
          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;
          param_1[4] = iVar9;
          param_1[5] = iVar2;
          iVar9 = iVar7;
          break;
        }
      }
      else {
LAB_0001bbb8:
        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);
        if (param_1[0x10] != 0) {
          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);
        }
        param_1[4] = iVar9;
        iVar6 = 1;
        param_1[5] = iVar2;
      }
      iVar2 = param_1[2];
      iVar9 = iVar7 + 1;
      *(uint *)(iVar2 + iVar7 * 4) = local_64;
      iVar8 = iVar7 + iVar6;
      if (iVar8 <= iVar9) {
        iVar7 = iVar9;
        if (iVar3 <= iVar9) break;
        goto LAB_0001bb00;
      }
      memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);
      iVar7 = iVar8;
      iVar9 = iVar8;
    } while (iVar8 < iVar3);
  }
  param_1[7] = iVar9;
  param_1[8] = iVar9;
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0002def0();
  }
  return;
}


PUSH EBP
PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x000138d0
ADD EBX,0x1c545
SUB ESP,0x7c
MOV ESI,dword ptr [EDI + 0x1c]
MOV dword ptr [ESP + 0xc],EBX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x6c],EAX
XOR EAX,EAX
MOV EAX,dword ptr [EDI + 0x30]
CMP dword ptr [EDI + 0x24],EAX
CMOVLE EAX,dword ptr [EDI + 0x24]
MOV dword ptr [ESP + 0x8],EAX
CMP EAX,ESI
JLE 0x0001bb96
LEA EAX,[EDI + 0x10]
MOV dword ptr [ESP + 0x18],EAX
LEA EAX,[ESP + 0x28]
MOV dword ptr [ESP + 0x1c],EAX
LEA ESI,[ESI]
MOV EAX,dword ptr [EDI + 0x10]
MOV EBX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [EDI + 0x14]
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,dword ptr [EDI + 0x40]
SUB EBX,ESI
MOV dword ptr [ESP + 0x14],EDX
TEST EAX,EAX
JNZ 0x0001bbf0
MOV EAX,dword ptr [EDI + 0x18]
ADD EAX,ESI
ADD EAX,dword ptr [EDI]
PUSH dword ptr [ESP + 0x18]
PUSH EBX
PUSH EAX
PUSH dword ptr [ESP + 0x28]
MOV EBX,dword ptr [ESP + 0x1c]
CALL 0x0001b230
ADD ESP,0x10
LEA EDX,[EAX + -0x1]
CMP EDX,-0x3
JA 0x0001bbb8
MOV EBP,dword ptr [ESP + 0x28]
CMP EAX,-0x2
JZ 0x0001bc88
MOV EDX,dword ptr [EDI + 0x8]
LEA ECX,[ESI + 0x1]
LEA EBX,[ESI*0x4 + 0x0]
MOV dword ptr [EDX + ESI*0x4],EBP
ADD ESI,EAX
CMP ECX,ESI
JGE 0x0001bc70
SUB ESP,0x4
LEA EAX,[EAX*0x4 + 0xfffffffc]
PUSH EAX
LEA EAX,[EDX + EBX*0x1 + 0x4]
PUSH 0xff
PUSH EAX
MOV EBX,dword ptr [ESP + 0x1c]
CALL 0x00012340
ADD ESP,0x10
CMP ESI,dword ptr [ESP + 0x8]
JL 0x0001bb00
MOV dword ptr [EDI + 0x1c],ESI
MOV dword ptr [EDI + 0x20],ESI
MOV EAX,dword ptr [ESP + 0x6c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0001bcbd
ADD ESP,0x7c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EDI]
ADD EAX,ESI
ADD EAX,dword ptr [EDI + 0x18]
MOVZX EBP,byte ptr [EAX]
MOV EAX,dword ptr [EDI + 0x40]
MOV dword ptr [ESP + 0x28],EBP
TEST EAX,EAX
JNZ 0x0001bcb0
MOV EAX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [ESP + 0x14]
MOV dword ptr [EDI + 0x10],EAX
MOV EAX,0x1
MOV dword ptr [EDI + 0x14],EDX
JMP 0x0001bb51
MOV EDX,dword ptr [EDI + 0x50]
TEST EDX,EDX
JLE 0x0001bca7
TEST EBX,EBX
JLE 0x0001bca7
MOV EDX,dword ptr [EDI]
ADD EDX,ESI
ADD EDX,dword ptr [EDI + 0x18]
MOVZX EDX,byte ptr [EDX]
MOVZX EAX,byte ptr [EAX + EDX*0x1]
MOV EDX,dword ptr [EDI + 0x4]
MOV byte ptr [EDX + ESI*0x1],AL
CMP dword ptr [EDI + 0x50],EBX
MOV byte ptr [ESP + 0x2c],AL
MOV EAX,EBX
CMOVLE EAX,dword ptr [EDI + 0x50]
CMP EAX,0x1
JLE 0x0001bca7
MOV EDX,0x1
LEA EAX,[ESP + 0x2c]
LEA ESI,[ESI]
MOV ECX,dword ptr [EDI]
MOV EBP,dword ptr [EDI + 0x40]
ADD ECX,ESI
ADD ECX,EDX
ADD ECX,dword ptr [EDI + 0x18]
MOVZX ECX,byte ptr [ECX]
MOVZX ECX,byte ptr [EBP + ECX*0x1]
MOV EBP,dword ptr [EDI + 0x4]
ADD EBP,ESI
MOV byte ptr [EBP + EDX*0x1],CL
MOV byte ptr [EAX + EDX*0x1],CL
ADD EDX,0x1
MOV ECX,EBX
CMP dword ptr [EDI + 0x50],EBX
CMOVLE ECX,dword ptr [EDI + 0x50]
CMP ECX,EDX
JG 0x0001bc38
JMP 0x0001bb26
MOV ESI,ECX
CMP dword ptr [ESP + 0x8],ECX
JG 0x0001bb00
JMP 0x0001bb96
MOV EAX,dword ptr [EDI + 0x30]
CMP dword ptr [EDI + 0x24],EAX
JGE 0x0001bbb8
MOV EAX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [ESP + 0x14]
MOV dword ptr [EDI + 0x10],EAX
MOV dword ptr [EDI + 0x14],EDX
JMP 0x0001bb96
LEA EAX,[ESP + 0x2c]
JMP 0x0001bb26
MOVZX EBP,byte ptr [EAX + EBP*0x1]
MOV dword ptr [ESP + 0x28],EBP
JMP 0x0001bbd1
CALL 0x0002def0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0001bab0(int *param_1)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  uint local_64;\n  undefined1 local_60 [64];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1babb;\n  iVar9 = param_1[7];\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = param_1[0xc];\n  if (param_1[9] <= param_1[0xc]) {\n    iVar3 = param_1[9];\n  }\n  if (iVar9 < iVar3) {\n    iVar7 = iVar9;\nLAB_0001bb00:\n    do {\n      iVar9 = param_1[4];\n      iVar2 = param_1[5];\n      iVar6 = iVar3 - iVar7;\n      if (param_1[0x10] == 0) {\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }\n      else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }\nLAB_0001bb26:\n      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);\n      if (iVar6 - 1U < 0xfffffffe) {\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar9 = iVar7 + 1;\n      *(uint *)(iVar2 + iVar7 * 4) = local_64;\n      iVar8 = iVar7 + iVar6;\n      if (iVar8 <= iVar9) {\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }\n      memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);\n      iVar7 = iVar8;\n      iVar9 = iVar8;\n    } while (iVar8 < iVar3);\n  }\n  param_1[7] = iVar9;\n  param_1[8] = iVar9;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002def0();\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0001bab0(int *param_1)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  uint local_64;\n  undefined1 local_60 [64];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1babb;\n  iVar9 = param_1[7];\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = param_1[0xc];\n  if (param_1[9] <= param_1[0xc]) {\n    iVar3 = param_1[9];\n  }\n  if (iVar9 < iVar3) {\n    iVar7 = iVar9;\nLAB_0001bb00:\n    do {\n      iVar9 = param_1[4];\n      iVar2 = param_1[5];\n      iVar6 = iVar3 - iVar7;\n      if (param_1[0x10] == 0) {\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }\n      else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }\nLAB_0001bb26:\n      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);\n      if (iVar6 - 1U < 0xfffffffe) {\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar9 = iVar7 + 1;\n      *(uint *)(iVar2 + iVar7 * 4) = local_64;\n      iVar8 = iVar7 + iVar6;\n      if (iVar8 <= iVar9) {\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }\n      memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);\n      iVar7 = iVar8;\n      iVar9 = iVar8;\n    } while (iVar8 < iVar3);\n  }\n  param_1[7] = iVar9;\n  param_1[8] = iVar9;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002def0();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001bab0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  uint local_64;\n  undefined1 local_60 [64];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1babb;\n  iVar9 = param_1[7];\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = param_1[0xc];\n  if (param_1[9] <= param_1[0xc]) {\n    iVar3 = param_1[9];\n  }\n  if (iVar9 < iVar3) {\n    iVar7 = iVar9;\nLAB_0001bb00:\n    do {\n      iVar9 = param_1[4];\n      iVar2 = param_1[5];\n      iVar6 = iVar3 - iVar7;\n      if (param_1[0x10] == 0) {\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }\n      else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }\nLAB_0001bb26:\n      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);\n      if (iVar6 - 1U < 0xfffffffe) {\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar9 = iVar7 + 1;\n      *(uint *)(iVar2 + iVar7 * 4) = local_64;\n      iVar8 = iVar7 + iVar6;\n      if (iVar8 <= iVar9) {\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }\n      memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);\n      iVar7 = iVar8;\n      iVar9 = iVar8;\n    } while (iVar8 < iVar3);\n  }\n  param_1[7] = iVar9;\n  param_1[8] = iVar9;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002def0();\n  }\n  return;\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_64;" type_identifier identifier ;) (declaration "undefined1 local_60 [64];" type_identifier (array_declarator "local_60 [64]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1babb;" (assignment_expression "uStack_14 = 0x1babb" identifier = number_literal) ;) (expression_statement "iVar9 = param_1[7];" (assignment_expression "iVar9 = param_1[7]" identifier = (subscript_expression "param_1[7]" identifier [ number_literal ])) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = param_1[0xc];" (assignment_expression "iVar3 = param_1[0xc]" identifier = (subscript_expression "param_1[0xc]" identifier [ number_literal ])) ;) (if_statement "if (param_1[9] <= param_1[0xc]) {\n    iVar3 = param_1[9];\n  }" if (parenthesized_expression "(param_1[9] <= param_1[0xc])" ( (binary_expression "param_1[9] <= param_1[0xc]" (subscript_expression "param_1[9]" identifier [ number_literal ]) <= (subscript_expression "param_1[0xc]" identifier [ number_literal ])) )) (compound_statement "{\n    iVar3 = param_1[9];\n  }" { (expression_statement "iVar3 = param_1[9];" (assignment_expression "iVar3 = param_1[9]" identifier = (subscript_expression "param_1[9]" identifier [ number_literal ])) ;) })) (if_statement "if (iVar9 < iVar3) {\n    iVar7 = iVar9;\nLAB_0001bb00:\n    do {\n      iVar9 = param_1[4];\n      iVar2 = param_1[5];\n      iVar6 = iVar3 - iVar7;\n      if (param_1[0x10] == 0) {\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }\n      else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }\nLAB_0001bb26:\n      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);\n      if (iVar6 - 1U < 0xfffffffe) {\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar9 = iVar7 + 1;\n      *(uint *)(iVar2 + iVar7 * 4) = local_64;\n      iVar8 = iVar7 + iVar6;\n      if (iVar8 <= iVar9) {\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }\n      memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);\n      iVar7 = iVar8;\n      iVar9 = iVar8;\n    } while (iVar8 < iVar3);\n  }" if (parenthesized_expression "(iVar9 < iVar3)" ( (binary_expression "iVar9 < iVar3" identifier < identifier) )) (compound_statement "{\n    iVar7 = iVar9;\nLAB_0001bb00:\n    do {\n      iVar9 = param_1[4];\n      iVar2 = param_1[5];\n      iVar6 = iVar3 - iVar7;\n      if (param_1[0x10] == 0) {\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }\n      else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }\nLAB_0001bb26:\n      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);\n      if (iVar6 - 1U < 0xfffffffe) {\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar9 = iVar7 + 1;\n      *(uint *)(iVar2 + iVar7 * 4) = local_64;\n      iVar8 = iVar7 + iVar6;\n      if (iVar8 <= iVar9) {\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }\n      memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);\n      iVar7 = iVar8;\n      iVar9 = iVar8;\n    } while (iVar8 < iVar3);\n  }" { (expression_statement "iVar7 = iVar9;" (assignment_expression "iVar7 = iVar9" identifier = identifier) ;) (labeled_statement "LAB_0001bb00:\n    do {\n      iVar9 = param_1[4];\n      iVar2 = param_1[5];\n      iVar6 = iVar3 - iVar7;\n      if (param_1[0x10] == 0) {\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }\n      else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }\nLAB_0001bb26:\n      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);\n      if (iVar6 - 1U < 0xfffffffe) {\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar9 = iVar7 + 1;\n      *(uint *)(iVar2 + iVar7 * 4) = local_64;\n      iVar8 = iVar7 + iVar6;\n      if (iVar8 <= iVar9) {\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }\n      memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);\n      iVar7 = iVar8;\n      iVar9 = iVar8;\n    } while (iVar8 < iVar3);" statement_identifier : (do_statement "do {\n      iVar9 = param_1[4];\n      iVar2 = param_1[5];\n      iVar6 = iVar3 - iVar7;\n      if (param_1[0x10] == 0) {\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }\n      else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }\nLAB_0001bb26:\n      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);\n      if (iVar6 - 1U < 0xfffffffe) {\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar9 = iVar7 + 1;\n      *(uint *)(iVar2 + iVar7 * 4) = local_64;\n      iVar8 = iVar7 + iVar6;\n      if (iVar8 <= iVar9) {\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }\n      memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);\n      iVar7 = iVar8;\n      iVar9 = iVar8;\n    } while (iVar8 < iVar3);" do (compound_statement "{\n      iVar9 = param_1[4];\n      iVar2 = param_1[5];\n      iVar6 = iVar3 - iVar7;\n      if (param_1[0x10] == 0) {\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }\n      else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }\nLAB_0001bb26:\n      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);\n      if (iVar6 - 1U < 0xfffffffe) {\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar9 = iVar7 + 1;\n      *(uint *)(iVar2 + iVar7 * 4) = local_64;\n      iVar8 = iVar7 + iVar6;\n      if (iVar8 <= iVar9) {\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }\n      memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);\n      iVar7 = iVar8;\n      iVar9 = iVar8;\n    }" { (expression_statement "iVar9 = param_1[4];" (assignment_expression "iVar9 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "iVar2 = param_1[5];" (assignment_expression "iVar2 = param_1[5]" identifier = (subscript_expression "param_1[5]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = iVar3 - iVar7;" (assignment_expression "iVar6 = iVar3 - iVar7" identifier = (binary_expression "iVar3 - iVar7" identifier - identifier)) ;) (if_statement "if (param_1[0x10] == 0) {\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }\n      else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }" if (parenthesized_expression "(param_1[0x10] == 0)" ( (binary_expression "param_1[0x10] == 0" (subscript_expression "param_1[0x10]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }" { (expression_statement "puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);" (assignment_expression "puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1)" identifier = (cast_expression "(undefined1 *)(param_1[6] + iVar7 + *param_1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[6] + iVar7 + *param_1)" ( (binary_expression "param_1[6] + iVar7 + *param_1" (binary_expression "param_1[6] + iVar7" (subscript_expression "param_1[6]" identifier [ number_literal ]) + identifier) + (pointer_expression "*param_1" * identifier)) )))) ;) }) (else_clause "else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }" else (compound_statement "{\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }" { (if_statement "if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }" if (parenthesized_expression "((0 < param_1[0x14]) && (0 < iVar6))" ( (binary_expression "(0 < param_1[0x14]) && (0 < iVar6)" (parenthesized_expression "(0 < param_1[0x14])" ( (binary_expression "0 < param_1[0x14]" number_literal < (subscript_expression "param_1[0x14]" identifier [ number_literal ])) )) && (parenthesized_expression "(0 < iVar6)" ( (binary_expression "0 < iVar6" number_literal < identifier) ))) )) (compound_statement "{\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }" { (expression_statement "local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));" (assignment_expression "local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]))" (subscript_expression "local_60[0]" identifier [ number_literal ]) = (pointer_expression "*(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]))" * (cast_expression "(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]))" ( (binary_expression "param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6])" (subscript_expression "param_1[0x10]" identifier [ number_literal ]) + (binary_expression "(uint)*(byte *)(*param_1 + iVar7 + param_1[6])" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(*param_1 + iVar7 + param_1[6])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar7 + param_1[6])" ( (binary_expression "*param_1 + iVar7 + param_1[6]" (binary_expression "*param_1 + iVar7" (pointer_expression "*param_1" * identifier) + identifier) + (subscript_expression "param_1[6]" identifier [ number_literal ])) ))))) ))))) ;) (expression_statement "*(undefined1 *)(param_1[1] + iVar7) = local_60[0];" (assignment_expression "*(undefined1 *)(param_1[1] + iVar7) = local_60[0]" (pointer_expression "*(undefined1 *)(param_1[1] + iVar7)" * (cast_expression "(undefined1 *)(param_1[1] + iVar7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[1] + iVar7)" ( (binary_expression "param_1[1] + iVar7" (subscript_expression "param_1[1]" identifier [ number_literal ]) + identifier) )))) = (subscript_expression "local_60[0]" identifier [ number_literal ])) ;) (expression_statement "iVar8 = iVar6;" (assignment_expression "iVar8 = iVar6" identifier = identifier) ;) (if_statement "if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }" if (parenthesized_expression "(param_1[0x14] <= iVar6)" ( (binary_expression "param_1[0x14] <= iVar6" (subscript_expression "param_1[0x14]" identifier [ number_literal ]) <= identifier) )) (compound_statement "{\n            iVar8 = param_1[0x14];\n          }" { (expression_statement "iVar8 = param_1[0x14];" (assignment_expression "iVar8 = param_1[0x14]" identifier = (subscript_expression "param_1[0x14]" identifier [ number_literal ])) ;) })) (if_statement "if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }" if (parenthesized_expression "(1 < iVar8)" ( (binary_expression "1 < iVar8" number_literal < identifier) )) (compound_statement "{\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }" { (expression_statement "iVar8 = 1;" (assignment_expression "iVar8 = 1" identifier = number_literal) ;) (expression_statement "puVar4 = local_60;" (assignment_expression "puVar4 = local_60" identifier = identifier) ;) (do_statement "do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);" do (compound_statement "{\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            }" { (expression_statement "uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));" (assignment_expression "uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]))" identifier = (pointer_expression "*(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]))" * (cast_expression "(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]))" ( (binary_expression "param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6])" (subscript_expression "param_1[0x10]" identifier [ number_literal ]) + (binary_expression "(uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6])" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(*param_1 + iVar7 + iVar8 + param_1[6])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar7 + iVar8 + param_1[6])" ( (binary_expression "*param_1 + iVar7 + iVar8 + param_1[6]" (binary_expression "*param_1 + iVar7 + iVar8" (binary_expression "*param_1 + iVar7" (pointer_expression "*param_1" * identifier) + identifier) + identifier) + (subscript_expression "param_1[6]" identifier [ number_literal ])) ))))) ))))) ;) (expression_statement "*(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;" (assignment_expression "*(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1" (pointer_expression "*(undefined1 *)(param_1[1] + iVar7 + iVar8)" * (cast_expression "(undefined1 *)(param_1[1] + iVar7 + iVar8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[1] + iVar7 + iVar8)" ( (binary_expression "param_1[1] + iVar7 + iVar8" (binary_expression "param_1[1] + iVar7" (subscript_expression "param_1[1]" identifier [ number_literal ]) + identifier) + identifier) )))) = identifier) ;) (expression_statement "puVar4[iVar8] = uVar1;" (assignment_expression "puVar4[iVar8] = uVar1" (subscript_expression "puVar4[iVar8]" identifier [ identifier ]) = identifier) ;) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar6;" (assignment_expression "iVar5 = iVar6" identifier = identifier) ;) (if_statement "if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }" if (parenthesized_expression "(param_1[0x14] <= iVar6)" ( (binary_expression "param_1[0x14] <= iVar6" (subscript_expression "param_1[0x14]" identifier [ number_literal ]) <= identifier) )) (compound_statement "{\n                iVar5 = param_1[0x14];\n              }" { (expression_statement "iVar5 = param_1[0x14];" (assignment_expression "iVar5 = param_1[0x14]" identifier = (subscript_expression "param_1[0x14]" identifier [ number_literal ])) ;) })) }) while (parenthesized_expression "(iVar8 < iVar5)" ( (binary_expression "iVar8 < iVar5" identifier < identifier) )) ;) (goto_statement "goto LAB_0001bb26;" goto statement_identifier ;) })) })) (expression_statement "puVar4 = local_60;" (assignment_expression "puVar4 = local_60" identifier = identifier) ;) }))) (labeled_statement "LAB_0001bb26:\n      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);" statement_identifier : (expression_statement "iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);" (assignment_expression "iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4)" identifier = (call_expression "FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4)" identifier (argument_list "(&local_64,puVar4,iVar6,param_1 + 4)" ( (pointer_expression "&local_64" & identifier) , identifier , identifier , (binary_expression "param_1 + 4" identifier + number_literal) )))) ;)) (if_statement "if (iVar6 - 1U < 0xfffffffe) {\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }" if (parenthesized_expression "(iVar6 - 1U < 0xfffffffe)" ( (binary_expression "iVar6 - 1U < 0xfffffffe" (binary_expression "iVar6 - 1U" identifier - number_literal) < number_literal) )) (compound_statement "{\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }" { (if_statement "if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }" if (parenthesized_expression "(iVar6 == -2)" ( (binary_expression "iVar6 == -2" identifier == number_literal) )) (compound_statement "{\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }" { (if_statement "if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;" if (parenthesized_expression "(param_1[0xc] <= param_1[9])" ( (binary_expression "param_1[0xc] <= param_1[9]" (subscript_expression "param_1[0xc]" identifier [ number_literal ]) <= (subscript_expression "param_1[9]" identifier [ number_literal ])) )) (goto_statement "goto LAB_0001bbb8;" goto statement_identifier ;)) (expression_statement "param_1[4] = iVar9;" (assignment_expression "param_1[4] = iVar9" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[5] = iVar2;" (assignment_expression "param_1[5] = iVar2" (subscript_expression "param_1[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar9 = iVar7;" (assignment_expression "iVar9 = iVar7" identifier = identifier) ;) (break_statement "break;" break ;) })) }) (else_clause "else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }" else (compound_statement "{\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }" { (labeled_statement "LAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);" statement_identifier : (expression_statement "local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);" (assignment_expression "local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6])" identifier = (binary_expression "(uint)*(byte *)(*param_1 + iVar7 + param_1[6])" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(*param_1 + iVar7 + param_1[6])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar7 + param_1[6])" ( (binary_expression "*param_1 + iVar7 + param_1[6]" (binary_expression "*param_1 + iVar7" (pointer_expression "*param_1" * identifier) + identifier) + (subscript_expression "param_1[6]" identifier [ number_literal ])) ))))) ;)) (if_statement "if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }" if (parenthesized_expression "(param_1[0x10] != 0)" ( (binary_expression "param_1[0x10] != 0" (subscript_expression "param_1[0x10]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }" { (expression_statement "local_64 = (uint)*(byte *)(param_1[0x10] + local_64);" (assignment_expression "local_64 = (uint)*(byte *)(param_1[0x10] + local_64)" identifier = (binary_expression "(uint)*(byte *)(param_1[0x10] + local_64)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_1[0x10] + local_64)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[0x10] + local_64)" ( (binary_expression "param_1[0x10] + local_64" (subscript_expression "param_1[0x10]" identifier [ number_literal ]) + identifier) ))))) ;) })) (expression_statement "param_1[4] = iVar9;" (assignment_expression "param_1[4] = iVar9" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (expression_statement "param_1[5] = iVar2;" (assignment_expression "param_1[5] = iVar2" (subscript_expression "param_1[5]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "iVar2 = param_1[2];" (assignment_expression "iVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "iVar9 = iVar7 + 1;" (assignment_expression "iVar9 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "*(uint *)(iVar2 + iVar7 * 4) = local_64;" (assignment_expression "*(uint *)(iVar2 + iVar7 * 4) = local_64" (pointer_expression "*(uint *)(iVar2 + iVar7 * 4)" * (cast_expression "(uint *)(iVar2 + iVar7 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar7 * 4)" ( (binary_expression "iVar2 + iVar7 * 4" identifier + (binary_expression "iVar7 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "iVar8 = iVar7 + iVar6;" (assignment_expression "iVar8 = iVar7 + iVar6" identifier = (binary_expression "iVar7 + iVar6" identifier + identifier)) ;) (if_statement "if (iVar8 <= iVar9) {\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }" if (parenthesized_expression "(iVar8 <= iVar9)" ( (binary_expression "iVar8 <= iVar9" identifier <= identifier) )) (compound_statement "{\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }" { (expression_statement "iVar7 = iVar9;" (assignment_expression "iVar7 = iVar9" identifier = identifier) ;) (if_statement "if (iVar3 <= iVar9) break;" if (parenthesized_expression "(iVar3 <= iVar9)" ( (binary_expression "iVar3 <= iVar9" identifier <= identifier) )) (break_statement "break;" break ;)) (goto_statement "goto LAB_0001bb00;" goto statement_identifier ;) })) (expression_statement "memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);" (call_expression "memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4)" identifier (argument_list "((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4)" ( (cast_expression "(void *)(iVar2 + 4 + iVar7 * 4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4 + iVar7 * 4)" ( (binary_expression "iVar2 + 4 + iVar7 * 4" (binary_expression "iVar2 + 4" identifier + number_literal) + (binary_expression "iVar7 * 4" identifier * number_literal)) ))) , number_literal , (binary_expression "iVar6 * 4 - 4" (binary_expression "iVar6 * 4" identifier * number_literal) - number_literal) ))) ;) (expression_statement "iVar7 = iVar8;" (assignment_expression "iVar7 = iVar8" identifier = identifier) ;) (expression_statement "iVar9 = iVar8;" (assignment_expression "iVar9 = iVar8" identifier = identifier) ;) }) while (parenthesized_expression "(iVar8 < iVar3)" ( (binary_expression "iVar8 < iVar3" identifier < identifier) )) ;)) })) (expression_statement "param_1[7] = iVar9;" (assignment_expression "param_1[7] = iVar9" (subscript_expression "param_1[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[8] = iVar9;" (assignment_expression "param_1[8] = iVar9" (subscript_expression "param_1[8]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002def0();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0002def0();\n  }" { comment (expression_statement "FUN_0002def0();" (call_expression "FUN_0002def0()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 build_wcs_buffer(re_string_t *pstr)\n\n{\n  int iVar1;\n  uchar uVar2;\n  anon_union_4_2_91654ee9_for___value aVar3;\n  wint_t *pwVar4;\n  int iVar5;\n  uchar *s;\n  size_t sVar6;\n  size_t sVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  wchar_t wc;\n  uchar buf [64];\n  \n  iVar10 = pstr->valid_len;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar5 = pstr->len;\n  if (pstr->bufs_len <= pstr->len) {\n    iVar5 = pstr->bufs_len;\n  }\n  if (iVar10 < iVar5) {\n    iVar8 = iVar10;\nLAB_0001bb00:\n    do {\n      iVar10 = (pstr->cur_state).__count;\n      aVar3 = (pstr->cur_state).__value;\n      sVar7 = iVar5 - iVar8;\n      if (pstr->trans == (uchar *)0x0) {\n        s = pstr->raw_mbs + pstr->raw_mbs_idx + iVar8;\n      }\n      else {\n        if ((0 < pstr->mb_cur_max) && (0 < (int)sVar7)) {\n          buf[0] = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar8]];\n          pstr->mbs[iVar8] = buf[0];\n          sVar6 = sVar7;\n          if (pstr->mb_cur_max <= (int)sVar7) {\n            sVar6 = pstr->mb_cur_max;\n          }\n          if (1 < (int)sVar6) {\n            iVar9 = 1;\n            s = buf;\n            do {\n              uVar2 = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar9 + iVar8]];\n              pstr->mbs[iVar9 + iVar8] = uVar2;\n              s[iVar9] = uVar2;\n              iVar9 = iVar9 + 1;\n              sVar6 = sVar7;\n              if (pstr->mb_cur_max <= (int)sVar7) {\n                sVar6 = pstr->mb_cur_max;\n              }\n            } while (iVar9 < (int)sVar6);\n            goto LAB_0001bb26;\n          }\n        }\n        s = buf;\n      }\nLAB_0001bb26:\n      sVar7 = rpl_mbrtowc(&wc,(char *)s,sVar7,&pstr->cur_state);\n      if (sVar7 - 1 < 0xfffffffe) {\n        if (sVar7 == 0xfffffffe) {\n          if (pstr->len <= pstr->bufs_len) goto LAB_0001bbb8;\n          (pstr->cur_state).__count = iVar10;\n          (pstr->cur_state).__value = aVar3;\n          iVar10 = iVar8;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar8];\n        if (pstr->trans != (uchar *)0x0) {\n          wc = (wchar_t)pstr->trans[wc];\n        }\n        (pstr->cur_state).__count = iVar10;\n        sVar7 = 1;\n        (pstr->cur_state).__value = aVar3;\n      }\n      pwVar4 = pstr->wcs;\n      iVar10 = iVar8 + 1;\n      pwVar4[iVar8] = wc;\n      iVar9 = iVar8 + sVar7;\n      if (iVar9 <= iVar10) {\n        iVar8 = iVar10;\n        if (iVar5 <= iVar10) break;\n        goto LAB_0001bb00;\n      }\n      memset(pwVar4 + iVar8 + 1,0xff,sVar7 * 4 - 4);\n      iVar8 = iVar9;\n      iVar10 = iVar9;\n    } while (iVar9 < iVar5);\n  }\n  pstr->valid_len = iVar10;\n  pstr->valid_raw_len = iVar10;\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 build_wcs_buffer(re_string_t *pstr)\n\n{\n  int iVar1;\n  uchar uVar2;\n  anon_union_4_2_91654ee9_for___value aVar3;\n  wint_t *pwVar4;\n  int iVar5;\n  uchar *s;\n  size_t sVar6;\n  size_t sVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  wchar_t wc;\n  uchar buf [64];\n  \n  iVar10 = pstr->valid_len;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar5 = pstr->len;\n  if (pstr->bufs_len <= pstr->len) {\n    iVar5 = pstr->bufs_len;\n  }\n  if (iVar10 < iVar5) {\n    iVar8 = iVar10;\nLAB_0001bb00:\n    do {\n      iVar10 = (pstr->cur_state).__count;\n      aVar3 = (pstr->cur_state).__value;\n      sVar7 = iVar5 - iVar8;\n      if (pstr->trans == (uchar *)0x0) {\n        s = pstr->raw_mbs + pstr->raw_mbs_idx + iVar8;\n      }\n      else {\n        if ((0 < pstr->mb_cur_max) && (0 < (int)sVar7)) {\n          buf[0] = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar8]];\n          pstr->mbs[iVar8] = buf[0];\n          sVar6 = sVar7;\n          if (pstr->mb_cur_max <= (int)sVar7) {\n            sVar6 = pstr->mb_cur_max;\n          }\n          if (1 < (int)sVar6) {\n            iVar9 = 1;\n            s = buf;\n            do {\n              uVar2 = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar9 + iVar8]];\n              pstr->mbs[iVar9 + iVar8] = uVar2;\n              s[iVar9] = uVar2;\n              iVar9 = iVar9 + 1;\n              sVar6 = sVar7;\n              if (pstr->mb_cur_max <= (int)sVar7) {\n                sVar6 = pstr->mb_cur_max;\n              }\n            } while (iVar9 < (int)sVar6);\n            goto LAB_0001bb26;\n          }\n        }\n        s = buf;\n      }\nLAB_0001bb26:\n      sVar7 = rpl_mbrtowc(&wc,(char *)s,sVar7,&pstr->cur_state);\n      if (sVar7 - 1 < 0xfffffffe) {\n        if (sVar7 == 0xfffffffe) {\n          if (pstr->len <= pstr->bufs_len) goto LAB_0001bbb8;\n          (pstr->cur_state).__count = iVar10;\n          (pstr->cur_state).__value = aVar3;\n          iVar10 = iVar8;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar8];\n        if (pstr->trans != (uchar *)0x0) {\n          wc = (wchar_t)pstr->trans[wc];\n        }\n        (pstr->cur_state).__count = iVar10;\n        sVar7 = 1;\n        (pstr->cur_state).__value = aVar3;\n      }\n      pwVar4 = pstr->wcs;\n      iVar10 = iVar8 + 1;\n      pwVar4[iVar8] = wc;\n      iVar9 = iVar8 + sVar7;\n      if (iVar9 <= iVar10) {\n        iVar8 = iVar10;\n        if (iVar5 <= iVar10) break;\n        goto LAB_0001bb00;\n      }\n      memset(pwVar4 + iVar8 + 1,0xff,sVar7 * 4 - 4);\n      iVar8 = iVar9;\n      iVar10 = iVar9;\n    } while (iVar9 < iVar5);\n  }\n  pstr->valid_len = iVar10;\n  pstr->valid_raw_len = iVar10;\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "build_wcs_buffer(re_string_t *pstr)" identifier (parameter_list "(re_string_t *pstr)" ( (parameter_declaration "re_string_t *pstr" type_identifier (pointer_declarator "*pstr" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uchar uVar2;\n  anon_union_4_2_91654ee9_for___value aVar3;\n  wint_t *pwVar4;\n  int iVar5;\n  uchar *s;\n  size_t sVar6;\n  size_t sVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  wchar_t wc;\n  uchar buf [64];\n  \n  iVar10 = pstr->valid_len;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar5 = pstr->len;\n  if (pstr->bufs_len <= pstr->len) {\n    iVar5 = pstr->bufs_len;\n  }\n  if (iVar10 < iVar5) {\n    iVar8 = iVar10;\nLAB_0001bb00:\n    do {\n      iVar10 = (pstr->cur_state).__count;\n      aVar3 = (pstr->cur_state).__value;\n      sVar7 = iVar5 - iVar8;\n      if (pstr->trans == (uchar *)0x0) {\n        s = pstr->raw_mbs + pstr->raw_mbs_idx + iVar8;\n      }\n      else {\n        if ((0 < pstr->mb_cur_max) && (0 < (int)sVar7)) {\n          buf[0] = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar8]];\n          pstr->mbs[iVar8] = buf[0];\n          sVar6 = sVar7;\n          if (pstr->mb_cur_max <= (int)sVar7) {\n            sVar6 = pstr->mb_cur_max;\n          }\n          if (1 < (int)sVar6) {\n            iVar9 = 1;\n            s = buf;\n            do {\n              uVar2 = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar9 + iVar8]];\n              pstr->mbs[iVar9 + iVar8] = uVar2;\n              s[iVar9] = uVar2;\n              iVar9 = iVar9 + 1;\n              sVar6 = sVar7;\n              if (pstr->mb_cur_max <= (int)sVar7) {\n                sVar6 = pstr->mb_cur_max;\n              }\n            } while (iVar9 < (int)sVar6);\n            goto LAB_0001bb26;\n          }\n        }\n        s = buf;\n      }\nLAB_0001bb26:\n      sVar7 = rpl_mbrtowc(&wc,(char *)s,sVar7,&pstr->cur_state);\n      if (sVar7 - 1 < 0xfffffffe) {\n        if (sVar7 == 0xfffffffe) {\n          if (pstr->len <= pstr->bufs_len) goto LAB_0001bbb8;\n          (pstr->cur_state).__count = iVar10;\n          (pstr->cur_state).__value = aVar3;\n          iVar10 = iVar8;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar8];\n        if (pstr->trans != (uchar *)0x0) {\n          wc = (wchar_t)pstr->trans[wc];\n        }\n        (pstr->cur_state).__count = iVar10;\n        sVar7 = 1;\n        (pstr->cur_state).__value = aVar3;\n      }\n      pwVar4 = pstr->wcs;\n      iVar10 = iVar8 + 1;\n      pwVar4[iVar8] = wc;\n      iVar9 = iVar8 + sVar7;\n      if (iVar9 <= iVar10) {\n        iVar8 = iVar10;\n        if (iVar5 <= iVar10) break;\n        goto LAB_0001bb00;\n      }\n      memset(pwVar4 + iVar8 + 1,0xff,sVar7 * 4 - 4);\n      iVar8 = iVar9;\n      iVar10 = iVar9;\n    } while (iVar9 < iVar5);\n  }\n  pstr->valid_len = iVar10;\n  pstr->valid_raw_len = iVar10;\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uchar uVar2;" type_identifier identifier ;) (declaration "anon_union_4_2_91654ee9_for___value aVar3;" type_identifier identifier ;) (declaration "wint_t *pwVar4;" type_identifier (pointer_declarator "*pwVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uchar *s;" type_identifier (pointer_declarator "*s" * identifier) ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "size_t sVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "wchar_t wc;" type_identifier identifier ;) (declaration "uchar buf [64];" type_identifier (array_declarator "buf [64]" identifier [ number_literal ]) ;) (expression_statement "iVar10 = pstr->valid_len;" (assignment_expression "iVar10 = pstr->valid_len" identifier = (field_expression "pstr->valid_len" identifier -> field_identifier)) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = pstr->len;" (assignment_expression "iVar5 = pstr->len" identifier = (field_expression "pstr->len" identifier -> field_identifier)) ;) (if_statement "if (pstr->bufs_len <= pstr->len) {\n    iVar5 = pstr->bufs_len;\n  }" if (parenthesized_expression "(pstr->bufs_len <= pstr->len)" ( (binary_expression "pstr->bufs_len <= pstr->len" (field_expression "pstr->bufs_len" identifier -> field_identifier) <= (field_expression "pstr->len" identifier -> field_identifier)) )) (compound_statement "{\n    iVar5 = pstr->bufs_len;\n  }" { (expression_statement "iVar5 = pstr->bufs_len;" (assignment_expression "iVar5 = pstr->bufs_len" identifier = (field_expression "pstr->bufs_len" identifier -> field_identifier)) ;) })) (if_statement "if (iVar10 < iVar5) {\n    iVar8 = iVar10;\nLAB_0001bb00:\n    do {\n      iVar10 = (pstr->cur_state).__count;\n      aVar3 = (pstr->cur_state).__value;\n      sVar7 = iVar5 - iVar8;\n      if (pstr->trans == (uchar *)0x0) {\n        s = pstr->raw_mbs + pstr->raw_mbs_idx + iVar8;\n      }\n      else {\n        if ((0 < pstr->mb_cur_max) && (0 < (int)sVar7)) {\n          buf[0] = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar8]];\n          pstr->mbs[iVar8] = buf[0];\n          sVar6 = sVar7;\n          if (pstr->mb_cur_max <= (int)sVar7) {\n            sVar6 = pstr->mb_cur_max;\n          }\n          if (1 < (int)sVar6) {\n            iVar9 = 1;\n            s = buf;\n            do {\n              uVar2 = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar9 + iVar8]];\n              pstr->mbs[iVar9 + iVar8] = uVar2;\n              s[iVar9] = uVar2;\n              iVar9 = iVar9 + 1;\n              sVar6 = sVar7;\n              if (pstr->mb_cur_max <= (int)sVar7) {\n                sVar6 = pstr->mb_cur_max;\n              }\n            } while (iVar9 < (int)sVar6);\n            goto LAB_0001bb26;\n          }\n        }\n        s = buf;\n      }\nLAB_0001bb26:\n      sVar7 = rpl_mbrtowc(&wc,(char *)s,sVar7,&pstr->cur_state);\n      if (sVar7 - 1 < 0xfffffffe) {\n        if (sVar7 == 0xfffffffe) {\n          if (pstr->len <= pstr->bufs_len) goto LAB_0001bbb8;\n          (pstr->cur_state).__count = iVar10;\n          (pstr->cur_state).__value = aVar3;\n          iVar10 = iVar8;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar8];\n        if (pstr->trans != (uchar *)0x0) {\n          wc = (wchar_t)pstr->trans[wc];\n        }\n        (pstr->cur_state).__count = iVar10;\n        sVar7 = 1;\n        (pstr->cur_state).__value = aVar3;\n      }\n      pwVar4 = pstr->wcs;\n      iVar10 = iVar8 + 1;\n      pwVar4[iVar8] = wc;\n      iVar9 = iVar8 + sVar7;\n      if (iVar9 <= iVar10) {\n        iVar8 = iVar10;\n        if (iVar5 <= iVar10) break;\n        goto LAB_0001bb00;\n      }\n      memset(pwVar4 + iVar8 + 1,0xff,sVar7 * 4 - 4);\n      iVar8 = iVar9;\n      iVar10 = iVar9;\n    } while (iVar9 < iVar5);\n  }" if (parenthesized_expression "(iVar10 < iVar5)" ( (binary_expression "iVar10 < iVar5" identifier < identifier) )) (compound_statement "{\n    iVar8 = iVar10;\nLAB_0001bb00:\n    do {\n      iVar10 = (pstr->cur_state).__count;\n      aVar3 = (pstr->cur_state).__value;\n      sVar7 = iVar5 - iVar8;\n      if (pstr->trans == (uchar *)0x0) {\n        s = pstr->raw_mbs + pstr->raw_mbs_idx + iVar8;\n      }\n      else {\n        if ((0 < pstr->mb_cur_max) && (0 < (int)sVar7)) {\n          buf[0] = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar8]];\n          pstr->mbs[iVar8] = buf[0];\n          sVar6 = sVar7;\n          if (pstr->mb_cur_max <= (int)sVar7) {\n            sVar6 = pstr->mb_cur_max;\n          }\n          if (1 < (int)sVar6) {\n            iVar9 = 1;\n            s = buf;\n            do {\n              uVar2 = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar9 + iVar8]];\n              pstr->mbs[iVar9 + iVar8] = uVar2;\n              s[iVar9] = uVar2;\n              iVar9 = iVar9 + 1;\n              sVar6 = sVar7;\n              if (pstr->mb_cur_max <= (int)sVar7) {\n                sVar6 = pstr->mb_cur_max;\n              }\n            } while (iVar9 < (int)sVar6);\n            goto LAB_0001bb26;\n          }\n        }\n        s = buf;\n      }\nLAB_0001bb26:\n      sVar7 = rpl_mbrtowc(&wc,(char *)s,sVar7,&pstr->cur_state);\n      if (sVar7 - 1 < 0xfffffffe) {\n        if (sVar7 == 0xfffffffe) {\n          if (pstr->len <= pstr->bufs_len) goto LAB_0001bbb8;\n          (pstr->cur_state).__count = iVar10;\n          (pstr->cur_state).__value = aVar3;\n          iVar10 = iVar8;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar8];\n        if (pstr->trans != (uchar *)0x0) {\n          wc = (wchar_t)pstr->trans[wc];\n        }\n        (pstr->cur_state).__count = iVar10;\n        sVar7 = 1;\n        (pstr->cur_state).__value = aVar3;\n      }\n      pwVar4 = pstr->wcs;\n      iVar10 = iVar8 + 1;\n      pwVar4[iVar8] = wc;\n      iVar9 = iVar8 + sVar7;\n      if (iVar9 <= iVar10) {\n        iVar8 = iVar10;\n        if (iVar5 <= iVar10) break;\n        goto LAB_0001bb00;\n      }\n      memset(pwVar4 + iVar8 + 1,0xff,sVar7 * 4 - 4);\n      iVar8 = iVar9;\n      iVar10 = iVar9;\n    } while (iVar9 < iVar5);\n  }" { (expression_statement "iVar8 = iVar10;" (assignment_expression "iVar8 = iVar10" identifier = identifier) ;) (labeled_statement "LAB_0001bb00:\n    do {\n      iVar10 = (pstr->cur_state).__count;\n      aVar3 = (pstr->cur_state).__value;\n      sVar7 = iVar5 - iVar8;\n      if (pstr->trans == (uchar *)0x0) {\n        s = pstr->raw_mbs + pstr->raw_mbs_idx + iVar8;\n      }\n      else {\n        if ((0 < pstr->mb_cur_max) && (0 < (int)sVar7)) {\n          buf[0] = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar8]];\n          pstr->mbs[iVar8] = buf[0];\n          sVar6 = sVar7;\n          if (pstr->mb_cur_max <= (int)sVar7) {\n            sVar6 = pstr->mb_cur_max;\n          }\n          if (1 < (int)sVar6) {\n            iVar9 = 1;\n            s = buf;\n            do {\n              uVar2 = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar9 + iVar8]];\n              pstr->mbs[iVar9 + iVar8] = uVar2;\n              s[iVar9] = uVar2;\n              iVar9 = iVar9 + 1;\n              sVar6 = sVar7;\n              if (pstr->mb_cur_max <= (int)sVar7) {\n                sVar6 = pstr->mb_cur_max;\n              }\n            } while (iVar9 < (int)sVar6);\n            goto LAB_0001bb26;\n          }\n        }\n        s = buf;\n      }\nLAB_0001bb26:\n      sVar7 = rpl_mbrtowc(&wc,(char *)s,sVar7,&pstr->cur_state);\n      if (sVar7 - 1 < 0xfffffffe) {\n        if (sVar7 == 0xfffffffe) {\n          if (pstr->len <= pstr->bufs_len) goto LAB_0001bbb8;\n          (pstr->cur_state).__count = iVar10;\n          (pstr->cur_state).__value = aVar3;\n          iVar10 = iVar8;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar8];\n        if (pstr->trans != (uchar *)0x0) {\n          wc = (wchar_t)pstr->trans[wc];\n        }\n        (pstr->cur_state).__count = iVar10;\n        sVar7 = 1;\n        (pstr->cur_state).__value = aVar3;\n      }\n      pwVar4 = pstr->wcs;\n      iVar10 = iVar8 + 1;\n      pwVar4[iVar8] = wc;\n      iVar9 = iVar8 + sVar7;\n      if (iVar9 <= iVar10) {\n        iVar8 = iVar10;\n        if (iVar5 <= iVar10) break;\n        goto LAB_0001bb00;\n      }\n      memset(pwVar4 + iVar8 + 1,0xff,sVar7 * 4 - 4);\n      iVar8 = iVar9;\n      iVar10 = iVar9;\n    } while (iVar9 < iVar5);" statement_identifier : (do_statement "do {\n      iVar10 = (pstr->cur_state).__count;\n      aVar3 = (pstr->cur_state).__value;\n      sVar7 = iVar5 - iVar8;\n      if (pstr->trans == (uchar *)0x0) {\n        s = pstr->raw_mbs + pstr->raw_mbs_idx + iVar8;\n      }\n      else {\n        if ((0 < pstr->mb_cur_max) && (0 < (int)sVar7)) {\n          buf[0] = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar8]];\n          pstr->mbs[iVar8] = buf[0];\n          sVar6 = sVar7;\n          if (pstr->mb_cur_max <= (int)sVar7) {\n            sVar6 = pstr->mb_cur_max;\n          }\n          if (1 < (int)sVar6) {\n            iVar9 = 1;\n            s = buf;\n            do {\n              uVar2 = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar9 + iVar8]];\n              pstr->mbs[iVar9 + iVar8] = uVar2;\n              s[iVar9] = uVar2;\n              iVar9 = iVar9 + 1;\n              sVar6 = sVar7;\n              if (pstr->mb_cur_max <= (int)sVar7) {\n                sVar6 = pstr->mb_cur_max;\n              }\n            } while (iVar9 < (int)sVar6);\n            goto LAB_0001bb26;\n          }\n        }\n        s = buf;\n      }\nLAB_0001bb26:\n      sVar7 = rpl_mbrtowc(&wc,(char *)s,sVar7,&pstr->cur_state);\n      if (sVar7 - 1 < 0xfffffffe) {\n        if (sVar7 == 0xfffffffe) {\n          if (pstr->len <= pstr->bufs_len) goto LAB_0001bbb8;\n          (pstr->cur_state).__count = iVar10;\n          (pstr->cur_state).__value = aVar3;\n          iVar10 = iVar8;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar8];\n        if (pstr->trans != (uchar *)0x0) {\n          wc = (wchar_t)pstr->trans[wc];\n        }\n        (pstr->cur_state).__count = iVar10;\n        sVar7 = 1;\n        (pstr->cur_state).__value = aVar3;\n      }\n      pwVar4 = pstr->wcs;\n      iVar10 = iVar8 + 1;\n      pwVar4[iVar8] = wc;\n      iVar9 = iVar8 + sVar7;\n      if (iVar9 <= iVar10) {\n        iVar8 = iVar10;\n        if (iVar5 <= iVar10) break;\n        goto LAB_0001bb00;\n      }\n      memset(pwVar4 + iVar8 + 1,0xff,sVar7 * 4 - 4);\n      iVar8 = iVar9;\n      iVar10 = iVar9;\n    } while (iVar9 < iVar5);" do (compound_statement "{\n      iVar10 = (pstr->cur_state).__count;\n      aVar3 = (pstr->cur_state).__value;\n      sVar7 = iVar5 - iVar8;\n      if (pstr->trans == (uchar *)0x0) {\n        s = pstr->raw_mbs + pstr->raw_mbs_idx + iVar8;\n      }\n      else {\n        if ((0 < pstr->mb_cur_max) && (0 < (int)sVar7)) {\n          buf[0] = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar8]];\n          pstr->mbs[iVar8] = buf[0];\n          sVar6 = sVar7;\n          if (pstr->mb_cur_max <= (int)sVar7) {\n            sVar6 = pstr->mb_cur_max;\n          }\n          if (1 < (int)sVar6) {\n            iVar9 = 1;\n            s = buf;\n            do {\n              uVar2 = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar9 + iVar8]];\n              pstr->mbs[iVar9 + iVar8] = uVar2;\n              s[iVar9] = uVar2;\n              iVar9 = iVar9 + 1;\n              sVar6 = sVar7;\n              if (pstr->mb_cur_max <= (int)sVar7) {\n                sVar6 = pstr->mb_cur_max;\n              }\n            } while (iVar9 < (int)sVar6);\n            goto LAB_0001bb26;\n          }\n        }\n        s = buf;\n      }\nLAB_0001bb26:\n      sVar7 = rpl_mbrtowc(&wc,(char *)s,sVar7,&pstr->cur_state);\n      if (sVar7 - 1 < 0xfffffffe) {\n        if (sVar7 == 0xfffffffe) {\n          if (pstr->len <= pstr->bufs_len) goto LAB_0001bbb8;\n          (pstr->cur_state).__count = iVar10;\n          (pstr->cur_state).__value = aVar3;\n          iVar10 = iVar8;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar8];\n        if (pstr->trans != (uchar *)0x0) {\n          wc = (wchar_t)pstr->trans[wc];\n        }\n        (pstr->cur_state).__count = iVar10;\n        sVar7 = 1;\n        (pstr->cur_state).__value = aVar3;\n      }\n      pwVar4 = pstr->wcs;\n      iVar10 = iVar8 + 1;\n      pwVar4[iVar8] = wc;\n      iVar9 = iVar8 + sVar7;\n      if (iVar9 <= iVar10) {\n        iVar8 = iVar10;\n        if (iVar5 <= iVar10) break;\n        goto LAB_0001bb00;\n      }\n      memset(pwVar4 + iVar8 + 1,0xff,sVar7 * 4 - 4);\n      iVar8 = iVar9;\n      iVar10 = iVar9;\n    }" { (expression_statement "iVar10 = (pstr->cur_state).__count;" (assignment_expression "iVar10 = (pstr->cur_state).__count" identifier = (field_expression "(pstr->cur_state).__count" (parenthesized_expression "(pstr->cur_state)" ( (field_expression "pstr->cur_state" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "aVar3 = (pstr->cur_state).__value;" (assignment_expression "aVar3 = (pstr->cur_state).__value" identifier = (field_expression "(pstr->cur_state).__value" (parenthesized_expression "(pstr->cur_state)" ( (field_expression "pstr->cur_state" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "sVar7 = iVar5 - iVar8;" (assignment_expression "sVar7 = iVar5 - iVar8" identifier = (binary_expression "iVar5 - iVar8" identifier - identifier)) ;) (if_statement "if (pstr->trans == (uchar *)0x0) {\n        s = pstr->raw_mbs + pstr->raw_mbs_idx + iVar8;\n      }\n      else {\n        if ((0 < pstr->mb_cur_max) && (0 < (int)sVar7)) {\n          buf[0] = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar8]];\n          pstr->mbs[iVar8] = buf[0];\n          sVar6 = sVar7;\n          if (pstr->mb_cur_max <= (int)sVar7) {\n            sVar6 = pstr->mb_cur_max;\n          }\n          if (1 < (int)sVar6) {\n            iVar9 = 1;\n            s = buf;\n            do {\n              uVar2 = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar9 + iVar8]];\n              pstr->mbs[iVar9 + iVar8] = uVar2;\n              s[iVar9] = uVar2;\n              iVar9 = iVar9 + 1;\n              sVar6 = sVar7;\n              if (pstr->mb_cur_max <= (int)sVar7) {\n                sVar6 = pstr->mb_cur_max;\n              }\n            } while (iVar9 < (int)sVar6);\n            goto LAB_0001bb26;\n          }\n        }\n        s = buf;\n      }" if (parenthesized_expression "(pstr->trans == (uchar *)0x0)" ( (binary_expression "pstr->trans == (uchar *)0x0" (field_expression "pstr->trans" identifier -> field_identifier) == (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        s = pstr->raw_mbs + pstr->raw_mbs_idx + iVar8;\n      }" { (expression_statement "s = pstr->raw_mbs + pstr->raw_mbs_idx + iVar8;" (assignment_expression "s = pstr->raw_mbs + pstr->raw_mbs_idx + iVar8" identifier = (binary_expression "pstr->raw_mbs + pstr->raw_mbs_idx + iVar8" (binary_expression "pstr->raw_mbs + pstr->raw_mbs_idx" (field_expression "pstr->raw_mbs" identifier -> field_identifier) + (field_expression "pstr->raw_mbs_idx" identifier -> field_identifier)) + identifier)) ;) }) (else_clause "else {\n        if ((0 < pstr->mb_cur_max) && (0 < (int)sVar7)) {\n          buf[0] = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar8]];\n          pstr->mbs[iVar8] = buf[0];\n          sVar6 = sVar7;\n          if (pstr->mb_cur_max <= (int)sVar7) {\n            sVar6 = pstr->mb_cur_max;\n          }\n          if (1 < (int)sVar6) {\n            iVar9 = 1;\n            s = buf;\n            do {\n              uVar2 = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar9 + iVar8]];\n              pstr->mbs[iVar9 + iVar8] = uVar2;\n              s[iVar9] = uVar2;\n              iVar9 = iVar9 + 1;\n              sVar6 = sVar7;\n              if (pstr->mb_cur_max <= (int)sVar7) {\n                sVar6 = pstr->mb_cur_max;\n              }\n            } while (iVar9 < (int)sVar6);\n            goto LAB_0001bb26;\n          }\n        }\n        s = buf;\n      }" else (compound_statement "{\n        if ((0 < pstr->mb_cur_max) && (0 < (int)sVar7)) {\n          buf[0] = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar8]];\n          pstr->mbs[iVar8] = buf[0];\n          sVar6 = sVar7;\n          if (pstr->mb_cur_max <= (int)sVar7) {\n            sVar6 = pstr->mb_cur_max;\n          }\n          if (1 < (int)sVar6) {\n            iVar9 = 1;\n            s = buf;\n            do {\n              uVar2 = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar9 + iVar8]];\n              pstr->mbs[iVar9 + iVar8] = uVar2;\n              s[iVar9] = uVar2;\n              iVar9 = iVar9 + 1;\n              sVar6 = sVar7;\n              if (pstr->mb_cur_max <= (int)sVar7) {\n                sVar6 = pstr->mb_cur_max;\n              }\n            } while (iVar9 < (int)sVar6);\n            goto LAB_0001bb26;\n          }\n        }\n        s = buf;\n      }" { (if_statement "if ((0 < pstr->mb_cur_max) && (0 < (int)sVar7)) {\n          buf[0] = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar8]];\n          pstr->mbs[iVar8] = buf[0];\n          sVar6 = sVar7;\n          if (pstr->mb_cur_max <= (int)sVar7) {\n            sVar6 = pstr->mb_cur_max;\n          }\n          if (1 < (int)sVar6) {\n            iVar9 = 1;\n            s = buf;\n            do {\n              uVar2 = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar9 + iVar8]];\n              pstr->mbs[iVar9 + iVar8] = uVar2;\n              s[iVar9] = uVar2;\n              iVar9 = iVar9 + 1;\n              sVar6 = sVar7;\n              if (pstr->mb_cur_max <= (int)sVar7) {\n                sVar6 = pstr->mb_cur_max;\n              }\n            } while (iVar9 < (int)sVar6);\n            goto LAB_0001bb26;\n          }\n        }" if (parenthesized_expression "((0 < pstr->mb_cur_max) && (0 < (int)sVar7))" ( (binary_expression "(0 < pstr->mb_cur_max) && (0 < (int)sVar7)" (parenthesized_expression "(0 < pstr->mb_cur_max)" ( (binary_expression "0 < pstr->mb_cur_max" number_literal < (field_expression "pstr->mb_cur_max" identifier -> field_identifier)) )) && (parenthesized_expression "(0 < (int)sVar7)" ( (binary_expression "0 < (int)sVar7" number_literal < (cast_expression "(int)sVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )) (compound_statement "{\n          buf[0] = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar8]];\n          pstr->mbs[iVar8] = buf[0];\n          sVar6 = sVar7;\n          if (pstr->mb_cur_max <= (int)sVar7) {\n            sVar6 = pstr->mb_cur_max;\n          }\n          if (1 < (int)sVar6) {\n            iVar9 = 1;\n            s = buf;\n            do {\n              uVar2 = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar9 + iVar8]];\n              pstr->mbs[iVar9 + iVar8] = uVar2;\n              s[iVar9] = uVar2;\n              iVar9 = iVar9 + 1;\n              sVar6 = sVar7;\n              if (pstr->mb_cur_max <= (int)sVar7) {\n                sVar6 = pstr->mb_cur_max;\n              }\n            } while (iVar9 < (int)sVar6);\n            goto LAB_0001bb26;\n          }\n        }" { (expression_statement "buf[0] = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar8]];" (assignment_expression "buf[0] = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar8]]" (subscript_expression "buf[0]" identifier [ number_literal ]) = (subscript_expression "pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar8]]" (field_expression "pstr->trans" identifier -> field_identifier) [ (subscript_expression "pstr->raw_mbs[pstr->raw_mbs_idx + iVar8]" (field_expression "pstr->raw_mbs" identifier -> field_identifier) [ (binary_expression "pstr->raw_mbs_idx + iVar8" (field_expression "pstr->raw_mbs_idx" identifier -> field_identifier) + identifier) ]) ])) ;) (expression_statement "pstr->mbs[iVar8] = buf[0];" (assignment_expression "pstr->mbs[iVar8] = buf[0]" (subscript_expression "pstr->mbs[iVar8]" (field_expression "pstr->mbs" identifier -> field_identifier) [ identifier ]) = (subscript_expression "buf[0]" identifier [ number_literal ])) ;) (expression_statement "sVar6 = sVar7;" (assignment_expression "sVar6 = sVar7" identifier = identifier) ;) (if_statement "if (pstr->mb_cur_max <= (int)sVar7) {\n            sVar6 = pstr->mb_cur_max;\n          }" if (parenthesized_expression "(pstr->mb_cur_max <= (int)sVar7)" ( (binary_expression "pstr->mb_cur_max <= (int)sVar7" (field_expression "pstr->mb_cur_max" identifier -> field_identifier) <= (cast_expression "(int)sVar7" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n            sVar6 = pstr->mb_cur_max;\n          }" { (expression_statement "sVar6 = pstr->mb_cur_max;" (assignment_expression "sVar6 = pstr->mb_cur_max" identifier = (field_expression "pstr->mb_cur_max" identifier -> field_identifier)) ;) })) (if_statement "if (1 < (int)sVar6) {\n            iVar9 = 1;\n            s = buf;\n            do {\n              uVar2 = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar9 + iVar8]];\n              pstr->mbs[iVar9 + iVar8] = uVar2;\n              s[iVar9] = uVar2;\n              iVar9 = iVar9 + 1;\n              sVar6 = sVar7;\n              if (pstr->mb_cur_max <= (int)sVar7) {\n                sVar6 = pstr->mb_cur_max;\n              }\n            } while (iVar9 < (int)sVar6);\n            goto LAB_0001bb26;\n          }" if (parenthesized_expression "(1 < (int)sVar6)" ( (binary_expression "1 < (int)sVar6" number_literal < (cast_expression "(int)sVar6" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n            iVar9 = 1;\n            s = buf;\n            do {\n              uVar2 = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar9 + iVar8]];\n              pstr->mbs[iVar9 + iVar8] = uVar2;\n              s[iVar9] = uVar2;\n              iVar9 = iVar9 + 1;\n              sVar6 = sVar7;\n              if (pstr->mb_cur_max <= (int)sVar7) {\n                sVar6 = pstr->mb_cur_max;\n              }\n            } while (iVar9 < (int)sVar6);\n            goto LAB_0001bb26;\n          }" { (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" identifier = number_literal) ;) (expression_statement "s = buf;" (assignment_expression "s = buf" identifier = identifier) ;) (do_statement "do {\n              uVar2 = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar9 + iVar8]];\n              pstr->mbs[iVar9 + iVar8] = uVar2;\n              s[iVar9] = uVar2;\n              iVar9 = iVar9 + 1;\n              sVar6 = sVar7;\n              if (pstr->mb_cur_max <= (int)sVar7) {\n                sVar6 = pstr->mb_cur_max;\n              }\n            } while (iVar9 < (int)sVar6);" do (compound_statement "{\n              uVar2 = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar9 + iVar8]];\n              pstr->mbs[iVar9 + iVar8] = uVar2;\n              s[iVar9] = uVar2;\n              iVar9 = iVar9 + 1;\n              sVar6 = sVar7;\n              if (pstr->mb_cur_max <= (int)sVar7) {\n                sVar6 = pstr->mb_cur_max;\n              }\n            }" { (expression_statement "uVar2 = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar9 + iVar8]];" (assignment_expression "uVar2 = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar9 + iVar8]]" identifier = (subscript_expression "pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + iVar9 + iVar8]]" (field_expression "pstr->trans" identifier -> field_identifier) [ (subscript_expression "pstr->raw_mbs[pstr->raw_mbs_idx + iVar9 + iVar8]" (field_expression "pstr->raw_mbs" identifier -> field_identifier) [ (binary_expression "pstr->raw_mbs_idx + iVar9 + iVar8" (binary_expression "pstr->raw_mbs_idx + iVar9" (field_expression "pstr->raw_mbs_idx" identifier -> field_identifier) + identifier) + identifier) ]) ])) ;) (expression_statement "pstr->mbs[iVar9 + iVar8] = uVar2;" (assignment_expression "pstr->mbs[iVar9 + iVar8] = uVar2" (subscript_expression "pstr->mbs[iVar9 + iVar8]" (field_expression "pstr->mbs" identifier -> field_identifier) [ (binary_expression "iVar9 + iVar8" identifier + identifier) ]) = identifier) ;) (expression_statement "s[iVar9] = uVar2;" (assignment_expression "s[iVar9] = uVar2" (subscript_expression "s[iVar9]" identifier [ identifier ]) = identifier) ;) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "sVar6 = sVar7;" (assignment_expression "sVar6 = sVar7" identifier = identifier) ;) (if_statement "if (pstr->mb_cur_max <= (int)sVar7) {\n                sVar6 = pstr->mb_cur_max;\n              }" if (parenthesized_expression "(pstr->mb_cur_max <= (int)sVar7)" ( (binary_expression "pstr->mb_cur_max <= (int)sVar7" (field_expression "pstr->mb_cur_max" identifier -> field_identifier) <= (cast_expression "(int)sVar7" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n                sVar6 = pstr->mb_cur_max;\n              }" { (expression_statement "sVar6 = pstr->mb_cur_max;" (assignment_expression "sVar6 = pstr->mb_cur_max" identifier = (field_expression "pstr->mb_cur_max" identifier -> field_identifier)) ;) })) }) while (parenthesized_expression "(iVar9 < (int)sVar6)" ( (binary_expression "iVar9 < (int)sVar6" identifier < (cast_expression "(int)sVar6" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) (goto_statement "goto LAB_0001bb26;" goto statement_identifier ;) })) })) (expression_statement "s = buf;" (assignment_expression "s = buf" identifier = identifier) ;) }))) (labeled_statement "LAB_0001bb26:\n      sVar7 = rpl_mbrtowc(&wc,(char *)s,sVar7,&pstr->cur_state);" statement_identifier : (expression_statement "sVar7 = rpl_mbrtowc(&wc,(char *)s,sVar7,&pstr->cur_state);" (assignment_expression "sVar7 = rpl_mbrtowc(&wc,(char *)s,sVar7,&pstr->cur_state)" identifier = (call_expression "rpl_mbrtowc(&wc,(char *)s,sVar7,&pstr->cur_state)" identifier (argument_list "(&wc,(char *)s,sVar7,&pstr->cur_state)" ( (pointer_expression "&wc" & identifier) , (cast_expression "(char *)s" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier , (pointer_expression "&pstr->cur_state" & (field_expression "pstr->cur_state" identifier -> field_identifier)) )))) ;)) (if_statement "if (sVar7 - 1 < 0xfffffffe) {\n        if (sVar7 == 0xfffffffe) {\n          if (pstr->len <= pstr->bufs_len) goto LAB_0001bbb8;\n          (pstr->cur_state).__count = iVar10;\n          (pstr->cur_state).__value = aVar3;\n          iVar10 = iVar8;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar8];\n        if (pstr->trans != (uchar *)0x0) {\n          wc = (wchar_t)pstr->trans[wc];\n        }\n        (pstr->cur_state).__count = iVar10;\n        sVar7 = 1;\n        (pstr->cur_state).__value = aVar3;\n      }" if (parenthesized_expression "(sVar7 - 1 < 0xfffffffe)" ( (binary_expression "sVar7 - 1 < 0xfffffffe" (binary_expression "sVar7 - 1" identifier - number_literal) < number_literal) )) (compound_statement "{\n        if (sVar7 == 0xfffffffe) {\n          if (pstr->len <= pstr->bufs_len) goto LAB_0001bbb8;\n          (pstr->cur_state).__count = iVar10;\n          (pstr->cur_state).__value = aVar3;\n          iVar10 = iVar8;\n          break;\n        }\n      }" { (if_statement "if (sVar7 == 0xfffffffe) {\n          if (pstr->len <= pstr->bufs_len) goto LAB_0001bbb8;\n          (pstr->cur_state).__count = iVar10;\n          (pstr->cur_state).__value = aVar3;\n          iVar10 = iVar8;\n          break;\n        }" if (parenthesized_expression "(sVar7 == 0xfffffffe)" ( (binary_expression "sVar7 == 0xfffffffe" identifier == number_literal) )) (compound_statement "{\n          if (pstr->len <= pstr->bufs_len) goto LAB_0001bbb8;\n          (pstr->cur_state).__count = iVar10;\n          (pstr->cur_state).__value = aVar3;\n          iVar10 = iVar8;\n          break;\n        }" { (if_statement "if (pstr->len <= pstr->bufs_len) goto LAB_0001bbb8;" if (parenthesized_expression "(pstr->len <= pstr->bufs_len)" ( (binary_expression "pstr->len <= pstr->bufs_len" (field_expression "pstr->len" identifier -> field_identifier) <= (field_expression "pstr->bufs_len" identifier -> field_identifier)) )) (goto_statement "goto LAB_0001bbb8;" goto statement_identifier ;)) (expression_statement "(pstr->cur_state).__count = iVar10;" (assignment_expression "(pstr->cur_state).__count = iVar10" (field_expression "(pstr->cur_state).__count" (parenthesized_expression "(pstr->cur_state)" ( (field_expression "pstr->cur_state" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(pstr->cur_state).__value = aVar3;" (assignment_expression "(pstr->cur_state).__value = aVar3" (field_expression "(pstr->cur_state).__value" (parenthesized_expression "(pstr->cur_state)" ( (field_expression "pstr->cur_state" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "iVar10 = iVar8;" (assignment_expression "iVar10 = iVar8" identifier = identifier) ;) (break_statement "break;" break ;) })) }) (else_clause "else {\nLAB_0001bbb8:\n        wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar8];\n        if (pstr->trans != (uchar *)0x0) {\n          wc = (wchar_t)pstr->trans[wc];\n        }\n        (pstr->cur_state).__count = iVar10;\n        sVar7 = 1;\n        (pstr->cur_state).__value = aVar3;\n      }" else (compound_statement "{\nLAB_0001bbb8:\n        wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar8];\n        if (pstr->trans != (uchar *)0x0) {\n          wc = (wchar_t)pstr->trans[wc];\n        }\n        (pstr->cur_state).__count = iVar10;\n        sVar7 = 1;\n        (pstr->cur_state).__value = aVar3;\n      }" { (labeled_statement "LAB_0001bbb8:\n        wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar8];" statement_identifier : (expression_statement "wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar8];" (assignment_expression "wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar8]" identifier = (cast_expression "(wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar8]" ( (type_descriptor "wchar_t" type_identifier) ) (subscript_expression "pstr->raw_mbs[pstr->raw_mbs_idx + iVar8]" (field_expression "pstr->raw_mbs" identifier -> field_identifier) [ (binary_expression "pstr->raw_mbs_idx + iVar8" (field_expression "pstr->raw_mbs_idx" identifier -> field_identifier) + identifier) ]))) ;)) (if_statement "if (pstr->trans != (uchar *)0x0) {\n          wc = (wchar_t)pstr->trans[wc];\n        }" if (parenthesized_expression "(pstr->trans != (uchar *)0x0)" ( (binary_expression "pstr->trans != (uchar *)0x0" (field_expression "pstr->trans" identifier -> field_identifier) != (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          wc = (wchar_t)pstr->trans[wc];\n        }" { (expression_statement "wc = (wchar_t)pstr->trans[wc];" (assignment_expression "wc = (wchar_t)pstr->trans[wc]" identifier = (cast_expression "(wchar_t)pstr->trans[wc]" ( (type_descriptor "wchar_t" type_identifier) ) (subscript_expression "pstr->trans[wc]" (field_expression "pstr->trans" identifier -> field_identifier) [ identifier ]))) ;) })) (expression_statement "(pstr->cur_state).__count = iVar10;" (assignment_expression "(pstr->cur_state).__count = iVar10" (field_expression "(pstr->cur_state).__count" (parenthesized_expression "(pstr->cur_state)" ( (field_expression "pstr->cur_state" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "sVar7 = 1;" (assignment_expression "sVar7 = 1" identifier = number_literal) ;) (expression_statement "(pstr->cur_state).__value = aVar3;" (assignment_expression "(pstr->cur_state).__value = aVar3" (field_expression "(pstr->cur_state).__value" (parenthesized_expression "(pstr->cur_state)" ( (field_expression "pstr->cur_state" identifier -> field_identifier) )) . field_identifier) = identifier) ;) }))) (expression_statement "pwVar4 = pstr->wcs;" (assignment_expression "pwVar4 = pstr->wcs" identifier = (field_expression "pstr->wcs" identifier -> field_identifier)) ;) (expression_statement "iVar10 = iVar8 + 1;" (assignment_expression "iVar10 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (expression_statement "pwVar4[iVar8] = wc;" (assignment_expression "pwVar4[iVar8] = wc" (subscript_expression "pwVar4[iVar8]" identifier [ identifier ]) = identifier) ;) (expression_statement "iVar9 = iVar8 + sVar7;" (assignment_expression "iVar9 = iVar8 + sVar7" identifier = (binary_expression "iVar8 + sVar7" identifier + identifier)) ;) (if_statement "if (iVar9 <= iVar10) {\n        iVar8 = iVar10;\n        if (iVar5 <= iVar10) break;\n        goto LAB_0001bb00;\n      }" if (parenthesized_expression "(iVar9 <= iVar10)" ( (binary_expression "iVar9 <= iVar10" identifier <= identifier) )) (compound_statement "{\n        iVar8 = iVar10;\n        if (iVar5 <= iVar10) break;\n        goto LAB_0001bb00;\n      }" { (expression_statement "iVar8 = iVar10;" (assignment_expression "iVar8 = iVar10" identifier = identifier) ;) (if_statement "if (iVar5 <= iVar10) break;" if (parenthesized_expression "(iVar5 <= iVar10)" ( (binary_expression "iVar5 <= iVar10" identifier <= identifier) )) (break_statement "break;" break ;)) (goto_statement "goto LAB_0001bb00;" goto statement_identifier ;) })) (expression_statement "memset(pwVar4 + iVar8 + 1,0xff,sVar7 * 4 - 4);" (call_expression "memset(pwVar4 + iVar8 + 1,0xff,sVar7 * 4 - 4)" identifier (argument_list "(pwVar4 + iVar8 + 1,0xff,sVar7 * 4 - 4)" ( (binary_expression "pwVar4 + iVar8 + 1" (binary_expression "pwVar4 + iVar8" identifier + identifier) + number_literal) , number_literal , (binary_expression "sVar7 * 4 - 4" (binary_expression "sVar7 * 4" identifier * number_literal) - number_literal) ))) ;) (expression_statement "iVar8 = iVar9;" (assignment_expression "iVar8 = iVar9" identifier = identifier) ;) (expression_statement "iVar10 = iVar9;" (assignment_expression "iVar10 = iVar9" identifier = identifier) ;) }) while (parenthesized_expression "(iVar9 < iVar5)" ( (binary_expression "iVar9 < iVar5" identifier < identifier) )) ;)) })) (expression_statement "pstr->valid_len = iVar10;" (assignment_expression "pstr->valid_len = iVar10" (field_expression "pstr->valid_len" identifier -> field_identifier) = identifier) ;) (expression_statement "pstr->valid_raw_len = iVar10;" (assignment_expression "pstr->valid_raw_len = iVar10" (field_expression "pstr->valid_raw_len" identifier -> field_identifier) = identifier) ;) (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0001bab0(int *param_1)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  uint local_64;\n  undefined1 local_60 [64];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1babb;\n  iVar9 = param_1[7];\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = param_1[0xc];\n  if (param_1[9] <= param_1[0xc]) {\n    iVar3 = param_1[9];\n  }\n  if (iVar9 < iVar3) {\n    iVar7 = iVar9;\nLAB_0001bb00:\n    do {\n      iVar9 = param_1[4];\n      iVar2 = param_1[5];\n      iVar6 = iVar3 - iVar7;\n      if (param_1[0x10] == 0) {\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }\n      else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }\nLAB_0001bb26:\n      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);\n      if (iVar6 - 1U < 0xfffffffe) {\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar9 = iVar7 + 1;\n      *(uint *)(iVar2 + iVar7 * 4) = local_64;\n      iVar8 = iVar7 + iVar6;\n      if (iVar8 <= iVar9) {\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }\n      memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);\n      iVar7 = iVar8;\n      iVar9 = iVar8;\n    } while (iVar8 < iVar3);\n  }\n  param_1[7] = iVar9;\n  param_1[8] = iVar9;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002def0();\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0001bab0(int *param_1)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  uint local_64;\n  undefined1 local_60 [64];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1babb;\n  iVar9 = param_1[7];\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = param_1[0xc];\n  if (param_1[9] <= param_1[0xc]) {\n    iVar3 = param_1[9];\n  }\n  if (iVar9 < iVar3) {\n    iVar7 = iVar9;\nLAB_0001bb00:\n    do {\n      iVar9 = param_1[4];\n      iVar2 = param_1[5];\n      iVar6 = iVar3 - iVar7;\n      if (param_1[0x10] == 0) {\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }\n      else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }\nLAB_0001bb26:\n      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);\n      if (iVar6 - 1U < 0xfffffffe) {\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar9 = iVar7 + 1;\n      *(uint *)(iVar2 + iVar7 * 4) = local_64;\n      iVar8 = iVar7 + iVar6;\n      if (iVar8 <= iVar9) {\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }\n      memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);\n      iVar7 = iVar8;\n      iVar9 = iVar8;\n    } while (iVar8 < iVar3);\n  }\n  param_1[7] = iVar9;\n  param_1[8] = iVar9;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002def0();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001bab0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  uint local_64;\n  undefined1 local_60 [64];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1babb;\n  iVar9 = param_1[7];\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = param_1[0xc];\n  if (param_1[9] <= param_1[0xc]) {\n    iVar3 = param_1[9];\n  }\n  if (iVar9 < iVar3) {\n    iVar7 = iVar9;\nLAB_0001bb00:\n    do {\n      iVar9 = param_1[4];\n      iVar2 = param_1[5];\n      iVar6 = iVar3 - iVar7;\n      if (param_1[0x10] == 0) {\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }\n      else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }\nLAB_0001bb26:\n      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);\n      if (iVar6 - 1U < 0xfffffffe) {\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar9 = iVar7 + 1;\n      *(uint *)(iVar2 + iVar7 * 4) = local_64;\n      iVar8 = iVar7 + iVar6;\n      if (iVar8 <= iVar9) {\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }\n      memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);\n      iVar7 = iVar8;\n      iVar9 = iVar8;\n    } while (iVar8 < iVar3);\n  }\n  param_1[7] = iVar9;\n  param_1[8] = iVar9;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002def0();\n  }\n  return;\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_64;" type_identifier identifier ;) (declaration "undefined1 local_60 [64];" type_identifier (array_declarator "local_60 [64]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1babb;" (assignment_expression "uStack_14 = 0x1babb" identifier = number_literal) ;) (expression_statement "iVar9 = param_1[7];" (assignment_expression "iVar9 = param_1[7]" identifier = (subscript_expression "param_1[7]" identifier [ number_literal ])) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = param_1[0xc];" (assignment_expression "iVar3 = param_1[0xc]" identifier = (subscript_expression "param_1[0xc]" identifier [ number_literal ])) ;) (if_statement "if (param_1[9] <= param_1[0xc]) {\n    iVar3 = param_1[9];\n  }" if (parenthesized_expression "(param_1[9] <= param_1[0xc])" ( (binary_expression "param_1[9] <= param_1[0xc]" (subscript_expression "param_1[9]" identifier [ number_literal ]) <= (subscript_expression "param_1[0xc]" identifier [ number_literal ])) )) (compound_statement "{\n    iVar3 = param_1[9];\n  }" { (expression_statement "iVar3 = param_1[9];" (assignment_expression "iVar3 = param_1[9]" identifier = (subscript_expression "param_1[9]" identifier [ number_literal ])) ;) })) (if_statement "if (iVar9 < iVar3) {\n    iVar7 = iVar9;\nLAB_0001bb00:\n    do {\n      iVar9 = param_1[4];\n      iVar2 = param_1[5];\n      iVar6 = iVar3 - iVar7;\n      if (param_1[0x10] == 0) {\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }\n      else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }\nLAB_0001bb26:\n      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);\n      if (iVar6 - 1U < 0xfffffffe) {\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar9 = iVar7 + 1;\n      *(uint *)(iVar2 + iVar7 * 4) = local_64;\n      iVar8 = iVar7 + iVar6;\n      if (iVar8 <= iVar9) {\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }\n      memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);\n      iVar7 = iVar8;\n      iVar9 = iVar8;\n    } while (iVar8 < iVar3);\n  }" if (parenthesized_expression "(iVar9 < iVar3)" ( (binary_expression "iVar9 < iVar3" identifier < identifier) )) (compound_statement "{\n    iVar7 = iVar9;\nLAB_0001bb00:\n    do {\n      iVar9 = param_1[4];\n      iVar2 = param_1[5];\n      iVar6 = iVar3 - iVar7;\n      if (param_1[0x10] == 0) {\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }\n      else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }\nLAB_0001bb26:\n      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);\n      if (iVar6 - 1U < 0xfffffffe) {\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar9 = iVar7 + 1;\n      *(uint *)(iVar2 + iVar7 * 4) = local_64;\n      iVar8 = iVar7 + iVar6;\n      if (iVar8 <= iVar9) {\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }\n      memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);\n      iVar7 = iVar8;\n      iVar9 = iVar8;\n    } while (iVar8 < iVar3);\n  }" { (expression_statement "iVar7 = iVar9;" (assignment_expression "iVar7 = iVar9" identifier = identifier) ;) (labeled_statement "LAB_0001bb00:\n    do {\n      iVar9 = param_1[4];\n      iVar2 = param_1[5];\n      iVar6 = iVar3 - iVar7;\n      if (param_1[0x10] == 0) {\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }\n      else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }\nLAB_0001bb26:\n      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);\n      if (iVar6 - 1U < 0xfffffffe) {\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar9 = iVar7 + 1;\n      *(uint *)(iVar2 + iVar7 * 4) = local_64;\n      iVar8 = iVar7 + iVar6;\n      if (iVar8 <= iVar9) {\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }\n      memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);\n      iVar7 = iVar8;\n      iVar9 = iVar8;\n    } while (iVar8 < iVar3);" statement_identifier : (do_statement "do {\n      iVar9 = param_1[4];\n      iVar2 = param_1[5];\n      iVar6 = iVar3 - iVar7;\n      if (param_1[0x10] == 0) {\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }\n      else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }\nLAB_0001bb26:\n      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);\n      if (iVar6 - 1U < 0xfffffffe) {\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar9 = iVar7 + 1;\n      *(uint *)(iVar2 + iVar7 * 4) = local_64;\n      iVar8 = iVar7 + iVar6;\n      if (iVar8 <= iVar9) {\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }\n      memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);\n      iVar7 = iVar8;\n      iVar9 = iVar8;\n    } while (iVar8 < iVar3);" do (compound_statement "{\n      iVar9 = param_1[4];\n      iVar2 = param_1[5];\n      iVar6 = iVar3 - iVar7;\n      if (param_1[0x10] == 0) {\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }\n      else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }\nLAB_0001bb26:\n      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);\n      if (iVar6 - 1U < 0xfffffffe) {\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar9 = iVar7 + 1;\n      *(uint *)(iVar2 + iVar7 * 4) = local_64;\n      iVar8 = iVar7 + iVar6;\n      if (iVar8 <= iVar9) {\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }\n      memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);\n      iVar7 = iVar8;\n      iVar9 = iVar8;\n    }" { (expression_statement "iVar9 = param_1[4];" (assignment_expression "iVar9 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "iVar2 = param_1[5];" (assignment_expression "iVar2 = param_1[5]" identifier = (subscript_expression "param_1[5]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = iVar3 - iVar7;" (assignment_expression "iVar6 = iVar3 - iVar7" identifier = (binary_expression "iVar3 - iVar7" identifier - identifier)) ;) (if_statement "if (param_1[0x10] == 0) {\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }\n      else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }" if (parenthesized_expression "(param_1[0x10] == 0)" ( (binary_expression "param_1[0x10] == 0" (subscript_expression "param_1[0x10]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }" { (expression_statement "puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);" (assignment_expression "puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1)" identifier = (cast_expression "(undefined1 *)(param_1[6] + iVar7 + *param_1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[6] + iVar7 + *param_1)" ( (binary_expression "param_1[6] + iVar7 + *param_1" (binary_expression "param_1[6] + iVar7" (subscript_expression "param_1[6]" identifier [ number_literal ]) + identifier) + (pointer_expression "*param_1" * identifier)) )))) ;) }) (else_clause "else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }" else (compound_statement "{\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }" { (if_statement "if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }" if (parenthesized_expression "((0 < param_1[0x14]) && (0 < iVar6))" ( (binary_expression "(0 < param_1[0x14]) && (0 < iVar6)" (parenthesized_expression "(0 < param_1[0x14])" ( (binary_expression "0 < param_1[0x14]" number_literal < (subscript_expression "param_1[0x14]" identifier [ number_literal ])) )) && (parenthesized_expression "(0 < iVar6)" ( (binary_expression "0 < iVar6" number_literal < identifier) ))) )) (compound_statement "{\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }" { (expression_statement "local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));" (assignment_expression "local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]))" (subscript_expression "local_60[0]" identifier [ number_literal ]) = (pointer_expression "*(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]))" * (cast_expression "(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]))" ( (binary_expression "param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6])" (subscript_expression "param_1[0x10]" identifier [ number_literal ]) + (binary_expression "(uint)*(byte *)(*param_1 + iVar7 + param_1[6])" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(*param_1 + iVar7 + param_1[6])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar7 + param_1[6])" ( (binary_expression "*param_1 + iVar7 + param_1[6]" (binary_expression "*param_1 + iVar7" (pointer_expression "*param_1" * identifier) + identifier) + (subscript_expression "param_1[6]" identifier [ number_literal ])) ))))) ))))) ;) (expression_statement "*(undefined1 *)(param_1[1] + iVar7) = local_60[0];" (assignment_expression "*(undefined1 *)(param_1[1] + iVar7) = local_60[0]" (pointer_expression "*(undefined1 *)(param_1[1] + iVar7)" * (cast_expression "(undefined1 *)(param_1[1] + iVar7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[1] + iVar7)" ( (binary_expression "param_1[1] + iVar7" (subscript_expression "param_1[1]" identifier [ number_literal ]) + identifier) )))) = (subscript_expression "local_60[0]" identifier [ number_literal ])) ;) (expression_statement "iVar8 = iVar6;" (assignment_expression "iVar8 = iVar6" identifier = identifier) ;) (if_statement "if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }" if (parenthesized_expression "(param_1[0x14] <= iVar6)" ( (binary_expression "param_1[0x14] <= iVar6" (subscript_expression "param_1[0x14]" identifier [ number_literal ]) <= identifier) )) (compound_statement "{\n            iVar8 = param_1[0x14];\n          }" { (expression_statement "iVar8 = param_1[0x14];" (assignment_expression "iVar8 = param_1[0x14]" identifier = (subscript_expression "param_1[0x14]" identifier [ number_literal ])) ;) })) (if_statement "if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }" if (parenthesized_expression "(1 < iVar8)" ( (binary_expression "1 < iVar8" number_literal < identifier) )) (compound_statement "{\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }" { (expression_statement "iVar8 = 1;" (assignment_expression "iVar8 = 1" identifier = number_literal) ;) (expression_statement "puVar4 = local_60;" (assignment_expression "puVar4 = local_60" identifier = identifier) ;) (do_statement "do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);" do (compound_statement "{\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            }" { (expression_statement "uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));" (assignment_expression "uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]))" identifier = (pointer_expression "*(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]))" * (cast_expression "(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]))" ( (binary_expression "param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6])" (subscript_expression "param_1[0x10]" identifier [ number_literal ]) + (binary_expression "(uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6])" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(*param_1 + iVar7 + iVar8 + param_1[6])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar7 + iVar8 + param_1[6])" ( (binary_expression "*param_1 + iVar7 + iVar8 + param_1[6]" (binary_expression "*param_1 + iVar7 + iVar8" (binary_expression "*param_1 + iVar7" (pointer_expression "*param_1" * identifier) + identifier) + identifier) + (subscript_expression "param_1[6]" identifier [ number_literal ])) ))))) ))))) ;) (expression_statement "*(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;" (assignment_expression "*(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1" (pointer_expression "*(undefined1 *)(param_1[1] + iVar7 + iVar8)" * (cast_expression "(undefined1 *)(param_1[1] + iVar7 + iVar8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[1] + iVar7 + iVar8)" ( (binary_expression "param_1[1] + iVar7 + iVar8" (binary_expression "param_1[1] + iVar7" (subscript_expression "param_1[1]" identifier [ number_literal ]) + identifier) + identifier) )))) = identifier) ;) (expression_statement "puVar4[iVar8] = uVar1;" (assignment_expression "puVar4[iVar8] = uVar1" (subscript_expression "puVar4[iVar8]" identifier [ identifier ]) = identifier) ;) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar6;" (assignment_expression "iVar5 = iVar6" identifier = identifier) ;) (if_statement "if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }" if (parenthesized_expression "(param_1[0x14] <= iVar6)" ( (binary_expression "param_1[0x14] <= iVar6" (subscript_expression "param_1[0x14]" identifier [ number_literal ]) <= identifier) )) (compound_statement "{\n                iVar5 = param_1[0x14];\n              }" { (expression_statement "iVar5 = param_1[0x14];" (assignment_expression "iVar5 = param_1[0x14]" identifier = (subscript_expression "param_1[0x14]" identifier [ number_literal ])) ;) })) }) while (parenthesized_expression "(iVar8 < iVar5)" ( (binary_expression "iVar8 < iVar5" identifier < identifier) )) ;) (goto_statement "goto LAB_0001bb26;" goto statement_identifier ;) })) })) (expression_statement "puVar4 = local_60;" (assignment_expression "puVar4 = local_60" identifier = identifier) ;) }))) (labeled_statement "LAB_0001bb26:\n      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);" statement_identifier : (expression_statement "iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);" (assignment_expression "iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4)" identifier = (call_expression "FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4)" identifier (argument_list "(&local_64,puVar4,iVar6,param_1 + 4)" ( (pointer_expression "&local_64" & identifier) , identifier , identifier , (binary_expression "param_1 + 4" identifier + number_literal) )))) ;)) (if_statement "if (iVar6 - 1U < 0xfffffffe) {\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }" if (parenthesized_expression "(iVar6 - 1U < 0xfffffffe)" ( (binary_expression "iVar6 - 1U < 0xfffffffe" (binary_expression "iVar6 - 1U" identifier - number_literal) < number_literal) )) (compound_statement "{\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }" { (if_statement "if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }" if (parenthesized_expression "(iVar6 == -2)" ( (binary_expression "iVar6 == -2" identifier == number_literal) )) (compound_statement "{\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }" { (if_statement "if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;" if (parenthesized_expression "(param_1[0xc] <= param_1[9])" ( (binary_expression "param_1[0xc] <= param_1[9]" (subscript_expression "param_1[0xc]" identifier [ number_literal ]) <= (subscript_expression "param_1[9]" identifier [ number_literal ])) )) (goto_statement "goto LAB_0001bbb8;" goto statement_identifier ;)) (expression_statement "param_1[4] = iVar9;" (assignment_expression "param_1[4] = iVar9" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[5] = iVar2;" (assignment_expression "param_1[5] = iVar2" (subscript_expression "param_1[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar9 = iVar7;" (assignment_expression "iVar9 = iVar7" identifier = identifier) ;) (break_statement "break;" break ;) })) }) (else_clause "else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }" else (compound_statement "{\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }" { (labeled_statement "LAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);" statement_identifier : (expression_statement "local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);" (assignment_expression "local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6])" identifier = (binary_expression "(uint)*(byte *)(*param_1 + iVar7 + param_1[6])" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(*param_1 + iVar7 + param_1[6])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar7 + param_1[6])" ( (binary_expression "*param_1 + iVar7 + param_1[6]" (binary_expression "*param_1 + iVar7" (pointer_expression "*param_1" * identifier) + identifier) + (subscript_expression "param_1[6]" identifier [ number_literal ])) ))))) ;)) (if_statement "if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }" if (parenthesized_expression "(param_1[0x10] != 0)" ( (binary_expression "param_1[0x10] != 0" (subscript_expression "param_1[0x10]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }" { (expression_statement "local_64 = (uint)*(byte *)(param_1[0x10] + local_64);" (assignment_expression "local_64 = (uint)*(byte *)(param_1[0x10] + local_64)" identifier = (binary_expression "(uint)*(byte *)(param_1[0x10] + local_64)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_1[0x10] + local_64)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[0x10] + local_64)" ( (binary_expression "param_1[0x10] + local_64" (subscript_expression "param_1[0x10]" identifier [ number_literal ]) + identifier) ))))) ;) })) (expression_statement "param_1[4] = iVar9;" (assignment_expression "param_1[4] = iVar9" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (expression_statement "param_1[5] = iVar2;" (assignment_expression "param_1[5] = iVar2" (subscript_expression "param_1[5]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "iVar2 = param_1[2];" (assignment_expression "iVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "iVar9 = iVar7 + 1;" (assignment_expression "iVar9 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "*(uint *)(iVar2 + iVar7 * 4) = local_64;" (assignment_expression "*(uint *)(iVar2 + iVar7 * 4) = local_64" (pointer_expression "*(uint *)(iVar2 + iVar7 * 4)" * (cast_expression "(uint *)(iVar2 + iVar7 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar7 * 4)" ( (binary_expression "iVar2 + iVar7 * 4" identifier + (binary_expression "iVar7 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "iVar8 = iVar7 + iVar6;" (assignment_expression "iVar8 = iVar7 + iVar6" identifier = (binary_expression "iVar7 + iVar6" identifier + identifier)) ;) (if_statement "if (iVar8 <= iVar9) {\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }" if (parenthesized_expression "(iVar8 <= iVar9)" ( (binary_expression "iVar8 <= iVar9" identifier <= identifier) )) (compound_statement "{\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }" { (expression_statement "iVar7 = iVar9;" (assignment_expression "iVar7 = iVar9" identifier = identifier) ;) (if_statement "if (iVar3 <= iVar9) break;" if (parenthesized_expression "(iVar3 <= iVar9)" ( (binary_expression "iVar3 <= iVar9" identifier <= identifier) )) (break_statement "break;" break ;)) (goto_statement "goto LAB_0001bb00;" goto statement_identifier ;) })) (expression_statement "memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);" (call_expression "memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4)" identifier (argument_list "((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4)" ( (cast_expression "(void *)(iVar2 + 4 + iVar7 * 4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4 + iVar7 * 4)" ( (binary_expression "iVar2 + 4 + iVar7 * 4" (binary_expression "iVar2 + 4" identifier + number_literal) + (binary_expression "iVar7 * 4" identifier * number_literal)) ))) , number_literal , (binary_expression "iVar6 * 4 - 4" (binary_expression "iVar6 * 4" identifier * number_literal) - number_literal) ))) ;) (expression_statement "iVar7 = iVar8;" (assignment_expression "iVar7 = iVar8" identifier = identifier) ;) (expression_statement "iVar9 = iVar8;" (assignment_expression "iVar9 = iVar8" identifier = identifier) ;) }) while (parenthesized_expression "(iVar8 < iVar3)" ( (binary_expression "iVar8 < iVar3" identifier < identifier) )) ;)) })) (expression_statement "param_1[7] = iVar9;" (assignment_expression "param_1[7] = iVar9" (subscript_expression "param_1[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[8] = iVar9;" (assignment_expression "param_1[8] = iVar9" (subscript_expression "param_1[8]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002def0();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_0002def0();\n  }" { (expression_statement "FUN_0002def0();" (call_expression "FUN_0002def0()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) <= (subscript_expression IDENT [ LIT ])) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) + (pointer_expression * IDENT)) )))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < (subscript_expression IDENT [ LIT ])) )) && (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) + IDENT) + (subscript_expression IDENT [ LIT ])) ))))) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (pointer_expression * IDENT) + IDENT) + IDENT) + (subscript_expression IDENT [ LIT ])) ))))) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) + IDENT) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , IDENT , (binary_expression IDENT + LIT) )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) <= (subscript_expression IDENT [ LIT ])) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (break_statement break ;) })) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) + IDENT) + (subscript_expression IDENT [ LIT ])) ))))) ;)) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) ))))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (break_statement break ;)) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) ))) , LIT , (binary_expression (binary_expression IDENT * LIT) - LIT) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;)) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0001bab0(int *param_1)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  uint local_64;\n  undefined1 local_60 [64];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1babb;\n  iVar9 = param_1[7];\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = param_1[0xc];\n  if (param_1[9] <= param_1[0xc]) {\n    iVar3 = param_1[9];\n  }\n  if (iVar9 < iVar3) {\n    iVar7 = iVar9;\nLAB_0001bb00:\n    do {\n      iVar9 = param_1[4];\n      iVar2 = param_1[5];\n      iVar6 = iVar3 - iVar7;\n      if (param_1[0x10] == 0) {\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }\n      else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }\nLAB_0001bb26:\n      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);\n      if (iVar6 - 1U < 0xfffffffe) {\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar9 = iVar7 + 1;\n      *(uint *)(iVar2 + iVar7 * 4) = local_64;\n      iVar8 = iVar7 + iVar6;\n      if (iVar8 <= iVar9) {\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }\n      memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);\n      iVar7 = iVar8;\n      iVar9 = iVar8;\n    } while (iVar8 < iVar3);\n  }\n  param_1[7] = iVar9;\n  param_1[8] = iVar9;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002def0();\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001bab0(int *param_1)" (identifier "FUN_0001bab0") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  uint local_64;\n  undefined1 local_60 [64];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1babb;\n  iVar9 = param_1[7];\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = param_1[0xc];\n  if (param_1[9] <= param_1[0xc]) {\n    iVar3 = param_1[9];\n  }\n  if (iVar9 < iVar3) {\n    iVar7 = iVar9;\nLAB_0001bb00:\n    do {\n      iVar9 = param_1[4];\n      iVar2 = param_1[5];\n      iVar6 = iVar3 - iVar7;\n      if (param_1[0x10] == 0) {\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }\n      else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }\nLAB_0001bb26:\n      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);\n      if (iVar6 - 1U < 0xfffffffe) {\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar9 = iVar7 + 1;\n      *(uint *)(iVar2 + iVar7 * 4) = local_64;\n      iVar8 = iVar7 + iVar6;\n      if (iVar8 <= iVar9) {\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }\n      memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);\n      iVar7 = iVar8;\n      iVar9 = iVar8;\n    } while (iVar8 < iVar3);\n  }\n  param_1[7] = iVar9;\n  param_1[8] = iVar9;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002def0();\n  }\n  return;\n}" ({ "{") (declaration "undefined1 uVar1;" (type_identifier "undefined1") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined1 *puVar4;" (type_identifier "undefined1") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "uint local_64;" (type_identifier "uint") (identifier "local_64") (; ";")) (declaration "undefined1 local_60 [64];" (type_identifier "undefined1") (array_declarator "local_60 [64]" (identifier "local_60") ([ "[") (number_literal "64") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1babb;" (assignment_expression "uStack_14 = 0x1babb" (identifier "uStack_14") (= "=") (number_literal "0x1babb")) (; ";")) (expression_statement "iVar9 = param_1[7];" (assignment_expression "iVar9 = param_1[7]" (identifier "iVar9") (= "=") (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]"))) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar3 = param_1[0xc];" (assignment_expression "iVar3 = param_1[0xc]" (identifier "iVar3") (= "=") (subscript_expression "param_1[0xc]" (identifier "param_1") ([ "[") (number_literal "0xc") (] "]"))) (; ";")) (if_statement "if (param_1[9] <= param_1[0xc]) {\n    iVar3 = param_1[9];\n  }" (if "if") (parenthesized_expression "(param_1[9] <= param_1[0xc])" (( "(") (binary_expression "param_1[9] <= param_1[0xc]" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (<= "<=") (subscript_expression "param_1[0xc]" (identifier "param_1") ([ "[") (number_literal "0xc") (] "]"))) () ")")) (compound_statement "{\n    iVar3 = param_1[9];\n  }" ({ "{") (expression_statement "iVar3 = param_1[9];" (assignment_expression "iVar3 = param_1[9]" (identifier "iVar3") (= "=") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]"))) (; ";")) (} "}"))) (if_statement "if (iVar9 < iVar3) {\n    iVar7 = iVar9;\nLAB_0001bb00:\n    do {\n      iVar9 = param_1[4];\n      iVar2 = param_1[5];\n      iVar6 = iVar3 - iVar7;\n      if (param_1[0x10] == 0) {\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }\n      else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }\nLAB_0001bb26:\n      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);\n      if (iVar6 - 1U < 0xfffffffe) {\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar9 = iVar7 + 1;\n      *(uint *)(iVar2 + iVar7 * 4) = local_64;\n      iVar8 = iVar7 + iVar6;\n      if (iVar8 <= iVar9) {\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }\n      memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);\n      iVar7 = iVar8;\n      iVar9 = iVar8;\n    } while (iVar8 < iVar3);\n  }" (if "if") (parenthesized_expression "(iVar9 < iVar3)" (( "(") (binary_expression "iVar9 < iVar3" (identifier "iVar9") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n    iVar7 = iVar9;\nLAB_0001bb00:\n    do {\n      iVar9 = param_1[4];\n      iVar2 = param_1[5];\n      iVar6 = iVar3 - iVar7;\n      if (param_1[0x10] == 0) {\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }\n      else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }\nLAB_0001bb26:\n      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);\n      if (iVar6 - 1U < 0xfffffffe) {\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar9 = iVar7 + 1;\n      *(uint *)(iVar2 + iVar7 * 4) = local_64;\n      iVar8 = iVar7 + iVar6;\n      if (iVar8 <= iVar9) {\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }\n      memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);\n      iVar7 = iVar8;\n      iVar9 = iVar8;\n    } while (iVar8 < iVar3);\n  }" ({ "{") (expression_statement "iVar7 = iVar9;" (assignment_expression "iVar7 = iVar9" (identifier "iVar7") (= "=") (identifier "iVar9")) (; ";")) (labeled_statement "LAB_0001bb00:\n    do {\n      iVar9 = param_1[4];\n      iVar2 = param_1[5];\n      iVar6 = iVar3 - iVar7;\n      if (param_1[0x10] == 0) {\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }\n      else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }\nLAB_0001bb26:\n      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);\n      if (iVar6 - 1U < 0xfffffffe) {\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar9 = iVar7 + 1;\n      *(uint *)(iVar2 + iVar7 * 4) = local_64;\n      iVar8 = iVar7 + iVar6;\n      if (iVar8 <= iVar9) {\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }\n      memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);\n      iVar7 = iVar8;\n      iVar9 = iVar8;\n    } while (iVar8 < iVar3);" (statement_identifier "LAB_0001bb00") (: ":") (do_statement "do {\n      iVar9 = param_1[4];\n      iVar2 = param_1[5];\n      iVar6 = iVar3 - iVar7;\n      if (param_1[0x10] == 0) {\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }\n      else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }\nLAB_0001bb26:\n      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);\n      if (iVar6 - 1U < 0xfffffffe) {\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar9 = iVar7 + 1;\n      *(uint *)(iVar2 + iVar7 * 4) = local_64;\n      iVar8 = iVar7 + iVar6;\n      if (iVar8 <= iVar9) {\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }\n      memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);\n      iVar7 = iVar8;\n      iVar9 = iVar8;\n    } while (iVar8 < iVar3);" (do "do") (compound_statement "{\n      iVar9 = param_1[4];\n      iVar2 = param_1[5];\n      iVar6 = iVar3 - iVar7;\n      if (param_1[0x10] == 0) {\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }\n      else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }\nLAB_0001bb26:\n      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);\n      if (iVar6 - 1U < 0xfffffffe) {\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar9 = iVar7 + 1;\n      *(uint *)(iVar2 + iVar7 * 4) = local_64;\n      iVar8 = iVar7 + iVar6;\n      if (iVar8 <= iVar9) {\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }\n      memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);\n      iVar7 = iVar8;\n      iVar9 = iVar8;\n    }" ({ "{") (expression_statement "iVar9 = param_1[4];" (assignment_expression "iVar9 = param_1[4]" (identifier "iVar9") (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "iVar2 = param_1[5];" (assignment_expression "iVar2 = param_1[5]" (identifier "iVar2") (= "=") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "iVar6 = iVar3 - iVar7;" (assignment_expression "iVar6 = iVar3 - iVar7" (identifier "iVar6") (= "=") (binary_expression "iVar3 - iVar7" (identifier "iVar3") (- "-") (identifier "iVar7"))) (; ";")) (if_statement "if (param_1[0x10] == 0) {\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }\n      else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }" (if "if") (parenthesized_expression "(param_1[0x10] == 0)" (( "(") (binary_expression "param_1[0x10] == 0" (subscript_expression "param_1[0x10]" (identifier "param_1") ([ "[") (number_literal "0x10") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);\n      }" ({ "{") (expression_statement "puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);" (assignment_expression "puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1)" (identifier "puVar4") (= "=") (cast_expression "(undefined1 *)(param_1[6] + iVar7 + *param_1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[6] + iVar7 + *param_1)" (( "(") (binary_expression "param_1[6] + iVar7 + *param_1" (binary_expression "param_1[6] + iVar7" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (+ "+") (identifier "iVar7")) (+ "+") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")))) (; ";")) (} "}")) (else_clause "else {\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }" (else "else") (compound_statement "{\n        if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }\n        puVar4 = local_60;\n      }" ({ "{") (if_statement "if ((0 < param_1[0x14]) && (0 < iVar6)) {\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }" (if "if") (parenthesized_expression "((0 < param_1[0x14]) && (0 < iVar6))" (( "(") (binary_expression "(0 < param_1[0x14]) && (0 < iVar6)" (parenthesized_expression "(0 < param_1[0x14])" (( "(") (binary_expression "0 < param_1[0x14]" (number_literal "0") (< "<") (subscript_expression "param_1[0x14]" (identifier "param_1") ([ "[") (number_literal "0x14") (] "]"))) () ")")) (&& "&&") (parenthesized_expression "(0 < iVar6)" (( "(") (binary_expression "0 < iVar6" (number_literal "0") (< "<") (identifier "iVar6")) () ")"))) () ")")) (compound_statement "{\n          local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));\n          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];\n          iVar8 = iVar6;\n          if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }\n          if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }\n        }" ({ "{") (expression_statement "local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));" (assignment_expression "local_60[0] = *(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]))" (subscript_expression "local_60[0]" (identifier "local_60") ([ "[") (number_literal "0") (] "]")) (= "=") (pointer_expression "*(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]))" (* "*") (cast_expression "(undefined1 *)\n                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]))" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]))" (( "(") (binary_expression "param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6])" (subscript_expression "param_1[0x10]" (identifier "param_1") ([ "[") (number_literal "0x10") (] "]")) (+ "+") (binary_expression "(uint)*(byte *)(*param_1 + iVar7 + param_1[6])" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(*param_1 + iVar7 + param_1[6])" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + iVar7 + param_1[6])" (( "(") (binary_expression "*param_1 + iVar7 + param_1[6]" (binary_expression "*param_1 + iVar7" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (identifier "iVar7")) (+ "+") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))) () ")"))))) () ")"))))) (; ";")) (expression_statement "*(undefined1 *)(param_1[1] + iVar7) = local_60[0];" (assignment_expression "*(undefined1 *)(param_1[1] + iVar7) = local_60[0]" (pointer_expression "*(undefined1 *)(param_1[1] + iVar7)" (* "*") (cast_expression "(undefined1 *)(param_1[1] + iVar7)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[1] + iVar7)" (( "(") (binary_expression "param_1[1] + iVar7" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (+ "+") (identifier "iVar7")) () ")")))) (= "=") (subscript_expression "local_60[0]" (identifier "local_60") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "iVar8 = iVar6;" (assignment_expression "iVar8 = iVar6" (identifier "iVar8") (= "=") (identifier "iVar6")) (; ";")) (if_statement "if (param_1[0x14] <= iVar6) {\n            iVar8 = param_1[0x14];\n          }" (if "if") (parenthesized_expression "(param_1[0x14] <= iVar6)" (( "(") (binary_expression "param_1[0x14] <= iVar6" (subscript_expression "param_1[0x14]" (identifier "param_1") ([ "[") (number_literal "0x14") (] "]")) (<= "<=") (identifier "iVar6")) () ")")) (compound_statement "{\n            iVar8 = param_1[0x14];\n          }" ({ "{") (expression_statement "iVar8 = param_1[0x14];" (assignment_expression "iVar8 = param_1[0x14]" (identifier "iVar8") (= "=") (subscript_expression "param_1[0x14]" (identifier "param_1") ([ "[") (number_literal "0x14") (] "]"))) (; ";")) (} "}"))) (if_statement "if (1 < iVar8) {\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }" (if "if") (parenthesized_expression "(1 < iVar8)" (( "(") (binary_expression "1 < iVar8" (number_literal "1") (< "<") (identifier "iVar8")) () ")")) (compound_statement "{\n            iVar8 = 1;\n            puVar4 = local_60;\n            do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);\n            goto LAB_0001bb26;\n          }" ({ "{") (expression_statement "iVar8 = 1;" (assignment_expression "iVar8 = 1" (identifier "iVar8") (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar4 = local_60;" (assignment_expression "puVar4 = local_60" (identifier "puVar4") (= "=") (identifier "local_60")) (; ";")) (do_statement "do {\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            } while (iVar8 < iVar5);" (do "do") (compound_statement "{\n              uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;\n              puVar4[iVar8] = uVar1;\n              iVar8 = iVar8 + 1;\n              iVar5 = iVar6;\n              if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }\n            }" ({ "{") (expression_statement "uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));" (assignment_expression "uVar1 = *(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]))" (identifier "uVar1") (= "=") (pointer_expression "*(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]))" (* "*") (cast_expression "(undefined1 *)\n                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]))" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]))" (( "(") (binary_expression "param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6])" (subscript_expression "param_1[0x10]" (identifier "param_1") ([ "[") (number_literal "0x10") (] "]")) (+ "+") (binary_expression "(uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6])" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(*param_1 + iVar7 + iVar8 + param_1[6])" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + iVar7 + iVar8 + param_1[6])" (( "(") (binary_expression "*param_1 + iVar7 + iVar8 + param_1[6]" (binary_expression "*param_1 + iVar7 + iVar8" (binary_expression "*param_1 + iVar7" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (identifier "iVar7")) (+ "+") (identifier "iVar8")) (+ "+") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))) () ")"))))) () ")"))))) (; ";")) (expression_statement "*(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;" (assignment_expression "*(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1" (pointer_expression "*(undefined1 *)(param_1[1] + iVar7 + iVar8)" (* "*") (cast_expression "(undefined1 *)(param_1[1] + iVar7 + iVar8)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[1] + iVar7 + iVar8)" (( "(") (binary_expression "param_1[1] + iVar7 + iVar8" (binary_expression "param_1[1] + iVar7" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (+ "+") (identifier "iVar7")) (+ "+") (identifier "iVar8")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "puVar4[iVar8] = uVar1;" (assignment_expression "puVar4[iVar8] = uVar1" (subscript_expression "puVar4[iVar8]" (identifier "puVar4") ([ "[") (identifier "iVar8") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar5 = iVar6;" (assignment_expression "iVar5 = iVar6" (identifier "iVar5") (= "=") (identifier "iVar6")) (; ";")) (if_statement "if (param_1[0x14] <= iVar6) {\n                iVar5 = param_1[0x14];\n              }" (if "if") (parenthesized_expression "(param_1[0x14] <= iVar6)" (( "(") (binary_expression "param_1[0x14] <= iVar6" (subscript_expression "param_1[0x14]" (identifier "param_1") ([ "[") (number_literal "0x14") (] "]")) (<= "<=") (identifier "iVar6")) () ")")) (compound_statement "{\n                iVar5 = param_1[0x14];\n              }" ({ "{") (expression_statement "iVar5 = param_1[0x14];" (assignment_expression "iVar5 = param_1[0x14]" (identifier "iVar5") (= "=") (subscript_expression "param_1[0x14]" (identifier "param_1") ([ "[") (number_literal "0x14") (] "]"))) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(iVar8 < iVar5)" (( "(") (binary_expression "iVar8 < iVar5" (identifier "iVar8") (< "<") (identifier "iVar5")) () ")")) (; ";")) (goto_statement "goto LAB_0001bb26;" (goto "goto") (statement_identifier "LAB_0001bb26") (; ";")) (} "}"))) (} "}"))) (expression_statement "puVar4 = local_60;" (assignment_expression "puVar4 = local_60" (identifier "puVar4") (= "=") (identifier "local_60")) (; ";")) (} "}")))) (labeled_statement "LAB_0001bb26:\n      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);" (statement_identifier "LAB_0001bb26") (: ":") (expression_statement "iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);" (assignment_expression "iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4)" (identifier "iVar6") (= "=") (call_expression "FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4)" (identifier "FUN_0001b230") (argument_list "(&local_64,puVar4,iVar6,param_1 + 4)" (( "(") (pointer_expression "&local_64" (& "&") (identifier "local_64")) (, ",") (identifier "puVar4") (, ",") (identifier "iVar6") (, ",") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (; ";"))) (if_statement "if (iVar6 - 1U < 0xfffffffe) {\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }\n      else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }" (if "if") (parenthesized_expression "(iVar6 - 1U < 0xfffffffe)" (( "(") (binary_expression "iVar6 - 1U < 0xfffffffe" (binary_expression "iVar6 - 1U" (identifier "iVar6") (- "-") (number_literal "1U")) (< "<") (number_literal "0xfffffffe")) () ")")) (compound_statement "{\n        if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }\n      }" ({ "{") (if_statement "if (iVar6 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }" (if "if") (parenthesized_expression "(iVar6 == -2)" (( "(") (binary_expression "iVar6 == -2" (identifier "iVar6") (== "==") (number_literal "-2")) () ")")) (compound_statement "{\n          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;\n          param_1[4] = iVar9;\n          param_1[5] = iVar2;\n          iVar9 = iVar7;\n          break;\n        }" ({ "{") (if_statement "if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;" (if "if") (parenthesized_expression "(param_1[0xc] <= param_1[9])" (( "(") (binary_expression "param_1[0xc] <= param_1[9]" (subscript_expression "param_1[0xc]" (identifier "param_1") ([ "[") (number_literal "0xc") (] "]")) (<= "<=") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]"))) () ")")) (goto_statement "goto LAB_0001bbb8;" (goto "goto") (statement_identifier "LAB_0001bbb8") (; ";"))) (expression_statement "param_1[4] = iVar9;" (assignment_expression "param_1[4] = iVar9" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "iVar9")) (; ";")) (expression_statement "param_1[5] = iVar2;" (assignment_expression "param_1[5] = iVar2" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "iVar9 = iVar7;" (assignment_expression "iVar9 = iVar7" (identifier "iVar9") (= "=") (identifier "iVar7")) (; ";")) (break_statement "break;" (break "break") (; ";")) (} "}"))) (} "}")) (else_clause "else {\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }" (else "else") (compound_statement "{\nLAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar9;\n        iVar6 = 1;\n        param_1[5] = iVar2;\n      }" ({ "{") (labeled_statement "LAB_0001bbb8:\n        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);" (statement_identifier "LAB_0001bbb8") (: ":") (expression_statement "local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);" (assignment_expression "local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6])" (identifier "local_64") (= "=") (binary_expression "(uint)*(byte *)(*param_1 + iVar7 + param_1[6])" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(*param_1 + iVar7 + param_1[6])" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + iVar7 + param_1[6])" (( "(") (binary_expression "*param_1 + iVar7 + param_1[6]" (binary_expression "*param_1 + iVar7" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (identifier "iVar7")) (+ "+") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))) () ")"))))) (; ";"))) (if_statement "if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }" (if "if") (parenthesized_expression "(param_1[0x10] != 0)" (( "(") (binary_expression "param_1[0x10] != 0" (subscript_expression "param_1[0x10]" (identifier "param_1") ([ "[") (number_literal "0x10") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }" ({ "{") (expression_statement "local_64 = (uint)*(byte *)(param_1[0x10] + local_64);" (assignment_expression "local_64 = (uint)*(byte *)(param_1[0x10] + local_64)" (identifier "local_64") (= "=") (binary_expression "(uint)*(byte *)(param_1[0x10] + local_64)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(param_1[0x10] + local_64)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[0x10] + local_64)" (( "(") (binary_expression "param_1[0x10] + local_64" (subscript_expression "param_1[0x10]" (identifier "param_1") ([ "[") (number_literal "0x10") (] "]")) (+ "+") (identifier "local_64")) () ")"))))) (; ";")) (} "}"))) (expression_statement "param_1[4] = iVar9;" (assignment_expression "param_1[4] = iVar9" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "iVar9")) (; ";")) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" (identifier "iVar6") (= "=") (number_literal "1")) (; ";")) (expression_statement "param_1[5] = iVar2;" (assignment_expression "param_1[5] = iVar2" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (} "}")))) (expression_statement "iVar2 = param_1[2];" (assignment_expression "iVar2 = param_1[2]" (identifier "iVar2") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "iVar9 = iVar7 + 1;" (assignment_expression "iVar9 = iVar7 + 1" (identifier "iVar9") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(uint *)(iVar2 + iVar7 * 4) = local_64;" (assignment_expression "*(uint *)(iVar2 + iVar7 * 4) = local_64" (pointer_expression "*(uint *)(iVar2 + iVar7 * 4)" (* "*") (cast_expression "(uint *)(iVar2 + iVar7 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + iVar7 * 4)" (( "(") (binary_expression "iVar2 + iVar7 * 4" (identifier "iVar2") (+ "+") (binary_expression "iVar7 * 4" (identifier "iVar7") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "local_64")) (; ";")) (expression_statement "iVar8 = iVar7 + iVar6;" (assignment_expression "iVar8 = iVar7 + iVar6" (identifier "iVar8") (= "=") (binary_expression "iVar7 + iVar6" (identifier "iVar7") (+ "+") (identifier "iVar6"))) (; ";")) (if_statement "if (iVar8 <= iVar9) {\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }" (if "if") (parenthesized_expression "(iVar8 <= iVar9)" (( "(") (binary_expression "iVar8 <= iVar9" (identifier "iVar8") (<= "<=") (identifier "iVar9")) () ")")) (compound_statement "{\n        iVar7 = iVar9;\n        if (iVar3 <= iVar9) break;\n        goto LAB_0001bb00;\n      }" ({ "{") (expression_statement "iVar7 = iVar9;" (assignment_expression "iVar7 = iVar9" (identifier "iVar7") (= "=") (identifier "iVar9")) (; ";")) (if_statement "if (iVar3 <= iVar9) break;" (if "if") (parenthesized_expression "(iVar3 <= iVar9)" (( "(") (binary_expression "iVar3 <= iVar9" (identifier "iVar3") (<= "<=") (identifier "iVar9")) () ")")) (break_statement "break;" (break "break") (; ";"))) (goto_statement "goto LAB_0001bb00;" (goto "goto") (statement_identifier "LAB_0001bb00") (; ";")) (} "}"))) (expression_statement "memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);" (call_expression "memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4)" (identifier "memset") (argument_list "((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4)" (( "(") (cast_expression "(void *)(iVar2 + 4 + iVar7 * 4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4 + iVar7 * 4)" (( "(") (binary_expression "iVar2 + 4 + iVar7 * 4" (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) (+ "+") (binary_expression "iVar7 * 4" (identifier "iVar7") (* "*") (number_literal "4"))) () ")"))) (, ",") (number_literal "0xff") (, ",") (binary_expression "iVar6 * 4 - 4" (binary_expression "iVar6 * 4" (identifier "iVar6") (* "*") (number_literal "4")) (- "-") (number_literal "4")) () ")"))) (; ";")) (expression_statement "iVar7 = iVar8;" (assignment_expression "iVar7 = iVar8" (identifier "iVar7") (= "=") (identifier "iVar8")) (; ";")) (expression_statement "iVar9 = iVar8;" (assignment_expression "iVar9 = iVar8" (identifier "iVar9") (= "=") (identifier "iVar8")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar8 < iVar3)" (( "(") (binary_expression "iVar8 < iVar3" (identifier "iVar8") (< "<") (identifier "iVar3")) () ")")) (; ";"))) (} "}"))) (expression_statement "param_1[7] = iVar9;" (assignment_expression "param_1[7] = iVar9" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (= "=") (identifier "iVar9")) (; ";")) (expression_statement "param_1[8] = iVar9;" (assignment_expression "param_1[8] = iVar9" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (= "=") (identifier "iVar9")) (; ";")) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002def0();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_0002def0();\n  }" ({ "{") (expression_statement "FUN_0002def0();" (call_expression "FUN_0002def0()" (identifier "FUN_0002def0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 function_1(type_1 *pstr)

{
  int var_10;
  type_2 uVar2;
  type_3 aVar3;
  type_4 *var_9;
  int var_3;
  type_2 *s;
  size_t sVar6;
  size_t var_7;
  int var_4;
  int var_5;
  int var_2;
  int var_1;
  type_5 wc;
  type_2 buf [64];
  
  var_2 = pstr->valid_len;
  var_10 = *(int *)(var_1 + 0x14);
  var_3 = pstr->len;
  if (pstr->bufs_len <= pstr->len) {
    var_3 = pstr->bufs_len;
  }
  if (var_2 < var_3) {
    var_4 = var_2;
LAB_0001bb00:
    do {
      var_2 = (pstr->cur_state).__count;
      aVar3 = (pstr->cur_state).__value;
      var_7 = var_3 - var_4;
      if (pstr->trans == (type_2 *)0x0) {
        s = pstr->raw_mbs + pstr->raw_mbs_idx + var_4;
      }
      else {
        if ((0 < pstr->mb_cur_max) && (0 < (int)var_7)) {
          buf[0] = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + var_4]];
          pstr->mbs[var_4] = buf[0];
          sVar6 = var_7;
          if (pstr->mb_cur_max <= (int)var_7) {
            sVar6 = pstr->mb_cur_max;
          }
          if (1 < (int)sVar6) {
            var_5 = 1;
            s = buf;
            do {
              uVar2 = pstr->trans[pstr->raw_mbs[pstr->raw_mbs_idx + var_5 + var_4]];
              pstr->mbs[var_5 + var_4] = uVar2;
              s[var_5] = uVar2;
              var_5 = var_5 + 1;
              sVar6 = var_7;
              if (pstr->mb_cur_max <= (int)var_7) {
                sVar6 = pstr->mb_cur_max;
              }
            } while (var_5 < (int)sVar6);
            goto LAB_0001bb26;
          }
        }
        s = buf;
      }
LAB_0001bb26:
      var_7 = var_6(&wc,(char *)s,var_7,&pstr->cur_state);
      if (var_7 - 1 < 0xfffffffe) {
        if (var_7 == 0xfffffffe) {
          if (pstr->len <= pstr->bufs_len) goto LAB_0001bbb8;
          (pstr->cur_state).__count = var_2;
          (pstr->cur_state).__value = aVar3;
          var_2 = var_4;
          break;
        }
      }
      else {
LAB_0001bbb8:
        wc = (type_5)pstr->raw_mbs[pstr->raw_mbs_idx + var_4];
        if (pstr->trans != (type_2 *)0x0) {
          wc = (type_5)pstr->trans[wc];
        }
        (pstr->cur_state).__count = var_2;
        var_7 = 1;
        (pstr->cur_state).__value = aVar3;
      }
      var_9 = pstr->wcs;
      var_2 = var_4 + 1;
      var_9[var_4] = wc;
      var_5 = var_4 + var_7;
      if (var_5 <= var_2) {
        var_4 = var_2;
        if (var_3 <= var_2) break;
        goto LAB_0001bb00;
      }
      var_8(var_9 + var_4 + 1,0xff,var_7 * 4 - 4);
      var_4 = var_5;
      var_2 = var_5;
    } while (var_5 < var_3);
  }
  pstr->valid_len = var_2;
  pstr->valid_raw_len = var_2;
  if (var_10 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_11();
  }
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 MASKED(int *param_1)

{
  undefined1 uVar1;
  int iVar2;
  int iVar3;
  undefined1 *puVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  int in_GS_OFFSET;
  uint local_64;
  undefined1 local_60 [64];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1babb;
  iVar9 = param_1[7];
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar3 = param_1[0xc];
  if (param_1[9] <= param_1[0xc]) {
    iVar3 = param_1[9];
  }
  if (iVar9 < iVar3) {
    iVar7 = iVar9;
LAB_0001bb00:
    do {
      iVar9 = param_1[4];
      iVar2 = param_1[5];
      iVar6 = iVar3 - iVar7;
      if (param_1[0x10] == 0) {
        puVar4 = (undefined1 *)(param_1[6] + iVar7 + *param_1);
      }
      else {
        if ((0 < param_1[0x14]) && (0 < iVar6)) {
          local_60[0] = *(undefined1 *)
                         (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + param_1[6]));
          *(undefined1 *)(param_1[1] + iVar7) = local_60[0];
          iVar8 = iVar6;
          if (param_1[0x14] <= iVar6) {
            iVar8 = param_1[0x14];
          }
          if (1 < iVar8) {
            iVar8 = 1;
            puVar4 = local_60;
            do {
              uVar1 = *(undefined1 *)
                       (param_1[0x10] + (uint)*(byte *)(*param_1 + iVar7 + iVar8 + param_1[6]));
              *(undefined1 *)(param_1[1] + iVar7 + iVar8) = uVar1;
              puVar4[iVar8] = uVar1;
              iVar8 = iVar8 + 1;
              iVar5 = iVar6;
              if (param_1[0x14] <= iVar6) {
                iVar5 = param_1[0x14];
              }
            } while (iVar8 < iVar5);
            goto LAB_0001bb26;
          }
        }
        puVar4 = local_60;
      }
LAB_0001bb26:
      iVar6 = FUN_0001b230(&local_64,puVar4,iVar6,param_1 + 4);
      if (iVar6 - 1U < 0xfffffffe) {
        if (iVar6 == -2) {
          if (param_1[0xc] <= param_1[9]) goto LAB_0001bbb8;
          param_1[4] = iVar9;
          param_1[5] = iVar2;
          iVar9 = iVar7;
          break;
        }
      }
      else {
LAB_0001bbb8:
        local_64 = (uint)*(byte *)(*param_1 + iVar7 + param_1[6]);
        if (param_1[0x10] != 0) {
          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);
        }
        param_1[4] = iVar9;
        iVar6 = 1;
        param_1[5] = iVar2;
      }
      iVar2 = param_1[2];
      iVar9 = iVar7 + 1;
      *(uint *)(iVar2 + iVar7 * 4) = local_64;
      iVar8 = iVar7 + iVar6;
      if (iVar8 <= iVar9) {
        iVar7 = iVar9;
        if (iVar3 <= iVar9) break;
        goto LAB_0001bb00;
      }
      memset((void *)(iVar2 + 4 + iVar7 * 4),0xff,iVar6 * 4 - 4);
      iVar7 = iVar8;
      iVar9 = iVar8;
    } while (iVar8 < iVar3);
  }
  param_1[7] = iVar9;
  param_1[8] = iVar9;
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0002def0();
  }
  return;
}

