
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* std::wistream::get(wchar_t*, int, wchar_t) */

wistream * __thiscall
std::wistream::get(wistream *this,wchar_t *param_1,int param_2,wchar_t param_3)

{
  int *piVar1;
  int *piVar2;
  wchar_t *pwVar3;
  wchar_t wVar4;
  _Ios_Iostate _Var5;
  int iVar6;
  int iVar7;
  sentry local_1d [13];
  
  *(undefined4 *)(this + 4) = 0;
  sentry::sentry(local_1d,this,true);
  if (local_1d[0] == (sentry)0x0) {
    iVar7 = *(int *)(this + 4);
  }
  else {
    piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c);
    pwVar3 = (wchar_t *)piVar1[2];
    if ((wchar_t *)piVar1[3] <= pwVar3) goto LAB_001a7e15;
LAB_001a7dc8:
    iVar7 = *(int *)(this + 4);
    wVar4 = *pwVar3;
    iVar6 = iVar7 + 1;
    pwVar3 = param_1;
    if (iVar6 < param_2) {
      do {
        if (wVar4 == L'\xffffffff') {
          _Var5 = _S_eofbit;
LAB_001a7f1a:
          if (0 < param_2) {
            *pwVar3 = L'\0';
          }
          if (iVar7 == 0) {
LAB_001a7ef1:
            _Var5 = _Var5 | _S_failbit;
          }
          else if (_Var5 == _S_goodbit) {
            return this;
          }
          goto LAB_001a7ead;
        }
        if (param_3 == wVar4) {
          _Var5 = _S_goodbit;
          goto LAB_001a7f1a;
        }
        param_1 = pwVar3 + 1;
        *pwVar3 = wVar4;
        *(int *)(this + 4) = iVar6;
        piVar2 = (int *)piVar1[2];
        if (piVar2 < (int *)piVar1[3]) {
          iVar6 = *piVar2;
          piVar1[2] = (int)(piVar2 + 1);
        }
        else {
                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */
          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);
        }
        if (iVar6 == -1) {
          iVar6 = *(int *)(this + 4);
          if (param_2 < 1) {
            if (iVar6 != 0) goto LAB_001a7e4e;
            _Var5 = _S_failbit|_S_eofbit;
          }
          else {
            *param_1 = L'\0';
            _Var5 = _S_eofbit;
            if (iVar6 == 0) goto LAB_001a7ef1;
          }
          goto LAB_001a7ead;
        }
        pwVar3 = (wchar_t *)piVar1[2];
        if (pwVar3 < (wchar_t *)piVar1[3]) goto LAB_001a7dc8;
LAB_001a7e15:
                    /* try { // try from 001a7e1b to 001a7e1d has its CatchHandler @ 001a7f5c */
        wVar4 = (**(code **)(*piVar1 + 0x24))(piVar1);
        iVar7 = *(int *)(this + 4);
        iVar6 = iVar7 + 1;
        pwVar3 = param_1;
        if (param_2 <= iVar6) break;
      } while( true );
    }
    if (wVar4 == L'\xffffffff') {
      if (0 < param_2) {
        *param_1 = L'\0';
      }
      _Var5 = _S_failbit|_S_eofbit;
      if (iVar7 != 0) {
LAB_001a7e4e:
        _Var5 = _S_eofbit;
      }
      goto LAB_001a7ead;
    }
  }
  if (0 < param_2) {
    *param_1 = L'\0';
  }
  if (iVar7 != 0) {
    return this;
  }
  _Var5 = _S_failbit;
LAB_001a7ead:
  wios::clear((wios *)(this + *(int *)(*(int *)this + -0xc)),
              _Var5 | *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));
  return this;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

int * FUN_001a7d50(int *param_1,int *param_2,int param_3,int param_4)

{
  int *piVar1;
  int *piVar2;
  int iVar3;
  uint uVar4;
  int iVar5;
  int iVar6;
  char local_1d [13];
  
  param_1[1] = 0;
  FUN_001a7460(local_1d,param_1,1);
  if (local_1d[0] == '\0') {
    iVar5 = param_1[1];
  }
  else {
    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);
    piVar2 = (int *)piVar1[2];
    if ((int *)piVar1[3] <= piVar2) goto LAB_001a7e15;
LAB_001a7dc8:
    iVar5 = param_1[1];
    iVar3 = *piVar2;
    iVar6 = iVar5 + 1;
    piVar2 = param_2;
    if (iVar6 < param_3) {
      do {
        if (iVar3 == -1) {
          uVar4 = 2;
LAB_001a7f1a:
          if (0 < param_3) {
            *piVar2 = 0;
          }
          if (iVar5 == 0) {
LAB_001a7ef1:
            uVar4 = uVar4 | 4;
          }
          else if (uVar4 == 0) {
            return param_1;
          }
          goto LAB_001a7ead;
        }
        if (param_4 == iVar3) {
          uVar4 = 0;
          goto LAB_001a7f1a;
        }
        param_2 = piVar2 + 1;
        *piVar2 = iVar3;
        param_1[1] = iVar6;
        piVar2 = (int *)piVar1[2];
        if (piVar2 < (int *)piVar1[3]) {
          iVar6 = *piVar2;
          piVar1[2] = (int)(piVar2 + 1);
        }
        else {
                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */
          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);
        }
        if (iVar6 == -1) {
          iVar6 = param_1[1];
          if (param_3 < 1) {
            if (iVar6 != 0) goto LAB_001a7e4e;
            uVar4 = 6;
          }
          else {
            *param_2 = 0;
            uVar4 = 2;
            if (iVar6 == 0) goto LAB_001a7ef1;
          }
          goto LAB_001a7ead;
        }
        piVar2 = (int *)piVar1[2];
        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;
LAB_001a7e15:
                    /* try { // try from 001a7e1b to 001a7e1d has its CatchHandler @ 001a7f5c */
        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);
        iVar5 = param_1[1];
        iVar6 = iVar5 + 1;
        piVar2 = param_2;
        if (param_3 <= iVar6) break;
      } while( true );
    }
    if (iVar3 == -1) {
      if (0 < param_3) {
        *param_2 = 0;
      }
      uVar4 = 6;
      if (iVar5 != 0) {
LAB_001a7e4e:
        uVar4 = 2;
      }
      goto LAB_001a7ead;
    }
  }
  if (0 < param_3) {
    *param_2 = 0;
  }
  if (iVar5 != 0) {
    return param_1;
  }
  uVar4 = 4;
LAB_001a7ead:
  iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;
  FUN_001ab090(iVar6,uVar4 | *(uint *)(iVar6 + 0x14));
  return param_1;
}


