
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::istream::get(std::streambuf&, char) */

istream * __thiscall std::istream::get(istream *this,streambuf *param_1,char param_2)

{
  int *piVar1;
  uint uVar2;
  byte *pbVar3;
  _Ios_Iostate _Var4;
  int iVar5;
  byte *pbVar6;
  uint uVar7;
  sentry local_1d [9];
  undefined4 uStack_14;
  
  uStack_14 = 0x1d098b;
  *(undefined4 *)(this + 4) = 0;
  sentry::sentry(local_1d,this,true);
  if (local_1d[0] != (sentry)0x0) {
    piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78);
    if ((byte *)piVar1[3] <= (byte *)piVar1[2]) goto LAB_001d0a50;
    uVar2 = (uint)*(byte *)piVar1[2];
    uVar7 = uVar2;
LAB_001d09dc:
    if ((byte)param_2 != uVar2) {
      do {
        if (*(undefined1 **)(param_1 + 0x14) < *(undefined1 **)(param_1 + 0x18)) {
          **(undefined1 **)(param_1 + 0x14) = (char)uVar7;
          *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;
          pbVar3 = (byte *)piVar1[2];
          pbVar6 = (byte *)piVar1[3];
          *(int *)(this + 4) = *(int *)(this + 4) + 1;
          if (pbVar3 < pbVar6) goto LAB_001d0a05;
LAB_001d0aa8:
          iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);
          if (iVar5 == -1) goto LAB_001d0a70;
          pbVar3 = (byte *)piVar1[2];
          pbVar6 = (byte *)piVar1[3];
        }
        else {
          iVar5 = (**(code **)(*(int *)param_1 + 0x34))(param_1,uVar7);
          if (iVar5 == -1) break;
          pbVar3 = (byte *)piVar1[2];
          pbVar6 = (byte *)piVar1[3];
          *(int *)(this + 4) = *(int *)(this + 4) + 1;
          if (pbVar6 <= pbVar3) goto LAB_001d0aa8;
LAB_001d0a05:
          pbVar3 = pbVar3 + 1;
          piVar1[2] = (int)pbVar3;
        }
        if (pbVar6 <= pbVar3) goto LAB_001d0a50;
        uVar7 = (uint)*pbVar3;
        if ((byte)param_2 == uVar7) break;
      } while( true );
    }
  }
  if (*(int *)(this + 4) != 0) {
    return this;
  }
  _Var4 = _S_failbit;
LAB_001d0a2c:
  ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),
             _Var4 | *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));
  return this;
LAB_001d0a50:
                    /* try { // try from 001d0a56 to 001d0ab0 has its CatchHandler @ 001d0ac4 */
  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);
  uVar7 = uVar2 & 0xff;
  if (uVar2 == 0xffffffff) goto LAB_001d0a70;
  goto LAB_001d09dc;
LAB_001d0a70:
  _Var4 = (-(uint)(*(int *)(this + 4) == 0) & 4) + _S_eofbit;
  goto LAB_001d0a2c;
}



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

int * FUN_001d0980(int *param_1,int *param_2,uint param_3)

{
  int *piVar1;
  uint uVar2;
  byte *pbVar3;
  int iVar4;
  byte *pbVar5;
  uint uVar6;
  char local_1d [9];
  undefined4 uStack_14;
  
  uStack_14 = 0x1d098b;
  param_1[1] = 0;
  FUN_001cfd60(local_1d,param_1,1);
  if (local_1d[0] != '\0') {
    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);
    if ((byte *)piVar1[3] <= (byte *)piVar1[2]) goto LAB_001d0a50;
    uVar2 = (uint)*(byte *)piVar1[2];
    uVar6 = uVar2;
LAB_001d09dc:
    if ((param_3 & 0xff) != uVar2) {
      do {
        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {
          *(undefined1 *)param_2[5] = (char)uVar6;
          param_2[5] = param_2[5] + 1;
          pbVar3 = (byte *)piVar1[2];
          pbVar5 = (byte *)piVar1[3];
          param_1[1] = param_1[1] + 1;
          if (pbVar3 < pbVar5) goto LAB_001d0a05;
LAB_001d0aa8:
          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);
          if (iVar4 == -1) goto LAB_001d0a70;
          pbVar3 = (byte *)piVar1[2];
          pbVar5 = (byte *)piVar1[3];
        }
        else {
          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);
          if (iVar4 == -1) break;
          pbVar3 = (byte *)piVar1[2];
          pbVar5 = (byte *)piVar1[3];
          param_1[1] = param_1[1] + 1;
          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;
LAB_001d0a05:
          pbVar3 = pbVar3 + 1;
          piVar1[2] = (int)pbVar3;
        }
        if (pbVar5 <= pbVar3) goto LAB_001d0a50;
        uVar6 = (uint)*pbVar3;
        if ((param_3 & 0xff) == uVar6) break;
      } while( true );
    }
  }
  if (param_1[1] != 0) {
    return param_1;
  }
  uVar6 = 4;
LAB_001d0a2c:
  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;
  FUN_001d62c0(iVar4,uVar6 | *(uint *)(iVar4 + 0x14));
  return param_1;
LAB_001d0a50:
                    /* try { // try from 001d0a56 to 001d0ab0 has its CatchHandler @ 001d0ac4 */
  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);
  uVar6 = uVar2 & 0xff;
  if (uVar2 == 0xffffffff) goto LAB_001d0a70;
  goto LAB_001d09dc;
LAB_001d0a70:
  uVar6 = (-(uint)(param_1[1] == 0) & 4) + 2;
  goto LAB_001d0a2c;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0x16e675
