
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::filebuf::xsgetn(char*, int) */

void std::filebuf::xsgetn(char *param_1,int param_2)

{
}



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

int FUN_003da1f0(int *param_1,undefined1 *param_2,int param_3)

{
  int *piVar1;
  char cVar2;
  int iVar3;
  undefined1 *puVar4;
  undefined1 *puVar5;
  uint uVar6;
  size_t __n;
  int iVar7;
  
  if ((char)param_1[0x1c] == '\0') {
    if (*(char *)((int)param_1 + 0x66) == '\0') {
      uVar6 = param_1[0x10];
      iVar7 = 0;
    }
    else {
      iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);
      if (iVar3 == -1) {
        return 0;
      }
      iVar3 = param_1[0x17];
      uVar6 = param_1[0x10];
      param_1[5] = 0;
      iVar7 = 0;
      param_1[4] = 0;
      param_1[1] = iVar3;
      param_1[2] = iVar3;
      param_1[3] = iVar3;
      param_1[6] = 0;
      *(undefined1 *)((int)param_1 + 0x66) = 0;
    }
  }
  else {
    puVar4 = (undefined1 *)param_1[2];
    puVar5 = (undefined1 *)param_1[1];
    iVar7 = 0;
    if ((0 < param_3) && (puVar4 == puVar5)) {
      param_3 = param_3 + -1;
      *param_2 = *puVar4;
      param_2 = param_2 + 1;
      puVar4 = (undefined1 *)(param_1[2] + 1);
      param_1[2] = (int)puVar4;
      if ((char)param_1[0x1c] == '\0') {
        uVar6 = param_1[0x10];
        iVar7 = 1;
        goto LAB_003da24c;
      }
      puVar5 = (undefined1 *)param_1[1];
      iVar7 = 1;
    }
    *(undefined1 *)(param_1 + 0x1c) = 0;
    iVar3 = (uint)(puVar5 != puVar4) + param_1[0x1a];
    param_1[1] = param_1[0x17];
    param_1[0x1a] = iVar3;
    uVar6 = param_1[0x10];
    param_1[2] = iVar3;
    param_1[3] = param_1[0x1b];
  }
LAB_003da24c:
  iVar3 = 2;
  if (1 < (uint)param_1[0x18]) {
    iVar3 = param_1[0x18];
  }
  if (iVar3 + -1 < param_3) {
    piVar1 = (int *)param_1[0x1d];
    if (piVar1 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
      FUN_003f3900();
    }
    cVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);
    if (((uVar6 & 8) != 0) && (cVar2 != '\0')) {
      __n = param_1[3] - param_1[2];
      if (__n != 0) {
        memcpy(param_2,(void *)param_1[2],__n);
        param_2 = param_2 + __n;
        param_1[2] = param_1[2] + __n;
        iVar7 = iVar7 + __n;
        param_3 = param_3 - __n;
      }
      while( true ) {
        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);
        if (iVar3 == -1) {
                    /* WARNING: Subroutine does not return */
          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");
        }
        if (iVar3 == 0) break;
        iVar7 = iVar7 + iVar3;
        param_3 = param_3 - iVar3;
        if (param_3 == 0) goto LAB_003da39a;
        param_2 = param_2 + iVar3;
      }
      if (param_3 != 0) {
        iVar3 = param_1[0x17];
        param_1[5] = 0;
        param_1[4] = 0;
        param_1[1] = iVar3;
        param_1[2] = iVar3;
        param_1[3] = iVar3;
        param_1[6] = 0;
        *(undefined1 *)((int)param_1 + 0x65) = 0;
        return iVar7;
      }
LAB_003da39a:
      *(undefined1 *)((int)param_1 + 0x65) = 1;
      return iVar7;
    }
  }
  iVar3 = FUN_003b9290(param_1,param_2,param_3);
  return iVar7 + iVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00050b50
