
/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

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;
  wint_t *pwVar6;
  uchar *s;
  size_t sVar7;
  size_t sVar8;
  uchar *puVar9;
  int iVar10;
  int iVar11;
  int iVar12;
  int in_GS_OFFSET;
  wchar_t wc;
  uchar buf [64];
  
  iVar12 = pstr->valid_len;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar5 = pstr->len;
  if (pstr->bufs_len <= pstr->len) {
    iVar5 = pstr->bufs_len;
  }
  if (iVar12 < iVar5) {
    iVar10 = iVar12;
LAB_00016d00:
    do {
      iVar12 = (pstr->cur_state).__count;
      aVar3 = (pstr->cur_state).__value;
      puVar9 = pstr->trans;
      sVar8 = iVar5 - iVar10;
      if (puVar9 == (uchar *)0x0) {
        s = pstr->raw_mbs + pstr->raw_mbs_idx + iVar10;
      }
      else {
        s = buf;
        if (0 < pstr->mb_cur_max) {
          iVar11 = 0;
          s = buf;
          if (0 < (int)sVar8) {
            while( true ) {
              uVar2 = puVar9[pstr->raw_mbs[pstr->raw_mbs_idx + iVar11 + iVar10]];
              pstr->mbs[iVar11 + iVar10] = uVar2;
              s[iVar11] = uVar2;
              iVar11 = iVar11 + 1;
              sVar7 = sVar8;
              if (pstr->mb_cur_max <= (int)sVar8) {
                sVar7 = pstr->mb_cur_max;
              }
              if ((int)sVar7 <= iVar11) break;
              puVar9 = pstr->trans;
            }
          }
        }
      }
      sVar8 = rpl_mbrtowc(&wc,(char *)s,sVar8,&pstr->cur_state);
      if (sVar8 - 1 < 0xfffffffe) {
        if (sVar8 == 0xfffffffe) {
          if (pstr->len <= pstr->bufs_len) goto LAB_00016db0;
          (pstr->cur_state).__count = iVar12;
          (pstr->cur_state).__value = aVar3;
          iVar12 = iVar10;
          break;
        }
      }
      else {
LAB_00016db0:
        wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar10];
        if (pstr->trans != (uchar *)0x0) {
          wc = (wchar_t)pstr->trans[wc];
        }
        (pstr->cur_state).__count = iVar12;
        sVar8 = 1;
        (pstr->cur_state).__value = aVar3;
      }
      pwVar4 = pstr->wcs;
      iVar12 = iVar10 + 1;
      pwVar4[iVar10] = wc;
      iVar11 = iVar10 + sVar8;
      if (iVar11 <= iVar12) {
        iVar10 = iVar12;
        if (iVar5 <= iVar12) break;
        goto LAB_00016d00;
      }
      pwVar6 = pwVar4 + iVar10 + 1;
      do {
        *pwVar6 = 0xffffffff;
        pwVar6 = pwVar6 + 1;
      } while (pwVar4 + iVar11 != pwVar6);
      iVar10 = iVar11;
      iVar12 = iVar11;
    } while (iVar11 < iVar5);
  }
  pstr->valid_len = iVar12;
  pstr->valid_raw_len = iVar12;
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

void __regparm3 FUN_00016cb0(int *param_1)

{
  undefined1 uVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  undefined4 *puVar5;
  int iVar6;
  undefined1 *puVar7;
  int iVar8;
  int iVar9;
  int iVar10;
  int in_GS_OFFSET;
  uint local_64;
  undefined1 local_60 [64];
  int local_20;
  
  iVar10 = 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 (iVar10 < iVar3) {
    iVar9 = iVar10;
LAB_00016d00:
    do {
      iVar10 = param_1[4];
      iVar2 = param_1[5];
      iVar4 = param_1[0x10];
      iVar8 = iVar3 - iVar9;
      if (iVar4 == 0) {
        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);
      }
      else {
        puVar7 = local_60;
        if (0 < param_1[0x14]) {
          iVar6 = 0;
          puVar7 = local_60;
          if (0 < iVar8) {
            while( true ) {
              uVar1 = *(undefined1 *)
                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));
              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;
              puVar7[iVar6] = uVar1;
              iVar6 = iVar6 + 1;
              iVar4 = iVar8;
              if (param_1[0x14] <= iVar8) {
                iVar4 = param_1[0x14];
              }
              if (iVar4 <= iVar6) break;
              iVar4 = param_1[0x10];
            }
          }
        }
      }
      iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);
      if (iVar4 - 1U < 0xfffffffe) {
        if (iVar4 == -2) {
          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;
          param_1[4] = iVar10;
          param_1[5] = iVar2;
          iVar10 = iVar9;
          break;
        }
      }
      else {
LAB_00016db0:
        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);
        if (param_1[0x10] != 0) {
          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);
        }
        param_1[4] = iVar10;
        iVar4 = 1;
        param_1[5] = iVar2;
      }
      iVar2 = param_1[2];
      iVar10 = iVar9 + 1;
      *(uint *)(iVar2 + iVar9 * 4) = local_64;
      iVar4 = iVar9 + iVar4;
      if (iVar4 <= iVar10) {
        iVar9 = iVar10;
        if (iVar3 <= iVar10) break;
        goto LAB_00016d00;
      }
      puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);
      do {
        *puVar5 = 0xffffffff;
        puVar5 = puVar5 + 1;
      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);
      iVar9 = iVar4;
      iVar10 = iVar4;
    } while (iVar4 < iVar3);
  }
  param_1[7] = iVar10;
  param_1[8] = iVar10;
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00024b20();
  }
  return;
}