SUB ESP,0x30
MOV EAX,dword ptr [EBP + 0x10]
MOV EDI,dword ptr [EBP + 0x8]
MOV ESI,dword ptr [EBP + 0xc]
MOV dword ptr [EBP + -0x2c],EAX
LEA EAX,[EBP + -0x19]
MOV dword ptr [EDI + 0x4],0x0
PUSH 0x1
PUSH EDI
PUSH EAX
MOV dword ptr [EBP + -0x30],EBX
CALL 0x001cfd60
ADD ESP,0x10
CMP byte ptr [EBP + -0x19],0x0
JZ 0x001d0a20
MOVZX EAX,byte ptr [EBP + -0x2c]
MOV dword ptr [EBP + -0x2c],EAX
MOV EAX,dword ptr [EDI]
MOV EAX,dword ptr [EAX + -0xc]
MOV EBX,dword ptr [EDI + EAX*0x1 + 0x78]
MOV EAX,dword ptr [EBX + 0x8]
CMP dword ptr [EBX + 0xc],EAX
JBE 0x001d0a50
MOVZX EAX,byte ptr [EAX]
MOV EDX,EAX
CMP dword ptr [EBP + -0x2c],EAX
JZ 0x001d0a20
MOV EAX,dword ptr [ESI + 0x14]
CMP EAX,dword ptr [ESI + 0x18]
JNC 0x001d0a80
MOV byte ptr [EAX],DL
ADD dword ptr [ESI + 0x14],0x1
MOV EAX,dword ptr [EBX + 0x8]
MOV EDX,dword ptr [EBX + 0xc]
ADD dword ptr [EDI + 0x4],0x1
CMP EAX,EDX
JNC 0x001d0aa8
ADD EAX,0x1
MOV dword ptr [EBX + 0x8],EAX
CMP EDX,EAX
JBE 0x001d0a50
MOVZX EDX,byte ptr [EAX]
MOVZX EAX,DL
CMP dword ptr [EBP + -0x2c],EAX
JNZ 0x001d09e1
LEA ESI,[ESI]
MOV EAX,dword ptr [EDI + 0x4]
TEST EAX,EAX
JNZ 0x001d0a46
MOV EAX,0x4
MOV EDX,dword ptr [EDI]
SUB ESP,0x8
MOV EBX,dword ptr [EBP + -0x30]
MOV ECX,dword ptr [EDX + -0xc]
ADD ECX,EDI
OR EAX,dword ptr [ECX + 0x14]
PUSH EAX
PUSH ECX
CALL 0x001d62c0
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBX]
SUB ESP,0xc
PUSH EBX
CALL dword ptr [EAX + 0x24]
ADD ESP,0x10
MOVZX EDX,AL
CMP EAX,-0x1
JNZ 0x001d09dc
LEA ESI,[ESI]
NOP
CMP dword ptr [EDI + 0x4],0x1
SBB EAX,EAX
AND EAX,0x4
ADD EAX,0x2
JMP 0x001d0a2c
MOV EAX,dword ptr [ESI]
SUB ESP,0x8
PUSH EDX
PUSH ESI
CALL dword ptr [EAX + 0x34]
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x001d0a20
MOV EAX,dword ptr [EBX + 0x8]
MOV EDX,dword ptr [EBX + 0xc]
ADD dword ptr [EDI + 0x4],0x1
CMP EAX,EDX
JC 0x001d0a05
LEA ESI,[ESI]
MOV EAX,dword ptr [EBX]
SUB ESP,0xc
PUSH EBX
CALL dword ptr [EAX + 0x28]
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x001d0a70
MOV EAX,dword ptr [EBX + 0x8]
MOV EDX,dword ptr [EBX + 0xc]
JMP 0x001d0a0b
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * FUN_001d0980(int *param_1,int *param_2,uint param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int iVar4;\n  byte *pbVar5;\n  uint uVar6;\n  char local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1d098b;\n  param_1[1] = 0;\n  FUN_001cfd60(local_1d,param_1,1);\n  if (local_1d[0] != '\0') {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[3] <= (byte *)piVar1[2]) goto LAB_001d0a50;\n    uVar2 = (uint)*(byte *)piVar1[2];\n    uVar6 = uVar2;\nLAB_001d09dc:\n    if ((param_3 & 0xff) != uVar2) {\n      do {\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      } while( true );\n    }\n  }\n  if (param_1[1] != 0) {\n    return param_1;\n  }\n  uVar6 = 4;\nLAB_001d0a2c:\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  FUN_001d62c0(iVar4,uVar6 | *(uint *)(iVar4 + 0x14));\n  return param_1;\nLAB_001d0a50:\n                    /* try { // try from 001d0a56 to 001d0ab0 has its CatchHandler @ 001d0ac4 */\n  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  uVar6 = uVar2 & 0xff;\n  if (uVar2 == 0xffffffff) goto LAB_001d0a70;\n  goto LAB_001d09dc;\nLAB_001d0a70:\n  uVar6 = (-(uint)(param_1[1] == 0) & 4) + 2;\n  goto LAB_001d0a2c;\n}\n\n" comment (function_definition "int * FUN_001d0980(int *param_1,int *param_2,uint param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int iVar4;\n  byte *pbVar5;\n  uint uVar6;\n  char local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1d098b;\n  param_1[1] = 0;\n  FUN_001cfd60(local_1d,param_1,1);\n  if (local_1d[0] != '\0') {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[3] <= (byte *)piVar1[2]) goto LAB_001d0a50;\n    uVar2 = (uint)*(byte *)piVar1[2];\n    uVar6 = uVar2;\nLAB_001d09dc:\n    if ((param_3 & 0xff) != uVar2) {\n      do {\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      } while( true );\n    }\n  }\n  if (param_1[1] != 0) {\n    return param_1;\n  }\n  uVar6 = 4;\nLAB_001d0a2c:\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  FUN_001d62c0(iVar4,uVar6 | *(uint *)(iVar4 + 0x14));\n  return param_1;\nLAB_001d0a50:\n                    /* try { // try from 001d0a56 to 001d0ab0 has its CatchHandler @ 001d0ac4 */\n  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  uVar6 = uVar2 & 0xff;\n  if (uVar2 == 0xffffffff) goto LAB_001d0a70;\n  goto LAB_001d09dc;\nLAB_001d0a70:\n  uVar6 = (-(uint)(param_1[1] == 0) & 4) + 2;\n  goto LAB_001d0a2c;\n}" primitive_type (pointer_declarator "* FUN_001d0980(int *param_1,int *param_2,uint param_3)" * (function_declarator "FUN_001d0980(int *param_1,int *param_2,uint param_3)" identifier (parameter_list "(int *param_1,int *param_2,uint param_3)" ( (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 "uint param_3" type_identifier identifier) )))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int iVar4;\n  byte *pbVar5;\n  uint uVar6;\n  char local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1d098b;\n  param_1[1] = 0;\n  FUN_001cfd60(local_1d,param_1,1);\n  if (local_1d[0] != '\0') {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[3] <= (byte *)piVar1[2]) goto LAB_001d0a50;\n    uVar2 = (uint)*(byte *)piVar1[2];\n    uVar6 = uVar2;\nLAB_001d09dc:\n    if ((param_3 & 0xff) != uVar2) {\n      do {\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      } while( true );\n    }\n  }\n  if (param_1[1] != 0) {\n    return param_1;\n  }\n  uVar6 = 4;\nLAB_001d0a2c:\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  FUN_001d62c0(iVar4,uVar6 | *(uint *)(iVar4 + 0x14));\n  return param_1;\nLAB_001d0a50:\n                    /* try { // try from 001d0a56 to 001d0ab0 has its CatchHandler @ 001d0ac4 */\n  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  uVar6 = uVar2 & 0xff;\n  if (uVar2 == 0xffffffff) goto LAB_001d0a70;\n  goto LAB_001d09dc;\nLAB_001d0a70:\n  uVar6 = (-(uint)(param_1[1] == 0) & 4) + 2;\n  goto LAB_001d0a2c;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "char local_1d [9];" primitive_type (array_declarator "local_1d [9]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1d098b;" (assignment_expression "uStack_14 = 0x1d098b" 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_001cfd60(local_1d,param_1,1);" (call_expression "FUN_001cfd60(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    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[3] <= (byte *)piVar1[2]) goto LAB_001d0a50;\n    uVar2 = (uint)*(byte *)piVar1[2];\n    uVar6 = uVar2;\nLAB_001d09dc:\n    if ((param_3 & 0xff) != uVar2) {\n      do {\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      } while( true );\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    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[3] <= (byte *)piVar1[2]) goto LAB_001d0a50;\n    uVar2 = (uint)*(byte *)piVar1[2];\n    uVar6 = uVar2;\nLAB_001d09dc:\n    if ((param_3 & 0xff) != uVar2) {\n      do {\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      } while( true );\n    }\n  }" { (expression_statement "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);" (assignment_expression "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" identifier = (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" * (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x78" (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) ))))) ;) (if_statement "if ((byte *)piVar1[3] <= (byte *)piVar1[2]) goto LAB_001d0a50;" if (parenthesized_expression "((byte *)piVar1[3] <= (byte *)piVar1[2])" ( (binary_expression "(byte *)piVar1[3] <= (byte *)piVar1[2]" (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ])) <= (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) )) (goto_statement "goto LAB_001d0a50;" goto statement_identifier ;)) (expression_statement "uVar2 = (uint)*(byte *)piVar1[2];" (assignment_expression "uVar2 = (uint)*(byte *)piVar1[2]" identifier = (binary_expression "(uint)*(byte *)piVar1[2]" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])))) ;) (expression_statement "uVar6 = uVar2;" (assignment_expression "uVar6 = uVar2" identifier = identifier) ;) (labeled_statement "LAB_001d09dc:\n    if ((param_3 & 0xff) != uVar2) {\n      do {\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      } while( true );\n    }" statement_identifier : (if_statement "if ((param_3 & 0xff) != uVar2) {\n      do {\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      } while( true );\n    }" if (parenthesized_expression "((param_3 & 0xff) != uVar2)" ( (binary_expression "(param_3 & 0xff) != uVar2" (parenthesized_expression "(param_3 & 0xff)" ( (binary_expression "param_3 & 0xff" identifier & number_literal) )) != identifier) )) (compound_statement "{\n      do {\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      } while( true );\n    }" { (do_statement "do {\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      } while( true );" do (compound_statement "{\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      }" { (if_statement "if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }" if (parenthesized_expression "((undefined1 *)param_2[5] < (undefined1 *)param_2[6])" ( (binary_expression "(undefined1 *)param_2[5] < (undefined1 *)param_2[6]" (cast_expression "(undefined1 *)param_2[5]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[5]" identifier [ number_literal ])) < (cast_expression "(undefined1 *)param_2[6]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[6]" identifier [ number_literal ]))) )) (compound_statement "{\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }" { (expression_statement "*(undefined1 *)param_2[5] = (char)uVar6;" (assignment_expression "*(undefined1 *)param_2[5] = (char)uVar6" (pointer_expression "*(undefined1 *)param_2[5]" * (cast_expression "(undefined1 *)param_2[5]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[5]" identifier [ number_literal ]))) = (cast_expression "(char)uVar6" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "param_2[5] = param_2[5] + 1;" (assignment_expression "param_2[5] = param_2[5] + 1" (subscript_expression "param_2[5]" identifier [ number_literal ]) = (binary_expression "param_2[5] + 1" (subscript_expression "param_2[5]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "pbVar3 = (byte *)piVar1[2];" (assignment_expression "pbVar3 = (byte *)piVar1[2]" identifier = (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar5 = (byte *)piVar1[3];" (assignment_expression "pbVar5 = (byte *)piVar1[3]" identifier = (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) ;) (expression_statement "param_1[1] = param_1[1] + 1;" (assignment_expression "param_1[1] = param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + number_literal)) ;) (if_statement "if (pbVar3 < pbVar5) goto LAB_001d0a05;" if (parenthesized_expression "(pbVar3 < pbVar5)" ( (binary_expression "pbVar3 < pbVar5" identifier < identifier) )) (goto_statement "goto LAB_001d0a05;" goto statement_identifier ;)) (labeled_statement "LAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);" statement_identifier : (expression_statement "iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);" (assignment_expression "iVar4 = (**(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 (iVar4 == -1) goto LAB_001d0a70;" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (goto_statement "goto LAB_001d0a70;" goto statement_identifier ;)) (expression_statement "pbVar3 = (byte *)piVar1[2];" (assignment_expression "pbVar3 = (byte *)piVar1[2]" identifier = (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar5 = (byte *)piVar1[3];" (assignment_expression "pbVar5 = (byte *)piVar1[3]" identifier = (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) ;) }) (else_clause "else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }" else (compound_statement "{\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }" { (expression_statement "iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);" (assignment_expression "iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6)" identifier = (call_expression "(**(code **)(*param_2 + 0x34))(param_2,uVar6)" (parenthesized_expression "(**(code **)(*param_2 + 0x34))" ( (pointer_expression "**(code **)(*param_2 + 0x34)" * (pointer_expression "*(code **)(*param_2 + 0x34)" * (cast_expression "(code **)(*param_2 + 0x34)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x34)" ( (binary_expression "*param_2 + 0x34" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2,uVar6)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 == -1) break;" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "pbVar3 = (byte *)piVar1[2];" (assignment_expression "pbVar3 = (byte *)piVar1[2]" identifier = (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar5 = (byte *)piVar1[3];" (assignment_expression "pbVar5 = (byte *)piVar1[3]" identifier = (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) ;) (expression_statement "param_1[1] = param_1[1] + 1;" (assignment_expression "param_1[1] = param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + number_literal)) ;) (if_statement "if (pbVar5 <= pbVar3) goto LAB_001d0aa8;" if (parenthesized_expression "(pbVar5 <= pbVar3)" ( (binary_expression "pbVar5 <= pbVar3" identifier <= identifier) )) (goto_statement "goto LAB_001d0aa8;" goto statement_identifier ;)) (labeled_statement "LAB_001d0a05:\n          pbVar3 = pbVar3 + 1;" statement_identifier : (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;)) (expression_statement "piVar1[2] = (int)pbVar3;" (assignment_expression "piVar1[2] = (int)pbVar3" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }))) (if_statement "if (pbVar5 <= pbVar3) goto LAB_001d0a50;" if (parenthesized_expression "(pbVar5 <= pbVar3)" ( (binary_expression "pbVar5 <= pbVar3" identifier <= identifier) )) (goto_statement "goto LAB_001d0a50;" goto statement_identifier ;)) (expression_statement "uVar6 = (uint)*pbVar3;" (assignment_expression "uVar6 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (if_statement "if ((param_3 & 0xff) == uVar6) break;" if (parenthesized_expression "((param_3 & 0xff) == uVar6)" ( (binary_expression "(param_3 & 0xff) == uVar6" (parenthesized_expression "(param_3 & 0xff)" ( (binary_expression "param_3 & 0xff" identifier & number_literal) )) == identifier) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "( true )" ( true )) ;) }))) })) (if_statement "if (param_1[1] != 0) {\n    return param_1;\n  }" if (parenthesized_expression "(param_1[1] != 0)" ( (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "uVar6 = 4;" (assignment_expression "uVar6 = 4" identifier = number_literal) ;) (labeled_statement "LAB_001d0a2c:\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;" statement_identifier : (expression_statement "iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar4 = *(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_001d62c0(iVar4,uVar6 | *(uint *)(iVar4 + 0x14));" (call_expression "FUN_001d62c0(iVar4,uVar6 | *(uint *)(iVar4 + 0x14))" identifier (argument_list "(iVar4,uVar6 | *(uint *)(iVar4 + 0x14))" ( identifier , (binary_expression "uVar6 | *(uint *)(iVar4 + 0x14)" identifier | (pointer_expression "*(uint *)(iVar4 + 0x14)" * (cast_expression "(uint *)(iVar4 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) ))))) ))) ;) (return_statement "return param_1;" return identifier ;) (labeled_statement "LAB_001d0a50:\n                    /* try { // try from 001d0a56 to 001d0ab0 has its CatchHandler @ 001d0ac4 */\n  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" statement_identifier : comment (expression_statement "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar2 = (**(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 "uVar6 = uVar2 & 0xff;" (assignment_expression "uVar6 = uVar2 & 0xff" identifier = (binary_expression "uVar2 & 0xff" identifier & number_literal)) ;) (if_statement "if (uVar2 == 0xffffffff) goto LAB_001d0a70;" if (parenthesized_expression "(uVar2 == 0xffffffff)" ( (binary_expression "uVar2 == 0xffffffff" identifier == number_literal) )) (goto_statement "goto LAB_001d0a70;" goto statement_identifier ;)) (goto_statement "goto LAB_001d09dc;" goto statement_identifier ;) (labeled_statement "LAB_001d0a70:\n  uVar6 = (-(uint)(param_1[1] == 0) & 4) + 2;" statement_identifier : (expression_statement "uVar6 = (-(uint)(param_1[1] == 0) & 4) + 2;" (assignment_expression "uVar6 = (-(uint)(param_1[1] == 0) & 4) + 2" identifier = (binary_expression "(-(uint)(param_1[1] == 0) & 4) + 2" (parenthesized_expression "(-(uint)(param_1[1] == 0) & 4)" ( (binary_expression "-(uint)(param_1[1] == 0) & 4" (unary_expression "-(uint)(param_1[1] == 0)" - (call_expression "(uint)(param_1[1] == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) )))) & number_literal) )) + number_literal)) ;)) (goto_statement "goto LAB_001d0a2c;" goto statement_identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::istream::get(std::streambuf&, char) */\n\nistream * __thiscall std::istream::get(istream *this,streambuf *param_1,char param_2)\n\n{\n  int *piVar1;\n  uint uVar2;\n  byte *pbVar3;\n  _Ios_Iostate _Var4;\n  int iVar5;\n  byte *pbVar6;\n  uint uVar7;\n  sentry local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1d098b;\n  *(undefined4 *)(this + 4) = 0;\n  sentry::sentry(local_1d,this,true);\n  if (local_1d[0] != (sentry)0x0) {\n    piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78);\n    if ((byte *)piVar1[3] <= (byte *)piVar1[2]) goto LAB_001d0a50;\n    uVar2 = (uint)*(byte *)piVar1[2];\n    uVar7 = uVar2;\nLAB_001d09dc:\n    if ((byte)param_2 != uVar2) {\n      do {\n        if (*(undefined1 **)(param_1 + 0x14) < *(undefined1 **)(param_1 + 0x18)) {\n          **(undefined1 **)(param_1 + 0x14) = (char)uVar7;\n          *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n          *(int *)(this + 4) = *(int *)(this + 4) + 1;\n          if (pbVar3 < pbVar6) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar5 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n        }\n        else {\n          iVar5 = (**(code **)(*(int *)param_1 + 0x34))(param_1,uVar7);\n          if (iVar5 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n          *(int *)(this + 4) = *(int *)(this + 4) + 1;\n          if (pbVar6 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar6 <= pbVar3) goto LAB_001d0a50;\n        uVar7 = (uint)*pbVar3;\n        if ((byte)param_2 == uVar7) break;\n      } while( true );\n    }\n  }\n  if (*(int *)(this + 4) != 0) {\n    return this;\n  }\n  _Var4 = _S_failbit;\nLAB_001d0a2c:\n  ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n             _Var4 | *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));\n  return this;\nLAB_001d0a50:\n                    /* try { // try from 001d0a56 to 001d0ab0 has its CatchHandler @ 001d0ac4 */\n  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  uVar7 = uVar2 & 0xff;\n  if (uVar2 == 0xffffffff) goto LAB_001d0a70;\n  goto LAB_001d09dc;\nLAB_001d0a70:\n  _Var4 = (-(uint)(*(int *)(this + 4) == 0) & 4) + _S_eofbit;\n  goto LAB_001d0a2c;\n}\n\n" comment comment (ERROR "istream * __thiscall std::istream::get(istream *this,streambuf *param_1,char param_2)" (binary_expression "istream * __thiscall std::istream::get(istream *this" (binary_expression "istream * __thiscall" identifier * identifier) (ERROR "std::istream::get(istream" identifier : : identifier : : identifier ( identifier) * identifier) , type_identifier (pointer_declarator "*param_1" * identifier) , identifier identifier )) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  byte *pbVar3;\n  _Ios_Iostate _Var4;\n  int iVar5;\n  byte *pbVar6;\n  uint uVar7;\n  sentry local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1d098b;\n  *(undefined4 *)(this + 4) = 0;\n  sentry::sentry(local_1d,this,true);\n  if (local_1d[0] != (sentry)0x0) {\n    piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78);\n    if ((byte *)piVar1[3] <= (byte *)piVar1[2]) goto LAB_001d0a50;\n    uVar2 = (uint)*(byte *)piVar1[2];\n    uVar7 = uVar2;\nLAB_001d09dc:\n    if ((byte)param_2 != uVar2) {\n      do {\n        if (*(undefined1 **)(param_1 + 0x14) < *(undefined1 **)(param_1 + 0x18)) {\n          **(undefined1 **)(param_1 + 0x14) = (char)uVar7;\n          *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n          *(int *)(this + 4) = *(int *)(this + 4) + 1;\n          if (pbVar3 < pbVar6) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar5 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n        }\n        else {\n          iVar5 = (**(code **)(*(int *)param_1 + 0x34))(param_1,uVar7);\n          if (iVar5 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n          *(int *)(this + 4) = *(int *)(this + 4) + 1;\n          if (pbVar6 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar6 <= pbVar3) goto LAB_001d0a50;\n        uVar7 = (uint)*pbVar3;\n        if ((byte)param_2 == uVar7) break;\n      } while( true );\n    }\n  }\n  if (*(int *)(this + 4) != 0) {\n    return this;\n  }\n  _Var4 = _S_failbit;\nLAB_001d0a2c:\n  ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n             _Var4 | *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));\n  return this;\nLAB_001d0a50:\n                    /* try { // try from 001d0a56 to 001d0ab0 has its CatchHandler @ 001d0ac4 */\n  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  uVar7 = uVar2 & 0xff;\n  if (uVar2 == 0xffffffff) goto LAB_001d0a70;\n  goto LAB_001d09dc;\nLAB_001d0a70:\n  _Var4 = (-(uint)(*(int *)(this + 4) == 0) & 4) + _S_eofbit;\n  goto LAB_001d0a2c;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "_Ios_Iostate _Var4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "sentry local_1d [9];" type_identifier (array_declarator "local_1d [9]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1d098b;" (assignment_expression "uStack_14 = 0x1d098b" 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    piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78);\n    if ((byte *)piVar1[3] <= (byte *)piVar1[2]) goto LAB_001d0a50;\n    uVar2 = (uint)*(byte *)piVar1[2];\n    uVar7 = uVar2;\nLAB_001d09dc:\n    if ((byte)param_2 != uVar2) {\n      do {\n        if (*(undefined1 **)(param_1 + 0x14) < *(undefined1 **)(param_1 + 0x18)) {\n          **(undefined1 **)(param_1 + 0x14) = (char)uVar7;\n          *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n          *(int *)(this + 4) = *(int *)(this + 4) + 1;\n          if (pbVar3 < pbVar6) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar5 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n        }\n        else {\n          iVar5 = (**(code **)(*(int *)param_1 + 0x34))(param_1,uVar7);\n          if (iVar5 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n          *(int *)(this + 4) = *(int *)(this + 4) + 1;\n          if (pbVar6 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar6 <= pbVar3) goto LAB_001d0a50;\n        uVar7 = (uint)*pbVar3;\n        if ((byte)param_2 == uVar7) break;\n      } while( true );\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    piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78);\n    if ((byte *)piVar1[3] <= (byte *)piVar1[2]) goto LAB_001d0a50;\n    uVar2 = (uint)*(byte *)piVar1[2];\n    uVar7 = uVar2;\nLAB_001d09dc:\n    if ((byte)param_2 != uVar2) {\n      do {\n        if (*(undefined1 **)(param_1 + 0x14) < *(undefined1 **)(param_1 + 0x18)) {\n          **(undefined1 **)(param_1 + 0x14) = (char)uVar7;\n          *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n          *(int *)(this + 4) = *(int *)(this + 4) + 1;\n          if (pbVar3 < pbVar6) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar5 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n        }\n        else {\n          iVar5 = (**(code **)(*(int *)param_1 + 0x34))(param_1,uVar7);\n          if (iVar5 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n          *(int *)(this + 4) = *(int *)(this + 4) + 1;\n          if (pbVar6 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar6 <= pbVar3) goto LAB_001d0a50;\n        uVar7 = (uint)*pbVar3;\n        if ((byte)param_2 == uVar7) break;\n      } while( true );\n    }\n  }" { (expression_statement "piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78);" (assignment_expression "piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78)" identifier = (pointer_expression "*(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78)" * (cast_expression "(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc) + 0x78)" ( (binary_expression "this + *(int *)(*(int *)this + -0xc) + 0x78" (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) ))))) ;) (if_statement "if ((byte *)piVar1[3] <= (byte *)piVar1[2]) goto LAB_001d0a50;" if (parenthesized_expression "((byte *)piVar1[3] <= (byte *)piVar1[2])" ( (binary_expression "(byte *)piVar1[3] <= (byte *)piVar1[2]" (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ])) <= (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) )) (goto_statement "goto LAB_001d0a50;" goto statement_identifier ;)) (expression_statement "uVar2 = (uint)*(byte *)piVar1[2];" (assignment_expression "uVar2 = (uint)*(byte *)piVar1[2]" identifier = (binary_expression "(uint)*(byte *)piVar1[2]" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])))) ;) (expression_statement "uVar7 = uVar2;" (assignment_expression "uVar7 = uVar2" identifier = identifier) ;) (labeled_statement "LAB_001d09dc:\n    if ((byte)param_2 != uVar2) {\n      do {\n        if (*(undefined1 **)(param_1 + 0x14) < *(undefined1 **)(param_1 + 0x18)) {\n          **(undefined1 **)(param_1 + 0x14) = (char)uVar7;\n          *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n          *(int *)(this + 4) = *(int *)(this + 4) + 1;\n          if (pbVar3 < pbVar6) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar5 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n        }\n        else {\n          iVar5 = (**(code **)(*(int *)param_1 + 0x34))(param_1,uVar7);\n          if (iVar5 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n          *(int *)(this + 4) = *(int *)(this + 4) + 1;\n          if (pbVar6 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar6 <= pbVar3) goto LAB_001d0a50;\n        uVar7 = (uint)*pbVar3;\n        if ((byte)param_2 == uVar7) break;\n      } while( true );\n    }" statement_identifier : (if_statement "if ((byte)param_2 != uVar2) {\n      do {\n        if (*(undefined1 **)(param_1 + 0x14) < *(undefined1 **)(param_1 + 0x18)) {\n          **(undefined1 **)(param_1 + 0x14) = (char)uVar7;\n          *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n          *(int *)(this + 4) = *(int *)(this + 4) + 1;\n          if (pbVar3 < pbVar6) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar5 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n        }\n        else {\n          iVar5 = (**(code **)(*(int *)param_1 + 0x34))(param_1,uVar7);\n          if (iVar5 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n          *(int *)(this + 4) = *(int *)(this + 4) + 1;\n          if (pbVar6 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar6 <= pbVar3) goto LAB_001d0a50;\n        uVar7 = (uint)*pbVar3;\n        if ((byte)param_2 == uVar7) break;\n      } while( true );\n    }" if (parenthesized_expression "((byte)param_2 != uVar2)" ( (binary_expression "(byte)param_2 != uVar2" (cast_expression "(byte)param_2" ( (type_descriptor "byte" type_identifier) ) identifier) != identifier) )) (compound_statement "{\n      do {\n        if (*(undefined1 **)(param_1 + 0x14) < *(undefined1 **)(param_1 + 0x18)) {\n          **(undefined1 **)(param_1 + 0x14) = (char)uVar7;\n          *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n          *(int *)(this + 4) = *(int *)(this + 4) + 1;\n          if (pbVar3 < pbVar6) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar5 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n        }\n        else {\n          iVar5 = (**(code **)(*(int *)param_1 + 0x34))(param_1,uVar7);\n          if (iVar5 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n          *(int *)(this + 4) = *(int *)(this + 4) + 1;\n          if (pbVar6 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar6 <= pbVar3) goto LAB_001d0a50;\n        uVar7 = (uint)*pbVar3;\n        if ((byte)param_2 == uVar7) break;\n      } while( true );\n    }" { (do_statement "do {\n        if (*(undefined1 **)(param_1 + 0x14) < *(undefined1 **)(param_1 + 0x18)) {\n          **(undefined1 **)(param_1 + 0x14) = (char)uVar7;\n          *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n          *(int *)(this + 4) = *(int *)(this + 4) + 1;\n          if (pbVar3 < pbVar6) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar5 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n        }\n        else {\n          iVar5 = (**(code **)(*(int *)param_1 + 0x34))(param_1,uVar7);\n          if (iVar5 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n          *(int *)(this + 4) = *(int *)(this + 4) + 1;\n          if (pbVar6 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar6 <= pbVar3) goto LAB_001d0a50;\n        uVar7 = (uint)*pbVar3;\n        if ((byte)param_2 == uVar7) break;\n      } while( true );" do (compound_statement "{\n        if (*(undefined1 **)(param_1 + 0x14) < *(undefined1 **)(param_1 + 0x18)) {\n          **(undefined1 **)(param_1 + 0x14) = (char)uVar7;\n          *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n          *(int *)(this + 4) = *(int *)(this + 4) + 1;\n          if (pbVar3 < pbVar6) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar5 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n        }\n        else {\n          iVar5 = (**(code **)(*(int *)param_1 + 0x34))(param_1,uVar7);\n          if (iVar5 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n          *(int *)(this + 4) = *(int *)(this + 4) + 1;\n          if (pbVar6 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar6 <= pbVar3) goto LAB_001d0a50;\n        uVar7 = (uint)*pbVar3;\n        if ((byte)param_2 == uVar7) break;\n      }" { (if_statement "if (*(undefined1 **)(param_1 + 0x14) < *(undefined1 **)(param_1 + 0x18)) {\n          **(undefined1 **)(param_1 + 0x14) = (char)uVar7;\n          *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n          *(int *)(this + 4) = *(int *)(this + 4) + 1;\n          if (pbVar3 < pbVar6) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar5 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n        }\n        else {\n          iVar5 = (**(code **)(*(int *)param_1 + 0x34))(param_1,uVar7);\n          if (iVar5 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n          *(int *)(this + 4) = *(int *)(this + 4) + 1;\n          if (pbVar6 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }" if (parenthesized_expression "(*(undefined1 **)(param_1 + 0x14) < *(undefined1 **)(param_1 + 0x18))" ( (binary_expression "*(undefined1 **)(param_1 + 0x14) < *(undefined1 **)(param_1 + 0x18)" (pointer_expression "*(undefined1 **)(param_1 + 0x14)" * (cast_expression "(undefined1 **)(param_1 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) < (pointer_expression "*(undefined1 **)(param_1 + 0x18)" * (cast_expression "(undefined1 **)(param_1 + 0x18)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n          **(undefined1 **)(param_1 + 0x14) = (char)uVar7;\n          *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n          *(int *)(this + 4) = *(int *)(this + 4) + 1;\n          if (pbVar3 < pbVar6) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar5 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n        }" { (expression_statement "**(undefined1 **)(param_1 + 0x14) = (char)uVar7;" (assignment_expression "**(undefined1 **)(param_1 + 0x14) = (char)uVar7" (pointer_expression "**(undefined1 **)(param_1 + 0x14)" * (pointer_expression "*(undefined1 **)(param_1 + 0x14)" * (cast_expression "(undefined1 **)(param_1 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) = (cast_expression "(char)uVar7" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "*(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;" (assignment_expression "*(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x14) + 1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "pbVar3 = (byte *)piVar1[2];" (assignment_expression "pbVar3 = (byte *)piVar1[2]" identifier = (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar6 = (byte *)piVar1[3];" (assignment_expression "pbVar6 = (byte *)piVar1[3]" identifier = (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) ;) (expression_statement "*(int *)(this + 4) = *(int *)(this + 4) + 1;" (assignment_expression "*(int *)(this + 4) = *(int *)(this + 4) + 1" (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) )))) = (binary_expression "*(int *)(this + 4) + 1" (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) )))) + number_literal)) ;) (if_statement "if (pbVar3 < pbVar6) goto LAB_001d0a05;" if (parenthesized_expression "(pbVar3 < pbVar6)" ( (binary_expression "pbVar3 < pbVar6" identifier < identifier) )) (goto_statement "goto LAB_001d0a05;" goto statement_identifier ;)) (labeled_statement "LAB_001d0aa8:\n          iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);" statement_identifier : (expression_statement "iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);" (assignment_expression "iVar5 = (**(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 (iVar5 == -1) goto LAB_001d0a70;" if (parenthesized_expression "(iVar5 == -1)" ( (binary_expression "iVar5 == -1" identifier == number_literal) )) (goto_statement "goto LAB_001d0a70;" goto statement_identifier ;)) (expression_statement "pbVar3 = (byte *)piVar1[2];" (assignment_expression "pbVar3 = (byte *)piVar1[2]" identifier = (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar6 = (byte *)piVar1[3];" (assignment_expression "pbVar6 = (byte *)piVar1[3]" identifier = (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) ;) }) (else_clause "else {\n          iVar5 = (**(code **)(*(int *)param_1 + 0x34))(param_1,uVar7);\n          if (iVar5 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n          *(int *)(this + 4) = *(int *)(this + 4) + 1;\n          if (pbVar6 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }" else (compound_statement "{\n          iVar5 = (**(code **)(*(int *)param_1 + 0x34))(param_1,uVar7);\n          if (iVar5 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar6 = (byte *)piVar1[3];\n          *(int *)(this + 4) = *(int *)(this + 4) + 1;\n          if (pbVar6 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }" { (expression_statement "iVar5 = (**(code **)(*(int *)param_1 + 0x34))(param_1,uVar7);" (assignment_expression "iVar5 = (**(code **)(*(int *)param_1 + 0x34))(param_1,uVar7)" identifier = (call_expression "(**(code **)(*(int *)param_1 + 0x34))(param_1,uVar7)" (parenthesized_expression "(**(code **)(*(int *)param_1 + 0x34))" ( (pointer_expression "**(code **)(*(int *)param_1 + 0x34)" * (pointer_expression "*(code **)(*(int *)param_1 + 0x34)" * (cast_expression "(code **)(*(int *)param_1 + 0x34)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)param_1 + 0x34)" ( (binary_expression "*(int *)param_1 + 0x34" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(param_1,uVar7)" ( identifier , identifier )))) ;) (if_statement "if (iVar5 == -1) break;" if (parenthesized_expression "(iVar5 == -1)" ( (binary_expression "iVar5 == -1" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "pbVar3 = (byte *)piVar1[2];" (assignment_expression "pbVar3 = (byte *)piVar1[2]" identifier = (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar6 = (byte *)piVar1[3];" (assignment_expression "pbVar6 = (byte *)piVar1[3]" identifier = (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) ;) (expression_statement "*(int *)(this + 4) = *(int *)(this + 4) + 1;" (assignment_expression "*(int *)(this + 4) = *(int *)(this + 4) + 1" (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) )))) = (binary_expression "*(int *)(this + 4) + 1" (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) )))) + number_literal)) ;) (if_statement "if (pbVar6 <= pbVar3) goto LAB_001d0aa8;" if (parenthesized_expression "(pbVar6 <= pbVar3)" ( (binary_expression "pbVar6 <= pbVar3" identifier <= identifier) )) (goto_statement "goto LAB_001d0aa8;" goto statement_identifier ;)) (labeled_statement "LAB_001d0a05:\n          pbVar3 = pbVar3 + 1;" statement_identifier : (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;)) (expression_statement "piVar1[2] = (int)pbVar3;" (assignment_expression "piVar1[2] = (int)pbVar3" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }))) (if_statement "if (pbVar6 <= pbVar3) goto LAB_001d0a50;" if (parenthesized_expression "(pbVar6 <= pbVar3)" ( (binary_expression "pbVar6 <= pbVar3" identifier <= identifier) )) (goto_statement "goto LAB_001d0a50;" goto statement_identifier ;)) (expression_statement "uVar7 = (uint)*pbVar3;" (assignment_expression "uVar7 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (if_statement "if ((byte)param_2 == uVar7) break;" if (parenthesized_expression "((byte)param_2 == uVar7)" ( (binary_expression "(byte)param_2 == uVar7" (cast_expression "(byte)param_2" ( (type_descriptor "byte" type_identifier) ) identifier) == identifier) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "( true )" ( true )) ;) }))) })) (if_statement "if (*(int *)(this + 4) != 0) {\n    return this;\n  }" if (parenthesized_expression "(*(int *)(this + 4) != 0)" ( (binary_expression "*(int *)(this + 4) != 0" (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) )))) != number_literal) )) (compound_statement "{\n    return this;\n  }" { (return_statement "return this;" return identifier ;) })) (expression_statement "_Var4 = _S_failbit;" (assignment_expression "_Var4 = _S_failbit" identifier = identifier) ;) (labeled_statement "LAB_001d0a2c:\n  ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n             _Var4 | *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));" statement_identifier : (labeled_statement "ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n             _Var4 | *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));" statement_identifier : (ERROR ":" :) (expression_statement "clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n             _Var4 | *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));" (call_expression "clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n             _Var4 | *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14))" identifier (argument_list "((ios *)(this + *(int *)(*(int *)this + -0xc)),\n             _Var4 | *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14))" ( (cast_expression "(ios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "ios *" 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 "_Var4 | *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" identifier | (pointer_expression "*(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" * (cast_expression "(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" ( (binary_expression "(ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14" (cast_expression "(ios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "ios *" 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 ;) (labeled_statement "LAB_001d0a50:\n                    /* try { // try from 001d0a56 to 001d0ab0 has its CatchHandler @ 001d0ac4 */\n  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" statement_identifier : comment (expression_statement "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar2 = (**(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 "uVar7 = uVar2 & 0xff;" (assignment_expression "uVar7 = uVar2 & 0xff" identifier = (binary_expression "uVar2 & 0xff" identifier & number_literal)) ;) (if_statement "if (uVar2 == 0xffffffff) goto LAB_001d0a70;" if (parenthesized_expression "(uVar2 == 0xffffffff)" ( (binary_expression "uVar2 == 0xffffffff" identifier == number_literal) )) (goto_statement "goto LAB_001d0a70;" goto statement_identifier ;)) (goto_statement "goto LAB_001d09dc;" goto statement_identifier ;) (labeled_statement "LAB_001d0a70:\n  _Var4 = (-(uint)(*(int *)(this + 4) == 0) & 4) + _S_eofbit;" statement_identifier : (expression_statement "_Var4 = (-(uint)(*(int *)(this + 4) == 0) & 4) + _S_eofbit;" (assignment_expression "_Var4 = (-(uint)(*(int *)(this + 4) == 0) & 4) + _S_eofbit" identifier = (binary_expression "(-(uint)(*(int *)(this + 4) == 0) & 4) + _S_eofbit" (parenthesized_expression "(-(uint)(*(int *)(this + 4) == 0) & 4)" ( (binary_expression "-(uint)(*(int *)(this + 4) == 0) & 4" (unary_expression "-(uint)(*(int *)(this + 4) == 0)" - (call_expression "(uint)(*(int *)(this + 4) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(this + 4) == 0)" ( (binary_expression "*(int *)(this + 4) == 0" (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) )))) == number_literal) )))) & number_literal) )) + identifier)) ;)) (goto_statement "goto LAB_001d0a2c;" goto statement_identifier ;) }))
(translation_unit "int * FUN_001d0980(int *param_1,int *param_2,uint param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int iVar4;\n  byte *pbVar5;\n  uint uVar6;\n  char local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1d098b;\n  param_1[1] = 0;\n  FUN_001cfd60(local_1d,param_1,1);\n  if (local_1d[0] != '\0') {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[3] <= (byte *)piVar1[2]) goto LAB_001d0a50;\n    uVar2 = (uint)*(byte *)piVar1[2];\n    uVar6 = uVar2;\nLAB_001d09dc:\n    if ((param_3 & 0xff) != uVar2) {\n      do {\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      } while( true );\n    }\n  }\n  if (param_1[1] != 0) {\n    return param_1;\n  }\n  uVar6 = 4;\nLAB_001d0a2c:\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  FUN_001d62c0(iVar4,uVar6 | *(uint *)(iVar4 + 0x14));\n  return param_1;\nLAB_001d0a50:\n                    \n  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  uVar6 = uVar2 & 0xff;\n  if (uVar2 == 0xffffffff) goto LAB_001d0a70;\n  goto LAB_001d09dc;\nLAB_001d0a70:\n  uVar6 = (-(uint)(param_1[1] == 0) & 4) + 2;\n  goto LAB_001d0a2c;\n}\n\n" (function_definition "int * FUN_001d0980(int *param_1,int *param_2,uint param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int iVar4;\n  byte *pbVar5;\n  uint uVar6;\n  char local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1d098b;\n  param_1[1] = 0;\n  FUN_001cfd60(local_1d,param_1,1);\n  if (local_1d[0] != '\0') {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[3] <= (byte *)piVar1[2]) goto LAB_001d0a50;\n    uVar2 = (uint)*(byte *)piVar1[2];\n    uVar6 = uVar2;\nLAB_001d09dc:\n    if ((param_3 & 0xff) != uVar2) {\n      do {\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      } while( true );\n    }\n  }\n  if (param_1[1] != 0) {\n    return param_1;\n  }\n  uVar6 = 4;\nLAB_001d0a2c:\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  FUN_001d62c0(iVar4,uVar6 | *(uint *)(iVar4 + 0x14));\n  return param_1;\nLAB_001d0a50:\n                    \n  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  uVar6 = uVar2 & 0xff;\n  if (uVar2 == 0xffffffff) goto LAB_001d0a70;\n  goto LAB_001d09dc;\nLAB_001d0a70:\n  uVar6 = (-(uint)(param_1[1] == 0) & 4) + 2;\n  goto LAB_001d0a2c;\n}" primitive_type (pointer_declarator "* FUN_001d0980(int *param_1,int *param_2,uint param_3)" * (function_declarator "FUN_001d0980(int *param_1,int *param_2,uint param_3)" identifier (parameter_list "(int *param_1,int *param_2,uint param_3)" ( (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 "uint param_3" type_identifier identifier) )))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int iVar4;\n  byte *pbVar5;\n  uint uVar6;\n  char local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1d098b;\n  param_1[1] = 0;\n  FUN_001cfd60(local_1d,param_1,1);\n  if (local_1d[0] != '\0') {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[3] <= (byte *)piVar1[2]) goto LAB_001d0a50;\n    uVar2 = (uint)*(byte *)piVar1[2];\n    uVar6 = uVar2;\nLAB_001d09dc:\n    if ((param_3 & 0xff) != uVar2) {\n      do {\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      } while( true );\n    }\n  }\n  if (param_1[1] != 0) {\n    return param_1;\n  }\n  uVar6 = 4;\nLAB_001d0a2c:\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  FUN_001d62c0(iVar4,uVar6 | *(uint *)(iVar4 + 0x14));\n  return param_1;\nLAB_001d0a50:\n                    \n  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  uVar6 = uVar2 & 0xff;\n  if (uVar2 == 0xffffffff) goto LAB_001d0a70;\n  goto LAB_001d09dc;\nLAB_001d0a70:\n  uVar6 = (-(uint)(param_1[1] == 0) & 4) + 2;\n  goto LAB_001d0a2c;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "char local_1d [9];" primitive_type (array_declarator "local_1d [9]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1d098b;" (assignment_expression "uStack_14 = 0x1d098b" 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_001cfd60(local_1d,param_1,1);" (call_expression "FUN_001cfd60(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    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[3] <= (byte *)piVar1[2]) goto LAB_001d0a50;\n    uVar2 = (uint)*(byte *)piVar1[2];\n    uVar6 = uVar2;\nLAB_001d09dc:\n    if ((param_3 & 0xff) != uVar2) {\n      do {\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      } while( true );\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    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[3] <= (byte *)piVar1[2]) goto LAB_001d0a50;\n    uVar2 = (uint)*(byte *)piVar1[2];\n    uVar6 = uVar2;\nLAB_001d09dc:\n    if ((param_3 & 0xff) != uVar2) {\n      do {\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      } while( true );\n    }\n  }" { (expression_statement "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);" (assignment_expression "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" identifier = (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" * (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x78" (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) ))))) ;) (if_statement "if ((byte *)piVar1[3] <= (byte *)piVar1[2]) goto LAB_001d0a50;" if (parenthesized_expression "((byte *)piVar1[3] <= (byte *)piVar1[2])" ( (binary_expression "(byte *)piVar1[3] <= (byte *)piVar1[2]" (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ])) <= (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) )) (goto_statement "goto LAB_001d0a50;" goto statement_identifier ;)) (expression_statement "uVar2 = (uint)*(byte *)piVar1[2];" (assignment_expression "uVar2 = (uint)*(byte *)piVar1[2]" identifier = (binary_expression "(uint)*(byte *)piVar1[2]" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])))) ;) (expression_statement "uVar6 = uVar2;" (assignment_expression "uVar6 = uVar2" identifier = identifier) ;) (labeled_statement "LAB_001d09dc:\n    if ((param_3 & 0xff) != uVar2) {\n      do {\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      } while( true );\n    }" statement_identifier : (if_statement "if ((param_3 & 0xff) != uVar2) {\n      do {\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      } while( true );\n    }" if (parenthesized_expression "((param_3 & 0xff) != uVar2)" ( (binary_expression "(param_3 & 0xff) != uVar2" (parenthesized_expression "(param_3 & 0xff)" ( (binary_expression "param_3 & 0xff" identifier & number_literal) )) != identifier) )) (compound_statement "{\n      do {\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      } while( true );\n    }" { (do_statement "do {\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      } while( true );" do (compound_statement "{\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      }" { (if_statement "if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }" if (parenthesized_expression "((undefined1 *)param_2[5] < (undefined1 *)param_2[6])" ( (binary_expression "(undefined1 *)param_2[5] < (undefined1 *)param_2[6]" (cast_expression "(undefined1 *)param_2[5]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[5]" identifier [ number_literal ])) < (cast_expression "(undefined1 *)param_2[6]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[6]" identifier [ number_literal ]))) )) (compound_statement "{\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }" { (expression_statement "*(undefined1 *)param_2[5] = (char)uVar6;" (assignment_expression "*(undefined1 *)param_2[5] = (char)uVar6" (pointer_expression "*(undefined1 *)param_2[5]" * (cast_expression "(undefined1 *)param_2[5]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[5]" identifier [ number_literal ]))) = (cast_expression "(char)uVar6" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "param_2[5] = param_2[5] + 1;" (assignment_expression "param_2[5] = param_2[5] + 1" (subscript_expression "param_2[5]" identifier [ number_literal ]) = (binary_expression "param_2[5] + 1" (subscript_expression "param_2[5]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "pbVar3 = (byte *)piVar1[2];" (assignment_expression "pbVar3 = (byte *)piVar1[2]" identifier = (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar5 = (byte *)piVar1[3];" (assignment_expression "pbVar5 = (byte *)piVar1[3]" identifier = (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) ;) (expression_statement "param_1[1] = param_1[1] + 1;" (assignment_expression "param_1[1] = param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + number_literal)) ;) (if_statement "if (pbVar3 < pbVar5) goto LAB_001d0a05;" if (parenthesized_expression "(pbVar3 < pbVar5)" ( (binary_expression "pbVar3 < pbVar5" identifier < identifier) )) (goto_statement "goto LAB_001d0a05;" goto statement_identifier ;)) (labeled_statement "LAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);" statement_identifier : (expression_statement "iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);" (assignment_expression "iVar4 = (**(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 (iVar4 == -1) goto LAB_001d0a70;" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (goto_statement "goto LAB_001d0a70;" goto statement_identifier ;)) (expression_statement "pbVar3 = (byte *)piVar1[2];" (assignment_expression "pbVar3 = (byte *)piVar1[2]" identifier = (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar5 = (byte *)piVar1[3];" (assignment_expression "pbVar5 = (byte *)piVar1[3]" identifier = (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) ;) }) (else_clause "else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }" else (compound_statement "{\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }" { (expression_statement "iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);" (assignment_expression "iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6)" identifier = (call_expression "(**(code **)(*param_2 + 0x34))(param_2,uVar6)" (parenthesized_expression "(**(code **)(*param_2 + 0x34))" ( (pointer_expression "**(code **)(*param_2 + 0x34)" * (pointer_expression "*(code **)(*param_2 + 0x34)" * (cast_expression "(code **)(*param_2 + 0x34)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x34)" ( (binary_expression "*param_2 + 0x34" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2,uVar6)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 == -1) break;" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "pbVar3 = (byte *)piVar1[2];" (assignment_expression "pbVar3 = (byte *)piVar1[2]" identifier = (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar5 = (byte *)piVar1[3];" (assignment_expression "pbVar5 = (byte *)piVar1[3]" identifier = (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) ;) (expression_statement "param_1[1] = param_1[1] + 1;" (assignment_expression "param_1[1] = param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + number_literal)) ;) (if_statement "if (pbVar5 <= pbVar3) goto LAB_001d0aa8;" if (parenthesized_expression "(pbVar5 <= pbVar3)" ( (binary_expression "pbVar5 <= pbVar3" identifier <= identifier) )) (goto_statement "goto LAB_001d0aa8;" goto statement_identifier ;)) (labeled_statement "LAB_001d0a05:\n          pbVar3 = pbVar3 + 1;" statement_identifier : (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;)) (expression_statement "piVar1[2] = (int)pbVar3;" (assignment_expression "piVar1[2] = (int)pbVar3" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }))) (if_statement "if (pbVar5 <= pbVar3) goto LAB_001d0a50;" if (parenthesized_expression "(pbVar5 <= pbVar3)" ( (binary_expression "pbVar5 <= pbVar3" identifier <= identifier) )) (goto_statement "goto LAB_001d0a50;" goto statement_identifier ;)) (expression_statement "uVar6 = (uint)*pbVar3;" (assignment_expression "uVar6 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (if_statement "if ((param_3 & 0xff) == uVar6) break;" if (parenthesized_expression "((param_3 & 0xff) == uVar6)" ( (binary_expression "(param_3 & 0xff) == uVar6" (parenthesized_expression "(param_3 & 0xff)" ( (binary_expression "param_3 & 0xff" identifier & number_literal) )) == identifier) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "( true )" ( true )) ;) }))) })) (if_statement "if (param_1[1] != 0) {\n    return param_1;\n  }" if (parenthesized_expression "(param_1[1] != 0)" ( (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "uVar6 = 4;" (assignment_expression "uVar6 = 4" identifier = number_literal) ;) (labeled_statement "LAB_001d0a2c:\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;" statement_identifier : (expression_statement "iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar4 = *(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_001d62c0(iVar4,uVar6 | *(uint *)(iVar4 + 0x14));" (call_expression "FUN_001d62c0(iVar4,uVar6 | *(uint *)(iVar4 + 0x14))" identifier (argument_list "(iVar4,uVar6 | *(uint *)(iVar4 + 0x14))" ( identifier , (binary_expression "uVar6 | *(uint *)(iVar4 + 0x14)" identifier | (pointer_expression "*(uint *)(iVar4 + 0x14)" * (cast_expression "(uint *)(iVar4 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) ))))) ))) ;) (return_statement "return param_1;" return identifier ;) (labeled_statement "LAB_001d0a50:\n                    \n  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" statement_identifier : (expression_statement "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar2 = (**(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 "uVar6 = uVar2 & 0xff;" (assignment_expression "uVar6 = uVar2 & 0xff" identifier = (binary_expression "uVar2 & 0xff" identifier & number_literal)) ;) (if_statement "if (uVar2 == 0xffffffff) goto LAB_001d0a70;" if (parenthesized_expression "(uVar2 == 0xffffffff)" ( (binary_expression "uVar2 == 0xffffffff" identifier == number_literal) )) (goto_statement "goto LAB_001d0a70;" goto statement_identifier ;)) (goto_statement "goto LAB_001d09dc;" goto statement_identifier ;) (labeled_statement "LAB_001d0a70:\n  uVar6 = (-(uint)(param_1[1] == 0) & 4) + 2;" statement_identifier : (expression_statement "uVar6 = (-(uint)(param_1[1] == 0) & 4) + 2;" (assignment_expression "uVar6 = (-(uint)(param_1[1] == 0) & 4) + 2" identifier = (binary_expression "(-(uint)(param_1[1] == 0) & 4) + 2" (parenthesized_expression "(-(uint)(param_1[1] == 0) & 4)" ( (binary_expression "-(uint)(param_1[1] == 0) & 4" (unary_expression "-(uint)(param_1[1] == 0)" - (call_expression "(uint)(param_1[1] == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) )))) & number_literal) )) + number_literal)) ;)) (goto_statement "goto LAB_001d0a2c;" goto statement_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) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression 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 = (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) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) <= (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != IDENT) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (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 )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_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 , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == IDENT) )) (break_statement break ;)) }) while (parenthesized_expression ( BOOL )) ;) }))) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != 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 ;) (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 = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )))) & LIT) )) + LIT)) ;)) (goto_statement goto statement_identifier ;) })))
(function_definition "int * FUN_001d0980(int *param_1,int *param_2,uint param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int iVar4;\n  byte *pbVar5;\n  uint uVar6;\n  char local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1d098b;\n  param_1[1] = 0;\n  FUN_001cfd60(local_1d,param_1,1);\n  if (local_1d[0] != '\0') {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[3] <= (byte *)piVar1[2]) goto LAB_001d0a50;\n    uVar2 = (uint)*(byte *)piVar1[2];\n    uVar6 = uVar2;\nLAB_001d09dc:\n    if ((param_3 & 0xff) != uVar2) {\n      do {\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      } while( true );\n    }\n  }\n  if (param_1[1] != 0) {\n    return param_1;\n  }\n  uVar6 = 4;\nLAB_001d0a2c:\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  FUN_001d62c0(iVar4,uVar6 | *(uint *)(iVar4 + 0x14));\n  return param_1;\nLAB_001d0a50:\n                    \n  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  uVar6 = uVar2 & 0xff;\n  if (uVar2 == 0xffffffff) goto LAB_001d0a70;\n  goto LAB_001d09dc;\nLAB_001d0a70:\n  uVar6 = (-(uint)(param_1[1] == 0) & 4) + 2;\n  goto LAB_001d0a2c;\n}" (primitive_type "int") (pointer_declarator "* FUN_001d0980(int *param_1,int *param_2,uint param_3)" (* "*") (function_declarator "FUN_001d0980(int *param_1,int *param_2,uint param_3)" (identifier "FUN_001d0980") (parameter_list "(int *param_1,int *param_2,uint param_3)" (( "(") (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 "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")")))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int iVar4;\n  byte *pbVar5;\n  uint uVar6;\n  char local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1d098b;\n  param_1[1] = 0;\n  FUN_001cfd60(local_1d,param_1,1);\n  if (local_1d[0] != '\0') {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[3] <= (byte *)piVar1[2]) goto LAB_001d0a50;\n    uVar2 = (uint)*(byte *)piVar1[2];\n    uVar6 = uVar2;\nLAB_001d09dc:\n    if ((param_3 & 0xff) != uVar2) {\n      do {\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      } while( true );\n    }\n  }\n  if (param_1[1] != 0) {\n    return param_1;\n  }\n  uVar6 = 4;\nLAB_001d0a2c:\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  FUN_001d62c0(iVar4,uVar6 | *(uint *)(iVar4 + 0x14));\n  return param_1;\nLAB_001d0a50:\n                    \n  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  uVar6 = uVar2 & 0xff;\n  if (uVar2 == 0xffffffff) goto LAB_001d0a70;\n  goto LAB_001d09dc;\nLAB_001d0a70:\n  uVar6 = (-(uint)(param_1[1] == 0) & 4) + 2;\n  goto LAB_001d0a2c;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "char local_1d [9];" (primitive_type "char") (array_declarator "local_1d [9]" (identifier "local_1d") ([ "[") (number_literal "9") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1d098b;" (assignment_expression "uStack_14 = 0x1d098b" (identifier "uStack_14") (= "=") (number_literal "0x1d098b")) (; ";")) (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_001cfd60(local_1d,param_1,1);" (call_expression "FUN_001cfd60(local_1d,param_1,1)" (identifier "FUN_001cfd60") (argument_list "(local_1d,param_1,1)" (( "(") (identifier "local_1d") (, ",") (identifier "param_1") (, ",") (number_literal "1") () ")"))) (; ";")) (if_statement "if (local_1d[0] != '\0') {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[3] <= (byte *)piVar1[2]) goto LAB_001d0a50;\n    uVar2 = (uint)*(byte *)piVar1[2];\n    uVar6 = uVar2;\nLAB_001d09dc:\n    if ((param_3 & 0xff) != uVar2) {\n      do {\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      } while( true );\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    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n    if ((byte *)piVar1[3] <= (byte *)piVar1[2]) goto LAB_001d0a50;\n    uVar2 = (uint)*(byte *)piVar1[2];\n    uVar6 = uVar2;\nLAB_001d09dc:\n    if ((param_3 & 0xff) != uVar2) {\n      do {\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      } while( true );\n    }\n  }" ({ "{") (expression_statement "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);" (assignment_expression "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" (* "*") (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" (( "(") (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x78" (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 "0x78")) () ")"))))) (; ";")) (if_statement "if ((byte *)piVar1[3] <= (byte *)piVar1[2]) goto LAB_001d0a50;" (if "if") (parenthesized_expression "((byte *)piVar1[3] <= (byte *)piVar1[2])" (( "(") (binary_expression "(byte *)piVar1[3] <= (byte *)piVar1[2]" (cast_expression "(byte *)piVar1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]"))) (<= "<=") (cast_expression "(byte *)piVar1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")))) () ")")) (goto_statement "goto LAB_001d0a50;" (goto "goto") (statement_identifier "LAB_001d0a50") (; ";"))) (expression_statement "uVar2 = (uint)*(byte *)piVar1[2];" (assignment_expression "uVar2 = (uint)*(byte *)piVar1[2]" (identifier "uVar2") (= "=") (binary_expression "(uint)*(byte *)piVar1[2]" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)piVar1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]"))))) (; ";")) (expression_statement "uVar6 = uVar2;" (assignment_expression "uVar6 = uVar2" (identifier "uVar6") (= "=") (identifier "uVar2")) (; ";")) (labeled_statement "LAB_001d09dc:\n    if ((param_3 & 0xff) != uVar2) {\n      do {\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      } while( true );\n    }" (statement_identifier "LAB_001d09dc") (: ":") (if_statement "if ((param_3 & 0xff) != uVar2) {\n      do {\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      } while( true );\n    }" (if "if") (parenthesized_expression "((param_3 & 0xff) != uVar2)" (( "(") (binary_expression "(param_3 & 0xff) != uVar2" (parenthesized_expression "(param_3 & 0xff)" (( "(") (binary_expression "param_3 & 0xff" (identifier "param_3") (& "&") (number_literal "0xff")) () ")")) (!= "!=") (identifier "uVar2")) () ")")) (compound_statement "{\n      do {\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      } while( true );\n    }" ({ "{") (do_statement "do {\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      } while( true );" (do "do") (compound_statement "{\n        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }\n        if (pbVar5 <= pbVar3) goto LAB_001d0a50;\n        uVar6 = (uint)*pbVar3;\n        if ((param_3 & 0xff) == uVar6) break;\n      }" ({ "{") (if_statement "if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }" (if "if") (parenthesized_expression "((undefined1 *)param_2[5] < (undefined1 *)param_2[6])" (( "(") (binary_expression "(undefined1 *)param_2[5] < (undefined1 *)param_2[6]" (cast_expression "(undefined1 *)param_2[5]" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]"))) (< "<") (cast_expression "(undefined1 *)param_2[6]" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[6]" (identifier "param_2") ([ "[") (number_literal "6") (] "]")))) () ")")) (compound_statement "{\n          *(undefined1 *)param_2[5] = (char)uVar6;\n          param_2[5] = param_2[5] + 1;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar3 < pbVar5) goto LAB_001d0a05;\nLAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar4 == -1) goto LAB_001d0a70;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }" ({ "{") (expression_statement "*(undefined1 *)param_2[5] = (char)uVar6;" (assignment_expression "*(undefined1 *)param_2[5] = (char)uVar6" (pointer_expression "*(undefined1 *)param_2[5]" (* "*") (cast_expression "(undefined1 *)param_2[5]" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")))) (= "=") (cast_expression "(char)uVar6" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar6"))) (; ";")) (expression_statement "param_2[5] = param_2[5] + 1;" (assignment_expression "param_2[5] = param_2[5] + 1" (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")) (= "=") (binary_expression "param_2[5] + 1" (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar3 = (byte *)piVar1[2];" (assignment_expression "pbVar3 = (byte *)piVar1[2]" (identifier "pbVar3") (= "=") (cast_expression "(byte *)piVar1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "pbVar5 = (byte *)piVar1[3];" (assignment_expression "pbVar5 = (byte *)piVar1[3]" (identifier "pbVar5") (= "=") (cast_expression "(byte *)piVar1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "param_1[1] = param_1[1] + 1;" (assignment_expression "param_1[1] = param_1[1] + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (pbVar3 < pbVar5) goto LAB_001d0a05;" (if "if") (parenthesized_expression "(pbVar3 < pbVar5)" (( "(") (binary_expression "pbVar3 < pbVar5" (identifier "pbVar3") (< "<") (identifier "pbVar5")) () ")")) (goto_statement "goto LAB_001d0a05;" (goto "goto") (statement_identifier "LAB_001d0a05") (; ";"))) (labeled_statement "LAB_001d0aa8:\n          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);" (statement_identifier "LAB_001d0aa8") (: ":") (expression_statement "iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);" (assignment_expression "iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1)" (identifier "iVar4") (= "=") (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 (iVar4 == -1) goto LAB_001d0a70;" (if "if") (parenthesized_expression "(iVar4 == -1)" (( "(") (binary_expression "iVar4 == -1" (identifier "iVar4") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_001d0a70;" (goto "goto") (statement_identifier "LAB_001d0a70") (; ";"))) (expression_statement "pbVar3 = (byte *)piVar1[2];" (assignment_expression "pbVar3 = (byte *)piVar1[2]" (identifier "pbVar3") (= "=") (cast_expression "(byte *)piVar1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "pbVar5 = (byte *)piVar1[3];" (assignment_expression "pbVar5 = (byte *)piVar1[3]" (identifier "pbVar5") (= "=") (cast_expression "(byte *)piVar1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (} "}")) (else_clause "else {\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }" (else "else") (compound_statement "{\n          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);\n          if (iVar4 == -1) break;\n          pbVar3 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n          param_1[1] = param_1[1] + 1;\n          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;\nLAB_001d0a05:\n          pbVar3 = pbVar3 + 1;\n          piVar1[2] = (int)pbVar3;\n        }" ({ "{") (expression_statement "iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);" (assignment_expression "iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6)" (identifier "iVar4") (= "=") (call_expression "(**(code **)(*param_2 + 0x34))(param_2,uVar6)" (parenthesized_expression "(**(code **)(*param_2 + 0x34))" (( "(") (pointer_expression "**(code **)(*param_2 + 0x34)" (* "*") (pointer_expression "*(code **)(*param_2 + 0x34)" (* "*") (cast_expression "(code **)(*param_2 + 0x34)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 0x34)" (( "(") (binary_expression "*param_2 + 0x34" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0x34")) () ")"))))) () ")")) (argument_list "(param_2,uVar6)" (( "(") (identifier "param_2") (, ",") (identifier "uVar6") () ")")))) (; ";")) (if_statement "if (iVar4 == -1) break;" (if "if") (parenthesized_expression "(iVar4 == -1)" (( "(") (binary_expression "iVar4 == -1" (identifier "iVar4") (== "==") (number_literal "-1")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pbVar3 = (byte *)piVar1[2];" (assignment_expression "pbVar3 = (byte *)piVar1[2]" (identifier "pbVar3") (= "=") (cast_expression "(byte *)piVar1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "pbVar5 = (byte *)piVar1[3];" (assignment_expression "pbVar5 = (byte *)piVar1[3]" (identifier "pbVar5") (= "=") (cast_expression "(byte *)piVar1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "param_1[1] = param_1[1] + 1;" (assignment_expression "param_1[1] = param_1[1] + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (pbVar5 <= pbVar3) goto LAB_001d0aa8;" (if "if") (parenthesized_expression "(pbVar5 <= pbVar3)" (( "(") (binary_expression "pbVar5 <= pbVar3" (identifier "pbVar5") (<= "<=") (identifier "pbVar3")) () ")")) (goto_statement "goto LAB_001d0aa8;" (goto "goto") (statement_identifier "LAB_001d0aa8") (; ";"))) (labeled_statement "LAB_001d0a05:\n          pbVar3 = pbVar3 + 1;" (statement_identifier "LAB_001d0a05") (: ":") (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + 1" (identifier "pbVar3") (+ "+") (number_literal "1"))) (; ";"))) (expression_statement "piVar1[2] = (int)pbVar3;" (assignment_expression "piVar1[2] = (int)pbVar3" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)pbVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar3"))) (; ";")) (} "}")))) (if_statement "if (pbVar5 <= pbVar3) goto LAB_001d0a50;" (if "if") (parenthesized_expression "(pbVar5 <= pbVar3)" (( "(") (binary_expression "pbVar5 <= pbVar3" (identifier "pbVar5") (<= "<=") (identifier "pbVar3")) () ")")) (goto_statement "goto LAB_001d0a50;" (goto "goto") (statement_identifier "LAB_001d0a50") (; ";"))) (expression_statement "uVar6 = (uint)*pbVar3;" (assignment_expression "uVar6 = (uint)*pbVar3" (identifier "uVar6") (= "=") (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar3"))) (; ";")) (if_statement "if ((param_3 & 0xff) == uVar6) break;" (if "if") (parenthesized_expression "((param_3 & 0xff) == uVar6)" (( "(") (binary_expression "(param_3 & 0xff) == uVar6" (parenthesized_expression "(param_3 & 0xff)" (( "(") (binary_expression "param_3 & 0xff" (identifier "param_3") (& "&") (number_literal "0xff")) () ")")) (== "==") (identifier "uVar6")) () ")")) (break_statement "break;" (break "break") (; ";"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))) (} "}"))) (if_statement "if (param_1[1] != 0) {\n    return param_1;\n  }" (if "if") (parenthesized_expression "(param_1[1] != 0)" (( "(") (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return param_1;\n  }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "uVar6 = 4;" (assignment_expression "uVar6 = 4" (identifier "uVar6") (= "=") (number_literal "4")) (; ";")) (labeled_statement "LAB_001d0a2c:\n  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;" (statement_identifier "LAB_001d0a2c") (: ":") (expression_statement "iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1" (identifier "iVar4") (= "=") (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_001d62c0(iVar4,uVar6 | *(uint *)(iVar4 + 0x14));" (call_expression "FUN_001d62c0(iVar4,uVar6 | *(uint *)(iVar4 + 0x14))" (identifier "FUN_001d62c0") (argument_list "(iVar4,uVar6 | *(uint *)(iVar4 + 0x14))" (( "(") (identifier "iVar4") (, ",") (binary_expression "uVar6 | *(uint *)(iVar4 + 0x14)" (identifier "uVar6") (| "|") (pointer_expression "*(uint *)(iVar4 + 0x14)" (* "*") (cast_expression "(uint *)(iVar4 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x14)" (( "(") (binary_expression "iVar4 + 0x14" (identifier "iVar4") (+ "+") (number_literal "0x14")) () ")"))))) () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (labeled_statement "LAB_001d0a50:\n                    \n  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (statement_identifier "LAB_001d0a50") (: ":") (expression_statement "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1)" (identifier "uVar2") (= "=") (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 "uVar6 = uVar2 & 0xff;" (assignment_expression "uVar6 = uVar2 & 0xff" (identifier "uVar6") (= "=") (binary_expression "uVar2 & 0xff" (identifier "uVar2") (& "&") (number_literal "0xff"))) (; ";")) (if_statement "if (uVar2 == 0xffffffff) goto LAB_001d0a70;" (if "if") (parenthesized_expression "(uVar2 == 0xffffffff)" (( "(") (binary_expression "uVar2 == 0xffffffff" (identifier "uVar2") (== "==") (number_literal "0xffffffff")) () ")")) (goto_statement "goto LAB_001d0a70;" (goto "goto") (statement_identifier "LAB_001d0a70") (; ";"))) (goto_statement "goto LAB_001d09dc;" (goto "goto") (statement_identifier "LAB_001d09dc") (; ";")) (labeled_statement "LAB_001d0a70:\n  uVar6 = (-(uint)(param_1[1] == 0) & 4) + 2;" (statement_identifier "LAB_001d0a70") (: ":") (expression_statement "uVar6 = (-(uint)(param_1[1] == 0) & 4) + 2;" (assignment_expression "uVar6 = (-(uint)(param_1[1] == 0) & 4) + 2" (identifier "uVar6") (= "=") (binary_expression "(-(uint)(param_1[1] == 0) & 4) + 2" (parenthesized_expression "(-(uint)(param_1[1] == 0) & 4)" (( "(") (binary_expression "-(uint)(param_1[1] == 0) & 4" (unary_expression "-(uint)(param_1[1] == 0)" (- "-") (call_expression "(uint)(param_1[1] == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1[1] == 0)" (( "(") (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")))) (& "&") (number_literal "4")) () ")")) (+ "+") (number_literal "2"))) (; ";"))) (goto_statement "goto LAB_001d0a2c;" (goto "goto") (statement_identifier "LAB_001d0a2c") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::istream::get(std::streambuf&, char) */

istream * __thiscall std::istream::get(istream *var_1,streambuf *var_3,char param_2)

{
  int *piVar1;
  type_1 var_2;
  type_2 *var_4;
  type_3 var_9;
  int var_6;
  type_2 *var_5;
  type_1 var_7;
  type_4 local_1d [9];
  type_5 uStack_14;
  
  uStack_14 = 0x1d098b;
  *(type_5 *)(var_1 + 4) = 0;
  sentry::type_4(local_1d,var_1,true);
  if (local_1d[0] != (type_4)0x0) {
    piVar1 = *(int **)(var_1 + *(int *)(*(int *)var_1 + -0xc) + 0x78);
    if ((type_2 *)piVar1[3] <= (type_2 *)piVar1[2]) goto LAB_001d0a50;
    var_2 = (type_1)*(type_2 *)piVar1[2];
    var_7 = var_2;
LAB_001d09dc:
    if ((type_2)param_2 != var_2) {
      do {
        if (*(type_6 **)(var_3 + 0x14) < *(type_6 **)(var_3 + 0x18)) {
          **(type_6 **)(var_3 + 0x14) = (char)var_7;
          *(int *)(var_3 + 0x14) = *(int *)(var_3 + 0x14) + 1;
          var_4 = (type_2 *)piVar1[2];
          var_5 = (type_2 *)piVar1[3];
          *(int *)(var_1 + 4) = *(int *)(var_1 + 4) + 1;
          if (var_4 < var_5) goto LAB_001d0a05;
LAB_001d0aa8:
          var_6 = (**(type_7 **)(*piVar1 + 0x28))(piVar1);
          if (var_6 == -1) goto LAB_001d0a70;
          var_4 = (type_2 *)piVar1[2];
          var_5 = (type_2 *)piVar1[3];
        }
        else {
          var_6 = (**(type_7 **)(*(int *)var_3 + 0x34))(var_3,var_7);
          if (var_6 == -1) break;
          var_4 = (type_2 *)piVar1[2];
          var_5 = (type_2 *)piVar1[3];
          *(int *)(var_1 + 4) = *(int *)(var_1 + 4) + 1;
          if (var_5 <= var_4) goto LAB_001d0aa8;
LAB_001d0a05:
          var_4 = var_4 + 1;
          piVar1[2] = (int)var_4;
        }
        if (var_5 <= var_4) goto LAB_001d0a50;
        var_7 = (type_1)*var_4;
        if ((type_2)param_2 == var_7) break;
      } while( true );
    }
  }
  if (*(int *)(var_1 + 4) != 0) {
    return var_1;
  }
  var_9 = _S_failbit;
LAB_001d0a2c:
  ios::var_8((type_8 *)(var_1 + *(int *)(*(int *)var_1 + -0xc)),
             var_9 | *(type_3 *)((type_8 *)(var_1 + *(int *)(*(int *)var_1 + -0xc)) + 0x14));
  return var_1;
LAB_001d0a50:
                    /* try { // try from 001d0a56 to 001d0ab0 has its CatchHandler @ 001d0ac4 */
  var_2 = (**(type_7 **)(*piVar1 + 0x24))(piVar1);
  var_7 = var_2 & 0xff;
  if (var_2 == 0xffffffff) goto LAB_001d0a70;
  goto LAB_001d09dc;
LAB_001d0a70:
  var_9 = (-(type_1)(*(int *)(var_1 + 4) == 0) & 4) + var_10;
  goto LAB_001d0a2c;
}


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

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

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

{
  int *piVar1;
  uint uVar2;
  byte *pbVar3;
  int iVar4;
  byte *pbVar5;
  uint uVar6;
  char local_1d [9];
  undefined4 uStack_14;
  
  uStack_14 = 0x1d098b;
  param_1[1] = 0;
  FUN_001cfd60(local_1d,param_1,1);
  if (local_1d[0] != '\0') {
    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);
    if ((byte *)piVar1[3] <= (byte *)piVar1[2]) goto LAB_001d0a50;
    uVar2 = (uint)*(byte *)piVar1[2];
    uVar6 = uVar2;
LAB_001d09dc:
    if ((param_3 & 0xff) != uVar2) {
      do {
        if ((undefined1 *)param_2[5] < (undefined1 *)param_2[6]) {
          *(undefined1 *)param_2[5] = (char)uVar6;
          param_2[5] = param_2[5] + 1;
          pbVar3 = (byte *)piVar1[2];
          pbVar5 = (byte *)piVar1[3];
          param_1[1] = param_1[1] + 1;
          if (pbVar3 < pbVar5) goto LAB_001d0a05;
LAB_001d0aa8:
          iVar4 = (**(code **)(*piVar1 + 0x28))(piVar1);
          if (iVar4 == -1) goto LAB_001d0a70;
          pbVar3 = (byte *)piVar1[2];
          pbVar5 = (byte *)piVar1[3];
        }
        else {
          iVar4 = (**(code **)(*param_2 + 0x34))(param_2,uVar6);
          if (iVar4 == -1) break;
          pbVar3 = (byte *)piVar1[2];
          pbVar5 = (byte *)piVar1[3];
          param_1[1] = param_1[1] + 1;
          if (pbVar5 <= pbVar3) goto LAB_001d0aa8;
LAB_001d0a05:
          pbVar3 = pbVar3 + 1;
          piVar1[2] = (int)pbVar3;
        }
        if (pbVar5 <= pbVar3) goto LAB_001d0a50;
        uVar6 = (uint)*pbVar3;
        if ((param_3 & 0xff) == uVar6) break;
      } while( true );
    }
  }
  if (param_1[1] != 0) {
    return param_1;
  }
  uVar6 = 4;
LAB_001d0a2c:
  iVar4 = *(int *)(*param_1 + -0xc) + (int)param_1;
  FUN_001d62c0(iVar4,uVar6 | *(uint *)(iVar4 + 0x14));
  return param_1;
LAB_001d0a50:
                    /* try { // try from 001d0a56 to 001d0ab0 has its CatchHandler @ 001d0ac4 */
  uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);
  uVar6 = uVar2 & 0xff;
  if (uVar2 == 0xffffffff) goto LAB_001d0a70;
  goto LAB_001d09dc;
LAB_001d0a70:
  uVar6 = (-(uint)(param_1[1] == 0) & 4) + 2;
  goto LAB_001d0a2c;
}