ADD EBX,0x20fe07
SUB ESP,0x1c
MOV EBP,dword ptr [ESP + 0x30]
MOV ESI,dword ptr [ESP + 0x38]
CMP byte ptr [EBP + 0x70],0x0
JZ 0x003da2b0
MOV EAX,dword ptr [EBP + 0x8]
MOV EDX,dword ptr [EBP + 0x4]
XOR EDI,EDI
TEST ESI,ESI
JLE 0x003da228
CMP EAX,EDX
JZ 0x003da2c0
CMP EDX,EAX
MOV EDX,dword ptr [EBP + 0x5c]
MOV byte ptr [EBP + 0x70],0x0
SETNZ AL
MOVZX EAX,AL
ADD EAX,dword ptr [EBP + 0x68]
MOV dword ptr [EBP + 0x4],EDX
MOV dword ptr [EBP + 0x68],EAX
MOV EDX,dword ptr [EBP + 0x40]
MOV dword ptr [EBP + 0x8],EAX
MOV EAX,dword ptr [EBP + 0x6c]
MOV dword ptr [EBP + 0xc],EAX
CMP dword ptr [EBP + 0x60],0x2
MOV EAX,0x2
CMOVNC EAX,dword ptr [EBP + 0x60]
SUB EAX,0x1
CMP ESI,EAX
JLE 0x003da28c
MOV EAX,dword ptr [EBP + 0x74]
TEST EAX,EAX
JZ 0x003da419
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0xc
MOV ECX,dword ptr [EAX]
PUSH EAX
CALL dword ptr [ECX + 0x18]
MOV EDX,dword ptr [ESP + 0x1c]
ADD ESP,0x10
AND EDX,0x8
JZ 0x003da28c
TEST AL,AL
JNZ 0x003da350
SUB ESP,0x4
PUSH ESI
PUSH dword ptr [ESP + 0x3c]
PUSH EBP
CALL 0x003b9290
ADD ESP,0x10
ADD EDI,EAX
ADD ESP,0x1c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP byte ptr [EBP + 0x66],0x0
JNZ 0x003da2f8
MOV EDX,dword ptr [EBP + 0x40]
XOR EDI,EDI
JMP 0x003da24c
MOVZX EAX,byte ptr [EAX]
MOV ECX,dword ptr [ESP + 0x34]
SUB ESI,0x1
MOV byte ptr [ECX],AL
MOV EAX,dword ptr [EBP + 0x8]
LEA EDI,[ECX + 0x1]
ADD EAX,0x1
CMP byte ptr [EBP + 0x70],0x0
MOV dword ptr [EBP + 0x8],EAX
JNZ 0x003da41e
MOV dword ptr [ESP + 0x34],EDI
MOV EDX,dword ptr [EBP + 0x40]
MOV EDI,0x1
JMP 0x003da24c
SUB ESP,0x8
MOV EAX,dword ptr [EBP]
PUSH -0x1
PUSH EBP
CALL dword ptr [EAX + 0x34]
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x003da340
MOV EAX,dword ptr [EBP + 0x5c]
MOV EDX,dword ptr [EBP + 0x40]
MOV dword ptr [EBP + 0x14],0x0
XOR EDI,EDI
MOV dword ptr [EBP + 0x10],0x0
MOV dword ptr [EBP + 0x4],EAX
MOV dword ptr [EBP + 0x8],EAX
MOV dword ptr [EBP + 0xc],EAX
MOV dword ptr [EBP + 0x18],0x0
MOV byte ptr [EBP + 0x66],0x0
JMP 0x003da24c
XOR EDI,EDI
JMP 0x003da29f
MOV EAX,dword ptr [EBP + 0x8]
MOV EDX,dword ptr [EBP + 0xc]
SUB EDX,EAX
JNZ 0x003da3b0
LEA EAX,[EBP + 0x38]
MOV dword ptr [ESP + 0x30],EBP
MOV EBP,dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0xc],EAX
JMP 0x003da378
ADD EDI,EAX
SUB ESI,EAX
JZ 0x003da3a8
ADD EBP,EAX
SUB ESP,0x4
PUSH ESI
PUSH EBP
PUSH dword ptr [ESP + 0x18]
CALL 0x003ae8e0
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x003da40a
TEST EAX,EAX
JNZ 0x003da370
MOV EBP,dword ptr [ESP + 0x30]
TEST ESI,ESI
JNZ 0x003da3e0
MOV byte ptr [EBP + 0x65],0x1
JMP 0x003da29f
MOV EBP,dword ptr [ESP + 0x30]
JMP 0x003da39a
SUB ESP,0x4
PUSH EDX
MOV dword ptr [ESP + 0x14],EDX
PUSH EAX
PUSH dword ptr [ESP + 0x40]
CALL 0x000392d0
MOV EDX,dword ptr [ESP + 0x1c]
ADD dword ptr [ESP + 0x44],EDX
ADD ESP,0x10
ADD dword ptr [EBP + 0x8],EDX
ADD EDI,EDX
SUB ESI,EDX
JMP 0x003da35a
MOV EAX,dword ptr [EBP + 0x5c]
MOV dword ptr [EBP + 0x14],0x0
MOV dword ptr [EBP + 0x10],0x0
MOV dword ptr [EBP + 0x4],EAX
MOV dword ptr [EBP + 0x8],EAX
MOV dword ptr [EBP + 0xc],EAX
MOV dword ptr [EBP + 0x18],0x0
MOV byte ptr [EBP + 0x65],0x0
JMP 0x003da29f
SUB ESP,0xc
LEA EAX,[EBX + 0xffeb90e0]
PUSH EAX
CALL 0x003eddc0
CALL 0x003f3900
MOV dword ptr [ESP + 0x34],EDI
MOV EDX,dword ptr [EBP + 0x4]
MOV EDI,0x1
JMP 0x003da228
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_003da1f0(int *param_1,undefined1 *param_2,int param_3)\n\n{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  uint uVar6;\n  size_t __n;\n  int iVar7;\n  \n  if ((char)param_1[0x1c] == '\0') {\n    if (*(char *)((int)param_1 + 0x66) == '\0') {\n      uVar6 = param_1[0x10];\n      iVar7 = 0;\n    }\n    else {\n      iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n      if (iVar3 == -1) {\n        return 0;\n      }\n      iVar3 = param_1[0x17];\n      uVar6 = param_1[0x10];\n      param_1[5] = 0;\n      iVar7 = 0;\n      param_1[4] = 0;\n      param_1[1] = iVar3;\n      param_1[2] = iVar3;\n      param_1[3] = iVar3;\n      param_1[6] = 0;\n      *(undefined1 *)((int)param_1 + 0x66) = 0;\n    }\n  }\n  else {\n    puVar4 = (undefined1 *)param_1[2];\n    puVar5 = (undefined1 *)param_1[1];\n    iVar7 = 0;\n    if ((0 < param_3) && (puVar4 == puVar5)) {\n      param_3 = param_3 + -1;\n      *param_2 = *puVar4;\n      param_2 = param_2 + 1;\n      puVar4 = (undefined1 *)(param_1[2] + 1);\n      param_1[2] = (int)puVar4;\n      if ((char)param_1[0x1c] == '\0') {\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }\n      puVar5 = (undefined1 *)param_1[1];\n      iVar7 = 1;\n    }\n    *(undefined1 *)(param_1 + 0x1c) = 0;\n    iVar3 = (uint)(puVar5 != puVar4) + param_1[0x1a];\n    param_1[1] = param_1[0x17];\n    param_1[0x1a] = iVar3;\n    uVar6 = param_1[0x10];\n    param_1[2] = iVar3;\n    param_1[3] = param_1[0x1b];\n  }\nLAB_003da24c:\n  iVar3 = 2;\n  if (1 < (uint)param_1[0x18]) {\n    iVar3 = param_1[0x18];\n  }\n  if (iVar3 + -1 < param_3) {\n    piVar1 = (int *)param_1[0x1d];\n    if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3900();\n    }\n    cVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (((uVar6 & 8) != 0) && (cVar2 != '\0')) {\n      __n = param_1[3] - param_1[2];\n      if (__n != 0) {\n        memcpy(param_2,(void *)param_1[2],__n);\n        param_2 = param_2 + __n;\n        param_1[2] = param_1[2] + __n;\n        iVar7 = iVar7 + __n;\n        param_3 = param_3 - __n;\n      }\n      while( true ) {\n        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);\n        if (iVar3 == -1) {\n                    /* WARNING: Subroutine does not return */\n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }\n        if (iVar3 == 0) break;\n        iVar7 = iVar7 + iVar3;\n        param_3 = param_3 - iVar3;\n        if (param_3 == 0) goto LAB_003da39a;\n        param_2 = param_2 + iVar3;\n      }\n      if (param_3 != 0) {\n        iVar3 = param_1[0x17];\n        param_1[5] = 0;\n        param_1[4] = 0;\n        param_1[1] = iVar3;\n        param_1[2] = iVar3;\n        param_1[3] = iVar3;\n        param_1[6] = 0;\n        *(undefined1 *)((int)param_1 + 0x65) = 0;\n        return iVar7;\n      }\nLAB_003da39a:\n      *(undefined1 *)((int)param_1 + 0x65) = 1;\n      return iVar7;\n    }\n  }\n  iVar3 = FUN_003b9290(param_1,param_2,param_3);\n  return iVar7 + iVar3;\n}\n\n" comment (function_definition "int FUN_003da1f0(int *param_1,undefined1 *param_2,int param_3)\n\n{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  uint uVar6;\n  size_t __n;\n  int iVar7;\n  \n  if ((char)param_1[0x1c] == '\0') {\n    if (*(char *)((int)param_1 + 0x66) == '\0') {\n      uVar6 = param_1[0x10];\n      iVar7 = 0;\n    }\n    else {\n      iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n      if (iVar3 == -1) {\n        return 0;\n      }\n      iVar3 = param_1[0x17];\n      uVar6 = param_1[0x10];\n      param_1[5] = 0;\n      iVar7 = 0;\n      param_1[4] = 0;\n      param_1[1] = iVar3;\n      param_1[2] = iVar3;\n      param_1[3] = iVar3;\n      param_1[6] = 0;\n      *(undefined1 *)((int)param_1 + 0x66) = 0;\n    }\n  }\n  else {\n    puVar4 = (undefined1 *)param_1[2];\n    puVar5 = (undefined1 *)param_1[1];\n    iVar7 = 0;\n    if ((0 < param_3) && (puVar4 == puVar5)) {\n      param_3 = param_3 + -1;\n      *param_2 = *puVar4;\n      param_2 = param_2 + 1;\n      puVar4 = (undefined1 *)(param_1[2] + 1);\n      param_1[2] = (int)puVar4;\n      if ((char)param_1[0x1c] == '\0') {\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }\n      puVar5 = (undefined1 *)param_1[1];\n      iVar7 = 1;\n    }\n    *(undefined1 *)(param_1 + 0x1c) = 0;\n    iVar3 = (uint)(puVar5 != puVar4) + param_1[0x1a];\n    param_1[1] = param_1[0x17];\n    param_1[0x1a] = iVar3;\n    uVar6 = param_1[0x10];\n    param_1[2] = iVar3;\n    param_1[3] = param_1[0x1b];\n  }\nLAB_003da24c:\n  iVar3 = 2;\n  if (1 < (uint)param_1[0x18]) {\n    iVar3 = param_1[0x18];\n  }\n  if (iVar3 + -1 < param_3) {\n    piVar1 = (int *)param_1[0x1d];\n    if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3900();\n    }\n    cVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (((uVar6 & 8) != 0) && (cVar2 != '\0')) {\n      __n = param_1[3] - param_1[2];\n      if (__n != 0) {\n        memcpy(param_2,(void *)param_1[2],__n);\n        param_2 = param_2 + __n;\n        param_1[2] = param_1[2] + __n;\n        iVar7 = iVar7 + __n;\n        param_3 = param_3 - __n;\n      }\n      while( true ) {\n        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);\n        if (iVar3 == -1) {\n                    /* WARNING: Subroutine does not return */\n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }\n        if (iVar3 == 0) break;\n        iVar7 = iVar7 + iVar3;\n        param_3 = param_3 - iVar3;\n        if (param_3 == 0) goto LAB_003da39a;\n        param_2 = param_2 + iVar3;\n      }\n      if (param_3 != 0) {\n        iVar3 = param_1[0x17];\n        param_1[5] = 0;\n        param_1[4] = 0;\n        param_1[1] = iVar3;\n        param_1[2] = iVar3;\n        param_1[3] = iVar3;\n        param_1[6] = 0;\n        *(undefined1 *)((int)param_1 + 0x65) = 0;\n        return iVar7;\n      }\nLAB_003da39a:\n      *(undefined1 *)((int)param_1 + 0x65) = 1;\n      return iVar7;\n    }\n  }\n  iVar3 = FUN_003b9290(param_1,param_2,param_3);\n  return iVar7 + iVar3;\n}" primitive_type (function_declarator "FUN_003da1f0(int *param_1,undefined1 *param_2,int param_3)" identifier (parameter_list "(int *param_1,undefined1 *param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  uint uVar6;\n  size_t __n;\n  int iVar7;\n  \n  if ((char)param_1[0x1c] == '\0') {\n    if (*(char *)((int)param_1 + 0x66) == '\0') {\n      uVar6 = param_1[0x10];\n      iVar7 = 0;\n    }\n    else {\n      iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n      if (iVar3 == -1) {\n        return 0;\n      }\n      iVar3 = param_1[0x17];\n      uVar6 = param_1[0x10];\n      param_1[5] = 0;\n      iVar7 = 0;\n      param_1[4] = 0;\n      param_1[1] = iVar3;\n      param_1[2] = iVar3;\n      param_1[3] = iVar3;\n      param_1[6] = 0;\n      *(undefined1 *)((int)param_1 + 0x66) = 0;\n    }\n  }\n  else {\n    puVar4 = (undefined1 *)param_1[2];\n    puVar5 = (undefined1 *)param_1[1];\n    iVar7 = 0;\n    if ((0 < param_3) && (puVar4 == puVar5)) {\n      param_3 = param_3 + -1;\n      *param_2 = *puVar4;\n      param_2 = param_2 + 1;\n      puVar4 = (undefined1 *)(param_1[2] + 1);\n      param_1[2] = (int)puVar4;\n      if ((char)param_1[0x1c] == '\0') {\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }\n      puVar5 = (undefined1 *)param_1[1];\n      iVar7 = 1;\n    }\n    *(undefined1 *)(param_1 + 0x1c) = 0;\n    iVar3 = (uint)(puVar5 != puVar4) + param_1[0x1a];\n    param_1[1] = param_1[0x17];\n    param_1[0x1a] = iVar3;\n    uVar6 = param_1[0x10];\n    param_1[2] = iVar3;\n    param_1[3] = param_1[0x1b];\n  }\nLAB_003da24c:\n  iVar3 = 2;\n  if (1 < (uint)param_1[0x18]) {\n    iVar3 = param_1[0x18];\n  }\n  if (iVar3 + -1 < param_3) {\n    piVar1 = (int *)param_1[0x1d];\n    if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3900();\n    }\n    cVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (((uVar6 & 8) != 0) && (cVar2 != '\0')) {\n      __n = param_1[3] - param_1[2];\n      if (__n != 0) {\n        memcpy(param_2,(void *)param_1[2],__n);\n        param_2 = param_2 + __n;\n        param_1[2] = param_1[2] + __n;\n        iVar7 = iVar7 + __n;\n        param_3 = param_3 - __n;\n      }\n      while( true ) {\n        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);\n        if (iVar3 == -1) {\n                    /* WARNING: Subroutine does not return */\n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }\n        if (iVar3 == 0) break;\n        iVar7 = iVar7 + iVar3;\n        param_3 = param_3 - iVar3;\n        if (param_3 == 0) goto LAB_003da39a;\n        param_2 = param_2 + iVar3;\n      }\n      if (param_3 != 0) {\n        iVar3 = param_1[0x17];\n        param_1[5] = 0;\n        param_1[4] = 0;\n        param_1[1] = iVar3;\n        param_1[2] = iVar3;\n        param_1[3] = iVar3;\n        param_1[6] = 0;\n        *(undefined1 *)((int)param_1 + 0x65) = 0;\n        return iVar7;\n      }\nLAB_003da39a:\n      *(undefined1 *)((int)param_1 + 0x65) = 1;\n      return iVar7;\n    }\n  }\n  iVar3 = FUN_003b9290(param_1,param_2,param_3);\n  return iVar7 + iVar3;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (if_statement "if ((char)param_1[0x1c] == '\0') {\n    if (*(char *)((int)param_1 + 0x66) == '\0') {\n      uVar6 = param_1[0x10];\n      iVar7 = 0;\n    }\n    else {\n      iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n      if (iVar3 == -1) {\n        return 0;\n      }\n      iVar3 = param_1[0x17];\n      uVar6 = param_1[0x10];\n      param_1[5] = 0;\n      iVar7 = 0;\n      param_1[4] = 0;\n      param_1[1] = iVar3;\n      param_1[2] = iVar3;\n      param_1[3] = iVar3;\n      param_1[6] = 0;\n      *(undefined1 *)((int)param_1 + 0x66) = 0;\n    }\n  }\n  else {\n    puVar4 = (undefined1 *)param_1[2];\n    puVar5 = (undefined1 *)param_1[1];\n    iVar7 = 0;\n    if ((0 < param_3) && (puVar4 == puVar5)) {\n      param_3 = param_3 + -1;\n      *param_2 = *puVar4;\n      param_2 = param_2 + 1;\n      puVar4 = (undefined1 *)(param_1[2] + 1);\n      param_1[2] = (int)puVar4;\n      if ((char)param_1[0x1c] == '\0') {\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }\n      puVar5 = (undefined1 *)param_1[1];\n      iVar7 = 1;\n    }\n    *(undefined1 *)(param_1 + 0x1c) = 0;\n    iVar3 = (uint)(puVar5 != puVar4) + param_1[0x1a];\n    param_1[1] = param_1[0x17];\n    param_1[0x1a] = iVar3;\n    uVar6 = param_1[0x10];\n    param_1[2] = iVar3;\n    param_1[3] = param_1[0x1b];\n  }" if (parenthesized_expression "((char)param_1[0x1c] == '\0')" ( (binary_expression "(char)param_1[0x1c] == '\0'" (cast_expression "(char)param_1[0x1c]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[0x1c]" identifier [ number_literal ])) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (*(char *)((int)param_1 + 0x66) == '\0') {\n      uVar6 = param_1[0x10];\n      iVar7 = 0;\n    }\n    else {\n      iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n      if (iVar3 == -1) {\n        return 0;\n      }\n      iVar3 = param_1[0x17];\n      uVar6 = param_1[0x10];\n      param_1[5] = 0;\n      iVar7 = 0;\n      param_1[4] = 0;\n      param_1[1] = iVar3;\n      param_1[2] = iVar3;\n      param_1[3] = iVar3;\n      param_1[6] = 0;\n      *(undefined1 *)((int)param_1 + 0x66) = 0;\n    }\n  }" { (if_statement "if (*(char *)((int)param_1 + 0x66) == '\0') {\n      uVar6 = param_1[0x10];\n      iVar7 = 0;\n    }\n    else {\n      iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n      if (iVar3 == -1) {\n        return 0;\n      }\n      iVar3 = param_1[0x17];\n      uVar6 = param_1[0x10];\n      param_1[5] = 0;\n      iVar7 = 0;\n      param_1[4] = 0;\n      param_1[1] = iVar3;\n      param_1[2] = iVar3;\n      param_1[3] = iVar3;\n      param_1[6] = 0;\n      *(undefined1 *)((int)param_1 + 0x66) = 0;\n    }" if (parenthesized_expression "(*(char *)((int)param_1 + 0x66) == '\0')" ( (binary_expression "*(char *)((int)param_1 + 0x66) == '\0'" (pointer_expression "*(char *)((int)param_1 + 0x66)" * (cast_expression "(char *)((int)param_1 + 0x66)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x66)" ( (binary_expression "(int)param_1 + 0x66" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar6 = param_1[0x10];\n      iVar7 = 0;\n    }" { (expression_statement "uVar6 = param_1[0x10];" (assignment_expression "uVar6 = param_1[0x10]" identifier = (subscript_expression "param_1[0x10]" identifier [ number_literal ])) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n      if (iVar3 == -1) {\n        return 0;\n      }\n      iVar3 = param_1[0x17];\n      uVar6 = param_1[0x10];\n      param_1[5] = 0;\n      iVar7 = 0;\n      param_1[4] = 0;\n      param_1[1] = iVar3;\n      param_1[2] = iVar3;\n      param_1[3] = iVar3;\n      param_1[6] = 0;\n      *(undefined1 *)((int)param_1 + 0x66) = 0;\n    }" else (compound_statement "{\n      iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n      if (iVar3 == -1) {\n        return 0;\n      }\n      iVar3 = param_1[0x17];\n      uVar6 = param_1[0x10];\n      param_1[5] = 0;\n      iVar7 = 0;\n      param_1[4] = 0;\n      param_1[1] = iVar3;\n      param_1[2] = iVar3;\n      param_1[3] = iVar3;\n      param_1[6] = 0;\n      *(undefined1 *)((int)param_1 + 0x66) = 0;\n    }" { (expression_statement "iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);" (assignment_expression "iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff)" identifier = (call_expression "(**(code **)(*param_1 + 0x34))(param_1,0xffffffff)" (parenthesized_expression "(**(code **)(*param_1 + 0x34))" ( (pointer_expression "**(code **)(*param_1 + 0x34)" * (pointer_expression "*(code **)(*param_1 + 0x34)" * (cast_expression "(code **)(*param_1 + 0x34)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x34)" ( (binary_expression "*param_1 + 0x34" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,0xffffffff)" ( identifier , number_literal )))) ;) (if_statement "if (iVar3 == -1) {\n        return 0;\n      }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar3 = param_1[0x17];" (assignment_expression "iVar3 = param_1[0x17]" identifier = (subscript_expression "param_1[0x17]" identifier [ number_literal ])) ;) (expression_statement "uVar6 = param_1[0x10];" (assignment_expression "uVar6 = param_1[0x10]" identifier = (subscript_expression "param_1[0x10]" identifier [ number_literal ])) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = iVar3;" (assignment_expression "param_1[1] = iVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = iVar3;" (assignment_expression "param_1[2] = iVar3" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = iVar3;" (assignment_expression "param_1[3] = iVar3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_1 + 0x66) = 0;" (assignment_expression "*(undefined1 *)((int)param_1 + 0x66) = 0" (pointer_expression "*(undefined1 *)((int)param_1 + 0x66)" * (cast_expression "(undefined1 *)((int)param_1 + 0x66)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x66)" ( (binary_expression "(int)param_1 + 0x66" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) }))) }) (else_clause "else {\n    puVar4 = (undefined1 *)param_1[2];\n    puVar5 = (undefined1 *)param_1[1];\n    iVar7 = 0;\n    if ((0 < param_3) && (puVar4 == puVar5)) {\n      param_3 = param_3 + -1;\n      *param_2 = *puVar4;\n      param_2 = param_2 + 1;\n      puVar4 = (undefined1 *)(param_1[2] + 1);\n      param_1[2] = (int)puVar4;\n      if ((char)param_1[0x1c] == '\0') {\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }\n      puVar5 = (undefined1 *)param_1[1];\n      iVar7 = 1;\n    }\n    *(undefined1 *)(param_1 + 0x1c) = 0;\n    iVar3 = (uint)(puVar5 != puVar4) + param_1[0x1a];\n    param_1[1] = param_1[0x17];\n    param_1[0x1a] = iVar3;\n    uVar6 = param_1[0x10];\n    param_1[2] = iVar3;\n    param_1[3] = param_1[0x1b];\n  }" else (compound_statement "{\n    puVar4 = (undefined1 *)param_1[2];\n    puVar5 = (undefined1 *)param_1[1];\n    iVar7 = 0;\n    if ((0 < param_3) && (puVar4 == puVar5)) {\n      param_3 = param_3 + -1;\n      *param_2 = *puVar4;\n      param_2 = param_2 + 1;\n      puVar4 = (undefined1 *)(param_1[2] + 1);\n      param_1[2] = (int)puVar4;\n      if ((char)param_1[0x1c] == '\0') {\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }\n      puVar5 = (undefined1 *)param_1[1];\n      iVar7 = 1;\n    }\n    *(undefined1 *)(param_1 + 0x1c) = 0;\n    iVar3 = (uint)(puVar5 != puVar4) + param_1[0x1a];\n    param_1[1] = param_1[0x17];\n    param_1[0x1a] = iVar3;\n    uVar6 = param_1[0x10];\n    param_1[2] = iVar3;\n    param_1[3] = param_1[0x1b];\n  }" { (expression_statement "puVar4 = (undefined1 *)param_1[2];" (assignment_expression "puVar4 = (undefined1 *)param_1[2]" identifier = (cast_expression "(undefined1 *)param_1[2]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "puVar5 = (undefined1 *)param_1[1];" (assignment_expression "puVar5 = (undefined1 *)param_1[1]" identifier = (cast_expression "(undefined1 *)param_1[1]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (if_statement "if ((0 < param_3) && (puVar4 == puVar5)) {\n      param_3 = param_3 + -1;\n      *param_2 = *puVar4;\n      param_2 = param_2 + 1;\n      puVar4 = (undefined1 *)(param_1[2] + 1);\n      param_1[2] = (int)puVar4;\n      if ((char)param_1[0x1c] == '\0') {\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }\n      puVar5 = (undefined1 *)param_1[1];\n      iVar7 = 1;\n    }" if (parenthesized_expression "((0 < param_3) && (puVar4 == puVar5))" ( (binary_expression "(0 < param_3) && (puVar4 == puVar5)" (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) )) && (parenthesized_expression "(puVar4 == puVar5)" ( (binary_expression "puVar4 == puVar5" identifier == identifier) ))) )) (compound_statement "{\n      param_3 = param_3 + -1;\n      *param_2 = *puVar4;\n      param_2 = param_2 + 1;\n      puVar4 = (undefined1 *)(param_1[2] + 1);\n      param_1[2] = (int)puVar4;\n      if ((char)param_1[0x1c] == '\0') {\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }\n      puVar5 = (undefined1 *)param_1[1];\n      iVar7 = 1;\n    }" { (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ;) (expression_statement "*param_2 = *puVar4;" (assignment_expression "*param_2 = *puVar4" (pointer_expression "*param_2" * identifier) = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "puVar4 = (undefined1 *)(param_1[2] + 1);" (assignment_expression "puVar4 = (undefined1 *)(param_1[2] + 1)" identifier = (cast_expression "(undefined1 *)(param_1[2] + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + 1)" ( (binary_expression "param_1[2] + 1" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal) )))) ;) (expression_statement "param_1[2] = (int)puVar4;" (assignment_expression "param_1[2] = (int)puVar4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if ((char)param_1[0x1c] == '\0') {\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }" if (parenthesized_expression "((char)param_1[0x1c] == '\0')" ( (binary_expression "(char)param_1[0x1c] == '\0'" (cast_expression "(char)param_1[0x1c]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[0x1c]" identifier [ number_literal ])) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }" { (expression_statement "uVar6 = param_1[0x10];" (assignment_expression "uVar6 = param_1[0x10]" identifier = (subscript_expression "param_1[0x10]" identifier [ number_literal ])) ;) (expression_statement "iVar7 = 1;" (assignment_expression "iVar7 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_003da24c;" goto statement_identifier ;) })) (expression_statement "puVar5 = (undefined1 *)param_1[1];" (assignment_expression "puVar5 = (undefined1 *)param_1[1]" identifier = (cast_expression "(undefined1 *)param_1[1]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "iVar7 = 1;" (assignment_expression "iVar7 = 1" identifier = number_literal) ;) })) (expression_statement "*(undefined1 *)(param_1 + 0x1c) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x1c) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x1c)" * (cast_expression "(undefined1 *)(param_1 + 0x1c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar3 = (uint)(puVar5 != puVar4) + param_1[0x1a];" (assignment_expression "iVar3 = (uint)(puVar5 != puVar4) + param_1[0x1a]" identifier = (binary_expression "(uint)(puVar5 != puVar4) + param_1[0x1a]" (call_expression "(uint)(puVar5 != puVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar5 != puVar4)" ( (binary_expression "puVar5 != puVar4" identifier != identifier) ))) + (subscript_expression "param_1[0x1a]" identifier [ number_literal ]))) ;) (expression_statement "param_1[1] = param_1[0x17];" (assignment_expression "param_1[1] = param_1[0x17]" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (subscript_expression "param_1[0x17]" identifier [ number_literal ])) ;) (expression_statement "param_1[0x1a] = iVar3;" (assignment_expression "param_1[0x1a] = iVar3" (subscript_expression "param_1[0x1a]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar6 = param_1[0x10];" (assignment_expression "uVar6 = param_1[0x10]" identifier = (subscript_expression "param_1[0x10]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = iVar3;" (assignment_expression "param_1[2] = iVar3" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = param_1[0x1b];" (assignment_expression "param_1[3] = param_1[0x1b]" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (subscript_expression "param_1[0x1b]" identifier [ number_literal ])) ;) }))) (labeled_statement "LAB_003da24c:\n  iVar3 = 2;" statement_identifier : (expression_statement "iVar3 = 2;" (assignment_expression "iVar3 = 2" identifier = number_literal) ;)) (if_statement "if (1 < (uint)param_1[0x18]) {\n    iVar3 = param_1[0x18];\n  }" if (parenthesized_expression "(1 < (uint)param_1[0x18])" ( (binary_expression "1 < (uint)param_1[0x18]" number_literal < (cast_expression "(uint)param_1[0x18]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[0x18]" identifier [ number_literal ]))) )) (compound_statement "{\n    iVar3 = param_1[0x18];\n  }" { (expression_statement "iVar3 = param_1[0x18];" (assignment_expression "iVar3 = param_1[0x18]" identifier = (subscript_expression "param_1[0x18]" identifier [ number_literal ])) ;) })) (if_statement "if (iVar3 + -1 < param_3) {\n    piVar1 = (int *)param_1[0x1d];\n    if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3900();\n    }\n    cVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (((uVar6 & 8) != 0) && (cVar2 != '\0')) {\n      __n = param_1[3] - param_1[2];\n      if (__n != 0) {\n        memcpy(param_2,(void *)param_1[2],__n);\n        param_2 = param_2 + __n;\n        param_1[2] = param_1[2] + __n;\n        iVar7 = iVar7 + __n;\n        param_3 = param_3 - __n;\n      }\n      while( true ) {\n        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);\n        if (iVar3 == -1) {\n                    /* WARNING: Subroutine does not return */\n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }\n        if (iVar3 == 0) break;\n        iVar7 = iVar7 + iVar3;\n        param_3 = param_3 - iVar3;\n        if (param_3 == 0) goto LAB_003da39a;\n        param_2 = param_2 + iVar3;\n      }\n      if (param_3 != 0) {\n        iVar3 = param_1[0x17];\n        param_1[5] = 0;\n        param_1[4] = 0;\n        param_1[1] = iVar3;\n        param_1[2] = iVar3;\n        param_1[3] = iVar3;\n        param_1[6] = 0;\n        *(undefined1 *)((int)param_1 + 0x65) = 0;\n        return iVar7;\n      }\nLAB_003da39a:\n      *(undefined1 *)((int)param_1 + 0x65) = 1;\n      return iVar7;\n    }\n  }" if (parenthesized_expression "(iVar3 + -1 < param_3)" ( (binary_expression "iVar3 + -1 < param_3" (binary_expression "iVar3 + -1" identifier + number_literal) < identifier) )) (compound_statement "{\n    piVar1 = (int *)param_1[0x1d];\n    if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3900();\n    }\n    cVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (((uVar6 & 8) != 0) && (cVar2 != '\0')) {\n      __n = param_1[3] - param_1[2];\n      if (__n != 0) {\n        memcpy(param_2,(void *)param_1[2],__n);\n        param_2 = param_2 + __n;\n        param_1[2] = param_1[2] + __n;\n        iVar7 = iVar7 + __n;\n        param_3 = param_3 - __n;\n      }\n      while( true ) {\n        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);\n        if (iVar3 == -1) {\n                    /* WARNING: Subroutine does not return */\n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }\n        if (iVar3 == 0) break;\n        iVar7 = iVar7 + iVar3;\n        param_3 = param_3 - iVar3;\n        if (param_3 == 0) goto LAB_003da39a;\n        param_2 = param_2 + iVar3;\n      }\n      if (param_3 != 0) {\n        iVar3 = param_1[0x17];\n        param_1[5] = 0;\n        param_1[4] = 0;\n        param_1[1] = iVar3;\n        param_1[2] = iVar3;\n        param_1[3] = iVar3;\n        param_1[6] = 0;\n        *(undefined1 *)((int)param_1 + 0x65) = 0;\n        return iVar7;\n      }\nLAB_003da39a:\n      *(undefined1 *)((int)param_1 + 0x65) = 1;\n      return iVar7;\n    }\n  }" { (expression_statement "piVar1 = (int *)param_1[0x1d];" (assignment_expression "piVar1 = (int *)param_1[0x1d]" identifier = (cast_expression "(int *)param_1[0x1d]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x1d]" identifier [ number_literal ]))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3900();\n    }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_003f3900();\n    }" { comment (expression_statement "FUN_003f3900();" (call_expression "FUN_003f3900()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "cVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);" (assignment_expression "cVar2 = (**(code **)(*piVar1 + 0x18))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x18))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x18))" ( (pointer_expression "**(code **)(*piVar1 + 0x18)" * (pointer_expression "*(code **)(*piVar1 + 0x18)" * (cast_expression "(code **)(*piVar1 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x18)" ( (binary_expression "*piVar1 + 0x18" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if (((uVar6 & 8) != 0) && (cVar2 != '\0')) {\n      __n = param_1[3] - param_1[2];\n      if (__n != 0) {\n        memcpy(param_2,(void *)param_1[2],__n);\n        param_2 = param_2 + __n;\n        param_1[2] = param_1[2] + __n;\n        iVar7 = iVar7 + __n;\n        param_3 = param_3 - __n;\n      }\n      while( true ) {\n        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);\n        if (iVar3 == -1) {\n                    /* WARNING: Subroutine does not return */\n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }\n        if (iVar3 == 0) break;\n        iVar7 = iVar7 + iVar3;\n        param_3 = param_3 - iVar3;\n        if (param_3 == 0) goto LAB_003da39a;\n        param_2 = param_2 + iVar3;\n      }\n      if (param_3 != 0) {\n        iVar3 = param_1[0x17];\n        param_1[5] = 0;\n        param_1[4] = 0;\n        param_1[1] = iVar3;\n        param_1[2] = iVar3;\n        param_1[3] = iVar3;\n        param_1[6] = 0;\n        *(undefined1 *)((int)param_1 + 0x65) = 0;\n        return iVar7;\n      }\nLAB_003da39a:\n      *(undefined1 *)((int)param_1 + 0x65) = 1;\n      return iVar7;\n    }" if (parenthesized_expression "(((uVar6 & 8) != 0) && (cVar2 != '\0'))" ( (binary_expression "((uVar6 & 8) != 0) && (cVar2 != '\0')" (parenthesized_expression "((uVar6 & 8) != 0)" ( (binary_expression "(uVar6 & 8) != 0" (parenthesized_expression "(uVar6 & 8)" ( (binary_expression "uVar6 & 8" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n      __n = param_1[3] - param_1[2];\n      if (__n != 0) {\n        memcpy(param_2,(void *)param_1[2],__n);\n        param_2 = param_2 + __n;\n        param_1[2] = param_1[2] + __n;\n        iVar7 = iVar7 + __n;\n        param_3 = param_3 - __n;\n      }\n      while( true ) {\n        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);\n        if (iVar3 == -1) {\n                    /* WARNING: Subroutine does not return */\n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }\n        if (iVar3 == 0) break;\n        iVar7 = iVar7 + iVar3;\n        param_3 = param_3 - iVar3;\n        if (param_3 == 0) goto LAB_003da39a;\n        param_2 = param_2 + iVar3;\n      }\n      if (param_3 != 0) {\n        iVar3 = param_1[0x17];\n        param_1[5] = 0;\n        param_1[4] = 0;\n        param_1[1] = iVar3;\n        param_1[2] = iVar3;\n        param_1[3] = iVar3;\n        param_1[6] = 0;\n        *(undefined1 *)((int)param_1 + 0x65) = 0;\n        return iVar7;\n      }\nLAB_003da39a:\n      *(undefined1 *)((int)param_1 + 0x65) = 1;\n      return iVar7;\n    }" { (expression_statement "__n = param_1[3] - param_1[2];" (assignment_expression "__n = param_1[3] - param_1[2]" identifier = (binary_expression "param_1[3] - param_1[2]" (subscript_expression "param_1[3]" identifier [ number_literal ]) - (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (if_statement "if (__n != 0) {\n        memcpy(param_2,(void *)param_1[2],__n);\n        param_2 = param_2 + __n;\n        param_1[2] = param_1[2] + __n;\n        iVar7 = iVar7 + __n;\n        param_3 = param_3 - __n;\n      }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n        memcpy(param_2,(void *)param_1[2],__n);\n        param_2 = param_2 + __n;\n        param_1[2] = param_1[2] + __n;\n        iVar7 = iVar7 + __n;\n        param_3 = param_3 - __n;\n      }" { (expression_statement "memcpy(param_2,(void *)param_1[2],__n);" (call_expression "memcpy(param_2,(void *)param_1[2],__n)" identifier (argument_list "(param_2,(void *)param_1[2],__n)" ( identifier , (cast_expression "(void *)param_1[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) , identifier ))) ;) (expression_statement "param_2 = param_2 + __n;" (assignment_expression "param_2 = param_2 + __n" identifier = (binary_expression "param_2 + __n" identifier + identifier)) ;) (expression_statement "param_1[2] = param_1[2] + __n;" (assignment_expression "param_1[2] = param_1[2] + __n" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "param_1[2] + __n" (subscript_expression "param_1[2]" identifier [ number_literal ]) + identifier)) ;) (expression_statement "iVar7 = iVar7 + __n;" (assignment_expression "iVar7 = iVar7 + __n" identifier = (binary_expression "iVar7 + __n" identifier + identifier)) ;) (expression_statement "param_3 = param_3 - __n;" (assignment_expression "param_3 = param_3 - __n" identifier = (binary_expression "param_3 - __n" identifier - identifier)) ;) })) (while_statement "while( true ) {\n        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);\n        if (iVar3 == -1) {\n                    /* WARNING: Subroutine does not return */\n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }\n        if (iVar3 == 0) break;\n        iVar7 = iVar7 + iVar3;\n        param_3 = param_3 - iVar3;\n        if (param_3 == 0) goto LAB_003da39a;\n        param_2 = param_2 + iVar3;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);\n        if (iVar3 == -1) {\n                    /* WARNING: Subroutine does not return */\n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }\n        if (iVar3 == 0) break;\n        iVar7 = iVar7 + iVar3;\n        param_3 = param_3 - iVar3;\n        if (param_3 == 0) goto LAB_003da39a;\n        param_2 = param_2 + iVar3;\n      }" { (expression_statement "iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);" (assignment_expression "iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3)" identifier = (call_expression "FUN_003ae8e0(param_1 + 0xe,param_2,param_3)" identifier (argument_list "(param_1 + 0xe,param_2,param_3)" ( (binary_expression "param_1 + 0xe" identifier + number_literal) , identifier , identifier )))) ;) (if_statement "if (iVar3 == -1) {\n                    /* WARNING: Subroutine does not return */\n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }" { comment (expression_statement "FUN_003eddc0("basic_filebuf::xsgetn error reading the file");" (call_expression "FUN_003eddc0("basic_filebuf::xsgetn error reading the file")" identifier (argument_list "("basic_filebuf::xsgetn error reading the file")" ( (string_literal ""basic_filebuf::xsgetn error reading the file"" " string_content ") ))) ;) })) (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = iVar7 + iVar3;" (assignment_expression "iVar7 = iVar7 + iVar3" identifier = (binary_expression "iVar7 + iVar3" identifier + identifier)) ;) (expression_statement "param_3 = param_3 - iVar3;" (assignment_expression "param_3 = param_3 - iVar3" identifier = (binary_expression "param_3 - iVar3" identifier - identifier)) ;) (if_statement "if (param_3 == 0) goto LAB_003da39a;" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_003da39a;" goto statement_identifier ;)) (expression_statement "param_2 = param_2 + iVar3;" (assignment_expression "param_2 = param_2 + iVar3" identifier = (binary_expression "param_2 + iVar3" identifier + identifier)) ;) })) (if_statement "if (param_3 != 0) {\n        iVar3 = param_1[0x17];\n        param_1[5] = 0;\n        param_1[4] = 0;\n        param_1[1] = iVar3;\n        param_1[2] = iVar3;\n        param_1[3] = iVar3;\n        param_1[6] = 0;\n        *(undefined1 *)((int)param_1 + 0x65) = 0;\n        return iVar7;\n      }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar3 = param_1[0x17];\n        param_1[5] = 0;\n        param_1[4] = 0;\n        param_1[1] = iVar3;\n        param_1[2] = iVar3;\n        param_1[3] = iVar3;\n        param_1[6] = 0;\n        *(undefined1 *)((int)param_1 + 0x65) = 0;\n        return iVar7;\n      }" { (expression_statement "iVar3 = param_1[0x17];" (assignment_expression "iVar3 = param_1[0x17]" identifier = (subscript_expression "param_1[0x17]" identifier [ number_literal ])) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = iVar3;" (assignment_expression "param_1[1] = iVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = iVar3;" (assignment_expression "param_1[2] = iVar3" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = iVar3;" (assignment_expression "param_1[3] = iVar3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_1 + 0x65) = 0;" (assignment_expression "*(undefined1 *)((int)param_1 + 0x65) = 0" (pointer_expression "*(undefined1 *)((int)param_1 + 0x65)" * (cast_expression "(undefined1 *)((int)param_1 + 0x65)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x65)" ( (binary_expression "(int)param_1 + 0x65" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (return_statement "return iVar7;" return identifier ;) })) (labeled_statement "LAB_003da39a:\n      *(undefined1 *)((int)param_1 + 0x65) = 1;" statement_identifier : (expression_statement "*(undefined1 *)((int)param_1 + 0x65) = 1;" (assignment_expression "*(undefined1 *)((int)param_1 + 0x65) = 1" (pointer_expression "*(undefined1 *)((int)param_1 + 0x65)" * (cast_expression "(undefined1 *)((int)param_1 + 0x65)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x65)" ( (binary_expression "(int)param_1 + 0x65" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;)) (return_statement "return iVar7;" return identifier ;) })) })) (expression_statement "iVar3 = FUN_003b9290(param_1,param_2,param_3);" (assignment_expression "iVar3 = FUN_003b9290(param_1,param_2,param_3)" identifier = (call_expression "FUN_003b9290(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (return_statement "return iVar7 + iVar3;" return (binary_expression "iVar7 + iVar3" identifier + identifier) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::filebuf::xsgetn(char*, int) */\n\nvoid std::filebuf::xsgetn(char *param_1,int param_2)\n\n{\n}\n\n" comment comment (function_definition "void std::filebuf::xsgetn(char *param_1,int param_2)\n\n{\n}" primitive_type (ERROR "std::filebuf::" identifier : : identifier : :) (function_declarator "xsgetn(char *param_1,int param_2)" identifier (parameter_list "(char *param_1,int param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n}" { })))
(translation_unit "int FUN_003da1f0(int *param_1,undefined1 *param_2,int param_3)\n\n{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  uint uVar6;\n  size_t __n;\n  int iVar7;\n  \n  if ((char)param_1[0x1c] == '\0') {\n    if (*(char *)((int)param_1 + 0x66) == '\0') {\n      uVar6 = param_1[0x10];\n      iVar7 = 0;\n    }\n    else {\n      iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n      if (iVar3 == -1) {\n        return 0;\n      }\n      iVar3 = param_1[0x17];\n      uVar6 = param_1[0x10];\n      param_1[5] = 0;\n      iVar7 = 0;\n      param_1[4] = 0;\n      param_1[1] = iVar3;\n      param_1[2] = iVar3;\n      param_1[3] = iVar3;\n      param_1[6] = 0;\n      *(undefined1 *)((int)param_1 + 0x66) = 0;\n    }\n  }\n  else {\n    puVar4 = (undefined1 *)param_1[2];\n    puVar5 = (undefined1 *)param_1[1];\n    iVar7 = 0;\n    if ((0 < param_3) && (puVar4 == puVar5)) {\n      param_3 = param_3 + -1;\n      *param_2 = *puVar4;\n      param_2 = param_2 + 1;\n      puVar4 = (undefined1 *)(param_1[2] + 1);\n      param_1[2] = (int)puVar4;\n      if ((char)param_1[0x1c] == '\0') {\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }\n      puVar5 = (undefined1 *)param_1[1];\n      iVar7 = 1;\n    }\n    *(undefined1 *)(param_1 + 0x1c) = 0;\n    iVar3 = (uint)(puVar5 != puVar4) + param_1[0x1a];\n    param_1[1] = param_1[0x17];\n    param_1[0x1a] = iVar3;\n    uVar6 = param_1[0x10];\n    param_1[2] = iVar3;\n    param_1[3] = param_1[0x1b];\n  }\nLAB_003da24c:\n  iVar3 = 2;\n  if (1 < (uint)param_1[0x18]) {\n    iVar3 = param_1[0x18];\n  }\n  if (iVar3 + -1 < param_3) {\n    piVar1 = (int *)param_1[0x1d];\n    if (piVar1 == (int *)0x0) {\n                    \n      FUN_003f3900();\n    }\n    cVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (((uVar6 & 8) != 0) && (cVar2 != '\0')) {\n      __n = param_1[3] - param_1[2];\n      if (__n != 0) {\n        memcpy(param_2,(void *)param_1[2],__n);\n        param_2 = param_2 + __n;\n        param_1[2] = param_1[2] + __n;\n        iVar7 = iVar7 + __n;\n        param_3 = param_3 - __n;\n      }\n      while( true ) {\n        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);\n        if (iVar3 == -1) {\n                    \n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }\n        if (iVar3 == 0) break;\n        iVar7 = iVar7 + iVar3;\n        param_3 = param_3 - iVar3;\n        if (param_3 == 0) goto LAB_003da39a;\n        param_2 = param_2 + iVar3;\n      }\n      if (param_3 != 0) {\n        iVar3 = param_1[0x17];\n        param_1[5] = 0;\n        param_1[4] = 0;\n        param_1[1] = iVar3;\n        param_1[2] = iVar3;\n        param_1[3] = iVar3;\n        param_1[6] = 0;\n        *(undefined1 *)((int)param_1 + 0x65) = 0;\n        return iVar7;\n      }\nLAB_003da39a:\n      *(undefined1 *)((int)param_1 + 0x65) = 1;\n      return iVar7;\n    }\n  }\n  iVar3 = FUN_003b9290(param_1,param_2,param_3);\n  return iVar7 + iVar3;\n}\n\n" (function_definition "int FUN_003da1f0(int *param_1,undefined1 *param_2,int param_3)\n\n{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  uint uVar6;\n  size_t __n;\n  int iVar7;\n  \n  if ((char)param_1[0x1c] == '\0') {\n    if (*(char *)((int)param_1 + 0x66) == '\0') {\n      uVar6 = param_1[0x10];\n      iVar7 = 0;\n    }\n    else {\n      iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n      if (iVar3 == -1) {\n        return 0;\n      }\n      iVar3 = param_1[0x17];\n      uVar6 = param_1[0x10];\n      param_1[5] = 0;\n      iVar7 = 0;\n      param_1[4] = 0;\n      param_1[1] = iVar3;\n      param_1[2] = iVar3;\n      param_1[3] = iVar3;\n      param_1[6] = 0;\n      *(undefined1 *)((int)param_1 + 0x66) = 0;\n    }\n  }\n  else {\n    puVar4 = (undefined1 *)param_1[2];\n    puVar5 = (undefined1 *)param_1[1];\n    iVar7 = 0;\n    if ((0 < param_3) && (puVar4 == puVar5)) {\n      param_3 = param_3 + -1;\n      *param_2 = *puVar4;\n      param_2 = param_2 + 1;\n      puVar4 = (undefined1 *)(param_1[2] + 1);\n      param_1[2] = (int)puVar4;\n      if ((char)param_1[0x1c] == '\0') {\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }\n      puVar5 = (undefined1 *)param_1[1];\n      iVar7 = 1;\n    }\n    *(undefined1 *)(param_1 + 0x1c) = 0;\n    iVar3 = (uint)(puVar5 != puVar4) + param_1[0x1a];\n    param_1[1] = param_1[0x17];\n    param_1[0x1a] = iVar3;\n    uVar6 = param_1[0x10];\n    param_1[2] = iVar3;\n    param_1[3] = param_1[0x1b];\n  }\nLAB_003da24c:\n  iVar3 = 2;\n  if (1 < (uint)param_1[0x18]) {\n    iVar3 = param_1[0x18];\n  }\n  if (iVar3 + -1 < param_3) {\n    piVar1 = (int *)param_1[0x1d];\n    if (piVar1 == (int *)0x0) {\n                    \n      FUN_003f3900();\n    }\n    cVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (((uVar6 & 8) != 0) && (cVar2 != '\0')) {\n      __n = param_1[3] - param_1[2];\n      if (__n != 0) {\n        memcpy(param_2,(void *)param_1[2],__n);\n        param_2 = param_2 + __n;\n        param_1[2] = param_1[2] + __n;\n        iVar7 = iVar7 + __n;\n        param_3 = param_3 - __n;\n      }\n      while( true ) {\n        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);\n        if (iVar3 == -1) {\n                    \n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }\n        if (iVar3 == 0) break;\n        iVar7 = iVar7 + iVar3;\n        param_3 = param_3 - iVar3;\n        if (param_3 == 0) goto LAB_003da39a;\n        param_2 = param_2 + iVar3;\n      }\n      if (param_3 != 0) {\n        iVar3 = param_1[0x17];\n        param_1[5] = 0;\n        param_1[4] = 0;\n        param_1[1] = iVar3;\n        param_1[2] = iVar3;\n        param_1[3] = iVar3;\n        param_1[6] = 0;\n        *(undefined1 *)((int)param_1 + 0x65) = 0;\n        return iVar7;\n      }\nLAB_003da39a:\n      *(undefined1 *)((int)param_1 + 0x65) = 1;\n      return iVar7;\n    }\n  }\n  iVar3 = FUN_003b9290(param_1,param_2,param_3);\n  return iVar7 + iVar3;\n}" primitive_type (function_declarator "FUN_003da1f0(int *param_1,undefined1 *param_2,int param_3)" identifier (parameter_list "(int *param_1,undefined1 *param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  uint uVar6;\n  size_t __n;\n  int iVar7;\n  \n  if ((char)param_1[0x1c] == '\0') {\n    if (*(char *)((int)param_1 + 0x66) == '\0') {\n      uVar6 = param_1[0x10];\n      iVar7 = 0;\n    }\n    else {\n      iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n      if (iVar3 == -1) {\n        return 0;\n      }\n      iVar3 = param_1[0x17];\n      uVar6 = param_1[0x10];\n      param_1[5] = 0;\n      iVar7 = 0;\n      param_1[4] = 0;\n      param_1[1] = iVar3;\n      param_1[2] = iVar3;\n      param_1[3] = iVar3;\n      param_1[6] = 0;\n      *(undefined1 *)((int)param_1 + 0x66) = 0;\n    }\n  }\n  else {\n    puVar4 = (undefined1 *)param_1[2];\n    puVar5 = (undefined1 *)param_1[1];\n    iVar7 = 0;\n    if ((0 < param_3) && (puVar4 == puVar5)) {\n      param_3 = param_3 + -1;\n      *param_2 = *puVar4;\n      param_2 = param_2 + 1;\n      puVar4 = (undefined1 *)(param_1[2] + 1);\n      param_1[2] = (int)puVar4;\n      if ((char)param_1[0x1c] == '\0') {\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }\n      puVar5 = (undefined1 *)param_1[1];\n      iVar7 = 1;\n    }\n    *(undefined1 *)(param_1 + 0x1c) = 0;\n    iVar3 = (uint)(puVar5 != puVar4) + param_1[0x1a];\n    param_1[1] = param_1[0x17];\n    param_1[0x1a] = iVar3;\n    uVar6 = param_1[0x10];\n    param_1[2] = iVar3;\n    param_1[3] = param_1[0x1b];\n  }\nLAB_003da24c:\n  iVar3 = 2;\n  if (1 < (uint)param_1[0x18]) {\n    iVar3 = param_1[0x18];\n  }\n  if (iVar3 + -1 < param_3) {\n    piVar1 = (int *)param_1[0x1d];\n    if (piVar1 == (int *)0x0) {\n                    \n      FUN_003f3900();\n    }\n    cVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (((uVar6 & 8) != 0) && (cVar2 != '\0')) {\n      __n = param_1[3] - param_1[2];\n      if (__n != 0) {\n        memcpy(param_2,(void *)param_1[2],__n);\n        param_2 = param_2 + __n;\n        param_1[2] = param_1[2] + __n;\n        iVar7 = iVar7 + __n;\n        param_3 = param_3 - __n;\n      }\n      while( true ) {\n        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);\n        if (iVar3 == -1) {\n                    \n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }\n        if (iVar3 == 0) break;\n        iVar7 = iVar7 + iVar3;\n        param_3 = param_3 - iVar3;\n        if (param_3 == 0) goto LAB_003da39a;\n        param_2 = param_2 + iVar3;\n      }\n      if (param_3 != 0) {\n        iVar3 = param_1[0x17];\n        param_1[5] = 0;\n        param_1[4] = 0;\n        param_1[1] = iVar3;\n        param_1[2] = iVar3;\n        param_1[3] = iVar3;\n        param_1[6] = 0;\n        *(undefined1 *)((int)param_1 + 0x65) = 0;\n        return iVar7;\n      }\nLAB_003da39a:\n      *(undefined1 *)((int)param_1 + 0x65) = 1;\n      return iVar7;\n    }\n  }\n  iVar3 = FUN_003b9290(param_1,param_2,param_3);\n  return iVar7 + iVar3;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (if_statement "if ((char)param_1[0x1c] == '\0') {\n    if (*(char *)((int)param_1 + 0x66) == '\0') {\n      uVar6 = param_1[0x10];\n      iVar7 = 0;\n    }\n    else {\n      iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n      if (iVar3 == -1) {\n        return 0;\n      }\n      iVar3 = param_1[0x17];\n      uVar6 = param_1[0x10];\n      param_1[5] = 0;\n      iVar7 = 0;\n      param_1[4] = 0;\n      param_1[1] = iVar3;\n      param_1[2] = iVar3;\n      param_1[3] = iVar3;\n      param_1[6] = 0;\n      *(undefined1 *)((int)param_1 + 0x66) = 0;\n    }\n  }\n  else {\n    puVar4 = (undefined1 *)param_1[2];\n    puVar5 = (undefined1 *)param_1[1];\n    iVar7 = 0;\n    if ((0 < param_3) && (puVar4 == puVar5)) {\n      param_3 = param_3 + -1;\n      *param_2 = *puVar4;\n      param_2 = param_2 + 1;\n      puVar4 = (undefined1 *)(param_1[2] + 1);\n      param_1[2] = (int)puVar4;\n      if ((char)param_1[0x1c] == '\0') {\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }\n      puVar5 = (undefined1 *)param_1[1];\n      iVar7 = 1;\n    }\n    *(undefined1 *)(param_1 + 0x1c) = 0;\n    iVar3 = (uint)(puVar5 != puVar4) + param_1[0x1a];\n    param_1[1] = param_1[0x17];\n    param_1[0x1a] = iVar3;\n    uVar6 = param_1[0x10];\n    param_1[2] = iVar3;\n    param_1[3] = param_1[0x1b];\n  }" if (parenthesized_expression "((char)param_1[0x1c] == '\0')" ( (binary_expression "(char)param_1[0x1c] == '\0'" (cast_expression "(char)param_1[0x1c]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[0x1c]" identifier [ number_literal ])) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (*(char *)((int)param_1 + 0x66) == '\0') {\n      uVar6 = param_1[0x10];\n      iVar7 = 0;\n    }\n    else {\n      iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n      if (iVar3 == -1) {\n        return 0;\n      }\n      iVar3 = param_1[0x17];\n      uVar6 = param_1[0x10];\n      param_1[5] = 0;\n      iVar7 = 0;\n      param_1[4] = 0;\n      param_1[1] = iVar3;\n      param_1[2] = iVar3;\n      param_1[3] = iVar3;\n      param_1[6] = 0;\n      *(undefined1 *)((int)param_1 + 0x66) = 0;\n    }\n  }" { (if_statement "if (*(char *)((int)param_1 + 0x66) == '\0') {\n      uVar6 = param_1[0x10];\n      iVar7 = 0;\n    }\n    else {\n      iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n      if (iVar3 == -1) {\n        return 0;\n      }\n      iVar3 = param_1[0x17];\n      uVar6 = param_1[0x10];\n      param_1[5] = 0;\n      iVar7 = 0;\n      param_1[4] = 0;\n      param_1[1] = iVar3;\n      param_1[2] = iVar3;\n      param_1[3] = iVar3;\n      param_1[6] = 0;\n      *(undefined1 *)((int)param_1 + 0x66) = 0;\n    }" if (parenthesized_expression "(*(char *)((int)param_1 + 0x66) == '\0')" ( (binary_expression "*(char *)((int)param_1 + 0x66) == '\0'" (pointer_expression "*(char *)((int)param_1 + 0x66)" * (cast_expression "(char *)((int)param_1 + 0x66)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x66)" ( (binary_expression "(int)param_1 + 0x66" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar6 = param_1[0x10];\n      iVar7 = 0;\n    }" { (expression_statement "uVar6 = param_1[0x10];" (assignment_expression "uVar6 = param_1[0x10]" identifier = (subscript_expression "param_1[0x10]" identifier [ number_literal ])) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n      if (iVar3 == -1) {\n        return 0;\n      }\n      iVar3 = param_1[0x17];\n      uVar6 = param_1[0x10];\n      param_1[5] = 0;\n      iVar7 = 0;\n      param_1[4] = 0;\n      param_1[1] = iVar3;\n      param_1[2] = iVar3;\n      param_1[3] = iVar3;\n      param_1[6] = 0;\n      *(undefined1 *)((int)param_1 + 0x66) = 0;\n    }" else (compound_statement "{\n      iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n      if (iVar3 == -1) {\n        return 0;\n      }\n      iVar3 = param_1[0x17];\n      uVar6 = param_1[0x10];\n      param_1[5] = 0;\n      iVar7 = 0;\n      param_1[4] = 0;\n      param_1[1] = iVar3;\n      param_1[2] = iVar3;\n      param_1[3] = iVar3;\n      param_1[6] = 0;\n      *(undefined1 *)((int)param_1 + 0x66) = 0;\n    }" { (expression_statement "iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);" (assignment_expression "iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff)" identifier = (call_expression "(**(code **)(*param_1 + 0x34))(param_1,0xffffffff)" (parenthesized_expression "(**(code **)(*param_1 + 0x34))" ( (pointer_expression "**(code **)(*param_1 + 0x34)" * (pointer_expression "*(code **)(*param_1 + 0x34)" * (cast_expression "(code **)(*param_1 + 0x34)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x34)" ( (binary_expression "*param_1 + 0x34" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,0xffffffff)" ( identifier , number_literal )))) ;) (if_statement "if (iVar3 == -1) {\n        return 0;\n      }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar3 = param_1[0x17];" (assignment_expression "iVar3 = param_1[0x17]" identifier = (subscript_expression "param_1[0x17]" identifier [ number_literal ])) ;) (expression_statement "uVar6 = param_1[0x10];" (assignment_expression "uVar6 = param_1[0x10]" identifier = (subscript_expression "param_1[0x10]" identifier [ number_literal ])) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = iVar3;" (assignment_expression "param_1[1] = iVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = iVar3;" (assignment_expression "param_1[2] = iVar3" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = iVar3;" (assignment_expression "param_1[3] = iVar3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_1 + 0x66) = 0;" (assignment_expression "*(undefined1 *)((int)param_1 + 0x66) = 0" (pointer_expression "*(undefined1 *)((int)param_1 + 0x66)" * (cast_expression "(undefined1 *)((int)param_1 + 0x66)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x66)" ( (binary_expression "(int)param_1 + 0x66" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) }))) }) (else_clause "else {\n    puVar4 = (undefined1 *)param_1[2];\n    puVar5 = (undefined1 *)param_1[1];\n    iVar7 = 0;\n    if ((0 < param_3) && (puVar4 == puVar5)) {\n      param_3 = param_3 + -1;\n      *param_2 = *puVar4;\n      param_2 = param_2 + 1;\n      puVar4 = (undefined1 *)(param_1[2] + 1);\n      param_1[2] = (int)puVar4;\n      if ((char)param_1[0x1c] == '\0') {\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }\n      puVar5 = (undefined1 *)param_1[1];\n      iVar7 = 1;\n    }\n    *(undefined1 *)(param_1 + 0x1c) = 0;\n    iVar3 = (uint)(puVar5 != puVar4) + param_1[0x1a];\n    param_1[1] = param_1[0x17];\n    param_1[0x1a] = iVar3;\n    uVar6 = param_1[0x10];\n    param_1[2] = iVar3;\n    param_1[3] = param_1[0x1b];\n  }" else (compound_statement "{\n    puVar4 = (undefined1 *)param_1[2];\n    puVar5 = (undefined1 *)param_1[1];\n    iVar7 = 0;\n    if ((0 < param_3) && (puVar4 == puVar5)) {\n      param_3 = param_3 + -1;\n      *param_2 = *puVar4;\n      param_2 = param_2 + 1;\n      puVar4 = (undefined1 *)(param_1[2] + 1);\n      param_1[2] = (int)puVar4;\n      if ((char)param_1[0x1c] == '\0') {\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }\n      puVar5 = (undefined1 *)param_1[1];\n      iVar7 = 1;\n    }\n    *(undefined1 *)(param_1 + 0x1c) = 0;\n    iVar3 = (uint)(puVar5 != puVar4) + param_1[0x1a];\n    param_1[1] = param_1[0x17];\n    param_1[0x1a] = iVar3;\n    uVar6 = param_1[0x10];\n    param_1[2] = iVar3;\n    param_1[3] = param_1[0x1b];\n  }" { (expression_statement "puVar4 = (undefined1 *)param_1[2];" (assignment_expression "puVar4 = (undefined1 *)param_1[2]" identifier = (cast_expression "(undefined1 *)param_1[2]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "puVar5 = (undefined1 *)param_1[1];" (assignment_expression "puVar5 = (undefined1 *)param_1[1]" identifier = (cast_expression "(undefined1 *)param_1[1]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (if_statement "if ((0 < param_3) && (puVar4 == puVar5)) {\n      param_3 = param_3 + -1;\n      *param_2 = *puVar4;\n      param_2 = param_2 + 1;\n      puVar4 = (undefined1 *)(param_1[2] + 1);\n      param_1[2] = (int)puVar4;\n      if ((char)param_1[0x1c] == '\0') {\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }\n      puVar5 = (undefined1 *)param_1[1];\n      iVar7 = 1;\n    }" if (parenthesized_expression "((0 < param_3) && (puVar4 == puVar5))" ( (binary_expression "(0 < param_3) && (puVar4 == puVar5)" (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) )) && (parenthesized_expression "(puVar4 == puVar5)" ( (binary_expression "puVar4 == puVar5" identifier == identifier) ))) )) (compound_statement "{\n      param_3 = param_3 + -1;\n      *param_2 = *puVar4;\n      param_2 = param_2 + 1;\n      puVar4 = (undefined1 *)(param_1[2] + 1);\n      param_1[2] = (int)puVar4;\n      if ((char)param_1[0x1c] == '\0') {\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }\n      puVar5 = (undefined1 *)param_1[1];\n      iVar7 = 1;\n    }" { (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ;) (expression_statement "*param_2 = *puVar4;" (assignment_expression "*param_2 = *puVar4" (pointer_expression "*param_2" * identifier) = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "puVar4 = (undefined1 *)(param_1[2] + 1);" (assignment_expression "puVar4 = (undefined1 *)(param_1[2] + 1)" identifier = (cast_expression "(undefined1 *)(param_1[2] + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + 1)" ( (binary_expression "param_1[2] + 1" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal) )))) ;) (expression_statement "param_1[2] = (int)puVar4;" (assignment_expression "param_1[2] = (int)puVar4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if ((char)param_1[0x1c] == '\0') {\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }" if (parenthesized_expression "((char)param_1[0x1c] == '\0')" ( (binary_expression "(char)param_1[0x1c] == '\0'" (cast_expression "(char)param_1[0x1c]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[0x1c]" identifier [ number_literal ])) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }" { (expression_statement "uVar6 = param_1[0x10];" (assignment_expression "uVar6 = param_1[0x10]" identifier = (subscript_expression "param_1[0x10]" identifier [ number_literal ])) ;) (expression_statement "iVar7 = 1;" (assignment_expression "iVar7 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_003da24c;" goto statement_identifier ;) })) (expression_statement "puVar5 = (undefined1 *)param_1[1];" (assignment_expression "puVar5 = (undefined1 *)param_1[1]" identifier = (cast_expression "(undefined1 *)param_1[1]" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "iVar7 = 1;" (assignment_expression "iVar7 = 1" identifier = number_literal) ;) })) (expression_statement "*(undefined1 *)(param_1 + 0x1c) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x1c) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x1c)" * (cast_expression "(undefined1 *)(param_1 + 0x1c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar3 = (uint)(puVar5 != puVar4) + param_1[0x1a];" (assignment_expression "iVar3 = (uint)(puVar5 != puVar4) + param_1[0x1a]" identifier = (binary_expression "(uint)(puVar5 != puVar4) + param_1[0x1a]" (call_expression "(uint)(puVar5 != puVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar5 != puVar4)" ( (binary_expression "puVar5 != puVar4" identifier != identifier) ))) + (subscript_expression "param_1[0x1a]" identifier [ number_literal ]))) ;) (expression_statement "param_1[1] = param_1[0x17];" (assignment_expression "param_1[1] = param_1[0x17]" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (subscript_expression "param_1[0x17]" identifier [ number_literal ])) ;) (expression_statement "param_1[0x1a] = iVar3;" (assignment_expression "param_1[0x1a] = iVar3" (subscript_expression "param_1[0x1a]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar6 = param_1[0x10];" (assignment_expression "uVar6 = param_1[0x10]" identifier = (subscript_expression "param_1[0x10]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = iVar3;" (assignment_expression "param_1[2] = iVar3" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = param_1[0x1b];" (assignment_expression "param_1[3] = param_1[0x1b]" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (subscript_expression "param_1[0x1b]" identifier [ number_literal ])) ;) }))) (labeled_statement "LAB_003da24c:\n  iVar3 = 2;" statement_identifier : (expression_statement "iVar3 = 2;" (assignment_expression "iVar3 = 2" identifier = number_literal) ;)) (if_statement "if (1 < (uint)param_1[0x18]) {\n    iVar3 = param_1[0x18];\n  }" if (parenthesized_expression "(1 < (uint)param_1[0x18])" ( (binary_expression "1 < (uint)param_1[0x18]" number_literal < (cast_expression "(uint)param_1[0x18]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[0x18]" identifier [ number_literal ]))) )) (compound_statement "{\n    iVar3 = param_1[0x18];\n  }" { (expression_statement "iVar3 = param_1[0x18];" (assignment_expression "iVar3 = param_1[0x18]" identifier = (subscript_expression "param_1[0x18]" identifier [ number_literal ])) ;) })) (if_statement "if (iVar3 + -1 < param_3) {\n    piVar1 = (int *)param_1[0x1d];\n    if (piVar1 == (int *)0x0) {\n                    \n      FUN_003f3900();\n    }\n    cVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (((uVar6 & 8) != 0) && (cVar2 != '\0')) {\n      __n = param_1[3] - param_1[2];\n      if (__n != 0) {\n        memcpy(param_2,(void *)param_1[2],__n);\n        param_2 = param_2 + __n;\n        param_1[2] = param_1[2] + __n;\n        iVar7 = iVar7 + __n;\n        param_3 = param_3 - __n;\n      }\n      while( true ) {\n        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);\n        if (iVar3 == -1) {\n                    \n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }\n        if (iVar3 == 0) break;\n        iVar7 = iVar7 + iVar3;\n        param_3 = param_3 - iVar3;\n        if (param_3 == 0) goto LAB_003da39a;\n        param_2 = param_2 + iVar3;\n      }\n      if (param_3 != 0) {\n        iVar3 = param_1[0x17];\n        param_1[5] = 0;\n        param_1[4] = 0;\n        param_1[1] = iVar3;\n        param_1[2] = iVar3;\n        param_1[3] = iVar3;\n        param_1[6] = 0;\n        *(undefined1 *)((int)param_1 + 0x65) = 0;\n        return iVar7;\n      }\nLAB_003da39a:\n      *(undefined1 *)((int)param_1 + 0x65) = 1;\n      return iVar7;\n    }\n  }" if (parenthesized_expression "(iVar3 + -1 < param_3)" ( (binary_expression "iVar3 + -1 < param_3" (binary_expression "iVar3 + -1" identifier + number_literal) < identifier) )) (compound_statement "{\n    piVar1 = (int *)param_1[0x1d];\n    if (piVar1 == (int *)0x0) {\n                    \n      FUN_003f3900();\n    }\n    cVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (((uVar6 & 8) != 0) && (cVar2 != '\0')) {\n      __n = param_1[3] - param_1[2];\n      if (__n != 0) {\n        memcpy(param_2,(void *)param_1[2],__n);\n        param_2 = param_2 + __n;\n        param_1[2] = param_1[2] + __n;\n        iVar7 = iVar7 + __n;\n        param_3 = param_3 - __n;\n      }\n      while( true ) {\n        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);\n        if (iVar3 == -1) {\n                    \n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }\n        if (iVar3 == 0) break;\n        iVar7 = iVar7 + iVar3;\n        param_3 = param_3 - iVar3;\n        if (param_3 == 0) goto LAB_003da39a;\n        param_2 = param_2 + iVar3;\n      }\n      if (param_3 != 0) {\n        iVar3 = param_1[0x17];\n        param_1[5] = 0;\n        param_1[4] = 0;\n        param_1[1] = iVar3;\n        param_1[2] = iVar3;\n        param_1[3] = iVar3;\n        param_1[6] = 0;\n        *(undefined1 *)((int)param_1 + 0x65) = 0;\n        return iVar7;\n      }\nLAB_003da39a:\n      *(undefined1 *)((int)param_1 + 0x65) = 1;\n      return iVar7;\n    }\n  }" { (expression_statement "piVar1 = (int *)param_1[0x1d];" (assignment_expression "piVar1 = (int *)param_1[0x1d]" identifier = (cast_expression "(int *)param_1[0x1d]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x1d]" identifier [ number_literal ]))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n                    \n      FUN_003f3900();\n    }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n      FUN_003f3900();\n    }" { (expression_statement "FUN_003f3900();" (call_expression "FUN_003f3900()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "cVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);" (assignment_expression "cVar2 = (**(code **)(*piVar1 + 0x18))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x18))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x18))" ( (pointer_expression "**(code **)(*piVar1 + 0x18)" * (pointer_expression "*(code **)(*piVar1 + 0x18)" * (cast_expression "(code **)(*piVar1 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x18)" ( (binary_expression "*piVar1 + 0x18" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if (((uVar6 & 8) != 0) && (cVar2 != '\0')) {\n      __n = param_1[3] - param_1[2];\n      if (__n != 0) {\n        memcpy(param_2,(void *)param_1[2],__n);\n        param_2 = param_2 + __n;\n        param_1[2] = param_1[2] + __n;\n        iVar7 = iVar7 + __n;\n        param_3 = param_3 - __n;\n      }\n      while( true ) {\n        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);\n        if (iVar3 == -1) {\n                    \n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }\n        if (iVar3 == 0) break;\n        iVar7 = iVar7 + iVar3;\n        param_3 = param_3 - iVar3;\n        if (param_3 == 0) goto LAB_003da39a;\n        param_2 = param_2 + iVar3;\n      }\n      if (param_3 != 0) {\n        iVar3 = param_1[0x17];\n        param_1[5] = 0;\n        param_1[4] = 0;\n        param_1[1] = iVar3;\n        param_1[2] = iVar3;\n        param_1[3] = iVar3;\n        param_1[6] = 0;\n        *(undefined1 *)((int)param_1 + 0x65) = 0;\n        return iVar7;\n      }\nLAB_003da39a:\n      *(undefined1 *)((int)param_1 + 0x65) = 1;\n      return iVar7;\n    }" if (parenthesized_expression "(((uVar6 & 8) != 0) && (cVar2 != '\0'))" ( (binary_expression "((uVar6 & 8) != 0) && (cVar2 != '\0')" (parenthesized_expression "((uVar6 & 8) != 0)" ( (binary_expression "(uVar6 & 8) != 0" (parenthesized_expression "(uVar6 & 8)" ( (binary_expression "uVar6 & 8" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n      __n = param_1[3] - param_1[2];\n      if (__n != 0) {\n        memcpy(param_2,(void *)param_1[2],__n);\n        param_2 = param_2 + __n;\n        param_1[2] = param_1[2] + __n;\n        iVar7 = iVar7 + __n;\n        param_3 = param_3 - __n;\n      }\n      while( true ) {\n        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);\n        if (iVar3 == -1) {\n                    \n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }\n        if (iVar3 == 0) break;\n        iVar7 = iVar7 + iVar3;\n        param_3 = param_3 - iVar3;\n        if (param_3 == 0) goto LAB_003da39a;\n        param_2 = param_2 + iVar3;\n      }\n      if (param_3 != 0) {\n        iVar3 = param_1[0x17];\n        param_1[5] = 0;\n        param_1[4] = 0;\n        param_1[1] = iVar3;\n        param_1[2] = iVar3;\n        param_1[3] = iVar3;\n        param_1[6] = 0;\n        *(undefined1 *)((int)param_1 + 0x65) = 0;\n        return iVar7;\n      }\nLAB_003da39a:\n      *(undefined1 *)((int)param_1 + 0x65) = 1;\n      return iVar7;\n    }" { (expression_statement "__n = param_1[3] - param_1[2];" (assignment_expression "__n = param_1[3] - param_1[2]" identifier = (binary_expression "param_1[3] - param_1[2]" (subscript_expression "param_1[3]" identifier [ number_literal ]) - (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (if_statement "if (__n != 0) {\n        memcpy(param_2,(void *)param_1[2],__n);\n        param_2 = param_2 + __n;\n        param_1[2] = param_1[2] + __n;\n        iVar7 = iVar7 + __n;\n        param_3 = param_3 - __n;\n      }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n        memcpy(param_2,(void *)param_1[2],__n);\n        param_2 = param_2 + __n;\n        param_1[2] = param_1[2] + __n;\n        iVar7 = iVar7 + __n;\n        param_3 = param_3 - __n;\n      }" { (expression_statement "memcpy(param_2,(void *)param_1[2],__n);" (call_expression "memcpy(param_2,(void *)param_1[2],__n)" identifier (argument_list "(param_2,(void *)param_1[2],__n)" ( identifier , (cast_expression "(void *)param_1[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) , identifier ))) ;) (expression_statement "param_2 = param_2 + __n;" (assignment_expression "param_2 = param_2 + __n" identifier = (binary_expression "param_2 + __n" identifier + identifier)) ;) (expression_statement "param_1[2] = param_1[2] + __n;" (assignment_expression "param_1[2] = param_1[2] + __n" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "param_1[2] + __n" (subscript_expression "param_1[2]" identifier [ number_literal ]) + identifier)) ;) (expression_statement "iVar7 = iVar7 + __n;" (assignment_expression "iVar7 = iVar7 + __n" identifier = (binary_expression "iVar7 + __n" identifier + identifier)) ;) (expression_statement "param_3 = param_3 - __n;" (assignment_expression "param_3 = param_3 - __n" identifier = (binary_expression "param_3 - __n" identifier - identifier)) ;) })) (while_statement "while( true ) {\n        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);\n        if (iVar3 == -1) {\n                    \n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }\n        if (iVar3 == 0) break;\n        iVar7 = iVar7 + iVar3;\n        param_3 = param_3 - iVar3;\n        if (param_3 == 0) goto LAB_003da39a;\n        param_2 = param_2 + iVar3;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);\n        if (iVar3 == -1) {\n                    \n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }\n        if (iVar3 == 0) break;\n        iVar7 = iVar7 + iVar3;\n        param_3 = param_3 - iVar3;\n        if (param_3 == 0) goto LAB_003da39a;\n        param_2 = param_2 + iVar3;\n      }" { (expression_statement "iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);" (assignment_expression "iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3)" identifier = (call_expression "FUN_003ae8e0(param_1 + 0xe,param_2,param_3)" identifier (argument_list "(param_1 + 0xe,param_2,param_3)" ( (binary_expression "param_1 + 0xe" identifier + number_literal) , identifier , identifier )))) ;) (if_statement "if (iVar3 == -1) {\n                    \n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n                    \n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }" { (expression_statement "FUN_003eddc0("basic_filebuf::xsgetn error reading the file");" (call_expression "FUN_003eddc0("basic_filebuf::xsgetn error reading the file")" identifier (argument_list "("basic_filebuf::xsgetn error reading the file")" ( (string_literal ""basic_filebuf::xsgetn error reading the file"" " string_content ") ))) ;) })) (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = iVar7 + iVar3;" (assignment_expression "iVar7 = iVar7 + iVar3" identifier = (binary_expression "iVar7 + iVar3" identifier + identifier)) ;) (expression_statement "param_3 = param_3 - iVar3;" (assignment_expression "param_3 = param_3 - iVar3" identifier = (binary_expression "param_3 - iVar3" identifier - identifier)) ;) (if_statement "if (param_3 == 0) goto LAB_003da39a;" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_003da39a;" goto statement_identifier ;)) (expression_statement "param_2 = param_2 + iVar3;" (assignment_expression "param_2 = param_2 + iVar3" identifier = (binary_expression "param_2 + iVar3" identifier + identifier)) ;) })) (if_statement "if (param_3 != 0) {\n        iVar3 = param_1[0x17];\n        param_1[5] = 0;\n        param_1[4] = 0;\n        param_1[1] = iVar3;\n        param_1[2] = iVar3;\n        param_1[3] = iVar3;\n        param_1[6] = 0;\n        *(undefined1 *)((int)param_1 + 0x65) = 0;\n        return iVar7;\n      }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar3 = param_1[0x17];\n        param_1[5] = 0;\n        param_1[4] = 0;\n        param_1[1] = iVar3;\n        param_1[2] = iVar3;\n        param_1[3] = iVar3;\n        param_1[6] = 0;\n        *(undefined1 *)((int)param_1 + 0x65) = 0;\n        return iVar7;\n      }" { (expression_statement "iVar3 = param_1[0x17];" (assignment_expression "iVar3 = param_1[0x17]" identifier = (subscript_expression "param_1[0x17]" identifier [ number_literal ])) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = iVar3;" (assignment_expression "param_1[1] = iVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = iVar3;" (assignment_expression "param_1[2] = iVar3" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = iVar3;" (assignment_expression "param_1[3] = iVar3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_1 + 0x65) = 0;" (assignment_expression "*(undefined1 *)((int)param_1 + 0x65) = 0" (pointer_expression "*(undefined1 *)((int)param_1 + 0x65)" * (cast_expression "(undefined1 *)((int)param_1 + 0x65)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x65)" ( (binary_expression "(int)param_1 + 0x65" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (return_statement "return iVar7;" return identifier ;) })) (labeled_statement "LAB_003da39a:\n      *(undefined1 *)((int)param_1 + 0x65) = 1;" statement_identifier : (expression_statement "*(undefined1 *)((int)param_1 + 0x65) = 1;" (assignment_expression "*(undefined1 *)((int)param_1 + 0x65) = 1" (pointer_expression "*(undefined1 *)((int)param_1 + 0x65)" * (cast_expression "(undefined1 *)((int)param_1 + 0x65)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x65)" ( (binary_expression "(int)param_1 + 0x65" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;)) (return_statement "return iVar7;" return identifier ;) })) })) (expression_statement "iVar3 = FUN_003b9290(param_1,param_2,param_3);" (assignment_expression "iVar3 = FUN_003b9290(param_1,param_2,param_3)" identifier = (call_expression "FUN_003b9290(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (return_statement "return iVar7 + iVar3;" return (binary_expression "iVar7 + iVar3" identifier + identifier) ;) })))
(translation_unit (function_definition TYPE (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 IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_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 , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) }))) }) (else_clause else (compound_statement { (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 IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (binary_expression IDENT == IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_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 = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != IDENT) ))) + (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (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 (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) })) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (return_statement return IDENT ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;)) (return_statement return IDENT ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (return_statement return (binary_expression IDENT + IDENT) ;) })))
(function_definition "int FUN_003da1f0(int *param_1,undefined1 *param_2,int param_3)\n\n{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  uint uVar6;\n  size_t __n;\n  int iVar7;\n  \n  if ((char)param_1[0x1c] == '\0') {\n    if (*(char *)((int)param_1 + 0x66) == '\0') {\n      uVar6 = param_1[0x10];\n      iVar7 = 0;\n    }\n    else {\n      iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n      if (iVar3 == -1) {\n        return 0;\n      }\n      iVar3 = param_1[0x17];\n      uVar6 = param_1[0x10];\n      param_1[5] = 0;\n      iVar7 = 0;\n      param_1[4] = 0;\n      param_1[1] = iVar3;\n      param_1[2] = iVar3;\n      param_1[3] = iVar3;\n      param_1[6] = 0;\n      *(undefined1 *)((int)param_1 + 0x66) = 0;\n    }\n  }\n  else {\n    puVar4 = (undefined1 *)param_1[2];\n    puVar5 = (undefined1 *)param_1[1];\n    iVar7 = 0;\n    if ((0 < param_3) && (puVar4 == puVar5)) {\n      param_3 = param_3 + -1;\n      *param_2 = *puVar4;\n      param_2 = param_2 + 1;\n      puVar4 = (undefined1 *)(param_1[2] + 1);\n      param_1[2] = (int)puVar4;\n      if ((char)param_1[0x1c] == '\0') {\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }\n      puVar5 = (undefined1 *)param_1[1];\n      iVar7 = 1;\n    }\n    *(undefined1 *)(param_1 + 0x1c) = 0;\n    iVar3 = (uint)(puVar5 != puVar4) + param_1[0x1a];\n    param_1[1] = param_1[0x17];\n    param_1[0x1a] = iVar3;\n    uVar6 = param_1[0x10];\n    param_1[2] = iVar3;\n    param_1[3] = param_1[0x1b];\n  }\nLAB_003da24c:\n  iVar3 = 2;\n  if (1 < (uint)param_1[0x18]) {\n    iVar3 = param_1[0x18];\n  }\n  if (iVar3 + -1 < param_3) {\n    piVar1 = (int *)param_1[0x1d];\n    if (piVar1 == (int *)0x0) {\n                    \n      FUN_003f3900();\n    }\n    cVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (((uVar6 & 8) != 0) && (cVar2 != '\0')) {\n      __n = param_1[3] - param_1[2];\n      if (__n != 0) {\n        memcpy(param_2,(void *)param_1[2],__n);\n        param_2 = param_2 + __n;\n        param_1[2] = param_1[2] + __n;\n        iVar7 = iVar7 + __n;\n        param_3 = param_3 - __n;\n      }\n      while( true ) {\n        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);\n        if (iVar3 == -1) {\n                    \n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }\n        if (iVar3 == 0) break;\n        iVar7 = iVar7 + iVar3;\n        param_3 = param_3 - iVar3;\n        if (param_3 == 0) goto LAB_003da39a;\n        param_2 = param_2 + iVar3;\n      }\n      if (param_3 != 0) {\n        iVar3 = param_1[0x17];\n        param_1[5] = 0;\n        param_1[4] = 0;\n        param_1[1] = iVar3;\n        param_1[2] = iVar3;\n        param_1[3] = iVar3;\n        param_1[6] = 0;\n        *(undefined1 *)((int)param_1 + 0x65) = 0;\n        return iVar7;\n      }\nLAB_003da39a:\n      *(undefined1 *)((int)param_1 + 0x65) = 1;\n      return iVar7;\n    }\n  }\n  iVar3 = FUN_003b9290(param_1,param_2,param_3);\n  return iVar7 + iVar3;\n}" (primitive_type "int") (function_declarator "FUN_003da1f0(int *param_1,undefined1 *param_2,int param_3)" (identifier "FUN_003da1f0") (parameter_list "(int *param_1,undefined1 *param_2,int param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined1 *param_2" (type_identifier "undefined1") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  uint uVar6;\n  size_t __n;\n  int iVar7;\n  \n  if ((char)param_1[0x1c] == '\0') {\n    if (*(char *)((int)param_1 + 0x66) == '\0') {\n      uVar6 = param_1[0x10];\n      iVar7 = 0;\n    }\n    else {\n      iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n      if (iVar3 == -1) {\n        return 0;\n      }\n      iVar3 = param_1[0x17];\n      uVar6 = param_1[0x10];\n      param_1[5] = 0;\n      iVar7 = 0;\n      param_1[4] = 0;\n      param_1[1] = iVar3;\n      param_1[2] = iVar3;\n      param_1[3] = iVar3;\n      param_1[6] = 0;\n      *(undefined1 *)((int)param_1 + 0x66) = 0;\n    }\n  }\n  else {\n    puVar4 = (undefined1 *)param_1[2];\n    puVar5 = (undefined1 *)param_1[1];\n    iVar7 = 0;\n    if ((0 < param_3) && (puVar4 == puVar5)) {\n      param_3 = param_3 + -1;\n      *param_2 = *puVar4;\n      param_2 = param_2 + 1;\n      puVar4 = (undefined1 *)(param_1[2] + 1);\n      param_1[2] = (int)puVar4;\n      if ((char)param_1[0x1c] == '\0') {\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }\n      puVar5 = (undefined1 *)param_1[1];\n      iVar7 = 1;\n    }\n    *(undefined1 *)(param_1 + 0x1c) = 0;\n    iVar3 = (uint)(puVar5 != puVar4) + param_1[0x1a];\n    param_1[1] = param_1[0x17];\n    param_1[0x1a] = iVar3;\n    uVar6 = param_1[0x10];\n    param_1[2] = iVar3;\n    param_1[3] = param_1[0x1b];\n  }\nLAB_003da24c:\n  iVar3 = 2;\n  if (1 < (uint)param_1[0x18]) {\n    iVar3 = param_1[0x18];\n  }\n  if (iVar3 + -1 < param_3) {\n    piVar1 = (int *)param_1[0x1d];\n    if (piVar1 == (int *)0x0) {\n                    \n      FUN_003f3900();\n    }\n    cVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (((uVar6 & 8) != 0) && (cVar2 != '\0')) {\n      __n = param_1[3] - param_1[2];\n      if (__n != 0) {\n        memcpy(param_2,(void *)param_1[2],__n);\n        param_2 = param_2 + __n;\n        param_1[2] = param_1[2] + __n;\n        iVar7 = iVar7 + __n;\n        param_3 = param_3 - __n;\n      }\n      while( true ) {\n        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);\n        if (iVar3 == -1) {\n                    \n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }\n        if (iVar3 == 0) break;\n        iVar7 = iVar7 + iVar3;\n        param_3 = param_3 - iVar3;\n        if (param_3 == 0) goto LAB_003da39a;\n        param_2 = param_2 + iVar3;\n      }\n      if (param_3 != 0) {\n        iVar3 = param_1[0x17];\n        param_1[5] = 0;\n        param_1[4] = 0;\n        param_1[1] = iVar3;\n        param_1[2] = iVar3;\n        param_1[3] = iVar3;\n        param_1[6] = 0;\n        *(undefined1 *)((int)param_1 + 0x65) = 0;\n        return iVar7;\n      }\nLAB_003da39a:\n      *(undefined1 *)((int)param_1 + 0x65) = 1;\n      return iVar7;\n    }\n  }\n  iVar3 = FUN_003b9290(param_1,param_2,param_3);\n  return iVar7 + iVar3;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined1 *puVar4;" (type_identifier "undefined1") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined1 *puVar5;" (type_identifier "undefined1") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (if_statement "if ((char)param_1[0x1c] == '\0') {\n    if (*(char *)((int)param_1 + 0x66) == '\0') {\n      uVar6 = param_1[0x10];\n      iVar7 = 0;\n    }\n    else {\n      iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n      if (iVar3 == -1) {\n        return 0;\n      }\n      iVar3 = param_1[0x17];\n      uVar6 = param_1[0x10];\n      param_1[5] = 0;\n      iVar7 = 0;\n      param_1[4] = 0;\n      param_1[1] = iVar3;\n      param_1[2] = iVar3;\n      param_1[3] = iVar3;\n      param_1[6] = 0;\n      *(undefined1 *)((int)param_1 + 0x66) = 0;\n    }\n  }\n  else {\n    puVar4 = (undefined1 *)param_1[2];\n    puVar5 = (undefined1 *)param_1[1];\n    iVar7 = 0;\n    if ((0 < param_3) && (puVar4 == puVar5)) {\n      param_3 = param_3 + -1;\n      *param_2 = *puVar4;\n      param_2 = param_2 + 1;\n      puVar4 = (undefined1 *)(param_1[2] + 1);\n      param_1[2] = (int)puVar4;\n      if ((char)param_1[0x1c] == '\0') {\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }\n      puVar5 = (undefined1 *)param_1[1];\n      iVar7 = 1;\n    }\n    *(undefined1 *)(param_1 + 0x1c) = 0;\n    iVar3 = (uint)(puVar5 != puVar4) + param_1[0x1a];\n    param_1[1] = param_1[0x17];\n    param_1[0x1a] = iVar3;\n    uVar6 = param_1[0x10];\n    param_1[2] = iVar3;\n    param_1[3] = param_1[0x1b];\n  }" (if "if") (parenthesized_expression "((char)param_1[0x1c] == '\0')" (( "(") (binary_expression "(char)param_1[0x1c] == '\0'" (cast_expression "(char)param_1[0x1c]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "param_1[0x1c]" (identifier "param_1") ([ "[") (number_literal "0x1c") (] "]"))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if (*(char *)((int)param_1 + 0x66) == '\0') {\n      uVar6 = param_1[0x10];\n      iVar7 = 0;\n    }\n    else {\n      iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n      if (iVar3 == -1) {\n        return 0;\n      }\n      iVar3 = param_1[0x17];\n      uVar6 = param_1[0x10];\n      param_1[5] = 0;\n      iVar7 = 0;\n      param_1[4] = 0;\n      param_1[1] = iVar3;\n      param_1[2] = iVar3;\n      param_1[3] = iVar3;\n      param_1[6] = 0;\n      *(undefined1 *)((int)param_1 + 0x66) = 0;\n    }\n  }" ({ "{") (if_statement "if (*(char *)((int)param_1 + 0x66) == '\0') {\n      uVar6 = param_1[0x10];\n      iVar7 = 0;\n    }\n    else {\n      iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n      if (iVar3 == -1) {\n        return 0;\n      }\n      iVar3 = param_1[0x17];\n      uVar6 = param_1[0x10];\n      param_1[5] = 0;\n      iVar7 = 0;\n      param_1[4] = 0;\n      param_1[1] = iVar3;\n      param_1[2] = iVar3;\n      param_1[3] = iVar3;\n      param_1[6] = 0;\n      *(undefined1 *)((int)param_1 + 0x66) = 0;\n    }" (if "if") (parenthesized_expression "(*(char *)((int)param_1 + 0x66) == '\0')" (( "(") (binary_expression "*(char *)((int)param_1 + 0x66) == '\0'" (pointer_expression "*(char *)((int)param_1 + 0x66)" (* "*") (cast_expression "(char *)((int)param_1 + 0x66)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x66)" (( "(") (binary_expression "(int)param_1 + 0x66" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x66")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      uVar6 = param_1[0x10];\n      iVar7 = 0;\n    }" ({ "{") (expression_statement "uVar6 = param_1[0x10];" (assignment_expression "uVar6 = param_1[0x10]" (identifier "uVar6") (= "=") (subscript_expression "param_1[0x10]" (identifier "param_1") ([ "[") (number_literal "0x10") (] "]"))) (; ";")) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n      if (iVar3 == -1) {\n        return 0;\n      }\n      iVar3 = param_1[0x17];\n      uVar6 = param_1[0x10];\n      param_1[5] = 0;\n      iVar7 = 0;\n      param_1[4] = 0;\n      param_1[1] = iVar3;\n      param_1[2] = iVar3;\n      param_1[3] = iVar3;\n      param_1[6] = 0;\n      *(undefined1 *)((int)param_1 + 0x66) = 0;\n    }" (else "else") (compound_statement "{\n      iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);\n      if (iVar3 == -1) {\n        return 0;\n      }\n      iVar3 = param_1[0x17];\n      uVar6 = param_1[0x10];\n      param_1[5] = 0;\n      iVar7 = 0;\n      param_1[4] = 0;\n      param_1[1] = iVar3;\n      param_1[2] = iVar3;\n      param_1[3] = iVar3;\n      param_1[6] = 0;\n      *(undefined1 *)((int)param_1 + 0x66) = 0;\n    }" ({ "{") (expression_statement "iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);" (assignment_expression "iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff)" (identifier "iVar3") (= "=") (call_expression "(**(code **)(*param_1 + 0x34))(param_1,0xffffffff)" (parenthesized_expression "(**(code **)(*param_1 + 0x34))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x34)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x34)" (* "*") (cast_expression "(code **)(*param_1 + 0x34)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x34)" (( "(") (binary_expression "*param_1 + 0x34" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x34")) () ")"))))) () ")")) (argument_list "(param_1,0xffffffff)" (( "(") (identifier "param_1") (, ",") (number_literal "0xffffffff") () ")")))) (; ";")) (if_statement "if (iVar3 == -1) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(iVar3 == -1)" (( "(") (binary_expression "iVar3 == -1" (identifier "iVar3") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar3 = param_1[0x17];" (assignment_expression "iVar3 = param_1[0x17]" (identifier "iVar3") (= "=") (subscript_expression "param_1[0x17]" (identifier "param_1") ([ "[") (number_literal "0x17") (] "]"))) (; ";")) (expression_statement "uVar6 = param_1[0x10];" (assignment_expression "uVar6 = param_1[0x10]" (identifier "uVar6") (= "=") (subscript_expression "param_1[0x10]" (identifier "param_1") ([ "[") (number_literal "0x10") (] "]"))) (; ";")) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[1] = iVar3;" (assignment_expression "param_1[1] = iVar3" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "param_1[2] = iVar3;" (assignment_expression "param_1[2] = iVar3" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "param_1[3] = iVar3;" (assignment_expression "param_1[3] = iVar3" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)((int)param_1 + 0x66) = 0;" (assignment_expression "*(undefined1 *)((int)param_1 + 0x66) = 0" (pointer_expression "*(undefined1 *)((int)param_1 + 0x66)" (* "*") (cast_expression "(undefined1 *)((int)param_1 + 0x66)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x66)" (( "(") (binary_expression "(int)param_1 + 0x66" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x66")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    puVar4 = (undefined1 *)param_1[2];\n    puVar5 = (undefined1 *)param_1[1];\n    iVar7 = 0;\n    if ((0 < param_3) && (puVar4 == puVar5)) {\n      param_3 = param_3 + -1;\n      *param_2 = *puVar4;\n      param_2 = param_2 + 1;\n      puVar4 = (undefined1 *)(param_1[2] + 1);\n      param_1[2] = (int)puVar4;\n      if ((char)param_1[0x1c] == '\0') {\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }\n      puVar5 = (undefined1 *)param_1[1];\n      iVar7 = 1;\n    }\n    *(undefined1 *)(param_1 + 0x1c) = 0;\n    iVar3 = (uint)(puVar5 != puVar4) + param_1[0x1a];\n    param_1[1] = param_1[0x17];\n    param_1[0x1a] = iVar3;\n    uVar6 = param_1[0x10];\n    param_1[2] = iVar3;\n    param_1[3] = param_1[0x1b];\n  }" (else "else") (compound_statement "{\n    puVar4 = (undefined1 *)param_1[2];\n    puVar5 = (undefined1 *)param_1[1];\n    iVar7 = 0;\n    if ((0 < param_3) && (puVar4 == puVar5)) {\n      param_3 = param_3 + -1;\n      *param_2 = *puVar4;\n      param_2 = param_2 + 1;\n      puVar4 = (undefined1 *)(param_1[2] + 1);\n      param_1[2] = (int)puVar4;\n      if ((char)param_1[0x1c] == '\0') {\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }\n      puVar5 = (undefined1 *)param_1[1];\n      iVar7 = 1;\n    }\n    *(undefined1 *)(param_1 + 0x1c) = 0;\n    iVar3 = (uint)(puVar5 != puVar4) + param_1[0x1a];\n    param_1[1] = param_1[0x17];\n    param_1[0x1a] = iVar3;\n    uVar6 = param_1[0x10];\n    param_1[2] = iVar3;\n    param_1[3] = param_1[0x1b];\n  }" ({ "{") (expression_statement "puVar4 = (undefined1 *)param_1[2];" (assignment_expression "puVar4 = (undefined1 *)param_1[2]" (identifier "puVar4") (= "=") (cast_expression "(undefined1 *)param_1[2]" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "puVar5 = (undefined1 *)param_1[1];" (assignment_expression "puVar5 = (undefined1 *)param_1[1]" (identifier "puVar5") (= "=") (cast_expression "(undefined1 *)param_1[1]" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((0 < param_3) && (puVar4 == puVar5)) {\n      param_3 = param_3 + -1;\n      *param_2 = *puVar4;\n      param_2 = param_2 + 1;\n      puVar4 = (undefined1 *)(param_1[2] + 1);\n      param_1[2] = (int)puVar4;\n      if ((char)param_1[0x1c] == '\0') {\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }\n      puVar5 = (undefined1 *)param_1[1];\n      iVar7 = 1;\n    }" (if "if") (parenthesized_expression "((0 < param_3) && (puVar4 == puVar5))" (( "(") (binary_expression "(0 < param_3) && (puVar4 == puVar5)" (parenthesized_expression "(0 < param_3)" (( "(") (binary_expression "0 < param_3" (number_literal "0") (< "<") (identifier "param_3")) () ")")) (&& "&&") (parenthesized_expression "(puVar4 == puVar5)" (( "(") (binary_expression "puVar4 == puVar5" (identifier "puVar4") (== "==") (identifier "puVar5")) () ")"))) () ")")) (compound_statement "{\n      param_3 = param_3 + -1;\n      *param_2 = *puVar4;\n      param_2 = param_2 + 1;\n      puVar4 = (undefined1 *)(param_1[2] + 1);\n      param_1[2] = (int)puVar4;\n      if ((char)param_1[0x1c] == '\0') {\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }\n      puVar5 = (undefined1 *)param_1[1];\n      iVar7 = 1;\n    }" ({ "{") (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" (identifier "param_3") (= "=") (binary_expression "param_3 + -1" (identifier "param_3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*param_2 = *puVar4;" (assignment_expression "*param_2 = *puVar4" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (pointer_expression "*puVar4" (* "*") (identifier "puVar4"))) (; ";")) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar4 = (undefined1 *)(param_1[2] + 1);" (assignment_expression "puVar4 = (undefined1 *)(param_1[2] + 1)" (identifier "puVar4") (= "=") (cast_expression "(undefined1 *)(param_1[2] + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[2] + 1)" (( "(") (binary_expression "param_1[2] + 1" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "param_1[2] = (int)puVar4;" (assignment_expression "param_1[2] = (int)puVar4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4"))) (; ";")) (if_statement "if ((char)param_1[0x1c] == '\0') {\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }" (if "if") (parenthesized_expression "((char)param_1[0x1c] == '\0')" (( "(") (binary_expression "(char)param_1[0x1c] == '\0'" (cast_expression "(char)param_1[0x1c]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "param_1[0x1c]" (identifier "param_1") ([ "[") (number_literal "0x1c") (] "]"))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        uVar6 = param_1[0x10];\n        iVar7 = 1;\n        goto LAB_003da24c;\n      }" ({ "{") (expression_statement "uVar6 = param_1[0x10];" (assignment_expression "uVar6 = param_1[0x10]" (identifier "uVar6") (= "=") (subscript_expression "param_1[0x10]" (identifier "param_1") ([ "[") (number_literal "0x10") (] "]"))) (; ";")) (expression_statement "iVar7 = 1;" (assignment_expression "iVar7 = 1" (identifier "iVar7") (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_003da24c;" (goto "goto") (statement_identifier "LAB_003da24c") (; ";")) (} "}"))) (expression_statement "puVar5 = (undefined1 *)param_1[1];" (assignment_expression "puVar5 = (undefined1 *)param_1[1]" (identifier "puVar5") (= "=") (cast_expression "(undefined1 *)param_1[1]" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "iVar7 = 1;" (assignment_expression "iVar7 = 1" (identifier "iVar7") (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "*(undefined1 *)(param_1 + 0x1c) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x1c) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar3 = (uint)(puVar5 != puVar4) + param_1[0x1a];" (assignment_expression "iVar3 = (uint)(puVar5 != puVar4) + param_1[0x1a]" (identifier "iVar3") (= "=") (binary_expression "(uint)(puVar5 != puVar4) + param_1[0x1a]" (call_expression "(uint)(puVar5 != puVar4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar5 != puVar4)" (( "(") (binary_expression "puVar5 != puVar4" (identifier "puVar5") (!= "!=") (identifier "puVar4")) () ")"))) (+ "+") (subscript_expression "param_1[0x1a]" (identifier "param_1") ([ "[") (number_literal "0x1a") (] "]")))) (; ";")) (expression_statement "param_1[1] = param_1[0x17];" (assignment_expression "param_1[1] = param_1[0x17]" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "param_1[0x17]" (identifier "param_1") ([ "[") (number_literal "0x17") (] "]"))) (; ";")) (expression_statement "param_1[0x1a] = iVar3;" (assignment_expression "param_1[0x1a] = iVar3" (subscript_expression "param_1[0x1a]" (identifier "param_1") ([ "[") (number_literal "0x1a") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "uVar6 = param_1[0x10];" (assignment_expression "uVar6 = param_1[0x10]" (identifier "uVar6") (= "=") (subscript_expression "param_1[0x10]" (identifier "param_1") ([ "[") (number_literal "0x10") (] "]"))) (; ";")) (expression_statement "param_1[2] = iVar3;" (assignment_expression "param_1[2] = iVar3" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "param_1[3] = param_1[0x1b];" (assignment_expression "param_1[3] = param_1[0x1b]" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (subscript_expression "param_1[0x1b]" (identifier "param_1") ([ "[") (number_literal "0x1b") (] "]"))) (; ";")) (} "}")))) (labeled_statement "LAB_003da24c:\n  iVar3 = 2;" (statement_identifier "LAB_003da24c") (: ":") (expression_statement "iVar3 = 2;" (assignment_expression "iVar3 = 2" (identifier "iVar3") (= "=") (number_literal "2")) (; ";"))) (if_statement "if (1 < (uint)param_1[0x18]) {\n    iVar3 = param_1[0x18];\n  }" (if "if") (parenthesized_expression "(1 < (uint)param_1[0x18])" (( "(") (binary_expression "1 < (uint)param_1[0x18]" (number_literal "1") (< "<") (cast_expression "(uint)param_1[0x18]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[0x18]" (identifier "param_1") ([ "[") (number_literal "0x18") (] "]")))) () ")")) (compound_statement "{\n    iVar3 = param_1[0x18];\n  }" ({ "{") (expression_statement "iVar3 = param_1[0x18];" (assignment_expression "iVar3 = param_1[0x18]" (identifier "iVar3") (= "=") (subscript_expression "param_1[0x18]" (identifier "param_1") ([ "[") (number_literal "0x18") (] "]"))) (; ";")) (} "}"))) (if_statement "if (iVar3 + -1 < param_3) {\n    piVar1 = (int *)param_1[0x1d];\n    if (piVar1 == (int *)0x0) {\n                    \n      FUN_003f3900();\n    }\n    cVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (((uVar6 & 8) != 0) && (cVar2 != '\0')) {\n      __n = param_1[3] - param_1[2];\n      if (__n != 0) {\n        memcpy(param_2,(void *)param_1[2],__n);\n        param_2 = param_2 + __n;\n        param_1[2] = param_1[2] + __n;\n        iVar7 = iVar7 + __n;\n        param_3 = param_3 - __n;\n      }\n      while( true ) {\n        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);\n        if (iVar3 == -1) {\n                    \n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }\n        if (iVar3 == 0) break;\n        iVar7 = iVar7 + iVar3;\n        param_3 = param_3 - iVar3;\n        if (param_3 == 0) goto LAB_003da39a;\n        param_2 = param_2 + iVar3;\n      }\n      if (param_3 != 0) {\n        iVar3 = param_1[0x17];\n        param_1[5] = 0;\n        param_1[4] = 0;\n        param_1[1] = iVar3;\n        param_1[2] = iVar3;\n        param_1[3] = iVar3;\n        param_1[6] = 0;\n        *(undefined1 *)((int)param_1 + 0x65) = 0;\n        return iVar7;\n      }\nLAB_003da39a:\n      *(undefined1 *)((int)param_1 + 0x65) = 1;\n      return iVar7;\n    }\n  }" (if "if") (parenthesized_expression "(iVar3 + -1 < param_3)" (( "(") (binary_expression "iVar3 + -1 < param_3" (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1")) (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n    piVar1 = (int *)param_1[0x1d];\n    if (piVar1 == (int *)0x0) {\n                    \n      FUN_003f3900();\n    }\n    cVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (((uVar6 & 8) != 0) && (cVar2 != '\0')) {\n      __n = param_1[3] - param_1[2];\n      if (__n != 0) {\n        memcpy(param_2,(void *)param_1[2],__n);\n        param_2 = param_2 + __n;\n        param_1[2] = param_1[2] + __n;\n        iVar7 = iVar7 + __n;\n        param_3 = param_3 - __n;\n      }\n      while( true ) {\n        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);\n        if (iVar3 == -1) {\n                    \n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }\n        if (iVar3 == 0) break;\n        iVar7 = iVar7 + iVar3;\n        param_3 = param_3 - iVar3;\n        if (param_3 == 0) goto LAB_003da39a;\n        param_2 = param_2 + iVar3;\n      }\n      if (param_3 != 0) {\n        iVar3 = param_1[0x17];\n        param_1[5] = 0;\n        param_1[4] = 0;\n        param_1[1] = iVar3;\n        param_1[2] = iVar3;\n        param_1[3] = iVar3;\n        param_1[6] = 0;\n        *(undefined1 *)((int)param_1 + 0x65) = 0;\n        return iVar7;\n      }\nLAB_003da39a:\n      *(undefined1 *)((int)param_1 + 0x65) = 1;\n      return iVar7;\n    }\n  }" ({ "{") (expression_statement "piVar1 = (int *)param_1[0x1d];" (assignment_expression "piVar1 = (int *)param_1[0x1d]" (identifier "piVar1") (= "=") (cast_expression "(int *)param_1[0x1d]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0x1d]" (identifier "param_1") ([ "[") (number_literal "0x1d") (] "]")))) (; ";")) (if_statement "if (piVar1 == (int *)0x0) {\n                    \n      FUN_003f3900();\n    }" (if "if") (parenthesized_expression "(piVar1 == (int *)0x0)" (( "(") (binary_expression "piVar1 == (int *)0x0" (identifier "piVar1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n      FUN_003f3900();\n    }" ({ "{") (expression_statement "FUN_003f3900();" (call_expression "FUN_003f3900()" (identifier "FUN_003f3900") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "cVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);" (assignment_expression "cVar2 = (**(code **)(*piVar1 + 0x18))(piVar1)" (identifier "cVar2") (= "=") (call_expression "(**(code **)(*piVar1 + 0x18))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x18))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0x18)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0x18)" (* "*") (cast_expression "(code **)(*piVar1 + 0x18)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x18)" (( "(") (binary_expression "*piVar1 + 0x18" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";")) (if_statement "if (((uVar6 & 8) != 0) && (cVar2 != '\0')) {\n      __n = param_1[3] - param_1[2];\n      if (__n != 0) {\n        memcpy(param_2,(void *)param_1[2],__n);\n        param_2 = param_2 + __n;\n        param_1[2] = param_1[2] + __n;\n        iVar7 = iVar7 + __n;\n        param_3 = param_3 - __n;\n      }\n      while( true ) {\n        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);\n        if (iVar3 == -1) {\n                    \n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }\n        if (iVar3 == 0) break;\n        iVar7 = iVar7 + iVar3;\n        param_3 = param_3 - iVar3;\n        if (param_3 == 0) goto LAB_003da39a;\n        param_2 = param_2 + iVar3;\n      }\n      if (param_3 != 0) {\n        iVar3 = param_1[0x17];\n        param_1[5] = 0;\n        param_1[4] = 0;\n        param_1[1] = iVar3;\n        param_1[2] = iVar3;\n        param_1[3] = iVar3;\n        param_1[6] = 0;\n        *(undefined1 *)((int)param_1 + 0x65) = 0;\n        return iVar7;\n      }\nLAB_003da39a:\n      *(undefined1 *)((int)param_1 + 0x65) = 1;\n      return iVar7;\n    }" (if "if") (parenthesized_expression "(((uVar6 & 8) != 0) && (cVar2 != '\0'))" (( "(") (binary_expression "((uVar6 & 8) != 0) && (cVar2 != '\0')" (parenthesized_expression "((uVar6 & 8) != 0)" (( "(") (binary_expression "(uVar6 & 8) != 0" (parenthesized_expression "(uVar6 & 8)" (( "(") (binary_expression "uVar6 & 8" (identifier "uVar6") (& "&") (number_literal "8")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(cVar2 != '\0')" (( "(") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n      __n = param_1[3] - param_1[2];\n      if (__n != 0) {\n        memcpy(param_2,(void *)param_1[2],__n);\n        param_2 = param_2 + __n;\n        param_1[2] = param_1[2] + __n;\n        iVar7 = iVar7 + __n;\n        param_3 = param_3 - __n;\n      }\n      while( true ) {\n        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);\n        if (iVar3 == -1) {\n                    \n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }\n        if (iVar3 == 0) break;\n        iVar7 = iVar7 + iVar3;\n        param_3 = param_3 - iVar3;\n        if (param_3 == 0) goto LAB_003da39a;\n        param_2 = param_2 + iVar3;\n      }\n      if (param_3 != 0) {\n        iVar3 = param_1[0x17];\n        param_1[5] = 0;\n        param_1[4] = 0;\n        param_1[1] = iVar3;\n        param_1[2] = iVar3;\n        param_1[3] = iVar3;\n        param_1[6] = 0;\n        *(undefined1 *)((int)param_1 + 0x65) = 0;\n        return iVar7;\n      }\nLAB_003da39a:\n      *(undefined1 *)((int)param_1 + 0x65) = 1;\n      return iVar7;\n    }" ({ "{") (expression_statement "__n = param_1[3] - param_1[2];" (assignment_expression "__n = param_1[3] - param_1[2]" (identifier "__n") (= "=") (binary_expression "param_1[3] - param_1[2]" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (- "-") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (__n != 0) {\n        memcpy(param_2,(void *)param_1[2],__n);\n        param_2 = param_2 + __n;\n        param_1[2] = param_1[2] + __n;\n        iVar7 = iVar7 + __n;\n        param_3 = param_3 - __n;\n      }" (if "if") (parenthesized_expression "(__n != 0)" (( "(") (binary_expression "__n != 0" (identifier "__n") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        memcpy(param_2,(void *)param_1[2],__n);\n        param_2 = param_2 + __n;\n        param_1[2] = param_1[2] + __n;\n        iVar7 = iVar7 + __n;\n        param_3 = param_3 - __n;\n      }" ({ "{") (expression_statement "memcpy(param_2,(void *)param_1[2],__n);" (call_expression "memcpy(param_2,(void *)param_1[2],__n)" (identifier "memcpy") (argument_list "(param_2,(void *)param_1[2],__n)" (( "(") (identifier "param_2") (, ",") (cast_expression "(void *)param_1[2]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "param_2 = param_2 + __n;" (assignment_expression "param_2 = param_2 + __n" (identifier "param_2") (= "=") (binary_expression "param_2 + __n" (identifier "param_2") (+ "+") (identifier "__n"))) (; ";")) (expression_statement "param_1[2] = param_1[2] + __n;" (assignment_expression "param_1[2] = param_1[2] + __n" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "param_1[2] + __n" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (identifier "__n"))) (; ";")) (expression_statement "iVar7 = iVar7 + __n;" (assignment_expression "iVar7 = iVar7 + __n" (identifier "iVar7") (= "=") (binary_expression "iVar7 + __n" (identifier "iVar7") (+ "+") (identifier "__n"))) (; ";")) (expression_statement "param_3 = param_3 - __n;" (assignment_expression "param_3 = param_3 - __n" (identifier "param_3") (= "=") (binary_expression "param_3 - __n" (identifier "param_3") (- "-") (identifier "__n"))) (; ";")) (} "}"))) (while_statement "while( true ) {\n        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);\n        if (iVar3 == -1) {\n                    \n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }\n        if (iVar3 == 0) break;\n        iVar7 = iVar7 + iVar3;\n        param_3 = param_3 - iVar3;\n        if (param_3 == 0) goto LAB_003da39a;\n        param_2 = param_2 + iVar3;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);\n        if (iVar3 == -1) {\n                    \n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }\n        if (iVar3 == 0) break;\n        iVar7 = iVar7 + iVar3;\n        param_3 = param_3 - iVar3;\n        if (param_3 == 0) goto LAB_003da39a;\n        param_2 = param_2 + iVar3;\n      }" ({ "{") (expression_statement "iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);" (assignment_expression "iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3)" (identifier "iVar3") (= "=") (call_expression "FUN_003ae8e0(param_1 + 0xe,param_2,param_3)" (identifier "FUN_003ae8e0") (argument_list "(param_1 + 0xe,param_2,param_3)" (( "(") (binary_expression "param_1 + 0xe" (identifier "param_1") (+ "+") (number_literal "0xe")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar3 == -1) {\n                    \n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }" (if "if") (parenthesized_expression "(iVar3 == -1)" (( "(") (binary_expression "iVar3 == -1" (identifier "iVar3") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n                    \n          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");\n        }" ({ "{") (expression_statement "FUN_003eddc0("basic_filebuf::xsgetn error reading the file");" (call_expression "FUN_003eddc0("basic_filebuf::xsgetn error reading the file")" (identifier "FUN_003eddc0") (argument_list "("basic_filebuf::xsgetn error reading the file")" (( "(") (string_literal ""basic_filebuf::xsgetn error reading the file"" (" """) (string_content "basic_filebuf::xsgetn error reading the file") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (iVar3 == 0) break;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar7 = iVar7 + iVar3;" (assignment_expression "iVar7 = iVar7 + iVar3" (identifier "iVar7") (= "=") (binary_expression "iVar7 + iVar3" (identifier "iVar7") (+ "+") (identifier "iVar3"))) (; ";")) (expression_statement "param_3 = param_3 - iVar3;" (assignment_expression "param_3 = param_3 - iVar3" (identifier "param_3") (= "=") (binary_expression "param_3 - iVar3" (identifier "param_3") (- "-") (identifier "iVar3"))) (; ";")) (if_statement "if (param_3 == 0) goto LAB_003da39a;" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_003da39a;" (goto "goto") (statement_identifier "LAB_003da39a") (; ";"))) (expression_statement "param_2 = param_2 + iVar3;" (assignment_expression "param_2 = param_2 + iVar3" (identifier "param_2") (= "=") (binary_expression "param_2 + iVar3" (identifier "param_2") (+ "+") (identifier "iVar3"))) (; ";")) (} "}"))) (if_statement "if (param_3 != 0) {\n        iVar3 = param_1[0x17];\n        param_1[5] = 0;\n        param_1[4] = 0;\n        param_1[1] = iVar3;\n        param_1[2] = iVar3;\n        param_1[3] = iVar3;\n        param_1[6] = 0;\n        *(undefined1 *)((int)param_1 + 0x65) = 0;\n        return iVar7;\n      }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar3 = param_1[0x17];\n        param_1[5] = 0;\n        param_1[4] = 0;\n        param_1[1] = iVar3;\n        param_1[2] = iVar3;\n        param_1[3] = iVar3;\n        param_1[6] = 0;\n        *(undefined1 *)((int)param_1 + 0x65) = 0;\n        return iVar7;\n      }" ({ "{") (expression_statement "iVar3 = param_1[0x17];" (assignment_expression "iVar3 = param_1[0x17]" (identifier "iVar3") (= "=") (subscript_expression "param_1[0x17]" (identifier "param_1") ([ "[") (number_literal "0x17") (] "]"))) (; ";")) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[1] = iVar3;" (assignment_expression "param_1[1] = iVar3" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "param_1[2] = iVar3;" (assignment_expression "param_1[2] = iVar3" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "param_1[3] = iVar3;" (assignment_expression "param_1[3] = iVar3" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)((int)param_1 + 0x65) = 0;" (assignment_expression "*(undefined1 *)((int)param_1 + 0x65) = 0" (pointer_expression "*(undefined1 *)((int)param_1 + 0x65)" (* "*") (cast_expression "(undefined1 *)((int)param_1 + 0x65)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x65)" (( "(") (binary_expression "(int)param_1 + 0x65" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x65")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return iVar7;" (return "return") (identifier "iVar7") (; ";")) (} "}"))) (labeled_statement "LAB_003da39a:\n      *(undefined1 *)((int)param_1 + 0x65) = 1;" (statement_identifier "LAB_003da39a") (: ":") (expression_statement "*(undefined1 *)((int)param_1 + 0x65) = 1;" (assignment_expression "*(undefined1 *)((int)param_1 + 0x65) = 1" (pointer_expression "*(undefined1 *)((int)param_1 + 0x65)" (* "*") (cast_expression "(undefined1 *)((int)param_1 + 0x65)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x65)" (( "(") (binary_expression "(int)param_1 + 0x65" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x65")) () ")")))) (= "=") (number_literal "1")) (; ";"))) (return_statement "return iVar7;" (return "return") (identifier "iVar7") (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar3 = FUN_003b9290(param_1,param_2,param_3);" (assignment_expression "iVar3 = FUN_003b9290(param_1,param_2,param_3)" (identifier "iVar3") (= "=") (call_expression "FUN_003b9290(param_1,param_2,param_3)" (identifier "FUN_003b9290") (argument_list "(param_1,param_2,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (return_statement "return iVar7 + iVar3;" (return "return") (binary_expression "iVar7 + iVar3" (identifier "iVar7") (+ "+") (identifier "iVar3")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::filebuf::xsgetn(char*, int) */

void std::filebuf::function_1(char *param_1,int param_2)

{
}


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

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

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

{
  int *piVar1;
  char cVar2;
  int iVar3;
  undefined1 *puVar4;
  undefined1 *puVar5;
  uint uVar6;
  size_t __n;
  int iVar7;
  
  if ((char)param_1[0x1c] == '\0') {
    if (*(char *)((int)param_1 + 0x66) == '\0') {
      uVar6 = param_1[0x10];
      iVar7 = 0;
    }
    else {
      iVar3 = (**(code **)(*param_1 + 0x34))(param_1,0xffffffff);
      if (iVar3 == -1) {
        return 0;
      }
      iVar3 = param_1[0x17];
      uVar6 = param_1[0x10];
      param_1[5] = 0;
      iVar7 = 0;
      param_1[4] = 0;
      param_1[1] = iVar3;
      param_1[2] = iVar3;
      param_1[3] = iVar3;
      param_1[6] = 0;
      *(undefined1 *)((int)param_1 + 0x66) = 0;
    }
  }
  else {
    puVar4 = (undefined1 *)param_1[2];
    puVar5 = (undefined1 *)param_1[1];
    iVar7 = 0;
    if ((0 < param_3) && (puVar4 == puVar5)) {
      param_3 = param_3 + -1;
      *param_2 = *puVar4;
      param_2 = param_2 + 1;
      puVar4 = (undefined1 *)(param_1[2] + 1);
      param_1[2] = (int)puVar4;
      if ((char)param_1[0x1c] == '\0') {
        uVar6 = param_1[0x10];
        iVar7 = 1;
        goto LAB_003da24c;
      }
      puVar5 = (undefined1 *)param_1[1];
      iVar7 = 1;
    }
    *(undefined1 *)(param_1 + 0x1c) = 0;
    iVar3 = (uint)(puVar5 != puVar4) + param_1[0x1a];
    param_1[1] = param_1[0x17];
    param_1[0x1a] = iVar3;
    uVar6 = param_1[0x10];
    param_1[2] = iVar3;
    param_1[3] = param_1[0x1b];
  }
LAB_003da24c:
  iVar3 = 2;
  if (1 < (uint)param_1[0x18]) {
    iVar3 = param_1[0x18];
  }
  if (iVar3 + -1 < param_3) {
    piVar1 = (int *)param_1[0x1d];
    if (piVar1 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
      FUN_003f3900();
    }
    cVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);
    if (((uVar6 & 8) != 0) && (cVar2 != '\0')) {
      __n = param_1[3] - param_1[2];
      if (__n != 0) {
        memcpy(param_2,(void *)param_1[2],__n);
        param_2 = param_2 + __n;
        param_1[2] = param_1[2] + __n;
        iVar7 = iVar7 + __n;
        param_3 = param_3 - __n;
      }
      while( true ) {
        iVar3 = FUN_003ae8e0(param_1 + 0xe,param_2,param_3);
        if (iVar3 == -1) {
                    /* WARNING: Subroutine does not return */
          FUN_003eddc0("basic_filebuf::xsgetn error reading the file");
        }
        if (iVar3 == 0) break;
        iVar7 = iVar7 + iVar3;
        param_3 = param_3 - iVar3;
        if (param_3 == 0) goto LAB_003da39a;
        param_2 = param_2 + iVar3;
      }
      if (param_3 != 0) {
        iVar3 = param_1[0x17];
        param_1[5] = 0;
        param_1[4] = 0;
        param_1[1] = iVar3;
        param_1[2] = iVar3;
        param_1[3] = iVar3;
        param_1[6] = 0;
        *(undefined1 *)((int)param_1 + 0x65) = 0;
        return iVar7;
      }
LAB_003da39a:
      *(undefined1 *)((int)param_1 + 0x65) = 1;
      return iVar7;
    }
  }
  iVar3 = FUN_003b9290(param_1,param_2,param_3);
  return iVar7 + iVar3;
}

