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

void __regparm3 addtok_wc(dfa *dfa,wint_t wc)

{
  int iVar1;
  byte bVar2;
  _Bool _Var3;
  size_t sVar4;
  int iVar5;
  token *ptVar6;
  char *pcVar7;
  char mbprop;
  uint uVar8;
  undefined **ppuVar9;
  uint uVar10;
  size_t sVar11;
  int iVar12;
  int in_GS_OFFSET;
  mbstate_t s;
  uchar buf [16];
  
  ppuVar9 = &_GLOBAL_OFFSET_TABLE_;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  s.__count = 0;
  s.__value.__wch = 0;
  sVar4 = wcrtomb((char *)buf,wc,(mbstate_t *)&s);
  if (sVar4 == 0xffffffff) {
    buf[0] = '\0';
    uVar8 = 0;
    (dfa->lex).cur_mb_len = 1;
  }
  else {
    uVar8 = (uint)buf[0];
    (dfa->lex).cur_mb_len = sVar4;
    if (sVar4 != 1) {
      mbprop = '\x01';
      goto LAB_00021fa9;
    }
  }
  mbprop = '\x03';
LAB_00021fa9:
  iVar12 = 1;
  addtok_mb(dfa,uVar8,mbprop);
  iVar5 = (dfa->lex).cur_mb_len;
  if (1 < iVar5) {
    do {
      uVar10 = dfa->tindex;
      bVar2 = buf[iVar12];
      uVar8 = dfa->talloc;
      if (uVar8 == uVar10) {
        if (dfa->tokens == (token *)0x0) {
          if (uVar8 == 0) {
            sVar11 = 0x40;
            uVar8 = 0x10;
          }
          else {
            sVar11 = uVar8 << 2;
            if (((int)sVar11 < 0) || (uVar8 >> 0x1e != 0)) goto LAB_0002215d;
          }
        }
        else {
          if (0x15555554 < uVar8) goto LAB_0002215d;
          uVar8 = uVar8 + 1 + (uVar8 >> 1);
          sVar11 = uVar8 * 4;
        }
        dfa->talloc = uVar8;
        ptVar6 = (token *)xrealloc(dfa->tokens,sVar11);
        _Var3 = (dfa->localeinfo).multibyte;
        dfa->tokens = ptVar6;
        if (_Var3 != false) {
          if ((int)dfa->talloc < 0) {
LAB_0002215d:
                    /* WARNING: Subroutine does not return */
            xalloc_die();
          }
          pcVar7 = (char *)xrealloc(dfa->multibyte_prop,dfa->talloc);
          uVar10 = dfa->tindex;
          dfa->multibyte_prop = pcVar7;
          goto LAB_00022049;
        }
        uVar10 = dfa->tindex;
      }
      else {
LAB_00022049:
        if ((dfa->localeinfo).multibyte == false) {
          ptVar6 = dfa->tokens;
        }
        else {
          dfa->multibyte_prop[uVar10] = (iVar5 + -1 == iVar12) * '\x02';
          ptVar6 = dfa->tokens;
          uVar10 = dfa->tindex;
        }
      }
      dfa->tindex = uVar10 + 1;
      ptVar6[uVar10] = (uint)bVar2;
      sVar11 = (dfa->parse).depth;
      dfa->nleaves = dfa->nleaves + 1;
      uVar8 = sVar11 + 1;
      (dfa->parse).depth = uVar8;
      if (dfa->depth < uVar8) {
        dfa->depth = uVar8;
      }
      iVar12 = iVar12 + 1;
      addtok(dfa,0x105);
      iVar5 = (dfa->lex).cur_mb_len;
    } while (iVar12 < iVar5);
  }
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local(ppuVar9);
  }
  return;
}



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

void __regparm3 FUN_00021f40(int param_1,wchar_t param_2)