CALL 0x0004fb76
ADD EAX,0x15a2ab
PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
MOV EBX,EAX
SUB ESP,0x30
MOV ESI,dword ptr [EBP + 0x8]
MOV EDI,dword ptr [EBP + 0xc]
MOV dword ptr [EBP + -0x2c],EAX
LEA EAX,[EBP + -0x19]
MOV dword ptr [ESI + 0x4],0x0
PUSH 0x1
PUSH ESI
PUSH EAX
CALL 0x001a7460
ADD ESP,0x10
CMP byte ptr [EBP + -0x19],0x0
JNZ 0x001a7db0
MOV ECX,dword ptr [ESI + 0x4]
MOV EDX,dword ptr [EBP + 0x10]
TEST EDX,EDX
JLE 0x001a7d9a
MOV dword ptr [EDI],0x0
TEST ECX,ECX
JZ 0x001a7ea8
LEA ESP,[EBP + -0xc]
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESI]
MOV EAX,dword ptr [EAX + -0xc]
MOV EBX,dword ptr [ESI + EAX*0x1 + 0x7c]
MOV EAX,dword ptr [EBX + 0x8]
CMP dword ptr [EBX + 0xc],EAX
JBE 0x001a7e15
LEA ESI,[ESI]
MOV ECX,dword ptr [ESI + 0x4]
MOV EAX,dword ptr [EAX]
LEA EDX,[ECX + 0x1]
CMP EDX,dword ptr [EBP + 0x10]
JGE 0x001a7e30
CMP EAX,-0x1
JZ 0x001a7f55
CMP dword ptr [EBP + 0x14],EAX
JZ 0x001a7f18
ADD EDI,0x4
MOV dword ptr [EDI + -0x4],EAX
MOV dword ptr [ESI + 0x4],EDX
MOV EDX,dword ptr [EBX + 0x8]
CMP EDX,dword ptr [EBX + 0xc]
JNC 0x001a7f00
MOV EAX,dword ptr [EDX]
ADD EDX,0x4
MOV dword ptr [EBX + 0x8],EDX
CMP EAX,-0x1
JZ 0x001a7ed8
MOV EAX,dword ptr [EBX + 0x8]
CMP EAX,dword ptr [EBX + 0xc]
JC 0x001a7dc8
MOV EAX,dword ptr [EBX]
SUB ESP,0xc
PUSH EBX
CALL dword ptr [EAX + 0x24]
MOV ECX,dword ptr [ESI + 0x4]
ADD ESP,0x10
LEA EDX,[ECX + 0x1]
CMP EDX,dword ptr [EBP + 0x10]
JL 0x001a7dd5
LEA ESI,[ESI]
CMP EAX,-0x1
JNZ 0x001a7d8d
CMP dword ptr [EBP + 0x10],0x0
JLE 0x001a7e45
MOV dword ptr [EDI],0x0
MOV EAX,0x6
TEST ECX,ECX
JZ 0x001a7ead
MOV EAX,0x2
JMP 0x001a7ead
MOV EAX,0x4
MOV EDX,dword ptr [ESI]
SUB ESP,0x8
MOV EBX,dword ptr [EBP + -0x2c]
MOV ECX,dword ptr [EDX + -0xc]
ADD ECX,ESI
OR EAX,dword ptr [ECX + 0x14]
PUSH EAX
PUSH ECX
CALL 0x001ab090
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBP + 0x10]
MOV EDX,dword ptr [ESI + 0x4]
TEST EAX,EAX
JLE 0x001a7f40
MOV dword ptr [EDI],0x0
MOV EAX,0x2
TEST EDX,EDX
JNZ 0x001a7ead
OR EAX,0x4
JMP 0x001a7ead
MOV EAX,dword ptr [EBX]
SUB ESP,0xc
PUSH EBX
CALL dword ptr [EAX + 0x28]
ADD ESP,0x10
JMP 0x001a7e04
XOR EAX,EAX
CMP dword ptr [EBP + 0x10],0x0
JLE 0x001a7f26
MOV dword ptr [EDI],0x0
TEST ECX,ECX
JZ 0x001a7ef1
TEST EAX,EAX
JNZ 0x001a7ead
LEA ESP,[EBP + -0xc]
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST EDX,EDX
JNZ 0x001a7e4e
MOV EAX,0x2
OR EAX,0x4
JMP 0x001a7ead
MOV EAX,0x2
JMP 0x001a7f1a
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nint * FUN_001a7d50(int *param_1,int *param_2,int param_3,int param_4)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  char local_1d [13];\n  \n  param_1[1] = 0;\n  FUN_001a7460(local_1d,param_1,1);\n  if (local_1d[0] == '\0') {\n    iVar5 = param_1[1];\n  }\n  else {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[2];\n    if ((int *)piVar1[3] <= piVar2) goto LAB_001a7e15;\nLAB_001a7dc8:\n    iVar5 = param_1[1];\n    iVar3 = *piVar2;\n    iVar6 = iVar5 + 1;\n    piVar2 = param_2;\n    if (iVar6 < param_3) {\n      do {\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    /* try { // try from 001a7e1b to 001a7e1d has its CatchHandler @ 001a7f5c */\n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      } while( true );\n    }\n    if (iVar3 == -1) {\n      if (0 < param_3) {\n        *param_2 = 0;\n      }\n      uVar4 = 6;\n      if (iVar5 != 0) {\nLAB_001a7e4e:\n        uVar4 = 2;\n      }\n      goto LAB_001a7ead;\n    }\n  }\n  if (0 < param_3) {\n    *param_2 = 0;\n  }\n  if (iVar5 != 0) {\n    return param_1;\n  }\n  uVar4 = 4;\nLAB_001a7ead:\n  iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  FUN_001ab090(iVar6,uVar4 | *(uint *)(iVar6 + 0x14));\n  return param_1;\n}\n\n" comment (function_definition "int * FUN_001a7d50(int *param_1,int *param_2,int param_3,int param_4)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  char local_1d [13];\n  \n  param_1[1] = 0;\n  FUN_001a7460(local_1d,param_1,1);\n  if (local_1d[0] == '\0') {\n    iVar5 = param_1[1];\n  }\n  else {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[2];\n    if ((int *)piVar1[3] <= piVar2) goto LAB_001a7e15;\nLAB_001a7dc8:\n    iVar5 = param_1[1];\n    iVar3 = *piVar2;\n    iVar6 = iVar5 + 1;\n    piVar2 = param_2;\n    if (iVar6 < param_3) {\n      do {\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    /* try { // try from 001a7e1b to 001a7e1d has its CatchHandler @ 001a7f5c */\n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      } while( true );\n    }\n    if (iVar3 == -1) {\n      if (0 < param_3) {\n        *param_2 = 0;\n      }\n      uVar4 = 6;\n      if (iVar5 != 0) {\nLAB_001a7e4e:\n        uVar4 = 2;\n      }\n      goto LAB_001a7ead;\n    }\n  }\n  if (0 < param_3) {\n    *param_2 = 0;\n  }\n  if (iVar5 != 0) {\n    return param_1;\n  }\n  uVar4 = 4;\nLAB_001a7ead:\n  iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  FUN_001ab090(iVar6,uVar4 | *(uint *)(iVar6 + 0x14));\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_001a7d50(int *param_1,int *param_2,int param_3,int param_4)" * (function_declarator "FUN_001a7d50(int *param_1,int *param_2,int param_3,int param_4)" identifier (parameter_list "(int *param_1,int *param_2,int param_3,int param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  char local_1d [13];\n  \n  param_1[1] = 0;\n  FUN_001a7460(local_1d,param_1,1);\n  if (local_1d[0] == '\0') {\n    iVar5 = param_1[1];\n  }\n  else {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[2];\n    if ((int *)piVar1[3] <= piVar2) goto LAB_001a7e15;\nLAB_001a7dc8:\n    iVar5 = param_1[1];\n    iVar3 = *piVar2;\n    iVar6 = iVar5 + 1;\n    piVar2 = param_2;\n    if (iVar6 < param_3) {\n      do {\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    /* try { // try from 001a7e1b to 001a7e1d has its CatchHandler @ 001a7f5c */\n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      } while( true );\n    }\n    if (iVar3 == -1) {\n      if (0 < param_3) {\n        *param_2 = 0;\n      }\n      uVar4 = 6;\n      if (iVar5 != 0) {\nLAB_001a7e4e:\n        uVar4 = 2;\n      }\n      goto LAB_001a7ead;\n    }\n  }\n  if (0 < param_3) {\n    *param_2 = 0;\n  }\n  if (iVar5 != 0) {\n    return param_1;\n  }\n  uVar4 = 4;\nLAB_001a7ead:\n  iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  FUN_001ab090(iVar6,uVar4 | *(uint *)(iVar6 + 0x14));\n  return param_1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char local_1d [13];" primitive_type (array_declarator "local_1d [13]" identifier [ number_literal ]) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_001a7460(local_1d,param_1,1);" (call_expression "FUN_001a7460(local_1d,param_1,1)" identifier (argument_list "(local_1d,param_1,1)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (local_1d[0] == '\0') {\n    iVar5 = param_1[1];\n  }\n  else {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[2];\n    if ((int *)piVar1[3] <= piVar2) goto LAB_001a7e15;\nLAB_001a7dc8:\n    iVar5 = param_1[1];\n    iVar3 = *piVar2;\n    iVar6 = iVar5 + 1;\n    piVar2 = param_2;\n    if (iVar6 < param_3) {\n      do {\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    /* try { // try from 001a7e1b to 001a7e1d has its CatchHandler @ 001a7f5c */\n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      } while( true );\n    }\n    if (iVar3 == -1) {\n      if (0 < param_3) {\n        *param_2 = 0;\n      }\n      uVar4 = 6;\n      if (iVar5 != 0) {\nLAB_001a7e4e:\n        uVar4 = 2;\n      }\n      goto LAB_001a7ead;\n    }\n  }" if (parenthesized_expression "(local_1d[0] == '\0')" ( (binary_expression "local_1d[0] == '\0'" (subscript_expression "local_1d[0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar5 = param_1[1];\n  }" { (expression_statement "iVar5 = param_1[1];" (assignment_expression "iVar5 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[2];\n    if ((int *)piVar1[3] <= piVar2) goto LAB_001a7e15;\nLAB_001a7dc8:\n    iVar5 = param_1[1];\n    iVar3 = *piVar2;\n    iVar6 = iVar5 + 1;\n    piVar2 = param_2;\n    if (iVar6 < param_3) {\n      do {\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    /* try { // try from 001a7e1b to 001a7e1d has its CatchHandler @ 001a7f5c */\n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      } while( true );\n    }\n    if (iVar3 == -1) {\n      if (0 < param_3) {\n        *param_2 = 0;\n      }\n      uVar4 = 6;\n      if (iVar5 != 0) {\nLAB_001a7e4e:\n        uVar4 = 2;\n      }\n      goto LAB_001a7ead;\n    }\n  }" else (compound_statement "{\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[2];\n    if ((int *)piVar1[3] <= piVar2) goto LAB_001a7e15;\nLAB_001a7dc8:\n    iVar5 = param_1[1];\n    iVar3 = *piVar2;\n    iVar6 = iVar5 + 1;\n    piVar2 = param_2;\n    if (iVar6 < param_3) {\n      do {\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    /* try { // try from 001a7e1b to 001a7e1d has its CatchHandler @ 001a7f5c */\n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      } while( true );\n    }\n    if (iVar3 == -1) {\n      if (0 < param_3) {\n        *param_2 = 0;\n      }\n      uVar4 = 6;\n      if (iVar5 != 0) {\nLAB_001a7e4e:\n        uVar4 = 2;\n      }\n      goto LAB_001a7ead;\n    }\n  }" { (expression_statement "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);" (assignment_expression "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" identifier = (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" * (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))))) ;) (expression_statement "piVar2 = (int *)piVar1[2];" (assignment_expression "piVar2 = (int *)piVar1[2]" identifier = (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if ((int *)piVar1[3] <= piVar2) goto LAB_001a7e15;" if (parenthesized_expression "((int *)piVar1[3] <= piVar2)" ( (binary_expression "(int *)piVar1[3] <= piVar2" (cast_expression "(int *)piVar1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ])) <= identifier) )) (goto_statement "goto LAB_001a7e15;" goto statement_identifier ;)) (labeled_statement "LAB_001a7dc8:\n    iVar5 = param_1[1];" statement_identifier : (expression_statement "iVar5 = param_1[1];" (assignment_expression "iVar5 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;)) (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "iVar6 = iVar5 + 1;" (assignment_expression "iVar6 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "piVar2 = param_2;" (assignment_expression "piVar2 = param_2" identifier = identifier) ;) (if_statement "if (iVar6 < param_3) {\n      do {\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    /* try { // try from 001a7e1b to 001a7e1d has its CatchHandler @ 001a7f5c */\n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      } while( true );\n    }" if (parenthesized_expression "(iVar6 < param_3)" ( (binary_expression "iVar6 < param_3" identifier < identifier) )) (compound_statement "{\n      do {\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    /* try { // try from 001a7e1b to 001a7e1d has its CatchHandler @ 001a7f5c */\n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      } while( true );\n    }" { (do_statement "do {\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    /* try { // try from 001a7e1b to 001a7e1d has its CatchHandler @ 001a7f5c */\n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      } while( true );" do (compound_statement "{\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    /* try { // try from 001a7e1b to 001a7e1d has its CatchHandler @ 001a7f5c */\n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      }" { (if_statement "if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }" { (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" identifier = number_literal) ;) (labeled_statement "LAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }" statement_identifier : (if_statement "if (0 < param_3) {\n            *piVar2 = 0;\n          }" if (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) )) (compound_statement "{\n            *piVar2 = 0;\n          }" { (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) }))) (if_statement "if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }" { (labeled_statement "LAB_001a7ef1:\n            uVar4 = uVar4 | 4;" statement_identifier : (expression_statement "uVar4 = uVar4 | 4;" (assignment_expression "uVar4 = uVar4 | 4" identifier = (binary_expression "uVar4 | 4" identifier | number_literal)) ;)) }) (else_clause "else if (uVar4 == 0) {\n            return param_1;\n          }" else (if_statement "if (uVar4 == 0) {\n            return param_1;\n          }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n            return param_1;\n          }" { (return_statement "return param_1;" return identifier ;) })))) (goto_statement "goto LAB_001a7ead;" goto statement_identifier ;) })) (if_statement "if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }" if (parenthesized_expression "(param_4 == iVar3)" ( (binary_expression "param_4 == iVar3" identifier == identifier) )) (compound_statement "{\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_001a7f1a;" goto statement_identifier ;) })) (expression_statement "param_2 = piVar2 + 1;" (assignment_expression "param_2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "*piVar2 = iVar3;" (assignment_expression "*piVar2 = iVar3" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "param_1[1] = iVar6;" (assignment_expression "param_1[1] = iVar6" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar2 = (int *)piVar1[2];" (assignment_expression "piVar2 = (int *)piVar1[2]" identifier = (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }" if (parenthesized_expression "(piVar2 < (int *)piVar1[3])" ( (binary_expression "piVar2 < (int *)piVar1[3]" identifier < (cast_expression "(int *)piVar1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }" { (expression_statement "iVar6 = *piVar2;" (assignment_expression "iVar6 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "piVar1[2] = (int)(piVar2 + 1);" (assignment_expression "piVar1[2] = (int)(piVar2 + 1)" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)(piVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar2 + 1)" ( (binary_expression "piVar2 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }" else (compound_statement "{\n                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }" { comment (expression_statement "iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);" (assignment_expression "iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x28))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x28))" ( (pointer_expression "**(code **)(*piVar1 + 0x28)" * (pointer_expression "*(code **)(*piVar1 + 0x28)" * (cast_expression "(code **)(*piVar1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x28)" ( (binary_expression "*piVar1 + 0x28" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) }))) (if_statement "if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }" if (parenthesized_expression "(iVar6 == -1)" ( (binary_expression "iVar6 == -1" identifier == number_literal) )) (compound_statement "{\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }" { (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }" if (parenthesized_expression "(param_3 < 1)" ( (binary_expression "param_3 < 1" identifier < number_literal) )) (compound_statement "{\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }" { (if_statement "if (iVar6 != 0) goto LAB_001a7e4e;" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (goto_statement "goto LAB_001a7e4e;" goto statement_identifier ;)) (expression_statement "uVar4 = 6;" (assignment_expression "uVar4 = 6" identifier = number_literal) ;) }) (else_clause "else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }" else (compound_statement "{\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" identifier = number_literal) ;) (if_statement "if (iVar6 == 0) goto LAB_001a7ef1;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_001a7ef1;" goto statement_identifier ;)) }))) (goto_statement "goto LAB_001a7ead;" goto statement_identifier ;) })) (expression_statement "piVar2 = (int *)piVar1[2];" (assignment_expression "piVar2 = (int *)piVar1[2]" identifier = (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;" if (parenthesized_expression "(piVar2 < (int *)piVar1[3])" ( (binary_expression "piVar2 < (int *)piVar1[3]" identifier < (cast_expression "(int *)piVar1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) )) (goto_statement "goto LAB_001a7dc8;" goto statement_identifier ;)) (labeled_statement "LAB_001a7e15:\n                    /* try { // try from 001a7e1b to 001a7e1d has its CatchHandler @ 001a7f5c */\n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);" statement_identifier : comment (expression_statement "iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;)) (expression_statement "iVar5 = param_1[1];" (assignment_expression "iVar5 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = iVar5 + 1;" (assignment_expression "iVar6 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "piVar2 = param_2;" (assignment_expression "piVar2 = param_2" identifier = identifier) ;) (if_statement "if (param_3 <= iVar6) break;" if (parenthesized_expression "(param_3 <= iVar6)" ( (binary_expression "param_3 <= iVar6" identifier <= identifier) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "( true )" ( true )) ;) })) (if_statement "if (iVar3 == -1) {\n      if (0 < param_3) {\n        *param_2 = 0;\n      }\n      uVar4 = 6;\n      if (iVar5 != 0) {\nLAB_001a7e4e:\n        uVar4 = 2;\n      }\n      goto LAB_001a7ead;\n    }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n      if (0 < param_3) {\n        *param_2 = 0;\n      }\n      uVar4 = 6;\n      if (iVar5 != 0) {\nLAB_001a7e4e:\n        uVar4 = 2;\n      }\n      goto LAB_001a7ead;\n    }" { (if_statement "if (0 < param_3) {\n        *param_2 = 0;\n      }" if (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) )) (compound_statement "{\n        *param_2 = 0;\n      }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) })) (expression_statement "uVar4 = 6;" (assignment_expression "uVar4 = 6" identifier = number_literal) ;) (if_statement "if (iVar5 != 0) {\nLAB_001a7e4e:\n        uVar4 = 2;\n      }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_001a7e4e:\n        uVar4 = 2;\n      }" { (labeled_statement "LAB_001a7e4e:\n        uVar4 = 2;" statement_identifier : (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" identifier = number_literal) ;)) })) (goto_statement "goto LAB_001a7ead;" goto statement_identifier ;) })) }))) (if_statement "if (0 < param_3) {\n    *param_2 = 0;\n  }" if (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) )) (compound_statement "{\n    *param_2 = 0;\n  }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) })) (if_statement "if (iVar5 != 0) {\n    return param_1;\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "uVar4 = 4;" (assignment_expression "uVar4 = 4" identifier = number_literal) ;) (labeled_statement "LAB_001a7ead:\n  iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;" statement_identifier : (expression_statement "iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1" identifier = (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;)) (expression_statement "FUN_001ab090(iVar6,uVar4 | *(uint *)(iVar6 + 0x14));" (call_expression "FUN_001ab090(iVar6,uVar4 | *(uint *)(iVar6 + 0x14))" identifier (argument_list "(iVar6,uVar4 | *(uint *)(iVar6 + 0x14))" ( identifier , (binary_expression "uVar4 | *(uint *)(iVar6 + 0x14)" identifier | (pointer_expression "*(uint *)(iVar6 + 0x14)" * (cast_expression "(uint *)(iVar6 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x14)" ( (binary_expression "iVar6 + 0x14" identifier + number_literal) ))))) ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* std::wistream::get(wchar_t*, int, wchar_t) */\n\nwistream * __thiscall\nstd::wistream::get(wistream *this,wchar_t *param_1,int param_2,wchar_t param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  wchar_t *pwVar3;\n  wchar_t wVar4;\n  _Ios_Iostate _Var5;\n  int iVar6;\n  int iVar7;\n  sentry local_1d [13];\n  \n  *(undefined4 *)(this + 4) = 0;\n  sentry::sentry(local_1d,this,true);\n  if (local_1d[0] == (sentry)0x0) {\n    iVar7 = *(int *)(this + 4);\n  }\n  else {\n    piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c);\n    pwVar3 = (wchar_t *)piVar1[2];\n    if ((wchar_t *)piVar1[3] <= pwVar3) goto LAB_001a7e15;\nLAB_001a7dc8:\n    iVar7 = *(int *)(this + 4);\n    wVar4 = *pwVar3;\n    iVar6 = iVar7 + 1;\n    pwVar3 = param_1;\n    if (iVar6 < param_2) {\n      do {\n        if (wVar4 == L'\xffffffff') {\n          _Var5 = _S_eofbit;\nLAB_001a7f1a:\n          if (0 < param_2) {\n            *pwVar3 = L'\0';\n          }\n          if (iVar7 == 0) {\nLAB_001a7ef1:\n            _Var5 = _Var5 | _S_failbit;\n          }\n          else if (_Var5 == _S_goodbit) {\n            return this;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_3 == wVar4) {\n          _Var5 = _S_goodbit;\n          goto LAB_001a7f1a;\n        }\n        param_1 = pwVar3 + 1;\n        *pwVar3 = wVar4;\n        *(int *)(this + 4) = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = *(int *)(this + 4);\n          if (param_2 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            _Var5 = _S_failbit|_S_eofbit;\n          }\n          else {\n            *param_1 = L'\0';\n            _Var5 = _S_eofbit;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        pwVar3 = (wchar_t *)piVar1[2];\n        if (pwVar3 < (wchar_t *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    /* try { // try from 001a7e1b to 001a7e1d has its CatchHandler @ 001a7f5c */\n        wVar4 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar7 = *(int *)(this + 4);\n        iVar6 = iVar7 + 1;\n        pwVar3 = param_1;\n        if (param_2 <= iVar6) break;\n      } while( true );\n    }\n    if (wVar4 == L'\xffffffff') {\n      if (0 < param_2) {\n        *param_1 = L'\0';\n      }\n      _Var5 = _S_failbit|_S_eofbit;\n      if (iVar7 != 0) {\nLAB_001a7e4e:\n        _Var5 = _S_eofbit;\n      }\n      goto LAB_001a7ead;\n    }\n  }\n  if (0 < param_2) {\n    *param_1 = L'\0';\n  }\n  if (iVar7 != 0) {\n    return this;\n  }\n  _Var5 = _S_failbit;\nLAB_001a7ead:\n  wios::clear((wios *)(this + *(int *)(*(int *)this + -0xc)),\n              _Var5 | *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));\n  return this;\n}\n\n" comment comment (ERROR "wistream * __thiscall\nstd::wistream::get(wistream *this,wchar_t *param_1,int param_2,wchar_t param_3)" (binary_expression "wistream * __thiscall\nstd::wistream::get(wistream *this" (binary_expression "wistream * __thiscall" identifier * identifier) (ERROR "std::wistream::get(wistream" identifier : : identifier : : identifier ( identifier) * identifier) , type_identifier (pointer_declarator "*param_1" * identifier) , (ERROR "int" identifier) identifier , identifier identifier )) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  wchar_t *pwVar3;\n  wchar_t wVar4;\n  _Ios_Iostate _Var5;\n  int iVar6;\n  int iVar7;\n  sentry local_1d [13];\n  \n  *(undefined4 *)(this + 4) = 0;\n  sentry::sentry(local_1d,this,true);\n  if (local_1d[0] == (sentry)0x0) {\n    iVar7 = *(int *)(this + 4);\n  }\n  else {\n    piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c);\n    pwVar3 = (wchar_t *)piVar1[2];\n    if ((wchar_t *)piVar1[3] <= pwVar3) goto LAB_001a7e15;\nLAB_001a7dc8:\n    iVar7 = *(int *)(this + 4);\n    wVar4 = *pwVar3;\n    iVar6 = iVar7 + 1;\n    pwVar3 = param_1;\n    if (iVar6 < param_2) {\n      do {\n        if (wVar4 == L'\xffffffff') {\n          _Var5 = _S_eofbit;\nLAB_001a7f1a:\n          if (0 < param_2) {\n            *pwVar3 = L'\0';\n          }\n          if (iVar7 == 0) {\nLAB_001a7ef1:\n            _Var5 = _Var5 | _S_failbit;\n          }\n          else if (_Var5 == _S_goodbit) {\n            return this;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_3 == wVar4) {\n          _Var5 = _S_goodbit;\n          goto LAB_001a7f1a;\n        }\n        param_1 = pwVar3 + 1;\n        *pwVar3 = wVar4;\n        *(int *)(this + 4) = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = *(int *)(this + 4);\n          if (param_2 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            _Var5 = _S_failbit|_S_eofbit;\n          }\n          else {\n            *param_1 = L'\0';\n            _Var5 = _S_eofbit;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        pwVar3 = (wchar_t *)piVar1[2];\n        if (pwVar3 < (wchar_t *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    /* try { // try from 001a7e1b to 001a7e1d has its CatchHandler @ 001a7f5c */\n        wVar4 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar7 = *(int *)(this + 4);\n        iVar6 = iVar7 + 1;\n        pwVar3 = param_1;\n        if (param_2 <= iVar6) break;\n      } while( true );\n    }\n    if (wVar4 == L'\xffffffff') {\n      if (0 < param_2) {\n        *param_1 = L'\0';\n      }\n      _Var5 = _S_failbit|_S_eofbit;\n      if (iVar7 != 0) {\nLAB_001a7e4e:\n        _Var5 = _S_eofbit;\n      }\n      goto LAB_001a7ead;\n    }\n  }\n  if (0 < param_2) {\n    *param_1 = L'\0';\n  }\n  if (iVar7 != 0) {\n    return this;\n  }\n  _Var5 = _S_failbit;\nLAB_001a7ead:\n  wios::clear((wios *)(this + *(int *)(*(int *)this + -0xc)),\n              _Var5 | *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));\n  return this;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "wchar_t *pwVar3;" type_identifier (pointer_declarator "*pwVar3" * identifier) ;) (declaration "wchar_t wVar4;" type_identifier identifier ;) (declaration "_Ios_Iostate _Var5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "sentry local_1d [13];" type_identifier (array_declarator "local_1d [13]" identifier [ number_literal ]) ;) (expression_statement "*(undefined4 *)(this + 4) = 0;" (assignment_expression "*(undefined4 *)(this + 4) = 0" (pointer_expression "*(undefined4 *)(this + 4)" * (cast_expression "(undefined4 *)(this + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = number_literal) ;) (labeled_statement "sentry::sentry(local_1d,this,true);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(local_1d,this,true);" (call_expression "sentry(local_1d,this,true)" identifier (argument_list "(local_1d,this,true)" ( identifier , identifier , true ))) ;)) (if_statement "if (local_1d[0] == (sentry)0x0) {\n    iVar7 = *(int *)(this + 4);\n  }\n  else {\n    piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c);\n    pwVar3 = (wchar_t *)piVar1[2];\n    if ((wchar_t *)piVar1[3] <= pwVar3) goto LAB_001a7e15;\nLAB_001a7dc8:\n    iVar7 = *(int *)(this + 4);\n    wVar4 = *pwVar3;\n    iVar6 = iVar7 + 1;\n    pwVar3 = param_1;\n    if (iVar6 < param_2) {\n      do {\n        if (wVar4 == L'\xffffffff') {\n          _Var5 = _S_eofbit;\nLAB_001a7f1a:\n          if (0 < param_2) {\n            *pwVar3 = L'\0';\n          }\n          if (iVar7 == 0) {\nLAB_001a7ef1:\n            _Var5 = _Var5 | _S_failbit;\n          }\n          else if (_Var5 == _S_goodbit) {\n            return this;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_3 == wVar4) {\n          _Var5 = _S_goodbit;\n          goto LAB_001a7f1a;\n        }\n        param_1 = pwVar3 + 1;\n        *pwVar3 = wVar4;\n        *(int *)(this + 4) = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = *(int *)(this + 4);\n          if (param_2 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            _Var5 = _S_failbit|_S_eofbit;\n          }\n          else {\n            *param_1 = L'\0';\n            _Var5 = _S_eofbit;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        pwVar3 = (wchar_t *)piVar1[2];\n        if (pwVar3 < (wchar_t *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    /* try { // try from 001a7e1b to 001a7e1d has its CatchHandler @ 001a7f5c */\n        wVar4 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar7 = *(int *)(this + 4);\n        iVar6 = iVar7 + 1;\n        pwVar3 = param_1;\n        if (param_2 <= iVar6) break;\n      } while( true );\n    }\n    if (wVar4 == L'\xffffffff') {\n      if (0 < param_2) {\n        *param_1 = L'\0';\n      }\n      _Var5 = _S_failbit|_S_eofbit;\n      if (iVar7 != 0) {\nLAB_001a7e4e:\n        _Var5 = _S_eofbit;\n      }\n      goto LAB_001a7ead;\n    }\n  }" if (parenthesized_expression "(local_1d[0] == (sentry)0x0)" ( (binary_expression "local_1d[0] == (sentry)0x0" (subscript_expression "local_1d[0]" identifier [ number_literal ]) == (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n    iVar7 = *(int *)(this + 4);\n  }" { (expression_statement "iVar7 = *(int *)(this + 4);" (assignment_expression "iVar7 = *(int *)(this + 4)" identifier = (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c);\n    pwVar3 = (wchar_t *)piVar1[2];\n    if ((wchar_t *)piVar1[3] <= pwVar3) goto LAB_001a7e15;\nLAB_001a7dc8:\n    iVar7 = *(int *)(this + 4);\n    wVar4 = *pwVar3;\n    iVar6 = iVar7 + 1;\n    pwVar3 = param_1;\n    if (iVar6 < param_2) {\n      do {\n        if (wVar4 == L'\xffffffff') {\n          _Var5 = _S_eofbit;\nLAB_001a7f1a:\n          if (0 < param_2) {\n            *pwVar3 = L'\0';\n          }\n          if (iVar7 == 0) {\nLAB_001a7ef1:\n            _Var5 = _Var5 | _S_failbit;\n          }\n          else if (_Var5 == _S_goodbit) {\n            return this;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_3 == wVar4) {\n          _Var5 = _S_goodbit;\n          goto LAB_001a7f1a;\n        }\n        param_1 = pwVar3 + 1;\n        *pwVar3 = wVar4;\n        *(int *)(this + 4) = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = *(int *)(this + 4);\n          if (param_2 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            _Var5 = _S_failbit|_S_eofbit;\n          }\n          else {\n            *param_1 = L'\0';\n            _Var5 = _S_eofbit;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        pwVar3 = (wchar_t *)piVar1[2];\n        if (pwVar3 < (wchar_t *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    /* try { // try from 001a7e1b to 001a7e1d has its CatchHandler @ 001a7f5c */\n        wVar4 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar7 = *(int *)(this + 4);\n        iVar6 = iVar7 + 1;\n        pwVar3 = param_1;\n        if (param_2 <= iVar6) break;\n      } while( true );\n    }\n    if (wVar4 == L'\xffffffff') {\n      if (0 < param_2) {\n        *param_1 = L'\0';\n      }\n      _Var5 = _S_failbit|_S_eofbit;\n      if (iVar7 != 0) {\nLAB_001a7e4e:\n        _Var5 = _S_eofbit;\n      }\n      goto LAB_001a7ead;\n    }\n  }" else (compound_statement "{\n    piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c);\n    pwVar3 = (wchar_t *)piVar1[2];\n    if ((wchar_t *)piVar1[3] <= pwVar3) goto LAB_001a7e15;\nLAB_001a7dc8:\n    iVar7 = *(int *)(this + 4);\n    wVar4 = *pwVar3;\n    iVar6 = iVar7 + 1;\n    pwVar3 = param_1;\n    if (iVar6 < param_2) {\n      do {\n        if (wVar4 == L'\xffffffff') {\n          _Var5 = _S_eofbit;\nLAB_001a7f1a:\n          if (0 < param_2) {\n            *pwVar3 = L'\0';\n          }\n          if (iVar7 == 0) {\nLAB_001a7ef1:\n            _Var5 = _Var5 | _S_failbit;\n          }\n          else if (_Var5 == _S_goodbit) {\n            return this;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_3 == wVar4) {\n          _Var5 = _S_goodbit;\n          goto LAB_001a7f1a;\n        }\n        param_1 = pwVar3 + 1;\n        *pwVar3 = wVar4;\n        *(int *)(this + 4) = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = *(int *)(this + 4);\n          if (param_2 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            _Var5 = _S_failbit|_S_eofbit;\n          }\n          else {\n            *param_1 = L'\0';\n            _Var5 = _S_eofbit;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        pwVar3 = (wchar_t *)piVar1[2];\n        if (pwVar3 < (wchar_t *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    /* try { // try from 001a7e1b to 001a7e1d has its CatchHandler @ 001a7f5c */\n        wVar4 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar7 = *(int *)(this + 4);\n        iVar6 = iVar7 + 1;\n        pwVar3 = param_1;\n        if (param_2 <= iVar6) break;\n      } while( true );\n    }\n    if (wVar4 == L'\xffffffff') {\n      if (0 < param_2) {\n        *param_1 = L'\0';\n      }\n      _Var5 = _S_failbit|_S_eofbit;\n      if (iVar7 != 0) {\nLAB_001a7e4e:\n        _Var5 = _S_eofbit;\n      }\n      goto LAB_001a7ead;\n    }\n  }" { (expression_statement "piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c);" (assignment_expression "piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c)" identifier = (pointer_expression "*(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c)" * (cast_expression "(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc) + 0x7c)" ( (binary_expression "this + *(int *)(*(int *)this + -0xc) + 0x7c" (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))))) ;) (expression_statement "pwVar3 = (wchar_t *)piVar1[2];" (assignment_expression "pwVar3 = (wchar_t *)piVar1[2]" identifier = (cast_expression "(wchar_t *)piVar1[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if ((wchar_t *)piVar1[3] <= pwVar3) goto LAB_001a7e15;" if (parenthesized_expression "((wchar_t *)piVar1[3] <= pwVar3)" ( (binary_expression "(wchar_t *)piVar1[3] <= pwVar3" (cast_expression "(wchar_t *)piVar1[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ])) <= identifier) )) (goto_statement "goto LAB_001a7e15;" goto statement_identifier ;)) (labeled_statement "LAB_001a7dc8:\n    iVar7 = *(int *)(this + 4);" statement_identifier : (expression_statement "iVar7 = *(int *)(this + 4);" (assignment_expression "iVar7 = *(int *)(this + 4)" identifier = (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;)) (expression_statement "wVar4 = *pwVar3;" (assignment_expression "wVar4 = *pwVar3" identifier = (pointer_expression "*pwVar3" * identifier)) ;) (expression_statement "iVar6 = iVar7 + 1;" (assignment_expression "iVar6 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "pwVar3 = param_1;" (assignment_expression "pwVar3 = param_1" identifier = identifier) ;) (if_statement "if (iVar6 < param_2) {\n      do {\n        if (wVar4 == L'\xffffffff') {\n          _Var5 = _S_eofbit;\nLAB_001a7f1a:\n          if (0 < param_2) {\n            *pwVar3 = L'\0';\n          }\n          if (iVar7 == 0) {\nLAB_001a7ef1:\n            _Var5 = _Var5 | _S_failbit;\n          }\n          else if (_Var5 == _S_goodbit) {\n            return this;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_3 == wVar4) {\n          _Var5 = _S_goodbit;\n          goto LAB_001a7f1a;\n        }\n        param_1 = pwVar3 + 1;\n        *pwVar3 = wVar4;\n        *(int *)(this + 4) = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = *(int *)(this + 4);\n          if (param_2 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            _Var5 = _S_failbit|_S_eofbit;\n          }\n          else {\n            *param_1 = L'\0';\n            _Var5 = _S_eofbit;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        pwVar3 = (wchar_t *)piVar1[2];\n        if (pwVar3 < (wchar_t *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    /* try { // try from 001a7e1b to 001a7e1d has its CatchHandler @ 001a7f5c */\n        wVar4 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar7 = *(int *)(this + 4);\n        iVar6 = iVar7 + 1;\n        pwVar3 = param_1;\n        if (param_2 <= iVar6) break;\n      } while( true );\n    }" if (parenthesized_expression "(iVar6 < param_2)" ( (binary_expression "iVar6 < param_2" identifier < identifier) )) (compound_statement "{\n      do {\n        if (wVar4 == L'\xffffffff') {\n          _Var5 = _S_eofbit;\nLAB_001a7f1a:\n          if (0 < param_2) {\n            *pwVar3 = L'\0';\n          }\n          if (iVar7 == 0) {\nLAB_001a7ef1:\n            _Var5 = _Var5 | _S_failbit;\n          }\n          else if (_Var5 == _S_goodbit) {\n            return this;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_3 == wVar4) {\n          _Var5 = _S_goodbit;\n          goto LAB_001a7f1a;\n        }\n        param_1 = pwVar3 + 1;\n        *pwVar3 = wVar4;\n        *(int *)(this + 4) = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = *(int *)(this + 4);\n          if (param_2 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            _Var5 = _S_failbit|_S_eofbit;\n          }\n          else {\n            *param_1 = L'\0';\n            _Var5 = _S_eofbit;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        pwVar3 = (wchar_t *)piVar1[2];\n        if (pwVar3 < (wchar_t *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    /* try { // try from 001a7e1b to 001a7e1d has its CatchHandler @ 001a7f5c */\n        wVar4 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar7 = *(int *)(this + 4);\n        iVar6 = iVar7 + 1;\n        pwVar3 = param_1;\n        if (param_2 <= iVar6) break;\n      } while( true );\n    }" { (do_statement "do {\n        if (wVar4 == L'\xffffffff') {\n          _Var5 = _S_eofbit;\nLAB_001a7f1a:\n          if (0 < param_2) {\n            *pwVar3 = L'\0';\n          }\n          if (iVar7 == 0) {\nLAB_001a7ef1:\n            _Var5 = _Var5 | _S_failbit;\n          }\n          else if (_Var5 == _S_goodbit) {\n            return this;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_3 == wVar4) {\n          _Var5 = _S_goodbit;\n          goto LAB_001a7f1a;\n        }\n        param_1 = pwVar3 + 1;\n        *pwVar3 = wVar4;\n        *(int *)(this + 4) = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = *(int *)(this + 4);\n          if (param_2 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            _Var5 = _S_failbit|_S_eofbit;\n          }\n          else {\n            *param_1 = L'\0';\n            _Var5 = _S_eofbit;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        pwVar3 = (wchar_t *)piVar1[2];\n        if (pwVar3 < (wchar_t *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    /* try { // try from 001a7e1b to 001a7e1d has its CatchHandler @ 001a7f5c */\n        wVar4 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar7 = *(int *)(this + 4);\n        iVar6 = iVar7 + 1;\n        pwVar3 = param_1;\n        if (param_2 <= iVar6) break;\n      } while( true );" do (compound_statement "{\n        if (wVar4 == L'\xffffffff') {\n          _Var5 = _S_eofbit;\nLAB_001a7f1a:\n          if (0 < param_2) {\n            *pwVar3 = L'\0';\n          }\n          if (iVar7 == 0) {\nLAB_001a7ef1:\n            _Var5 = _Var5 | _S_failbit;\n          }\n          else if (_Var5 == _S_goodbit) {\n            return this;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_3 == wVar4) {\n          _Var5 = _S_goodbit;\n          goto LAB_001a7f1a;\n        }\n        param_1 = pwVar3 + 1;\n        *pwVar3 = wVar4;\n        *(int *)(this + 4) = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = *(int *)(this + 4);\n          if (param_2 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            _Var5 = _S_failbit|_S_eofbit;\n          }\n          else {\n            *param_1 = L'\0';\n            _Var5 = _S_eofbit;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        pwVar3 = (wchar_t *)piVar1[2];\n        if (pwVar3 < (wchar_t *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    /* try { // try from 001a7e1b to 001a7e1d has its CatchHandler @ 001a7f5c */\n        wVar4 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar7 = *(int *)(this + 4);\n        iVar6 = iVar7 + 1;\n        pwVar3 = param_1;\n        if (param_2 <= iVar6) break;\n      }" { (if_statement "if (wVar4 == L'\xffffffff') {\n          _Var5 = _S_eofbit;\nLAB_001a7f1a:\n          if (0 < param_2) {\n            *pwVar3 = L'\0';\n          }\n          if (iVar7 == 0) {\nLAB_001a7ef1:\n            _Var5 = _Var5 | _S_failbit;\n          }\n          else if (_Var5 == _S_goodbit) {\n            return this;\n          }\n          goto LAB_001a7ead;\n        }" if (parenthesized_expression "(wVar4 == L'\xffffffff')" ( (binary_expression "wVar4 == L'\xffffffff'" identifier == (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (compound_statement "{\n          _Var5 = _S_eofbit;\nLAB_001a7f1a:\n          if (0 < param_2) {\n            *pwVar3 = L'\0';\n          }\n          if (iVar7 == 0) {\nLAB_001a7ef1:\n            _Var5 = _Var5 | _S_failbit;\n          }\n          else if (_Var5 == _S_goodbit) {\n            return this;\n          }\n          goto LAB_001a7ead;\n        }" { (expression_statement "_Var5 = _S_eofbit;" (assignment_expression "_Var5 = _S_eofbit" identifier = identifier) ;) (labeled_statement "LAB_001a7f1a:\n          if (0 < param_2) {\n            *pwVar3 = L'\0';\n          }" statement_identifier : (if_statement "if (0 < param_2) {\n            *pwVar3 = L'\0';\n          }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n            *pwVar3 = L'\0';\n          }" { (expression_statement "*pwVar3 = L'\0';" (assignment_expression "*pwVar3 = L'\0'" (pointer_expression "*pwVar3" * identifier) = (char_literal "L'\0'" L' escape_sequence ')) ;) }))) (if_statement "if (iVar7 == 0) {\nLAB_001a7ef1:\n            _Var5 = _Var5 | _S_failbit;\n          }\n          else if (_Var5 == _S_goodbit) {\n            return this;\n          }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_001a7ef1:\n            _Var5 = _Var5 | _S_failbit;\n          }" { (labeled_statement "LAB_001a7ef1:\n            _Var5 = _Var5 | _S_failbit;" statement_identifier : (expression_statement "_Var5 = _Var5 | _S_failbit;" (assignment_expression "_Var5 = _Var5 | _S_failbit" identifier = (binary_expression "_Var5 | _S_failbit" identifier | identifier)) ;)) }) (else_clause "else if (_Var5 == _S_goodbit) {\n            return this;\n          }" else (if_statement "if (_Var5 == _S_goodbit) {\n            return this;\n          }" if (parenthesized_expression "(_Var5 == _S_goodbit)" ( (binary_expression "_Var5 == _S_goodbit" identifier == identifier) )) (compound_statement "{\n            return this;\n          }" { (return_statement "return this;" return identifier ;) })))) (goto_statement "goto LAB_001a7ead;" goto statement_identifier ;) })) (if_statement "if (param_3 == wVar4) {\n          _Var5 = _S_goodbit;\n          goto LAB_001a7f1a;\n        }" if (parenthesized_expression "(param_3 == wVar4)" ( (binary_expression "param_3 == wVar4" identifier == identifier) )) (compound_statement "{\n          _Var5 = _S_goodbit;\n          goto LAB_001a7f1a;\n        }" { (expression_statement "_Var5 = _S_goodbit;" (assignment_expression "_Var5 = _S_goodbit" identifier = identifier) ;) (goto_statement "goto LAB_001a7f1a;" goto statement_identifier ;) })) (expression_statement "param_1 = pwVar3 + 1;" (assignment_expression "param_1 = pwVar3 + 1" identifier = (binary_expression "pwVar3 + 1" identifier + number_literal)) ;) (expression_statement "*pwVar3 = wVar4;" (assignment_expression "*pwVar3 = wVar4" (pointer_expression "*pwVar3" * identifier) = identifier) ;) (expression_statement "*(int *)(this + 4) = iVar6;" (assignment_expression "*(int *)(this + 4) = iVar6" (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "piVar2 = (int *)piVar1[2];" (assignment_expression "piVar2 = (int *)piVar1[2]" identifier = (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }" if (parenthesized_expression "(piVar2 < (int *)piVar1[3])" ( (binary_expression "piVar2 < (int *)piVar1[3]" identifier < (cast_expression "(int *)piVar1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }" { (expression_statement "iVar6 = *piVar2;" (assignment_expression "iVar6 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "piVar1[2] = (int)(piVar2 + 1);" (assignment_expression "piVar1[2] = (int)(piVar2 + 1)" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)(piVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar2 + 1)" ( (binary_expression "piVar2 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }" else (compound_statement "{\n                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }" { comment (expression_statement "iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);" (assignment_expression "iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x28))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x28))" ( (pointer_expression "**(code **)(*piVar1 + 0x28)" * (pointer_expression "*(code **)(*piVar1 + 0x28)" * (cast_expression "(code **)(*piVar1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x28)" ( (binary_expression "*piVar1 + 0x28" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) }))) (if_statement "if (iVar6 == -1) {\n          iVar6 = *(int *)(this + 4);\n          if (param_2 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            _Var5 = _S_failbit|_S_eofbit;\n          }\n          else {\n            *param_1 = L'\0';\n            _Var5 = _S_eofbit;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }" if (parenthesized_expression "(iVar6 == -1)" ( (binary_expression "iVar6 == -1" identifier == number_literal) )) (compound_statement "{\n          iVar6 = *(int *)(this + 4);\n          if (param_2 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            _Var5 = _S_failbit|_S_eofbit;\n          }\n          else {\n            *param_1 = L'\0';\n            _Var5 = _S_eofbit;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }" { (expression_statement "iVar6 = *(int *)(this + 4);" (assignment_expression "iVar6 = *(int *)(this + 4)" identifier = (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;) (if_statement "if (param_2 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            _Var5 = _S_failbit|_S_eofbit;\n          }\n          else {\n            *param_1 = L'\0';\n            _Var5 = _S_eofbit;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }" if (parenthesized_expression "(param_2 < 1)" ( (binary_expression "param_2 < 1" identifier < number_literal) )) (compound_statement "{\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            _Var5 = _S_failbit|_S_eofbit;\n          }" { (if_statement "if (iVar6 != 0) goto LAB_001a7e4e;" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (goto_statement "goto LAB_001a7e4e;" goto statement_identifier ;)) (expression_statement "_Var5 = _S_failbit|_S_eofbit;" (assignment_expression "_Var5 = _S_failbit|_S_eofbit" identifier = (binary_expression "_S_failbit|_S_eofbit" identifier | identifier)) ;) }) (else_clause "else {\n            *param_1 = L'\0';\n            _Var5 = _S_eofbit;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }" else (compound_statement "{\n            *param_1 = L'\0';\n            _Var5 = _S_eofbit;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }" { (expression_statement "*param_1 = L'\0';" (assignment_expression "*param_1 = L'\0'" (pointer_expression "*param_1" * identifier) = (char_literal "L'\0'" L' escape_sequence ')) ;) (expression_statement "_Var5 = _S_eofbit;" (assignment_expression "_Var5 = _S_eofbit" identifier = identifier) ;) (if_statement "if (iVar6 == 0) goto LAB_001a7ef1;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_001a7ef1;" goto statement_identifier ;)) }))) (goto_statement "goto LAB_001a7ead;" goto statement_identifier ;) })) (expression_statement "pwVar3 = (wchar_t *)piVar1[2];" (assignment_expression "pwVar3 = (wchar_t *)piVar1[2]" identifier = (cast_expression "(wchar_t *)piVar1[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if (pwVar3 < (wchar_t *)piVar1[3]) goto LAB_001a7dc8;" if (parenthesized_expression "(pwVar3 < (wchar_t *)piVar1[3])" ( (binary_expression "pwVar3 < (wchar_t *)piVar1[3]" identifier < (cast_expression "(wchar_t *)piVar1[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) )) (goto_statement "goto LAB_001a7dc8;" goto statement_identifier ;)) (labeled_statement "LAB_001a7e15:\n                    /* try { // try from 001a7e1b to 001a7e1d has its CatchHandler @ 001a7f5c */\n        wVar4 = (**(code **)(*piVar1 + 0x24))(piVar1);" statement_identifier : comment (expression_statement "wVar4 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "wVar4 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;)) (expression_statement "iVar7 = *(int *)(this + 4);" (assignment_expression "iVar7 = *(int *)(this + 4)" identifier = (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = iVar7 + 1;" (assignment_expression "iVar6 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "pwVar3 = param_1;" (assignment_expression "pwVar3 = param_1" identifier = identifier) ;) (if_statement "if (param_2 <= iVar6) break;" if (parenthesized_expression "(param_2 <= iVar6)" ( (binary_expression "param_2 <= iVar6" identifier <= identifier) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "( true )" ( true )) ;) })) (if_statement "if (wVar4 == L'\xffffffff') {\n      if (0 < param_2) {\n        *param_1 = L'\0';\n      }\n      _Var5 = _S_failbit|_S_eofbit;\n      if (iVar7 != 0) {\nLAB_001a7e4e:\n        _Var5 = _S_eofbit;\n      }\n      goto LAB_001a7ead;\n    }" if (parenthesized_expression "(wVar4 == L'\xffffffff')" ( (binary_expression "wVar4 == L'\xffffffff'" identifier == (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (compound_statement "{\n      if (0 < param_2) {\n        *param_1 = L'\0';\n      }\n      _Var5 = _S_failbit|_S_eofbit;\n      if (iVar7 != 0) {\nLAB_001a7e4e:\n        _Var5 = _S_eofbit;\n      }\n      goto LAB_001a7ead;\n    }" { (if_statement "if (0 < param_2) {\n        *param_1 = L'\0';\n      }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n        *param_1 = L'\0';\n      }" { (expression_statement "*param_1 = L'\0';" (assignment_expression "*param_1 = L'\0'" (pointer_expression "*param_1" * identifier) = (char_literal "L'\0'" L' escape_sequence ')) ;) })) (expression_statement "_Var5 = _S_failbit|_S_eofbit;" (assignment_expression "_Var5 = _S_failbit|_S_eofbit" identifier = (binary_expression "_S_failbit|_S_eofbit" identifier | identifier)) ;) (if_statement "if (iVar7 != 0) {\nLAB_001a7e4e:\n        _Var5 = _S_eofbit;\n      }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_001a7e4e:\n        _Var5 = _S_eofbit;\n      }" { (labeled_statement "LAB_001a7e4e:\n        _Var5 = _S_eofbit;" statement_identifier : (expression_statement "_Var5 = _S_eofbit;" (assignment_expression "_Var5 = _S_eofbit" identifier = identifier) ;)) })) (goto_statement "goto LAB_001a7ead;" goto statement_identifier ;) })) }))) (if_statement "if (0 < param_2) {\n    *param_1 = L'\0';\n  }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n    *param_1 = L'\0';\n  }" { (expression_statement "*param_1 = L'\0';" (assignment_expression "*param_1 = L'\0'" (pointer_expression "*param_1" * identifier) = (char_literal "L'\0'" L' escape_sequence ')) ;) })) (if_statement "if (iVar7 != 0) {\n    return this;\n  }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n    return this;\n  }" { (return_statement "return this;" return identifier ;) })) (expression_statement "_Var5 = _S_failbit;" (assignment_expression "_Var5 = _S_failbit" identifier = identifier) ;) (labeled_statement "LAB_001a7ead:\n  wios::clear((wios *)(this + *(int *)(*(int *)this + -0xc)),\n              _Var5 | *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));" statement_identifier : (labeled_statement "wios::clear((wios *)(this + *(int *)(*(int *)this + -0xc)),\n              _Var5 | *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));" statement_identifier : (ERROR ":" :) (expression_statement "clear((wios *)(this + *(int *)(*(int *)this + -0xc)),\n              _Var5 | *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));" (call_expression "clear((wios *)(this + *(int *)(*(int *)this + -0xc)),\n              _Var5 | *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14))" identifier (argument_list "((wios *)(this + *(int *)(*(int *)this + -0xc)),\n              _Var5 | *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14))" ( (cast_expression "(wios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) , (binary_expression "_Var5 | *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" identifier | (pointer_expression "*(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" * (cast_expression "(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" ( (binary_expression "(wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14" (cast_expression "(wios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) + number_literal) ))))) ))) ;))) (return_statement "return this;" return identifier ;) }))
(translation_unit "int * FUN_001a7d50(int *param_1,int *param_2,int param_3,int param_4)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  char local_1d [13];\n  \n  param_1[1] = 0;\n  FUN_001a7460(local_1d,param_1,1);\n  if (local_1d[0] == '\0') {\n    iVar5 = param_1[1];\n  }\n  else {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[2];\n    if ((int *)piVar1[3] <= piVar2) goto LAB_001a7e15;\nLAB_001a7dc8:\n    iVar5 = param_1[1];\n    iVar3 = *piVar2;\n    iVar6 = iVar5 + 1;\n    piVar2 = param_2;\n    if (iVar6 < param_3) {\n      do {\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    \n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      } while( true );\n    }\n    if (iVar3 == -1) {\n      if (0 < param_3) {\n        *param_2 = 0;\n      }\n      uVar4 = 6;\n      if (iVar5 != 0) {\nLAB_001a7e4e:\n        uVar4 = 2;\n      }\n      goto LAB_001a7ead;\n    }\n  }\n  if (0 < param_3) {\n    *param_2 = 0;\n  }\n  if (iVar5 != 0) {\n    return param_1;\n  }\n  uVar4 = 4;\nLAB_001a7ead:\n  iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  FUN_001ab090(iVar6,uVar4 | *(uint *)(iVar6 + 0x14));\n  return param_1;\n}\n\n" (function_definition "int * FUN_001a7d50(int *param_1,int *param_2,int param_3,int param_4)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  char local_1d [13];\n  \n  param_1[1] = 0;\n  FUN_001a7460(local_1d,param_1,1);\n  if (local_1d[0] == '\0') {\n    iVar5 = param_1[1];\n  }\n  else {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[2];\n    if ((int *)piVar1[3] <= piVar2) goto LAB_001a7e15;\nLAB_001a7dc8:\n    iVar5 = param_1[1];\n    iVar3 = *piVar2;\n    iVar6 = iVar5 + 1;\n    piVar2 = param_2;\n    if (iVar6 < param_3) {\n      do {\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    \n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      } while( true );\n    }\n    if (iVar3 == -1) {\n      if (0 < param_3) {\n        *param_2 = 0;\n      }\n      uVar4 = 6;\n      if (iVar5 != 0) {\nLAB_001a7e4e:\n        uVar4 = 2;\n      }\n      goto LAB_001a7ead;\n    }\n  }\n  if (0 < param_3) {\n    *param_2 = 0;\n  }\n  if (iVar5 != 0) {\n    return param_1;\n  }\n  uVar4 = 4;\nLAB_001a7ead:\n  iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  FUN_001ab090(iVar6,uVar4 | *(uint *)(iVar6 + 0x14));\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_001a7d50(int *param_1,int *param_2,int param_3,int param_4)" * (function_declarator "FUN_001a7d50(int *param_1,int *param_2,int param_3,int param_4)" identifier (parameter_list "(int *param_1,int *param_2,int param_3,int param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  char local_1d [13];\n  \n  param_1[1] = 0;\n  FUN_001a7460(local_1d,param_1,1);\n  if (local_1d[0] == '\0') {\n    iVar5 = param_1[1];\n  }\n  else {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[2];\n    if ((int *)piVar1[3] <= piVar2) goto LAB_001a7e15;\nLAB_001a7dc8:\n    iVar5 = param_1[1];\n    iVar3 = *piVar2;\n    iVar6 = iVar5 + 1;\n    piVar2 = param_2;\n    if (iVar6 < param_3) {\n      do {\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    \n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      } while( true );\n    }\n    if (iVar3 == -1) {\n      if (0 < param_3) {\n        *param_2 = 0;\n      }\n      uVar4 = 6;\n      if (iVar5 != 0) {\nLAB_001a7e4e:\n        uVar4 = 2;\n      }\n      goto LAB_001a7ead;\n    }\n  }\n  if (0 < param_3) {\n    *param_2 = 0;\n  }\n  if (iVar5 != 0) {\n    return param_1;\n  }\n  uVar4 = 4;\nLAB_001a7ead:\n  iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  FUN_001ab090(iVar6,uVar4 | *(uint *)(iVar6 + 0x14));\n  return param_1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char local_1d [13];" primitive_type (array_declarator "local_1d [13]" identifier [ number_literal ]) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_001a7460(local_1d,param_1,1);" (call_expression "FUN_001a7460(local_1d,param_1,1)" identifier (argument_list "(local_1d,param_1,1)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (local_1d[0] == '\0') {\n    iVar5 = param_1[1];\n  }\n  else {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[2];\n    if ((int *)piVar1[3] <= piVar2) goto LAB_001a7e15;\nLAB_001a7dc8:\n    iVar5 = param_1[1];\n    iVar3 = *piVar2;\n    iVar6 = iVar5 + 1;\n    piVar2 = param_2;\n    if (iVar6 < param_3) {\n      do {\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    \n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      } while( true );\n    }\n    if (iVar3 == -1) {\n      if (0 < param_3) {\n        *param_2 = 0;\n      }\n      uVar4 = 6;\n      if (iVar5 != 0) {\nLAB_001a7e4e:\n        uVar4 = 2;\n      }\n      goto LAB_001a7ead;\n    }\n  }" if (parenthesized_expression "(local_1d[0] == '\0')" ( (binary_expression "local_1d[0] == '\0'" (subscript_expression "local_1d[0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar5 = param_1[1];\n  }" { (expression_statement "iVar5 = param_1[1];" (assignment_expression "iVar5 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[2];\n    if ((int *)piVar1[3] <= piVar2) goto LAB_001a7e15;\nLAB_001a7dc8:\n    iVar5 = param_1[1];\n    iVar3 = *piVar2;\n    iVar6 = iVar5 + 1;\n    piVar2 = param_2;\n    if (iVar6 < param_3) {\n      do {\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    \n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      } while( true );\n    }\n    if (iVar3 == -1) {\n      if (0 < param_3) {\n        *param_2 = 0;\n      }\n      uVar4 = 6;\n      if (iVar5 != 0) {\nLAB_001a7e4e:\n        uVar4 = 2;\n      }\n      goto LAB_001a7ead;\n    }\n  }" else (compound_statement "{\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[2];\n    if ((int *)piVar1[3] <= piVar2) goto LAB_001a7e15;\nLAB_001a7dc8:\n    iVar5 = param_1[1];\n    iVar3 = *piVar2;\n    iVar6 = iVar5 + 1;\n    piVar2 = param_2;\n    if (iVar6 < param_3) {\n      do {\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    \n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      } while( true );\n    }\n    if (iVar3 == -1) {\n      if (0 < param_3) {\n        *param_2 = 0;\n      }\n      uVar4 = 6;\n      if (iVar5 != 0) {\nLAB_001a7e4e:\n        uVar4 = 2;\n      }\n      goto LAB_001a7ead;\n    }\n  }" { (expression_statement "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);" (assignment_expression "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" identifier = (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" * (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))))) ;) (expression_statement "piVar2 = (int *)piVar1[2];" (assignment_expression "piVar2 = (int *)piVar1[2]" identifier = (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if ((int *)piVar1[3] <= piVar2) goto LAB_001a7e15;" if (parenthesized_expression "((int *)piVar1[3] <= piVar2)" ( (binary_expression "(int *)piVar1[3] <= piVar2" (cast_expression "(int *)piVar1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ])) <= identifier) )) (goto_statement "goto LAB_001a7e15;" goto statement_identifier ;)) (labeled_statement "LAB_001a7dc8:\n    iVar5 = param_1[1];" statement_identifier : (expression_statement "iVar5 = param_1[1];" (assignment_expression "iVar5 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;)) (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "iVar6 = iVar5 + 1;" (assignment_expression "iVar6 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "piVar2 = param_2;" (assignment_expression "piVar2 = param_2" identifier = identifier) ;) (if_statement "if (iVar6 < param_3) {\n      do {\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    \n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      } while( true );\n    }" if (parenthesized_expression "(iVar6 < param_3)" ( (binary_expression "iVar6 < param_3" identifier < identifier) )) (compound_statement "{\n      do {\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    \n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      } while( true );\n    }" { (do_statement "do {\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    \n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      } while( true );" do (compound_statement "{\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    \n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      }" { (if_statement "if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }" { (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" identifier = number_literal) ;) (labeled_statement "LAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }" statement_identifier : (if_statement "if (0 < param_3) {\n            *piVar2 = 0;\n          }" if (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) )) (compound_statement "{\n            *piVar2 = 0;\n          }" { (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) }))) (if_statement "if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }" { (labeled_statement "LAB_001a7ef1:\n            uVar4 = uVar4 | 4;" statement_identifier : (expression_statement "uVar4 = uVar4 | 4;" (assignment_expression "uVar4 = uVar4 | 4" identifier = (binary_expression "uVar4 | 4" identifier | number_literal)) ;)) }) (else_clause "else if (uVar4 == 0) {\n            return param_1;\n          }" else (if_statement "if (uVar4 == 0) {\n            return param_1;\n          }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n            return param_1;\n          }" { (return_statement "return param_1;" return identifier ;) })))) (goto_statement "goto LAB_001a7ead;" goto statement_identifier ;) })) (if_statement "if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }" if (parenthesized_expression "(param_4 == iVar3)" ( (binary_expression "param_4 == iVar3" identifier == identifier) )) (compound_statement "{\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_001a7f1a;" goto statement_identifier ;) })) (expression_statement "param_2 = piVar2 + 1;" (assignment_expression "param_2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "*piVar2 = iVar3;" (assignment_expression "*piVar2 = iVar3" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "param_1[1] = iVar6;" (assignment_expression "param_1[1] = iVar6" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar2 = (int *)piVar1[2];" (assignment_expression "piVar2 = (int *)piVar1[2]" identifier = (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }" if (parenthesized_expression "(piVar2 < (int *)piVar1[3])" ( (binary_expression "piVar2 < (int *)piVar1[3]" identifier < (cast_expression "(int *)piVar1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }" { (expression_statement "iVar6 = *piVar2;" (assignment_expression "iVar6 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "piVar1[2] = (int)(piVar2 + 1);" (assignment_expression "piVar1[2] = (int)(piVar2 + 1)" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)(piVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar2 + 1)" ( (binary_expression "piVar2 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }" else (compound_statement "{\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }" { (expression_statement "iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);" (assignment_expression "iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x28))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x28))" ( (pointer_expression "**(code **)(*piVar1 + 0x28)" * (pointer_expression "*(code **)(*piVar1 + 0x28)" * (cast_expression "(code **)(*piVar1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x28)" ( (binary_expression "*piVar1 + 0x28" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) }))) (if_statement "if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }" if (parenthesized_expression "(iVar6 == -1)" ( (binary_expression "iVar6 == -1" identifier == number_literal) )) (compound_statement "{\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }" { (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }" if (parenthesized_expression "(param_3 < 1)" ( (binary_expression "param_3 < 1" identifier < number_literal) )) (compound_statement "{\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }" { (if_statement "if (iVar6 != 0) goto LAB_001a7e4e;" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (goto_statement "goto LAB_001a7e4e;" goto statement_identifier ;)) (expression_statement "uVar4 = 6;" (assignment_expression "uVar4 = 6" identifier = number_literal) ;) }) (else_clause "else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }" else (compound_statement "{\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" identifier = number_literal) ;) (if_statement "if (iVar6 == 0) goto LAB_001a7ef1;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_001a7ef1;" goto statement_identifier ;)) }))) (goto_statement "goto LAB_001a7ead;" goto statement_identifier ;) })) (expression_statement "piVar2 = (int *)piVar1[2];" (assignment_expression "piVar2 = (int *)piVar1[2]" identifier = (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;" if (parenthesized_expression "(piVar2 < (int *)piVar1[3])" ( (binary_expression "piVar2 < (int *)piVar1[3]" identifier < (cast_expression "(int *)piVar1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) )) (goto_statement "goto LAB_001a7dc8;" goto statement_identifier ;)) (labeled_statement "LAB_001a7e15:\n                    \n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);" statement_identifier : (expression_statement "iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;)) (expression_statement "iVar5 = param_1[1];" (assignment_expression "iVar5 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = iVar5 + 1;" (assignment_expression "iVar6 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "piVar2 = param_2;" (assignment_expression "piVar2 = param_2" identifier = identifier) ;) (if_statement "if (param_3 <= iVar6) break;" if (parenthesized_expression "(param_3 <= iVar6)" ( (binary_expression "param_3 <= iVar6" identifier <= identifier) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "( true )" ( true )) ;) })) (if_statement "if (iVar3 == -1) {\n      if (0 < param_3) {\n        *param_2 = 0;\n      }\n      uVar4 = 6;\n      if (iVar5 != 0) {\nLAB_001a7e4e:\n        uVar4 = 2;\n      }\n      goto LAB_001a7ead;\n    }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n      if (0 < param_3) {\n        *param_2 = 0;\n      }\n      uVar4 = 6;\n      if (iVar5 != 0) {\nLAB_001a7e4e:\n        uVar4 = 2;\n      }\n      goto LAB_001a7ead;\n    }" { (if_statement "if (0 < param_3) {\n        *param_2 = 0;\n      }" if (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) )) (compound_statement "{\n        *param_2 = 0;\n      }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) })) (expression_statement "uVar4 = 6;" (assignment_expression "uVar4 = 6" identifier = number_literal) ;) (if_statement "if (iVar5 != 0) {\nLAB_001a7e4e:\n        uVar4 = 2;\n      }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_001a7e4e:\n        uVar4 = 2;\n      }" { (labeled_statement "LAB_001a7e4e:\n        uVar4 = 2;" statement_identifier : (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" identifier = number_literal) ;)) })) (goto_statement "goto LAB_001a7ead;" goto statement_identifier ;) })) }))) (if_statement "if (0 < param_3) {\n    *param_2 = 0;\n  }" if (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) )) (compound_statement "{\n    *param_2 = 0;\n  }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) })) (if_statement "if (iVar5 != 0) {\n    return param_1;\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "uVar4 = 4;" (assignment_expression "uVar4 = 4" identifier = number_literal) ;) (labeled_statement "LAB_001a7ead:\n  iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;" statement_identifier : (expression_statement "iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1" identifier = (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;)) (expression_statement "FUN_001ab090(iVar6,uVar4 | *(uint *)(iVar6 + 0x14));" (call_expression "FUN_001ab090(iVar6,uVar4 | *(uint *)(iVar6 + 0x14))" identifier (argument_list "(iVar6,uVar4 | *(uint *)(iVar6 + 0x14))" ( identifier , (binary_expression "uVar4 | *(uint *)(iVar6 + 0x14)" identifier | (pointer_expression "*(uint *)(iVar6 + 0x14)" * (cast_expression "(uint *)(iVar6 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x14)" ( (binary_expression "iVar6 + 0x14" identifier + number_literal) ))))) ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) <= IDENT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;)) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })))) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }))) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (break_statement break ;)) }) while (parenthesized_expression ( BOOL )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) })) (goto_statement goto statement_identifier ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT | (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) ;) (return_statement return IDENT ;) })))
(function_definition "int * FUN_001a7d50(int *param_1,int *param_2,int param_3,int param_4)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  char local_1d [13];\n  \n  param_1[1] = 0;\n  FUN_001a7460(local_1d,param_1,1);\n  if (local_1d[0] == '\0') {\n    iVar5 = param_1[1];\n  }\n  else {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[2];\n    if ((int *)piVar1[3] <= piVar2) goto LAB_001a7e15;\nLAB_001a7dc8:\n    iVar5 = param_1[1];\n    iVar3 = *piVar2;\n    iVar6 = iVar5 + 1;\n    piVar2 = param_2;\n    if (iVar6 < param_3) {\n      do {\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    \n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      } while( true );\n    }\n    if (iVar3 == -1) {\n      if (0 < param_3) {\n        *param_2 = 0;\n      }\n      uVar4 = 6;\n      if (iVar5 != 0) {\nLAB_001a7e4e:\n        uVar4 = 2;\n      }\n      goto LAB_001a7ead;\n    }\n  }\n  if (0 < param_3) {\n    *param_2 = 0;\n  }\n  if (iVar5 != 0) {\n    return param_1;\n  }\n  uVar4 = 4;\nLAB_001a7ead:\n  iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  FUN_001ab090(iVar6,uVar4 | *(uint *)(iVar6 + 0x14));\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_001a7d50(int *param_1,int *param_2,int param_3,int param_4)" (* "*") (function_declarator "FUN_001a7d50(int *param_1,int *param_2,int param_3,int param_4)" (identifier "FUN_001a7d50") (parameter_list "(int *param_1,int *param_2,int param_3,int param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")")))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  char local_1d [13];\n  \n  param_1[1] = 0;\n  FUN_001a7460(local_1d,param_1,1);\n  if (local_1d[0] == '\0') {\n    iVar5 = param_1[1];\n  }\n  else {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[2];\n    if ((int *)piVar1[3] <= piVar2) goto LAB_001a7e15;\nLAB_001a7dc8:\n    iVar5 = param_1[1];\n    iVar3 = *piVar2;\n    iVar6 = iVar5 + 1;\n    piVar2 = param_2;\n    if (iVar6 < param_3) {\n      do {\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    \n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      } while( true );\n    }\n    if (iVar3 == -1) {\n      if (0 < param_3) {\n        *param_2 = 0;\n      }\n      uVar4 = 6;\n      if (iVar5 != 0) {\nLAB_001a7e4e:\n        uVar4 = 2;\n      }\n      goto LAB_001a7ead;\n    }\n  }\n  if (0 < param_3) {\n    *param_2 = 0;\n  }\n  if (iVar5 != 0) {\n    return param_1;\n  }\n  uVar4 = 4;\nLAB_001a7ead:\n  iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  FUN_001ab090(iVar6,uVar4 | *(uint *)(iVar6 + 0x14));\n  return param_1;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "char local_1d [13];" (primitive_type "char") (array_declarator "local_1d [13]" (identifier "local_1d") ([ "[") (number_literal "13") (] "]")) (; ";")) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_001a7460(local_1d,param_1,1);" (call_expression "FUN_001a7460(local_1d,param_1,1)" (identifier "FUN_001a7460") (argument_list "(local_1d,param_1,1)" (( "(") (identifier "local_1d") (, ",") (identifier "param_1") (, ",") (number_literal "1") () ")"))) (; ";")) (if_statement "if (local_1d[0] == '\0') {\n    iVar5 = param_1[1];\n  }\n  else {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[2];\n    if ((int *)piVar1[3] <= piVar2) goto LAB_001a7e15;\nLAB_001a7dc8:\n    iVar5 = param_1[1];\n    iVar3 = *piVar2;\n    iVar6 = iVar5 + 1;\n    piVar2 = param_2;\n    if (iVar6 < param_3) {\n      do {\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    \n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      } while( true );\n    }\n    if (iVar3 == -1) {\n      if (0 < param_3) {\n        *param_2 = 0;\n      }\n      uVar4 = 6;\n      if (iVar5 != 0) {\nLAB_001a7e4e:\n        uVar4 = 2;\n      }\n      goto LAB_001a7ead;\n    }\n  }" (if "if") (parenthesized_expression "(local_1d[0] == '\0')" (( "(") (binary_expression "local_1d[0] == '\0'" (subscript_expression "local_1d[0]" (identifier "local_1d") ([ "[") (number_literal "0") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    iVar5 = param_1[1];\n  }" ({ "{") (expression_statement "iVar5 = param_1[1];" (assignment_expression "iVar5 = param_1[1]" (identifier "iVar5") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[2];\n    if ((int *)piVar1[3] <= piVar2) goto LAB_001a7e15;\nLAB_001a7dc8:\n    iVar5 = param_1[1];\n    iVar3 = *piVar2;\n    iVar6 = iVar5 + 1;\n    piVar2 = param_2;\n    if (iVar6 < param_3) {\n      do {\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    \n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      } while( true );\n    }\n    if (iVar3 == -1) {\n      if (0 < param_3) {\n        *param_2 = 0;\n      }\n      uVar4 = 6;\n      if (iVar5 != 0) {\nLAB_001a7e4e:\n        uVar4 = 2;\n      }\n      goto LAB_001a7ead;\n    }\n  }" (else "else") (compound_statement "{\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n    piVar2 = (int *)piVar1[2];\n    if ((int *)piVar1[3] <= piVar2) goto LAB_001a7e15;\nLAB_001a7dc8:\n    iVar5 = param_1[1];\n    iVar3 = *piVar2;\n    iVar6 = iVar5 + 1;\n    piVar2 = param_2;\n    if (iVar6 < param_3) {\n      do {\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    \n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      } while( true );\n    }\n    if (iVar3 == -1) {\n      if (0 < param_3) {\n        *param_2 = 0;\n      }\n      uVar4 = 6;\n      if (iVar5 != 0) {\nLAB_001a7e4e:\n        uVar4 = 2;\n      }\n      goto LAB_001a7ead;\n    }\n  }" ({ "{") (expression_statement "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);" (assignment_expression "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" (* "*") (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" (( "(") (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")"))))) (+ "+") (number_literal "0x7c")) () ")"))))) (; ";")) (expression_statement "piVar2 = (int *)piVar1[2];" (assignment_expression "piVar2 = (int *)piVar1[2]" (identifier "piVar2") (= "=") (cast_expression "(int *)piVar1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if ((int *)piVar1[3] <= piVar2) goto LAB_001a7e15;" (if "if") (parenthesized_expression "((int *)piVar1[3] <= piVar2)" (( "(") (binary_expression "(int *)piVar1[3] <= piVar2" (cast_expression "(int *)piVar1[3]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]"))) (<= "<=") (identifier "piVar2")) () ")")) (goto_statement "goto LAB_001a7e15;" (goto "goto") (statement_identifier "LAB_001a7e15") (; ";"))) (labeled_statement "LAB_001a7dc8:\n    iVar5 = param_1[1];" (statement_identifier "LAB_001a7dc8") (: ":") (expression_statement "iVar5 = param_1[1];" (assignment_expression "iVar5 = param_1[1]" (identifier "iVar5") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";"))) (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" (identifier "iVar3") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (expression_statement "iVar6 = iVar5 + 1;" (assignment_expression "iVar6 = iVar5 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar2 = param_2;" (assignment_expression "piVar2 = param_2" (identifier "piVar2") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (iVar6 < param_3) {\n      do {\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    \n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      } while( true );\n    }" (if "if") (parenthesized_expression "(iVar6 < param_3)" (( "(") (binary_expression "iVar6 < param_3" (identifier "iVar6") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n      do {\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    \n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      } while( true );\n    }" ({ "{") (do_statement "do {\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    \n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      } while( true );" (do "do") (compound_statement "{\n        if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }\n        if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }\n        param_2 = piVar2 + 1;\n        *piVar2 = iVar3;\n        param_1[1] = iVar6;\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }\n        if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }\n        piVar2 = (int *)piVar1[2];\n        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;\nLAB_001a7e15:\n                    \n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        iVar5 = param_1[1];\n        iVar6 = iVar5 + 1;\n        piVar2 = param_2;\n        if (param_3 <= iVar6) break;\n      }" ({ "{") (if_statement "if (iVar3 == -1) {\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }" (if "if") (parenthesized_expression "(iVar3 == -1)" (( "(") (binary_expression "iVar3 == -1" (identifier "iVar3") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n          uVar4 = 2;\nLAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }\n          if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }\n          goto LAB_001a7ead;\n        }" ({ "{") (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" (identifier "uVar4") (= "=") (number_literal "2")) (; ";")) (labeled_statement "LAB_001a7f1a:\n          if (0 < param_3) {\n            *piVar2 = 0;\n          }" (statement_identifier "LAB_001a7f1a") (: ":") (if_statement "if (0 < param_3) {\n            *piVar2 = 0;\n          }" (if "if") (parenthesized_expression "(0 < param_3)" (( "(") (binary_expression "0 < param_3" (number_literal "0") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n            *piVar2 = 0;\n          }" ({ "{") (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (number_literal "0")) (; ";")) (} "}")))) (if_statement "if (iVar5 == 0) {\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }\n          else if (uVar4 == 0) {\n            return param_1;\n          }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_001a7ef1:\n            uVar4 = uVar4 | 4;\n          }" ({ "{") (labeled_statement "LAB_001a7ef1:\n            uVar4 = uVar4 | 4;" (statement_identifier "LAB_001a7ef1") (: ":") (expression_statement "uVar4 = uVar4 | 4;" (assignment_expression "uVar4 = uVar4 | 4" (identifier "uVar4") (= "=") (binary_expression "uVar4 | 4" (identifier "uVar4") (| "|") (number_literal "4"))) (; ";"))) (} "}")) (else_clause "else if (uVar4 == 0) {\n            return param_1;\n          }" (else "else") (if_statement "if (uVar4 == 0) {\n            return param_1;\n          }" (if "if") (parenthesized_expression "(uVar4 == 0)" (( "(") (binary_expression "uVar4 == 0" (identifier "uVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            return param_1;\n          }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))))) (goto_statement "goto LAB_001a7ead;" (goto "goto") (statement_identifier "LAB_001a7ead") (; ";")) (} "}"))) (if_statement "if (param_4 == iVar3) {\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }" (if "if") (parenthesized_expression "(param_4 == iVar3)" (( "(") (binary_expression "param_4 == iVar3" (identifier "param_4") (== "==") (identifier "iVar3")) () ")")) (compound_statement "{\n          uVar4 = 0;\n          goto LAB_001a7f1a;\n        }" ({ "{") (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_001a7f1a;" (goto "goto") (statement_identifier "LAB_001a7f1a") (; ";")) (} "}"))) (expression_statement "param_2 = piVar2 + 1;" (assignment_expression "param_2 = piVar2 + 1" (identifier "param_2") (= "=") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*piVar2 = iVar3;" (assignment_expression "*piVar2 = iVar3" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "param_1[1] = iVar6;" (assignment_expression "param_1[1] = iVar6" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar6")) (; ";")) (expression_statement "piVar2 = (int *)piVar1[2];" (assignment_expression "piVar2 = (int *)piVar1[2]" (identifier "piVar2") (= "=") (cast_expression "(int *)piVar1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (piVar2 < (int *)piVar1[3]) {\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }\n        else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }" (if "if") (parenthesized_expression "(piVar2 < (int *)piVar1[3])" (( "(") (binary_expression "piVar2 < (int *)piVar1[3]" (identifier "piVar2") (< "<") (cast_expression "(int *)piVar1[3]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n          iVar6 = *piVar2;\n          piVar1[2] = (int)(piVar2 + 1);\n        }" ({ "{") (expression_statement "iVar6 = *piVar2;" (assignment_expression "iVar6 = *piVar2" (identifier "iVar6") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (expression_statement "piVar1[2] = (int)(piVar2 + 1);" (assignment_expression "piVar1[2] = (int)(piVar2 + 1)" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)(piVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(piVar2 + 1)" (( "(") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }" (else "else") (compound_statement "{\n                    \n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n        }" ({ "{") (expression_statement "iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);" (assignment_expression "iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1)" (identifier "iVar6") (= "=") (call_expression "(**(code **)(*piVar1 + 0x28))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x28))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0x28)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0x28)" (* "*") (cast_expression "(code **)(*piVar1 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x28)" (( "(") (binary_expression "*piVar1 + 0x28" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";")) (} "}")))) (if_statement "if (iVar6 == -1) {\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }" (if "if") (parenthesized_expression "(iVar6 == -1)" (( "(") (binary_expression "iVar6 == -1" (identifier "iVar6") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n          iVar6 = param_1[1];\n          if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }\n          goto LAB_001a7ead;\n        }" ({ "{") (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" (identifier "iVar6") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (param_3 < 1) {\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }\n          else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }" (if "if") (parenthesized_expression "(param_3 < 1)" (( "(") (binary_expression "param_3 < 1" (identifier "param_3") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n            if (iVar6 != 0) goto LAB_001a7e4e;\n            uVar4 = 6;\n          }" ({ "{") (if_statement "if (iVar6 != 0) goto LAB_001a7e4e;" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_001a7e4e;" (goto "goto") (statement_identifier "LAB_001a7e4e") (; ";"))) (expression_statement "uVar4 = 6;" (assignment_expression "uVar4 = 6" (identifier "uVar4") (= "=") (number_literal "6")) (; ";")) (} "}")) (else_clause "else {\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }" (else "else") (compound_statement "{\n            *param_2 = 0;\n            uVar4 = 2;\n            if (iVar6 == 0) goto LAB_001a7ef1;\n          }" ({ "{") (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" (identifier "uVar4") (= "=") (number_literal "2")) (; ";")) (if_statement "if (iVar6 == 0) goto LAB_001a7ef1;" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_001a7ef1;" (goto "goto") (statement_identifier "LAB_001a7ef1") (; ";"))) (} "}")))) (goto_statement "goto LAB_001a7ead;" (goto "goto") (statement_identifier "LAB_001a7ead") (; ";")) (} "}"))) (expression_statement "piVar2 = (int *)piVar1[2];" (assignment_expression "piVar2 = (int *)piVar1[2]" (identifier "piVar2") (= "=") (cast_expression "(int *)piVar1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;" (if "if") (parenthesized_expression "(piVar2 < (int *)piVar1[3])" (( "(") (binary_expression "piVar2 < (int *)piVar1[3]" (identifier "piVar2") (< "<") (cast_expression "(int *)piVar1[3]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")))) () ")")) (goto_statement "goto LAB_001a7dc8;" (goto "goto") (statement_identifier "LAB_001a7dc8") (; ";"))) (labeled_statement "LAB_001a7e15:\n                    \n        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);" (statement_identifier "LAB_001a7e15") (: ":") (expression_statement "iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1)" (identifier "iVar3") (= "=") (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0x24)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0x24)" (* "*") (cast_expression "(code **)(*piVar1 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x24)" (( "(") (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";"))) (expression_statement "iVar5 = param_1[1];" (assignment_expression "iVar5 = param_1[1]" (identifier "iVar5") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "iVar6 = iVar5 + 1;" (assignment_expression "iVar6 = iVar5 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar2 = param_2;" (assignment_expression "piVar2 = param_2" (identifier "piVar2") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (param_3 <= iVar6) break;" (if "if") (parenthesized_expression "(param_3 <= iVar6)" (( "(") (binary_expression "param_3 <= iVar6" (identifier "param_3") (<= "<=") (identifier "iVar6")) () ")")) (break_statement "break;" (break "break") (; ";"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}"))) (if_statement "if (iVar3 == -1) {\n      if (0 < param_3) {\n        *param_2 = 0;\n      }\n      uVar4 = 6;\n      if (iVar5 != 0) {\nLAB_001a7e4e:\n        uVar4 = 2;\n      }\n      goto LAB_001a7ead;\n    }" (if "if") (parenthesized_expression "(iVar3 == -1)" (( "(") (binary_expression "iVar3 == -1" (identifier "iVar3") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      if (0 < param_3) {\n        *param_2 = 0;\n      }\n      uVar4 = 6;\n      if (iVar5 != 0) {\nLAB_001a7e4e:\n        uVar4 = 2;\n      }\n      goto LAB_001a7ead;\n    }" ({ "{") (if_statement "if (0 < param_3) {\n        *param_2 = 0;\n      }" (if "if") (parenthesized_expression "(0 < param_3)" (( "(") (binary_expression "0 < param_3" (number_literal "0") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n        *param_2 = 0;\n      }" ({ "{") (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "uVar4 = 6;" (assignment_expression "uVar4 = 6" (identifier "uVar4") (= "=") (number_literal "6")) (; ";")) (if_statement "if (iVar5 != 0) {\nLAB_001a7e4e:\n        uVar4 = 2;\n      }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_001a7e4e:\n        uVar4 = 2;\n      }" ({ "{") (labeled_statement "LAB_001a7e4e:\n        uVar4 = 2;" (statement_identifier "LAB_001a7e4e") (: ":") (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" (identifier "uVar4") (= "=") (number_literal "2")) (; ";"))) (} "}"))) (goto_statement "goto LAB_001a7ead;" (goto "goto") (statement_identifier "LAB_001a7ead") (; ";")) (} "}"))) (} "}")))) (if_statement "if (0 < param_3) {\n    *param_2 = 0;\n  }" (if "if") (parenthesized_expression "(0 < param_3)" (( "(") (binary_expression "0 < param_3" (number_literal "0") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n    *param_2 = 0;\n  }" ({ "{") (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if (iVar5 != 0) {\n    return param_1;\n  }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return param_1;\n  }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "uVar4 = 4;" (assignment_expression "uVar4 = 4" (identifier "uVar4") (= "=") (number_literal "4")) (; ";")) (labeled_statement "LAB_001a7ead:\n  iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;" (statement_identifier "LAB_001a7ead") (: ":") (expression_statement "iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1" (identifier "iVar6") (= "=") (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")")))) (+ "+") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")))) (; ";"))) (expression_statement "FUN_001ab090(iVar6,uVar4 | *(uint *)(iVar6 + 0x14));" (call_expression "FUN_001ab090(iVar6,uVar4 | *(uint *)(iVar6 + 0x14))" (identifier "FUN_001ab090") (argument_list "(iVar6,uVar4 | *(uint *)(iVar6 + 0x14))" (( "(") (identifier "iVar6") (, ",") (binary_expression "uVar4 | *(uint *)(iVar6 + 0x14)" (identifier "uVar4") (| "|") (pointer_expression "*(uint *)(iVar6 + 0x14)" (* "*") (cast_expression "(uint *)(iVar6 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x14)" (( "(") (binary_expression "iVar6 + 0x14" (identifier "iVar6") (+ "+") (number_literal "0x14")) () ")"))))) () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* std::wistream::get(wchar_t*, int, wchar_t) */

wistream * __thiscall
std::wistream::get(wistream *var_1,type_1 *param_1,int var_5,type_1 var_10)

{
  int *piVar1;
  int *var_11;
  type_1 *var_2;
  type_1 var_6;
  type_2 var_7;
  int var_4;
  int var_3;
  type_3 local_1d [13];
  
  *(type_4 *)(var_1 + 4) = 0;
  sentry::type_3(local_1d,var_1,true);
  if (local_1d[0] == (type_3)0x0) {
    var_3 = *(int *)(var_1 + 4);
  }
  else {
    piVar1 = *(int **)(var_1 + *(int *)(*(int *)var_1 + -0xc) + 0x7c);
    var_2 = (type_1 *)piVar1[2];
    if ((type_1 *)piVar1[3] <= var_2) goto LAB_001a7e15;
LAB_001a7dc8:
    var_3 = *(int *)(var_1 + 4);
    var_6 = *var_2;
    var_4 = var_3 + 1;
    var_2 = param_1;
    if (var_4 < var_5) {
      do {
        if (var_6 == L'\xffffffff') {
          var_7 = var_12;
LAB_001a7f1a:
          if (0 < var_5) {
            *var_2 = L'\0';
          }
          if (var_3 == 0) {
LAB_001a7ef1:
            var_7 = var_7 | var_8;
          }
          else if (var_7 == var_9) {
            return var_1;
          }
          goto LAB_001a7ead;
        }
        if (var_10 == var_6) {
          var_7 = var_9;
          goto LAB_001a7f1a;
        }
        param_1 = var_2 + 1;
        *var_2 = var_6;
        *(int *)(var_1 + 4) = var_4;
        var_11 = (int *)piVar1[2];
        if (var_11 < (int *)piVar1[3]) {
          var_4 = *var_11;
          piVar1[2] = (int)(var_11 + 1);
        }
        else {
                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */
          var_4 = (**(type_5 **)(*piVar1 + 0x28))(piVar1);
        }
        if (var_4 == -1) {
          var_4 = *(int *)(var_1 + 4);
          if (var_5 < 1) {
            if (var_4 != 0) goto LAB_001a7e4e;
            var_7 = var_8|var_12;
          }
          else {
            *param_1 = L'\0';
            var_7 = var_12;
            if (var_4 == 0) goto LAB_001a7ef1;
          }
          goto LAB_001a7ead;
        }
        var_2 = (type_1 *)piVar1[2];
        if (var_2 < (type_1 *)piVar1[3]) goto LAB_001a7dc8;
LAB_001a7e15:
                    /* try { // try from 001a7e1b to 001a7e1d has its CatchHandler @ 001a7f5c */
        var_6 = (**(type_5 **)(*piVar1 + 0x24))(piVar1);
        var_3 = *(int *)(var_1 + 4);
        var_4 = var_3 + 1;
        var_2 = param_1;
        if (var_5 <= var_4) break;
      } while( true );
    }
    if (var_6 == L'\xffffffff') {
      if (0 < var_5) {
        *param_1 = L'\0';
      }
      var_7 = var_8|var_12;
      if (var_3 != 0) {
LAB_001a7e4e:
        var_7 = var_12;
      }
      goto LAB_001a7ead;
    }
  }
  if (0 < var_5) {
    *param_1 = L'\0';
  }
  if (var_3 != 0) {
    return var_1;
  }
  var_7 = var_8;
LAB_001a7ead:
  wios::var_13((type_6 *)(var_1 + *(int *)(*(int *)var_1 + -0xc)),
              var_7 | *(type_2 *)((type_6 *)(var_1 + *(int *)(*(int *)var_1 + -0xc)) + 0x14));
  return var_1;
}


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

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

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

{
  int *piVar1;
  int *piVar2;
  int iVar3;
  uint uVar4;
  int iVar5;
  int iVar6;
  char local_1d [13];
  
  param_1[1] = 0;
  FUN_001a7460(local_1d,param_1,1);
  if (local_1d[0] == '\0') {
    iVar5 = param_1[1];
  }
  else {
    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);
    piVar2 = (int *)piVar1[2];
    if ((int *)piVar1[3] <= piVar2) goto LAB_001a7e15;
LAB_001a7dc8:
    iVar5 = param_1[1];
    iVar3 = *piVar2;
    iVar6 = iVar5 + 1;
    piVar2 = param_2;
    if (iVar6 < param_3) {
      do {
        if (iVar3 == -1) {
          uVar4 = 2;
LAB_001a7f1a:
          if (0 < param_3) {
            *piVar2 = 0;
          }
          if (iVar5 == 0) {
LAB_001a7ef1:
            uVar4 = uVar4 | 4;
          }
          else if (uVar4 == 0) {
            return param_1;
          }
          goto LAB_001a7ead;
        }
        if (param_4 == iVar3) {
          uVar4 = 0;
          goto LAB_001a7f1a;
        }
        param_2 = piVar2 + 1;
        *piVar2 = iVar3;
        param_1[1] = iVar6;
        piVar2 = (int *)piVar1[2];
        if (piVar2 < (int *)piVar1[3]) {
          iVar6 = *piVar2;
          piVar1[2] = (int)(piVar2 + 1);
        }
        else {
                    /* try { // try from 001a7f06 to 001a7f08 has its CatchHandler @ 001a7f5c */
          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);
        }
        if (iVar6 == -1) {
          iVar6 = param_1[1];
          if (param_3 < 1) {
            if (iVar6 != 0) goto LAB_001a7e4e;
            uVar4 = 6;
          }
          else {
            *param_2 = 0;
            uVar4 = 2;
            if (iVar6 == 0) goto LAB_001a7ef1;
          }
          goto LAB_001a7ead;
        }
        piVar2 = (int *)piVar1[2];
        if (piVar2 < (int *)piVar1[3]) goto LAB_001a7dc8;
LAB_001a7e15:
                    /* try { // try from 001a7e1b to 001a7e1d has its CatchHandler @ 001a7f5c */
        iVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);
        iVar5 = param_1[1];
        iVar6 = iVar5 + 1;
        piVar2 = param_2;
        if (param_3 <= iVar6) break;
      } while( true );
    }
    if (iVar3 == -1) {
      if (0 < param_3) {
        *param_2 = 0;
      }
      uVar4 = 6;
      if (iVar5 != 0) {
LAB_001a7e4e:
        uVar4 = 2;
      }
      goto LAB_001a7ead;
    }
  }
  if (0 < param_3) {
    *param_2 = 0;
  }
  if (iVar5 != 0) {
    return param_1;
  }
  uVar4 = 4;
LAB_001a7ead:
  iVar6 = *(int *)(*param_1 + -0xc) + (int)param_1;
  FUN_001ab090(iVar6,uVar4 | *(uint *)(iVar6 + 0x14));
  return param_1;
}