CALL 0x000243da
ADD ECX,0x1634b
PUSH EBP
PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
SUB ESP,0x7c
MOV ESI,dword ptr [EDI + 0x1c]
MOV dword ptr [ESP + 0x14],ECX
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 + 0x10],EAX
CMP EAX,ESI
JLE 0x00016d8f
LEA EAX,[EDI + 0x10]
MOV dword ptr [ESP + 0x18],EAX
LEA EAX,[ESP + 0x28]
MOV dword ptr [ESP + 0x1c],EAX
LEA ESI,[ESI]
MOV EBX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EDI + 0x10]
MOV EDX,dword ptr [EDI + 0x14]
MOV EBP,dword ptr [EDI + 0x40]
SUB EBX,ESI
MOV dword ptr [ESP + 0x8],EAX
MOV dword ptr [ESP + 0xc],EDX
TEST EBP,EBP
JNZ 0x00016e00
MOV ECX,dword ptr [EDI + 0x18]
ADD ECX,ESI
ADD ECX,dword ptr [EDI]
PUSH dword ptr [ESP + 0x18]
PUSH EBX
PUSH ECX
PUSH dword ptr [ESP + 0x28]
MOV EBX,dword ptr [ESP + 0x24]
CALL 0x000163d0
ADD ESP,0x10
LEA EDX,[EAX + -0x1]
CMP EDX,-0x3
JA 0x00016db0
MOV ECX,dword ptr [ESP + 0x28]
CMP EAX,-0x2
JZ 0x00016e58
MOV EDX,dword ptr [EDI + 0x8]
LEA EBX,[ESI + 0x1]
LEA EBP,[ESI*0x4 + 0x0]
MOV dword ptr [EDX + ESI*0x4],ECX
ADD ESI,EAX
CMP EBX,ESI
JGE 0x00016de8
LEA EAX,[EDX + EBP*0x1 + 0x4]
LEA EDX,[EDX + ESI*0x4]
LEA ESI,[ESI]
MOV dword ptr [EAX],0xffffffff
ADD EAX,0x4
CMP EDX,EAX
JNZ 0x00016d78
CMP dword ptr [ESP + 0x10],ESI
JG 0x00016d00
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 0x00016e84
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 ECX,byte ptr [EAX]
MOV EAX,dword ptr [EDI + 0x40]
MOV dword ptr [ESP + 0x28],ECX
TEST EAX,EAX
JNZ 0x00016e77
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [ESP + 0xc]
MOV dword ptr [EDI + 0x10],EAX
MOV EAX,0x1
MOV dword ptr [EDI + 0x14],EDX
JMP 0x00016d51
MOV ESI,EBX
CMP dword ptr [ESP + 0x10],ESI
JG 0x00016d00
JMP 0x00016d8f
MOV EAX,dword ptr [EDI + 0x50]
LEA ECX,[ESP + 0x2c]
TEST EAX,EAX
JLE 0x00016d26
XOR EAX,EAX
LEA ECX,[ESP + 0x2c]
TEST EBX,EBX
JG 0x00016e23
JMP 0x00016d26
MOV EBP,dword ptr [EDI + 0x40]
MOV EDX,dword ptr [EDI]
ADD EDX,ESI
ADD EDX,EAX
ADD EDX,dword ptr [EDI + 0x18]
MOVZX EDX,byte ptr [EDX]
MOVZX EDX,byte ptr [EBP + EDX*0x1]
MOV EBP,dword ptr [EDI + 0x4]
ADD EBP,ESI
MOV byte ptr [EBP + EAX*0x1],DL
MOV byte ptr [ECX + EAX*0x1],DL
ADD EAX,0x1
MOV EDX,EBX
CMP dword ptr [EDI + 0x50],EBX
CMOVLE EDX,dword ptr [EDI + 0x50]
CMP EDX,EAX
JG 0x00016e20
JMP 0x00016d26
MOV EAX,dword ptr [EDI + 0x30]
CMP dword ptr [EDI + 0x24],EAX
JGE 0x00016db0
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [ESP + 0xc]
MOV dword ptr [EDI + 0x10],EAX
MOV dword ptr [EDI + 0x14],EDX
JMP 0x00016d8f
MOVZX ECX,byte ptr [EAX + ECX*0x1]
MOV dword ptr [ESP + 0x28],ECX
JMP 0x00016dc9
CALL 0x00024b20
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nvoid __regparm3 FUN_00016cb0(int *param_1)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined1 *puVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  uint local_64;\n  undefined1 local_60 [64];\n  int local_20;\n  \n  iVar10 = 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 (iVar10 < iVar3) {\n    iVar9 = iVar10;\nLAB_00016d00:\n    do {\n      iVar10 = param_1[4];\n      iVar2 = param_1[5];\n      iVar4 = param_1[0x10];\n      iVar8 = iVar3 - iVar9;\n      if (iVar4 == 0) {\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }\n      else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }\n      iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);\n      if (iVar4 - 1U < 0xfffffffe) {\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar10 = iVar9 + 1;\n      *(uint *)(iVar2 + iVar9 * 4) = local_64;\n      iVar4 = iVar9 + iVar4;\n      if (iVar4 <= iVar10) {\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }\n      puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);\n      do {\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);\n      iVar9 = iVar4;\n      iVar10 = iVar4;\n    } while (iVar4 < iVar3);\n  }\n  param_1[7] = iVar10;\n  param_1[8] = iVar10;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00024b20();\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00016cb0(int *param_1)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined1 *puVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  uint local_64;\n  undefined1 local_60 [64];\n  int local_20;\n  \n  iVar10 = 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 (iVar10 < iVar3) {\n    iVar9 = iVar10;\nLAB_00016d00:\n    do {\n      iVar10 = param_1[4];\n      iVar2 = param_1[5];\n      iVar4 = param_1[0x10];\n      iVar8 = iVar3 - iVar9;\n      if (iVar4 == 0) {\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }\n      else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }\n      iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);\n      if (iVar4 - 1U < 0xfffffffe) {\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar10 = iVar9 + 1;\n      *(uint *)(iVar2 + iVar9 * 4) = local_64;\n      iVar4 = iVar9 + iVar4;\n      if (iVar4 <= iVar10) {\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }\n      puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);\n      do {\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);\n      iVar9 = iVar4;\n      iVar10 = iVar4;\n    } while (iVar4 < iVar3);\n  }\n  param_1[7] = iVar10;\n  param_1[8] = iVar10;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00024b20();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00016cb0(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  int iVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined1 *puVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  uint local_64;\n  undefined1 local_60 [64];\n  int local_20;\n  \n  iVar10 = 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 (iVar10 < iVar3) {\n    iVar9 = iVar10;\nLAB_00016d00:\n    do {\n      iVar10 = param_1[4];\n      iVar2 = param_1[5];\n      iVar4 = param_1[0x10];\n      iVar8 = iVar3 - iVar9;\n      if (iVar4 == 0) {\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }\n      else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }\n      iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);\n      if (iVar4 - 1U < 0xfffffffe) {\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar10 = iVar9 + 1;\n      *(uint *)(iVar2 + iVar9 * 4) = local_64;\n      iVar4 = iVar9 + iVar4;\n      if (iVar4 <= iVar10) {\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }\n      puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);\n      do {\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);\n      iVar9 = iVar4;\n      iVar10 = iVar4;\n    } while (iVar4 < iVar3);\n  }\n  param_1[7] = iVar10;\n  param_1[8] = iVar10;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00024b20();\n  }\n  return;\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined1 *puVar7;" type_identifier (pointer_declarator "*puVar7" * 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 "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 ;) (expression_statement "iVar10 = param_1[7];" (assignment_expression "iVar10 = 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 (iVar10 < iVar3) {\n    iVar9 = iVar10;\nLAB_00016d00:\n    do {\n      iVar10 = param_1[4];\n      iVar2 = param_1[5];\n      iVar4 = param_1[0x10];\n      iVar8 = iVar3 - iVar9;\n      if (iVar4 == 0) {\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }\n      else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }\n      iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);\n      if (iVar4 - 1U < 0xfffffffe) {\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar10 = iVar9 + 1;\n      *(uint *)(iVar2 + iVar9 * 4) = local_64;\n      iVar4 = iVar9 + iVar4;\n      if (iVar4 <= iVar10) {\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }\n      puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);\n      do {\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);\n      iVar9 = iVar4;\n      iVar10 = iVar4;\n    } while (iVar4 < iVar3);\n  }" if (parenthesized_expression "(iVar10 < iVar3)" ( (binary_expression "iVar10 < iVar3" identifier < identifier) )) (compound_statement "{\n    iVar9 = iVar10;\nLAB_00016d00:\n    do {\n      iVar10 = param_1[4];\n      iVar2 = param_1[5];\n      iVar4 = param_1[0x10];\n      iVar8 = iVar3 - iVar9;\n      if (iVar4 == 0) {\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }\n      else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }\n      iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);\n      if (iVar4 - 1U < 0xfffffffe) {\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar10 = iVar9 + 1;\n      *(uint *)(iVar2 + iVar9 * 4) = local_64;\n      iVar4 = iVar9 + iVar4;\n      if (iVar4 <= iVar10) {\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }\n      puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);\n      do {\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);\n      iVar9 = iVar4;\n      iVar10 = iVar4;\n    } while (iVar4 < iVar3);\n  }" { (expression_statement "iVar9 = iVar10;" (assignment_expression "iVar9 = iVar10" identifier = identifier) ;) (labeled_statement "LAB_00016d00:\n    do {\n      iVar10 = param_1[4];\n      iVar2 = param_1[5];\n      iVar4 = param_1[0x10];\n      iVar8 = iVar3 - iVar9;\n      if (iVar4 == 0) {\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }\n      else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }\n      iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);\n      if (iVar4 - 1U < 0xfffffffe) {\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar10 = iVar9 + 1;\n      *(uint *)(iVar2 + iVar9 * 4) = local_64;\n      iVar4 = iVar9 + iVar4;\n      if (iVar4 <= iVar10) {\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }\n      puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);\n      do {\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);\n      iVar9 = iVar4;\n      iVar10 = iVar4;\n    } while (iVar4 < iVar3);" statement_identifier : (do_statement "do {\n      iVar10 = param_1[4];\n      iVar2 = param_1[5];\n      iVar4 = param_1[0x10];\n      iVar8 = iVar3 - iVar9;\n      if (iVar4 == 0) {\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }\n      else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }\n      iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);\n      if (iVar4 - 1U < 0xfffffffe) {\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar10 = iVar9 + 1;\n      *(uint *)(iVar2 + iVar9 * 4) = local_64;\n      iVar4 = iVar9 + iVar4;\n      if (iVar4 <= iVar10) {\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }\n      puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);\n      do {\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);\n      iVar9 = iVar4;\n      iVar10 = iVar4;\n    } while (iVar4 < iVar3);" do (compound_statement "{\n      iVar10 = param_1[4];\n      iVar2 = param_1[5];\n      iVar4 = param_1[0x10];\n      iVar8 = iVar3 - iVar9;\n      if (iVar4 == 0) {\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }\n      else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }\n      iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);\n      if (iVar4 - 1U < 0xfffffffe) {\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar10 = iVar9 + 1;\n      *(uint *)(iVar2 + iVar9 * 4) = local_64;\n      iVar4 = iVar9 + iVar4;\n      if (iVar4 <= iVar10) {\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }\n      puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);\n      do {\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);\n      iVar9 = iVar4;\n      iVar10 = iVar4;\n    }" { (expression_statement "iVar10 = param_1[4];" (assignment_expression "iVar10 = 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 "iVar4 = param_1[0x10];" (assignment_expression "iVar4 = param_1[0x10]" identifier = (subscript_expression "param_1[0x10]" identifier [ number_literal ])) ;) (expression_statement "iVar8 = iVar3 - iVar9;" (assignment_expression "iVar8 = iVar3 - iVar9" identifier = (binary_expression "iVar3 - iVar9" identifier - identifier)) ;) (if_statement "if (iVar4 == 0) {\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }\n      else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }" { (expression_statement "puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);" (assignment_expression "puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1)" identifier = (cast_expression "(undefined1 *)(param_1[6] + iVar9 + *param_1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[6] + iVar9 + *param_1)" ( (binary_expression "param_1[6] + iVar9 + *param_1" (binary_expression "param_1[6] + iVar9" (subscript_expression "param_1[6]" identifier [ number_literal ]) + identifier) + (pointer_expression "*param_1" * identifier)) )))) ;) }) (else_clause "else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }" else (compound_statement "{\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }" { (expression_statement "puVar7 = local_60;" (assignment_expression "puVar7 = local_60" identifier = identifier) ;) (if_statement "if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }" if (parenthesized_expression "(0 < param_1[0x14])" ( (binary_expression "0 < param_1[0x14]" number_literal < (subscript_expression "param_1[0x14]" identifier [ number_literal ])) )) (compound_statement "{\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "puVar7 = local_60;" (assignment_expression "puVar7 = local_60" identifier = identifier) ;) (if_statement "if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }" if (parenthesized_expression "(0 < iVar8)" ( (binary_expression "0 < iVar8" number_literal < identifier) )) (compound_statement "{\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }" { (while_statement "while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }" { (expression_statement "uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));" (assignment_expression "uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]))" identifier = (pointer_expression "*(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]))" * (cast_expression "(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]))" ( (binary_expression "iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6])" identifier + (binary_expression "(uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6])" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(*param_1 + iVar9 + iVar6 + param_1[6])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar9 + iVar6 + param_1[6])" ( (binary_expression "*param_1 + iVar9 + iVar6 + param_1[6]" (binary_expression "*param_1 + iVar9 + iVar6" (binary_expression "*param_1 + iVar9" (pointer_expression "*param_1" * identifier) + identifier) + identifier) + (subscript_expression "param_1[6]" identifier [ number_literal ])) ))))) ))))) ;) (expression_statement "*(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;" (assignment_expression "*(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1" (pointer_expression "*(undefined1 *)(param_1[1] + iVar9 + iVar6)" * (cast_expression "(undefined1 *)(param_1[1] + iVar9 + iVar6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[1] + iVar9 + iVar6)" ( (binary_expression "param_1[1] + iVar9 + iVar6" (binary_expression "param_1[1] + iVar9" (subscript_expression "param_1[1]" identifier [ number_literal ]) + identifier) + identifier) )))) = identifier) ;) (expression_statement "puVar7[iVar6] = uVar1;" (assignment_expression "puVar7[iVar6] = uVar1" (subscript_expression "puVar7[iVar6]" identifier [ identifier ]) = identifier) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = iVar8;" (assignment_expression "iVar4 = iVar8" identifier = identifier) ;) (if_statement "if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }" if (parenthesized_expression "(param_1[0x14] <= iVar8)" ( (binary_expression "param_1[0x14] <= iVar8" (subscript_expression "param_1[0x14]" identifier [ number_literal ]) <= identifier) )) (compound_statement "{\n                iVar4 = param_1[0x14];\n              }" { (expression_statement "iVar4 = param_1[0x14];" (assignment_expression "iVar4 = param_1[0x14]" identifier = (subscript_expression "param_1[0x14]" identifier [ number_literal ])) ;) })) (if_statement "if (iVar4 <= iVar6) break;" if (parenthesized_expression "(iVar4 <= iVar6)" ( (binary_expression "iVar4 <= iVar6" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = param_1[0x10];" (assignment_expression "iVar4 = param_1[0x10]" identifier = (subscript_expression "param_1[0x10]" identifier [ number_literal ])) ;) })) })) })) }))) (expression_statement "iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);" (assignment_expression "iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4)" identifier = (call_expression "FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4)" identifier (argument_list "(&local_64,puVar7,iVar8,param_1 + 4)" ( (pointer_expression "&local_64" & identifier) , identifier , identifier , (binary_expression "param_1 + 4" identifier + number_literal) )))) ;) (if_statement "if (iVar4 - 1U < 0xfffffffe) {\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }" if (parenthesized_expression "(iVar4 - 1U < 0xfffffffe)" ( (binary_expression "iVar4 - 1U < 0xfffffffe" (binary_expression "iVar4 - 1U" identifier - number_literal) < number_literal) )) (compound_statement "{\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }" { (if_statement "if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }" if (parenthesized_expression "(iVar4 == -2)" ( (binary_expression "iVar4 == -2" identifier == number_literal) )) (compound_statement "{\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }" { (if_statement "if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;" 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_00016db0;" goto statement_identifier ;)) (expression_statement "param_1[4] = iVar10;" (assignment_expression "param_1[4] = iVar10" (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 "iVar10 = iVar9;" (assignment_expression "iVar10 = iVar9" identifier = identifier) ;) (break_statement "break;" break ;) })) }) (else_clause "else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }" else (compound_statement "{\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }" { (labeled_statement "LAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);" statement_identifier : (expression_statement "local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);" (assignment_expression "local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6])" identifier = (binary_expression "(uint)*(byte *)(*param_1 + iVar9 + param_1[6])" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(*param_1 + iVar9 + param_1[6])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar9 + param_1[6])" ( (binary_expression "*param_1 + iVar9 + param_1[6]" (binary_expression "*param_1 + iVar9" (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] = iVar10;" (assignment_expression "param_1[4] = iVar10" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 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 "iVar10 = iVar9 + 1;" (assignment_expression "iVar10 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "*(uint *)(iVar2 + iVar9 * 4) = local_64;" (assignment_expression "*(uint *)(iVar2 + iVar9 * 4) = local_64" (pointer_expression "*(uint *)(iVar2 + iVar9 * 4)" * (cast_expression "(uint *)(iVar2 + iVar9 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar9 * 4)" ( (binary_expression "iVar2 + iVar9 * 4" identifier + (binary_expression "iVar9 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "iVar4 = iVar9 + iVar4;" (assignment_expression "iVar4 = iVar9 + iVar4" identifier = (binary_expression "iVar9 + iVar4" identifier + identifier)) ;) (if_statement "if (iVar4 <= iVar10) {\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }" if (parenthesized_expression "(iVar4 <= iVar10)" ( (binary_expression "iVar4 <= iVar10" identifier <= identifier) )) (compound_statement "{\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }" { (expression_statement "iVar9 = iVar10;" (assignment_expression "iVar9 = iVar10" identifier = identifier) ;) (if_statement "if (iVar3 <= iVar10) break;" if (parenthesized_expression "(iVar3 <= iVar10)" ( (binary_expression "iVar3 <= iVar10" identifier <= identifier) )) (break_statement "break;" break ;)) (goto_statement "goto LAB_00016d00;" goto statement_identifier ;) })) (expression_statement "puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);" (assignment_expression "puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4)" identifier = (cast_expression "(undefined4 *)(iVar2 + 4 + iVar9 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4 + iVar9 * 4)" ( (binary_expression "iVar2 + 4 + iVar9 * 4" (binary_expression "iVar2 + 4" identifier + number_literal) + (binary_expression "iVar9 * 4" identifier * number_literal)) )))) ;) (do_statement "do {\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);" do (compound_statement "{\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      }" { (expression_statement "*puVar5 = 0xffffffff;" (assignment_expression "*puVar5 = 0xffffffff" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((undefined4 *)(iVar2 + iVar4 * 4) != puVar5)" ( (binary_expression "(undefined4 *)(iVar2 + iVar4 * 4) != puVar5" (cast_expression "(undefined4 *)(iVar2 + iVar4 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar4 * 4)" ( (binary_expression "iVar2 + iVar4 * 4" identifier + (binary_expression "iVar4 * 4" identifier * number_literal)) ))) != identifier) )) ;) (expression_statement "iVar9 = iVar4;" (assignment_expression "iVar9 = iVar4" identifier = identifier) ;) (expression_statement "iVar10 = iVar4;" (assignment_expression "iVar10 = iVar4" identifier = identifier) ;) }) while (parenthesized_expression "(iVar4 < iVar3)" ( (binary_expression "iVar4 < iVar3" identifier < identifier) )) ;)) })) (expression_statement "param_1[7] = iVar10;" (assignment_expression "param_1[7] = iVar10" (subscript_expression "param_1[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[8] = iVar10;" (assignment_expression "param_1[8] = iVar10" (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_00024b20();\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_00024b20();\n  }" { comment (expression_statement "FUN_00024b20();" (call_expression "FUN_00024b20()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\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  wint_t *pwVar6;\n  uchar *s;\n  size_t sVar7;\n  size_t sVar8;\n  uchar *puVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int in_GS_OFFSET;\n  wchar_t wc;\n  uchar buf [64];\n  \n  iVar12 = 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 (iVar12 < iVar5) {\n    iVar10 = iVar12;\nLAB_00016d00:\n    do {\n      iVar12 = (pstr->cur_state).__count;\n      aVar3 = (pstr->cur_state).__value;\n      puVar9 = pstr->trans;\n      sVar8 = iVar5 - iVar10;\n      if (puVar9 == (uchar *)0x0) {\n        s = pstr->raw_mbs + pstr->raw_mbs_idx + iVar10;\n      }\n      else {\n        s = buf;\n        if (0 < pstr->mb_cur_max) {\n          iVar11 = 0;\n          s = buf;\n          if (0 < (int)sVar8) {\n            while( true ) {\n              uVar2 = puVar9[pstr->raw_mbs[pstr->raw_mbs_idx + iVar11 + iVar10]];\n              pstr->mbs[iVar11 + iVar10] = uVar2;\n              s[iVar11] = uVar2;\n              iVar11 = iVar11 + 1;\n              sVar7 = sVar8;\n              if (pstr->mb_cur_max <= (int)sVar8) {\n                sVar7 = pstr->mb_cur_max;\n              }\n              if ((int)sVar7 <= iVar11) break;\n              puVar9 = pstr->trans;\n            }\n          }\n        }\n      }\n      sVar8 = rpl_mbrtowc(&wc,(char *)s,sVar8,&pstr->cur_state);\n      if (sVar8 - 1 < 0xfffffffe) {\n        if (sVar8 == 0xfffffffe) {\n          if (pstr->len <= pstr->bufs_len) goto LAB_00016db0;\n          (pstr->cur_state).__count = iVar12;\n          (pstr->cur_state).__value = aVar3;\n          iVar12 = iVar10;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar10];\n        if (pstr->trans != (uchar *)0x0) {\n          wc = (wchar_t)pstr->trans[wc];\n        }\n        (pstr->cur_state).__count = iVar12;\n        sVar8 = 1;\n        (pstr->cur_state).__value = aVar3;\n      }\n      pwVar4 = pstr->wcs;\n      iVar12 = iVar10 + 1;\n      pwVar4[iVar10] = wc;\n      iVar11 = iVar10 + sVar8;\n      if (iVar11 <= iVar12) {\n        iVar10 = iVar12;\n        if (iVar5 <= iVar12) break;\n        goto LAB_00016d00;\n      }\n      pwVar6 = pwVar4 + iVar10 + 1;\n      do {\n        *pwVar6 = 0xffffffff;\n        pwVar6 = pwVar6 + 1;\n      } while (pwVar4 + iVar11 != pwVar6);\n      iVar10 = iVar11;\n      iVar12 = iVar11;\n    } while (iVar11 < iVar5);\n  }\n  pstr->valid_len = iVar12;\n  pstr->valid_raw_len = iVar12;\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  wint_t *pwVar6;\n  uchar *s;\n  size_t sVar7;\n  size_t sVar8;\n  uchar *puVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int in_GS_OFFSET;\n  wchar_t wc;\n  uchar buf [64];\n  \n  iVar12 = 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 (iVar12 < iVar5) {\n    iVar10 = iVar12;\nLAB_00016d00:\n    do {\n      iVar12 = (pstr->cur_state).__count;\n      aVar3 = (pstr->cur_state).__value;\n      puVar9 = pstr->trans;\n      sVar8 = iVar5 - iVar10;\n      if (puVar9 == (uchar *)0x0) {\n        s = pstr->raw_mbs + pstr->raw_mbs_idx + iVar10;\n      }\n      else {\n        s = buf;\n        if (0 < pstr->mb_cur_max) {\n          iVar11 = 0;\n          s = buf;\n          if (0 < (int)sVar8) {\n            while( true ) {\n              uVar2 = puVar9[pstr->raw_mbs[pstr->raw_mbs_idx + iVar11 + iVar10]];\n              pstr->mbs[iVar11 + iVar10] = uVar2;\n              s[iVar11] = uVar2;\n              iVar11 = iVar11 + 1;\n              sVar7 = sVar8;\n              if (pstr->mb_cur_max <= (int)sVar8) {\n                sVar7 = pstr->mb_cur_max;\n              }\n              if ((int)sVar7 <= iVar11) break;\n              puVar9 = pstr->trans;\n            }\n          }\n        }\n      }\n      sVar8 = rpl_mbrtowc(&wc,(char *)s,sVar8,&pstr->cur_state);\n      if (sVar8 - 1 < 0xfffffffe) {\n        if (sVar8 == 0xfffffffe) {\n          if (pstr->len <= pstr->bufs_len) goto LAB_00016db0;\n          (pstr->cur_state).__count = iVar12;\n          (pstr->cur_state).__value = aVar3;\n          iVar12 = iVar10;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar10];\n        if (pstr->trans != (uchar *)0x0) {\n          wc = (wchar_t)pstr->trans[wc];\n        }\n        (pstr->cur_state).__count = iVar12;\n        sVar8 = 1;\n        (pstr->cur_state).__value = aVar3;\n      }\n      pwVar4 = pstr->wcs;\n      iVar12 = iVar10 + 1;\n      pwVar4[iVar10] = wc;\n      iVar11 = iVar10 + sVar8;\n      if (iVar11 <= iVar12) {\n        iVar10 = iVar12;\n        if (iVar5 <= iVar12) break;\n        goto LAB_00016d00;\n      }\n      pwVar6 = pwVar4 + iVar10 + 1;\n      do {\n        *pwVar6 = 0xffffffff;\n        pwVar6 = pwVar6 + 1;\n      } while (pwVar4 + iVar11 != pwVar6);\n      iVar10 = iVar11;\n      iVar12 = iVar11;\n    } while (iVar11 < iVar5);\n  }\n  pstr->valid_len = iVar12;\n  pstr->valid_raw_len = iVar12;\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  wint_t *pwVar6;\n  uchar *s;\n  size_t sVar7;\n  size_t sVar8;\n  uchar *puVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int in_GS_OFFSET;\n  wchar_t wc;\n  uchar buf [64];\n  \n  iVar12 = 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 (iVar12 < iVar5) {\n    iVar10 = iVar12;\nLAB_00016d00:\n    do {\n      iVar12 = (pstr->cur_state).__count;\n      aVar3 = (pstr->cur_state).__value;\n      puVar9 = pstr->trans;\n      sVar8 = iVar5 - iVar10;\n      if (puVar9 == (uchar *)0x0) {\n        s = pstr->raw_mbs + pstr->raw_mbs_idx + iVar10;\n      }\n      else {\n        s = buf;\n        if (0 < pstr->mb_cur_max) {\n          iVar11 = 0;\n          s = buf;\n          if (0 < (int)sVar8) {\n            while( true ) {\n              uVar2 = puVar9[pstr->raw_mbs[pstr->raw_mbs_idx + iVar11 + iVar10]];\n              pstr->mbs[iVar11 + iVar10] = uVar2;\n              s[iVar11] = uVar2;\n              iVar11 = iVar11 + 1;\n              sVar7 = sVar8;\n              if (pstr->mb_cur_max <= (int)sVar8) {\n                sVar7 = pstr->mb_cur_max;\n              }\n              if ((int)sVar7 <= iVar11) break;\n              puVar9 = pstr->trans;\n            }\n          }\n        }\n      }\n      sVar8 = rpl_mbrtowc(&wc,(char *)s,sVar8,&pstr->cur_state);\n      if (sVar8 - 1 < 0xfffffffe) {\n        if (sVar8 == 0xfffffffe) {\n          if (pstr->len <= pstr->bufs_len) goto LAB_00016db0;\n          (pstr->cur_state).__count = iVar12;\n          (pstr->cur_state).__value = aVar3;\n          iVar12 = iVar10;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar10];\n        if (pstr->trans != (uchar *)0x0) {\n          wc = (wchar_t)pstr->trans[wc];\n        }\n        (pstr->cur_state).__count = iVar12;\n        sVar8 = 1;\n        (pstr->cur_state).__value = aVar3;\n      }\n      pwVar4 = pstr->wcs;\n      iVar12 = iVar10 + 1;\n      pwVar4[iVar10] = wc;\n      iVar11 = iVar10 + sVar8;\n      if (iVar11 <= iVar12) {\n        iVar10 = iVar12;\n        if (iVar5 <= iVar12) break;\n        goto LAB_00016d00;\n      }\n      pwVar6 = pwVar4 + iVar10 + 1;\n      do {\n        *pwVar6 = 0xffffffff;\n        pwVar6 = pwVar6 + 1;\n      } while (pwVar4 + iVar11 != pwVar6);\n      iVar10 = iVar11;\n      iVar12 = iVar11;\n    } while (iVar11 < iVar5);\n  }\n  pstr->valid_len = iVar12;\n  pstr->valid_raw_len = iVar12;\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 "wint_t *pwVar6;" type_identifier (pointer_declarator "*pwVar6" * identifier) ;) (declaration "uchar *s;" type_identifier (pointer_declarator "*s" * identifier) ;) (declaration "size_t sVar7;" primitive_type identifier ;) (declaration "size_t sVar8;" primitive_type identifier ;) (declaration "uchar *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int iVar12;" 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 "iVar12 = pstr->valid_len;" (assignment_expression "iVar12 = 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 (iVar12 < iVar5) {\n    iVar10 = iVar12;\nLAB_00016d00:\n    do {\n      iVar12 = (pstr->cur_state).__count;\n      aVar3 = (pstr->cur_state).__value;\n      puVar9 = pstr->trans;\n      sVar8 = iVar5 - iVar10;\n      if (puVar9 == (uchar *)0x0) {\n        s = pstr->raw_mbs + pstr->raw_mbs_idx + iVar10;\n      }\n      else {\n        s = buf;\n        if (0 < pstr->mb_cur_max) {\n          iVar11 = 0;\n          s = buf;\n          if (0 < (int)sVar8) {\n            while( true ) {\n              uVar2 = puVar9[pstr->raw_mbs[pstr->raw_mbs_idx + iVar11 + iVar10]];\n              pstr->mbs[iVar11 + iVar10] = uVar2;\n              s[iVar11] = uVar2;\n              iVar11 = iVar11 + 1;\n              sVar7 = sVar8;\n              if (pstr->mb_cur_max <= (int)sVar8) {\n                sVar7 = pstr->mb_cur_max;\n              }\n              if ((int)sVar7 <= iVar11) break;\n              puVar9 = pstr->trans;\n            }\n          }\n        }\n      }\n      sVar8 = rpl_mbrtowc(&wc,(char *)s,sVar8,&pstr->cur_state);\n      if (sVar8 - 1 < 0xfffffffe) {\n        if (sVar8 == 0xfffffffe) {\n          if (pstr->len <= pstr->bufs_len) goto LAB_00016db0;\n          (pstr->cur_state).__count = iVar12;\n          (pstr->cur_state).__value = aVar3;\n          iVar12 = iVar10;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar10];\n        if (pstr->trans != (uchar *)0x0) {\n          wc = (wchar_t)pstr->trans[wc];\n        }\n        (pstr->cur_state).__count = iVar12;\n        sVar8 = 1;\n        (pstr->cur_state).__value = aVar3;\n      }\n      pwVar4 = pstr->wcs;\n      iVar12 = iVar10 + 1;\n      pwVar4[iVar10] = wc;\n      iVar11 = iVar10 + sVar8;\n      if (iVar11 <= iVar12) {\n        iVar10 = iVar12;\n        if (iVar5 <= iVar12) break;\n        goto LAB_00016d00;\n      }\n      pwVar6 = pwVar4 + iVar10 + 1;\n      do {\n        *pwVar6 = 0xffffffff;\n        pwVar6 = pwVar6 + 1;\n      } while (pwVar4 + iVar11 != pwVar6);\n      iVar10 = iVar11;\n      iVar12 = iVar11;\n    } while (iVar11 < iVar5);\n  }" if (parenthesized_expression "(iVar12 < iVar5)" ( (binary_expression "iVar12 < iVar5" identifier < identifier) )) (compound_statement "{\n    iVar10 = iVar12;\nLAB_00016d00:\n    do {\n      iVar12 = (pstr->cur_state).__count;\n      aVar3 = (pstr->cur_state).__value;\n      puVar9 = pstr->trans;\n      sVar8 = iVar5 - iVar10;\n      if (puVar9 == (uchar *)0x0) {\n        s = pstr->raw_mbs + pstr->raw_mbs_idx + iVar10;\n      }\n      else {\n        s = buf;\n        if (0 < pstr->mb_cur_max) {\n          iVar11 = 0;\n          s = buf;\n          if (0 < (int)sVar8) {\n            while( true ) {\n              uVar2 = puVar9[pstr->raw_mbs[pstr->raw_mbs_idx + iVar11 + iVar10]];\n              pstr->mbs[iVar11 + iVar10] = uVar2;\n              s[iVar11] = uVar2;\n              iVar11 = iVar11 + 1;\n              sVar7 = sVar8;\n              if (pstr->mb_cur_max <= (int)sVar8) {\n                sVar7 = pstr->mb_cur_max;\n              }\n              if ((int)sVar7 <= iVar11) break;\n              puVar9 = pstr->trans;\n            }\n          }\n        }\n      }\n      sVar8 = rpl_mbrtowc(&wc,(char *)s,sVar8,&pstr->cur_state);\n      if (sVar8 - 1 < 0xfffffffe) {\n        if (sVar8 == 0xfffffffe) {\n          if (pstr->len <= pstr->bufs_len) goto LAB_00016db0;\n          (pstr->cur_state).__count = iVar12;\n          (pstr->cur_state).__value = aVar3;\n          iVar12 = iVar10;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar10];\n        if (pstr->trans != (uchar *)0x0) {\n          wc = (wchar_t)pstr->trans[wc];\n        }\n        (pstr->cur_state).__count = iVar12;\n        sVar8 = 1;\n        (pstr->cur_state).__value = aVar3;\n      }\n      pwVar4 = pstr->wcs;\n      iVar12 = iVar10 + 1;\n      pwVar4[iVar10] = wc;\n      iVar11 = iVar10 + sVar8;\n      if (iVar11 <= iVar12) {\n        iVar10 = iVar12;\n        if (iVar5 <= iVar12) break;\n        goto LAB_00016d00;\n      }\n      pwVar6 = pwVar4 + iVar10 + 1;\n      do {\n        *pwVar6 = 0xffffffff;\n        pwVar6 = pwVar6 + 1;\n      } while (pwVar4 + iVar11 != pwVar6);\n      iVar10 = iVar11;\n      iVar12 = iVar11;\n    } while (iVar11 < iVar5);\n  }" { (expression_statement "iVar10 = iVar12;" (assignment_expression "iVar10 = iVar12" identifier = identifier) ;) (labeled_statement "LAB_00016d00:\n    do {\n      iVar12 = (pstr->cur_state).__count;\n      aVar3 = (pstr->cur_state).__value;\n      puVar9 = pstr->trans;\n      sVar8 = iVar5 - iVar10;\n      if (puVar9 == (uchar *)0x0) {\n        s = pstr->raw_mbs + pstr->raw_mbs_idx + iVar10;\n      }\n      else {\n        s = buf;\n        if (0 < pstr->mb_cur_max) {\n          iVar11 = 0;\n          s = buf;\n          if (0 < (int)sVar8) {\n            while( true ) {\n              uVar2 = puVar9[pstr->raw_mbs[pstr->raw_mbs_idx + iVar11 + iVar10]];\n              pstr->mbs[iVar11 + iVar10] = uVar2;\n              s[iVar11] = uVar2;\n              iVar11 = iVar11 + 1;\n              sVar7 = sVar8;\n              if (pstr->mb_cur_max <= (int)sVar8) {\n                sVar7 = pstr->mb_cur_max;\n              }\n              if ((int)sVar7 <= iVar11) break;\n              puVar9 = pstr->trans;\n            }\n          }\n        }\n      }\n      sVar8 = rpl_mbrtowc(&wc,(char *)s,sVar8,&pstr->cur_state);\n      if (sVar8 - 1 < 0xfffffffe) {\n        if (sVar8 == 0xfffffffe) {\n          if (pstr->len <= pstr->bufs_len) goto LAB_00016db0;\n          (pstr->cur_state).__count = iVar12;\n          (pstr->cur_state).__value = aVar3;\n          iVar12 = iVar10;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar10];\n        if (pstr->trans != (uchar *)0x0) {\n          wc = (wchar_t)pstr->trans[wc];\n        }\n        (pstr->cur_state).__count = iVar12;\n        sVar8 = 1;\n        (pstr->cur_state).__value = aVar3;\n      }\n      pwVar4 = pstr->wcs;\n      iVar12 = iVar10 + 1;\n      pwVar4[iVar10] = wc;\n      iVar11 = iVar10 + sVar8;\n      if (iVar11 <= iVar12) {\n        iVar10 = iVar12;\n        if (iVar5 <= iVar12) break;\n        goto LAB_00016d00;\n      }\n      pwVar6 = pwVar4 + iVar10 + 1;\n      do {\n        *pwVar6 = 0xffffffff;\n        pwVar6 = pwVar6 + 1;\n      } while (pwVar4 + iVar11 != pwVar6);\n      iVar10 = iVar11;\n      iVar12 = iVar11;\n    } while (iVar11 < iVar5);" statement_identifier : (do_statement "do {\n      iVar12 = (pstr->cur_state).__count;\n      aVar3 = (pstr->cur_state).__value;\n      puVar9 = pstr->trans;\n      sVar8 = iVar5 - iVar10;\n      if (puVar9 == (uchar *)0x0) {\n        s = pstr->raw_mbs + pstr->raw_mbs_idx + iVar10;\n      }\n      else {\n        s = buf;\n        if (0 < pstr->mb_cur_max) {\n          iVar11 = 0;\n          s = buf;\n          if (0 < (int)sVar8) {\n            while( true ) {\n              uVar2 = puVar9[pstr->raw_mbs[pstr->raw_mbs_idx + iVar11 + iVar10]];\n              pstr->mbs[iVar11 + iVar10] = uVar2;\n              s[iVar11] = uVar2;\n              iVar11 = iVar11 + 1;\n              sVar7 = sVar8;\n              if (pstr->mb_cur_max <= (int)sVar8) {\n                sVar7 = pstr->mb_cur_max;\n              }\n              if ((int)sVar7 <= iVar11) break;\n              puVar9 = pstr->trans;\n            }\n          }\n        }\n      }\n      sVar8 = rpl_mbrtowc(&wc,(char *)s,sVar8,&pstr->cur_state);\n      if (sVar8 - 1 < 0xfffffffe) {\n        if (sVar8 == 0xfffffffe) {\n          if (pstr->len <= pstr->bufs_len) goto LAB_00016db0;\n          (pstr->cur_state).__count = iVar12;\n          (pstr->cur_state).__value = aVar3;\n          iVar12 = iVar10;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar10];\n        if (pstr->trans != (uchar *)0x0) {\n          wc = (wchar_t)pstr->trans[wc];\n        }\n        (pstr->cur_state).__count = iVar12;\n        sVar8 = 1;\n        (pstr->cur_state).__value = aVar3;\n      }\n      pwVar4 = pstr->wcs;\n      iVar12 = iVar10 + 1;\n      pwVar4[iVar10] = wc;\n      iVar11 = iVar10 + sVar8;\n      if (iVar11 <= iVar12) {\n        iVar10 = iVar12;\n        if (iVar5 <= iVar12) break;\n        goto LAB_00016d00;\n      }\n      pwVar6 = pwVar4 + iVar10 + 1;\n      do {\n        *pwVar6 = 0xffffffff;\n        pwVar6 = pwVar6 + 1;\n      } while (pwVar4 + iVar11 != pwVar6);\n      iVar10 = iVar11;\n      iVar12 = iVar11;\n    } while (iVar11 < iVar5);" do (compound_statement "{\n      iVar12 = (pstr->cur_state).__count;\n      aVar3 = (pstr->cur_state).__value;\n      puVar9 = pstr->trans;\n      sVar8 = iVar5 - iVar10;\n      if (puVar9 == (uchar *)0x0) {\n        s = pstr->raw_mbs + pstr->raw_mbs_idx + iVar10;\n      }\n      else {\n        s = buf;\n        if (0 < pstr->mb_cur_max) {\n          iVar11 = 0;\n          s = buf;\n          if (0 < (int)sVar8) {\n            while( true ) {\n              uVar2 = puVar9[pstr->raw_mbs[pstr->raw_mbs_idx + iVar11 + iVar10]];\n              pstr->mbs[iVar11 + iVar10] = uVar2;\n              s[iVar11] = uVar2;\n              iVar11 = iVar11 + 1;\n              sVar7 = sVar8;\n              if (pstr->mb_cur_max <= (int)sVar8) {\n                sVar7 = pstr->mb_cur_max;\n              }\n              if ((int)sVar7 <= iVar11) break;\n              puVar9 = pstr->trans;\n            }\n          }\n        }\n      }\n      sVar8 = rpl_mbrtowc(&wc,(char *)s,sVar8,&pstr->cur_state);\n      if (sVar8 - 1 < 0xfffffffe) {\n        if (sVar8 == 0xfffffffe) {\n          if (pstr->len <= pstr->bufs_len) goto LAB_00016db0;\n          (pstr->cur_state).__count = iVar12;\n          (pstr->cur_state).__value = aVar3;\n          iVar12 = iVar10;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar10];\n        if (pstr->trans != (uchar *)0x0) {\n          wc = (wchar_t)pstr->trans[wc];\n        }\n        (pstr->cur_state).__count = iVar12;\n        sVar8 = 1;\n        (pstr->cur_state).__value = aVar3;\n      }\n      pwVar4 = pstr->wcs;\n      iVar12 = iVar10 + 1;\n      pwVar4[iVar10] = wc;\n      iVar11 = iVar10 + sVar8;\n      if (iVar11 <= iVar12) {\n        iVar10 = iVar12;\n        if (iVar5 <= iVar12) break;\n        goto LAB_00016d00;\n      }\n      pwVar6 = pwVar4 + iVar10 + 1;\n      do {\n        *pwVar6 = 0xffffffff;\n        pwVar6 = pwVar6 + 1;\n      } while (pwVar4 + iVar11 != pwVar6);\n      iVar10 = iVar11;\n      iVar12 = iVar11;\n    }" { (expression_statement "iVar12 = (pstr->cur_state).__count;" (assignment_expression "iVar12 = (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 "puVar9 = pstr->trans;" (assignment_expression "puVar9 = pstr->trans" identifier = (field_expression "pstr->trans" identifier -> field_identifier)) ;) (expression_statement "sVar8 = iVar5 - iVar10;" (assignment_expression "sVar8 = iVar5 - iVar10" identifier = (binary_expression "iVar5 - iVar10" identifier - identifier)) ;) (if_statement "if (puVar9 == (uchar *)0x0) {\n        s = pstr->raw_mbs + pstr->raw_mbs_idx + iVar10;\n      }\n      else {\n        s = buf;\n        if (0 < pstr->mb_cur_max) {\n          iVar11 = 0;\n          s = buf;\n          if (0 < (int)sVar8) {\n            while( true ) {\n              uVar2 = puVar9[pstr->raw_mbs[pstr->raw_mbs_idx + iVar11 + iVar10]];\n              pstr->mbs[iVar11 + iVar10] = uVar2;\n              s[iVar11] = uVar2;\n              iVar11 = iVar11 + 1;\n              sVar7 = sVar8;\n              if (pstr->mb_cur_max <= (int)sVar8) {\n                sVar7 = pstr->mb_cur_max;\n              }\n              if ((int)sVar7 <= iVar11) break;\n              puVar9 = pstr->trans;\n            }\n          }\n        }\n      }" if (parenthesized_expression "(puVar9 == (uchar *)0x0)" ( (binary_expression "puVar9 == (uchar *)0x0" 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 + iVar10;\n      }" { (expression_statement "s = pstr->raw_mbs + pstr->raw_mbs_idx + iVar10;" (assignment_expression "s = pstr->raw_mbs + pstr->raw_mbs_idx + iVar10" identifier = (binary_expression "pstr->raw_mbs + pstr->raw_mbs_idx + iVar10" (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        s = buf;\n        if (0 < pstr->mb_cur_max) {\n          iVar11 = 0;\n          s = buf;\n          if (0 < (int)sVar8) {\n            while( true ) {\n              uVar2 = puVar9[pstr->raw_mbs[pstr->raw_mbs_idx + iVar11 + iVar10]];\n              pstr->mbs[iVar11 + iVar10] = uVar2;\n              s[iVar11] = uVar2;\n              iVar11 = iVar11 + 1;\n              sVar7 = sVar8;\n              if (pstr->mb_cur_max <= (int)sVar8) {\n                sVar7 = pstr->mb_cur_max;\n              }\n              if ((int)sVar7 <= iVar11) break;\n              puVar9 = pstr->trans;\n            }\n          }\n        }\n      }" else (compound_statement "{\n        s = buf;\n        if (0 < pstr->mb_cur_max) {\n          iVar11 = 0;\n          s = buf;\n          if (0 < (int)sVar8) {\n            while( true ) {\n              uVar2 = puVar9[pstr->raw_mbs[pstr->raw_mbs_idx + iVar11 + iVar10]];\n              pstr->mbs[iVar11 + iVar10] = uVar2;\n              s[iVar11] = uVar2;\n              iVar11 = iVar11 + 1;\n              sVar7 = sVar8;\n              if (pstr->mb_cur_max <= (int)sVar8) {\n                sVar7 = pstr->mb_cur_max;\n              }\n              if ((int)sVar7 <= iVar11) break;\n              puVar9 = pstr->trans;\n            }\n          }\n        }\n      }" { (expression_statement "s = buf;" (assignment_expression "s = buf" identifier = identifier) ;) (if_statement "if (0 < pstr->mb_cur_max) {\n          iVar11 = 0;\n          s = buf;\n          if (0 < (int)sVar8) {\n            while( true ) {\n              uVar2 = puVar9[pstr->raw_mbs[pstr->raw_mbs_idx + iVar11 + iVar10]];\n              pstr->mbs[iVar11 + iVar10] = uVar2;\n              s[iVar11] = uVar2;\n              iVar11 = iVar11 + 1;\n              sVar7 = sVar8;\n              if (pstr->mb_cur_max <= (int)sVar8) {\n                sVar7 = pstr->mb_cur_max;\n              }\n              if ((int)sVar7 <= iVar11) break;\n              puVar9 = pstr->trans;\n            }\n          }\n        }" if (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)) )) (compound_statement "{\n          iVar11 = 0;\n          s = buf;\n          if (0 < (int)sVar8) {\n            while( true ) {\n              uVar2 = puVar9[pstr->raw_mbs[pstr->raw_mbs_idx + iVar11 + iVar10]];\n              pstr->mbs[iVar11 + iVar10] = uVar2;\n              s[iVar11] = uVar2;\n              iVar11 = iVar11 + 1;\n              sVar7 = sVar8;\n              if (pstr->mb_cur_max <= (int)sVar8) {\n                sVar7 = pstr->mb_cur_max;\n              }\n              if ((int)sVar7 <= iVar11) break;\n              puVar9 = pstr->trans;\n            }\n          }\n        }" { (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (expression_statement "s = buf;" (assignment_expression "s = buf" identifier = identifier) ;) (if_statement "if (0 < (int)sVar8) {\n            while( true ) {\n              uVar2 = puVar9[pstr->raw_mbs[pstr->raw_mbs_idx + iVar11 + iVar10]];\n              pstr->mbs[iVar11 + iVar10] = uVar2;\n              s[iVar11] = uVar2;\n              iVar11 = iVar11 + 1;\n              sVar7 = sVar8;\n              if (pstr->mb_cur_max <= (int)sVar8) {\n                sVar7 = pstr->mb_cur_max;\n              }\n              if ((int)sVar7 <= iVar11) break;\n              puVar9 = pstr->trans;\n            }\n          }" if (parenthesized_expression "(0 < (int)sVar8)" ( (binary_expression "0 < (int)sVar8" number_literal < (cast_expression "(int)sVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n            while( true ) {\n              uVar2 = puVar9[pstr->raw_mbs[pstr->raw_mbs_idx + iVar11 + iVar10]];\n              pstr->mbs[iVar11 + iVar10] = uVar2;\n              s[iVar11] = uVar2;\n              iVar11 = iVar11 + 1;\n              sVar7 = sVar8;\n              if (pstr->mb_cur_max <= (int)sVar8) {\n                sVar7 = pstr->mb_cur_max;\n              }\n              if ((int)sVar7 <= iVar11) break;\n              puVar9 = pstr->trans;\n            }\n          }" { (while_statement "while( true ) {\n              uVar2 = puVar9[pstr->raw_mbs[pstr->raw_mbs_idx + iVar11 + iVar10]];\n              pstr->mbs[iVar11 + iVar10] = uVar2;\n              s[iVar11] = uVar2;\n              iVar11 = iVar11 + 1;\n              sVar7 = sVar8;\n              if (pstr->mb_cur_max <= (int)sVar8) {\n                sVar7 = pstr->mb_cur_max;\n              }\n              if ((int)sVar7 <= iVar11) break;\n              puVar9 = pstr->trans;\n            }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n              uVar2 = puVar9[pstr->raw_mbs[pstr->raw_mbs_idx + iVar11 + iVar10]];\n              pstr->mbs[iVar11 + iVar10] = uVar2;\n              s[iVar11] = uVar2;\n              iVar11 = iVar11 + 1;\n              sVar7 = sVar8;\n              if (pstr->mb_cur_max <= (int)sVar8) {\n                sVar7 = pstr->mb_cur_max;\n              }\n              if ((int)sVar7 <= iVar11) break;\n              puVar9 = pstr->trans;\n            }" { (expression_statement "uVar2 = puVar9[pstr->raw_mbs[pstr->raw_mbs_idx + iVar11 + iVar10]];" (assignment_expression "uVar2 = puVar9[pstr->raw_mbs[pstr->raw_mbs_idx + iVar11 + iVar10]]" identifier = (subscript_expression "puVar9[pstr->raw_mbs[pstr->raw_mbs_idx + iVar11 + iVar10]]" identifier [ (subscript_expression "pstr->raw_mbs[pstr->raw_mbs_idx + iVar11 + iVar10]" (field_expression "pstr->raw_mbs" identifier -> field_identifier) [ (binary_expression "pstr->raw_mbs_idx + iVar11 + iVar10" (binary_expression "pstr->raw_mbs_idx + iVar11" (field_expression "pstr->raw_mbs_idx" identifier -> field_identifier) + identifier) + identifier) ]) ])) ;) (expression_statement "pstr->mbs[iVar11 + iVar10] = uVar2;" (assignment_expression "pstr->mbs[iVar11 + iVar10] = uVar2" (subscript_expression "pstr->mbs[iVar11 + iVar10]" (field_expression "pstr->mbs" identifier -> field_identifier) [ (binary_expression "iVar11 + iVar10" identifier + identifier) ]) = identifier) ;) (expression_statement "s[iVar11] = uVar2;" (assignment_expression "s[iVar11] = uVar2" (subscript_expression "s[iVar11]" identifier [ identifier ]) = identifier) ;) (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (expression_statement "sVar7 = sVar8;" (assignment_expression "sVar7 = sVar8" identifier = identifier) ;) (if_statement "if (pstr->mb_cur_max <= (int)sVar8) {\n                sVar7 = pstr->mb_cur_max;\n              }" if (parenthesized_expression "(pstr->mb_cur_max <= (int)sVar8)" ( (binary_expression "pstr->mb_cur_max <= (int)sVar8" (field_expression "pstr->mb_cur_max" identifier -> field_identifier) <= (cast_expression "(int)sVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n                sVar7 = pstr->mb_cur_max;\n              }" { (expression_statement "sVar7 = pstr->mb_cur_max;" (assignment_expression "sVar7 = pstr->mb_cur_max" identifier = (field_expression "pstr->mb_cur_max" identifier -> field_identifier)) ;) })) (if_statement "if ((int)sVar7 <= iVar11) break;" if (parenthesized_expression "((int)sVar7 <= iVar11)" ( (binary_expression "(int)sVar7 <= iVar11" (cast_expression "(int)sVar7" ( (type_descriptor "int" primitive_type) ) identifier) <= identifier) )) (break_statement "break;" break ;)) (expression_statement "puVar9 = pstr->trans;" (assignment_expression "puVar9 = pstr->trans" identifier = (field_expression "pstr->trans" identifier -> field_identifier)) ;) })) })) })) }))) (expression_statement "sVar8 = rpl_mbrtowc(&wc,(char *)s,sVar8,&pstr->cur_state);" (assignment_expression "sVar8 = rpl_mbrtowc(&wc,(char *)s,sVar8,&pstr->cur_state)" identifier = (call_expression "rpl_mbrtowc(&wc,(char *)s,sVar8,&pstr->cur_state)" identifier (argument_list "(&wc,(char *)s,sVar8,&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 (sVar8 - 1 < 0xfffffffe) {\n        if (sVar8 == 0xfffffffe) {\n          if (pstr->len <= pstr->bufs_len) goto LAB_00016db0;\n          (pstr->cur_state).__count = iVar12;\n          (pstr->cur_state).__value = aVar3;\n          iVar12 = iVar10;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar10];\n        if (pstr->trans != (uchar *)0x0) {\n          wc = (wchar_t)pstr->trans[wc];\n        }\n        (pstr->cur_state).__count = iVar12;\n        sVar8 = 1;\n        (pstr->cur_state).__value = aVar3;\n      }" if (parenthesized_expression "(sVar8 - 1 < 0xfffffffe)" ( (binary_expression "sVar8 - 1 < 0xfffffffe" (binary_expression "sVar8 - 1" identifier - number_literal) < number_literal) )) (compound_statement "{\n        if (sVar8 == 0xfffffffe) {\n          if (pstr->len <= pstr->bufs_len) goto LAB_00016db0;\n          (pstr->cur_state).__count = iVar12;\n          (pstr->cur_state).__value = aVar3;\n          iVar12 = iVar10;\n          break;\n        }\n      }" { (if_statement "if (sVar8 == 0xfffffffe) {\n          if (pstr->len <= pstr->bufs_len) goto LAB_00016db0;\n          (pstr->cur_state).__count = iVar12;\n          (pstr->cur_state).__value = aVar3;\n          iVar12 = iVar10;\n          break;\n        }" if (parenthesized_expression "(sVar8 == 0xfffffffe)" ( (binary_expression "sVar8 == 0xfffffffe" identifier == number_literal) )) (compound_statement "{\n          if (pstr->len <= pstr->bufs_len) goto LAB_00016db0;\n          (pstr->cur_state).__count = iVar12;\n          (pstr->cur_state).__value = aVar3;\n          iVar12 = iVar10;\n          break;\n        }" { (if_statement "if (pstr->len <= pstr->bufs_len) goto LAB_00016db0;" 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_00016db0;" goto statement_identifier ;)) (expression_statement "(pstr->cur_state).__count = iVar12;" (assignment_expression "(pstr->cur_state).__count = iVar12" (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 "iVar12 = iVar10;" (assignment_expression "iVar12 = iVar10" identifier = identifier) ;) (break_statement "break;" break ;) })) }) (else_clause "else {\nLAB_00016db0:\n        wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar10];\n        if (pstr->trans != (uchar *)0x0) {\n          wc = (wchar_t)pstr->trans[wc];\n        }\n        (pstr->cur_state).__count = iVar12;\n        sVar8 = 1;\n        (pstr->cur_state).__value = aVar3;\n      }" else (compound_statement "{\nLAB_00016db0:\n        wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar10];\n        if (pstr->trans != (uchar *)0x0) {\n          wc = (wchar_t)pstr->trans[wc];\n        }\n        (pstr->cur_state).__count = iVar12;\n        sVar8 = 1;\n        (pstr->cur_state).__value = aVar3;\n      }" { (labeled_statement "LAB_00016db0:\n        wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar10];" statement_identifier : (expression_statement "wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar10];" (assignment_expression "wc = (wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar10]" identifier = (cast_expression "(wchar_t)pstr->raw_mbs[pstr->raw_mbs_idx + iVar10]" ( (type_descriptor "wchar_t" type_identifier) ) (subscript_expression "pstr->raw_mbs[pstr->raw_mbs_idx + iVar10]" (field_expression "pstr->raw_mbs" identifier -> field_identifier) [ (binary_expression "pstr->raw_mbs_idx + iVar10" (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 = iVar12;" (assignment_expression "(pstr->cur_state).__count = iVar12" (field_expression "(pstr->cur_state).__count" (parenthesized_expression "(pstr->cur_state)" ( (field_expression "pstr->cur_state" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "sVar8 = 1;" (assignment_expression "sVar8 = 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 "iVar12 = iVar10 + 1;" (assignment_expression "iVar12 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (expression_statement "pwVar4[iVar10] = wc;" (assignment_expression "pwVar4[iVar10] = wc" (subscript_expression "pwVar4[iVar10]" identifier [ identifier ]) = identifier) ;) (expression_statement "iVar11 = iVar10 + sVar8;" (assignment_expression "iVar11 = iVar10 + sVar8" identifier = (binary_expression "iVar10 + sVar8" identifier + identifier)) ;) (if_statement "if (iVar11 <= iVar12) {\n        iVar10 = iVar12;\n        if (iVar5 <= iVar12) break;\n        goto LAB_00016d00;\n      }" if (parenthesized_expression "(iVar11 <= iVar12)" ( (binary_expression "iVar11 <= iVar12" identifier <= identifier) )) (compound_statement "{\n        iVar10 = iVar12;\n        if (iVar5 <= iVar12) break;\n        goto LAB_00016d00;\n      }" { (expression_statement "iVar10 = iVar12;" (assignment_expression "iVar10 = iVar12" identifier = identifier) ;) (if_statement "if (iVar5 <= iVar12) break;" if (parenthesized_expression "(iVar5 <= iVar12)" ( (binary_expression "iVar5 <= iVar12" identifier <= identifier) )) (break_statement "break;" break ;)) (goto_statement "goto LAB_00016d00;" goto statement_identifier ;) })) (expression_statement "pwVar6 = pwVar4 + iVar10 + 1;" (assignment_expression "pwVar6 = pwVar4 + iVar10 + 1" identifier = (binary_expression "pwVar4 + iVar10 + 1" (binary_expression "pwVar4 + iVar10" identifier + identifier) + number_literal)) ;) (do_statement "do {\n        *pwVar6 = 0xffffffff;\n        pwVar6 = pwVar6 + 1;\n      } while (pwVar4 + iVar11 != pwVar6);" do (compound_statement "{\n        *pwVar6 = 0xffffffff;\n        pwVar6 = pwVar6 + 1;\n      }" { (expression_statement "*pwVar6 = 0xffffffff;" (assignment_expression "*pwVar6 = 0xffffffff" (pointer_expression "*pwVar6" * identifier) = number_literal) ;) (expression_statement "pwVar6 = pwVar6 + 1;" (assignment_expression "pwVar6 = pwVar6 + 1" identifier = (binary_expression "pwVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pwVar4 + iVar11 != pwVar6)" ( (binary_expression "pwVar4 + iVar11 != pwVar6" (binary_expression "pwVar4 + iVar11" identifier + identifier) != identifier) )) ;) (expression_statement "iVar10 = iVar11;" (assignment_expression "iVar10 = iVar11" identifier = identifier) ;) (expression_statement "iVar12 = iVar11;" (assignment_expression "iVar12 = iVar11" identifier = identifier) ;) }) while (parenthesized_expression "(iVar11 < iVar5)" ( (binary_expression "iVar11 < iVar5" identifier < identifier) )) ;)) })) (expression_statement "pstr->valid_len = iVar12;" (assignment_expression "pstr->valid_len = iVar12" (field_expression "pstr->valid_len" identifier -> field_identifier) = identifier) ;) (expression_statement "pstr->valid_raw_len = iVar12;" (assignment_expression "pstr->valid_raw_len = iVar12" (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_00016cb0(int *param_1)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined1 *puVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  uint local_64;\n  undefined1 local_60 [64];\n  int local_20;\n  \n  iVar10 = 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 (iVar10 < iVar3) {\n    iVar9 = iVar10;\nLAB_00016d00:\n    do {\n      iVar10 = param_1[4];\n      iVar2 = param_1[5];\n      iVar4 = param_1[0x10];\n      iVar8 = iVar3 - iVar9;\n      if (iVar4 == 0) {\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }\n      else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }\n      iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);\n      if (iVar4 - 1U < 0xfffffffe) {\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar10 = iVar9 + 1;\n      *(uint *)(iVar2 + iVar9 * 4) = local_64;\n      iVar4 = iVar9 + iVar4;\n      if (iVar4 <= iVar10) {\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }\n      puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);\n      do {\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);\n      iVar9 = iVar4;\n      iVar10 = iVar4;\n    } while (iVar4 < iVar3);\n  }\n  param_1[7] = iVar10;\n  param_1[8] = iVar10;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00024b20();\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00016cb0(int *param_1)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined1 *puVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  uint local_64;\n  undefined1 local_60 [64];\n  int local_20;\n  \n  iVar10 = 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 (iVar10 < iVar3) {\n    iVar9 = iVar10;\nLAB_00016d00:\n    do {\n      iVar10 = param_1[4];\n      iVar2 = param_1[5];\n      iVar4 = param_1[0x10];\n      iVar8 = iVar3 - iVar9;\n      if (iVar4 == 0) {\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }\n      else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }\n      iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);\n      if (iVar4 - 1U < 0xfffffffe) {\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar10 = iVar9 + 1;\n      *(uint *)(iVar2 + iVar9 * 4) = local_64;\n      iVar4 = iVar9 + iVar4;\n      if (iVar4 <= iVar10) {\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }\n      puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);\n      do {\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);\n      iVar9 = iVar4;\n      iVar10 = iVar4;\n    } while (iVar4 < iVar3);\n  }\n  param_1[7] = iVar10;\n  param_1[8] = iVar10;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00024b20();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00016cb0(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  int iVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined1 *puVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  uint local_64;\n  undefined1 local_60 [64];\n  int local_20;\n  \n  iVar10 = 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 (iVar10 < iVar3) {\n    iVar9 = iVar10;\nLAB_00016d00:\n    do {\n      iVar10 = param_1[4];\n      iVar2 = param_1[5];\n      iVar4 = param_1[0x10];\n      iVar8 = iVar3 - iVar9;\n      if (iVar4 == 0) {\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }\n      else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }\n      iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);\n      if (iVar4 - 1U < 0xfffffffe) {\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar10 = iVar9 + 1;\n      *(uint *)(iVar2 + iVar9 * 4) = local_64;\n      iVar4 = iVar9 + iVar4;\n      if (iVar4 <= iVar10) {\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }\n      puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);\n      do {\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);\n      iVar9 = iVar4;\n      iVar10 = iVar4;\n    } while (iVar4 < iVar3);\n  }\n  param_1[7] = iVar10;\n  param_1[8] = iVar10;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00024b20();\n  }\n  return;\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined1 *puVar7;" type_identifier (pointer_declarator "*puVar7" * 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 "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 ;) (expression_statement "iVar10 = param_1[7];" (assignment_expression "iVar10 = 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 (iVar10 < iVar3) {\n    iVar9 = iVar10;\nLAB_00016d00:\n    do {\n      iVar10 = param_1[4];\n      iVar2 = param_1[5];\n      iVar4 = param_1[0x10];\n      iVar8 = iVar3 - iVar9;\n      if (iVar4 == 0) {\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }\n      else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }\n      iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);\n      if (iVar4 - 1U < 0xfffffffe) {\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar10 = iVar9 + 1;\n      *(uint *)(iVar2 + iVar9 * 4) = local_64;\n      iVar4 = iVar9 + iVar4;\n      if (iVar4 <= iVar10) {\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }\n      puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);\n      do {\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);\n      iVar9 = iVar4;\n      iVar10 = iVar4;\n    } while (iVar4 < iVar3);\n  }" if (parenthesized_expression "(iVar10 < iVar3)" ( (binary_expression "iVar10 < iVar3" identifier < identifier) )) (compound_statement "{\n    iVar9 = iVar10;\nLAB_00016d00:\n    do {\n      iVar10 = param_1[4];\n      iVar2 = param_1[5];\n      iVar4 = param_1[0x10];\n      iVar8 = iVar3 - iVar9;\n      if (iVar4 == 0) {\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }\n      else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }\n      iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);\n      if (iVar4 - 1U < 0xfffffffe) {\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar10 = iVar9 + 1;\n      *(uint *)(iVar2 + iVar9 * 4) = local_64;\n      iVar4 = iVar9 + iVar4;\n      if (iVar4 <= iVar10) {\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }\n      puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);\n      do {\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);\n      iVar9 = iVar4;\n      iVar10 = iVar4;\n    } while (iVar4 < iVar3);\n  }" { (expression_statement "iVar9 = iVar10;" (assignment_expression "iVar9 = iVar10" identifier = identifier) ;) (labeled_statement "LAB_00016d00:\n    do {\n      iVar10 = param_1[4];\n      iVar2 = param_1[5];\n      iVar4 = param_1[0x10];\n      iVar8 = iVar3 - iVar9;\n      if (iVar4 == 0) {\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }\n      else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }\n      iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);\n      if (iVar4 - 1U < 0xfffffffe) {\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar10 = iVar9 + 1;\n      *(uint *)(iVar2 + iVar9 * 4) = local_64;\n      iVar4 = iVar9 + iVar4;\n      if (iVar4 <= iVar10) {\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }\n      puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);\n      do {\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);\n      iVar9 = iVar4;\n      iVar10 = iVar4;\n    } while (iVar4 < iVar3);" statement_identifier : (do_statement "do {\n      iVar10 = param_1[4];\n      iVar2 = param_1[5];\n      iVar4 = param_1[0x10];\n      iVar8 = iVar3 - iVar9;\n      if (iVar4 == 0) {\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }\n      else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }\n      iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);\n      if (iVar4 - 1U < 0xfffffffe) {\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar10 = iVar9 + 1;\n      *(uint *)(iVar2 + iVar9 * 4) = local_64;\n      iVar4 = iVar9 + iVar4;\n      if (iVar4 <= iVar10) {\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }\n      puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);\n      do {\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);\n      iVar9 = iVar4;\n      iVar10 = iVar4;\n    } while (iVar4 < iVar3);" do (compound_statement "{\n      iVar10 = param_1[4];\n      iVar2 = param_1[5];\n      iVar4 = param_1[0x10];\n      iVar8 = iVar3 - iVar9;\n      if (iVar4 == 0) {\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }\n      else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }\n      iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);\n      if (iVar4 - 1U < 0xfffffffe) {\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar10 = iVar9 + 1;\n      *(uint *)(iVar2 + iVar9 * 4) = local_64;\n      iVar4 = iVar9 + iVar4;\n      if (iVar4 <= iVar10) {\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }\n      puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);\n      do {\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);\n      iVar9 = iVar4;\n      iVar10 = iVar4;\n    }" { (expression_statement "iVar10 = param_1[4];" (assignment_expression "iVar10 = 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 "iVar4 = param_1[0x10];" (assignment_expression "iVar4 = param_1[0x10]" identifier = (subscript_expression "param_1[0x10]" identifier [ number_literal ])) ;) (expression_statement "iVar8 = iVar3 - iVar9;" (assignment_expression "iVar8 = iVar3 - iVar9" identifier = (binary_expression "iVar3 - iVar9" identifier - identifier)) ;) (if_statement "if (iVar4 == 0) {\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }\n      else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }" { (expression_statement "puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);" (assignment_expression "puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1)" identifier = (cast_expression "(undefined1 *)(param_1[6] + iVar9 + *param_1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[6] + iVar9 + *param_1)" ( (binary_expression "param_1[6] + iVar9 + *param_1" (binary_expression "param_1[6] + iVar9" (subscript_expression "param_1[6]" identifier [ number_literal ]) + identifier) + (pointer_expression "*param_1" * identifier)) )))) ;) }) (else_clause "else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }" else (compound_statement "{\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }" { (expression_statement "puVar7 = local_60;" (assignment_expression "puVar7 = local_60" identifier = identifier) ;) (if_statement "if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }" if (parenthesized_expression "(0 < param_1[0x14])" ( (binary_expression "0 < param_1[0x14]" number_literal < (subscript_expression "param_1[0x14]" identifier [ number_literal ])) )) (compound_statement "{\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "puVar7 = local_60;" (assignment_expression "puVar7 = local_60" identifier = identifier) ;) (if_statement "if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }" if (parenthesized_expression "(0 < iVar8)" ( (binary_expression "0 < iVar8" number_literal < identifier) )) (compound_statement "{\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }" { (while_statement "while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }" { (expression_statement "uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));" (assignment_expression "uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]))" identifier = (pointer_expression "*(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]))" * (cast_expression "(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]))" ( (binary_expression "iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6])" identifier + (binary_expression "(uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6])" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(*param_1 + iVar9 + iVar6 + param_1[6])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar9 + iVar6 + param_1[6])" ( (binary_expression "*param_1 + iVar9 + iVar6 + param_1[6]" (binary_expression "*param_1 + iVar9 + iVar6" (binary_expression "*param_1 + iVar9" (pointer_expression "*param_1" * identifier) + identifier) + identifier) + (subscript_expression "param_1[6]" identifier [ number_literal ])) ))))) ))))) ;) (expression_statement "*(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;" (assignment_expression "*(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1" (pointer_expression "*(undefined1 *)(param_1[1] + iVar9 + iVar6)" * (cast_expression "(undefined1 *)(param_1[1] + iVar9 + iVar6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[1] + iVar9 + iVar6)" ( (binary_expression "param_1[1] + iVar9 + iVar6" (binary_expression "param_1[1] + iVar9" (subscript_expression "param_1[1]" identifier [ number_literal ]) + identifier) + identifier) )))) = identifier) ;) (expression_statement "puVar7[iVar6] = uVar1;" (assignment_expression "puVar7[iVar6] = uVar1" (subscript_expression "puVar7[iVar6]" identifier [ identifier ]) = identifier) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = iVar8;" (assignment_expression "iVar4 = iVar8" identifier = identifier) ;) (if_statement "if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }" if (parenthesized_expression "(param_1[0x14] <= iVar8)" ( (binary_expression "param_1[0x14] <= iVar8" (subscript_expression "param_1[0x14]" identifier [ number_literal ]) <= identifier) )) (compound_statement "{\n                iVar4 = param_1[0x14];\n              }" { (expression_statement "iVar4 = param_1[0x14];" (assignment_expression "iVar4 = param_1[0x14]" identifier = (subscript_expression "param_1[0x14]" identifier [ number_literal ])) ;) })) (if_statement "if (iVar4 <= iVar6) break;" if (parenthesized_expression "(iVar4 <= iVar6)" ( (binary_expression "iVar4 <= iVar6" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = param_1[0x10];" (assignment_expression "iVar4 = param_1[0x10]" identifier = (subscript_expression "param_1[0x10]" identifier [ number_literal ])) ;) })) })) })) }))) (expression_statement "iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);" (assignment_expression "iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4)" identifier = (call_expression "FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4)" identifier (argument_list "(&local_64,puVar7,iVar8,param_1 + 4)" ( (pointer_expression "&local_64" & identifier) , identifier , identifier , (binary_expression "param_1 + 4" identifier + number_literal) )))) ;) (if_statement "if (iVar4 - 1U < 0xfffffffe) {\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }" if (parenthesized_expression "(iVar4 - 1U < 0xfffffffe)" ( (binary_expression "iVar4 - 1U < 0xfffffffe" (binary_expression "iVar4 - 1U" identifier - number_literal) < number_literal) )) (compound_statement "{\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }" { (if_statement "if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }" if (parenthesized_expression "(iVar4 == -2)" ( (binary_expression "iVar4 == -2" identifier == number_literal) )) (compound_statement "{\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }" { (if_statement "if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;" 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_00016db0;" goto statement_identifier ;)) (expression_statement "param_1[4] = iVar10;" (assignment_expression "param_1[4] = iVar10" (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 "iVar10 = iVar9;" (assignment_expression "iVar10 = iVar9" identifier = identifier) ;) (break_statement "break;" break ;) })) }) (else_clause "else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }" else (compound_statement "{\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }" { (labeled_statement "LAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);" statement_identifier : (expression_statement "local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);" (assignment_expression "local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6])" identifier = (binary_expression "(uint)*(byte *)(*param_1 + iVar9 + param_1[6])" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(*param_1 + iVar9 + param_1[6])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar9 + param_1[6])" ( (binary_expression "*param_1 + iVar9 + param_1[6]" (binary_expression "*param_1 + iVar9" (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] = iVar10;" (assignment_expression "param_1[4] = iVar10" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 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 "iVar10 = iVar9 + 1;" (assignment_expression "iVar10 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "*(uint *)(iVar2 + iVar9 * 4) = local_64;" (assignment_expression "*(uint *)(iVar2 + iVar9 * 4) = local_64" (pointer_expression "*(uint *)(iVar2 + iVar9 * 4)" * (cast_expression "(uint *)(iVar2 + iVar9 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar9 * 4)" ( (binary_expression "iVar2 + iVar9 * 4" identifier + (binary_expression "iVar9 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "iVar4 = iVar9 + iVar4;" (assignment_expression "iVar4 = iVar9 + iVar4" identifier = (binary_expression "iVar9 + iVar4" identifier + identifier)) ;) (if_statement "if (iVar4 <= iVar10) {\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }" if (parenthesized_expression "(iVar4 <= iVar10)" ( (binary_expression "iVar4 <= iVar10" identifier <= identifier) )) (compound_statement "{\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }" { (expression_statement "iVar9 = iVar10;" (assignment_expression "iVar9 = iVar10" identifier = identifier) ;) (if_statement "if (iVar3 <= iVar10) break;" if (parenthesized_expression "(iVar3 <= iVar10)" ( (binary_expression "iVar3 <= iVar10" identifier <= identifier) )) (break_statement "break;" break ;)) (goto_statement "goto LAB_00016d00;" goto statement_identifier ;) })) (expression_statement "puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);" (assignment_expression "puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4)" identifier = (cast_expression "(undefined4 *)(iVar2 + 4 + iVar9 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4 + iVar9 * 4)" ( (binary_expression "iVar2 + 4 + iVar9 * 4" (binary_expression "iVar2 + 4" identifier + number_literal) + (binary_expression "iVar9 * 4" identifier * number_literal)) )))) ;) (do_statement "do {\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);" do (compound_statement "{\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      }" { (expression_statement "*puVar5 = 0xffffffff;" (assignment_expression "*puVar5 = 0xffffffff" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((undefined4 *)(iVar2 + iVar4 * 4) != puVar5)" ( (binary_expression "(undefined4 *)(iVar2 + iVar4 * 4) != puVar5" (cast_expression "(undefined4 *)(iVar2 + iVar4 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar4 * 4)" ( (binary_expression "iVar2 + iVar4 * 4" identifier + (binary_expression "iVar4 * 4" identifier * number_literal)) ))) != identifier) )) ;) (expression_statement "iVar9 = iVar4;" (assignment_expression "iVar9 = iVar4" identifier = identifier) ;) (expression_statement "iVar10 = iVar4;" (assignment_expression "iVar10 = iVar4" identifier = identifier) ;) }) while (parenthesized_expression "(iVar4 < iVar3)" ( (binary_expression "iVar4 < iVar3" identifier < identifier) )) ;)) })) (expression_statement "param_1[7] = iVar10;" (assignment_expression "param_1[7] = iVar10" (subscript_expression "param_1[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[8] = iVar10;" (assignment_expression "param_1[8] = iVar10" (subscript_expression "param_1[8]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00024b20();\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_00024b20();\n  }" { (expression_statement "FUN_00024b20();" (call_expression "FUN_00024b20()" 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 IDENT ;) (declaration TYPE (pointer_declarator * 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 (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (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 = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) + (pointer_expression * IDENT)) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (subscript_expression IDENT [ LIT ])) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (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 ])) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) })) })) }))) (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 (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))) != IDENT) )) ;) (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_00016cb0(int *param_1)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined1 *puVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  uint local_64;\n  undefined1 local_60 [64];\n  int local_20;\n  \n  iVar10 = 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 (iVar10 < iVar3) {\n    iVar9 = iVar10;\nLAB_00016d00:\n    do {\n      iVar10 = param_1[4];\n      iVar2 = param_1[5];\n      iVar4 = param_1[0x10];\n      iVar8 = iVar3 - iVar9;\n      if (iVar4 == 0) {\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }\n      else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }\n      iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);\n      if (iVar4 - 1U < 0xfffffffe) {\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar10 = iVar9 + 1;\n      *(uint *)(iVar2 + iVar9 * 4) = local_64;\n      iVar4 = iVar9 + iVar4;\n      if (iVar4 <= iVar10) {\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }\n      puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);\n      do {\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);\n      iVar9 = iVar4;\n      iVar10 = iVar4;\n    } while (iVar4 < iVar3);\n  }\n  param_1[7] = iVar10;\n  param_1[8] = iVar10;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00024b20();\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00016cb0(int *param_1)" (identifier "FUN_00016cb0") (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  int iVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined1 *puVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int in_GS_OFFSET;\n  uint local_64;\n  undefined1 local_60 [64];\n  int local_20;\n  \n  iVar10 = 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 (iVar10 < iVar3) {\n    iVar9 = iVar10;\nLAB_00016d00:\n    do {\n      iVar10 = param_1[4];\n      iVar2 = param_1[5];\n      iVar4 = param_1[0x10];\n      iVar8 = iVar3 - iVar9;\n      if (iVar4 == 0) {\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }\n      else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }\n      iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);\n      if (iVar4 - 1U < 0xfffffffe) {\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar10 = iVar9 + 1;\n      *(uint *)(iVar2 + iVar9 * 4) = local_64;\n      iVar4 = iVar9 + iVar4;\n      if (iVar4 <= iVar10) {\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }\n      puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);\n      do {\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);\n      iVar9 = iVar4;\n      iVar10 = iVar4;\n    } while (iVar4 < iVar3);\n  }\n  param_1[7] = iVar10;\n  param_1[8] = iVar10;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00024b20();\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 "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined1 *puVar7;" (type_identifier "undefined1") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (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") (; ";")) (expression_statement "iVar10 = param_1[7];" (assignment_expression "iVar10 = param_1[7]" (identifier "iVar10") (= "=") (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 (iVar10 < iVar3) {\n    iVar9 = iVar10;\nLAB_00016d00:\n    do {\n      iVar10 = param_1[4];\n      iVar2 = param_1[5];\n      iVar4 = param_1[0x10];\n      iVar8 = iVar3 - iVar9;\n      if (iVar4 == 0) {\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }\n      else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }\n      iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);\n      if (iVar4 - 1U < 0xfffffffe) {\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar10 = iVar9 + 1;\n      *(uint *)(iVar2 + iVar9 * 4) = local_64;\n      iVar4 = iVar9 + iVar4;\n      if (iVar4 <= iVar10) {\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }\n      puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);\n      do {\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);\n      iVar9 = iVar4;\n      iVar10 = iVar4;\n    } while (iVar4 < iVar3);\n  }" (if "if") (parenthesized_expression "(iVar10 < iVar3)" (( "(") (binary_expression "iVar10 < iVar3" (identifier "iVar10") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n    iVar9 = iVar10;\nLAB_00016d00:\n    do {\n      iVar10 = param_1[4];\n      iVar2 = param_1[5];\n      iVar4 = param_1[0x10];\n      iVar8 = iVar3 - iVar9;\n      if (iVar4 == 0) {\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }\n      else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }\n      iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);\n      if (iVar4 - 1U < 0xfffffffe) {\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar10 = iVar9 + 1;\n      *(uint *)(iVar2 + iVar9 * 4) = local_64;\n      iVar4 = iVar9 + iVar4;\n      if (iVar4 <= iVar10) {\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }\n      puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);\n      do {\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);\n      iVar9 = iVar4;\n      iVar10 = iVar4;\n    } while (iVar4 < iVar3);\n  }" ({ "{") (expression_statement "iVar9 = iVar10;" (assignment_expression "iVar9 = iVar10" (identifier "iVar9") (= "=") (identifier "iVar10")) (; ";")) (labeled_statement "LAB_00016d00:\n    do {\n      iVar10 = param_1[4];\n      iVar2 = param_1[5];\n      iVar4 = param_1[0x10];\n      iVar8 = iVar3 - iVar9;\n      if (iVar4 == 0) {\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }\n      else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }\n      iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);\n      if (iVar4 - 1U < 0xfffffffe) {\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar10 = iVar9 + 1;\n      *(uint *)(iVar2 + iVar9 * 4) = local_64;\n      iVar4 = iVar9 + iVar4;\n      if (iVar4 <= iVar10) {\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }\n      puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);\n      do {\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);\n      iVar9 = iVar4;\n      iVar10 = iVar4;\n    } while (iVar4 < iVar3);" (statement_identifier "LAB_00016d00") (: ":") (do_statement "do {\n      iVar10 = param_1[4];\n      iVar2 = param_1[5];\n      iVar4 = param_1[0x10];\n      iVar8 = iVar3 - iVar9;\n      if (iVar4 == 0) {\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }\n      else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }\n      iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);\n      if (iVar4 - 1U < 0xfffffffe) {\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar10 = iVar9 + 1;\n      *(uint *)(iVar2 + iVar9 * 4) = local_64;\n      iVar4 = iVar9 + iVar4;\n      if (iVar4 <= iVar10) {\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }\n      puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);\n      do {\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);\n      iVar9 = iVar4;\n      iVar10 = iVar4;\n    } while (iVar4 < iVar3);" (do "do") (compound_statement "{\n      iVar10 = param_1[4];\n      iVar2 = param_1[5];\n      iVar4 = param_1[0x10];\n      iVar8 = iVar3 - iVar9;\n      if (iVar4 == 0) {\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }\n      else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }\n      iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);\n      if (iVar4 - 1U < 0xfffffffe) {\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }\n      iVar2 = param_1[2];\n      iVar10 = iVar9 + 1;\n      *(uint *)(iVar2 + iVar9 * 4) = local_64;\n      iVar4 = iVar9 + iVar4;\n      if (iVar4 <= iVar10) {\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }\n      puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);\n      do {\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);\n      iVar9 = iVar4;\n      iVar10 = iVar4;\n    }" ({ "{") (expression_statement "iVar10 = param_1[4];" (assignment_expression "iVar10 = param_1[4]" (identifier "iVar10") (= "=") (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 "iVar4 = param_1[0x10];" (assignment_expression "iVar4 = param_1[0x10]" (identifier "iVar4") (= "=") (subscript_expression "param_1[0x10]" (identifier "param_1") ([ "[") (number_literal "0x10") (] "]"))) (; ";")) (expression_statement "iVar8 = iVar3 - iVar9;" (assignment_expression "iVar8 = iVar3 - iVar9" (identifier "iVar8") (= "=") (binary_expression "iVar3 - iVar9" (identifier "iVar3") (- "-") (identifier "iVar9"))) (; ";")) (if_statement "if (iVar4 == 0) {\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }\n      else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);\n      }" ({ "{") (expression_statement "puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);" (assignment_expression "puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1)" (identifier "puVar7") (= "=") (cast_expression "(undefined1 *)(param_1[6] + iVar9 + *param_1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[6] + iVar9 + *param_1)" (( "(") (binary_expression "param_1[6] + iVar9 + *param_1" (binary_expression "param_1[6] + iVar9" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (+ "+") (identifier "iVar9")) (+ "+") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")))) (; ";")) (} "}")) (else_clause "else {\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }" (else "else") (compound_statement "{\n        puVar7 = local_60;\n        if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }\n      }" ({ "{") (expression_statement "puVar7 = local_60;" (assignment_expression "puVar7 = local_60" (identifier "puVar7") (= "=") (identifier "local_60")) (; ";")) (if_statement "if (0 < param_1[0x14]) {\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }" (if "if") (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") (] "]"))) () ")")) (compound_statement "{\n          iVar6 = 0;\n          puVar7 = local_60;\n          if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }\n        }" ({ "{") (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar7 = local_60;" (assignment_expression "puVar7 = local_60" (identifier "puVar7") (= "=") (identifier "local_60")) (; ";")) (if_statement "if (0 < iVar8) {\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }" (if "if") (parenthesized_expression "(0 < iVar8)" (( "(") (binary_expression "0 < iVar8" (number_literal "0") (< "<") (identifier "iVar8")) () ")")) (compound_statement "{\n            while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }\n          }" ({ "{") (while_statement "while( true ) {\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n              uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));\n              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;\n              puVar7[iVar6] = uVar1;\n              iVar6 = iVar6 + 1;\n              iVar4 = iVar8;\n              if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }\n              if (iVar4 <= iVar6) break;\n              iVar4 = param_1[0x10];\n            }" ({ "{") (expression_statement "uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));" (assignment_expression "uVar1 = *(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]))" (identifier "uVar1") (= "=") (pointer_expression "*(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]))" (* "*") (cast_expression "(undefined1 *)\n                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]))" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]))" (( "(") (binary_expression "iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6])" (identifier "iVar4") (+ "+") (binary_expression "(uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6])" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(*param_1 + iVar9 + iVar6 + param_1[6])" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + iVar9 + iVar6 + param_1[6])" (( "(") (binary_expression "*param_1 + iVar9 + iVar6 + param_1[6]" (binary_expression "*param_1 + iVar9 + iVar6" (binary_expression "*param_1 + iVar9" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (identifier "iVar9")) (+ "+") (identifier "iVar6")) (+ "+") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))) () ")"))))) () ")"))))) (; ";")) (expression_statement "*(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;" (assignment_expression "*(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1" (pointer_expression "*(undefined1 *)(param_1[1] + iVar9 + iVar6)" (* "*") (cast_expression "(undefined1 *)(param_1[1] + iVar9 + iVar6)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[1] + iVar9 + iVar6)" (( "(") (binary_expression "param_1[1] + iVar9 + iVar6" (binary_expression "param_1[1] + iVar9" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (+ "+") (identifier "iVar9")) (+ "+") (identifier "iVar6")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "puVar7[iVar6] = uVar1;" (assignment_expression "puVar7[iVar6] = uVar1" (subscript_expression "puVar7[iVar6]" (identifier "puVar7") ([ "[") (identifier "iVar6") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar4 = iVar8;" (assignment_expression "iVar4 = iVar8" (identifier "iVar4") (= "=") (identifier "iVar8")) (; ";")) (if_statement "if (param_1[0x14] <= iVar8) {\n                iVar4 = param_1[0x14];\n              }" (if "if") (parenthesized_expression "(param_1[0x14] <= iVar8)" (( "(") (binary_expression "param_1[0x14] <= iVar8" (subscript_expression "param_1[0x14]" (identifier "param_1") ([ "[") (number_literal "0x14") (] "]")) (<= "<=") (identifier "iVar8")) () ")")) (compound_statement "{\n                iVar4 = param_1[0x14];\n              }" ({ "{") (expression_statement "iVar4 = param_1[0x14];" (assignment_expression "iVar4 = param_1[0x14]" (identifier "iVar4") (= "=") (subscript_expression "param_1[0x14]" (identifier "param_1") ([ "[") (number_literal "0x14") (] "]"))) (; ";")) (} "}"))) (if_statement "if (iVar4 <= iVar6) break;" (if "if") (parenthesized_expression "(iVar4 <= iVar6)" (( "(") (binary_expression "iVar4 <= iVar6" (identifier "iVar4") (<= "<=") (identifier "iVar6")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar4 = param_1[0x10];" (assignment_expression "iVar4 = param_1[0x10]" (identifier "iVar4") (= "=") (subscript_expression "param_1[0x10]" (identifier "param_1") ([ "[") (number_literal "0x10") (] "]"))) (; ";")) (} "}"))) (} "}"))) (} "}"))) (} "}")))) (expression_statement "iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);" (assignment_expression "iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4)" (identifier "iVar4") (= "=") (call_expression "FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4)" (identifier "FUN_000163d0") (argument_list "(&local_64,puVar7,iVar8,param_1 + 4)" (( "(") (pointer_expression "&local_64" (& "&") (identifier "local_64")) (, ",") (identifier "puVar7") (, ",") (identifier "iVar8") (, ",") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (; ";")) (if_statement "if (iVar4 - 1U < 0xfffffffe) {\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }\n      else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }" (if "if") (parenthesized_expression "(iVar4 - 1U < 0xfffffffe)" (( "(") (binary_expression "iVar4 - 1U < 0xfffffffe" (binary_expression "iVar4 - 1U" (identifier "iVar4") (- "-") (number_literal "1U")) (< "<") (number_literal "0xfffffffe")) () ")")) (compound_statement "{\n        if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }\n      }" ({ "{") (if_statement "if (iVar4 == -2) {\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }" (if "if") (parenthesized_expression "(iVar4 == -2)" (( "(") (binary_expression "iVar4 == -2" (identifier "iVar4") (== "==") (number_literal "-2")) () ")")) (compound_statement "{\n          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;\n          param_1[4] = iVar10;\n          param_1[5] = iVar2;\n          iVar10 = iVar9;\n          break;\n        }" ({ "{") (if_statement "if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;" (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_00016db0;" (goto "goto") (statement_identifier "LAB_00016db0") (; ";"))) (expression_statement "param_1[4] = iVar10;" (assignment_expression "param_1[4] = iVar10" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "iVar10")) (; ";")) (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 "iVar10 = iVar9;" (assignment_expression "iVar10 = iVar9" (identifier "iVar10") (= "=") (identifier "iVar9")) (; ";")) (break_statement "break;" (break "break") (; ";")) (} "}"))) (} "}")) (else_clause "else {\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }" (else "else") (compound_statement "{\nLAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);\n        if (param_1[0x10] != 0) {\n          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);\n        }\n        param_1[4] = iVar10;\n        iVar4 = 1;\n        param_1[5] = iVar2;\n      }" ({ "{") (labeled_statement "LAB_00016db0:\n        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);" (statement_identifier "LAB_00016db0") (: ":") (expression_statement "local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);" (assignment_expression "local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6])" (identifier "local_64") (= "=") (binary_expression "(uint)*(byte *)(*param_1 + iVar9 + param_1[6])" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(*param_1 + iVar9 + param_1[6])" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + iVar9 + param_1[6])" (( "(") (binary_expression "*param_1 + iVar9 + param_1[6]" (binary_expression "*param_1 + iVar9" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (identifier "iVar9")) (+ "+") (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] = iVar10;" (assignment_expression "param_1[4] = iVar10" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "iVar10")) (; ";")) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" (identifier "iVar4") (= "=") (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 "iVar10 = iVar9 + 1;" (assignment_expression "iVar10 = iVar9 + 1" (identifier "iVar10") (= "=") (binary_expression "iVar9 + 1" (identifier "iVar9") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(uint *)(iVar2 + iVar9 * 4) = local_64;" (assignment_expression "*(uint *)(iVar2 + iVar9 * 4) = local_64" (pointer_expression "*(uint *)(iVar2 + iVar9 * 4)" (* "*") (cast_expression "(uint *)(iVar2 + iVar9 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + iVar9 * 4)" (( "(") (binary_expression "iVar2 + iVar9 * 4" (identifier "iVar2") (+ "+") (binary_expression "iVar9 * 4" (identifier "iVar9") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "local_64")) (; ";")) (expression_statement "iVar4 = iVar9 + iVar4;" (assignment_expression "iVar4 = iVar9 + iVar4" (identifier "iVar4") (= "=") (binary_expression "iVar9 + iVar4" (identifier "iVar9") (+ "+") (identifier "iVar4"))) (; ";")) (if_statement "if (iVar4 <= iVar10) {\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }" (if "if") (parenthesized_expression "(iVar4 <= iVar10)" (( "(") (binary_expression "iVar4 <= iVar10" (identifier "iVar4") (<= "<=") (identifier "iVar10")) () ")")) (compound_statement "{\n        iVar9 = iVar10;\n        if (iVar3 <= iVar10) break;\n        goto LAB_00016d00;\n      }" ({ "{") (expression_statement "iVar9 = iVar10;" (assignment_expression "iVar9 = iVar10" (identifier "iVar9") (= "=") (identifier "iVar10")) (; ";")) (if_statement "if (iVar3 <= iVar10) break;" (if "if") (parenthesized_expression "(iVar3 <= iVar10)" (( "(") (binary_expression "iVar3 <= iVar10" (identifier "iVar3") (<= "<=") (identifier "iVar10")) () ")")) (break_statement "break;" (break "break") (; ";"))) (goto_statement "goto LAB_00016d00;" (goto "goto") (statement_identifier "LAB_00016d00") (; ";")) (} "}"))) (expression_statement "puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);" (assignment_expression "puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)(iVar2 + 4 + iVar9 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4 + iVar9 * 4)" (( "(") (binary_expression "iVar2 + 4 + iVar9 * 4" (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) (+ "+") (binary_expression "iVar9 * 4" (identifier "iVar9") (* "*") (number_literal "4"))) () ")")))) (; ";")) (do_statement "do {\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);" (do "do") (compound_statement "{\n        *puVar5 = 0xffffffff;\n        puVar5 = puVar5 + 1;\n      }" ({ "{") (expression_statement "*puVar5 = 0xffffffff;" (assignment_expression "*puVar5 = 0xffffffff" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" (identifier "puVar5") (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((undefined4 *)(iVar2 + iVar4 * 4) != puVar5)" (( "(") (binary_expression "(undefined4 *)(iVar2 + iVar4 * 4) != puVar5" (cast_expression "(undefined4 *)(iVar2 + iVar4 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + iVar4 * 4)" (( "(") (binary_expression "iVar2 + iVar4 * 4" (identifier "iVar2") (+ "+") (binary_expression "iVar4 * 4" (identifier "iVar4") (* "*") (number_literal "4"))) () ")"))) (!= "!=") (identifier "puVar5")) () ")")) (; ";")) (expression_statement "iVar9 = iVar4;" (assignment_expression "iVar9 = iVar4" (identifier "iVar9") (= "=") (identifier "iVar4")) (; ";")) (expression_statement "iVar10 = iVar4;" (assignment_expression "iVar10 = iVar4" (identifier "iVar10") (= "=") (identifier "iVar4")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 < iVar3)" (( "(") (binary_expression "iVar4 < iVar3" (identifier "iVar4") (< "<") (identifier "iVar3")) () ")")) (; ";"))) (} "}"))) (expression_statement "param_1[7] = iVar10;" (assignment_expression "param_1[7] = iVar10" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (= "=") (identifier "iVar10")) (; ";")) (expression_statement "param_1[8] = iVar10;" (assignment_expression "param_1[8] = iVar10" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (= "=") (identifier "iVar10")) (; ";")) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00024b20();\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_00024b20();\n  }" ({ "{") (expression_statement "FUN_00024b20();" (call_expression "FUN_00024b20()" (identifier "FUN_00024b20") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

void __regparm3 function_1(type_1 *pstr)

{
  int var_11;
  type_2 uVar2;
  type_3 aVar3;
  type_4 *var_9;
  int var_3;
  type_4 *var_10;
  type_2 *s;
  size_t sVar7;
  size_t var_8;
  type_2 *var_5;
  int var_4;
  int var_6;
  int var_2;
  int var_1;
  type_5 wc;
  type_2 buf [64];
  
  var_2 = pstr->valid_len;
  var_11 = *(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_00016d00:
    do {
      var_2 = (pstr->cur_state).__count;
      aVar3 = (pstr->cur_state).__value;
      var_5 = pstr->trans;
      var_8 = var_3 - var_4;
      if (var_5 == (type_2 *)0x0) {
        s = pstr->raw_mbs + pstr->raw_mbs_idx + var_4;
      }
      else {
        s = buf;
        if (0 < pstr->mb_cur_max) {
          var_6 = 0;
          s = buf;
          if (0 < (int)var_8) {
            while( true ) {
              uVar2 = var_5[pstr->raw_mbs[pstr->raw_mbs_idx + var_6 + var_4]];
              pstr->mbs[var_6 + var_4] = uVar2;
              s[var_6] = uVar2;
              var_6 = var_6 + 1;
              sVar7 = var_8;
              if (pstr->mb_cur_max <= (int)var_8) {
                sVar7 = pstr->mb_cur_max;
              }
              if ((int)sVar7 <= var_6) break;
              var_5 = pstr->trans;
            }
          }
        }
      }
      var_8 = var_7(&wc,(char *)s,var_8,&pstr->cur_state);
      if (var_8 - 1 < 0xfffffffe) {
        if (var_8 == 0xfffffffe) {
          if (pstr->len <= pstr->bufs_len) goto LAB_00016db0;
          (pstr->cur_state).__count = var_2;
          (pstr->cur_state).__value = aVar3;
          var_2 = var_4;
          break;
        }
      }
      else {
LAB_00016db0:
        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_8 = 1;
        (pstr->cur_state).__value = aVar3;
      }
      var_9 = pstr->wcs;
      var_2 = var_4 + 1;
      var_9[var_4] = wc;
      var_6 = var_4 + var_8;
      if (var_6 <= var_2) {
        var_4 = var_2;
        if (var_3 <= var_2) break;
        goto LAB_00016d00;
      }
      var_10 = var_9 + var_4 + 1;
      do {
        *var_10 = 0xffffffff;
        var_10 = var_10 + 1;
      } while (var_9 + var_6 != var_10);
      var_4 = var_6;
      var_2 = var_6;
    } while (var_6 < var_3);
  }
  pstr->valid_len = var_2;
  pstr->valid_raw_len = var_2;
  if (var_11 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_12();
  }
  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: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (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)) (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: (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: (identifier) 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 (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (subscript_expression argument: (identifier) index: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (while_statement condition: (parenthesized_expression (true)) 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: (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: (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)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))))))))))) (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 (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: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (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: (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.cx replaced with injection: get_pc_thunk_cx */

void __regparm3 MASKED(int *param_1)

{
  undefined1 uVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  undefined4 *puVar5;
  int iVar6;
  undefined1 *puVar7;
  int iVar8;
  int iVar9;
  int iVar10;
  int in_GS_OFFSET;
  uint local_64;
  undefined1 local_60 [64];
  int local_20;
  
  iVar10 = 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 (iVar10 < iVar3) {
    iVar9 = iVar10;
LAB_00016d00:
    do {
      iVar10 = param_1[4];
      iVar2 = param_1[5];
      iVar4 = param_1[0x10];
      iVar8 = iVar3 - iVar9;
      if (iVar4 == 0) {
        puVar7 = (undefined1 *)(param_1[6] + iVar9 + *param_1);
      }
      else {
        puVar7 = local_60;
        if (0 < param_1[0x14]) {
          iVar6 = 0;
          puVar7 = local_60;
          if (0 < iVar8) {
            while( true ) {
              uVar1 = *(undefined1 *)
                       (iVar4 + (uint)*(byte *)(*param_1 + iVar9 + iVar6 + param_1[6]));
              *(undefined1 *)(param_1[1] + iVar9 + iVar6) = uVar1;
              puVar7[iVar6] = uVar1;
              iVar6 = iVar6 + 1;
              iVar4 = iVar8;
              if (param_1[0x14] <= iVar8) {
                iVar4 = param_1[0x14];
              }
              if (iVar4 <= iVar6) break;
              iVar4 = param_1[0x10];
            }
          }
        }
      }
      iVar4 = FUN_000163d0(&local_64,puVar7,iVar8,param_1 + 4);
      if (iVar4 - 1U < 0xfffffffe) {
        if (iVar4 == -2) {
          if (param_1[0xc] <= param_1[9]) goto LAB_00016db0;
          param_1[4] = iVar10;
          param_1[5] = iVar2;
          iVar10 = iVar9;
          break;
        }
      }
      else {
LAB_00016db0:
        local_64 = (uint)*(byte *)(*param_1 + iVar9 + param_1[6]);
        if (param_1[0x10] != 0) {
          local_64 = (uint)*(byte *)(param_1[0x10] + local_64);
        }
        param_1[4] = iVar10;
        iVar4 = 1;
        param_1[5] = iVar2;
      }
      iVar2 = param_1[2];
      iVar10 = iVar9 + 1;
      *(uint *)(iVar2 + iVar9 * 4) = local_64;
      iVar4 = iVar9 + iVar4;
      if (iVar4 <= iVar10) {
        iVar9 = iVar10;
        if (iVar3 <= iVar10) break;
        goto LAB_00016d00;
      }
      puVar5 = (undefined4 *)(iVar2 + 4 + iVar9 * 4);
      do {
        *puVar5 = 0xffffffff;
        puVar5 = puVar5 + 1;
      } while ((undefined4 *)(iVar2 + iVar4 * 4) != puVar5);
      iVar9 = iVar4;
      iVar10 = iVar4;
    } while (iVar4 < iVar3);
  }
  param_1[7] = iVar10;
  param_1[8] = iVar10;
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00024b20();
  }
  return;
}