{
  byte bVar1;
  size_t sVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  undefined4 uVar6;
  undefined **ppuVar7;
  uint uVar8;
  int iVar9;
  int in_GS_OFFSET;
  mbstate_t local_38;
  byte local_30 [16];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x21f4b;
  ppuVar7 = &__DT_PLTGOT;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_38.__count = 0;
  local_38.__value.__wch = 0;
  sVar2 = wcrtomb((char *)local_30,param_2,&local_38);
  if (sVar2 == 0xffffffff) {
    local_30[0] = 0;
    *(undefined4 *)(param_1 + 0x274) = 1;
  }
  else {
    *(size_t *)(param_1 + 0x274) = sVar2;
  }
  iVar9 = 1;
  FUN_0001f570(ppuVar7);
  iVar4 = *(int *)(param_1 + 0x274);
  if (1 < iVar4) {
    do {
      uVar8 = *(uint *)(param_1 + 0x29c);
      bVar1 = local_30[iVar9];
      uVar3 = *(uint *)(param_1 + 0x2a0);
      if (uVar3 == uVar8) {
        if (*(int *)(param_1 + 0x298) == 0) {
          if (uVar3 == 0) {
            iVar5 = 0x40;
            uVar3 = 0x10;
          }
          else {
            iVar5 = uVar3 << 2;
            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;
          }
        }
        else {
          if (0x15555554 < uVar3) goto LAB_0002215d;
          uVar3 = uVar3 + 1 + (uVar3 >> 1);
          iVar5 = uVar3 * 4;
        }
        *(uint *)(param_1 + 0x2a0) = uVar3;
        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);
        *(int *)(param_1 + 0x298) = iVar5;
        if (*(char *)(param_1 + 0x330) != '\0') {
          if (*(int *)(param_1 + 0x2a0) < 0) {
LAB_0002215d:
                    /* WARNING: Subroutine does not return */
            FUN_0002f1c0();
          }
          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));
          uVar8 = *(uint *)(param_1 + 0x29c);
          *(undefined4 *)(param_1 + 0x2d0) = uVar6;
          goto LAB_00022049;
        }
        uVar8 = *(uint *)(param_1 + 0x29c);
      }
      else {
LAB_00022049:
        if (*(char *)(param_1 + 0x330) == '\0') {
          iVar5 = *(int *)(param_1 + 0x298);
        }
        else {
          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';
          iVar5 = *(int *)(param_1 + 0x298);
          uVar8 = *(uint *)(param_1 + 0x29c);
        }
      }
      *(uint *)(param_1 + 0x29c) = uVar8 + 1;
      *(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1;
      *(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1;
      uVar3 = *(int *)(param_1 + 0x294) + 1;
      *(uint *)(param_1 + 0x294) = uVar3;
      if (*(uint *)(param_1 + 0x2a4) < uVar3) {
        *(uint *)(param_1 + 0x2a4) = uVar3;
      }
      iVar9 = iVar9 + 1;
      FUN_000221a0();
      iVar4 = *(int *)(param_1 + 0x274);
    } while (iVar9 < iVar4);
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00038830();
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x000142a0
ADD EBX,0x25ea1
SUB ESP,0x40
MOV dword ptr [ESP + 0x4],EBX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x30],EAX
XOR EAX,EAX
LEA EAX,[ESP + 0x18]
MOV dword ptr [ESP + 0x18],0x0
MOV dword ptr [ESP + 0x1c],0x0
PUSH EAX
PUSH EDX
LEA EBP,[ESP + 0x28]
PUSH EBP
CALL 0x00012060
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x00022168
MOVZX EDX,byte ptr [ESP + 0x1c]
MOV dword ptr [ESI + 0x274],EAX
CMP EAX,0x1
JZ 0x00022179
MOV ECX,0x1
MOV EAX,ESI
MOV EDI,0x1
CALL 0x0001f570
MOV EAX,dword ptr [ESI + 0x274]
CMP EAX,0x1
JG 0x0002202a
JMP 0x00022110
MOV EAX,dword ptr [ESI + 0x2d0]
MOV byte ptr [EAX + EBX*0x1],DL
MOV EAX,dword ptr [ESI + 0x298]
MOV EBX,dword ptr [ESI + 0x29c]
LEA EDX,[EBX + 0x1]
MOV dword ptr [ESI + 0x29c],EDX
MOV dword ptr [EAX + EBX*0x4],ECX
MOV EAX,dword ptr [ESI + 0x294]
ADD dword ptr [ESI + 0x2a8],0x1
ADD EAX,0x1
MOV dword ptr [ESI + 0x294],EAX
CMP EAX,dword ptr [ESI + 0x2a4]
JBE 0x0002200d
MOV dword ptr [ESI + 0x2a4],EAX
MOV EAX,ESI
MOV EDX,0x105
ADD EDI,0x1
CALL 0x000221a0
MOV EAX,dword ptr [ESI + 0x274]
CMP EAX,EDI
JLE 0x00022110
SUB EAX,0x1
MOV EBX,dword ptr [ESI + 0x29c]
MOVZX ECX,byte ptr [EBP + EDI*0x1]
CMP EAX,EDI
MOV EAX,dword ptr [ESI + 0x2a0]
SETZ DL
ADD EDX,EDX
CMP EAX,EBX
JZ 0x00022068
CMP byte ptr [ESI + 0x330],0x0
JNZ 0x00021fc8
MOV EAX,dword ptr [ESI + 0x298]
JMP 0x00021fdd
MOV EBX,dword ptr [ESI + 0x298]
MOV dword ptr [ESP + 0x4],EBX
TEST EBX,EBX
JZ 0x00022138
CMP EAX,0x15555554
JA 0x0002215d
MOV EBX,EAX
SHR EBX,0x1
LEA EAX,[EAX + EBX*0x1 + 0x1]
LEA EBX,[EAX*0x4 + 0x0]
MOV byte ptr [ESP + 0xf],DL
SUB ESP,0x8
MOV dword ptr [ESP + 0x10],ECX
MOV dword ptr [ESI + 0x2a0],EAX
PUSH EBX
PUSH dword ptr [ESP + 0x10]
MOV EBX,dword ptr [ESP + 0x10]
CALL 0x0002efd0
ADD ESP,0x10
CMP byte ptr [ESI + 0x330],0x0
MOV ECX,dword ptr [ESP + 0x8]
MOV dword ptr [ESI + 0x298],EAX
JZ 0x00022128
MOV EAX,dword ptr [ESI + 0x2a0]
MOV EBX,dword ptr [ESI + 0x2d0]
MOV dword ptr [ESP + 0x4],ECX
TEST EAX,EAX
JS 0x0002215d
SUB ESP,0x8
PUSH EAX
PUSH EBX
MOV EBX,dword ptr [ESP + 0x10]
CALL 0x0002efd0
ADD ESP,0x10
MOV EBX,dword ptr [ESI + 0x29c]
MOVZX EDX,byte ptr [ESP + 0xf]
MOV dword ptr [ESI + 0x2d0],EAX
MOV ECX,dword ptr [ESP + 0x4]
JMP 0x00022049
MOV EAX,dword ptr [ESP + 0x2c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x00022197
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EBX,dword ptr [ESI + 0x29c]
JMP 0x00021fdd
TEST EAX,EAX
JZ 0x00022188
MOV EBX,EAX
SHR EBX,0x1e
SETNZ BL
MOVZX EBX,BL
MOV dword ptr [ESP + 0x8],EBX
MOV EBX,EAX
SHL EBX,0x2
JS 0x0002215d
CMP dword ptr [ESP + 0x8],0x0
JZ 0x00022094
MOV EBX,dword ptr [ESP]
CALL 0x0002f1c0
MOV byte ptr [ESP + 0x1c],0x0
XOR EDX,EDX
MOV dword ptr [ESI + 0x274],0x1
MOV ECX,0x3
JMP 0x00021fa9
MOV EBX,0x40
MOV EAX,0x10
JMP 0x00022094
CALL 0x00038830
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00021f40(int param_1,wchar_t param_2)\n\n{\n  byte bVar1;\n  size_t sVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined **ppuVar7;\n  uint uVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  mbstate_t local_38;\n  byte local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x21f4b;\n  ppuVar7 = &__DT_PLTGOT;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_38.__count = 0;\n  local_38.__value.__wch = 0;\n  sVar2 = wcrtomb((char *)local_30,param_2,&local_38);\n  if (sVar2 == 0xffffffff) {\n    local_30[0] = 0;\n    *(undefined4 *)(param_1 + 0x274) = 1;\n  }\n  else {\n    *(size_t *)(param_1 + 0x274) = sVar2;\n  }\n  iVar9 = 1;\n  FUN_0001f570(ppuVar7);\n  iVar4 = *(int *)(param_1 + 0x274);\n  if (1 < iVar4) {\n    do {\n      uVar8 = *(uint *)(param_1 + 0x29c);\n      bVar1 = local_30[iVar9];\n      uVar3 = *(uint *)(param_1 + 0x2a0);\n      if (uVar3 == uVar8) {\n        if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }\n        *(uint *)(param_1 + 0x2a0) = uVar3;\n        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);\n        *(int *)(param_1 + 0x298) = iVar5;\n        if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }\n        uVar8 = *(uint *)(param_1 + 0x29c);\n      }\n      else {\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }\n      *(uint *)(param_1 + 0x29c) = uVar8 + 1;\n      *(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1;\n      *(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1;\n      uVar3 = *(int *)(param_1 + 0x294) + 1;\n      *(uint *)(param_1 + 0x294) = uVar3;\n      if (*(uint *)(param_1 + 0x2a4) < uVar3) {\n        *(uint *)(param_1 + 0x2a4) = uVar3;\n      }\n      iVar9 = iVar9 + 1;\n      FUN_000221a0();\n      iVar4 = *(int *)(param_1 + 0x274);\n    } while (iVar9 < iVar4);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00038830();\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00021f40(int param_1,wchar_t param_2)\n\n{\n  byte bVar1;\n  size_t sVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined **ppuVar7;\n  uint uVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  mbstate_t local_38;\n  byte local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x21f4b;\n  ppuVar7 = &__DT_PLTGOT;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_38.__count = 0;\n  local_38.__value.__wch = 0;\n  sVar2 = wcrtomb((char *)local_30,param_2,&local_38);\n  if (sVar2 == 0xffffffff) {\n    local_30[0] = 0;\n    *(undefined4 *)(param_1 + 0x274) = 1;\n  }\n  else {\n    *(size_t *)(param_1 + 0x274) = sVar2;\n  }\n  iVar9 = 1;\n  FUN_0001f570(ppuVar7);\n  iVar4 = *(int *)(param_1 + 0x274);\n  if (1 < iVar4) {\n    do {\n      uVar8 = *(uint *)(param_1 + 0x29c);\n      bVar1 = local_30[iVar9];\n      uVar3 = *(uint *)(param_1 + 0x2a0);\n      if (uVar3 == uVar8) {\n        if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }\n        *(uint *)(param_1 + 0x2a0) = uVar3;\n        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);\n        *(int *)(param_1 + 0x298) = iVar5;\n        if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }\n        uVar8 = *(uint *)(param_1 + 0x29c);\n      }\n      else {\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }\n      *(uint *)(param_1 + 0x29c) = uVar8 + 1;\n      *(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1;\n      *(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1;\n      uVar3 = *(int *)(param_1 + 0x294) + 1;\n      *(uint *)(param_1 + 0x294) = uVar3;\n      if (*(uint *)(param_1 + 0x2a4) < uVar3) {\n        *(uint *)(param_1 + 0x2a4) = uVar3;\n      }\n      iVar9 = iVar9 + 1;\n      FUN_000221a0();\n      iVar4 = *(int *)(param_1 + 0x274);\n    } while (iVar9 < iVar4);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00038830();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00021f40(int param_1,wchar_t param_2)" identifier (parameter_list "(int param_1,wchar_t param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "wchar_t param_2" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  size_t sVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined **ppuVar7;\n  uint uVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  mbstate_t local_38;\n  byte local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x21f4b;\n  ppuVar7 = &__DT_PLTGOT;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_38.__count = 0;\n  local_38.__value.__wch = 0;\n  sVar2 = wcrtomb((char *)local_30,param_2,&local_38);\n  if (sVar2 == 0xffffffff) {\n    local_30[0] = 0;\n    *(undefined4 *)(param_1 + 0x274) = 1;\n  }\n  else {\n    *(size_t *)(param_1 + 0x274) = sVar2;\n  }\n  iVar9 = 1;\n  FUN_0001f570(ppuVar7);\n  iVar4 = *(int *)(param_1 + 0x274);\n  if (1 < iVar4) {\n    do {\n      uVar8 = *(uint *)(param_1 + 0x29c);\n      bVar1 = local_30[iVar9];\n      uVar3 = *(uint *)(param_1 + 0x2a0);\n      if (uVar3 == uVar8) {\n        if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }\n        *(uint *)(param_1 + 0x2a0) = uVar3;\n        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);\n        *(int *)(param_1 + 0x298) = iVar5;\n        if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }\n        uVar8 = *(uint *)(param_1 + 0x29c);\n      }\n      else {\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }\n      *(uint *)(param_1 + 0x29c) = uVar8 + 1;\n      *(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1;\n      *(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1;\n      uVar3 = *(int *)(param_1 + 0x294) + 1;\n      *(uint *)(param_1 + 0x294) = uVar3;\n      if (*(uint *)(param_1 + 0x2a4) < uVar3) {\n        *(uint *)(param_1 + 0x2a4) = uVar3;\n      }\n      iVar9 = iVar9 + 1;\n      FUN_000221a0();\n      iVar4 = *(int *)(param_1 + 0x274);\n    } while (iVar9 < iVar4);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00038830();\n  }\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined **ppuVar7;" type_identifier (pointer_declarator "**ppuVar7" * (pointer_declarator "*ppuVar7" * identifier)) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "mbstate_t local_38;" type_identifier identifier ;) (declaration "byte local_30 [16];" type_identifier (array_declarator "local_30 [16]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x21f4b;" (assignment_expression "uStack_14 = 0x21f4b" identifier = number_literal) ;) (expression_statement "ppuVar7 = &__DT_PLTGOT;" (assignment_expression "ppuVar7 = &__DT_PLTGOT" identifier = (pointer_expression "&__DT_PLTGOT" & identifier)) ;) (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 "local_38.__count = 0;" (assignment_expression "local_38.__count = 0" (field_expression "local_38.__count" identifier . field_identifier) = number_literal) ;) (expression_statement "local_38.__value.__wch = 0;" (assignment_expression "local_38.__value.__wch = 0" (field_expression "local_38.__value.__wch" (field_expression "local_38.__value" identifier . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "sVar2 = wcrtomb((char *)local_30,param_2,&local_38);" (assignment_expression "sVar2 = wcrtomb((char *)local_30,param_2,&local_38)" identifier = (call_expression "wcrtomb((char *)local_30,param_2,&local_38)" identifier (argument_list "((char *)local_30,param_2,&local_38)" ( (cast_expression "(char *)local_30" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier , (pointer_expression "&local_38" & identifier) )))) ;) (if_statement "if (sVar2 == 0xffffffff) {\n    local_30[0] = 0;\n    *(undefined4 *)(param_1 + 0x274) = 1;\n  }\n  else {\n    *(size_t *)(param_1 + 0x274) = sVar2;\n  }" if (parenthesized_expression "(sVar2 == 0xffffffff)" ( (binary_expression "sVar2 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n    local_30[0] = 0;\n    *(undefined4 *)(param_1 + 0x274) = 1;\n  }" { (expression_statement "local_30[0] = 0;" (assignment_expression "local_30[0] = 0" (subscript_expression "local_30[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x274) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x274) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x274)" * (cast_expression "(undefined4 *)(param_1 + 0x274)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x274)" ( (binary_expression "param_1 + 0x274" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    *(size_t *)(param_1 + 0x274) = sVar2;\n  }" else (compound_statement "{\n    *(size_t *)(param_1 + 0x274) = sVar2;\n  }" { (expression_statement "*(size_t *)(param_1 + 0x274) = sVar2;" (assignment_expression "*(size_t *)(param_1 + 0x274) = sVar2" (pointer_expression "*(size_t *)(param_1 + 0x274)" * (cast_expression "(size_t *)(param_1 + 0x274)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x274)" ( (binary_expression "param_1 + 0x274" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" identifier = number_literal) ;) (expression_statement "FUN_0001f570(ppuVar7);" (call_expression "FUN_0001f570(ppuVar7)" identifier (argument_list "(ppuVar7)" ( identifier ))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x274);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x274)" identifier = (pointer_expression "*(int *)(param_1 + 0x274)" * (cast_expression "(int *)(param_1 + 0x274)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x274)" ( (binary_expression "param_1 + 0x274" identifier + number_literal) ))))) ;) (if_statement "if (1 < iVar4) {\n    do {\n      uVar8 = *(uint *)(param_1 + 0x29c);\n      bVar1 = local_30[iVar9];\n      uVar3 = *(uint *)(param_1 + 0x2a0);\n      if (uVar3 == uVar8) {\n        if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }\n        *(uint *)(param_1 + 0x2a0) = uVar3;\n        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);\n        *(int *)(param_1 + 0x298) = iVar5;\n        if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }\n        uVar8 = *(uint *)(param_1 + 0x29c);\n      }\n      else {\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }\n      *(uint *)(param_1 + 0x29c) = uVar8 + 1;\n      *(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1;\n      *(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1;\n      uVar3 = *(int *)(param_1 + 0x294) + 1;\n      *(uint *)(param_1 + 0x294) = uVar3;\n      if (*(uint *)(param_1 + 0x2a4) < uVar3) {\n        *(uint *)(param_1 + 0x2a4) = uVar3;\n      }\n      iVar9 = iVar9 + 1;\n      FUN_000221a0();\n      iVar4 = *(int *)(param_1 + 0x274);\n    } while (iVar9 < iVar4);\n  }" if (parenthesized_expression "(1 < iVar4)" ( (binary_expression "1 < iVar4" number_literal < identifier) )) (compound_statement "{\n    do {\n      uVar8 = *(uint *)(param_1 + 0x29c);\n      bVar1 = local_30[iVar9];\n      uVar3 = *(uint *)(param_1 + 0x2a0);\n      if (uVar3 == uVar8) {\n        if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }\n        *(uint *)(param_1 + 0x2a0) = uVar3;\n        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);\n        *(int *)(param_1 + 0x298) = iVar5;\n        if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }\n        uVar8 = *(uint *)(param_1 + 0x29c);\n      }\n      else {\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }\n      *(uint *)(param_1 + 0x29c) = uVar8 + 1;\n      *(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1;\n      *(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1;\n      uVar3 = *(int *)(param_1 + 0x294) + 1;\n      *(uint *)(param_1 + 0x294) = uVar3;\n      if (*(uint *)(param_1 + 0x2a4) < uVar3) {\n        *(uint *)(param_1 + 0x2a4) = uVar3;\n      }\n      iVar9 = iVar9 + 1;\n      FUN_000221a0();\n      iVar4 = *(int *)(param_1 + 0x274);\n    } while (iVar9 < iVar4);\n  }" { (do_statement "do {\n      uVar8 = *(uint *)(param_1 + 0x29c);\n      bVar1 = local_30[iVar9];\n      uVar3 = *(uint *)(param_1 + 0x2a0);\n      if (uVar3 == uVar8) {\n        if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }\n        *(uint *)(param_1 + 0x2a0) = uVar3;\n        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);\n        *(int *)(param_1 + 0x298) = iVar5;\n        if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }\n        uVar8 = *(uint *)(param_1 + 0x29c);\n      }\n      else {\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }\n      *(uint *)(param_1 + 0x29c) = uVar8 + 1;\n      *(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1;\n      *(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1;\n      uVar3 = *(int *)(param_1 + 0x294) + 1;\n      *(uint *)(param_1 + 0x294) = uVar3;\n      if (*(uint *)(param_1 + 0x2a4) < uVar3) {\n        *(uint *)(param_1 + 0x2a4) = uVar3;\n      }\n      iVar9 = iVar9 + 1;\n      FUN_000221a0();\n      iVar4 = *(int *)(param_1 + 0x274);\n    } while (iVar9 < iVar4);" do (compound_statement "{\n      uVar8 = *(uint *)(param_1 + 0x29c);\n      bVar1 = local_30[iVar9];\n      uVar3 = *(uint *)(param_1 + 0x2a0);\n      if (uVar3 == uVar8) {\n        if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }\n        *(uint *)(param_1 + 0x2a0) = uVar3;\n        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);\n        *(int *)(param_1 + 0x298) = iVar5;\n        if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }\n        uVar8 = *(uint *)(param_1 + 0x29c);\n      }\n      else {\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }\n      *(uint *)(param_1 + 0x29c) = uVar8 + 1;\n      *(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1;\n      *(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1;\n      uVar3 = *(int *)(param_1 + 0x294) + 1;\n      *(uint *)(param_1 + 0x294) = uVar3;\n      if (*(uint *)(param_1 + 0x2a4) < uVar3) {\n        *(uint *)(param_1 + 0x2a4) = uVar3;\n      }\n      iVar9 = iVar9 + 1;\n      FUN_000221a0();\n      iVar4 = *(int *)(param_1 + 0x274);\n    }" { (expression_statement "uVar8 = *(uint *)(param_1 + 0x29c);" (assignment_expression "uVar8 = *(uint *)(param_1 + 0x29c)" identifier = (pointer_expression "*(uint *)(param_1 + 0x29c)" * (cast_expression "(uint *)(param_1 + 0x29c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x29c)" ( (binary_expression "param_1 + 0x29c" identifier + number_literal) ))))) ;) (expression_statement "bVar1 = local_30[iVar9];" (assignment_expression "bVar1 = local_30[iVar9]" identifier = (subscript_expression "local_30[iVar9]" identifier [ identifier ])) ;) (expression_statement "uVar3 = *(uint *)(param_1 + 0x2a0);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x2a0)" identifier = (pointer_expression "*(uint *)(param_1 + 0x2a0)" * (cast_expression "(uint *)(param_1 + 0x2a0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2a0)" ( (binary_expression "param_1 + 0x2a0" identifier + number_literal) ))))) ;) (if_statement "if (uVar3 == uVar8) {\n        if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }\n        *(uint *)(param_1 + 0x2a0) = uVar3;\n        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);\n        *(int *)(param_1 + 0x298) = iVar5;\n        if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }\n        uVar8 = *(uint *)(param_1 + 0x29c);\n      }\n      else {\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }" if (parenthesized_expression "(uVar3 == uVar8)" ( (binary_expression "uVar3 == uVar8" identifier == identifier) )) (compound_statement "{\n        if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }\n        *(uint *)(param_1 + 0x2a0) = uVar3;\n        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);\n        *(int *)(param_1 + 0x298) = iVar5;\n        if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }\n        uVar8 = *(uint *)(param_1 + 0x29c);\n      }" { (if_statement "if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }" if (parenthesized_expression "(*(int *)(param_1 + 0x298) == 0)" ( (binary_expression "*(int *)(param_1 + 0x298) == 0" (pointer_expression "*(int *)(param_1 + 0x298)" * (cast_expression "(int *)(param_1 + 0x298)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x298)" ( (binary_expression "param_1 + 0x298" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }" { (if_statement "if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }" { (expression_statement "iVar5 = 0x40;" (assignment_expression "iVar5 = 0x40" identifier = number_literal) ;) (expression_statement "uVar3 = 0x10;" (assignment_expression "uVar3 = 0x10" identifier = number_literal) ;) }) (else_clause "else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }" else (compound_statement "{\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }" { (expression_statement "iVar5 = uVar3 << 2;" (assignment_expression "iVar5 = uVar3 << 2" identifier = (binary_expression "uVar3 << 2" identifier << number_literal)) ;) (if_statement "if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;" if (parenthesized_expression "((iVar5 < 0) || (uVar3 >> 0x1e != 0))" ( (binary_expression "(iVar5 < 0) || (uVar3 >> 0x1e != 0)" (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) || (parenthesized_expression "(uVar3 >> 0x1e != 0)" ( (binary_expression "uVar3 >> 0x1e != 0" (binary_expression "uVar3 >> 0x1e" identifier >> number_literal) != number_literal) ))) )) (goto_statement "goto LAB_0002215d;" goto statement_identifier ;)) }))) }) (else_clause "else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }" else (compound_statement "{\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }" { (if_statement "if (0x15555554 < uVar3) goto LAB_0002215d;" if (parenthesized_expression "(0x15555554 < uVar3)" ( (binary_expression "0x15555554 < uVar3" number_literal < identifier) )) (goto_statement "goto LAB_0002215d;" goto statement_identifier ;)) (expression_statement "uVar3 = uVar3 + 1 + (uVar3 >> 1);" (assignment_expression "uVar3 = uVar3 + 1 + (uVar3 >> 1)" identifier = (binary_expression "uVar3 + 1 + (uVar3 >> 1)" (binary_expression "uVar3 + 1" identifier + number_literal) + (parenthesized_expression "(uVar3 >> 1)" ( (binary_expression "uVar3 >> 1" identifier >> number_literal) )))) ;) (expression_statement "iVar5 = uVar3 * 4;" (assignment_expression "iVar5 = uVar3 * 4" identifier = (binary_expression "uVar3 * 4" identifier * number_literal)) ;) }))) (expression_statement "*(uint *)(param_1 + 0x2a0) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x2a0) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x2a0)" * (cast_expression "(uint *)(param_1 + 0x2a0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2a0)" ( (binary_expression "param_1 + 0x2a0" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);" (assignment_expression "iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5)" identifier = (call_expression "FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5)" identifier (argument_list "(*(int *)(param_1 + 0x298),iVar5)" ( (pointer_expression "*(int *)(param_1 + 0x298)" * (cast_expression "(int *)(param_1 + 0x298)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x298)" ( (binary_expression "param_1 + 0x298" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "*(int *)(param_1 + 0x298) = iVar5;" (assignment_expression "*(int *)(param_1 + 0x298) = iVar5" (pointer_expression "*(int *)(param_1 + 0x298)" * (cast_expression "(int *)(param_1 + 0x298)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x298)" ( (binary_expression "param_1 + 0x298" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }" if (parenthesized_expression "(*(char *)(param_1 + 0x330) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x330) != '\0'" (pointer_expression "*(char *)(param_1 + 0x330)" * (cast_expression "(char *)(param_1 + 0x330)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x330)" ( (binary_expression "param_1 + 0x330" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }" { (if_statement "if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            FUN_0002f1c0();\n          }" if (parenthesized_expression "(*(int *)(param_1 + 0x2a0) < 0)" ( (binary_expression "*(int *)(param_1 + 0x2a0) < 0" (pointer_expression "*(int *)(param_1 + 0x2a0)" * (cast_expression "(int *)(param_1 + 0x2a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2a0)" ( (binary_expression "param_1 + 0x2a0" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\nLAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            FUN_0002f1c0();\n          }" { (labeled_statement "LAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            FUN_0002f1c0();" statement_identifier : comment (expression_statement "FUN_0002f1c0();" (call_expression "FUN_0002f1c0()" identifier (argument_list "()" ( ))) ;)) })) (expression_statement "uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));" (assignment_expression "uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0))" identifier = (call_expression "FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x2d0)" * (cast_expression "(undefined4 *)(param_1 + 0x2d0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2d0)" ( (binary_expression "param_1 + 0x2d0" identifier + number_literal) )))) , (pointer_expression "*(int *)(param_1 + 0x2a0)" * (cast_expression "(int *)(param_1 + 0x2a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2a0)" ( (binary_expression "param_1 + 0x2a0" identifier + number_literal) )))) )))) ;) (expression_statement "uVar8 = *(uint *)(param_1 + 0x29c);" (assignment_expression "uVar8 = *(uint *)(param_1 + 0x29c)" identifier = (pointer_expression "*(uint *)(param_1 + 0x29c)" * (cast_expression "(uint *)(param_1 + 0x29c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x29c)" ( (binary_expression "param_1 + 0x29c" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x2d0) = uVar6;" (assignment_expression "*(undefined4 *)(param_1 + 0x2d0) = uVar6" (pointer_expression "*(undefined4 *)(param_1 + 0x2d0)" * (cast_expression "(undefined4 *)(param_1 + 0x2d0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2d0)" ( (binary_expression "param_1 + 0x2d0" identifier + number_literal) )))) = identifier) ;) (goto_statement "goto LAB_00022049;" goto statement_identifier ;) })) (expression_statement "uVar8 = *(uint *)(param_1 + 0x29c);" (assignment_expression "uVar8 = *(uint *)(param_1 + 0x29c)" identifier = (pointer_expression "*(uint *)(param_1 + 0x29c)" * (cast_expression "(uint *)(param_1 + 0x29c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x29c)" ( (binary_expression "param_1 + 0x29c" identifier + number_literal) ))))) ;) }) (else_clause "else {\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }" else (compound_statement "{\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }" { (labeled_statement "LAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }" statement_identifier : (if_statement "if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }" if (parenthesized_expression "(*(char *)(param_1 + 0x330) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x330) == '\0'" (pointer_expression "*(char *)(param_1 + 0x330)" * (cast_expression "(char *)(param_1 + 0x330)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x330)" ( (binary_expression "param_1 + 0x330" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar5 = *(int *)(param_1 + 0x298);\n        }" { (expression_statement "iVar5 = *(int *)(param_1 + 0x298);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x298)" identifier = (pointer_expression "*(int *)(param_1 + 0x298)" * (cast_expression "(int *)(param_1 + 0x298)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x298)" ( (binary_expression "param_1 + 0x298" identifier + number_literal) ))))) ;) }) (else_clause "else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }" else (compound_statement "{\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }" { (expression_statement "*(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';" (assignment_expression "*(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02'" (pointer_expression "*(char *)(*(int *)(param_1 + 0x2d0) + uVar8)" * (cast_expression "(char *)(*(int *)(param_1 + 0x2d0) + uVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x2d0) + uVar8)" ( (binary_expression "*(int *)(param_1 + 0x2d0) + uVar8" (pointer_expression "*(int *)(param_1 + 0x2d0)" * (cast_expression "(int *)(param_1 + 0x2d0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2d0)" ( (binary_expression "param_1 + 0x2d0" identifier + number_literal) )))) + identifier) )))) = (binary_expression "(iVar4 + -1 == iVar9) * '\x02'" (parenthesized_expression "(iVar4 + -1 == iVar9)" ( (binary_expression "iVar4 + -1 == iVar9" (binary_expression "iVar4 + -1" identifier + number_literal) == identifier) )) * (char_literal "'\x02'" ' escape_sequence '))) ;) (expression_statement "iVar5 = *(int *)(param_1 + 0x298);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x298)" identifier = (pointer_expression "*(int *)(param_1 + 0x298)" * (cast_expression "(int *)(param_1 + 0x298)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x298)" ( (binary_expression "param_1 + 0x298" identifier + number_literal) ))))) ;) (expression_statement "uVar8 = *(uint *)(param_1 + 0x29c);" (assignment_expression "uVar8 = *(uint *)(param_1 + 0x29c)" identifier = (pointer_expression "*(uint *)(param_1 + 0x29c)" * (cast_expression "(uint *)(param_1 + 0x29c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x29c)" ( (binary_expression "param_1 + 0x29c" identifier + number_literal) ))))) ;) })))) }))) (expression_statement "*(uint *)(param_1 + 0x29c) = uVar8 + 1;" (assignment_expression "*(uint *)(param_1 + 0x29c) = uVar8 + 1" (pointer_expression "*(uint *)(param_1 + 0x29c)" * (cast_expression "(uint *)(param_1 + 0x29c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x29c)" ( (binary_expression "param_1 + 0x29c" identifier + number_literal) )))) = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) (expression_statement "*(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1;" (assignment_expression "*(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1" (pointer_expression "*(uint *)(iVar5 + uVar8 * 4)" * (cast_expression "(uint *)(iVar5 + uVar8 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + uVar8 * 4)" ( (binary_expression "iVar5 + uVar8 * 4" identifier + (binary_expression "uVar8 * 4" identifier * number_literal)) )))) = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "*(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1;" (assignment_expression "*(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1" (pointer_expression "*(int *)(param_1 + 0x2a8)" * (cast_expression "(int *)(param_1 + 0x2a8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2a8)" ( (binary_expression "param_1 + 0x2a8" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x2a8) + 1" (pointer_expression "*(int *)(param_1 + 0x2a8)" * (cast_expression "(int *)(param_1 + 0x2a8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2a8)" ( (binary_expression "param_1 + 0x2a8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "uVar3 = *(int *)(param_1 + 0x294) + 1;" (assignment_expression "uVar3 = *(int *)(param_1 + 0x294) + 1" identifier = (binary_expression "*(int *)(param_1 + 0x294) + 1" (pointer_expression "*(int *)(param_1 + 0x294)" * (cast_expression "(int *)(param_1 + 0x294)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x294)" ( (binary_expression "param_1 + 0x294" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x294) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x294) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x294)" * (cast_expression "(uint *)(param_1 + 0x294)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x294)" ( (binary_expression "param_1 + 0x294" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(uint *)(param_1 + 0x2a4) < uVar3) {\n        *(uint *)(param_1 + 0x2a4) = uVar3;\n      }" if (parenthesized_expression "(*(uint *)(param_1 + 0x2a4) < uVar3)" ( (binary_expression "*(uint *)(param_1 + 0x2a4) < uVar3" (pointer_expression "*(uint *)(param_1 + 0x2a4)" * (cast_expression "(uint *)(param_1 + 0x2a4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2a4)" ( (binary_expression "param_1 + 0x2a4" identifier + number_literal) )))) < identifier) )) (compound_statement "{\n        *(uint *)(param_1 + 0x2a4) = uVar3;\n      }" { (expression_statement "*(uint *)(param_1 + 0x2a4) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x2a4) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x2a4)" * (cast_expression "(uint *)(param_1 + 0x2a4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2a4)" ( (binary_expression "param_1 + 0x2a4" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "FUN_000221a0();" (call_expression "FUN_000221a0()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x274);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x274)" identifier = (pointer_expression "*(int *)(param_1 + 0x274)" * (cast_expression "(int *)(param_1 + 0x274)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x274)" ( (binary_expression "param_1 + 0x274" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(iVar9 < iVar4)" ( (binary_expression "iVar9 < iVar4" identifier < identifier) )) ;) })) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00038830();\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_00038830();\n  }" { comment (expression_statement "FUN_00038830();" (call_expression "FUN_00038830()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 addtok_wc(dfa *dfa,wint_t wc)\n\n{\n  int iVar1;\n  byte bVar2;\n  _Bool _Var3;\n  size_t sVar4;\n  int iVar5;\n  token *ptVar6;\n  char *pcVar7;\n  char mbprop;\n  uint uVar8;\n  undefined **ppuVar9;\n  uint uVar10;\n  size_t sVar11;\n  int iVar12;\n  int in_GS_OFFSET;\n  mbstate_t s;\n  uchar buf [16];\n  \n  ppuVar9 = &_GLOBAL_OFFSET_TABLE_;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  s.__count = 0;\n  s.__value.__wch = 0;\n  sVar4 = wcrtomb((char *)buf,wc,(mbstate_t *)&s);\n  if (sVar4 == 0xffffffff) {\n    buf[0] = '\0';\n    uVar8 = 0;\n    (dfa->lex).cur_mb_len = 1;\n  }\n  else {\n    uVar8 = (uint)buf[0];\n    (dfa->lex).cur_mb_len = sVar4;\n    if (sVar4 != 1) {\n      mbprop = '\x01';\n      goto LAB_00021fa9;\n    }\n  }\n  mbprop = '\x03';\nLAB_00021fa9:\n  iVar12 = 1;\n  addtok_mb(dfa,uVar8,mbprop);\n  iVar5 = (dfa->lex).cur_mb_len;\n  if (1 < iVar5) {\n    do {\n      uVar10 = dfa->tindex;\n      bVar2 = buf[iVar12];\n      uVar8 = dfa->talloc;\n      if (uVar8 == uVar10) {\n        if (dfa->tokens == (token *)0x0) {\n          if (uVar8 == 0) {\n            sVar11 = 0x40;\n            uVar8 = 0x10;\n          }\n          else {\n            sVar11 = uVar8 << 2;\n            if (((int)sVar11 < 0) || (uVar8 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar8) goto LAB_0002215d;\n          uVar8 = uVar8 + 1 + (uVar8 >> 1);\n          sVar11 = uVar8 * 4;\n        }\n        dfa->talloc = uVar8;\n        ptVar6 = (token *)xrealloc(dfa->tokens,sVar11);\n        _Var3 = (dfa->localeinfo).multibyte;\n        dfa->tokens = ptVar6;\n        if (_Var3 != false) {\n          if ((int)dfa->talloc < 0) {\nLAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }\n          pcVar7 = (char *)xrealloc(dfa->multibyte_prop,dfa->talloc);\n          uVar10 = dfa->tindex;\n          dfa->multibyte_prop = pcVar7;\n          goto LAB_00022049;\n        }\n        uVar10 = dfa->tindex;\n      }\n      else {\nLAB_00022049:\n        if ((dfa->localeinfo).multibyte == false) {\n          ptVar6 = dfa->tokens;\n        }\n        else {\n          dfa->multibyte_prop[uVar10] = (iVar5 + -1 == iVar12) * '\x02';\n          ptVar6 = dfa->tokens;\n          uVar10 = dfa->tindex;\n        }\n      }\n      dfa->tindex = uVar10 + 1;\n      ptVar6[uVar10] = (uint)bVar2;\n      sVar11 = (dfa->parse).depth;\n      dfa->nleaves = dfa->nleaves + 1;\n      uVar8 = sVar11 + 1;\n      (dfa->parse).depth = uVar8;\n      if (dfa->depth < uVar8) {\n        dfa->depth = uVar8;\n      }\n      iVar12 = iVar12 + 1;\n      addtok(dfa,0x105);\n      iVar5 = (dfa->lex).cur_mb_len;\n    } while (iVar12 < iVar5);\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local(ppuVar9);\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 addtok_wc(dfa *dfa,wint_t wc)\n\n{\n  int iVar1;\n  byte bVar2;\n  _Bool _Var3;\n  size_t sVar4;\n  int iVar5;\n  token *ptVar6;\n  char *pcVar7;\n  char mbprop;\n  uint uVar8;\n  undefined **ppuVar9;\n  uint uVar10;\n  size_t sVar11;\n  int iVar12;\n  int in_GS_OFFSET;\n  mbstate_t s;\n  uchar buf [16];\n  \n  ppuVar9 = &_GLOBAL_OFFSET_TABLE_;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  s.__count = 0;\n  s.__value.__wch = 0;\n  sVar4 = wcrtomb((char *)buf,wc,(mbstate_t *)&s);\n  if (sVar4 == 0xffffffff) {\n    buf[0] = '\0';\n    uVar8 = 0;\n    (dfa->lex).cur_mb_len = 1;\n  }\n  else {\n    uVar8 = (uint)buf[0];\n    (dfa->lex).cur_mb_len = sVar4;\n    if (sVar4 != 1) {\n      mbprop = '\x01';\n      goto LAB_00021fa9;\n    }\n  }\n  mbprop = '\x03';\nLAB_00021fa9:\n  iVar12 = 1;\n  addtok_mb(dfa,uVar8,mbprop);\n  iVar5 = (dfa->lex).cur_mb_len;\n  if (1 < iVar5) {\n    do {\n      uVar10 = dfa->tindex;\n      bVar2 = buf[iVar12];\n      uVar8 = dfa->talloc;\n      if (uVar8 == uVar10) {\n        if (dfa->tokens == (token *)0x0) {\n          if (uVar8 == 0) {\n            sVar11 = 0x40;\n            uVar8 = 0x10;\n          }\n          else {\n            sVar11 = uVar8 << 2;\n            if (((int)sVar11 < 0) || (uVar8 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar8) goto LAB_0002215d;\n          uVar8 = uVar8 + 1 + (uVar8 >> 1);\n          sVar11 = uVar8 * 4;\n        }\n        dfa->talloc = uVar8;\n        ptVar6 = (token *)xrealloc(dfa->tokens,sVar11);\n        _Var3 = (dfa->localeinfo).multibyte;\n        dfa->tokens = ptVar6;\n        if (_Var3 != false) {\n          if ((int)dfa->talloc < 0) {\nLAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }\n          pcVar7 = (char *)xrealloc(dfa->multibyte_prop,dfa->talloc);\n          uVar10 = dfa->tindex;\n          dfa->multibyte_prop = pcVar7;\n          goto LAB_00022049;\n        }\n        uVar10 = dfa->tindex;\n      }\n      else {\nLAB_00022049:\n        if ((dfa->localeinfo).multibyte == false) {\n          ptVar6 = dfa->tokens;\n        }\n        else {\n          dfa->multibyte_prop[uVar10] = (iVar5 + -1 == iVar12) * '\x02';\n          ptVar6 = dfa->tokens;\n          uVar10 = dfa->tindex;\n        }\n      }\n      dfa->tindex = uVar10 + 1;\n      ptVar6[uVar10] = (uint)bVar2;\n      sVar11 = (dfa->parse).depth;\n      dfa->nleaves = dfa->nleaves + 1;\n      uVar8 = sVar11 + 1;\n      (dfa->parse).depth = uVar8;\n      if (dfa->depth < uVar8) {\n        dfa->depth = uVar8;\n      }\n      iVar12 = iVar12 + 1;\n      addtok(dfa,0x105);\n      iVar5 = (dfa->lex).cur_mb_len;\n    } while (iVar12 < iVar5);\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local(ppuVar9);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "addtok_wc(dfa *dfa,wint_t wc)" identifier (parameter_list "(dfa *dfa,wint_t wc)" ( (parameter_declaration "dfa *dfa" type_identifier (pointer_declarator "*dfa" * identifier)) , (parameter_declaration "wint_t wc" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  byte bVar2;\n  _Bool _Var3;\n  size_t sVar4;\n  int iVar5;\n  token *ptVar6;\n  char *pcVar7;\n  char mbprop;\n  uint uVar8;\n  undefined **ppuVar9;\n  uint uVar10;\n  size_t sVar11;\n  int iVar12;\n  int in_GS_OFFSET;\n  mbstate_t s;\n  uchar buf [16];\n  \n  ppuVar9 = &_GLOBAL_OFFSET_TABLE_;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  s.__count = 0;\n  s.__value.__wch = 0;\n  sVar4 = wcrtomb((char *)buf,wc,(mbstate_t *)&s);\n  if (sVar4 == 0xffffffff) {\n    buf[0] = '\0';\n    uVar8 = 0;\n    (dfa->lex).cur_mb_len = 1;\n  }\n  else {\n    uVar8 = (uint)buf[0];\n    (dfa->lex).cur_mb_len = sVar4;\n    if (sVar4 != 1) {\n      mbprop = '\x01';\n      goto LAB_00021fa9;\n    }\n  }\n  mbprop = '\x03';\nLAB_00021fa9:\n  iVar12 = 1;\n  addtok_mb(dfa,uVar8,mbprop);\n  iVar5 = (dfa->lex).cur_mb_len;\n  if (1 < iVar5) {\n    do {\n      uVar10 = dfa->tindex;\n      bVar2 = buf[iVar12];\n      uVar8 = dfa->talloc;\n      if (uVar8 == uVar10) {\n        if (dfa->tokens == (token *)0x0) {\n          if (uVar8 == 0) {\n            sVar11 = 0x40;\n            uVar8 = 0x10;\n          }\n          else {\n            sVar11 = uVar8 << 2;\n            if (((int)sVar11 < 0) || (uVar8 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar8) goto LAB_0002215d;\n          uVar8 = uVar8 + 1 + (uVar8 >> 1);\n          sVar11 = uVar8 * 4;\n        }\n        dfa->talloc = uVar8;\n        ptVar6 = (token *)xrealloc(dfa->tokens,sVar11);\n        _Var3 = (dfa->localeinfo).multibyte;\n        dfa->tokens = ptVar6;\n        if (_Var3 != false) {\n          if ((int)dfa->talloc < 0) {\nLAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }\n          pcVar7 = (char *)xrealloc(dfa->multibyte_prop,dfa->talloc);\n          uVar10 = dfa->tindex;\n          dfa->multibyte_prop = pcVar7;\n          goto LAB_00022049;\n        }\n        uVar10 = dfa->tindex;\n      }\n      else {\nLAB_00022049:\n        if ((dfa->localeinfo).multibyte == false) {\n          ptVar6 = dfa->tokens;\n        }\n        else {\n          dfa->multibyte_prop[uVar10] = (iVar5 + -1 == iVar12) * '\x02';\n          ptVar6 = dfa->tokens;\n          uVar10 = dfa->tindex;\n        }\n      }\n      dfa->tindex = uVar10 + 1;\n      ptVar6[uVar10] = (uint)bVar2;\n      sVar11 = (dfa->parse).depth;\n      dfa->nleaves = dfa->nleaves + 1;\n      uVar8 = sVar11 + 1;\n      (dfa->parse).depth = uVar8;\n      if (dfa->depth < uVar8) {\n        dfa->depth = uVar8;\n      }\n      iVar12 = iVar12 + 1;\n      addtok(dfa,0x105);\n      iVar5 = (dfa->lex).cur_mb_len;\n    } while (iVar12 < iVar5);\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local(ppuVar9);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "_Bool _Var3;" type_identifier identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "token *ptVar6;" type_identifier (pointer_declarator "*ptVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "char mbprop;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined **ppuVar9;" type_identifier (pointer_declarator "**ppuVar9" * (pointer_declarator "*ppuVar9" * identifier)) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "size_t sVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "mbstate_t s;" type_identifier identifier ;) (declaration "uchar buf [16];" type_identifier (array_declarator "buf [16]" identifier [ number_literal ]) ;) (expression_statement "ppuVar9 = &_GLOBAL_OFFSET_TABLE_;" (assignment_expression "ppuVar9 = &_GLOBAL_OFFSET_TABLE_" identifier = (pointer_expression "&_GLOBAL_OFFSET_TABLE_" & 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 "s.__count = 0;" (assignment_expression "s.__count = 0" (field_expression "s.__count" identifier . field_identifier) = number_literal) ;) (expression_statement "s.__value.__wch = 0;" (assignment_expression "s.__value.__wch = 0" (field_expression "s.__value.__wch" (field_expression "s.__value" identifier . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "sVar4 = wcrtomb((char *)buf,wc,(mbstate_t *)&s);" (assignment_expression "sVar4 = wcrtomb((char *)buf,wc,(mbstate_t *)&s)" identifier = (call_expression "wcrtomb((char *)buf,wc,(mbstate_t *)&s)" identifier (argument_list "((char *)buf,wc,(mbstate_t *)&s)" ( (cast_expression "(char *)buf" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier , (cast_expression "(mbstate_t *)&s" ( (type_descriptor "mbstate_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&s" & identifier)) )))) ;) (if_statement "if (sVar4 == 0xffffffff) {\n    buf[0] = '\0';\n    uVar8 = 0;\n    (dfa->lex).cur_mb_len = 1;\n  }\n  else {\n    uVar8 = (uint)buf[0];\n    (dfa->lex).cur_mb_len = sVar4;\n    if (sVar4 != 1) {\n      mbprop = '\x01';\n      goto LAB_00021fa9;\n    }\n  }" if (parenthesized_expression "(sVar4 == 0xffffffff)" ( (binary_expression "sVar4 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n    buf[0] = '\0';\n    uVar8 = 0;\n    (dfa->lex).cur_mb_len = 1;\n  }" { (expression_statement "buf[0] = '\0';" (assignment_expression "buf[0] = '\0'" (subscript_expression "buf[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "(dfa->lex).cur_mb_len = 1;" (assignment_expression "(dfa->lex).cur_mb_len = 1" (field_expression "(dfa->lex).cur_mb_len" (parenthesized_expression "(dfa->lex)" ( (field_expression "dfa->lex" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) }) (else_clause "else {\n    uVar8 = (uint)buf[0];\n    (dfa->lex).cur_mb_len = sVar4;\n    if (sVar4 != 1) {\n      mbprop = '\x01';\n      goto LAB_00021fa9;\n    }\n  }" else (compound_statement "{\n    uVar8 = (uint)buf[0];\n    (dfa->lex).cur_mb_len = sVar4;\n    if (sVar4 != 1) {\n      mbprop = '\x01';\n      goto LAB_00021fa9;\n    }\n  }" { (expression_statement "uVar8 = (uint)buf[0];" (assignment_expression "uVar8 = (uint)buf[0]" identifier = (cast_expression "(uint)buf[0]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "buf[0]" identifier [ number_literal ]))) ;) (expression_statement "(dfa->lex).cur_mb_len = sVar4;" (assignment_expression "(dfa->lex).cur_mb_len = sVar4" (field_expression "(dfa->lex).cur_mb_len" (parenthesized_expression "(dfa->lex)" ( (field_expression "dfa->lex" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (if_statement "if (sVar4 != 1) {\n      mbprop = '\x01';\n      goto LAB_00021fa9;\n    }" if (parenthesized_expression "(sVar4 != 1)" ( (binary_expression "sVar4 != 1" identifier != number_literal) )) (compound_statement "{\n      mbprop = '\x01';\n      goto LAB_00021fa9;\n    }" { (expression_statement "mbprop = '\x01';" (assignment_expression "mbprop = '\x01'" identifier = (char_literal "'\x01'" ' escape_sequence ')) ;) (goto_statement "goto LAB_00021fa9;" goto statement_identifier ;) })) }))) (expression_statement "mbprop = '\x03';" (assignment_expression "mbprop = '\x03'" identifier = (char_literal "'\x03'" ' escape_sequence ')) ;) (labeled_statement "LAB_00021fa9:\n  iVar12 = 1;" statement_identifier : (expression_statement "iVar12 = 1;" (assignment_expression "iVar12 = 1" identifier = number_literal) ;)) (expression_statement "addtok_mb(dfa,uVar8,mbprop);" (call_expression "addtok_mb(dfa,uVar8,mbprop)" identifier (argument_list "(dfa,uVar8,mbprop)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar5 = (dfa->lex).cur_mb_len;" (assignment_expression "iVar5 = (dfa->lex).cur_mb_len" identifier = (field_expression "(dfa->lex).cur_mb_len" (parenthesized_expression "(dfa->lex)" ( (field_expression "dfa->lex" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if (1 < iVar5) {\n    do {\n      uVar10 = dfa->tindex;\n      bVar2 = buf[iVar12];\n      uVar8 = dfa->talloc;\n      if (uVar8 == uVar10) {\n        if (dfa->tokens == (token *)0x0) {\n          if (uVar8 == 0) {\n            sVar11 = 0x40;\n            uVar8 = 0x10;\n          }\n          else {\n            sVar11 = uVar8 << 2;\n            if (((int)sVar11 < 0) || (uVar8 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar8) goto LAB_0002215d;\n          uVar8 = uVar8 + 1 + (uVar8 >> 1);\n          sVar11 = uVar8 * 4;\n        }\n        dfa->talloc = uVar8;\n        ptVar6 = (token *)xrealloc(dfa->tokens,sVar11);\n        _Var3 = (dfa->localeinfo).multibyte;\n        dfa->tokens = ptVar6;\n        if (_Var3 != false) {\n          if ((int)dfa->talloc < 0) {\nLAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }\n          pcVar7 = (char *)xrealloc(dfa->multibyte_prop,dfa->talloc);\n          uVar10 = dfa->tindex;\n          dfa->multibyte_prop = pcVar7;\n          goto LAB_00022049;\n        }\n        uVar10 = dfa->tindex;\n      }\n      else {\nLAB_00022049:\n        if ((dfa->localeinfo).multibyte == false) {\n          ptVar6 = dfa->tokens;\n        }\n        else {\n          dfa->multibyte_prop[uVar10] = (iVar5 + -1 == iVar12) * '\x02';\n          ptVar6 = dfa->tokens;\n          uVar10 = dfa->tindex;\n        }\n      }\n      dfa->tindex = uVar10 + 1;\n      ptVar6[uVar10] = (uint)bVar2;\n      sVar11 = (dfa->parse).depth;\n      dfa->nleaves = dfa->nleaves + 1;\n      uVar8 = sVar11 + 1;\n      (dfa->parse).depth = uVar8;\n      if (dfa->depth < uVar8) {\n        dfa->depth = uVar8;\n      }\n      iVar12 = iVar12 + 1;\n      addtok(dfa,0x105);\n      iVar5 = (dfa->lex).cur_mb_len;\n    } while (iVar12 < iVar5);\n  }" if (parenthesized_expression "(1 < iVar5)" ( (binary_expression "1 < iVar5" number_literal < identifier) )) (compound_statement "{\n    do {\n      uVar10 = dfa->tindex;\n      bVar2 = buf[iVar12];\n      uVar8 = dfa->talloc;\n      if (uVar8 == uVar10) {\n        if (dfa->tokens == (token *)0x0) {\n          if (uVar8 == 0) {\n            sVar11 = 0x40;\n            uVar8 = 0x10;\n          }\n          else {\n            sVar11 = uVar8 << 2;\n            if (((int)sVar11 < 0) || (uVar8 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar8) goto LAB_0002215d;\n          uVar8 = uVar8 + 1 + (uVar8 >> 1);\n          sVar11 = uVar8 * 4;\n        }\n        dfa->talloc = uVar8;\n        ptVar6 = (token *)xrealloc(dfa->tokens,sVar11);\n        _Var3 = (dfa->localeinfo).multibyte;\n        dfa->tokens = ptVar6;\n        if (_Var3 != false) {\n          if ((int)dfa->talloc < 0) {\nLAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }\n          pcVar7 = (char *)xrealloc(dfa->multibyte_prop,dfa->talloc);\n          uVar10 = dfa->tindex;\n          dfa->multibyte_prop = pcVar7;\n          goto LAB_00022049;\n        }\n        uVar10 = dfa->tindex;\n      }\n      else {\nLAB_00022049:\n        if ((dfa->localeinfo).multibyte == false) {\n          ptVar6 = dfa->tokens;\n        }\n        else {\n          dfa->multibyte_prop[uVar10] = (iVar5 + -1 == iVar12) * '\x02';\n          ptVar6 = dfa->tokens;\n          uVar10 = dfa->tindex;\n        }\n      }\n      dfa->tindex = uVar10 + 1;\n      ptVar6[uVar10] = (uint)bVar2;\n      sVar11 = (dfa->parse).depth;\n      dfa->nleaves = dfa->nleaves + 1;\n      uVar8 = sVar11 + 1;\n      (dfa->parse).depth = uVar8;\n      if (dfa->depth < uVar8) {\n        dfa->depth = uVar8;\n      }\n      iVar12 = iVar12 + 1;\n      addtok(dfa,0x105);\n      iVar5 = (dfa->lex).cur_mb_len;\n    } while (iVar12 < iVar5);\n  }" { (do_statement "do {\n      uVar10 = dfa->tindex;\n      bVar2 = buf[iVar12];\n      uVar8 = dfa->talloc;\n      if (uVar8 == uVar10) {\n        if (dfa->tokens == (token *)0x0) {\n          if (uVar8 == 0) {\n            sVar11 = 0x40;\n            uVar8 = 0x10;\n          }\n          else {\n            sVar11 = uVar8 << 2;\n            if (((int)sVar11 < 0) || (uVar8 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar8) goto LAB_0002215d;\n          uVar8 = uVar8 + 1 + (uVar8 >> 1);\n          sVar11 = uVar8 * 4;\n        }\n        dfa->talloc = uVar8;\n        ptVar6 = (token *)xrealloc(dfa->tokens,sVar11);\n        _Var3 = (dfa->localeinfo).multibyte;\n        dfa->tokens = ptVar6;\n        if (_Var3 != false) {\n          if ((int)dfa->talloc < 0) {\nLAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }\n          pcVar7 = (char *)xrealloc(dfa->multibyte_prop,dfa->talloc);\n          uVar10 = dfa->tindex;\n          dfa->multibyte_prop = pcVar7;\n          goto LAB_00022049;\n        }\n        uVar10 = dfa->tindex;\n      }\n      else {\nLAB_00022049:\n        if ((dfa->localeinfo).multibyte == false) {\n          ptVar6 = dfa->tokens;\n        }\n        else {\n          dfa->multibyte_prop[uVar10] = (iVar5 + -1 == iVar12) * '\x02';\n          ptVar6 = dfa->tokens;\n          uVar10 = dfa->tindex;\n        }\n      }\n      dfa->tindex = uVar10 + 1;\n      ptVar6[uVar10] = (uint)bVar2;\n      sVar11 = (dfa->parse).depth;\n      dfa->nleaves = dfa->nleaves + 1;\n      uVar8 = sVar11 + 1;\n      (dfa->parse).depth = uVar8;\n      if (dfa->depth < uVar8) {\n        dfa->depth = uVar8;\n      }\n      iVar12 = iVar12 + 1;\n      addtok(dfa,0x105);\n      iVar5 = (dfa->lex).cur_mb_len;\n    } while (iVar12 < iVar5);" do (compound_statement "{\n      uVar10 = dfa->tindex;\n      bVar2 = buf[iVar12];\n      uVar8 = dfa->talloc;\n      if (uVar8 == uVar10) {\n        if (dfa->tokens == (token *)0x0) {\n          if (uVar8 == 0) {\n            sVar11 = 0x40;\n            uVar8 = 0x10;\n          }\n          else {\n            sVar11 = uVar8 << 2;\n            if (((int)sVar11 < 0) || (uVar8 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar8) goto LAB_0002215d;\n          uVar8 = uVar8 + 1 + (uVar8 >> 1);\n          sVar11 = uVar8 * 4;\n        }\n        dfa->talloc = uVar8;\n        ptVar6 = (token *)xrealloc(dfa->tokens,sVar11);\n        _Var3 = (dfa->localeinfo).multibyte;\n        dfa->tokens = ptVar6;\n        if (_Var3 != false) {\n          if ((int)dfa->talloc < 0) {\nLAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }\n          pcVar7 = (char *)xrealloc(dfa->multibyte_prop,dfa->talloc);\n          uVar10 = dfa->tindex;\n          dfa->multibyte_prop = pcVar7;\n          goto LAB_00022049;\n        }\n        uVar10 = dfa->tindex;\n      }\n      else {\nLAB_00022049:\n        if ((dfa->localeinfo).multibyte == false) {\n          ptVar6 = dfa->tokens;\n        }\n        else {\n          dfa->multibyte_prop[uVar10] = (iVar5 + -1 == iVar12) * '\x02';\n          ptVar6 = dfa->tokens;\n          uVar10 = dfa->tindex;\n        }\n      }\n      dfa->tindex = uVar10 + 1;\n      ptVar6[uVar10] = (uint)bVar2;\n      sVar11 = (dfa->parse).depth;\n      dfa->nleaves = dfa->nleaves + 1;\n      uVar8 = sVar11 + 1;\n      (dfa->parse).depth = uVar8;\n      if (dfa->depth < uVar8) {\n        dfa->depth = uVar8;\n      }\n      iVar12 = iVar12 + 1;\n      addtok(dfa,0x105);\n      iVar5 = (dfa->lex).cur_mb_len;\n    }" { (expression_statement "uVar10 = dfa->tindex;" (assignment_expression "uVar10 = dfa->tindex" identifier = (field_expression "dfa->tindex" identifier -> field_identifier)) ;) (expression_statement "bVar2 = buf[iVar12];" (assignment_expression "bVar2 = buf[iVar12]" identifier = (subscript_expression "buf[iVar12]" identifier [ identifier ])) ;) (expression_statement "uVar8 = dfa->talloc;" (assignment_expression "uVar8 = dfa->talloc" identifier = (field_expression "dfa->talloc" identifier -> field_identifier)) ;) (if_statement "if (uVar8 == uVar10) {\n        if (dfa->tokens == (token *)0x0) {\n          if (uVar8 == 0) {\n            sVar11 = 0x40;\n            uVar8 = 0x10;\n          }\n          else {\n            sVar11 = uVar8 << 2;\n            if (((int)sVar11 < 0) || (uVar8 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar8) goto LAB_0002215d;\n          uVar8 = uVar8 + 1 + (uVar8 >> 1);\n          sVar11 = uVar8 * 4;\n        }\n        dfa->talloc = uVar8;\n        ptVar6 = (token *)xrealloc(dfa->tokens,sVar11);\n        _Var3 = (dfa->localeinfo).multibyte;\n        dfa->tokens = ptVar6;\n        if (_Var3 != false) {\n          if ((int)dfa->talloc < 0) {\nLAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }\n          pcVar7 = (char *)xrealloc(dfa->multibyte_prop,dfa->talloc);\n          uVar10 = dfa->tindex;\n          dfa->multibyte_prop = pcVar7;\n          goto LAB_00022049;\n        }\n        uVar10 = dfa->tindex;\n      }\n      else {\nLAB_00022049:\n        if ((dfa->localeinfo).multibyte == false) {\n          ptVar6 = dfa->tokens;\n        }\n        else {\n          dfa->multibyte_prop[uVar10] = (iVar5 + -1 == iVar12) * '\x02';\n          ptVar6 = dfa->tokens;\n          uVar10 = dfa->tindex;\n        }\n      }" if (parenthesized_expression "(uVar8 == uVar10)" ( (binary_expression "uVar8 == uVar10" identifier == identifier) )) (compound_statement "{\n        if (dfa->tokens == (token *)0x0) {\n          if (uVar8 == 0) {\n            sVar11 = 0x40;\n            uVar8 = 0x10;\n          }\n          else {\n            sVar11 = uVar8 << 2;\n            if (((int)sVar11 < 0) || (uVar8 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar8) goto LAB_0002215d;\n          uVar8 = uVar8 + 1 + (uVar8 >> 1);\n          sVar11 = uVar8 * 4;\n        }\n        dfa->talloc = uVar8;\n        ptVar6 = (token *)xrealloc(dfa->tokens,sVar11);\n        _Var3 = (dfa->localeinfo).multibyte;\n        dfa->tokens = ptVar6;\n        if (_Var3 != false) {\n          if ((int)dfa->talloc < 0) {\nLAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }\n          pcVar7 = (char *)xrealloc(dfa->multibyte_prop,dfa->talloc);\n          uVar10 = dfa->tindex;\n          dfa->multibyte_prop = pcVar7;\n          goto LAB_00022049;\n        }\n        uVar10 = dfa->tindex;\n      }" { (if_statement "if (dfa->tokens == (token *)0x0) {\n          if (uVar8 == 0) {\n            sVar11 = 0x40;\n            uVar8 = 0x10;\n          }\n          else {\n            sVar11 = uVar8 << 2;\n            if (((int)sVar11 < 0) || (uVar8 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar8) goto LAB_0002215d;\n          uVar8 = uVar8 + 1 + (uVar8 >> 1);\n          sVar11 = uVar8 * 4;\n        }" if (parenthesized_expression "(dfa->tokens == (token *)0x0)" ( (binary_expression "dfa->tokens == (token *)0x0" (field_expression "dfa->tokens" identifier -> field_identifier) == (cast_expression "(token *)0x0" ( (type_descriptor "token *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (uVar8 == 0) {\n            sVar11 = 0x40;\n            uVar8 = 0x10;\n          }\n          else {\n            sVar11 = uVar8 << 2;\n            if (((int)sVar11 < 0) || (uVar8 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }" { (if_statement "if (uVar8 == 0) {\n            sVar11 = 0x40;\n            uVar8 = 0x10;\n          }\n          else {\n            sVar11 = uVar8 << 2;\n            if (((int)sVar11 < 0) || (uVar8 >> 0x1e != 0)) goto LAB_0002215d;\n          }" if (parenthesized_expression "(uVar8 == 0)" ( (binary_expression "uVar8 == 0" identifier == number_literal) )) (compound_statement "{\n            sVar11 = 0x40;\n            uVar8 = 0x10;\n          }" { (expression_statement "sVar11 = 0x40;" (assignment_expression "sVar11 = 0x40" identifier = number_literal) ;) (expression_statement "uVar8 = 0x10;" (assignment_expression "uVar8 = 0x10" identifier = number_literal) ;) }) (else_clause "else {\n            sVar11 = uVar8 << 2;\n            if (((int)sVar11 < 0) || (uVar8 >> 0x1e != 0)) goto LAB_0002215d;\n          }" else (compound_statement "{\n            sVar11 = uVar8 << 2;\n            if (((int)sVar11 < 0) || (uVar8 >> 0x1e != 0)) goto LAB_0002215d;\n          }" { (expression_statement "sVar11 = uVar8 << 2;" (assignment_expression "sVar11 = uVar8 << 2" identifier = (binary_expression "uVar8 << 2" identifier << number_literal)) ;) (if_statement "if (((int)sVar11 < 0) || (uVar8 >> 0x1e != 0)) goto LAB_0002215d;" if (parenthesized_expression "(((int)sVar11 < 0) || (uVar8 >> 0x1e != 0))" ( (binary_expression "((int)sVar11 < 0) || (uVar8 >> 0x1e != 0)" (parenthesized_expression "((int)sVar11 < 0)" ( (binary_expression "(int)sVar11 < 0" (cast_expression "(int)sVar11" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "(uVar8 >> 0x1e != 0)" ( (binary_expression "uVar8 >> 0x1e != 0" (binary_expression "uVar8 >> 0x1e" identifier >> number_literal) != number_literal) ))) )) (goto_statement "goto LAB_0002215d;" goto statement_identifier ;)) }))) }) (else_clause "else {\n          if (0x15555554 < uVar8) goto LAB_0002215d;\n          uVar8 = uVar8 + 1 + (uVar8 >> 1);\n          sVar11 = uVar8 * 4;\n        }" else (compound_statement "{\n          if (0x15555554 < uVar8) goto LAB_0002215d;\n          uVar8 = uVar8 + 1 + (uVar8 >> 1);\n          sVar11 = uVar8 * 4;\n        }" { (if_statement "if (0x15555554 < uVar8) goto LAB_0002215d;" if (parenthesized_expression "(0x15555554 < uVar8)" ( (binary_expression "0x15555554 < uVar8" number_literal < identifier) )) (goto_statement "goto LAB_0002215d;" goto statement_identifier ;)) (expression_statement "uVar8 = uVar8 + 1 + (uVar8 >> 1);" (assignment_expression "uVar8 = uVar8 + 1 + (uVar8 >> 1)" identifier = (binary_expression "uVar8 + 1 + (uVar8 >> 1)" (binary_expression "uVar8 + 1" identifier + number_literal) + (parenthesized_expression "(uVar8 >> 1)" ( (binary_expression "uVar8 >> 1" identifier >> number_literal) )))) ;) (expression_statement "sVar11 = uVar8 * 4;" (assignment_expression "sVar11 = uVar8 * 4" identifier = (binary_expression "uVar8 * 4" identifier * number_literal)) ;) }))) (expression_statement "dfa->talloc = uVar8;" (assignment_expression "dfa->talloc = uVar8" (field_expression "dfa->talloc" identifier -> field_identifier) = identifier) ;) (expression_statement "ptVar6 = (token *)xrealloc(dfa->tokens,sVar11);" (assignment_expression "ptVar6 = (token *)xrealloc(dfa->tokens,sVar11)" identifier = (cast_expression "(token *)xrealloc(dfa->tokens,sVar11)" ( (type_descriptor "token *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(dfa->tokens,sVar11)" identifier (argument_list "(dfa->tokens,sVar11)" ( (field_expression "dfa->tokens" identifier -> field_identifier) , identifier ))))) ;) (expression_statement "_Var3 = (dfa->localeinfo).multibyte;" (assignment_expression "_Var3 = (dfa->localeinfo).multibyte" identifier = (field_expression "(dfa->localeinfo).multibyte" (parenthesized_expression "(dfa->localeinfo)" ( (field_expression "dfa->localeinfo" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "dfa->tokens = ptVar6;" (assignment_expression "dfa->tokens = ptVar6" (field_expression "dfa->tokens" identifier -> field_identifier) = identifier) ;) (if_statement "if (_Var3 != false) {\n          if ((int)dfa->talloc < 0) {\nLAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }\n          pcVar7 = (char *)xrealloc(dfa->multibyte_prop,dfa->talloc);\n          uVar10 = dfa->tindex;\n          dfa->multibyte_prop = pcVar7;\n          goto LAB_00022049;\n        }" if (parenthesized_expression "(_Var3 != false)" ( (binary_expression "_Var3 != false" identifier != false) )) (compound_statement "{\n          if ((int)dfa->talloc < 0) {\nLAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }\n          pcVar7 = (char *)xrealloc(dfa->multibyte_prop,dfa->talloc);\n          uVar10 = dfa->tindex;\n          dfa->multibyte_prop = pcVar7;\n          goto LAB_00022049;\n        }" { (if_statement "if ((int)dfa->talloc < 0) {\nLAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }" if (parenthesized_expression "((int)dfa->talloc < 0)" ( (binary_expression "(int)dfa->talloc < 0" (cast_expression "(int)dfa->talloc" ( (type_descriptor "int" primitive_type) ) (field_expression "dfa->talloc" identifier -> field_identifier)) < number_literal) )) (compound_statement "{\nLAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }" { (labeled_statement "LAB_0002215d:\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();" statement_identifier : comment (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;)) })) (expression_statement "pcVar7 = (char *)xrealloc(dfa->multibyte_prop,dfa->talloc);" (assignment_expression "pcVar7 = (char *)xrealloc(dfa->multibyte_prop,dfa->talloc)" identifier = (cast_expression "(char *)xrealloc(dfa->multibyte_prop,dfa->talloc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(dfa->multibyte_prop,dfa->talloc)" identifier (argument_list "(dfa->multibyte_prop,dfa->talloc)" ( (field_expression "dfa->multibyte_prop" identifier -> field_identifier) , (field_expression "dfa->talloc" identifier -> field_identifier) ))))) ;) (expression_statement "uVar10 = dfa->tindex;" (assignment_expression "uVar10 = dfa->tindex" identifier = (field_expression "dfa->tindex" identifier -> field_identifier)) ;) (expression_statement "dfa->multibyte_prop = pcVar7;" (assignment_expression "dfa->multibyte_prop = pcVar7" (field_expression "dfa->multibyte_prop" identifier -> field_identifier) = identifier) ;) (goto_statement "goto LAB_00022049;" goto statement_identifier ;) })) (expression_statement "uVar10 = dfa->tindex;" (assignment_expression "uVar10 = dfa->tindex" identifier = (field_expression "dfa->tindex" identifier -> field_identifier)) ;) }) (else_clause "else {\nLAB_00022049:\n        if ((dfa->localeinfo).multibyte == false) {\n          ptVar6 = dfa->tokens;\n        }\n        else {\n          dfa->multibyte_prop[uVar10] = (iVar5 + -1 == iVar12) * '\x02';\n          ptVar6 = dfa->tokens;\n          uVar10 = dfa->tindex;\n        }\n      }" else (compound_statement "{\nLAB_00022049:\n        if ((dfa->localeinfo).multibyte == false) {\n          ptVar6 = dfa->tokens;\n        }\n        else {\n          dfa->multibyte_prop[uVar10] = (iVar5 + -1 == iVar12) * '\x02';\n          ptVar6 = dfa->tokens;\n          uVar10 = dfa->tindex;\n        }\n      }" { (labeled_statement "LAB_00022049:\n        if ((dfa->localeinfo).multibyte == false) {\n          ptVar6 = dfa->tokens;\n        }\n        else {\n          dfa->multibyte_prop[uVar10] = (iVar5 + -1 == iVar12) * '\x02';\n          ptVar6 = dfa->tokens;\n          uVar10 = dfa->tindex;\n        }" statement_identifier : (if_statement "if ((dfa->localeinfo).multibyte == false) {\n          ptVar6 = dfa->tokens;\n        }\n        else {\n          dfa->multibyte_prop[uVar10] = (iVar5 + -1 == iVar12) * '\x02';\n          ptVar6 = dfa->tokens;\n          uVar10 = dfa->tindex;\n        }" if (parenthesized_expression "((dfa->localeinfo).multibyte == false)" ( (binary_expression "(dfa->localeinfo).multibyte == false" (field_expression "(dfa->localeinfo).multibyte" (parenthesized_expression "(dfa->localeinfo)" ( (field_expression "dfa->localeinfo" identifier -> field_identifier) )) . field_identifier) == false) )) (compound_statement "{\n          ptVar6 = dfa->tokens;\n        }" { (expression_statement "ptVar6 = dfa->tokens;" (assignment_expression "ptVar6 = dfa->tokens" identifier = (field_expression "dfa->tokens" identifier -> field_identifier)) ;) }) (else_clause "else {\n          dfa->multibyte_prop[uVar10] = (iVar5 + -1 == iVar12) * '\x02';\n          ptVar6 = dfa->tokens;\n          uVar10 = dfa->tindex;\n        }" else (compound_statement "{\n          dfa->multibyte_prop[uVar10] = (iVar5 + -1 == iVar12) * '\x02';\n          ptVar6 = dfa->tokens;\n          uVar10 = dfa->tindex;\n        }" { (expression_statement "dfa->multibyte_prop[uVar10] = (iVar5 + -1 == iVar12) * '\x02';" (assignment_expression "dfa->multibyte_prop[uVar10] = (iVar5 + -1 == iVar12) * '\x02'" (subscript_expression "dfa->multibyte_prop[uVar10]" (field_expression "dfa->multibyte_prop" identifier -> field_identifier) [ identifier ]) = (binary_expression "(iVar5 + -1 == iVar12) * '\x02'" (parenthesized_expression "(iVar5 + -1 == iVar12)" ( (binary_expression "iVar5 + -1 == iVar12" (binary_expression "iVar5 + -1" identifier + number_literal) == identifier) )) * (char_literal "'\x02'" ' escape_sequence '))) ;) (expression_statement "ptVar6 = dfa->tokens;" (assignment_expression "ptVar6 = dfa->tokens" identifier = (field_expression "dfa->tokens" identifier -> field_identifier)) ;) (expression_statement "uVar10 = dfa->tindex;" (assignment_expression "uVar10 = dfa->tindex" identifier = (field_expression "dfa->tindex" identifier -> field_identifier)) ;) })))) }))) (expression_statement "dfa->tindex = uVar10 + 1;" (assignment_expression "dfa->tindex = uVar10 + 1" (field_expression "dfa->tindex" identifier -> field_identifier) = (binary_expression "uVar10 + 1" identifier + number_literal)) ;) (expression_statement "ptVar6[uVar10] = (uint)bVar2;" (assignment_expression "ptVar6[uVar10] = (uint)bVar2" (subscript_expression "ptVar6[uVar10]" identifier [ identifier ]) = (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "sVar11 = (dfa->parse).depth;" (assignment_expression "sVar11 = (dfa->parse).depth" identifier = (field_expression "(dfa->parse).depth" (parenthesized_expression "(dfa->parse)" ( (field_expression "dfa->parse" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "dfa->nleaves = dfa->nleaves + 1;" (assignment_expression "dfa->nleaves = dfa->nleaves + 1" (field_expression "dfa->nleaves" identifier -> field_identifier) = (binary_expression "dfa->nleaves + 1" (field_expression "dfa->nleaves" identifier -> field_identifier) + number_literal)) ;) (expression_statement "uVar8 = sVar11 + 1;" (assignment_expression "uVar8 = sVar11 + 1" identifier = (binary_expression "sVar11 + 1" identifier + number_literal)) ;) (expression_statement "(dfa->parse).depth = uVar8;" (assignment_expression "(dfa->parse).depth = uVar8" (field_expression "(dfa->parse).depth" (parenthesized_expression "(dfa->parse)" ( (field_expression "dfa->parse" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (if_statement "if (dfa->depth < uVar8) {\n        dfa->depth = uVar8;\n      }" if (parenthesized_expression "(dfa->depth < uVar8)" ( (binary_expression "dfa->depth < uVar8" (field_expression "dfa->depth" identifier -> field_identifier) < identifier) )) (compound_statement "{\n        dfa->depth = uVar8;\n      }" { (expression_statement "dfa->depth = uVar8;" (assignment_expression "dfa->depth = uVar8" (field_expression "dfa->depth" identifier -> field_identifier) = identifier) ;) })) (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) (expression_statement "addtok(dfa,0x105);" (call_expression "addtok(dfa,0x105)" identifier (argument_list "(dfa,0x105)" ( identifier , number_literal ))) ;) (expression_statement "iVar5 = (dfa->lex).cur_mb_len;" (assignment_expression "iVar5 = (dfa->lex).cur_mb_len" identifier = (field_expression "(dfa->lex).cur_mb_len" (parenthesized_expression "(dfa->lex)" ( (field_expression "dfa->lex" identifier -> field_identifier) )) . field_identifier)) ;) }) while (parenthesized_expression "(iVar12 < iVar5)" ( (binary_expression "iVar12 < iVar5" identifier < identifier) )) ;) })) (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local(ppuVar9);\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(ppuVar9);\n  }" { comment (expression_statement "__stack_chk_fail_local(ppuVar9);" (call_expression "__stack_chk_fail_local(ppuVar9)" identifier (argument_list "(ppuVar9)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00021f40(int param_1,wchar_t param_2)\n\n{\n  byte bVar1;\n  size_t sVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined **ppuVar7;\n  uint uVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  mbstate_t local_38;\n  byte local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x21f4b;\n  ppuVar7 = &__DT_PLTGOT;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_38.__count = 0;\n  local_38.__value.__wch = 0;\n  sVar2 = wcrtomb((char *)local_30,param_2,&local_38);\n  if (sVar2 == 0xffffffff) {\n    local_30[0] = 0;\n    *(undefined4 *)(param_1 + 0x274) = 1;\n  }\n  else {\n    *(size_t *)(param_1 + 0x274) = sVar2;\n  }\n  iVar9 = 1;\n  FUN_0001f570(ppuVar7);\n  iVar4 = *(int *)(param_1 + 0x274);\n  if (1 < iVar4) {\n    do {\n      uVar8 = *(uint *)(param_1 + 0x29c);\n      bVar1 = local_30[iVar9];\n      uVar3 = *(uint *)(param_1 + 0x2a0);\n      if (uVar3 == uVar8) {\n        if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }\n        *(uint *)(param_1 + 0x2a0) = uVar3;\n        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);\n        *(int *)(param_1 + 0x298) = iVar5;\n        if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    \n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }\n        uVar8 = *(uint *)(param_1 + 0x29c);\n      }\n      else {\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }\n      *(uint *)(param_1 + 0x29c) = uVar8 + 1;\n      *(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1;\n      *(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1;\n      uVar3 = *(int *)(param_1 + 0x294) + 1;\n      *(uint *)(param_1 + 0x294) = uVar3;\n      if (*(uint *)(param_1 + 0x2a4) < uVar3) {\n        *(uint *)(param_1 + 0x2a4) = uVar3;\n      }\n      iVar9 = iVar9 + 1;\n      FUN_000221a0();\n      iVar4 = *(int *)(param_1 + 0x274);\n    } while (iVar9 < iVar4);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00038830();\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00021f40(int param_1,wchar_t param_2)\n\n{\n  byte bVar1;\n  size_t sVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined **ppuVar7;\n  uint uVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  mbstate_t local_38;\n  byte local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x21f4b;\n  ppuVar7 = &__DT_PLTGOT;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_38.__count = 0;\n  local_38.__value.__wch = 0;\n  sVar2 = wcrtomb((char *)local_30,param_2,&local_38);\n  if (sVar2 == 0xffffffff) {\n    local_30[0] = 0;\n    *(undefined4 *)(param_1 + 0x274) = 1;\n  }\n  else {\n    *(size_t *)(param_1 + 0x274) = sVar2;\n  }\n  iVar9 = 1;\n  FUN_0001f570(ppuVar7);\n  iVar4 = *(int *)(param_1 + 0x274);\n  if (1 < iVar4) {\n    do {\n      uVar8 = *(uint *)(param_1 + 0x29c);\n      bVar1 = local_30[iVar9];\n      uVar3 = *(uint *)(param_1 + 0x2a0);\n      if (uVar3 == uVar8) {\n        if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }\n        *(uint *)(param_1 + 0x2a0) = uVar3;\n        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);\n        *(int *)(param_1 + 0x298) = iVar5;\n        if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    \n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }\n        uVar8 = *(uint *)(param_1 + 0x29c);\n      }\n      else {\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }\n      *(uint *)(param_1 + 0x29c) = uVar8 + 1;\n      *(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1;\n      *(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1;\n      uVar3 = *(int *)(param_1 + 0x294) + 1;\n      *(uint *)(param_1 + 0x294) = uVar3;\n      if (*(uint *)(param_1 + 0x2a4) < uVar3) {\n        *(uint *)(param_1 + 0x2a4) = uVar3;\n      }\n      iVar9 = iVar9 + 1;\n      FUN_000221a0();\n      iVar4 = *(int *)(param_1 + 0x274);\n    } while (iVar9 < iVar4);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00038830();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00021f40(int param_1,wchar_t param_2)" identifier (parameter_list "(int param_1,wchar_t param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "wchar_t param_2" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  size_t sVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined **ppuVar7;\n  uint uVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  mbstate_t local_38;\n  byte local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x21f4b;\n  ppuVar7 = &__DT_PLTGOT;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_38.__count = 0;\n  local_38.__value.__wch = 0;\n  sVar2 = wcrtomb((char *)local_30,param_2,&local_38);\n  if (sVar2 == 0xffffffff) {\n    local_30[0] = 0;\n    *(undefined4 *)(param_1 + 0x274) = 1;\n  }\n  else {\n    *(size_t *)(param_1 + 0x274) = sVar2;\n  }\n  iVar9 = 1;\n  FUN_0001f570(ppuVar7);\n  iVar4 = *(int *)(param_1 + 0x274);\n  if (1 < iVar4) {\n    do {\n      uVar8 = *(uint *)(param_1 + 0x29c);\n      bVar1 = local_30[iVar9];\n      uVar3 = *(uint *)(param_1 + 0x2a0);\n      if (uVar3 == uVar8) {\n        if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }\n        *(uint *)(param_1 + 0x2a0) = uVar3;\n        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);\n        *(int *)(param_1 + 0x298) = iVar5;\n        if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    \n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }\n        uVar8 = *(uint *)(param_1 + 0x29c);\n      }\n      else {\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }\n      *(uint *)(param_1 + 0x29c) = uVar8 + 1;\n      *(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1;\n      *(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1;\n      uVar3 = *(int *)(param_1 + 0x294) + 1;\n      *(uint *)(param_1 + 0x294) = uVar3;\n      if (*(uint *)(param_1 + 0x2a4) < uVar3) {\n        *(uint *)(param_1 + 0x2a4) = uVar3;\n      }\n      iVar9 = iVar9 + 1;\n      FUN_000221a0();\n      iVar4 = *(int *)(param_1 + 0x274);\n    } while (iVar9 < iVar4);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00038830();\n  }\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined **ppuVar7;" type_identifier (pointer_declarator "**ppuVar7" * (pointer_declarator "*ppuVar7" * identifier)) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "mbstate_t local_38;" type_identifier identifier ;) (declaration "byte local_30 [16];" type_identifier (array_declarator "local_30 [16]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x21f4b;" (assignment_expression "uStack_14 = 0x21f4b" identifier = number_literal) ;) (expression_statement "ppuVar7 = &__DT_PLTGOT;" (assignment_expression "ppuVar7 = &__DT_PLTGOT" identifier = (pointer_expression "&__DT_PLTGOT" & identifier)) ;) (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 "local_38.__count = 0;" (assignment_expression "local_38.__count = 0" (field_expression "local_38.__count" identifier . field_identifier) = number_literal) ;) (expression_statement "local_38.__value.__wch = 0;" (assignment_expression "local_38.__value.__wch = 0" (field_expression "local_38.__value.__wch" (field_expression "local_38.__value" identifier . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "sVar2 = wcrtomb((char *)local_30,param_2,&local_38);" (assignment_expression "sVar2 = wcrtomb((char *)local_30,param_2,&local_38)" identifier = (call_expression "wcrtomb((char *)local_30,param_2,&local_38)" identifier (argument_list "((char *)local_30,param_2,&local_38)" ( (cast_expression "(char *)local_30" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier , (pointer_expression "&local_38" & identifier) )))) ;) (if_statement "if (sVar2 == 0xffffffff) {\n    local_30[0] = 0;\n    *(undefined4 *)(param_1 + 0x274) = 1;\n  }\n  else {\n    *(size_t *)(param_1 + 0x274) = sVar2;\n  }" if (parenthesized_expression "(sVar2 == 0xffffffff)" ( (binary_expression "sVar2 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n    local_30[0] = 0;\n    *(undefined4 *)(param_1 + 0x274) = 1;\n  }" { (expression_statement "local_30[0] = 0;" (assignment_expression "local_30[0] = 0" (subscript_expression "local_30[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x274) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x274) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x274)" * (cast_expression "(undefined4 *)(param_1 + 0x274)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x274)" ( (binary_expression "param_1 + 0x274" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    *(size_t *)(param_1 + 0x274) = sVar2;\n  }" else (compound_statement "{\n    *(size_t *)(param_1 + 0x274) = sVar2;\n  }" { (expression_statement "*(size_t *)(param_1 + 0x274) = sVar2;" (assignment_expression "*(size_t *)(param_1 + 0x274) = sVar2" (pointer_expression "*(size_t *)(param_1 + 0x274)" * (cast_expression "(size_t *)(param_1 + 0x274)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x274)" ( (binary_expression "param_1 + 0x274" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" identifier = number_literal) ;) (expression_statement "FUN_0001f570(ppuVar7);" (call_expression "FUN_0001f570(ppuVar7)" identifier (argument_list "(ppuVar7)" ( identifier ))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x274);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x274)" identifier = (pointer_expression "*(int *)(param_1 + 0x274)" * (cast_expression "(int *)(param_1 + 0x274)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x274)" ( (binary_expression "param_1 + 0x274" identifier + number_literal) ))))) ;) (if_statement "if (1 < iVar4) {\n    do {\n      uVar8 = *(uint *)(param_1 + 0x29c);\n      bVar1 = local_30[iVar9];\n      uVar3 = *(uint *)(param_1 + 0x2a0);\n      if (uVar3 == uVar8) {\n        if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }\n        *(uint *)(param_1 + 0x2a0) = uVar3;\n        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);\n        *(int *)(param_1 + 0x298) = iVar5;\n        if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    \n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }\n        uVar8 = *(uint *)(param_1 + 0x29c);\n      }\n      else {\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }\n      *(uint *)(param_1 + 0x29c) = uVar8 + 1;\n      *(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1;\n      *(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1;\n      uVar3 = *(int *)(param_1 + 0x294) + 1;\n      *(uint *)(param_1 + 0x294) = uVar3;\n      if (*(uint *)(param_1 + 0x2a4) < uVar3) {\n        *(uint *)(param_1 + 0x2a4) = uVar3;\n      }\n      iVar9 = iVar9 + 1;\n      FUN_000221a0();\n      iVar4 = *(int *)(param_1 + 0x274);\n    } while (iVar9 < iVar4);\n  }" if (parenthesized_expression "(1 < iVar4)" ( (binary_expression "1 < iVar4" number_literal < identifier) )) (compound_statement "{\n    do {\n      uVar8 = *(uint *)(param_1 + 0x29c);\n      bVar1 = local_30[iVar9];\n      uVar3 = *(uint *)(param_1 + 0x2a0);\n      if (uVar3 == uVar8) {\n        if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }\n        *(uint *)(param_1 + 0x2a0) = uVar3;\n        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);\n        *(int *)(param_1 + 0x298) = iVar5;\n        if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    \n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }\n        uVar8 = *(uint *)(param_1 + 0x29c);\n      }\n      else {\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }\n      *(uint *)(param_1 + 0x29c) = uVar8 + 1;\n      *(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1;\n      *(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1;\n      uVar3 = *(int *)(param_1 + 0x294) + 1;\n      *(uint *)(param_1 + 0x294) = uVar3;\n      if (*(uint *)(param_1 + 0x2a4) < uVar3) {\n        *(uint *)(param_1 + 0x2a4) = uVar3;\n      }\n      iVar9 = iVar9 + 1;\n      FUN_000221a0();\n      iVar4 = *(int *)(param_1 + 0x274);\n    } while (iVar9 < iVar4);\n  }" { (do_statement "do {\n      uVar8 = *(uint *)(param_1 + 0x29c);\n      bVar1 = local_30[iVar9];\n      uVar3 = *(uint *)(param_1 + 0x2a0);\n      if (uVar3 == uVar8) {\n        if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }\n        *(uint *)(param_1 + 0x2a0) = uVar3;\n        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);\n        *(int *)(param_1 + 0x298) = iVar5;\n        if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    \n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }\n        uVar8 = *(uint *)(param_1 + 0x29c);\n      }\n      else {\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }\n      *(uint *)(param_1 + 0x29c) = uVar8 + 1;\n      *(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1;\n      *(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1;\n      uVar3 = *(int *)(param_1 + 0x294) + 1;\n      *(uint *)(param_1 + 0x294) = uVar3;\n      if (*(uint *)(param_1 + 0x2a4) < uVar3) {\n        *(uint *)(param_1 + 0x2a4) = uVar3;\n      }\n      iVar9 = iVar9 + 1;\n      FUN_000221a0();\n      iVar4 = *(int *)(param_1 + 0x274);\n    } while (iVar9 < iVar4);" do (compound_statement "{\n      uVar8 = *(uint *)(param_1 + 0x29c);\n      bVar1 = local_30[iVar9];\n      uVar3 = *(uint *)(param_1 + 0x2a0);\n      if (uVar3 == uVar8) {\n        if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }\n        *(uint *)(param_1 + 0x2a0) = uVar3;\n        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);\n        *(int *)(param_1 + 0x298) = iVar5;\n        if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    \n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }\n        uVar8 = *(uint *)(param_1 + 0x29c);\n      }\n      else {\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }\n      *(uint *)(param_1 + 0x29c) = uVar8 + 1;\n      *(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1;\n      *(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1;\n      uVar3 = *(int *)(param_1 + 0x294) + 1;\n      *(uint *)(param_1 + 0x294) = uVar3;\n      if (*(uint *)(param_1 + 0x2a4) < uVar3) {\n        *(uint *)(param_1 + 0x2a4) = uVar3;\n      }\n      iVar9 = iVar9 + 1;\n      FUN_000221a0();\n      iVar4 = *(int *)(param_1 + 0x274);\n    }" { (expression_statement "uVar8 = *(uint *)(param_1 + 0x29c);" (assignment_expression "uVar8 = *(uint *)(param_1 + 0x29c)" identifier = (pointer_expression "*(uint *)(param_1 + 0x29c)" * (cast_expression "(uint *)(param_1 + 0x29c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x29c)" ( (binary_expression "param_1 + 0x29c" identifier + number_literal) ))))) ;) (expression_statement "bVar1 = local_30[iVar9];" (assignment_expression "bVar1 = local_30[iVar9]" identifier = (subscript_expression "local_30[iVar9]" identifier [ identifier ])) ;) (expression_statement "uVar3 = *(uint *)(param_1 + 0x2a0);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x2a0)" identifier = (pointer_expression "*(uint *)(param_1 + 0x2a0)" * (cast_expression "(uint *)(param_1 + 0x2a0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2a0)" ( (binary_expression "param_1 + 0x2a0" identifier + number_literal) ))))) ;) (if_statement "if (uVar3 == uVar8) {\n        if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }\n        *(uint *)(param_1 + 0x2a0) = uVar3;\n        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);\n        *(int *)(param_1 + 0x298) = iVar5;\n        if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    \n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }\n        uVar8 = *(uint *)(param_1 + 0x29c);\n      }\n      else {\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }" if (parenthesized_expression "(uVar3 == uVar8)" ( (binary_expression "uVar3 == uVar8" identifier == identifier) )) (compound_statement "{\n        if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }\n        *(uint *)(param_1 + 0x2a0) = uVar3;\n        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);\n        *(int *)(param_1 + 0x298) = iVar5;\n        if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    \n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }\n        uVar8 = *(uint *)(param_1 + 0x29c);\n      }" { (if_statement "if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }" if (parenthesized_expression "(*(int *)(param_1 + 0x298) == 0)" ( (binary_expression "*(int *)(param_1 + 0x298) == 0" (pointer_expression "*(int *)(param_1 + 0x298)" * (cast_expression "(int *)(param_1 + 0x298)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x298)" ( (binary_expression "param_1 + 0x298" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }" { (if_statement "if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }" { (expression_statement "iVar5 = 0x40;" (assignment_expression "iVar5 = 0x40" identifier = number_literal) ;) (expression_statement "uVar3 = 0x10;" (assignment_expression "uVar3 = 0x10" identifier = number_literal) ;) }) (else_clause "else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }" else (compound_statement "{\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }" { (expression_statement "iVar5 = uVar3 << 2;" (assignment_expression "iVar5 = uVar3 << 2" identifier = (binary_expression "uVar3 << 2" identifier << number_literal)) ;) (if_statement "if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;" if (parenthesized_expression "((iVar5 < 0) || (uVar3 >> 0x1e != 0))" ( (binary_expression "(iVar5 < 0) || (uVar3 >> 0x1e != 0)" (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) || (parenthesized_expression "(uVar3 >> 0x1e != 0)" ( (binary_expression "uVar3 >> 0x1e != 0" (binary_expression "uVar3 >> 0x1e" identifier >> number_literal) != number_literal) ))) )) (goto_statement "goto LAB_0002215d;" goto statement_identifier ;)) }))) }) (else_clause "else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }" else (compound_statement "{\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }" { (if_statement "if (0x15555554 < uVar3) goto LAB_0002215d;" if (parenthesized_expression "(0x15555554 < uVar3)" ( (binary_expression "0x15555554 < uVar3" number_literal < identifier) )) (goto_statement "goto LAB_0002215d;" goto statement_identifier ;)) (expression_statement "uVar3 = uVar3 + 1 + (uVar3 >> 1);" (assignment_expression "uVar3 = uVar3 + 1 + (uVar3 >> 1)" identifier = (binary_expression "uVar3 + 1 + (uVar3 >> 1)" (binary_expression "uVar3 + 1" identifier + number_literal) + (parenthesized_expression "(uVar3 >> 1)" ( (binary_expression "uVar3 >> 1" identifier >> number_literal) )))) ;) (expression_statement "iVar5 = uVar3 * 4;" (assignment_expression "iVar5 = uVar3 * 4" identifier = (binary_expression "uVar3 * 4" identifier * number_literal)) ;) }))) (expression_statement "*(uint *)(param_1 + 0x2a0) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x2a0) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x2a0)" * (cast_expression "(uint *)(param_1 + 0x2a0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2a0)" ( (binary_expression "param_1 + 0x2a0" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);" (assignment_expression "iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5)" identifier = (call_expression "FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5)" identifier (argument_list "(*(int *)(param_1 + 0x298),iVar5)" ( (pointer_expression "*(int *)(param_1 + 0x298)" * (cast_expression "(int *)(param_1 + 0x298)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x298)" ( (binary_expression "param_1 + 0x298" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "*(int *)(param_1 + 0x298) = iVar5;" (assignment_expression "*(int *)(param_1 + 0x298) = iVar5" (pointer_expression "*(int *)(param_1 + 0x298)" * (cast_expression "(int *)(param_1 + 0x298)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x298)" ( (binary_expression "param_1 + 0x298" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    \n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }" if (parenthesized_expression "(*(char *)(param_1 + 0x330) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x330) != '\0'" (pointer_expression "*(char *)(param_1 + 0x330)" * (cast_expression "(char *)(param_1 + 0x330)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x330)" ( (binary_expression "param_1 + 0x330" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    \n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }" { (if_statement "if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    \n            FUN_0002f1c0();\n          }" if (parenthesized_expression "(*(int *)(param_1 + 0x2a0) < 0)" ( (binary_expression "*(int *)(param_1 + 0x2a0) < 0" (pointer_expression "*(int *)(param_1 + 0x2a0)" * (cast_expression "(int *)(param_1 + 0x2a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2a0)" ( (binary_expression "param_1 + 0x2a0" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\nLAB_0002215d:\n                    \n            FUN_0002f1c0();\n          }" { (labeled_statement "LAB_0002215d:\n                    \n            FUN_0002f1c0();" statement_identifier : (expression_statement "FUN_0002f1c0();" (call_expression "FUN_0002f1c0()" identifier (argument_list "()" ( ))) ;)) })) (expression_statement "uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));" (assignment_expression "uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0))" identifier = (call_expression "FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x2d0)" * (cast_expression "(undefined4 *)(param_1 + 0x2d0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2d0)" ( (binary_expression "param_1 + 0x2d0" identifier + number_literal) )))) , (pointer_expression "*(int *)(param_1 + 0x2a0)" * (cast_expression "(int *)(param_1 + 0x2a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2a0)" ( (binary_expression "param_1 + 0x2a0" identifier + number_literal) )))) )))) ;) (expression_statement "uVar8 = *(uint *)(param_1 + 0x29c);" (assignment_expression "uVar8 = *(uint *)(param_1 + 0x29c)" identifier = (pointer_expression "*(uint *)(param_1 + 0x29c)" * (cast_expression "(uint *)(param_1 + 0x29c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x29c)" ( (binary_expression "param_1 + 0x29c" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x2d0) = uVar6;" (assignment_expression "*(undefined4 *)(param_1 + 0x2d0) = uVar6" (pointer_expression "*(undefined4 *)(param_1 + 0x2d0)" * (cast_expression "(undefined4 *)(param_1 + 0x2d0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2d0)" ( (binary_expression "param_1 + 0x2d0" identifier + number_literal) )))) = identifier) ;) (goto_statement "goto LAB_00022049;" goto statement_identifier ;) })) (expression_statement "uVar8 = *(uint *)(param_1 + 0x29c);" (assignment_expression "uVar8 = *(uint *)(param_1 + 0x29c)" identifier = (pointer_expression "*(uint *)(param_1 + 0x29c)" * (cast_expression "(uint *)(param_1 + 0x29c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x29c)" ( (binary_expression "param_1 + 0x29c" identifier + number_literal) ))))) ;) }) (else_clause "else {\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }" else (compound_statement "{\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }" { (labeled_statement "LAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }" statement_identifier : (if_statement "if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }" if (parenthesized_expression "(*(char *)(param_1 + 0x330) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x330) == '\0'" (pointer_expression "*(char *)(param_1 + 0x330)" * (cast_expression "(char *)(param_1 + 0x330)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x330)" ( (binary_expression "param_1 + 0x330" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar5 = *(int *)(param_1 + 0x298);\n        }" { (expression_statement "iVar5 = *(int *)(param_1 + 0x298);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x298)" identifier = (pointer_expression "*(int *)(param_1 + 0x298)" * (cast_expression "(int *)(param_1 + 0x298)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x298)" ( (binary_expression "param_1 + 0x298" identifier + number_literal) ))))) ;) }) (else_clause "else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }" else (compound_statement "{\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }" { (expression_statement "*(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';" (assignment_expression "*(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02'" (pointer_expression "*(char *)(*(int *)(param_1 + 0x2d0) + uVar8)" * (cast_expression "(char *)(*(int *)(param_1 + 0x2d0) + uVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x2d0) + uVar8)" ( (binary_expression "*(int *)(param_1 + 0x2d0) + uVar8" (pointer_expression "*(int *)(param_1 + 0x2d0)" * (cast_expression "(int *)(param_1 + 0x2d0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2d0)" ( (binary_expression "param_1 + 0x2d0" identifier + number_literal) )))) + identifier) )))) = (binary_expression "(iVar4 + -1 == iVar9) * '\x02'" (parenthesized_expression "(iVar4 + -1 == iVar9)" ( (binary_expression "iVar4 + -1 == iVar9" (binary_expression "iVar4 + -1" identifier + number_literal) == identifier) )) * (char_literal "'\x02'" ' escape_sequence '))) ;) (expression_statement "iVar5 = *(int *)(param_1 + 0x298);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x298)" identifier = (pointer_expression "*(int *)(param_1 + 0x298)" * (cast_expression "(int *)(param_1 + 0x298)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x298)" ( (binary_expression "param_1 + 0x298" identifier + number_literal) ))))) ;) (expression_statement "uVar8 = *(uint *)(param_1 + 0x29c);" (assignment_expression "uVar8 = *(uint *)(param_1 + 0x29c)" identifier = (pointer_expression "*(uint *)(param_1 + 0x29c)" * (cast_expression "(uint *)(param_1 + 0x29c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x29c)" ( (binary_expression "param_1 + 0x29c" identifier + number_literal) ))))) ;) })))) }))) (expression_statement "*(uint *)(param_1 + 0x29c) = uVar8 + 1;" (assignment_expression "*(uint *)(param_1 + 0x29c) = uVar8 + 1" (pointer_expression "*(uint *)(param_1 + 0x29c)" * (cast_expression "(uint *)(param_1 + 0x29c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x29c)" ( (binary_expression "param_1 + 0x29c" identifier + number_literal) )))) = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) (expression_statement "*(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1;" (assignment_expression "*(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1" (pointer_expression "*(uint *)(iVar5 + uVar8 * 4)" * (cast_expression "(uint *)(iVar5 + uVar8 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + uVar8 * 4)" ( (binary_expression "iVar5 + uVar8 * 4" identifier + (binary_expression "uVar8 * 4" identifier * number_literal)) )))) = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "*(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1;" (assignment_expression "*(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1" (pointer_expression "*(int *)(param_1 + 0x2a8)" * (cast_expression "(int *)(param_1 + 0x2a8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2a8)" ( (binary_expression "param_1 + 0x2a8" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x2a8) + 1" (pointer_expression "*(int *)(param_1 + 0x2a8)" * (cast_expression "(int *)(param_1 + 0x2a8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2a8)" ( (binary_expression "param_1 + 0x2a8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "uVar3 = *(int *)(param_1 + 0x294) + 1;" (assignment_expression "uVar3 = *(int *)(param_1 + 0x294) + 1" identifier = (binary_expression "*(int *)(param_1 + 0x294) + 1" (pointer_expression "*(int *)(param_1 + 0x294)" * (cast_expression "(int *)(param_1 + 0x294)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x294)" ( (binary_expression "param_1 + 0x294" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x294) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x294) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x294)" * (cast_expression "(uint *)(param_1 + 0x294)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x294)" ( (binary_expression "param_1 + 0x294" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(uint *)(param_1 + 0x2a4) < uVar3) {\n        *(uint *)(param_1 + 0x2a4) = uVar3;\n      }" if (parenthesized_expression "(*(uint *)(param_1 + 0x2a4) < uVar3)" ( (binary_expression "*(uint *)(param_1 + 0x2a4) < uVar3" (pointer_expression "*(uint *)(param_1 + 0x2a4)" * (cast_expression "(uint *)(param_1 + 0x2a4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2a4)" ( (binary_expression "param_1 + 0x2a4" identifier + number_literal) )))) < identifier) )) (compound_statement "{\n        *(uint *)(param_1 + 0x2a4) = uVar3;\n      }" { (expression_statement "*(uint *)(param_1 + 0x2a4) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x2a4) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x2a4)" * (cast_expression "(uint *)(param_1 + 0x2a4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2a4)" ( (binary_expression "param_1 + 0x2a4" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "FUN_000221a0();" (call_expression "FUN_000221a0()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x274);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x274)" identifier = (pointer_expression "*(int *)(param_1 + 0x274)" * (cast_expression "(int *)(param_1 + 0x274)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x274)" ( (binary_expression "param_1 + 0x274" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(iVar9 < iVar4)" ( (binary_expression "iVar9 < iVar4" identifier < identifier) )) ;) })) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00038830();\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_00038830();\n  }" { (expression_statement "FUN_00038830();" (call_expression "FUN_00038830()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (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 (field_expression IDENT . field_identifier) = LIT) ;) (expression_statement (assignment_expression (field_expression (field_expression IDENT . field_identifier) . field_identifier) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (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 [ IDENT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (binary_expression (binary_expression IDENT >> LIT) != LIT) ))) )) (goto_statement goto statement_identifier ;)) }))) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + (parenthesized_expression ( (binary_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 + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) )))) = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) == IDENT) )) * (char_literal ' escape_sequence '))) ;) (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })))) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (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)) )))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT < 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_00021f40(int param_1,wchar_t param_2)\n\n{\n  byte bVar1;\n  size_t sVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined **ppuVar7;\n  uint uVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  mbstate_t local_38;\n  byte local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x21f4b;\n  ppuVar7 = &__DT_PLTGOT;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_38.__count = 0;\n  local_38.__value.__wch = 0;\n  sVar2 = wcrtomb((char *)local_30,param_2,&local_38);\n  if (sVar2 == 0xffffffff) {\n    local_30[0] = 0;\n    *(undefined4 *)(param_1 + 0x274) = 1;\n  }\n  else {\n    *(size_t *)(param_1 + 0x274) = sVar2;\n  }\n  iVar9 = 1;\n  FUN_0001f570(ppuVar7);\n  iVar4 = *(int *)(param_1 + 0x274);\n  if (1 < iVar4) {\n    do {\n      uVar8 = *(uint *)(param_1 + 0x29c);\n      bVar1 = local_30[iVar9];\n      uVar3 = *(uint *)(param_1 + 0x2a0);\n      if (uVar3 == uVar8) {\n        if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }\n        *(uint *)(param_1 + 0x2a0) = uVar3;\n        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);\n        *(int *)(param_1 + 0x298) = iVar5;\n        if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    \n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }\n        uVar8 = *(uint *)(param_1 + 0x29c);\n      }\n      else {\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }\n      *(uint *)(param_1 + 0x29c) = uVar8 + 1;\n      *(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1;\n      *(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1;\n      uVar3 = *(int *)(param_1 + 0x294) + 1;\n      *(uint *)(param_1 + 0x294) = uVar3;\n      if (*(uint *)(param_1 + 0x2a4) < uVar3) {\n        *(uint *)(param_1 + 0x2a4) = uVar3;\n      }\n      iVar9 = iVar9 + 1;\n      FUN_000221a0();\n      iVar4 = *(int *)(param_1 + 0x274);\n    } while (iVar9 < iVar4);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00038830();\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00021f40(int param_1,wchar_t param_2)" (identifier "FUN_00021f40") (parameter_list "(int param_1,wchar_t param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "wchar_t param_2" (type_identifier "wchar_t") (identifier "param_2")) () ")"))) (compound_statement "{\n  byte bVar1;\n  size_t sVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined **ppuVar7;\n  uint uVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  mbstate_t local_38;\n  byte local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x21f4b;\n  ppuVar7 = &__DT_PLTGOT;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_38.__count = 0;\n  local_38.__value.__wch = 0;\n  sVar2 = wcrtomb((char *)local_30,param_2,&local_38);\n  if (sVar2 == 0xffffffff) {\n    local_30[0] = 0;\n    *(undefined4 *)(param_1 + 0x274) = 1;\n  }\n  else {\n    *(size_t *)(param_1 + 0x274) = sVar2;\n  }\n  iVar9 = 1;\n  FUN_0001f570(ppuVar7);\n  iVar4 = *(int *)(param_1 + 0x274);\n  if (1 < iVar4) {\n    do {\n      uVar8 = *(uint *)(param_1 + 0x29c);\n      bVar1 = local_30[iVar9];\n      uVar3 = *(uint *)(param_1 + 0x2a0);\n      if (uVar3 == uVar8) {\n        if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }\n        *(uint *)(param_1 + 0x2a0) = uVar3;\n        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);\n        *(int *)(param_1 + 0x298) = iVar5;\n        if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    \n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }\n        uVar8 = *(uint *)(param_1 + 0x29c);\n      }\n      else {\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }\n      *(uint *)(param_1 + 0x29c) = uVar8 + 1;\n      *(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1;\n      *(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1;\n      uVar3 = *(int *)(param_1 + 0x294) + 1;\n      *(uint *)(param_1 + 0x294) = uVar3;\n      if (*(uint *)(param_1 + 0x2a4) < uVar3) {\n        *(uint *)(param_1 + 0x2a4) = uVar3;\n      }\n      iVar9 = iVar9 + 1;\n      FUN_000221a0();\n      iVar4 = *(int *)(param_1 + 0x274);\n    } while (iVar9 < iVar4);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00038830();\n  }\n  return;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "undefined **ppuVar7;" (type_identifier "undefined") (pointer_declarator "**ppuVar7" (* "*") (pointer_declarator "*ppuVar7" (* "*") (identifier "ppuVar7"))) (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "mbstate_t local_38;" (type_identifier "mbstate_t") (identifier "local_38") (; ";")) (declaration "byte local_30 [16];" (type_identifier "byte") (array_declarator "local_30 [16]" (identifier "local_30") ([ "[") (number_literal "16") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x21f4b;" (assignment_expression "uStack_14 = 0x21f4b" (identifier "uStack_14") (= "=") (number_literal "0x21f4b")) (; ";")) (expression_statement "ppuVar7 = &__DT_PLTGOT;" (assignment_expression "ppuVar7 = &__DT_PLTGOT" (identifier "ppuVar7") (= "=") (pointer_expression "&__DT_PLTGOT" (& "&") (identifier "__DT_PLTGOT"))) (; ";")) (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 "local_38.__count = 0;" (assignment_expression "local_38.__count = 0" (field_expression "local_38.__count" (identifier "local_38") (. ".") (field_identifier "__count")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_38.__value.__wch = 0;" (assignment_expression "local_38.__value.__wch = 0" (field_expression "local_38.__value.__wch" (field_expression "local_38.__value" (identifier "local_38") (. ".") (field_identifier "__value")) (. ".") (field_identifier "__wch")) (= "=") (number_literal "0")) (; ";")) (expression_statement "sVar2 = wcrtomb((char *)local_30,param_2,&local_38);" (assignment_expression "sVar2 = wcrtomb((char *)local_30,param_2,&local_38)" (identifier "sVar2") (= "=") (call_expression "wcrtomb((char *)local_30,param_2,&local_38)" (identifier "wcrtomb") (argument_list "((char *)local_30,param_2,&local_38)" (( "(") (cast_expression "(char *)local_30" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_30")) (, ",") (identifier "param_2") (, ",") (pointer_expression "&local_38" (& "&") (identifier "local_38")) () ")")))) (; ";")) (if_statement "if (sVar2 == 0xffffffff) {\n    local_30[0] = 0;\n    *(undefined4 *)(param_1 + 0x274) = 1;\n  }\n  else {\n    *(size_t *)(param_1 + 0x274) = sVar2;\n  }" (if "if") (parenthesized_expression "(sVar2 == 0xffffffff)" (( "(") (binary_expression "sVar2 == 0xffffffff" (identifier "sVar2") (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\n    local_30[0] = 0;\n    *(undefined4 *)(param_1 + 0x274) = 1;\n  }" ({ "{") (expression_statement "local_30[0] = 0;" (assignment_expression "local_30[0] = 0" (subscript_expression "local_30[0]" (identifier "local_30") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x274) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x274) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x274)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x274)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x274)" (( "(") (binary_expression "param_1 + 0x274" (identifier "param_1") (+ "+") (number_literal "0x274")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n    *(size_t *)(param_1 + 0x274) = sVar2;\n  }" (else "else") (compound_statement "{\n    *(size_t *)(param_1 + 0x274) = sVar2;\n  }" ({ "{") (expression_statement "*(size_t *)(param_1 + 0x274) = sVar2;" (assignment_expression "*(size_t *)(param_1 + 0x274) = sVar2" (pointer_expression "*(size_t *)(param_1 + 0x274)" (* "*") (cast_expression "(size_t *)(param_1 + 0x274)" (( "(") (type_descriptor "size_t *" (primitive_type "size_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x274)" (( "(") (binary_expression "param_1 + 0x274" (identifier "param_1") (+ "+") (number_literal "0x274")) () ")")))) (= "=") (identifier "sVar2")) (; ";")) (} "}")))) (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" (identifier "iVar9") (= "=") (number_literal "1")) (; ";")) (expression_statement "FUN_0001f570(ppuVar7);" (call_expression "FUN_0001f570(ppuVar7)" (identifier "FUN_0001f570") (argument_list "(ppuVar7)" (( "(") (identifier "ppuVar7") () ")"))) (; ";")) (expression_statement "iVar4 = *(int *)(param_1 + 0x274);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x274)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0x274)" (* "*") (cast_expression "(int *)(param_1 + 0x274)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x274)" (( "(") (binary_expression "param_1 + 0x274" (identifier "param_1") (+ "+") (number_literal "0x274")) () ")"))))) (; ";")) (if_statement "if (1 < iVar4) {\n    do {\n      uVar8 = *(uint *)(param_1 + 0x29c);\n      bVar1 = local_30[iVar9];\n      uVar3 = *(uint *)(param_1 + 0x2a0);\n      if (uVar3 == uVar8) {\n        if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }\n        *(uint *)(param_1 + 0x2a0) = uVar3;\n        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);\n        *(int *)(param_1 + 0x298) = iVar5;\n        if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    \n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }\n        uVar8 = *(uint *)(param_1 + 0x29c);\n      }\n      else {\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }\n      *(uint *)(param_1 + 0x29c) = uVar8 + 1;\n      *(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1;\n      *(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1;\n      uVar3 = *(int *)(param_1 + 0x294) + 1;\n      *(uint *)(param_1 + 0x294) = uVar3;\n      if (*(uint *)(param_1 + 0x2a4) < uVar3) {\n        *(uint *)(param_1 + 0x2a4) = uVar3;\n      }\n      iVar9 = iVar9 + 1;\n      FUN_000221a0();\n      iVar4 = *(int *)(param_1 + 0x274);\n    } while (iVar9 < iVar4);\n  }" (if "if") (parenthesized_expression "(1 < iVar4)" (( "(") (binary_expression "1 < iVar4" (number_literal "1") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n    do {\n      uVar8 = *(uint *)(param_1 + 0x29c);\n      bVar1 = local_30[iVar9];\n      uVar3 = *(uint *)(param_1 + 0x2a0);\n      if (uVar3 == uVar8) {\n        if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }\n        *(uint *)(param_1 + 0x2a0) = uVar3;\n        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);\n        *(int *)(param_1 + 0x298) = iVar5;\n        if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    \n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }\n        uVar8 = *(uint *)(param_1 + 0x29c);\n      }\n      else {\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }\n      *(uint *)(param_1 + 0x29c) = uVar8 + 1;\n      *(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1;\n      *(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1;\n      uVar3 = *(int *)(param_1 + 0x294) + 1;\n      *(uint *)(param_1 + 0x294) = uVar3;\n      if (*(uint *)(param_1 + 0x2a4) < uVar3) {\n        *(uint *)(param_1 + 0x2a4) = uVar3;\n      }\n      iVar9 = iVar9 + 1;\n      FUN_000221a0();\n      iVar4 = *(int *)(param_1 + 0x274);\n    } while (iVar9 < iVar4);\n  }" ({ "{") (do_statement "do {\n      uVar8 = *(uint *)(param_1 + 0x29c);\n      bVar1 = local_30[iVar9];\n      uVar3 = *(uint *)(param_1 + 0x2a0);\n      if (uVar3 == uVar8) {\n        if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }\n        *(uint *)(param_1 + 0x2a0) = uVar3;\n        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);\n        *(int *)(param_1 + 0x298) = iVar5;\n        if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    \n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }\n        uVar8 = *(uint *)(param_1 + 0x29c);\n      }\n      else {\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }\n      *(uint *)(param_1 + 0x29c) = uVar8 + 1;\n      *(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1;\n      *(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1;\n      uVar3 = *(int *)(param_1 + 0x294) + 1;\n      *(uint *)(param_1 + 0x294) = uVar3;\n      if (*(uint *)(param_1 + 0x2a4) < uVar3) {\n        *(uint *)(param_1 + 0x2a4) = uVar3;\n      }\n      iVar9 = iVar9 + 1;\n      FUN_000221a0();\n      iVar4 = *(int *)(param_1 + 0x274);\n    } while (iVar9 < iVar4);" (do "do") (compound_statement "{\n      uVar8 = *(uint *)(param_1 + 0x29c);\n      bVar1 = local_30[iVar9];\n      uVar3 = *(uint *)(param_1 + 0x2a0);\n      if (uVar3 == uVar8) {\n        if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }\n        *(uint *)(param_1 + 0x2a0) = uVar3;\n        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);\n        *(int *)(param_1 + 0x298) = iVar5;\n        if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    \n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }\n        uVar8 = *(uint *)(param_1 + 0x29c);\n      }\n      else {\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }\n      *(uint *)(param_1 + 0x29c) = uVar8 + 1;\n      *(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1;\n      *(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1;\n      uVar3 = *(int *)(param_1 + 0x294) + 1;\n      *(uint *)(param_1 + 0x294) = uVar3;\n      if (*(uint *)(param_1 + 0x2a4) < uVar3) {\n        *(uint *)(param_1 + 0x2a4) = uVar3;\n      }\n      iVar9 = iVar9 + 1;\n      FUN_000221a0();\n      iVar4 = *(int *)(param_1 + 0x274);\n    }" ({ "{") (expression_statement "uVar8 = *(uint *)(param_1 + 0x29c);" (assignment_expression "uVar8 = *(uint *)(param_1 + 0x29c)" (identifier "uVar8") (= "=") (pointer_expression "*(uint *)(param_1 + 0x29c)" (* "*") (cast_expression "(uint *)(param_1 + 0x29c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x29c)" (( "(") (binary_expression "param_1 + 0x29c" (identifier "param_1") (+ "+") (number_literal "0x29c")) () ")"))))) (; ";")) (expression_statement "bVar1 = local_30[iVar9];" (assignment_expression "bVar1 = local_30[iVar9]" (identifier "bVar1") (= "=") (subscript_expression "local_30[iVar9]" (identifier "local_30") ([ "[") (identifier "iVar9") (] "]"))) (; ";")) (expression_statement "uVar3 = *(uint *)(param_1 + 0x2a0);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x2a0)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(param_1 + 0x2a0)" (* "*") (cast_expression "(uint *)(param_1 + 0x2a0)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2a0)" (( "(") (binary_expression "param_1 + 0x2a0" (identifier "param_1") (+ "+") (number_literal "0x2a0")) () ")"))))) (; ";")) (if_statement "if (uVar3 == uVar8) {\n        if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }\n        *(uint *)(param_1 + 0x2a0) = uVar3;\n        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);\n        *(int *)(param_1 + 0x298) = iVar5;\n        if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    \n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }\n        uVar8 = *(uint *)(param_1 + 0x29c);\n      }\n      else {\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }" (if "if") (parenthesized_expression "(uVar3 == uVar8)" (( "(") (binary_expression "uVar3 == uVar8" (identifier "uVar3") (== "==") (identifier "uVar8")) () ")")) (compound_statement "{\n        if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }\n        *(uint *)(param_1 + 0x2a0) = uVar3;\n        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);\n        *(int *)(param_1 + 0x298) = iVar5;\n        if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    \n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }\n        uVar8 = *(uint *)(param_1 + 0x29c);\n      }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x298) == 0) {\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }\n        else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x298) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x298) == 0" (pointer_expression "*(int *)(param_1 + 0x298)" (* "*") (cast_expression "(int *)(param_1 + 0x298)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x298)" (( "(") (binary_expression "param_1 + 0x298" (identifier "param_1") (+ "+") (number_literal "0x298")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }\n        }" ({ "{") (if_statement "if (uVar3 == 0) {\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }\n          else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }" (if "if") (parenthesized_expression "(uVar3 == 0)" (( "(") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            iVar5 = 0x40;\n            uVar3 = 0x10;\n          }" ({ "{") (expression_statement "iVar5 = 0x40;" (assignment_expression "iVar5 = 0x40" (identifier "iVar5") (= "=") (number_literal "0x40")) (; ";")) (expression_statement "uVar3 = 0x10;" (assignment_expression "uVar3 = 0x10" (identifier "uVar3") (= "=") (number_literal "0x10")) (; ";")) (} "}")) (else_clause "else {\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }" (else "else") (compound_statement "{\n            iVar5 = uVar3 << 2;\n            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;\n          }" ({ "{") (expression_statement "iVar5 = uVar3 << 2;" (assignment_expression "iVar5 = uVar3 << 2" (identifier "iVar5") (= "=") (binary_expression "uVar3 << 2" (identifier "uVar3") (<< "<<") (number_literal "2"))) (; ";")) (if_statement "if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;" (if "if") (parenthesized_expression "((iVar5 < 0) || (uVar3 >> 0x1e != 0))" (( "(") (binary_expression "(iVar5 < 0) || (uVar3 >> 0x1e != 0)" (parenthesized_expression "(iVar5 < 0)" (( "(") (binary_expression "iVar5 < 0" (identifier "iVar5") (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(uVar3 >> 0x1e != 0)" (( "(") (binary_expression "uVar3 >> 0x1e != 0" (binary_expression "uVar3 >> 0x1e" (identifier "uVar3") (>> ">>") (number_literal "0x1e")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (goto_statement "goto LAB_0002215d;" (goto "goto") (statement_identifier "LAB_0002215d") (; ";"))) (} "}")))) (} "}")) (else_clause "else {\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }" (else "else") (compound_statement "{\n          if (0x15555554 < uVar3) goto LAB_0002215d;\n          uVar3 = uVar3 + 1 + (uVar3 >> 1);\n          iVar5 = uVar3 * 4;\n        }" ({ "{") (if_statement "if (0x15555554 < uVar3) goto LAB_0002215d;" (if "if") (parenthesized_expression "(0x15555554 < uVar3)" (( "(") (binary_expression "0x15555554 < uVar3" (number_literal "0x15555554") (< "<") (identifier "uVar3")) () ")")) (goto_statement "goto LAB_0002215d;" (goto "goto") (statement_identifier "LAB_0002215d") (; ";"))) (expression_statement "uVar3 = uVar3 + 1 + (uVar3 >> 1);" (assignment_expression "uVar3 = uVar3 + 1 + (uVar3 >> 1)" (identifier "uVar3") (= "=") (binary_expression "uVar3 + 1 + (uVar3 >> 1)" (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1")) (+ "+") (parenthesized_expression "(uVar3 >> 1)" (( "(") (binary_expression "uVar3 >> 1" (identifier "uVar3") (>> ">>") (number_literal "1")) () ")")))) (; ";")) (expression_statement "iVar5 = uVar3 * 4;" (assignment_expression "iVar5 = uVar3 * 4" (identifier "iVar5") (= "=") (binary_expression "uVar3 * 4" (identifier "uVar3") (* "*") (number_literal "4"))) (; ";")) (} "}")))) (expression_statement "*(uint *)(param_1 + 0x2a0) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x2a0) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x2a0)" (* "*") (cast_expression "(uint *)(param_1 + 0x2a0)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2a0)" (( "(") (binary_expression "param_1 + 0x2a0" (identifier "param_1") (+ "+") (number_literal "0x2a0")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);" (assignment_expression "iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5)" (identifier "iVar5") (= "=") (call_expression "FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5)" (identifier "FUN_0002efd0") (argument_list "(*(int *)(param_1 + 0x298),iVar5)" (( "(") (pointer_expression "*(int *)(param_1 + 0x298)" (* "*") (cast_expression "(int *)(param_1 + 0x298)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x298)" (( "(") (binary_expression "param_1 + 0x298" (identifier "param_1") (+ "+") (number_literal "0x298")) () ")")))) (, ",") (identifier "iVar5") () ")")))) (; ";")) (expression_statement "*(int *)(param_1 + 0x298) = iVar5;" (assignment_expression "*(int *)(param_1 + 0x298) = iVar5" (pointer_expression "*(int *)(param_1 + 0x298)" (* "*") (cast_expression "(int *)(param_1 + 0x298)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x298)" (( "(") (binary_expression "param_1 + 0x298" (identifier "param_1") (+ "+") (number_literal "0x298")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (if_statement "if (*(char *)(param_1 + 0x330) != '\0') {\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    \n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x330) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x330) != '\0'" (pointer_expression "*(char *)(param_1 + 0x330)" (* "*") (cast_expression "(char *)(param_1 + 0x330)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x330)" (( "(") (binary_expression "param_1 + 0x330" (identifier "param_1") (+ "+") (number_literal "0x330")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    \n            FUN_0002f1c0();\n          }\n          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));\n          uVar8 = *(uint *)(param_1 + 0x29c);\n          *(undefined4 *)(param_1 + 0x2d0) = uVar6;\n          goto LAB_00022049;\n        }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x2a0) < 0) {\nLAB_0002215d:\n                    \n            FUN_0002f1c0();\n          }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x2a0) < 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x2a0) < 0" (pointer_expression "*(int *)(param_1 + 0x2a0)" (* "*") (cast_expression "(int *)(param_1 + 0x2a0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2a0)" (( "(") (binary_expression "param_1 + 0x2a0" (identifier "param_1") (+ "+") (number_literal "0x2a0")) () ")")))) (< "<") (number_literal "0")) () ")")) (compound_statement "{\nLAB_0002215d:\n                    \n            FUN_0002f1c0();\n          }" ({ "{") (labeled_statement "LAB_0002215d:\n                    \n            FUN_0002f1c0();" (statement_identifier "LAB_0002215d") (: ":") (expression_statement "FUN_0002f1c0();" (call_expression "FUN_0002f1c0()" (identifier "FUN_0002f1c0") (argument_list "()" (( "(") () ")"))) (; ";"))) (} "}"))) (expression_statement "uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));" (assignment_expression "uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0))" (identifier "uVar6") (= "=") (call_expression "FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0))" (identifier "FUN_0002efd0") (argument_list "(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x2d0)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x2d0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2d0)" (( "(") (binary_expression "param_1 + 0x2d0" (identifier "param_1") (+ "+") (number_literal "0x2d0")) () ")")))) (, ",") (pointer_expression "*(int *)(param_1 + 0x2a0)" (* "*") (cast_expression "(int *)(param_1 + 0x2a0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2a0)" (( "(") (binary_expression "param_1 + 0x2a0" (identifier "param_1") (+ "+") (number_literal "0x2a0")) () ")")))) () ")")))) (; ";")) (expression_statement "uVar8 = *(uint *)(param_1 + 0x29c);" (assignment_expression "uVar8 = *(uint *)(param_1 + 0x29c)" (identifier "uVar8") (= "=") (pointer_expression "*(uint *)(param_1 + 0x29c)" (* "*") (cast_expression "(uint *)(param_1 + 0x29c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x29c)" (( "(") (binary_expression "param_1 + 0x29c" (identifier "param_1") (+ "+") (number_literal "0x29c")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x2d0) = uVar6;" (assignment_expression "*(undefined4 *)(param_1 + 0x2d0) = uVar6" (pointer_expression "*(undefined4 *)(param_1 + 0x2d0)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x2d0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2d0)" (( "(") (binary_expression "param_1 + 0x2d0" (identifier "param_1") (+ "+") (number_literal "0x2d0")) () ")")))) (= "=") (identifier "uVar6")) (; ";")) (goto_statement "goto LAB_00022049;" (goto "goto") (statement_identifier "LAB_00022049") (; ";")) (} "}"))) (expression_statement "uVar8 = *(uint *)(param_1 + 0x29c);" (assignment_expression "uVar8 = *(uint *)(param_1 + 0x29c)" (identifier "uVar8") (= "=") (pointer_expression "*(uint *)(param_1 + 0x29c)" (* "*") (cast_expression "(uint *)(param_1 + 0x29c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x29c)" (( "(") (binary_expression "param_1 + 0x29c" (identifier "param_1") (+ "+") (number_literal "0x29c")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }" (else "else") (compound_statement "{\nLAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }\n      }" ({ "{") (labeled_statement "LAB_00022049:\n        if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }" (statement_identifier "LAB_00022049") (: ":") (if_statement "if (*(char *)(param_1 + 0x330) == '\0') {\n          iVar5 = *(int *)(param_1 + 0x298);\n        }\n        else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x330) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x330) == '\0'" (pointer_expression "*(char *)(param_1 + 0x330)" (* "*") (cast_expression "(char *)(param_1 + 0x330)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x330)" (( "(") (binary_expression "param_1 + 0x330" (identifier "param_1") (+ "+") (number_literal "0x330")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          iVar5 = *(int *)(param_1 + 0x298);\n        }" ({ "{") (expression_statement "iVar5 = *(int *)(param_1 + 0x298);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x298)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 0x298)" (* "*") (cast_expression "(int *)(param_1 + 0x298)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x298)" (( "(") (binary_expression "param_1 + 0x298" (identifier "param_1") (+ "+") (number_literal "0x298")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }" (else "else") (compound_statement "{\n          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';\n          iVar5 = *(int *)(param_1 + 0x298);\n          uVar8 = *(uint *)(param_1 + 0x29c);\n        }" ({ "{") (expression_statement "*(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';" (assignment_expression "*(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02'" (pointer_expression "*(char *)(*(int *)(param_1 + 0x2d0) + uVar8)" (* "*") (cast_expression "(char *)(*(int *)(param_1 + 0x2d0) + uVar8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x2d0) + uVar8)" (( "(") (binary_expression "*(int *)(param_1 + 0x2d0) + uVar8" (pointer_expression "*(int *)(param_1 + 0x2d0)" (* "*") (cast_expression "(int *)(param_1 + 0x2d0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2d0)" (( "(") (binary_expression "param_1 + 0x2d0" (identifier "param_1") (+ "+") (number_literal "0x2d0")) () ")")))) (+ "+") (identifier "uVar8")) () ")")))) (= "=") (binary_expression "(iVar4 + -1 == iVar9) * '\x02'" (parenthesized_expression "(iVar4 + -1 == iVar9)" (( "(") (binary_expression "iVar4 + -1 == iVar9" (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1")) (== "==") (identifier "iVar9")) () ")")) (* "*") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'")))) (; ";")) (expression_statement "iVar5 = *(int *)(param_1 + 0x298);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x298)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 0x298)" (* "*") (cast_expression "(int *)(param_1 + 0x298)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x298)" (( "(") (binary_expression "param_1 + 0x298" (identifier "param_1") (+ "+") (number_literal "0x298")) () ")"))))) (; ";")) (expression_statement "uVar8 = *(uint *)(param_1 + 0x29c);" (assignment_expression "uVar8 = *(uint *)(param_1 + 0x29c)" (identifier "uVar8") (= "=") (pointer_expression "*(uint *)(param_1 + 0x29c)" (* "*") (cast_expression "(uint *)(param_1 + 0x29c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x29c)" (( "(") (binary_expression "param_1 + 0x29c" (identifier "param_1") (+ "+") (number_literal "0x29c")) () ")"))))) (; ";")) (} "}"))))) (} "}")))) (expression_statement "*(uint *)(param_1 + 0x29c) = uVar8 + 1;" (assignment_expression "*(uint *)(param_1 + 0x29c) = uVar8 + 1" (pointer_expression "*(uint *)(param_1 + 0x29c)" (* "*") (cast_expression "(uint *)(param_1 + 0x29c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x29c)" (( "(") (binary_expression "param_1 + 0x29c" (identifier "param_1") (+ "+") (number_literal "0x29c")) () ")")))) (= "=") (binary_expression "uVar8 + 1" (identifier "uVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1;" (assignment_expression "*(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1" (pointer_expression "*(uint *)(iVar5 + uVar8 * 4)" (* "*") (cast_expression "(uint *)(iVar5 + uVar8 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + uVar8 * 4)" (( "(") (binary_expression "iVar5 + uVar8 * 4" (identifier "iVar5") (+ "+") (binary_expression "uVar8 * 4" (identifier "uVar8") (* "*") (number_literal "4"))) () ")")))) (= "=") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1;" (assignment_expression "*(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1" (pointer_expression "*(int *)(param_1 + 0x2a8)" (* "*") (cast_expression "(int *)(param_1 + 0x2a8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2a8)" (( "(") (binary_expression "param_1 + 0x2a8" (identifier "param_1") (+ "+") (number_literal "0x2a8")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x2a8) + 1" (pointer_expression "*(int *)(param_1 + 0x2a8)" (* "*") (cast_expression "(int *)(param_1 + 0x2a8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2a8)" (( "(") (binary_expression "param_1 + 0x2a8" (identifier "param_1") (+ "+") (number_literal "0x2a8")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar3 = *(int *)(param_1 + 0x294) + 1;" (assignment_expression "uVar3 = *(int *)(param_1 + 0x294) + 1" (identifier "uVar3") (= "=") (binary_expression "*(int *)(param_1 + 0x294) + 1" (pointer_expression "*(int *)(param_1 + 0x294)" (* "*") (cast_expression "(int *)(param_1 + 0x294)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x294)" (( "(") (binary_expression "param_1 + 0x294" (identifier "param_1") (+ "+") (number_literal "0x294")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x294) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x294) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x294)" (* "*") (cast_expression "(uint *)(param_1 + 0x294)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x294)" (( "(") (binary_expression "param_1 + 0x294" (identifier "param_1") (+ "+") (number_literal "0x294")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (if_statement "if (*(uint *)(param_1 + 0x2a4) < uVar3) {\n        *(uint *)(param_1 + 0x2a4) = uVar3;\n      }" (if "if") (parenthesized_expression "(*(uint *)(param_1 + 0x2a4) < uVar3)" (( "(") (binary_expression "*(uint *)(param_1 + 0x2a4) < uVar3" (pointer_expression "*(uint *)(param_1 + 0x2a4)" (* "*") (cast_expression "(uint *)(param_1 + 0x2a4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2a4)" (( "(") (binary_expression "param_1 + 0x2a4" (identifier "param_1") (+ "+") (number_literal "0x2a4")) () ")")))) (< "<") (identifier "uVar3")) () ")")) (compound_statement "{\n        *(uint *)(param_1 + 0x2a4) = uVar3;\n      }" ({ "{") (expression_statement "*(uint *)(param_1 + 0x2a4) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x2a4) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x2a4)" (* "*") (cast_expression "(uint *)(param_1 + 0x2a4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2a4)" (( "(") (binary_expression "param_1 + 0x2a4" (identifier "param_1") (+ "+") (number_literal "0x2a4")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (} "}"))) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" (identifier "iVar9") (= "=") (binary_expression "iVar9 + 1" (identifier "iVar9") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_000221a0();" (call_expression "FUN_000221a0()" (identifier "FUN_000221a0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar4 = *(int *)(param_1 + 0x274);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x274)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0x274)" (* "*") (cast_expression "(int *)(param_1 + 0x274)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x274)" (( "(") (binary_expression "param_1 + 0x274" (identifier "param_1") (+ "+") (number_literal "0x274")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar9 < iVar4)" (( "(") (binary_expression "iVar9 < iVar4" (identifier "iVar9") (< "<") (identifier "iVar4")) () ")")) (; ";")) (} "}"))) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00038830();\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_00038830();\n  }" ({ "{") (expression_statement "FUN_00038830();" (call_expression "FUN_00038830()" (identifier "FUN_00038830") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *type_1,type_2 wc)

{
  int var_14;
  type_3 bVar2;
  type_4 var_9;
  size_t var_3;
  int var_5;
  type_5 *ptVar6;
  char *pcVar7;
  char mbprop;
  type_6 var_6;
  type_7 **ppuVar9;
  type_6 var_7;
  size_t var_12;
  int var_11;
  int var_1;
  type_8 s;
  type_9 buf [16];
  
  ppuVar9 = &_GLOBAL_OFFSET_TABLE_;
  var_14 = *(int *)(var_1 + 0x14);
  s.__count = 0;
  s.__value.__wch = 0;
  var_3 = var_2((char *)buf,wc,(type_8 *)&s);
  if (var_3 == 0xffffffff) {
    buf[0] = '\0';
    var_6 = 0;
    (type_1->lex).cur_mb_len = 1;
  }
  else {
    var_6 = (type_6)buf[0];
    (type_1->lex).cur_mb_len = var_3;
    if (var_3 != 1) {
      mbprop = '\x01';
      goto LAB_00021fa9;
    }
  }
  mbprop = '\x03';
LAB_00021fa9:
  var_11 = 1;
  var_4(type_1,var_6,mbprop);
  var_5 = (type_1->lex).cur_mb_len;
  if (1 < var_5) {
    do {
      var_7 = type_1->tindex;
      bVar2 = buf[var_11];
      var_6 = type_1->talloc;
      if (var_6 == var_7) {
        if (type_1->tokens == (type_5 *)0x0) {
          if (var_6 == 0) {
            var_12 = 0x40;
            var_6 = 0x10;
          }
          else {
            var_12 = var_6 << 2;
            if (((int)var_12 < 0) || (var_6 >> 0x1e != 0)) goto LAB_0002215d;
          }
        }
        else {
          if (0x15555554 < var_6) goto LAB_0002215d;
          var_6 = var_6 + 1 + (var_6 >> 1);
          var_12 = var_6 * 4;
        }
        type_1->talloc = var_6;
        ptVar6 = (type_5 *)var_8(type_1->tokens,var_12);
        var_9 = (type_1->localeinfo).multibyte;
        type_1->tokens = ptVar6;
        if (var_9 != false) {
          if ((int)type_1->talloc < 0) {
LAB_0002215d:
                    /* WARNING: Subroutine does not return */
            var_10();
          }
          pcVar7 = (char *)var_8(type_1->multibyte_prop,type_1->talloc);
          var_7 = type_1->tindex;
          type_1->multibyte_prop = pcVar7;
          goto LAB_00022049;
        }
        var_7 = type_1->tindex;
      }
      else {
LAB_00022049:
        if ((type_1->localeinfo).multibyte == false) {
          ptVar6 = type_1->tokens;
        }
        else {
          type_1->multibyte_prop[var_7] = (var_5 + -1 == var_11) * '\x02';
          ptVar6 = type_1->tokens;
          var_7 = type_1->tindex;
        }
      }
      type_1->tindex = var_7 + 1;
      ptVar6[var_7] = (type_6)bVar2;
      var_12 = (type_1->parse).depth;
      type_1->nleaves = type_1->nleaves + 1;
      var_6 = var_12 + 1;
      (type_1->parse).depth = var_6;
      if (type_1->depth < var_6) {
        type_1->depth = var_6;
      }
      var_11 = var_11 + 1;
      var_13(type_1,0x105);
      var_5 = (type_1->lex).cur_mb_len;
    } while (var_11 < var_5);
  }
  if (var_14 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_15(ppuVar9);
  }
  return;
}


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

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

void __regparm3 MASKED(int param_1,wchar_t param_2)

{
  byte bVar1;
  size_t sVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  undefined4 uVar6;
  undefined **ppuVar7;
  uint uVar8;
  int iVar9;
  int in_GS_OFFSET;
  mbstate_t local_38;
  byte local_30 [16];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x21f4b;
  ppuVar7 = &__DT_PLTGOT;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_38.__count = 0;
  local_38.__value.__wch = 0;
  sVar2 = wcrtomb((char *)local_30,param_2,&local_38);
  if (sVar2 == 0xffffffff) {
    local_30[0] = 0;
    *(undefined4 *)(param_1 + 0x274) = 1;
  }
  else {
    *(size_t *)(param_1 + 0x274) = sVar2;
  }
  iVar9 = 1;
  FUN_0001f570(ppuVar7);
  iVar4 = *(int *)(param_1 + 0x274);
  if (1 < iVar4) {
    do {
      uVar8 = *(uint *)(param_1 + 0x29c);
      bVar1 = local_30[iVar9];
      uVar3 = *(uint *)(param_1 + 0x2a0);
      if (uVar3 == uVar8) {
        if (*(int *)(param_1 + 0x298) == 0) {
          if (uVar3 == 0) {
            iVar5 = 0x40;
            uVar3 = 0x10;
          }
          else {
            iVar5 = uVar3 << 2;
            if ((iVar5 < 0) || (uVar3 >> 0x1e != 0)) goto LAB_0002215d;
          }
        }
        else {
          if (0x15555554 < uVar3) goto LAB_0002215d;
          uVar3 = uVar3 + 1 + (uVar3 >> 1);
          iVar5 = uVar3 * 4;
        }
        *(uint *)(param_1 + 0x2a0) = uVar3;
        iVar5 = FUN_0002efd0(*(int *)(param_1 + 0x298),iVar5);
        *(int *)(param_1 + 0x298) = iVar5;
        if (*(char *)(param_1 + 0x330) != '\0') {
          if (*(int *)(param_1 + 0x2a0) < 0) {
LAB_0002215d:
                    /* WARNING: Subroutine does not return */
            FUN_0002f1c0();
          }
          uVar6 = FUN_0002efd0(*(undefined4 *)(param_1 + 0x2d0),*(int *)(param_1 + 0x2a0));
          uVar8 = *(uint *)(param_1 + 0x29c);
          *(undefined4 *)(param_1 + 0x2d0) = uVar6;
          goto LAB_00022049;
        }
        uVar8 = *(uint *)(param_1 + 0x29c);
      }
      else {
LAB_00022049:
        if (*(char *)(param_1 + 0x330) == '\0') {
          iVar5 = *(int *)(param_1 + 0x298);
        }
        else {
          *(char *)(*(int *)(param_1 + 0x2d0) + uVar8) = (iVar4 + -1 == iVar9) * '\x02';
          iVar5 = *(int *)(param_1 + 0x298);
          uVar8 = *(uint *)(param_1 + 0x29c);
        }
      }
      *(uint *)(param_1 + 0x29c) = uVar8 + 1;
      *(uint *)(iVar5 + uVar8 * 4) = (uint)bVar1;
      *(int *)(param_1 + 0x2a8) = *(int *)(param_1 + 0x2a8) + 1;
      uVar3 = *(int *)(param_1 + 0x294) + 1;
      *(uint *)(param_1 + 0x294) = uVar3;
      if (*(uint *)(param_1 + 0x2a4) < uVar3) {
        *(uint *)(param_1 + 0x2a4) = uVar3;
      }
      iVar9 = iVar9 + 1;
      FUN_000221a0();
      iVar4 = *(int *)(param_1 + 0x274);
    } while (iVar9 < iVar4);
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00038830();
  }
  return;
}

