
/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */

_Bool paste_serial(size_t nfiles,char **fnamptr)

{
  byte bVar1;
  _IO_FILE *p_Var2;
  undefined *puVar3;
  int *piVar4;
  byte *pbVar5;
  char *pcVar6;
  _IO_FILE *__stream;
  int iVar7;
  byte *pbVar8;
  uint uVar9;
  byte *pbVar10;
  uint uVar11;
  undefined1 uVar12;
  undefined1 uVar13;
  byte bVar14;
  byte *local_40;
  int local_30;
  _Bool local_21;
  
  bVar14 = 0;
  uVar12 = 0;
  uVar13 = nfiles == 0;
  if ((bool)uVar13) {
    return true;
  }
  piVar4 = __errno_location();
  puVar3 = PTR_stdout_0001bfd4;
  local_21 = true;
LAB_00011e90:
  iVar7 = 2;
  pbVar10 = (byte *)*fnamptr;
  pbVar8 = &DAT_000180ad;
  do {
    if (iVar7 == 0) break;
    iVar7 = iVar7 + -1;
    uVar12 = *pbVar10 < *pbVar8;
    uVar13 = *pbVar10 == *pbVar8;
    pbVar10 = pbVar10 + (uint)bVar14 * -2 + 1;
    pbVar8 = pbVar8 + (uint)bVar14 * -2 + 1;
  } while ((bool)uVar13);
  if ((!(bool)uVar12 && !(bool)uVar13) == (bool)uVar12) {
    have_read_stdin = true;
    __stream = *(_IO_FILE **)PTR_stdin_0001bfd0;
LAB_00011ec7:
    local_40 = (byte *)delims;
    pbVar10 = (byte *)__stream->_IO_read_ptr;
    pbVar8 = (byte *)__stream->_IO_read_end;
    if (pbVar10 < pbVar8) {
      pbVar5 = pbVar10 + 1;
      __stream->_IO_read_ptr = (char *)pbVar5;
      uVar11 = (uint)*pbVar10;
LAB_00011f24:
      do {
        if (pbVar5 < pbVar8) {
          __stream->_IO_read_ptr = (char *)(pbVar5 + 1);
          uVar9 = (uint)*pbVar5;
        }
        else {
          uVar9 = __uflow(__stream);
          if (uVar9 == 0xffffffff) goto code_r0x00012089;
        }
        if (line_delim == uVar11) {
          bVar1 = *local_40;
          if (bVar1 != 0) {
            p_Var2 = *(_IO_FILE **)puVar3;
            pbVar10 = (byte *)p_Var2->_IO_write_ptr;
            if (pbVar10 < p_Var2->_IO_write_end) {
              p_Var2->_IO_write_ptr = (char *)(pbVar10 + 1);
              *pbVar10 = bVar1;
            }
            else {
              iVar7 = __overflow(p_Var2,(uint)bVar1);
              if (iVar7 < 0) goto LAB_0001215c;
            }
          }
          local_40 = local_40 + 1;
          if ((byte *)delim_end == local_40) {
            local_40 = (byte *)delims;
          }
        }
        else {
          p_Var2 = *(_IO_FILE **)puVar3;
          pcVar6 = p_Var2->_IO_write_ptr;
          if (pcVar6 < p_Var2->_IO_write_end) {
            p_Var2->_IO_write_ptr = pcVar6 + 1;
            *pcVar6 = (char)uVar11;
          }
          else {
            iVar7 = __overflow(p_Var2,uVar11 & 0xff);
            if (iVar7 < 0) goto LAB_0001215c;
          }
        }
        pbVar5 = (byte *)__stream->_IO_read_ptr;
        pbVar8 = (byte *)__stream->_IO_read_end;
        uVar11 = uVar9;
      } while( true );
    }
    uVar11 = __uflow(__stream);
    local_30 = *piVar4;
    if (uVar11 != 0xffffffff) {
      pbVar5 = (byte *)__stream->_IO_read_ptr;
      pbVar8 = (byte *)__stream->_IO_read_end;
      goto LAB_00011f24;
    }
    uVar9 = (uint)line_delim;
    goto LAB_00011f92;
  }
  __stream = fopen64(*fnamptr,"r");
  if (__stream != (FILE *)0x0) {
    fadvise((FILE *)__stream,FADVISE_SEQUENTIAL);
    goto LAB_00011ec7;
  }
  goto LAB_00012033;
code_r0x00012089:
  local_30 = *piVar4;
  p_Var2 = *(_IO_FILE **)puVar3;
  pcVar6 = p_Var2->_IO_write_ptr;
  if (pcVar6 < p_Var2->_IO_write_end) {
    p_Var2->_IO_write_ptr = pcVar6 + 1;
    *pcVar6 = (char)uVar11;
  }
  else {
    iVar7 = __overflow(p_Var2,uVar11 & 0xff);
    if (iVar7 < 0) goto LAB_0001215c;
  }
  uVar9 = (uint)line_delim;
  if (uVar9 == uVar11) {
    bVar1 = (byte)__stream->_flags;
  }
  else {
LAB_00011f92:
    p_Var2 = *(_IO_FILE **)puVar3;
    pcVar6 = p_Var2->_IO_write_ptr;
    if (pcVar6 < p_Var2->_IO_write_end) {
      p_Var2->_IO_write_ptr = pcVar6 + 1;
      *pcVar6 = (char)uVar9;
    }
    else {
      iVar7 = __overflow(p_Var2,uVar9);
      if (iVar7 < 0) {
LAB_0001215c:
                    /* WARNING: Subroutine does not return */
        write_error();
      }
    }
    bVar1 = (byte)__stream->_flags;
  }
  if ((bVar1 & 0x20) != 0) {
    pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,*fnamptr);
    error(0,local_30,"%s",pcVar6);
    local_21 = false;
  }
  if ((!(bool)uVar12 && !(bool)uVar13) == (bool)uVar12) {
    clearerr_unlocked(__stream);
  }
  else {
    iVar7 = rpl_fclose((FILE *)__stream);
    if (iVar7 == -1) {
LAB_00012033:
      pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,*fnamptr);
      error(0,*piVar4,"%s",pcVar6);
      local_21 = false;
    }
  }
  fnamptr = fnamptr + 1;
  uVar12 = nfiles == 0;
  nfiles = nfiles - 1;
  uVar13 = nfiles == 0;
  if ((bool)uVar13) {
    return local_21;
  }
  goto LAB_00011e90;
}



undefined1 FUN_00011e40(int param_1,undefined4 *param_2)

{
  byte bVar1;
  int *piVar2;
  char *pcVar3;
  int *piVar4;
  byte *pbVar5;
  undefined4 uVar6;
  _IO_FILE *__stream;
  int iVar7;
  byte *pbVar8;
  _IO_FILE *extraout_ECX;
  _IO_FILE *p_Var9;
  uint uVar10;
  int unaff_EBP;
  byte *pbVar11;
  uint uVar12;
  undefined1 uVar13;
  undefined1 uVar14;
  byte bVar15;
  undefined8 uVar16;
  byte *local_40;
  int local_30;
  undefined1 local_21;
  
  bVar15 = 0;
  FUN_00012549();
  uVar13 = 0;
  uVar14 = param_1 == 0;
  if ((bool)uVar14) {
    return 1;
  }
  piVar4 = __errno_location();
  local_21 = 1;
  piVar2 = *(int **)(unaff_EBP + 0xa18e);
  do {
    iVar7 = 2;
    pbVar11 = (byte *)*param_2;
    pbVar8 = (byte *)(unaff_EBP + 0x6267);
    do {
      if (iVar7 == 0) break;
      iVar7 = iVar7 + -1;
      uVar13 = *pbVar11 < *pbVar8;
      uVar14 = *pbVar11 == *pbVar8;
      pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1;
      pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1;
    } while ((bool)uVar14);
    if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {
      *(undefined1 *)(unaff_EBP + 0xa32b) = 1;
      __stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a);
LAB_00011ec7:
      local_40 = *(byte **)(unaff_EBP + 0xa326);
      pbVar11 = (byte *)__stream->_IO_read_ptr;
      pbVar8 = (byte *)__stream->_IO_read_end;
      if (pbVar11 < pbVar8) {
        pbVar5 = pbVar11 + 1;
        __stream->_IO_read_ptr = (char *)pbVar5;
        uVar12 = (uint)*pbVar11;
      }
      else {
        uVar12 = __uflow(__stream);
        local_30 = *piVar4;
        if (uVar12 == 0xffffffff) {
          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);
          goto LAB_00011f92;
        }
        pbVar5 = (byte *)__stream->_IO_read_ptr;
        pbVar8 = (byte *)__stream->_IO_read_end;
      }
LAB_00011f24:
      if (pbVar5 < pbVar8) {
        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);
        uVar10 = (uint)*pbVar5;
LAB_00011f35:
        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {
          bVar1 = *local_40;
          uVar16 = CONCAT44(uVar10,(uint)bVar1);
          if (bVar1 != 0) {
            p_Var9 = (_IO_FILE *)*piVar2;
            pbVar11 = (byte *)p_Var9->_IO_write_ptr;
            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;
            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);
            *pbVar11 = bVar1;
          }
          goto LAB_00011f07;
        }
        p_Var9 = (_IO_FILE *)*piVar2;
        pcVar3 = p_Var9->_IO_write_ptr;
        if (pcVar3 < p_Var9->_IO_write_end) {
          p_Var9->_IO_write_ptr = pcVar3 + 1;
          *pcVar3 = (char)uVar12;
        }
        else {
          iVar7 = __overflow(p_Var9,uVar12 & 0xff);
          if (iVar7 < 0) goto LAB_0001215c;
        }
        goto LAB_00011f1c;
      }
      uVar10 = __uflow(__stream);
      if (uVar10 != 0xffffffff) goto LAB_00011f35;
      local_30 = *piVar4;
      p_Var9 = (_IO_FILE *)*piVar2;
      pcVar3 = p_Var9->_IO_write_ptr;
      if (pcVar3 < p_Var9->_IO_write_end) {
        p_Var9->_IO_write_ptr = pcVar3 + 1;
        *pcVar3 = (char)uVar12;
LAB_000120af:
        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);
        if (uVar10 == uVar12) {
          bVar1 = (byte)__stream->_flags;
          goto joined_r0x00011faf;
        }
LAB_00011f92:
        p_Var9 = (_IO_FILE *)*piVar2;
        pcVar3 = p_Var9->_IO_write_ptr;
        if (pcVar3 < p_Var9->_IO_write_end) {
          p_Var9->_IO_write_ptr = pcVar3 + 1;
          *pcVar3 = (char)uVar10;
LAB_00011fac:
          bVar1 = (byte)__stream->_flags;
joined_r0x00011faf:
          if ((bVar1 & 0x20) != 0) {
            uVar6 = FUN_000146e0(0,3,*param_2);
            error(0,local_30,unaff_EBP + 0x5663,uVar6);
            local_21 = 0;
          }
          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {
            clearerr_unlocked(__stream);
          }
          else {
            iVar7 = FUN_00015330(__stream);
            if (iVar7 == -1) goto LAB_00012033;
          }
          goto LAB_00011fcb;
        }
        iVar7 = __overflow(p_Var9,uVar10);
        if (-1 < iVar7) goto LAB_00011fac;
      }
      else {
        iVar7 = __overflow(p_Var9,uVar12 & 0xff);
        if (-1 < iVar7) goto LAB_000120af;
      }
LAB_0001215c:
      do {
        uVar16 = FUN_00011830();
        p_Var9 = extraout_ECX;
LAB_00012168:
        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);
        iVar7 = __overflow(p_Var9,(int)uVar16);
      } while (iVar7 < 0);
LAB_00011f07:
      local_40 = local_40 + 1;
      if (*(byte **)(unaff_EBP + 0xa322) == local_40) {
        local_40 = *(byte **)(unaff_EBP + 0xa326);
      }
LAB_00011f1c:
      pbVar5 = (byte *)__stream->_IO_read_ptr;
      pbVar8 = (byte *)__stream->_IO_read_end;
      uVar12 = uVar10;
      goto LAB_00011f24;
    }
    __stream = fopen64((char *)*param_2,(char *)(unaff_EBP + 0x51cc));
    if (__stream != (FILE *)0x0) {
      FUN_00012690(__stream,2);
      goto LAB_00011ec7;
    }
LAB_00012033:
    uVar6 = FUN_000146e0(0,3,*param_2);
    error(0,*piVar4,unaff_EBP + 0x5663,uVar6);
    local_21 = 0;
LAB_00011fcb:
    param_2 = param_2 + 1;
    uVar13 = param_1 == 0;
    param_1 = param_1 + -1;
    uVar14 = param_1 == 0;
    if ((bool)uVar14) {
      return local_21;
    }
  } while( true );
}


PUSH EBP
CALL 0x00012549
ADD EBP,0xa1ba
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x3c
MOV EDX,dword ptr [ESP + 0x50]
TEST EDX,EDX
JZ 0x000121d0
MOV EBX,EBP
CALL 0x00011220
MOV byte ptr [ESP + 0x2b],0x1
MOV dword ptr [ESP + 0x20],EAX
LEA EAX,[EBP + 0xffffc0ad]
MOV dword ptr [ESP + 0x24],EAX
MOV EAX,dword ptr [EBP + 0xffffffd4]
MOV dword ptr [ESP + 0x10],EAX
MOV dword ptr [ESP + 0x2c],EAX
LEA ESI,[ESI]
LEA ESI,[ESI]
MOV EAX,dword ptr [ESP + 0x54]
MOV EDI,dword ptr [ESP + 0x24]
MOV ECX,0x2
MOV EAX,dword ptr [EAX]
MOV ESI,EAX
CMPSB.REPE ES:EDI,ESI
SETA DL
SBB DL,0x0
MOVSX EBX,DL
MOV dword ptr [ESP + 0x14],EBX
TEST EBX,EBX
JNZ 0x00012100
MOV EAX,dword ptr [EBP + 0xffffffd0]
MOV byte ptr [EBP + 0x171],0x1
MOV ESI,dword ptr [EAX]
MOV EAX,dword ptr [EBP + 0x16c]
MOV EDX,dword ptr [ESI + 0x4]
MOV ECX,dword ptr [ESI + 0x8]
MOV dword ptr [ESP + 0xc],EAX
CMP EDX,ECX
JNC 0x00011f60
LEA EAX,[EDX + 0x1]
MOV dword ptr [ESI + 0x4],EAX
MOVZX EDI,byte ptr [EDX]
MOV EBX,dword ptr [ESP + 0x10]
MOV dword ptr [ESP + 0x18],EBX
JMP 0x00011f24
MOV EAX,dword ptr [ESP + 0xc]
MOVZX EAX,byte ptr [EAX]
TEST AL,AL
JNZ 0x00011ff0
ADD dword ptr [ESP + 0xc],0x1
MOV EAX,dword ptr [ESP + 0xc]
CMP dword ptr [EBP + 0x168],EAX
JZ 0x00012010
MOV EAX,dword ptr [ESI + 0x4]
MOV ECX,dword ptr [ESI + 0x8]
MOV EDI,EDX
CMP ECX,EAX
JBE 0x00012070
LEA EDX,[EAX + 0x1]
MOV dword ptr [ESI + 0x4],EDX
MOVZX EDX,byte ptr [EAX]
MOVZX EAX,byte ptr [EBP + 0xe8]
CMP EAX,EDI
JZ 0x00011ef8
MOV EAX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EAX]
MOV ECX,dword ptr [EAX + 0x14]
CMP ECX,dword ptr [EAX + 0x18]
JNC 0x00012138
LEA EBX,[ECX + 0x1]
MOV dword ptr [EAX + 0x14],EBX
MOV EAX,EDI
MOV byte ptr [ECX],AL
JMP 0x00011f1c
SUB ESP,0xc
MOV EBX,EBP
PUSH ESI
CALL 0x00011260
MOV EDI,EAX
MOV EAX,dword ptr [ESP + 0x30]
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0x2c],EAX
ADD ESP,0x10
CMP EDI,-0x1
JNZ 0x000121e2
MOV EBX,dword ptr [ESP + 0x2c]
MOVZX EAX,byte ptr [EBP + 0xe8]
MOV dword ptr [ESP + 0x18],EBX
MOV EDI,dword ptr [ESP + 0x18]
MOV EDX,dword ptr [EDI]
MOV ECX,dword ptr [EDX + 0x14]
CMP ECX,dword ptr [EDX + 0x18]
JNC 0x00012190
LEA EBX,[ECX + 0x1]
MOV dword ptr [EDX + 0x14],EBX
MOV byte ptr [ECX],AL
TEST byte ptr [ESI],0x20
JNZ 0x000120c9
MOV EAX,dword ptr [ESP + 0x14]
TEST EAX,EAX
JNZ 0x00012020
SUB ESP,0xc
MOV EBX,EBP
PUSH ESI
CALL 0x00011290
ADD ESP,0x10
ADD dword ptr [ESP + 0x54],0x4
SUB dword ptr [ESP + 0x50],0x1
JNZ 0x00011e90
MOVZX EAX,byte ptr [ESP + 0x2b]
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EBX,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [EBX]
MOV EBX,dword ptr [ECX + 0x14]
CMP EBX,dword ptr [ECX + 0x18]
JNC 0x00012168
LEA EDI,[EBX + 0x1]
MOV dword ptr [ECX + 0x14],EDI
MOV byte ptr [EBX],AL
JMP 0x00011f07
MOV EAX,dword ptr [EBP + 0x16c]
MOV dword ptr [ESP + 0xc],EAX
JMP 0x00011f1c
SUB ESP,0xc
MOV EBX,EBP
PUSH ESI
CALL 0x00015330
ADD ESP,0x10
CMP EAX,-0x1
JNZ 0x00011fcb
SUB ESP,0x4
MOV EAX,dword ptr [ESP + 0x58]
PUSH dword ptr [EAX]
PUSH 0x3
PUSH 0x0
CALL 0x000146e0
PUSH EAX
LEA EAX,[EBP + 0xffffb4a9]
PUSH EAX
MOV EAX,dword ptr [ESP + 0x38]
PUSH dword ptr [EAX]
PUSH 0x0
CALL 0x00011160
ADD ESP,0x20
MOV byte ptr [ESP + 0x2b],0x0
JMP 0x00011fcb
SUB ESP,0xc
MOV EBX,EBP
PUSH ESI
CALL 0x00011260
ADD ESP,0x10
MOV EDX,EAX
CMP EAX,-0x1
JNZ 0x00011f35
MOV EAX,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0x1c],EAX
MOV EAX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EAX]
MOV EDX,dword ptr [EAX + 0x14]
CMP EDX,dword ptr [EAX + 0x18]
JNC 0x000121b0
LEA ECX,[EDX + 0x1]
MOV dword ptr [EAX + 0x14],ECX
MOV EAX,EDI
MOV byte ptr [EDX],AL
MOVZX EDX,byte ptr [EBP + 0xe8]
MOV EAX,EDX
CMP EDX,EDI
JNZ 0x00011f92
TEST byte ptr [ESI],0x20
JZ 0x00011fb5
SUB ESP,0x4
MOV EBX,EBP
MOV EAX,dword ptr [ESP + 0x58]
PUSH dword ptr [EAX]
PUSH 0x3
PUSH 0x0
CALL 0x000146e0
PUSH EAX
LEA EAX,[EBP + 0xffffb4a9]
PUSH EAX
PUSH dword ptr [ESP + 0x34]
PUSH 0x0
CALL 0x00011160
ADD ESP,0x20
MOV byte ptr [ESP + 0x2b],0x0
JMP 0x00011fb5
SUB ESP,0x8
LEA EDX,[EBP + 0xffffb012]
MOV EBX,EBP
PUSH EDX
PUSH EAX
CALL 0x00011100
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x00012033
SUB ESP,0x8
PUSH 0x2
PUSH EAX
CALL 0x00012690
ADD ESP,0x10
JMP 0x00011ec7
MOV EBX,EDI
MOV dword ptr [ESP + 0x1c],EDX
SUB ESP,0x8
MOVZX EDI,BL
MOV EBX,EBP
PUSH EDI
PUSH EAX
CALL 0x000112b0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x1c]
TEST EAX,EAX
JNS 0x00011f1c
CALL 0x00011830
LEA ESI,[ESI]
MOV dword ptr [ESP + 0x1c],EDX
SUB ESP,0x8
MOV EBX,EBP
PUSH EAX
PUSH ECX
CALL 0x000112b0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x1c]
TEST EAX,EAX
JNS 0x00011f07
JMP 0x0001215c
SUB ESP,0x8
MOV EBX,EBP
PUSH EAX
PUSH EDX
CALL 0x000112b0
ADD ESP,0x10
TEST EAX,EAX
JNS 0x00011fac
JMP 0x0001215c
MOV EBX,EDI
SUB ESP,0x8
MOVZX EDX,BL
MOV EBX,EBP
PUSH EDX
PUSH EAX
CALL 0x000112b0
ADD ESP,0x10
TEST EAX,EAX
JNS 0x000120af
JMP 0x0001215c
MOV byte ptr [ESP + 0x2b],0x1
MOVZX EAX,byte ptr [ESP + 0x2b]
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESI + 0x4]
MOV ECX,dword ptr [ESI + 0x8]
JMP 0x00011ee8
(translation_unit "undefined1 FUN_00011e40(int param_1,undefined4 *param_2)\n\n{\n  byte bVar1;\n  int *piVar2;\n  char *pcVar3;\n  int *piVar4;\n  byte *pbVar5;\n  undefined4 uVar6;\n  _IO_FILE *__stream;\n  int iVar7;\n  byte *pbVar8;\n  _IO_FILE *extraout_ECX;\n  _IO_FILE *p_Var9;\n  uint uVar10;\n  int unaff_EBP;\n  byte *pbVar11;\n  uint uVar12;\n  undefined1 uVar13;\n  undefined1 uVar14;\n  byte bVar15;\n  undefined8 uVar16;\n  byte *local_40;\n  int local_30;\n  undefined1 local_21;\n  \n  bVar15 = 0;\n  FUN_00012549();\n  uVar13 = 0;\n  uVar14 = param_1 == 0;\n  if ((bool)uVar14) {\n    return 1;\n  }\n  piVar4 = __errno_location();\n  local_21 = 1;\n  piVar2 = *(int **)(unaff_EBP + 0xa18e);\n  do {\n    iVar7 = 2;\n    pbVar11 = (byte *)*param_2;\n    pbVar8 = (byte *)(unaff_EBP + 0x6267);\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      uVar13 = *pbVar11 < *pbVar8;\n      uVar14 = *pbVar11 == *pbVar8;\n      pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1;\n      pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1;\n    } while ((bool)uVar14);\n    if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n      *(undefined1 *)(unaff_EBP + 0xa32b) = 1;\n      __stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a);\nLAB_00011ec7:\n      local_40 = *(byte **)(unaff_EBP + 0xa326);\n      pbVar11 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      if (pbVar11 < pbVar8) {\n        pbVar5 = pbVar11 + 1;\n        __stream->_IO_read_ptr = (char *)pbVar5;\n        uVar12 = (uint)*pbVar11;\n      }\n      else {\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }\nLAB_00011f24:\n      if (pbVar5 < pbVar8) {\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }\n      uVar10 = __uflow(__stream);\n      if (uVar10 != 0xffffffff) goto LAB_00011f35;\n      local_30 = *piVar4;\n      p_Var9 = (_IO_FILE *)*piVar2;\n      pcVar3 = p_Var9->_IO_write_ptr;\n      if (pcVar3 < p_Var9->_IO_write_end) {\n        p_Var9->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)uVar12;\nLAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n        if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }\nLAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }\n        iVar7 = __overflow(p_Var9,uVar10);\n        if (-1 < iVar7) goto LAB_00011fac;\n      }\n      else {\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }\nLAB_0001215c:\n      do {\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      } while (iVar7 < 0);\nLAB_00011f07:\n      local_40 = local_40 + 1;\n      if (*(byte **)(unaff_EBP + 0xa322) == local_40) {\n        local_40 = *(byte **)(unaff_EBP + 0xa326);\n      }\nLAB_00011f1c:\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      uVar12 = uVar10;\n      goto LAB_00011f24;\n    }\n    __stream = fopen64((char *)*param_2,(char *)(unaff_EBP + 0x51cc));\n    if (__stream != (FILE *)0x0) {\n      FUN_00012690(__stream,2);\n      goto LAB_00011ec7;\n    }\nLAB_00012033:\n    uVar6 = FUN_000146e0(0,3,*param_2);\n    error(0,*piVar4,unaff_EBP + 0x5663,uVar6);\n    local_21 = 0;\nLAB_00011fcb:\n    param_2 = param_2 + 1;\n    uVar13 = param_1 == 0;\n    param_1 = param_1 + -1;\n    uVar14 = param_1 == 0;\n    if ((bool)uVar14) {\n      return local_21;\n    }\n  } while( true );\n}\n\n" (function_definition "undefined1 FUN_00011e40(int param_1,undefined4 *param_2)\n\n{\n  byte bVar1;\n  int *piVar2;\n  char *pcVar3;\n  int *piVar4;\n  byte *pbVar5;\n  undefined4 uVar6;\n  _IO_FILE *__stream;\n  int iVar7;\n  byte *pbVar8;\n  _IO_FILE *extraout_ECX;\n  _IO_FILE *p_Var9;\n  uint uVar10;\n  int unaff_EBP;\n  byte *pbVar11;\n  uint uVar12;\n  undefined1 uVar13;\n  undefined1 uVar14;\n  byte bVar15;\n  undefined8 uVar16;\n  byte *local_40;\n  int local_30;\n  undefined1 local_21;\n  \n  bVar15 = 0;\n  FUN_00012549();\n  uVar13 = 0;\n  uVar14 = param_1 == 0;\n  if ((bool)uVar14) {\n    return 1;\n  }\n  piVar4 = __errno_location();\n  local_21 = 1;\n  piVar2 = *(int **)(unaff_EBP + 0xa18e);\n  do {\n    iVar7 = 2;\n    pbVar11 = (byte *)*param_2;\n    pbVar8 = (byte *)(unaff_EBP + 0x6267);\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      uVar13 = *pbVar11 < *pbVar8;\n      uVar14 = *pbVar11 == *pbVar8;\n      pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1;\n      pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1;\n    } while ((bool)uVar14);\n    if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n      *(undefined1 *)(unaff_EBP + 0xa32b) = 1;\n      __stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a);\nLAB_00011ec7:\n      local_40 = *(byte **)(unaff_EBP + 0xa326);\n      pbVar11 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      if (pbVar11 < pbVar8) {\n        pbVar5 = pbVar11 + 1;\n        __stream->_IO_read_ptr = (char *)pbVar5;\n        uVar12 = (uint)*pbVar11;\n      }\n      else {\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }\nLAB_00011f24:\n      if (pbVar5 < pbVar8) {\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }\n      uVar10 = __uflow(__stream);\n      if (uVar10 != 0xffffffff) goto LAB_00011f35;\n      local_30 = *piVar4;\n      p_Var9 = (_IO_FILE *)*piVar2;\n      pcVar3 = p_Var9->_IO_write_ptr;\n      if (pcVar3 < p_Var9->_IO_write_end) {\n        p_Var9->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)uVar12;\nLAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n        if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }\nLAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }\n        iVar7 = __overflow(p_Var9,uVar10);\n        if (-1 < iVar7) goto LAB_00011fac;\n      }\n      else {\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }\nLAB_0001215c:\n      do {\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      } while (iVar7 < 0);\nLAB_00011f07:\n      local_40 = local_40 + 1;\n      if (*(byte **)(unaff_EBP + 0xa322) == local_40) {\n        local_40 = *(byte **)(unaff_EBP + 0xa326);\n      }\nLAB_00011f1c:\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      uVar12 = uVar10;\n      goto LAB_00011f24;\n    }\n    __stream = fopen64((char *)*param_2,(char *)(unaff_EBP + 0x51cc));\n    if (__stream != (FILE *)0x0) {\n      FUN_00012690(__stream,2);\n      goto LAB_00011ec7;\n    }\nLAB_00012033:\n    uVar6 = FUN_000146e0(0,3,*param_2);\n    error(0,*piVar4,unaff_EBP + 0x5663,uVar6);\n    local_21 = 0;\nLAB_00011fcb:\n    param_2 = param_2 + 1;\n    uVar13 = param_1 == 0;\n    param_1 = param_1 + -1;\n    uVar14 = param_1 == 0;\n    if ((bool)uVar14) {\n      return local_21;\n    }\n  } while( true );\n}" type_identifier (function_declarator "FUN_00011e40(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int *piVar2;\n  char *pcVar3;\n  int *piVar4;\n  byte *pbVar5;\n  undefined4 uVar6;\n  _IO_FILE *__stream;\n  int iVar7;\n  byte *pbVar8;\n  _IO_FILE *extraout_ECX;\n  _IO_FILE *p_Var9;\n  uint uVar10;\n  int unaff_EBP;\n  byte *pbVar11;\n  uint uVar12;\n  undefined1 uVar13;\n  undefined1 uVar14;\n  byte bVar15;\n  undefined8 uVar16;\n  byte *local_40;\n  int local_30;\n  undefined1 local_21;\n  \n  bVar15 = 0;\n  FUN_00012549();\n  uVar13 = 0;\n  uVar14 = param_1 == 0;\n  if ((bool)uVar14) {\n    return 1;\n  }\n  piVar4 = __errno_location();\n  local_21 = 1;\n  piVar2 = *(int **)(unaff_EBP + 0xa18e);\n  do {\n    iVar7 = 2;\n    pbVar11 = (byte *)*param_2;\n    pbVar8 = (byte *)(unaff_EBP + 0x6267);\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      uVar13 = *pbVar11 < *pbVar8;\n      uVar14 = *pbVar11 == *pbVar8;\n      pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1;\n      pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1;\n    } while ((bool)uVar14);\n    if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n      *(undefined1 *)(unaff_EBP + 0xa32b) = 1;\n      __stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a);\nLAB_00011ec7:\n      local_40 = *(byte **)(unaff_EBP + 0xa326);\n      pbVar11 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      if (pbVar11 < pbVar8) {\n        pbVar5 = pbVar11 + 1;\n        __stream->_IO_read_ptr = (char *)pbVar5;\n        uVar12 = (uint)*pbVar11;\n      }\n      else {\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }\nLAB_00011f24:\n      if (pbVar5 < pbVar8) {\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }\n      uVar10 = __uflow(__stream);\n      if (uVar10 != 0xffffffff) goto LAB_00011f35;\n      local_30 = *piVar4;\n      p_Var9 = (_IO_FILE *)*piVar2;\n      pcVar3 = p_Var9->_IO_write_ptr;\n      if (pcVar3 < p_Var9->_IO_write_end) {\n        p_Var9->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)uVar12;\nLAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n        if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }\nLAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }\n        iVar7 = __overflow(p_Var9,uVar10);\n        if (-1 < iVar7) goto LAB_00011fac;\n      }\n      else {\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }\nLAB_0001215c:\n      do {\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      } while (iVar7 < 0);\nLAB_00011f07:\n      local_40 = local_40 + 1;\n      if (*(byte **)(unaff_EBP + 0xa322) == local_40) {\n        local_40 = *(byte **)(unaff_EBP + 0xa326);\n      }\nLAB_00011f1c:\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      uVar12 = uVar10;\n      goto LAB_00011f24;\n    }\n    __stream = fopen64((char *)*param_2,(char *)(unaff_EBP + 0x51cc));\n    if (__stream != (FILE *)0x0) {\n      FUN_00012690(__stream,2);\n      goto LAB_00011ec7;\n    }\nLAB_00012033:\n    uVar6 = FUN_000146e0(0,3,*param_2);\n    error(0,*piVar4,unaff_EBP + 0x5663,uVar6);\n    local_21 = 0;\nLAB_00011fcb:\n    param_2 = param_2 + 1;\n    uVar13 = param_1 == 0;\n    param_1 = param_1 + -1;\n    uVar14 = param_1 == 0;\n    if ((bool)uVar14) {\n      return local_21;\n    }\n  } while( true );\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "_IO_FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "_IO_FILE *extraout_ECX;" type_identifier (pointer_declarator "*extraout_ECX" * identifier) ;) (declaration "_IO_FILE *p_Var9;" type_identifier (pointer_declarator "*p_Var9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (declaration "byte *pbVar11;" type_identifier (pointer_declarator "*pbVar11" * identifier) ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "undefined1 uVar13;" type_identifier identifier ;) (declaration "undefined1 uVar14;" type_identifier identifier ;) (declaration "byte bVar15;" type_identifier identifier ;) (declaration "undefined8 uVar16;" type_identifier identifier ;) (declaration "byte *local_40;" type_identifier (pointer_declarator "*local_40" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "undefined1 local_21;" type_identifier identifier ;) (expression_statement "bVar15 = 0;" (assignment_expression "bVar15 = 0" identifier = number_literal) ;) (expression_statement "FUN_00012549();" (call_expression "FUN_00012549()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar13 = 0;" (assignment_expression "uVar13 = 0" identifier = number_literal) ;) (expression_statement "uVar14 = param_1 == 0;" (assignment_expression "uVar14 = param_1 == 0" identifier = (binary_expression "param_1 == 0" identifier == number_literal)) ;) (if_statement "if ((bool)uVar14) {\n    return 1;\n  }" if (parenthesized_expression "((bool)uVar14)" ( (cast_expression "(bool)uVar14" ( (type_descriptor "bool" primitive_type) ) identifier) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_21 = 1;" (assignment_expression "local_21 = 1" identifier = number_literal) ;) (expression_statement "piVar2 = *(int **)(unaff_EBP + 0xa18e);" (assignment_expression "piVar2 = *(int **)(unaff_EBP + 0xa18e)" identifier = (pointer_expression "*(int **)(unaff_EBP + 0xa18e)" * (cast_expression "(int **)(unaff_EBP + 0xa18e)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBP + 0xa18e)" ( (binary_expression "unaff_EBP + 0xa18e" identifier + number_literal) ))))) ;) (do_statement "do {\n    iVar7 = 2;\n    pbVar11 = (byte *)*param_2;\n    pbVar8 = (byte *)(unaff_EBP + 0x6267);\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      uVar13 = *pbVar11 < *pbVar8;\n      uVar14 = *pbVar11 == *pbVar8;\n      pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1;\n      pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1;\n    } while ((bool)uVar14);\n    if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n      *(undefined1 *)(unaff_EBP + 0xa32b) = 1;\n      __stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a);\nLAB_00011ec7:\n      local_40 = *(byte **)(unaff_EBP + 0xa326);\n      pbVar11 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      if (pbVar11 < pbVar8) {\n        pbVar5 = pbVar11 + 1;\n        __stream->_IO_read_ptr = (char *)pbVar5;\n        uVar12 = (uint)*pbVar11;\n      }\n      else {\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }\nLAB_00011f24:\n      if (pbVar5 < pbVar8) {\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }\n      uVar10 = __uflow(__stream);\n      if (uVar10 != 0xffffffff) goto LAB_00011f35;\n      local_30 = *piVar4;\n      p_Var9 = (_IO_FILE *)*piVar2;\n      pcVar3 = p_Var9->_IO_write_ptr;\n      if (pcVar3 < p_Var9->_IO_write_end) {\n        p_Var9->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)uVar12;\nLAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n        if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }\nLAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }\n        iVar7 = __overflow(p_Var9,uVar10);\n        if (-1 < iVar7) goto LAB_00011fac;\n      }\n      else {\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }\nLAB_0001215c:\n      do {\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      } while (iVar7 < 0);\nLAB_00011f07:\n      local_40 = local_40 + 1;\n      if (*(byte **)(unaff_EBP + 0xa322) == local_40) {\n        local_40 = *(byte **)(unaff_EBP + 0xa326);\n      }\nLAB_00011f1c:\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      uVar12 = uVar10;\n      goto LAB_00011f24;\n    }\n    __stream = fopen64((char *)*param_2,(char *)(unaff_EBP + 0x51cc));\n    if (__stream != (FILE *)0x0) {\n      FUN_00012690(__stream,2);\n      goto LAB_00011ec7;\n    }\nLAB_00012033:\n    uVar6 = FUN_000146e0(0,3,*param_2);\n    error(0,*piVar4,unaff_EBP + 0x5663,uVar6);\n    local_21 = 0;\nLAB_00011fcb:\n    param_2 = param_2 + 1;\n    uVar13 = param_1 == 0;\n    param_1 = param_1 + -1;\n    uVar14 = param_1 == 0;\n    if ((bool)uVar14) {\n      return local_21;\n    }\n  } while( true );" do (compound_statement "{\n    iVar7 = 2;\n    pbVar11 = (byte *)*param_2;\n    pbVar8 = (byte *)(unaff_EBP + 0x6267);\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      uVar13 = *pbVar11 < *pbVar8;\n      uVar14 = *pbVar11 == *pbVar8;\n      pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1;\n      pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1;\n    } while ((bool)uVar14);\n    if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n      *(undefined1 *)(unaff_EBP + 0xa32b) = 1;\n      __stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a);\nLAB_00011ec7:\n      local_40 = *(byte **)(unaff_EBP + 0xa326);\n      pbVar11 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      if (pbVar11 < pbVar8) {\n        pbVar5 = pbVar11 + 1;\n        __stream->_IO_read_ptr = (char *)pbVar5;\n        uVar12 = (uint)*pbVar11;\n      }\n      else {\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }\nLAB_00011f24:\n      if (pbVar5 < pbVar8) {\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }\n      uVar10 = __uflow(__stream);\n      if (uVar10 != 0xffffffff) goto LAB_00011f35;\n      local_30 = *piVar4;\n      p_Var9 = (_IO_FILE *)*piVar2;\n      pcVar3 = p_Var9->_IO_write_ptr;\n      if (pcVar3 < p_Var9->_IO_write_end) {\n        p_Var9->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)uVar12;\nLAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n        if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }\nLAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }\n        iVar7 = __overflow(p_Var9,uVar10);\n        if (-1 < iVar7) goto LAB_00011fac;\n      }\n      else {\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }\nLAB_0001215c:\n      do {\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      } while (iVar7 < 0);\nLAB_00011f07:\n      local_40 = local_40 + 1;\n      if (*(byte **)(unaff_EBP + 0xa322) == local_40) {\n        local_40 = *(byte **)(unaff_EBP + 0xa326);\n      }\nLAB_00011f1c:\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      uVar12 = uVar10;\n      goto LAB_00011f24;\n    }\n    __stream = fopen64((char *)*param_2,(char *)(unaff_EBP + 0x51cc));\n    if (__stream != (FILE *)0x0) {\n      FUN_00012690(__stream,2);\n      goto LAB_00011ec7;\n    }\nLAB_00012033:\n    uVar6 = FUN_000146e0(0,3,*param_2);\n    error(0,*piVar4,unaff_EBP + 0x5663,uVar6);\n    local_21 = 0;\nLAB_00011fcb:\n    param_2 = param_2 + 1;\n    uVar13 = param_1 == 0;\n    param_1 = param_1 + -1;\n    uVar14 = param_1 == 0;\n    if ((bool)uVar14) {\n      return local_21;\n    }\n  }" { (expression_statement "iVar7 = 2;" (assignment_expression "iVar7 = 2" identifier = number_literal) ;) (expression_statement "pbVar11 = (byte *)*param_2;" (assignment_expression "pbVar11 = (byte *)*param_2" identifier = (cast_expression "(byte *)*param_2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "pbVar8 = (byte *)(unaff_EBP + 0x6267);" (assignment_expression "pbVar8 = (byte *)(unaff_EBP + 0x6267)" identifier = (cast_expression "(byte *)(unaff_EBP + 0x6267)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + 0x6267)" ( (binary_expression "unaff_EBP + 0x6267" identifier + number_literal) )))) ;) (do_statement "do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      uVar13 = *pbVar11 < *pbVar8;\n      uVar14 = *pbVar11 == *pbVar8;\n      pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1;\n      pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1;\n    } while ((bool)uVar14);" do (compound_statement "{\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      uVar13 = *pbVar11 < *pbVar8;\n      uVar14 = *pbVar11 == *pbVar8;\n      pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1;\n      pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1;\n    }" { (if_statement "if (iVar7 == 0) break;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "uVar13 = *pbVar11 < *pbVar8;" (assignment_expression "uVar13 = *pbVar11 < *pbVar8" identifier = (binary_expression "*pbVar11 < *pbVar8" (pointer_expression "*pbVar11" * identifier) < (pointer_expression "*pbVar8" * identifier))) ;) (expression_statement "uVar14 = *pbVar11 == *pbVar8;" (assignment_expression "uVar14 = *pbVar11 == *pbVar8" identifier = (binary_expression "*pbVar11 == *pbVar8" (pointer_expression "*pbVar11" * identifier) == (pointer_expression "*pbVar8" * identifier))) ;) (expression_statement "pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1;" (assignment_expression "pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1" identifier = (binary_expression "pbVar11 + (uint)bVar15 * -2 + 1" (binary_expression "pbVar11 + (uint)bVar15 * -2" identifier + (binary_expression "(uint)bVar15 * -2" (cast_expression "(uint)bVar15" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1;" (assignment_expression "pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1" identifier = (binary_expression "pbVar8 + (uint)bVar15 * -2 + 1" (binary_expression "pbVar8 + (uint)bVar15 * -2" identifier + (binary_expression "(uint)bVar15 * -2" (cast_expression "(uint)bVar15" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "((bool)uVar14)" ( (cast_expression "(bool)uVar14" ( (type_descriptor "bool" primitive_type) ) identifier) )) ;) (if_statement "if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n      *(undefined1 *)(unaff_EBP + 0xa32b) = 1;\n      __stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a);\nLAB_00011ec7:\n      local_40 = *(byte **)(unaff_EBP + 0xa326);\n      pbVar11 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      if (pbVar11 < pbVar8) {\n        pbVar5 = pbVar11 + 1;\n        __stream->_IO_read_ptr = (char *)pbVar5;\n        uVar12 = (uint)*pbVar11;\n      }\n      else {\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }\nLAB_00011f24:\n      if (pbVar5 < pbVar8) {\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }\n      uVar10 = __uflow(__stream);\n      if (uVar10 != 0xffffffff) goto LAB_00011f35;\n      local_30 = *piVar4;\n      p_Var9 = (_IO_FILE *)*piVar2;\n      pcVar3 = p_Var9->_IO_write_ptr;\n      if (pcVar3 < p_Var9->_IO_write_end) {\n        p_Var9->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)uVar12;\nLAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n        if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }\nLAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }\n        iVar7 = __overflow(p_Var9,uVar10);\n        if (-1 < iVar7) goto LAB_00011fac;\n      }\n      else {\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }\nLAB_0001215c:\n      do {\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      } while (iVar7 < 0);\nLAB_00011f07:\n      local_40 = local_40 + 1;\n      if (*(byte **)(unaff_EBP + 0xa322) == local_40) {\n        local_40 = *(byte **)(unaff_EBP + 0xa326);\n      }\nLAB_00011f1c:\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      uVar12 = uVar10;\n      goto LAB_00011f24;\n    }" if (parenthesized_expression "((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13)" ( (binary_expression "(!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13" (parenthesized_expression "(!(bool)uVar13 && !(bool)uVar14)" ( (binary_expression "!(bool)uVar13 && !(bool)uVar14" (unary_expression "!(bool)uVar13" ! (cast_expression "(bool)uVar13" ( (type_descriptor "bool" primitive_type) ) identifier)) && (unary_expression "!(bool)uVar14" ! (cast_expression "(bool)uVar14" ( (type_descriptor "bool" primitive_type) ) identifier))) )) == (cast_expression "(bool)uVar13" ( (type_descriptor "bool" primitive_type) ) identifier)) )) (compound_statement "{\n      *(undefined1 *)(unaff_EBP + 0xa32b) = 1;\n      __stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a);\nLAB_00011ec7:\n      local_40 = *(byte **)(unaff_EBP + 0xa326);\n      pbVar11 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      if (pbVar11 < pbVar8) {\n        pbVar5 = pbVar11 + 1;\n        __stream->_IO_read_ptr = (char *)pbVar5;\n        uVar12 = (uint)*pbVar11;\n      }\n      else {\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }\nLAB_00011f24:\n      if (pbVar5 < pbVar8) {\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }\n      uVar10 = __uflow(__stream);\n      if (uVar10 != 0xffffffff) goto LAB_00011f35;\n      local_30 = *piVar4;\n      p_Var9 = (_IO_FILE *)*piVar2;\n      pcVar3 = p_Var9->_IO_write_ptr;\n      if (pcVar3 < p_Var9->_IO_write_end) {\n        p_Var9->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)uVar12;\nLAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n        if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }\nLAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }\n        iVar7 = __overflow(p_Var9,uVar10);\n        if (-1 < iVar7) goto LAB_00011fac;\n      }\n      else {\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }\nLAB_0001215c:\n      do {\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      } while (iVar7 < 0);\nLAB_00011f07:\n      local_40 = local_40 + 1;\n      if (*(byte **)(unaff_EBP + 0xa322) == local_40) {\n        local_40 = *(byte **)(unaff_EBP + 0xa326);\n      }\nLAB_00011f1c:\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      uVar12 = uVar10;\n      goto LAB_00011f24;\n    }" { (expression_statement "*(undefined1 *)(unaff_EBP + 0xa32b) = 1;" (assignment_expression "*(undefined1 *)(unaff_EBP + 0xa32b) = 1" (pointer_expression "*(undefined1 *)(unaff_EBP + 0xa32b)" * (cast_expression "(undefined1 *)(unaff_EBP + 0xa32b)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + 0xa32b)" ( (binary_expression "unaff_EBP + 0xa32b" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a);" (assignment_expression "__stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a)" identifier = (cast_expression "(_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a)" ( (type_descriptor "_IO_FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(unaff_EBP + 0xa18a)" * (pointer_expression "*(undefined4 **)(unaff_EBP + 0xa18a)" * (cast_expression "(undefined4 **)(unaff_EBP + 0xa18a)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBP + 0xa18a)" ( (binary_expression "unaff_EBP + 0xa18a" identifier + number_literal) ))))))) ;) (labeled_statement "LAB_00011ec7:\n      local_40 = *(byte **)(unaff_EBP + 0xa326);" statement_identifier : (expression_statement "local_40 = *(byte **)(unaff_EBP + 0xa326);" (assignment_expression "local_40 = *(byte **)(unaff_EBP + 0xa326)" identifier = (pointer_expression "*(byte **)(unaff_EBP + 0xa326)" * (cast_expression "(byte **)(unaff_EBP + 0xa326)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBP + 0xa326)" ( (binary_expression "unaff_EBP + 0xa326" identifier + number_literal) ))))) ;)) (expression_statement "pbVar11 = (byte *)__stream->_IO_read_ptr;" (assignment_expression "pbVar11 = (byte *)__stream->_IO_read_ptr" identifier = (cast_expression "(byte *)__stream->_IO_read_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__stream->_IO_read_ptr" identifier -> field_identifier))) ;) (expression_statement "pbVar8 = (byte *)__stream->_IO_read_end;" (assignment_expression "pbVar8 = (byte *)__stream->_IO_read_end" identifier = (cast_expression "(byte *)__stream->_IO_read_end" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__stream->_IO_read_end" identifier -> field_identifier))) ;) (if_statement "if (pbVar11 < pbVar8) {\n        pbVar5 = pbVar11 + 1;\n        __stream->_IO_read_ptr = (char *)pbVar5;\n        uVar12 = (uint)*pbVar11;\n      }\n      else {\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }" if (parenthesized_expression "(pbVar11 < pbVar8)" ( (binary_expression "pbVar11 < pbVar8" identifier < identifier) )) (compound_statement "{\n        pbVar5 = pbVar11 + 1;\n        __stream->_IO_read_ptr = (char *)pbVar5;\n        uVar12 = (uint)*pbVar11;\n      }" { (expression_statement "pbVar5 = pbVar11 + 1;" (assignment_expression "pbVar5 = pbVar11 + 1" identifier = (binary_expression "pbVar11 + 1" identifier + number_literal)) ;) (expression_statement "__stream->_IO_read_ptr = (char *)pbVar5;" (assignment_expression "__stream->_IO_read_ptr = (char *)pbVar5" (field_expression "__stream->_IO_read_ptr" identifier -> field_identifier) = (cast_expression "(char *)pbVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "uVar12 = (uint)*pbVar11;" (assignment_expression "uVar12 = (uint)*pbVar11" identifier = (binary_expression "(uint)*pbVar11" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }) (else_clause "else {\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }" else (compound_statement "{\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }" { (expression_statement "uVar12 = __uflow(__stream);" (assignment_expression "uVar12 = __uflow(__stream)" identifier = (call_expression "__uflow(__stream)" identifier (argument_list "(__stream)" ( identifier )))) ;) (expression_statement "local_30 = *piVar4;" (assignment_expression "local_30 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (if_statement "if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }" if (parenthesized_expression "(uVar12 == 0xffffffff)" ( (binary_expression "uVar12 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }" { (expression_statement "uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);" (assignment_expression "uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2)" identifier = (binary_expression "(uint)*(byte *)(unaff_EBP + 0xa2a2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(unaff_EBP + 0xa2a2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + 0xa2a2)" ( (binary_expression "unaff_EBP + 0xa2a2" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_00011f92;" goto statement_identifier ;) })) (expression_statement "pbVar5 = (byte *)__stream->_IO_read_ptr;" (assignment_expression "pbVar5 = (byte *)__stream->_IO_read_ptr" identifier = (cast_expression "(byte *)__stream->_IO_read_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__stream->_IO_read_ptr" identifier -> field_identifier))) ;) (expression_statement "pbVar8 = (byte *)__stream->_IO_read_end;" (assignment_expression "pbVar8 = (byte *)__stream->_IO_read_end" identifier = (cast_expression "(byte *)__stream->_IO_read_end" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__stream->_IO_read_end" identifier -> field_identifier))) ;) }))) (labeled_statement "LAB_00011f24:\n      if (pbVar5 < pbVar8) {\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }" statement_identifier : (if_statement "if (pbVar5 < pbVar8) {\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }" if (parenthesized_expression "(pbVar5 < pbVar8)" ( (binary_expression "pbVar5 < pbVar8" identifier < identifier) )) (compound_statement "{\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }" { (expression_statement "__stream->_IO_read_ptr = (char *)(pbVar5 + 1);" (assignment_expression "__stream->_IO_read_ptr = (char *)(pbVar5 + 1)" (field_expression "__stream->_IO_read_ptr" identifier -> field_identifier) = (cast_expression "(char *)(pbVar5 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar5 + 1)" ( (binary_expression "pbVar5 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar10 = (uint)*pbVar5;" (assignment_expression "uVar10 = (uint)*pbVar5" identifier = (binary_expression "(uint)*pbVar5" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (labeled_statement "LAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }" statement_identifier : (if_statement "if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }" if (parenthesized_expression "(*(byte *)(unaff_EBP + 0xa2a2) == uVar12)" ( (binary_expression "*(byte *)(unaff_EBP + 0xa2a2) == uVar12" (pointer_expression "*(byte *)(unaff_EBP + 0xa2a2)" * (cast_expression "(byte *)(unaff_EBP + 0xa2a2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + 0xa2a2)" ( (binary_expression "unaff_EBP + 0xa2a2" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }" { (expression_statement "bVar1 = *local_40;" (assignment_expression "bVar1 = *local_40" identifier = (pointer_expression "*local_40" * identifier)) ;) (expression_statement "uVar16 = CONCAT44(uVar10,(uint)bVar1);" (assignment_expression "uVar16 = CONCAT44(uVar10,(uint)bVar1)" identifier = (call_expression "CONCAT44(uVar10,(uint)bVar1)" identifier (argument_list "(uVar10,(uint)bVar1)" ( identifier , (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) )))) ;) (if_statement "if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }" { (expression_statement "p_Var9 = (_IO_FILE *)*piVar2;" (assignment_expression "p_Var9 = (_IO_FILE *)*piVar2" identifier = (cast_expression "(_IO_FILE *)*piVar2" ( (type_descriptor "_IO_FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (expression_statement "pbVar11 = (byte *)p_Var9->_IO_write_ptr;" (assignment_expression "pbVar11 = (byte *)p_Var9->_IO_write_ptr" identifier = (cast_expression "(byte *)p_Var9->_IO_write_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "p_Var9->_IO_write_ptr" identifier -> field_identifier))) ;) (if_statement "if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;" if (parenthesized_expression "(p_Var9->_IO_write_end <= pbVar11)" ( (binary_expression "p_Var9->_IO_write_end <= pbVar11" (field_expression "p_Var9->_IO_write_end" identifier -> field_identifier) <= identifier) )) (goto_statement "goto LAB_00012168;" goto statement_identifier ;)) (expression_statement "p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);" (assignment_expression "p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1)" (field_expression "p_Var9->_IO_write_ptr" identifier -> field_identifier) = (cast_expression "(char *)(pbVar11 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar11 + 1)" ( (binary_expression "pbVar11 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar11 = bVar1;" (assignment_expression "*pbVar11 = bVar1" (pointer_expression "*pbVar11" * identifier) = identifier) ;) })) (goto_statement "goto LAB_00011f07;" goto statement_identifier ;) }))) (expression_statement "p_Var9 = (_IO_FILE *)*piVar2;" (assignment_expression "p_Var9 = (_IO_FILE *)*piVar2" identifier = (cast_expression "(_IO_FILE *)*piVar2" ( (type_descriptor "_IO_FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (expression_statement "pcVar3 = p_Var9->_IO_write_ptr;" (assignment_expression "pcVar3 = p_Var9->_IO_write_ptr" identifier = (field_expression "p_Var9->_IO_write_ptr" identifier -> field_identifier)) ;) (if_statement "if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }" if (parenthesized_expression "(pcVar3 < p_Var9->_IO_write_end)" ( (binary_expression "pcVar3 < p_Var9->_IO_write_end" identifier < (field_expression "p_Var9->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }" { (expression_statement "p_Var9->_IO_write_ptr = pcVar3 + 1;" (assignment_expression "p_Var9->_IO_write_ptr = pcVar3 + 1" (field_expression "p_Var9->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar3 = (char)uVar12;" (assignment_expression "*pcVar3 = (char)uVar12" (pointer_expression "*pcVar3" * identifier) = (cast_expression "(char)uVar12" ( (type_descriptor "char" primitive_type) ) identifier)) ;) }) (else_clause "else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }" else (compound_statement "{\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }" { (expression_statement "iVar7 = __overflow(p_Var9,uVar12 & 0xff);" (assignment_expression "iVar7 = __overflow(p_Var9,uVar12 & 0xff)" identifier = (call_expression "__overflow(p_Var9,uVar12 & 0xff)" identifier (argument_list "(p_Var9,uVar12 & 0xff)" ( identifier , (binary_expression "uVar12 & 0xff" identifier & number_literal) )))) ;) (if_statement "if (iVar7 < 0) goto LAB_0001215c;" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0001215c;" goto statement_identifier ;)) }))) (goto_statement "goto LAB_00011f1c;" goto statement_identifier ;) }))) (expression_statement "uVar10 = __uflow(__stream);" (assignment_expression "uVar10 = __uflow(__stream)" identifier = (call_expression "__uflow(__stream)" identifier (argument_list "(__stream)" ( identifier )))) ;) (if_statement "if (uVar10 != 0xffffffff) goto LAB_00011f35;" if (parenthesized_expression "(uVar10 != 0xffffffff)" ( (binary_expression "uVar10 != 0xffffffff" identifier != number_literal) )) (goto_statement "goto LAB_00011f35;" goto statement_identifier ;)) (expression_statement "local_30 = *piVar4;" (assignment_expression "local_30 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "p_Var9 = (_IO_FILE *)*piVar2;" (assignment_expression "p_Var9 = (_IO_FILE *)*piVar2" identifier = (cast_expression "(_IO_FILE *)*piVar2" ( (type_descriptor "_IO_FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (expression_statement "pcVar3 = p_Var9->_IO_write_ptr;" (assignment_expression "pcVar3 = p_Var9->_IO_write_ptr" identifier = (field_expression "p_Var9->_IO_write_ptr" identifier -> field_identifier)) ;) (if_statement "if (pcVar3 < p_Var9->_IO_write_end) {\n        p_Var9->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)uVar12;\nLAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n        if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }\nLAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }\n        iVar7 = __overflow(p_Var9,uVar10);\n        if (-1 < iVar7) goto LAB_00011fac;\n      }\n      else {\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }" if (parenthesized_expression "(pcVar3 < p_Var9->_IO_write_end)" ( (binary_expression "pcVar3 < p_Var9->_IO_write_end" identifier < (field_expression "p_Var9->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n        p_Var9->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)uVar12;\nLAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n        if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }\nLAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }\n        iVar7 = __overflow(p_Var9,uVar10);\n        if (-1 < iVar7) goto LAB_00011fac;\n      }" { (expression_statement "p_Var9->_IO_write_ptr = pcVar3 + 1;" (assignment_expression "p_Var9->_IO_write_ptr = pcVar3 + 1" (field_expression "p_Var9->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar3 = (char)uVar12;" (assignment_expression "*pcVar3 = (char)uVar12" (pointer_expression "*pcVar3" * identifier) = (cast_expression "(char)uVar12" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (labeled_statement "LAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);" statement_identifier : (expression_statement "uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);" (assignment_expression "uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2)" identifier = (binary_expression "(uint)*(byte *)(unaff_EBP + 0xa2a2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(unaff_EBP + 0xa2a2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + 0xa2a2)" ( (binary_expression "unaff_EBP + 0xa2a2" identifier + number_literal) ))))) ;)) (if_statement "if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }" if (parenthesized_expression "(uVar10 == uVar12)" ( (binary_expression "uVar10 == uVar12" identifier == identifier) )) (compound_statement "{\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }" { (expression_statement "bVar1 = (byte)__stream->_flags;" (assignment_expression "bVar1 = (byte)__stream->_flags" identifier = (cast_expression "(byte)__stream->_flags" ( (type_descriptor "byte" type_identifier) ) (field_expression "__stream->_flags" identifier -> field_identifier))) ;) (goto_statement "goto joined_r0x00011faf;" goto statement_identifier ;) })) (labeled_statement "LAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;" statement_identifier : (expression_statement "p_Var9 = (_IO_FILE *)*piVar2;" (assignment_expression "p_Var9 = (_IO_FILE *)*piVar2" identifier = (cast_expression "(_IO_FILE *)*piVar2" ( (type_descriptor "_IO_FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;)) (expression_statement "pcVar3 = p_Var9->_IO_write_ptr;" (assignment_expression "pcVar3 = p_Var9->_IO_write_ptr" identifier = (field_expression "p_Var9->_IO_write_ptr" identifier -> field_identifier)) ;) (if_statement "if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }" if (parenthesized_expression "(pcVar3 < p_Var9->_IO_write_end)" ( (binary_expression "pcVar3 < p_Var9->_IO_write_end" identifier < (field_expression "p_Var9->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }" { (expression_statement "p_Var9->_IO_write_ptr = pcVar3 + 1;" (assignment_expression "p_Var9->_IO_write_ptr = pcVar3 + 1" (field_expression "p_Var9->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar3 = (char)uVar10;" (assignment_expression "*pcVar3 = (char)uVar10" (pointer_expression "*pcVar3" * identifier) = (cast_expression "(char)uVar10" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (labeled_statement "LAB_00011fac:\n          bVar1 = (byte)__stream->_flags;" statement_identifier : (expression_statement "bVar1 = (byte)__stream->_flags;" (assignment_expression "bVar1 = (byte)__stream->_flags" identifier = (cast_expression "(byte)__stream->_flags" ( (type_descriptor "byte" type_identifier) ) (field_expression "__stream->_flags" identifier -> field_identifier))) ;)) (labeled_statement "joined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }" statement_identifier : (if_statement "if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }" if (parenthesized_expression "((bVar1 & 0x20) != 0)" ( (binary_expression "(bVar1 & 0x20) != 0" (parenthesized_expression "(bVar1 & 0x20)" ( (binary_expression "bVar1 & 0x20" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }" { (expression_statement "uVar6 = FUN_000146e0(0,3,*param_2);" (assignment_expression "uVar6 = FUN_000146e0(0,3,*param_2)" identifier = (call_expression "FUN_000146e0(0,3,*param_2)" identifier (argument_list "(0,3,*param_2)" ( number_literal , number_literal , (pointer_expression "*param_2" * identifier) )))) ;) (expression_statement "error(0,local_30,unaff_EBP + 0x5663,uVar6);" (call_expression "error(0,local_30,unaff_EBP + 0x5663,uVar6)" identifier (argument_list "(0,local_30,unaff_EBP + 0x5663,uVar6)" ( number_literal , identifier , (binary_expression "unaff_EBP + 0x5663" identifier + number_literal) , identifier ))) ;) (expression_statement "local_21 = 0;" (assignment_expression "local_21 = 0" identifier = number_literal) ;) }))) (if_statement "if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }" if (parenthesized_expression "((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13)" ( (binary_expression "(!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13" (parenthesized_expression "(!(bool)uVar13 && !(bool)uVar14)" ( (binary_expression "!(bool)uVar13 && !(bool)uVar14" (unary_expression "!(bool)uVar13" ! (cast_expression "(bool)uVar13" ( (type_descriptor "bool" primitive_type) ) identifier)) && (unary_expression "!(bool)uVar14" ! (cast_expression "(bool)uVar14" ( (type_descriptor "bool" primitive_type) ) identifier))) )) == (cast_expression "(bool)uVar13" ( (type_descriptor "bool" primitive_type) ) identifier)) )) (compound_statement "{\n            clearerr_unlocked(__stream);\n          }" { (expression_statement "clearerr_unlocked(__stream);" (call_expression "clearerr_unlocked(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) }) (else_clause "else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }" else (compound_statement "{\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }" { (expression_statement "iVar7 = FUN_00015330(__stream);" (assignment_expression "iVar7 = FUN_00015330(__stream)" identifier = (call_expression "FUN_00015330(__stream)" identifier (argument_list "(__stream)" ( identifier )))) ;) (if_statement "if (iVar7 == -1) goto LAB_00012033;" if (parenthesized_expression "(iVar7 == -1)" ( (binary_expression "iVar7 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00012033;" goto statement_identifier ;)) }))) (goto_statement "goto LAB_00011fcb;" goto statement_identifier ;) })) (expression_statement "iVar7 = __overflow(p_Var9,uVar10);" (assignment_expression "iVar7 = __overflow(p_Var9,uVar10)" identifier = (call_expression "__overflow(p_Var9,uVar10)" identifier (argument_list "(p_Var9,uVar10)" ( identifier , identifier )))) ;) (if_statement "if (-1 < iVar7) goto LAB_00011fac;" if (parenthesized_expression "(-1 < iVar7)" ( (binary_expression "-1 < iVar7" number_literal < identifier) )) (goto_statement "goto LAB_00011fac;" goto statement_identifier ;)) }) (else_clause "else {\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }" else (compound_statement "{\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }" { (expression_statement "iVar7 = __overflow(p_Var9,uVar12 & 0xff);" (assignment_expression "iVar7 = __overflow(p_Var9,uVar12 & 0xff)" identifier = (call_expression "__overflow(p_Var9,uVar12 & 0xff)" identifier (argument_list "(p_Var9,uVar12 & 0xff)" ( identifier , (binary_expression "uVar12 & 0xff" identifier & number_literal) )))) ;) (if_statement "if (-1 < iVar7) goto LAB_000120af;" if (parenthesized_expression "(-1 < iVar7)" ( (binary_expression "-1 < iVar7" number_literal < identifier) )) (goto_statement "goto LAB_000120af;" goto statement_identifier ;)) }))) (labeled_statement "LAB_0001215c:\n      do {\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      } while (iVar7 < 0);" statement_identifier : (do_statement "do {\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      } while (iVar7 < 0);" do (compound_statement "{\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      }" { (expression_statement "uVar16 = FUN_00011830();" (assignment_expression "uVar16 = FUN_00011830()" identifier = (call_expression "FUN_00011830()" identifier (argument_list "()" ( )))) ;) (expression_statement "p_Var9 = extraout_ECX;" (assignment_expression "p_Var9 = extraout_ECX" identifier = identifier) ;) (labeled_statement "LAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);" statement_identifier : (expression_statement "uVar10 = (uint)((ulonglong)uVar16 >> 0x20);" (assignment_expression "uVar10 = (uint)((ulonglong)uVar16 >> 0x20)" identifier = (call_expression "(uint)((ulonglong)uVar16 >> 0x20)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)uVar16 >> 0x20)" ( (binary_expression "(ulonglong)uVar16 >> 0x20" (cast_expression "(ulonglong)uVar16" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;)) (expression_statement "iVar7 = __overflow(p_Var9,(int)uVar16);" (assignment_expression "iVar7 = __overflow(p_Var9,(int)uVar16)" identifier = (call_expression "__overflow(p_Var9,(int)uVar16)" identifier (argument_list "(p_Var9,(int)uVar16)" ( identifier , (cast_expression "(int)uVar16" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) }) while (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) ;)) (labeled_statement "LAB_00011f07:\n      local_40 = local_40 + 1;" statement_identifier : (expression_statement "local_40 = local_40 + 1;" (assignment_expression "local_40 = local_40 + 1" identifier = (binary_expression "local_40 + 1" identifier + number_literal)) ;)) (if_statement "if (*(byte **)(unaff_EBP + 0xa322) == local_40) {\n        local_40 = *(byte **)(unaff_EBP + 0xa326);\n      }" if (parenthesized_expression "(*(byte **)(unaff_EBP + 0xa322) == local_40)" ( (binary_expression "*(byte **)(unaff_EBP + 0xa322) == local_40" (pointer_expression "*(byte **)(unaff_EBP + 0xa322)" * (cast_expression "(byte **)(unaff_EBP + 0xa322)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBP + 0xa322)" ( (binary_expression "unaff_EBP + 0xa322" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n        local_40 = *(byte **)(unaff_EBP + 0xa326);\n      }" { (expression_statement "local_40 = *(byte **)(unaff_EBP + 0xa326);" (assignment_expression "local_40 = *(byte **)(unaff_EBP + 0xa326)" identifier = (pointer_expression "*(byte **)(unaff_EBP + 0xa326)" * (cast_expression "(byte **)(unaff_EBP + 0xa326)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBP + 0xa326)" ( (binary_expression "unaff_EBP + 0xa326" identifier + number_literal) ))))) ;) })) (labeled_statement "LAB_00011f1c:\n      pbVar5 = (byte *)__stream->_IO_read_ptr;" statement_identifier : (expression_statement "pbVar5 = (byte *)__stream->_IO_read_ptr;" (assignment_expression "pbVar5 = (byte *)__stream->_IO_read_ptr" identifier = (cast_expression "(byte *)__stream->_IO_read_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__stream->_IO_read_ptr" identifier -> field_identifier))) ;)) (expression_statement "pbVar8 = (byte *)__stream->_IO_read_end;" (assignment_expression "pbVar8 = (byte *)__stream->_IO_read_end" identifier = (cast_expression "(byte *)__stream->_IO_read_end" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__stream->_IO_read_end" identifier -> field_identifier))) ;) (expression_statement "uVar12 = uVar10;" (assignment_expression "uVar12 = uVar10" identifier = identifier) ;) (goto_statement "goto LAB_00011f24;" goto statement_identifier ;) })) (expression_statement "__stream = fopen64((char *)*param_2,(char *)(unaff_EBP + 0x51cc));" (assignment_expression "__stream = fopen64((char *)*param_2,(char *)(unaff_EBP + 0x51cc))" identifier = (call_expression "fopen64((char *)*param_2,(char *)(unaff_EBP + 0x51cc))" identifier (argument_list "((char *)*param_2,(char *)(unaff_EBP + 0x51cc))" ( (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) , (cast_expression "(char *)(unaff_EBP + 0x51cc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + 0x51cc)" ( (binary_expression "unaff_EBP + 0x51cc" identifier + number_literal) ))) )))) ;) (if_statement "if (__stream != (FILE *)0x0) {\n      FUN_00012690(__stream,2);\n      goto LAB_00011ec7;\n    }" if (parenthesized_expression "(__stream != (FILE *)0x0)" ( (binary_expression "__stream != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      FUN_00012690(__stream,2);\n      goto LAB_00011ec7;\n    }" { (expression_statement "FUN_00012690(__stream,2);" (call_expression "FUN_00012690(__stream,2)" identifier (argument_list "(__stream,2)" ( identifier , number_literal ))) ;) (goto_statement "goto LAB_00011ec7;" goto statement_identifier ;) })) (labeled_statement "LAB_00012033:\n    uVar6 = FUN_000146e0(0,3,*param_2);" statement_identifier : (expression_statement "uVar6 = FUN_000146e0(0,3,*param_2);" (assignment_expression "uVar6 = FUN_000146e0(0,3,*param_2)" identifier = (call_expression "FUN_000146e0(0,3,*param_2)" identifier (argument_list "(0,3,*param_2)" ( number_literal , number_literal , (pointer_expression "*param_2" * identifier) )))) ;)) (expression_statement "error(0,*piVar4,unaff_EBP + 0x5663,uVar6);" (call_expression "error(0,*piVar4,unaff_EBP + 0x5663,uVar6)" identifier (argument_list "(0,*piVar4,unaff_EBP + 0x5663,uVar6)" ( number_literal , (pointer_expression "*piVar4" * identifier) , (binary_expression "unaff_EBP + 0x5663" identifier + number_literal) , identifier ))) ;) (expression_statement "local_21 = 0;" (assignment_expression "local_21 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00011fcb:\n    param_2 = param_2 + 1;" statement_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 "uVar13 = param_1 == 0;" (assignment_expression "uVar13 = param_1 == 0" identifier = (binary_expression "param_1 == 0" identifier == number_literal)) ;) (expression_statement "param_1 = param_1 + -1;" (assignment_expression "param_1 = param_1 + -1" identifier = (binary_expression "param_1 + -1" identifier + number_literal)) ;) (expression_statement "uVar14 = param_1 == 0;" (assignment_expression "uVar14 = param_1 == 0" identifier = (binary_expression "param_1 == 0" identifier == number_literal)) ;) (if_statement "if ((bool)uVar14) {\n      return local_21;\n    }" if (parenthesized_expression "((bool)uVar14)" ( (cast_expression "(bool)uVar14" ( (type_descriptor "bool" primitive_type) ) identifier) )) (compound_statement "{\n      return local_21;\n    }" { (return_statement "return local_21;" return identifier ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */\n\n_Bool paste_serial(size_t nfiles,char **fnamptr)\n\n{\n  byte bVar1;\n  _IO_FILE *p_Var2;\n  undefined *puVar3;\n  int *piVar4;\n  byte *pbVar5;\n  char *pcVar6;\n  _IO_FILE *__stream;\n  int iVar7;\n  byte *pbVar8;\n  uint uVar9;\n  byte *pbVar10;\n  uint uVar11;\n  undefined1 uVar12;\n  undefined1 uVar13;\n  byte bVar14;\n  byte *local_40;\n  int local_30;\n  _Bool local_21;\n  \n  bVar14 = 0;\n  uVar12 = 0;\n  uVar13 = nfiles == 0;\n  if ((bool)uVar13) {\n    return true;\n  }\n  piVar4 = __errno_location();\n  puVar3 = PTR_stdout_0001bfd4;\n  local_21 = true;\nLAB_00011e90:\n  iVar7 = 2;\n  pbVar10 = (byte *)*fnamptr;\n  pbVar8 = &DAT_000180ad;\n  do {\n    if (iVar7 == 0) break;\n    iVar7 = iVar7 + -1;\n    uVar12 = *pbVar10 < *pbVar8;\n    uVar13 = *pbVar10 == *pbVar8;\n    pbVar10 = pbVar10 + (uint)bVar14 * -2 + 1;\n    pbVar8 = pbVar8 + (uint)bVar14 * -2 + 1;\n  } while ((bool)uVar13);\n  if ((!(bool)uVar12 && !(bool)uVar13) == (bool)uVar12) {\n    have_read_stdin = true;\n    __stream = *(_IO_FILE **)PTR_stdin_0001bfd0;\nLAB_00011ec7:\n    local_40 = (byte *)delims;\n    pbVar10 = (byte *)__stream->_IO_read_ptr;\n    pbVar8 = (byte *)__stream->_IO_read_end;\n    if (pbVar10 < pbVar8) {\n      pbVar5 = pbVar10 + 1;\n      __stream->_IO_read_ptr = (char *)pbVar5;\n      uVar11 = (uint)*pbVar10;\nLAB_00011f24:\n      do {\n        if (pbVar5 < pbVar8) {\n          __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n          uVar9 = (uint)*pbVar5;\n        }\n        else {\n          uVar9 = __uflow(__stream);\n          if (uVar9 == 0xffffffff) goto code_r0x00012089;\n        }\n        if (line_delim == uVar11) {\n          bVar1 = *local_40;\n          if (bVar1 != 0) {\n            p_Var2 = *(_IO_FILE **)puVar3;\n            pbVar10 = (byte *)p_Var2->_IO_write_ptr;\n            if (pbVar10 < p_Var2->_IO_write_end) {\n              p_Var2->_IO_write_ptr = (char *)(pbVar10 + 1);\n              *pbVar10 = bVar1;\n            }\n            else {\n              iVar7 = __overflow(p_Var2,(uint)bVar1);\n              if (iVar7 < 0) goto LAB_0001215c;\n            }\n          }\n          local_40 = local_40 + 1;\n          if ((byte *)delim_end == local_40) {\n            local_40 = (byte *)delims;\n          }\n        }\n        else {\n          p_Var2 = *(_IO_FILE **)puVar3;\n          pcVar6 = p_Var2->_IO_write_ptr;\n          if (pcVar6 < p_Var2->_IO_write_end) {\n            p_Var2->_IO_write_ptr = pcVar6 + 1;\n            *pcVar6 = (char)uVar11;\n          }\n          else {\n            iVar7 = __overflow(p_Var2,uVar11 & 0xff);\n            if (iVar7 < 0) goto LAB_0001215c;\n          }\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n        uVar11 = uVar9;\n      } while( true );\n    }\n    uVar11 = __uflow(__stream);\n    local_30 = *piVar4;\n    if (uVar11 != 0xffffffff) {\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      goto LAB_00011f24;\n    }\n    uVar9 = (uint)line_delim;\n    goto LAB_00011f92;\n  }\n  __stream = fopen64(*fnamptr,"r");\n  if (__stream != (FILE *)0x0) {\n    fadvise((FILE *)__stream,FADVISE_SEQUENTIAL);\n    goto LAB_00011ec7;\n  }\n  goto LAB_00012033;\ncode_r0x00012089:\n  local_30 = *piVar4;\n  p_Var2 = *(_IO_FILE **)puVar3;\n  pcVar6 = p_Var2->_IO_write_ptr;\n  if (pcVar6 < p_Var2->_IO_write_end) {\n    p_Var2->_IO_write_ptr = pcVar6 + 1;\n    *pcVar6 = (char)uVar11;\n  }\n  else {\n    iVar7 = __overflow(p_Var2,uVar11 & 0xff);\n    if (iVar7 < 0) goto LAB_0001215c;\n  }\n  uVar9 = (uint)line_delim;\n  if (uVar9 == uVar11) {\n    bVar1 = (byte)__stream->_flags;\n  }\n  else {\nLAB_00011f92:\n    p_Var2 = *(_IO_FILE **)puVar3;\n    pcVar6 = p_Var2->_IO_write_ptr;\n    if (pcVar6 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar6 + 1;\n      *pcVar6 = (char)uVar9;\n    }\n    else {\n      iVar7 = __overflow(p_Var2,uVar9);\n      if (iVar7 < 0) {\nLAB_0001215c:\n                    /* WARNING: Subroutine does not return */\n        write_error();\n      }\n    }\n    bVar1 = (byte)__stream->_flags;\n  }\n  if ((bVar1 & 0x20) != 0) {\n    pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,*fnamptr);\n    error(0,local_30,"%s",pcVar6);\n    local_21 = false;\n  }\n  if ((!(bool)uVar12 && !(bool)uVar13) == (bool)uVar12) {\n    clearerr_unlocked(__stream);\n  }\n  else {\n    iVar7 = rpl_fclose((FILE *)__stream);\n    if (iVar7 == -1) {\nLAB_00012033:\n      pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,*fnamptr);\n      error(0,*piVar4,"%s",pcVar6);\n      local_21 = false;\n    }\n  }\n  fnamptr = fnamptr + 1;\n  uVar12 = nfiles == 0;\n  nfiles = nfiles - 1;\n  uVar13 = nfiles == 0;\n  if ((bool)uVar13) {\n    return local_21;\n  }\n  goto LAB_00011e90;\n}\n\n" comment (function_definition "_Bool paste_serial(size_t nfiles,char **fnamptr)\n\n{\n  byte bVar1;\n  _IO_FILE *p_Var2;\n  undefined *puVar3;\n  int *piVar4;\n  byte *pbVar5;\n  char *pcVar6;\n  _IO_FILE *__stream;\n  int iVar7;\n  byte *pbVar8;\n  uint uVar9;\n  byte *pbVar10;\n  uint uVar11;\n  undefined1 uVar12;\n  undefined1 uVar13;\n  byte bVar14;\n  byte *local_40;\n  int local_30;\n  _Bool local_21;\n  \n  bVar14 = 0;\n  uVar12 = 0;\n  uVar13 = nfiles == 0;\n  if ((bool)uVar13) {\n    return true;\n  }\n  piVar4 = __errno_location();\n  puVar3 = PTR_stdout_0001bfd4;\n  local_21 = true;\nLAB_00011e90:\n  iVar7 = 2;\n  pbVar10 = (byte *)*fnamptr;\n  pbVar8 = &DAT_000180ad;\n  do {\n    if (iVar7 == 0) break;\n    iVar7 = iVar7 + -1;\n    uVar12 = *pbVar10 < *pbVar8;\n    uVar13 = *pbVar10 == *pbVar8;\n    pbVar10 = pbVar10 + (uint)bVar14 * -2 + 1;\n    pbVar8 = pbVar8 + (uint)bVar14 * -2 + 1;\n  } while ((bool)uVar13);\n  if ((!(bool)uVar12 && !(bool)uVar13) == (bool)uVar12) {\n    have_read_stdin = true;\n    __stream = *(_IO_FILE **)PTR_stdin_0001bfd0;\nLAB_00011ec7:\n    local_40 = (byte *)delims;\n    pbVar10 = (byte *)__stream->_IO_read_ptr;\n    pbVar8 = (byte *)__stream->_IO_read_end;\n    if (pbVar10 < pbVar8) {\n      pbVar5 = pbVar10 + 1;\n      __stream->_IO_read_ptr = (char *)pbVar5;\n      uVar11 = (uint)*pbVar10;\nLAB_00011f24:\n      do {\n        if (pbVar5 < pbVar8) {\n          __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n          uVar9 = (uint)*pbVar5;\n        }\n        else {\n          uVar9 = __uflow(__stream);\n          if (uVar9 == 0xffffffff) goto code_r0x00012089;\n        }\n        if (line_delim == uVar11) {\n          bVar1 = *local_40;\n          if (bVar1 != 0) {\n            p_Var2 = *(_IO_FILE **)puVar3;\n            pbVar10 = (byte *)p_Var2->_IO_write_ptr;\n            if (pbVar10 < p_Var2->_IO_write_end) {\n              p_Var2->_IO_write_ptr = (char *)(pbVar10 + 1);\n              *pbVar10 = bVar1;\n            }\n            else {\n              iVar7 = __overflow(p_Var2,(uint)bVar1);\n              if (iVar7 < 0) goto LAB_0001215c;\n            }\n          }\n          local_40 = local_40 + 1;\n          if ((byte *)delim_end == local_40) {\n            local_40 = (byte *)delims;\n          }\n        }\n        else {\n          p_Var2 = *(_IO_FILE **)puVar3;\n          pcVar6 = p_Var2->_IO_write_ptr;\n          if (pcVar6 < p_Var2->_IO_write_end) {\n            p_Var2->_IO_write_ptr = pcVar6 + 1;\n            *pcVar6 = (char)uVar11;\n          }\n          else {\n            iVar7 = __overflow(p_Var2,uVar11 & 0xff);\n            if (iVar7 < 0) goto LAB_0001215c;\n          }\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n        uVar11 = uVar9;\n      } while( true );\n    }\n    uVar11 = __uflow(__stream);\n    local_30 = *piVar4;\n    if (uVar11 != 0xffffffff) {\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      goto LAB_00011f24;\n    }\n    uVar9 = (uint)line_delim;\n    goto LAB_00011f92;\n  }\n  __stream = fopen64(*fnamptr,"r");\n  if (__stream != (FILE *)0x0) {\n    fadvise((FILE *)__stream,FADVISE_SEQUENTIAL);\n    goto LAB_00011ec7;\n  }\n  goto LAB_00012033;\ncode_r0x00012089:\n  local_30 = *piVar4;\n  p_Var2 = *(_IO_FILE **)puVar3;\n  pcVar6 = p_Var2->_IO_write_ptr;\n  if (pcVar6 < p_Var2->_IO_write_end) {\n    p_Var2->_IO_write_ptr = pcVar6 + 1;\n    *pcVar6 = (char)uVar11;\n  }\n  else {\n    iVar7 = __overflow(p_Var2,uVar11 & 0xff);\n    if (iVar7 < 0) goto LAB_0001215c;\n  }\n  uVar9 = (uint)line_delim;\n  if (uVar9 == uVar11) {\n    bVar1 = (byte)__stream->_flags;\n  }\n  else {\nLAB_00011f92:\n    p_Var2 = *(_IO_FILE **)puVar3;\n    pcVar6 = p_Var2->_IO_write_ptr;\n    if (pcVar6 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar6 + 1;\n      *pcVar6 = (char)uVar9;\n    }\n    else {\n      iVar7 = __overflow(p_Var2,uVar9);\n      if (iVar7 < 0) {\nLAB_0001215c:\n                    /* WARNING: Subroutine does not return */\n        write_error();\n      }\n    }\n    bVar1 = (byte)__stream->_flags;\n  }\n  if ((bVar1 & 0x20) != 0) {\n    pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,*fnamptr);\n    error(0,local_30,"%s",pcVar6);\n    local_21 = false;\n  }\n  if ((!(bool)uVar12 && !(bool)uVar13) == (bool)uVar12) {\n    clearerr_unlocked(__stream);\n  }\n  else {\n    iVar7 = rpl_fclose((FILE *)__stream);\n    if (iVar7 == -1) {\nLAB_00012033:\n      pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,*fnamptr);\n      error(0,*piVar4,"%s",pcVar6);\n      local_21 = false;\n    }\n  }\n  fnamptr = fnamptr + 1;\n  uVar12 = nfiles == 0;\n  nfiles = nfiles - 1;\n  uVar13 = nfiles == 0;\n  if ((bool)uVar13) {\n    return local_21;\n  }\n  goto LAB_00011e90;\n}" type_identifier (function_declarator "paste_serial(size_t nfiles,char **fnamptr)" identifier (parameter_list "(size_t nfiles,char **fnamptr)" ( (parameter_declaration "size_t nfiles" primitive_type identifier) , (parameter_declaration "char **fnamptr" primitive_type (pointer_declarator "**fnamptr" * (pointer_declarator "*fnamptr" * identifier))) ))) (compound_statement "{\n  byte bVar1;\n  _IO_FILE *p_Var2;\n  undefined *puVar3;\n  int *piVar4;\n  byte *pbVar5;\n  char *pcVar6;\n  _IO_FILE *__stream;\n  int iVar7;\n  byte *pbVar8;\n  uint uVar9;\n  byte *pbVar10;\n  uint uVar11;\n  undefined1 uVar12;\n  undefined1 uVar13;\n  byte bVar14;\n  byte *local_40;\n  int local_30;\n  _Bool local_21;\n  \n  bVar14 = 0;\n  uVar12 = 0;\n  uVar13 = nfiles == 0;\n  if ((bool)uVar13) {\n    return true;\n  }\n  piVar4 = __errno_location();\n  puVar3 = PTR_stdout_0001bfd4;\n  local_21 = true;\nLAB_00011e90:\n  iVar7 = 2;\n  pbVar10 = (byte *)*fnamptr;\n  pbVar8 = &DAT_000180ad;\n  do {\n    if (iVar7 == 0) break;\n    iVar7 = iVar7 + -1;\n    uVar12 = *pbVar10 < *pbVar8;\n    uVar13 = *pbVar10 == *pbVar8;\n    pbVar10 = pbVar10 + (uint)bVar14 * -2 + 1;\n    pbVar8 = pbVar8 + (uint)bVar14 * -2 + 1;\n  } while ((bool)uVar13);\n  if ((!(bool)uVar12 && !(bool)uVar13) == (bool)uVar12) {\n    have_read_stdin = true;\n    __stream = *(_IO_FILE **)PTR_stdin_0001bfd0;\nLAB_00011ec7:\n    local_40 = (byte *)delims;\n    pbVar10 = (byte *)__stream->_IO_read_ptr;\n    pbVar8 = (byte *)__stream->_IO_read_end;\n    if (pbVar10 < pbVar8) {\n      pbVar5 = pbVar10 + 1;\n      __stream->_IO_read_ptr = (char *)pbVar5;\n      uVar11 = (uint)*pbVar10;\nLAB_00011f24:\n      do {\n        if (pbVar5 < pbVar8) {\n          __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n          uVar9 = (uint)*pbVar5;\n        }\n        else {\n          uVar9 = __uflow(__stream);\n          if (uVar9 == 0xffffffff) goto code_r0x00012089;\n        }\n        if (line_delim == uVar11) {\n          bVar1 = *local_40;\n          if (bVar1 != 0) {\n            p_Var2 = *(_IO_FILE **)puVar3;\n            pbVar10 = (byte *)p_Var2->_IO_write_ptr;\n            if (pbVar10 < p_Var2->_IO_write_end) {\n              p_Var2->_IO_write_ptr = (char *)(pbVar10 + 1);\n              *pbVar10 = bVar1;\n            }\n            else {\n              iVar7 = __overflow(p_Var2,(uint)bVar1);\n              if (iVar7 < 0) goto LAB_0001215c;\n            }\n          }\n          local_40 = local_40 + 1;\n          if ((byte *)delim_end == local_40) {\n            local_40 = (byte *)delims;\n          }\n        }\n        else {\n          p_Var2 = *(_IO_FILE **)puVar3;\n          pcVar6 = p_Var2->_IO_write_ptr;\n          if (pcVar6 < p_Var2->_IO_write_end) {\n            p_Var2->_IO_write_ptr = pcVar6 + 1;\n            *pcVar6 = (char)uVar11;\n          }\n          else {\n            iVar7 = __overflow(p_Var2,uVar11 & 0xff);\n            if (iVar7 < 0) goto LAB_0001215c;\n          }\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n        uVar11 = uVar9;\n      } while( true );\n    }\n    uVar11 = __uflow(__stream);\n    local_30 = *piVar4;\n    if (uVar11 != 0xffffffff) {\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      goto LAB_00011f24;\n    }\n    uVar9 = (uint)line_delim;\n    goto LAB_00011f92;\n  }\n  __stream = fopen64(*fnamptr,"r");\n  if (__stream != (FILE *)0x0) {\n    fadvise((FILE *)__stream,FADVISE_SEQUENTIAL);\n    goto LAB_00011ec7;\n  }\n  goto LAB_00012033;\ncode_r0x00012089:\n  local_30 = *piVar4;\n  p_Var2 = *(_IO_FILE **)puVar3;\n  pcVar6 = p_Var2->_IO_write_ptr;\n  if (pcVar6 < p_Var2->_IO_write_end) {\n    p_Var2->_IO_write_ptr = pcVar6 + 1;\n    *pcVar6 = (char)uVar11;\n  }\n  else {\n    iVar7 = __overflow(p_Var2,uVar11 & 0xff);\n    if (iVar7 < 0) goto LAB_0001215c;\n  }\n  uVar9 = (uint)line_delim;\n  if (uVar9 == uVar11) {\n    bVar1 = (byte)__stream->_flags;\n  }\n  else {\nLAB_00011f92:\n    p_Var2 = *(_IO_FILE **)puVar3;\n    pcVar6 = p_Var2->_IO_write_ptr;\n    if (pcVar6 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar6 + 1;\n      *pcVar6 = (char)uVar9;\n    }\n    else {\n      iVar7 = __overflow(p_Var2,uVar9);\n      if (iVar7 < 0) {\nLAB_0001215c:\n                    /* WARNING: Subroutine does not return */\n        write_error();\n      }\n    }\n    bVar1 = (byte)__stream->_flags;\n  }\n  if ((bVar1 & 0x20) != 0) {\n    pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,*fnamptr);\n    error(0,local_30,"%s",pcVar6);\n    local_21 = false;\n  }\n  if ((!(bool)uVar12 && !(bool)uVar13) == (bool)uVar12) {\n    clearerr_unlocked(__stream);\n  }\n  else {\n    iVar7 = rpl_fclose((FILE *)__stream);\n    if (iVar7 == -1) {\nLAB_00012033:\n      pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,*fnamptr);\n      error(0,*piVar4,"%s",pcVar6);\n      local_21 = false;\n    }\n  }\n  fnamptr = fnamptr + 1;\n  uVar12 = nfiles == 0;\n  nfiles = nfiles - 1;\n  uVar13 = nfiles == 0;\n  if ((bool)uVar13) {\n    return local_21;\n  }\n  goto LAB_00011e90;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "_IO_FILE *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "_IO_FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "byte *pbVar10;" type_identifier (pointer_declarator "*pbVar10" * identifier) ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "undefined1 uVar12;" type_identifier identifier ;) (declaration "undefined1 uVar13;" type_identifier identifier ;) (declaration "byte bVar14;" type_identifier identifier ;) (declaration "byte *local_40;" type_identifier (pointer_declarator "*local_40" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "_Bool local_21;" type_identifier identifier ;) (expression_statement "bVar14 = 0;" (assignment_expression "bVar14 = 0" identifier = number_literal) ;) (expression_statement "uVar12 = 0;" (assignment_expression "uVar12 = 0" identifier = number_literal) ;) (expression_statement "uVar13 = nfiles == 0;" (assignment_expression "uVar13 = nfiles == 0" identifier = (binary_expression "nfiles == 0" identifier == number_literal)) ;) (if_statement "if ((bool)uVar13) {\n    return true;\n  }" if (parenthesized_expression "((bool)uVar13)" ( (cast_expression "(bool)uVar13" ( (type_descriptor "bool" primitive_type) ) identifier) )) (compound_statement "{\n    return true;\n  }" { (return_statement "return true;" return true ;) })) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar3 = PTR_stdout_0001bfd4;" (assignment_expression "puVar3 = PTR_stdout_0001bfd4" identifier = identifier) ;) (expression_statement "local_21 = true;" (assignment_expression "local_21 = true" identifier = true) ;) (labeled_statement "LAB_00011e90:\n  iVar7 = 2;" statement_identifier : (expression_statement "iVar7 = 2;" (assignment_expression "iVar7 = 2" identifier = number_literal) ;)) (expression_statement "pbVar10 = (byte *)*fnamptr;" (assignment_expression "pbVar10 = (byte *)*fnamptr" identifier = (cast_expression "(byte *)*fnamptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*fnamptr" * identifier))) ;) (expression_statement "pbVar8 = &DAT_000180ad;" (assignment_expression "pbVar8 = &DAT_000180ad" identifier = (pointer_expression "&DAT_000180ad" & identifier)) ;) (do_statement "do {\n    if (iVar7 == 0) break;\n    iVar7 = iVar7 + -1;\n    uVar12 = *pbVar10 < *pbVar8;\n    uVar13 = *pbVar10 == *pbVar8;\n    pbVar10 = pbVar10 + (uint)bVar14 * -2 + 1;\n    pbVar8 = pbVar8 + (uint)bVar14 * -2 + 1;\n  } while ((bool)uVar13);" do (compound_statement "{\n    if (iVar7 == 0) break;\n    iVar7 = iVar7 + -1;\n    uVar12 = *pbVar10 < *pbVar8;\n    uVar13 = *pbVar10 == *pbVar8;\n    pbVar10 = pbVar10 + (uint)bVar14 * -2 + 1;\n    pbVar8 = pbVar8 + (uint)bVar14 * -2 + 1;\n  }" { (if_statement "if (iVar7 == 0) break;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "uVar12 = *pbVar10 < *pbVar8;" (assignment_expression "uVar12 = *pbVar10 < *pbVar8" identifier = (binary_expression "*pbVar10 < *pbVar8" (pointer_expression "*pbVar10" * identifier) < (pointer_expression "*pbVar8" * identifier))) ;) (expression_statement "uVar13 = *pbVar10 == *pbVar8;" (assignment_expression "uVar13 = *pbVar10 == *pbVar8" identifier = (binary_expression "*pbVar10 == *pbVar8" (pointer_expression "*pbVar10" * identifier) == (pointer_expression "*pbVar8" * identifier))) ;) (expression_statement "pbVar10 = pbVar10 + (uint)bVar14 * -2 + 1;" (assignment_expression "pbVar10 = pbVar10 + (uint)bVar14 * -2 + 1" identifier = (binary_expression "pbVar10 + (uint)bVar14 * -2 + 1" (binary_expression "pbVar10 + (uint)bVar14 * -2" identifier + (binary_expression "(uint)bVar14 * -2" (cast_expression "(uint)bVar14" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar8 = pbVar8 + (uint)bVar14 * -2 + 1;" (assignment_expression "pbVar8 = pbVar8 + (uint)bVar14 * -2 + 1" identifier = (binary_expression "pbVar8 + (uint)bVar14 * -2 + 1" (binary_expression "pbVar8 + (uint)bVar14 * -2" identifier + (binary_expression "(uint)bVar14 * -2" (cast_expression "(uint)bVar14" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "((bool)uVar13)" ( (cast_expression "(bool)uVar13" ( (type_descriptor "bool" primitive_type) ) identifier) )) ;) (if_statement "if ((!(bool)uVar12 && !(bool)uVar13) == (bool)uVar12) {\n    have_read_stdin = true;\n    __stream = *(_IO_FILE **)PTR_stdin_0001bfd0;\nLAB_00011ec7:\n    local_40 = (byte *)delims;\n    pbVar10 = (byte *)__stream->_IO_read_ptr;\n    pbVar8 = (byte *)__stream->_IO_read_end;\n    if (pbVar10 < pbVar8) {\n      pbVar5 = pbVar10 + 1;\n      __stream->_IO_read_ptr = (char *)pbVar5;\n      uVar11 = (uint)*pbVar10;\nLAB_00011f24:\n      do {\n        if (pbVar5 < pbVar8) {\n          __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n          uVar9 = (uint)*pbVar5;\n        }\n        else {\n          uVar9 = __uflow(__stream);\n          if (uVar9 == 0xffffffff) goto code_r0x00012089;\n        }\n        if (line_delim == uVar11) {\n          bVar1 = *local_40;\n          if (bVar1 != 0) {\n            p_Var2 = *(_IO_FILE **)puVar3;\n            pbVar10 = (byte *)p_Var2->_IO_write_ptr;\n            if (pbVar10 < p_Var2->_IO_write_end) {\n              p_Var2->_IO_write_ptr = (char *)(pbVar10 + 1);\n              *pbVar10 = bVar1;\n            }\n            else {\n              iVar7 = __overflow(p_Var2,(uint)bVar1);\n              if (iVar7 < 0) goto LAB_0001215c;\n            }\n          }\n          local_40 = local_40 + 1;\n          if ((byte *)delim_end == local_40) {\n            local_40 = (byte *)delims;\n          }\n        }\n        else {\n          p_Var2 = *(_IO_FILE **)puVar3;\n          pcVar6 = p_Var2->_IO_write_ptr;\n          if (pcVar6 < p_Var2->_IO_write_end) {\n            p_Var2->_IO_write_ptr = pcVar6 + 1;\n            *pcVar6 = (char)uVar11;\n          }\n          else {\n            iVar7 = __overflow(p_Var2,uVar11 & 0xff);\n            if (iVar7 < 0) goto LAB_0001215c;\n          }\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n        uVar11 = uVar9;\n      } while( true );\n    }\n    uVar11 = __uflow(__stream);\n    local_30 = *piVar4;\n    if (uVar11 != 0xffffffff) {\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      goto LAB_00011f24;\n    }\n    uVar9 = (uint)line_delim;\n    goto LAB_00011f92;\n  }" if (parenthesized_expression "((!(bool)uVar12 && !(bool)uVar13) == (bool)uVar12)" ( (binary_expression "(!(bool)uVar12 && !(bool)uVar13) == (bool)uVar12" (parenthesized_expression "(!(bool)uVar12 && !(bool)uVar13)" ( (binary_expression "!(bool)uVar12 && !(bool)uVar13" (unary_expression "!(bool)uVar12" ! (cast_expression "(bool)uVar12" ( (type_descriptor "bool" primitive_type) ) identifier)) && (unary_expression "!(bool)uVar13" ! (cast_expression "(bool)uVar13" ( (type_descriptor "bool" primitive_type) ) identifier))) )) == (cast_expression "(bool)uVar12" ( (type_descriptor "bool" primitive_type) ) identifier)) )) (compound_statement "{\n    have_read_stdin = true;\n    __stream = *(_IO_FILE **)PTR_stdin_0001bfd0;\nLAB_00011ec7:\n    local_40 = (byte *)delims;\n    pbVar10 = (byte *)__stream->_IO_read_ptr;\n    pbVar8 = (byte *)__stream->_IO_read_end;\n    if (pbVar10 < pbVar8) {\n      pbVar5 = pbVar10 + 1;\n      __stream->_IO_read_ptr = (char *)pbVar5;\n      uVar11 = (uint)*pbVar10;\nLAB_00011f24:\n      do {\n        if (pbVar5 < pbVar8) {\n          __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n          uVar9 = (uint)*pbVar5;\n        }\n        else {\n          uVar9 = __uflow(__stream);\n          if (uVar9 == 0xffffffff) goto code_r0x00012089;\n        }\n        if (line_delim == uVar11) {\n          bVar1 = *local_40;\n          if (bVar1 != 0) {\n            p_Var2 = *(_IO_FILE **)puVar3;\n            pbVar10 = (byte *)p_Var2->_IO_write_ptr;\n            if (pbVar10 < p_Var2->_IO_write_end) {\n              p_Var2->_IO_write_ptr = (char *)(pbVar10 + 1);\n              *pbVar10 = bVar1;\n            }\n            else {\n              iVar7 = __overflow(p_Var2,(uint)bVar1);\n              if (iVar7 < 0) goto LAB_0001215c;\n            }\n          }\n          local_40 = local_40 + 1;\n          if ((byte *)delim_end == local_40) {\n            local_40 = (byte *)delims;\n          }\n        }\n        else {\n          p_Var2 = *(_IO_FILE **)puVar3;\n          pcVar6 = p_Var2->_IO_write_ptr;\n          if (pcVar6 < p_Var2->_IO_write_end) {\n            p_Var2->_IO_write_ptr = pcVar6 + 1;\n            *pcVar6 = (char)uVar11;\n          }\n          else {\n            iVar7 = __overflow(p_Var2,uVar11 & 0xff);\n            if (iVar7 < 0) goto LAB_0001215c;\n          }\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n        uVar11 = uVar9;\n      } while( true );\n    }\n    uVar11 = __uflow(__stream);\n    local_30 = *piVar4;\n    if (uVar11 != 0xffffffff) {\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      goto LAB_00011f24;\n    }\n    uVar9 = (uint)line_delim;\n    goto LAB_00011f92;\n  }" { (expression_statement "have_read_stdin = true;" (assignment_expression "have_read_stdin = true" identifier = true) ;) (expression_statement "__stream = *(_IO_FILE **)PTR_stdin_0001bfd0;" (assignment_expression "__stream = *(_IO_FILE **)PTR_stdin_0001bfd0" identifier = (pointer_expression "*(_IO_FILE **)PTR_stdin_0001bfd0" * (cast_expression "(_IO_FILE **)PTR_stdin_0001bfd0" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (labeled_statement "LAB_00011ec7:\n    local_40 = (byte *)delims;" statement_identifier : (expression_statement "local_40 = (byte *)delims;" (assignment_expression "local_40 = (byte *)delims" identifier = (cast_expression "(byte *)delims" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;)) (expression_statement "pbVar10 = (byte *)__stream->_IO_read_ptr;" (assignment_expression "pbVar10 = (byte *)__stream->_IO_read_ptr" identifier = (cast_expression "(byte *)__stream->_IO_read_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__stream->_IO_read_ptr" identifier -> field_identifier))) ;) (expression_statement "pbVar8 = (byte *)__stream->_IO_read_end;" (assignment_expression "pbVar8 = (byte *)__stream->_IO_read_end" identifier = (cast_expression "(byte *)__stream->_IO_read_end" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__stream->_IO_read_end" identifier -> field_identifier))) ;) (if_statement "if (pbVar10 < pbVar8) {\n      pbVar5 = pbVar10 + 1;\n      __stream->_IO_read_ptr = (char *)pbVar5;\n      uVar11 = (uint)*pbVar10;\nLAB_00011f24:\n      do {\n        if (pbVar5 < pbVar8) {\n          __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n          uVar9 = (uint)*pbVar5;\n        }\n        else {\n          uVar9 = __uflow(__stream);\n          if (uVar9 == 0xffffffff) goto code_r0x00012089;\n        }\n        if (line_delim == uVar11) {\n          bVar1 = *local_40;\n          if (bVar1 != 0) {\n            p_Var2 = *(_IO_FILE **)puVar3;\n            pbVar10 = (byte *)p_Var2->_IO_write_ptr;\n            if (pbVar10 < p_Var2->_IO_write_end) {\n              p_Var2->_IO_write_ptr = (char *)(pbVar10 + 1);\n              *pbVar10 = bVar1;\n            }\n            else {\n              iVar7 = __overflow(p_Var2,(uint)bVar1);\n              if (iVar7 < 0) goto LAB_0001215c;\n            }\n          }\n          local_40 = local_40 + 1;\n          if ((byte *)delim_end == local_40) {\n            local_40 = (byte *)delims;\n          }\n        }\n        else {\n          p_Var2 = *(_IO_FILE **)puVar3;\n          pcVar6 = p_Var2->_IO_write_ptr;\n          if (pcVar6 < p_Var2->_IO_write_end) {\n            p_Var2->_IO_write_ptr = pcVar6 + 1;\n            *pcVar6 = (char)uVar11;\n          }\n          else {\n            iVar7 = __overflow(p_Var2,uVar11 & 0xff);\n            if (iVar7 < 0) goto LAB_0001215c;\n          }\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n        uVar11 = uVar9;\n      } while( true );\n    }" if (parenthesized_expression "(pbVar10 < pbVar8)" ( (binary_expression "pbVar10 < pbVar8" identifier < identifier) )) (compound_statement "{\n      pbVar5 = pbVar10 + 1;\n      __stream->_IO_read_ptr = (char *)pbVar5;\n      uVar11 = (uint)*pbVar10;\nLAB_00011f24:\n      do {\n        if (pbVar5 < pbVar8) {\n          __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n          uVar9 = (uint)*pbVar5;\n        }\n        else {\n          uVar9 = __uflow(__stream);\n          if (uVar9 == 0xffffffff) goto code_r0x00012089;\n        }\n        if (line_delim == uVar11) {\n          bVar1 = *local_40;\n          if (bVar1 != 0) {\n            p_Var2 = *(_IO_FILE **)puVar3;\n            pbVar10 = (byte *)p_Var2->_IO_write_ptr;\n            if (pbVar10 < p_Var2->_IO_write_end) {\n              p_Var2->_IO_write_ptr = (char *)(pbVar10 + 1);\n              *pbVar10 = bVar1;\n            }\n            else {\n              iVar7 = __overflow(p_Var2,(uint)bVar1);\n              if (iVar7 < 0) goto LAB_0001215c;\n            }\n          }\n          local_40 = local_40 + 1;\n          if ((byte *)delim_end == local_40) {\n            local_40 = (byte *)delims;\n          }\n        }\n        else {\n          p_Var2 = *(_IO_FILE **)puVar3;\n          pcVar6 = p_Var2->_IO_write_ptr;\n          if (pcVar6 < p_Var2->_IO_write_end) {\n            p_Var2->_IO_write_ptr = pcVar6 + 1;\n            *pcVar6 = (char)uVar11;\n          }\n          else {\n            iVar7 = __overflow(p_Var2,uVar11 & 0xff);\n            if (iVar7 < 0) goto LAB_0001215c;\n          }\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n        uVar11 = uVar9;\n      } while( true );\n    }" { (expression_statement "pbVar5 = pbVar10 + 1;" (assignment_expression "pbVar5 = pbVar10 + 1" identifier = (binary_expression "pbVar10 + 1" identifier + number_literal)) ;) (expression_statement "__stream->_IO_read_ptr = (char *)pbVar5;" (assignment_expression "__stream->_IO_read_ptr = (char *)pbVar5" (field_expression "__stream->_IO_read_ptr" identifier -> field_identifier) = (cast_expression "(char *)pbVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "uVar11 = (uint)*pbVar10;" (assignment_expression "uVar11 = (uint)*pbVar10" identifier = (binary_expression "(uint)*pbVar10" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (labeled_statement "LAB_00011f24:\n      do {\n        if (pbVar5 < pbVar8) {\n          __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n          uVar9 = (uint)*pbVar5;\n        }\n        else {\n          uVar9 = __uflow(__stream);\n          if (uVar9 == 0xffffffff) goto code_r0x00012089;\n        }\n        if (line_delim == uVar11) {\n          bVar1 = *local_40;\n          if (bVar1 != 0) {\n            p_Var2 = *(_IO_FILE **)puVar3;\n            pbVar10 = (byte *)p_Var2->_IO_write_ptr;\n            if (pbVar10 < p_Var2->_IO_write_end) {\n              p_Var2->_IO_write_ptr = (char *)(pbVar10 + 1);\n              *pbVar10 = bVar1;\n            }\n            else {\n              iVar7 = __overflow(p_Var2,(uint)bVar1);\n              if (iVar7 < 0) goto LAB_0001215c;\n            }\n          }\n          local_40 = local_40 + 1;\n          if ((byte *)delim_end == local_40) {\n            local_40 = (byte *)delims;\n          }\n        }\n        else {\n          p_Var2 = *(_IO_FILE **)puVar3;\n          pcVar6 = p_Var2->_IO_write_ptr;\n          if (pcVar6 < p_Var2->_IO_write_end) {\n            p_Var2->_IO_write_ptr = pcVar6 + 1;\n            *pcVar6 = (char)uVar11;\n          }\n          else {\n            iVar7 = __overflow(p_Var2,uVar11 & 0xff);\n            if (iVar7 < 0) goto LAB_0001215c;\n          }\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n        uVar11 = uVar9;\n      } while( true );" statement_identifier : (do_statement "do {\n        if (pbVar5 < pbVar8) {\n          __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n          uVar9 = (uint)*pbVar5;\n        }\n        else {\n          uVar9 = __uflow(__stream);\n          if (uVar9 == 0xffffffff) goto code_r0x00012089;\n        }\n        if (line_delim == uVar11) {\n          bVar1 = *local_40;\n          if (bVar1 != 0) {\n            p_Var2 = *(_IO_FILE **)puVar3;\n            pbVar10 = (byte *)p_Var2->_IO_write_ptr;\n            if (pbVar10 < p_Var2->_IO_write_end) {\n              p_Var2->_IO_write_ptr = (char *)(pbVar10 + 1);\n              *pbVar10 = bVar1;\n            }\n            else {\n              iVar7 = __overflow(p_Var2,(uint)bVar1);\n              if (iVar7 < 0) goto LAB_0001215c;\n            }\n          }\n          local_40 = local_40 + 1;\n          if ((byte *)delim_end == local_40) {\n            local_40 = (byte *)delims;\n          }\n        }\n        else {\n          p_Var2 = *(_IO_FILE **)puVar3;\n          pcVar6 = p_Var2->_IO_write_ptr;\n          if (pcVar6 < p_Var2->_IO_write_end) {\n            p_Var2->_IO_write_ptr = pcVar6 + 1;\n            *pcVar6 = (char)uVar11;\n          }\n          else {\n            iVar7 = __overflow(p_Var2,uVar11 & 0xff);\n            if (iVar7 < 0) goto LAB_0001215c;\n          }\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n        uVar11 = uVar9;\n      } while( true );" do (compound_statement "{\n        if (pbVar5 < pbVar8) {\n          __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n          uVar9 = (uint)*pbVar5;\n        }\n        else {\n          uVar9 = __uflow(__stream);\n          if (uVar9 == 0xffffffff) goto code_r0x00012089;\n        }\n        if (line_delim == uVar11) {\n          bVar1 = *local_40;\n          if (bVar1 != 0) {\n            p_Var2 = *(_IO_FILE **)puVar3;\n            pbVar10 = (byte *)p_Var2->_IO_write_ptr;\n            if (pbVar10 < p_Var2->_IO_write_end) {\n              p_Var2->_IO_write_ptr = (char *)(pbVar10 + 1);\n              *pbVar10 = bVar1;\n            }\n            else {\n              iVar7 = __overflow(p_Var2,(uint)bVar1);\n              if (iVar7 < 0) goto LAB_0001215c;\n            }\n          }\n          local_40 = local_40 + 1;\n          if ((byte *)delim_end == local_40) {\n            local_40 = (byte *)delims;\n          }\n        }\n        else {\n          p_Var2 = *(_IO_FILE **)puVar3;\n          pcVar6 = p_Var2->_IO_write_ptr;\n          if (pcVar6 < p_Var2->_IO_write_end) {\n            p_Var2->_IO_write_ptr = pcVar6 + 1;\n            *pcVar6 = (char)uVar11;\n          }\n          else {\n            iVar7 = __overflow(p_Var2,uVar11 & 0xff);\n            if (iVar7 < 0) goto LAB_0001215c;\n          }\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n        uVar11 = uVar9;\n      }" { (if_statement "if (pbVar5 < pbVar8) {\n          __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n          uVar9 = (uint)*pbVar5;\n        }\n        else {\n          uVar9 = __uflow(__stream);\n          if (uVar9 == 0xffffffff) goto code_r0x00012089;\n        }" if (parenthesized_expression "(pbVar5 < pbVar8)" ( (binary_expression "pbVar5 < pbVar8" identifier < identifier) )) (compound_statement "{\n          __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n          uVar9 = (uint)*pbVar5;\n        }" { (expression_statement "__stream->_IO_read_ptr = (char *)(pbVar5 + 1);" (assignment_expression "__stream->_IO_read_ptr = (char *)(pbVar5 + 1)" (field_expression "__stream->_IO_read_ptr" identifier -> field_identifier) = (cast_expression "(char *)(pbVar5 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar5 + 1)" ( (binary_expression "pbVar5 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar9 = (uint)*pbVar5;" (assignment_expression "uVar9 = (uint)*pbVar5" identifier = (binary_expression "(uint)*pbVar5" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }) (else_clause "else {\n          uVar9 = __uflow(__stream);\n          if (uVar9 == 0xffffffff) goto code_r0x00012089;\n        }" else (compound_statement "{\n          uVar9 = __uflow(__stream);\n          if (uVar9 == 0xffffffff) goto code_r0x00012089;\n        }" { (expression_statement "uVar9 = __uflow(__stream);" (assignment_expression "uVar9 = __uflow(__stream)" identifier = (call_expression "__uflow(__stream)" identifier (argument_list "(__stream)" ( identifier )))) ;) (if_statement "if (uVar9 == 0xffffffff) goto code_r0x00012089;" if (parenthesized_expression "(uVar9 == 0xffffffff)" ( (binary_expression "uVar9 == 0xffffffff" identifier == number_literal) )) (goto_statement "goto code_r0x00012089;" goto statement_identifier ;)) }))) (if_statement "if (line_delim == uVar11) {\n          bVar1 = *local_40;\n          if (bVar1 != 0) {\n            p_Var2 = *(_IO_FILE **)puVar3;\n            pbVar10 = (byte *)p_Var2->_IO_write_ptr;\n            if (pbVar10 < p_Var2->_IO_write_end) {\n              p_Var2->_IO_write_ptr = (char *)(pbVar10 + 1);\n              *pbVar10 = bVar1;\n            }\n            else {\n              iVar7 = __overflow(p_Var2,(uint)bVar1);\n              if (iVar7 < 0) goto LAB_0001215c;\n            }\n          }\n          local_40 = local_40 + 1;\n          if ((byte *)delim_end == local_40) {\n            local_40 = (byte *)delims;\n          }\n        }\n        else {\n          p_Var2 = *(_IO_FILE **)puVar3;\n          pcVar6 = p_Var2->_IO_write_ptr;\n          if (pcVar6 < p_Var2->_IO_write_end) {\n            p_Var2->_IO_write_ptr = pcVar6 + 1;\n            *pcVar6 = (char)uVar11;\n          }\n          else {\n            iVar7 = __overflow(p_Var2,uVar11 & 0xff);\n            if (iVar7 < 0) goto LAB_0001215c;\n          }\n        }" if (parenthesized_expression "(line_delim == uVar11)" ( (binary_expression "line_delim == uVar11" identifier == identifier) )) (compound_statement "{\n          bVar1 = *local_40;\n          if (bVar1 != 0) {\n            p_Var2 = *(_IO_FILE **)puVar3;\n            pbVar10 = (byte *)p_Var2->_IO_write_ptr;\n            if (pbVar10 < p_Var2->_IO_write_end) {\n              p_Var2->_IO_write_ptr = (char *)(pbVar10 + 1);\n              *pbVar10 = bVar1;\n            }\n            else {\n              iVar7 = __overflow(p_Var2,(uint)bVar1);\n              if (iVar7 < 0) goto LAB_0001215c;\n            }\n          }\n          local_40 = local_40 + 1;\n          if ((byte *)delim_end == local_40) {\n            local_40 = (byte *)delims;\n          }\n        }" { (expression_statement "bVar1 = *local_40;" (assignment_expression "bVar1 = *local_40" identifier = (pointer_expression "*local_40" * identifier)) ;) (if_statement "if (bVar1 != 0) {\n            p_Var2 = *(_IO_FILE **)puVar3;\n            pbVar10 = (byte *)p_Var2->_IO_write_ptr;\n            if (pbVar10 < p_Var2->_IO_write_end) {\n              p_Var2->_IO_write_ptr = (char *)(pbVar10 + 1);\n              *pbVar10 = bVar1;\n            }\n            else {\n              iVar7 = __overflow(p_Var2,(uint)bVar1);\n              if (iVar7 < 0) goto LAB_0001215c;\n            }\n          }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n            p_Var2 = *(_IO_FILE **)puVar3;\n            pbVar10 = (byte *)p_Var2->_IO_write_ptr;\n            if (pbVar10 < p_Var2->_IO_write_end) {\n              p_Var2->_IO_write_ptr = (char *)(pbVar10 + 1);\n              *pbVar10 = bVar1;\n            }\n            else {\n              iVar7 = __overflow(p_Var2,(uint)bVar1);\n              if (iVar7 < 0) goto LAB_0001215c;\n            }\n          }" { (expression_statement "p_Var2 = *(_IO_FILE **)puVar3;" (assignment_expression "p_Var2 = *(_IO_FILE **)puVar3" identifier = (pointer_expression "*(_IO_FILE **)puVar3" * (cast_expression "(_IO_FILE **)puVar3" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pbVar10 = (byte *)p_Var2->_IO_write_ptr;" (assignment_expression "pbVar10 = (byte *)p_Var2->_IO_write_ptr" identifier = (cast_expression "(byte *)p_Var2->_IO_write_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier))) ;) (if_statement "if (pbVar10 < p_Var2->_IO_write_end) {\n              p_Var2->_IO_write_ptr = (char *)(pbVar10 + 1);\n              *pbVar10 = bVar1;\n            }\n            else {\n              iVar7 = __overflow(p_Var2,(uint)bVar1);\n              if (iVar7 < 0) goto LAB_0001215c;\n            }" if (parenthesized_expression "(pbVar10 < p_Var2->_IO_write_end)" ( (binary_expression "pbVar10 < p_Var2->_IO_write_end" identifier < (field_expression "p_Var2->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n              p_Var2->_IO_write_ptr = (char *)(pbVar10 + 1);\n              *pbVar10 = bVar1;\n            }" { (expression_statement "p_Var2->_IO_write_ptr = (char *)(pbVar10 + 1);" (assignment_expression "p_Var2->_IO_write_ptr = (char *)(pbVar10 + 1)" (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier) = (cast_expression "(char *)(pbVar10 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar10 + 1)" ( (binary_expression "pbVar10 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar10 = bVar1;" (assignment_expression "*pbVar10 = bVar1" (pointer_expression "*pbVar10" * identifier) = identifier) ;) }) (else_clause "else {\n              iVar7 = __overflow(p_Var2,(uint)bVar1);\n              if (iVar7 < 0) goto LAB_0001215c;\n            }" else (compound_statement "{\n              iVar7 = __overflow(p_Var2,(uint)bVar1);\n              if (iVar7 < 0) goto LAB_0001215c;\n            }" { (expression_statement "iVar7 = __overflow(p_Var2,(uint)bVar1);" (assignment_expression "iVar7 = __overflow(p_Var2,(uint)bVar1)" identifier = (call_expression "__overflow(p_Var2,(uint)bVar1)" identifier (argument_list "(p_Var2,(uint)bVar1)" ( identifier , (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) )))) ;) (if_statement "if (iVar7 < 0) goto LAB_0001215c;" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0001215c;" goto statement_identifier ;)) }))) })) (expression_statement "local_40 = local_40 + 1;" (assignment_expression "local_40 = local_40 + 1" identifier = (binary_expression "local_40 + 1" identifier + number_literal)) ;) (if_statement "if ((byte *)delim_end == local_40) {\n            local_40 = (byte *)delims;\n          }" if (parenthesized_expression "((byte *)delim_end == local_40)" ( (binary_expression "(byte *)delim_end == local_40" (cast_expression "(byte *)delim_end" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) == identifier) )) (compound_statement "{\n            local_40 = (byte *)delims;\n          }" { (expression_statement "local_40 = (byte *)delims;" (assignment_expression "local_40 = (byte *)delims" identifier = (cast_expression "(byte *)delims" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) }) (else_clause "else {\n          p_Var2 = *(_IO_FILE **)puVar3;\n          pcVar6 = p_Var2->_IO_write_ptr;\n          if (pcVar6 < p_Var2->_IO_write_end) {\n            p_Var2->_IO_write_ptr = pcVar6 + 1;\n            *pcVar6 = (char)uVar11;\n          }\n          else {\n            iVar7 = __overflow(p_Var2,uVar11 & 0xff);\n            if (iVar7 < 0) goto LAB_0001215c;\n          }\n        }" else (compound_statement "{\n          p_Var2 = *(_IO_FILE **)puVar3;\n          pcVar6 = p_Var2->_IO_write_ptr;\n          if (pcVar6 < p_Var2->_IO_write_end) {\n            p_Var2->_IO_write_ptr = pcVar6 + 1;\n            *pcVar6 = (char)uVar11;\n          }\n          else {\n            iVar7 = __overflow(p_Var2,uVar11 & 0xff);\n            if (iVar7 < 0) goto LAB_0001215c;\n          }\n        }" { (expression_statement "p_Var2 = *(_IO_FILE **)puVar3;" (assignment_expression "p_Var2 = *(_IO_FILE **)puVar3" identifier = (pointer_expression "*(_IO_FILE **)puVar3" * (cast_expression "(_IO_FILE **)puVar3" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pcVar6 = p_Var2->_IO_write_ptr;" (assignment_expression "pcVar6 = p_Var2->_IO_write_ptr" identifier = (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier)) ;) (if_statement "if (pcVar6 < p_Var2->_IO_write_end) {\n            p_Var2->_IO_write_ptr = pcVar6 + 1;\n            *pcVar6 = (char)uVar11;\n          }\n          else {\n            iVar7 = __overflow(p_Var2,uVar11 & 0xff);\n            if (iVar7 < 0) goto LAB_0001215c;\n          }" if (parenthesized_expression "(pcVar6 < p_Var2->_IO_write_end)" ( (binary_expression "pcVar6 < p_Var2->_IO_write_end" identifier < (field_expression "p_Var2->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n            p_Var2->_IO_write_ptr = pcVar6 + 1;\n            *pcVar6 = (char)uVar11;\n          }" { (expression_statement "p_Var2->_IO_write_ptr = pcVar6 + 1;" (assignment_expression "p_Var2->_IO_write_ptr = pcVar6 + 1" (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar6 = (char)uVar11;" (assignment_expression "*pcVar6 = (char)uVar11" (pointer_expression "*pcVar6" * identifier) = (cast_expression "(char)uVar11" ( (type_descriptor "char" primitive_type) ) identifier)) ;) }) (else_clause "else {\n            iVar7 = __overflow(p_Var2,uVar11 & 0xff);\n            if (iVar7 < 0) goto LAB_0001215c;\n          }" else (compound_statement "{\n            iVar7 = __overflow(p_Var2,uVar11 & 0xff);\n            if (iVar7 < 0) goto LAB_0001215c;\n          }" { (expression_statement "iVar7 = __overflow(p_Var2,uVar11 & 0xff);" (assignment_expression "iVar7 = __overflow(p_Var2,uVar11 & 0xff)" identifier = (call_expression "__overflow(p_Var2,uVar11 & 0xff)" identifier (argument_list "(p_Var2,uVar11 & 0xff)" ( identifier , (binary_expression "uVar11 & 0xff" identifier & number_literal) )))) ;) (if_statement "if (iVar7 < 0) goto LAB_0001215c;" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0001215c;" goto statement_identifier ;)) }))) }))) (expression_statement "pbVar5 = (byte *)__stream->_IO_read_ptr;" (assignment_expression "pbVar5 = (byte *)__stream->_IO_read_ptr" identifier = (cast_expression "(byte *)__stream->_IO_read_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__stream->_IO_read_ptr" identifier -> field_identifier))) ;) (expression_statement "pbVar8 = (byte *)__stream->_IO_read_end;" (assignment_expression "pbVar8 = (byte *)__stream->_IO_read_end" identifier = (cast_expression "(byte *)__stream->_IO_read_end" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__stream->_IO_read_end" identifier -> field_identifier))) ;) (expression_statement "uVar11 = uVar9;" (assignment_expression "uVar11 = uVar9" identifier = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;)) })) (expression_statement "uVar11 = __uflow(__stream);" (assignment_expression "uVar11 = __uflow(__stream)" identifier = (call_expression "__uflow(__stream)" identifier (argument_list "(__stream)" ( identifier )))) ;) (expression_statement "local_30 = *piVar4;" (assignment_expression "local_30 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (if_statement "if (uVar11 != 0xffffffff) {\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      goto LAB_00011f24;\n    }" if (parenthesized_expression "(uVar11 != 0xffffffff)" ( (binary_expression "uVar11 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      goto LAB_00011f24;\n    }" { (expression_statement "pbVar5 = (byte *)__stream->_IO_read_ptr;" (assignment_expression "pbVar5 = (byte *)__stream->_IO_read_ptr" identifier = (cast_expression "(byte *)__stream->_IO_read_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__stream->_IO_read_ptr" identifier -> field_identifier))) ;) (expression_statement "pbVar8 = (byte *)__stream->_IO_read_end;" (assignment_expression "pbVar8 = (byte *)__stream->_IO_read_end" identifier = (cast_expression "(byte *)__stream->_IO_read_end" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__stream->_IO_read_end" identifier -> field_identifier))) ;) (goto_statement "goto LAB_00011f24;" goto statement_identifier ;) })) (expression_statement "uVar9 = (uint)line_delim;" (assignment_expression "uVar9 = (uint)line_delim" identifier = (cast_expression "(uint)line_delim" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (goto_statement "goto LAB_00011f92;" goto statement_identifier ;) })) (expression_statement "__stream = fopen64(*fnamptr,"r");" (assignment_expression "__stream = fopen64(*fnamptr,"r")" identifier = (call_expression "fopen64(*fnamptr,"r")" identifier (argument_list "(*fnamptr,"r")" ( (pointer_expression "*fnamptr" * identifier) , (string_literal ""r"" " string_content ") )))) ;) (if_statement "if (__stream != (FILE *)0x0) {\n    fadvise((FILE *)__stream,FADVISE_SEQUENTIAL);\n    goto LAB_00011ec7;\n  }" if (parenthesized_expression "(__stream != (FILE *)0x0)" ( (binary_expression "__stream != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    fadvise((FILE *)__stream,FADVISE_SEQUENTIAL);\n    goto LAB_00011ec7;\n  }" { (expression_statement "fadvise((FILE *)__stream,FADVISE_SEQUENTIAL);" (call_expression "fadvise((FILE *)__stream,FADVISE_SEQUENTIAL)" identifier (argument_list "((FILE *)__stream,FADVISE_SEQUENTIAL)" ( (cast_expression "(FILE *)__stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) (goto_statement "goto LAB_00011ec7;" goto statement_identifier ;) })) (goto_statement "goto LAB_00012033;" goto statement_identifier ;) (labeled_statement "code_r0x00012089:\n  local_30 = *piVar4;" statement_identifier : (expression_statement "local_30 = *piVar4;" (assignment_expression "local_30 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;)) (expression_statement "p_Var2 = *(_IO_FILE **)puVar3;" (assignment_expression "p_Var2 = *(_IO_FILE **)puVar3" identifier = (pointer_expression "*(_IO_FILE **)puVar3" * (cast_expression "(_IO_FILE **)puVar3" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pcVar6 = p_Var2->_IO_write_ptr;" (assignment_expression "pcVar6 = p_Var2->_IO_write_ptr" identifier = (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier)) ;) (if_statement "if (pcVar6 < p_Var2->_IO_write_end) {\n    p_Var2->_IO_write_ptr = pcVar6 + 1;\n    *pcVar6 = (char)uVar11;\n  }\n  else {\n    iVar7 = __overflow(p_Var2,uVar11 & 0xff);\n    if (iVar7 < 0) goto LAB_0001215c;\n  }" if (parenthesized_expression "(pcVar6 < p_Var2->_IO_write_end)" ( (binary_expression "pcVar6 < p_Var2->_IO_write_end" identifier < (field_expression "p_Var2->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n    p_Var2->_IO_write_ptr = pcVar6 + 1;\n    *pcVar6 = (char)uVar11;\n  }" { (expression_statement "p_Var2->_IO_write_ptr = pcVar6 + 1;" (assignment_expression "p_Var2->_IO_write_ptr = pcVar6 + 1" (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar6 = (char)uVar11;" (assignment_expression "*pcVar6 = (char)uVar11" (pointer_expression "*pcVar6" * identifier) = (cast_expression "(char)uVar11" ( (type_descriptor "char" primitive_type) ) identifier)) ;) }) (else_clause "else {\n    iVar7 = __overflow(p_Var2,uVar11 & 0xff);\n    if (iVar7 < 0) goto LAB_0001215c;\n  }" else (compound_statement "{\n    iVar7 = __overflow(p_Var2,uVar11 & 0xff);\n    if (iVar7 < 0) goto LAB_0001215c;\n  }" { (expression_statement "iVar7 = __overflow(p_Var2,uVar11 & 0xff);" (assignment_expression "iVar7 = __overflow(p_Var2,uVar11 & 0xff)" identifier = (call_expression "__overflow(p_Var2,uVar11 & 0xff)" identifier (argument_list "(p_Var2,uVar11 & 0xff)" ( identifier , (binary_expression "uVar11 & 0xff" identifier & number_literal) )))) ;) (if_statement "if (iVar7 < 0) goto LAB_0001215c;" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0001215c;" goto statement_identifier ;)) }))) (expression_statement "uVar9 = (uint)line_delim;" (assignment_expression "uVar9 = (uint)line_delim" identifier = (cast_expression "(uint)line_delim" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if (uVar9 == uVar11) {\n    bVar1 = (byte)__stream->_flags;\n  }\n  else {\nLAB_00011f92:\n    p_Var2 = *(_IO_FILE **)puVar3;\n    pcVar6 = p_Var2->_IO_write_ptr;\n    if (pcVar6 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar6 + 1;\n      *pcVar6 = (char)uVar9;\n    }\n    else {\n      iVar7 = __overflow(p_Var2,uVar9);\n      if (iVar7 < 0) {\nLAB_0001215c:\n                    /* WARNING: Subroutine does not return */\n        write_error();\n      }\n    }\n    bVar1 = (byte)__stream->_flags;\n  }" if (parenthesized_expression "(uVar9 == uVar11)" ( (binary_expression "uVar9 == uVar11" identifier == identifier) )) (compound_statement "{\n    bVar1 = (byte)__stream->_flags;\n  }" { (expression_statement "bVar1 = (byte)__stream->_flags;" (assignment_expression "bVar1 = (byte)__stream->_flags" identifier = (cast_expression "(byte)__stream->_flags" ( (type_descriptor "byte" type_identifier) ) (field_expression "__stream->_flags" identifier -> field_identifier))) ;) }) (else_clause "else {\nLAB_00011f92:\n    p_Var2 = *(_IO_FILE **)puVar3;\n    pcVar6 = p_Var2->_IO_write_ptr;\n    if (pcVar6 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar6 + 1;\n      *pcVar6 = (char)uVar9;\n    }\n    else {\n      iVar7 = __overflow(p_Var2,uVar9);\n      if (iVar7 < 0) {\nLAB_0001215c:\n                    /* WARNING: Subroutine does not return */\n        write_error();\n      }\n    }\n    bVar1 = (byte)__stream->_flags;\n  }" else (compound_statement "{\nLAB_00011f92:\n    p_Var2 = *(_IO_FILE **)puVar3;\n    pcVar6 = p_Var2->_IO_write_ptr;\n    if (pcVar6 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar6 + 1;\n      *pcVar6 = (char)uVar9;\n    }\n    else {\n      iVar7 = __overflow(p_Var2,uVar9);\n      if (iVar7 < 0) {\nLAB_0001215c:\n                    /* WARNING: Subroutine does not return */\n        write_error();\n      }\n    }\n    bVar1 = (byte)__stream->_flags;\n  }" { (labeled_statement "LAB_00011f92:\n    p_Var2 = *(_IO_FILE **)puVar3;" statement_identifier : (expression_statement "p_Var2 = *(_IO_FILE **)puVar3;" (assignment_expression "p_Var2 = *(_IO_FILE **)puVar3" identifier = (pointer_expression "*(_IO_FILE **)puVar3" * (cast_expression "(_IO_FILE **)puVar3" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;)) (expression_statement "pcVar6 = p_Var2->_IO_write_ptr;" (assignment_expression "pcVar6 = p_Var2->_IO_write_ptr" identifier = (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier)) ;) (if_statement "if (pcVar6 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar6 + 1;\n      *pcVar6 = (char)uVar9;\n    }\n    else {\n      iVar7 = __overflow(p_Var2,uVar9);\n      if (iVar7 < 0) {\nLAB_0001215c:\n                    /* WARNING: Subroutine does not return */\n        write_error();\n      }\n    }" if (parenthesized_expression "(pcVar6 < p_Var2->_IO_write_end)" ( (binary_expression "pcVar6 < p_Var2->_IO_write_end" identifier < (field_expression "p_Var2->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n      p_Var2->_IO_write_ptr = pcVar6 + 1;\n      *pcVar6 = (char)uVar9;\n    }" { (expression_statement "p_Var2->_IO_write_ptr = pcVar6 + 1;" (assignment_expression "p_Var2->_IO_write_ptr = pcVar6 + 1" (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar6 = (char)uVar9;" (assignment_expression "*pcVar6 = (char)uVar9" (pointer_expression "*pcVar6" * identifier) = (cast_expression "(char)uVar9" ( (type_descriptor "char" primitive_type) ) identifier)) ;) }) (else_clause "else {\n      iVar7 = __overflow(p_Var2,uVar9);\n      if (iVar7 < 0) {\nLAB_0001215c:\n                    /* WARNING: Subroutine does not return */\n        write_error();\n      }\n    }" else (compound_statement "{\n      iVar7 = __overflow(p_Var2,uVar9);\n      if (iVar7 < 0) {\nLAB_0001215c:\n                    /* WARNING: Subroutine does not return */\n        write_error();\n      }\n    }" { (expression_statement "iVar7 = __overflow(p_Var2,uVar9);" (assignment_expression "iVar7 = __overflow(p_Var2,uVar9)" identifier = (call_expression "__overflow(p_Var2,uVar9)" identifier (argument_list "(p_Var2,uVar9)" ( identifier , identifier )))) ;) (if_statement "if (iVar7 < 0) {\nLAB_0001215c:\n                    /* WARNING: Subroutine does not return */\n        write_error();\n      }" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (compound_statement "{\nLAB_0001215c:\n                    /* WARNING: Subroutine does not return */\n        write_error();\n      }" { (labeled_statement "LAB_0001215c:\n                    /* WARNING: Subroutine does not return */\n        write_error();" statement_identifier : comment (expression_statement "write_error();" (call_expression "write_error()" identifier (argument_list "()" ( ))) ;)) })) }))) (expression_statement "bVar1 = (byte)__stream->_flags;" (assignment_expression "bVar1 = (byte)__stream->_flags" identifier = (cast_expression "(byte)__stream->_flags" ( (type_descriptor "byte" type_identifier) ) (field_expression "__stream->_flags" identifier -> field_identifier))) ;) }))) (if_statement "if ((bVar1 & 0x20) != 0) {\n    pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,*fnamptr);\n    error(0,local_30,"%s",pcVar6);\n    local_21 = false;\n  }" if (parenthesized_expression "((bVar1 & 0x20) != 0)" ( (binary_expression "(bVar1 & 0x20) != 0" (parenthesized_expression "(bVar1 & 0x20)" ( (binary_expression "bVar1 & 0x20" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,*fnamptr);\n    error(0,local_30,"%s",pcVar6);\n    local_21 = false;\n  }" { (expression_statement "pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,*fnamptr);" (assignment_expression "pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,*fnamptr)" identifier = (call_expression "quotearg_n_style_colon(0,shell_escape_quoting_style,*fnamptr)" identifier (argument_list "(0,shell_escape_quoting_style,*fnamptr)" ( number_literal , identifier , (pointer_expression "*fnamptr" * identifier) )))) ;) (expression_statement "error(0,local_30,"%s",pcVar6);" (call_expression "error(0,local_30,"%s",pcVar6)" identifier (argument_list "(0,local_30,"%s",pcVar6)" ( number_literal , identifier , (string_literal ""%s"" " string_content ") , identifier ))) ;) (expression_statement "local_21 = false;" (assignment_expression "local_21 = false" identifier = false) ;) })) (if_statement "if ((!(bool)uVar12 && !(bool)uVar13) == (bool)uVar12) {\n    clearerr_unlocked(__stream);\n  }\n  else {\n    iVar7 = rpl_fclose((FILE *)__stream);\n    if (iVar7 == -1) {\nLAB_00012033:\n      pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,*fnamptr);\n      error(0,*piVar4,"%s",pcVar6);\n      local_21 = false;\n    }\n  }" if (parenthesized_expression "((!(bool)uVar12 && !(bool)uVar13) == (bool)uVar12)" ( (binary_expression "(!(bool)uVar12 && !(bool)uVar13) == (bool)uVar12" (parenthesized_expression "(!(bool)uVar12 && !(bool)uVar13)" ( (binary_expression "!(bool)uVar12 && !(bool)uVar13" (unary_expression "!(bool)uVar12" ! (cast_expression "(bool)uVar12" ( (type_descriptor "bool" primitive_type) ) identifier)) && (unary_expression "!(bool)uVar13" ! (cast_expression "(bool)uVar13" ( (type_descriptor "bool" primitive_type) ) identifier))) )) == (cast_expression "(bool)uVar12" ( (type_descriptor "bool" primitive_type) ) identifier)) )) (compound_statement "{\n    clearerr_unlocked(__stream);\n  }" { (expression_statement "clearerr_unlocked(__stream);" (call_expression "clearerr_unlocked(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) }) (else_clause "else {\n    iVar7 = rpl_fclose((FILE *)__stream);\n    if (iVar7 == -1) {\nLAB_00012033:\n      pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,*fnamptr);\n      error(0,*piVar4,"%s",pcVar6);\n      local_21 = false;\n    }\n  }" else (compound_statement "{\n    iVar7 = rpl_fclose((FILE *)__stream);\n    if (iVar7 == -1) {\nLAB_00012033:\n      pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,*fnamptr);\n      error(0,*piVar4,"%s",pcVar6);\n      local_21 = false;\n    }\n  }" { (expression_statement "iVar7 = rpl_fclose((FILE *)__stream);" (assignment_expression "iVar7 = rpl_fclose((FILE *)__stream)" identifier = (call_expression "rpl_fclose((FILE *)__stream)" identifier (argument_list "((FILE *)__stream)" ( (cast_expression "(FILE *)__stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (iVar7 == -1) {\nLAB_00012033:\n      pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,*fnamptr);\n      error(0,*piVar4,"%s",pcVar6);\n      local_21 = false;\n    }" if (parenthesized_expression "(iVar7 == -1)" ( (binary_expression "iVar7 == -1" identifier == number_literal) )) (compound_statement "{\nLAB_00012033:\n      pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,*fnamptr);\n      error(0,*piVar4,"%s",pcVar6);\n      local_21 = false;\n    }" { (labeled_statement "LAB_00012033:\n      pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,*fnamptr);" statement_identifier : (expression_statement "pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,*fnamptr);" (assignment_expression "pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,*fnamptr)" identifier = (call_expression "quotearg_n_style_colon(0,shell_escape_quoting_style,*fnamptr)" identifier (argument_list "(0,shell_escape_quoting_style,*fnamptr)" ( number_literal , identifier , (pointer_expression "*fnamptr" * identifier) )))) ;)) (expression_statement "error(0,*piVar4,"%s",pcVar6);" (call_expression "error(0,*piVar4,"%s",pcVar6)" identifier (argument_list "(0,*piVar4,"%s",pcVar6)" ( number_literal , (pointer_expression "*piVar4" * identifier) , (string_literal ""%s"" " string_content ") , identifier ))) ;) (expression_statement "local_21 = false;" (assignment_expression "local_21 = false" identifier = false) ;) })) }))) (expression_statement "fnamptr = fnamptr + 1;" (assignment_expression "fnamptr = fnamptr + 1" identifier = (binary_expression "fnamptr + 1" identifier + number_literal)) ;) (expression_statement "uVar12 = nfiles == 0;" (assignment_expression "uVar12 = nfiles == 0" identifier = (binary_expression "nfiles == 0" identifier == number_literal)) ;) (expression_statement "nfiles = nfiles - 1;" (assignment_expression "nfiles = nfiles - 1" identifier = (binary_expression "nfiles - 1" identifier - number_literal)) ;) (expression_statement "uVar13 = nfiles == 0;" (assignment_expression "uVar13 = nfiles == 0" identifier = (binary_expression "nfiles == 0" identifier == number_literal)) ;) (if_statement "if ((bool)uVar13) {\n    return local_21;\n  }" if (parenthesized_expression "((bool)uVar13)" ( (cast_expression "(bool)uVar13" ( (type_descriptor "bool" primitive_type) ) identifier) )) (compound_statement "{\n    return local_21;\n  }" { (return_statement "return local_21;" return identifier ;) })) (goto_statement "goto LAB_00011e90;" goto statement_identifier ;) })))
(translation_unit "undefined1 FUN_00011e40(int param_1,undefined4 *param_2)\n\n{\n  byte bVar1;\n  int *piVar2;\n  char *pcVar3;\n  int *piVar4;\n  byte *pbVar5;\n  undefined4 uVar6;\n  _IO_FILE *__stream;\n  int iVar7;\n  byte *pbVar8;\n  _IO_FILE *extraout_ECX;\n  _IO_FILE *p_Var9;\n  uint uVar10;\n  int unaff_EBP;\n  byte *pbVar11;\n  uint uVar12;\n  undefined1 uVar13;\n  undefined1 uVar14;\n  byte bVar15;\n  undefined8 uVar16;\n  byte *local_40;\n  int local_30;\n  undefined1 local_21;\n  \n  bVar15 = 0;\n  FUN_00012549();\n  uVar13 = 0;\n  uVar14 = param_1 == 0;\n  if ((bool)uVar14) {\n    return 1;\n  }\n  piVar4 = __errno_location();\n  local_21 = 1;\n  piVar2 = *(int **)(unaff_EBP + 0xa18e);\n  do {\n    iVar7 = 2;\n    pbVar11 = (byte *)*param_2;\n    pbVar8 = (byte *)(unaff_EBP + 0x6267);\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      uVar13 = *pbVar11 < *pbVar8;\n      uVar14 = *pbVar11 == *pbVar8;\n      pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1;\n      pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1;\n    } while ((bool)uVar14);\n    if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n      *(undefined1 *)(unaff_EBP + 0xa32b) = 1;\n      __stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a);\nLAB_00011ec7:\n      local_40 = *(byte **)(unaff_EBP + 0xa326);\n      pbVar11 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      if (pbVar11 < pbVar8) {\n        pbVar5 = pbVar11 + 1;\n        __stream->_IO_read_ptr = (char *)pbVar5;\n        uVar12 = (uint)*pbVar11;\n      }\n      else {\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }\nLAB_00011f24:\n      if (pbVar5 < pbVar8) {\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }\n      uVar10 = __uflow(__stream);\n      if (uVar10 != 0xffffffff) goto LAB_00011f35;\n      local_30 = *piVar4;\n      p_Var9 = (_IO_FILE *)*piVar2;\n      pcVar3 = p_Var9->_IO_write_ptr;\n      if (pcVar3 < p_Var9->_IO_write_end) {\n        p_Var9->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)uVar12;\nLAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n        if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }\nLAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }\n        iVar7 = __overflow(p_Var9,uVar10);\n        if (-1 < iVar7) goto LAB_00011fac;\n      }\n      else {\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }\nLAB_0001215c:\n      do {\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      } while (iVar7 < 0);\nLAB_00011f07:\n      local_40 = local_40 + 1;\n      if (*(byte **)(unaff_EBP + 0xa322) == local_40) {\n        local_40 = *(byte **)(unaff_EBP + 0xa326);\n      }\nLAB_00011f1c:\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      uVar12 = uVar10;\n      goto LAB_00011f24;\n    }\n    __stream = fopen64((char *)*param_2,(char *)(unaff_EBP + 0x51cc));\n    if (__stream != (FILE *)0x0) {\n      FUN_00012690(__stream,2);\n      goto LAB_00011ec7;\n    }\nLAB_00012033:\n    uVar6 = FUN_000146e0(0,3,*param_2);\n    error(0,*piVar4,unaff_EBP + 0x5663,uVar6);\n    local_21 = 0;\nLAB_00011fcb:\n    param_2 = param_2 + 1;\n    uVar13 = param_1 == 0;\n    param_1 = param_1 + -1;\n    uVar14 = param_1 == 0;\n    if ((bool)uVar14) {\n      return local_21;\n    }\n  } while( true );\n}\n\n" (function_definition "undefined1 FUN_00011e40(int param_1,undefined4 *param_2)\n\n{\n  byte bVar1;\n  int *piVar2;\n  char *pcVar3;\n  int *piVar4;\n  byte *pbVar5;\n  undefined4 uVar6;\n  _IO_FILE *__stream;\n  int iVar7;\n  byte *pbVar8;\n  _IO_FILE *extraout_ECX;\n  _IO_FILE *p_Var9;\n  uint uVar10;\n  int unaff_EBP;\n  byte *pbVar11;\n  uint uVar12;\n  undefined1 uVar13;\n  undefined1 uVar14;\n  byte bVar15;\n  undefined8 uVar16;\n  byte *local_40;\n  int local_30;\n  undefined1 local_21;\n  \n  bVar15 = 0;\n  FUN_00012549();\n  uVar13 = 0;\n  uVar14 = param_1 == 0;\n  if ((bool)uVar14) {\n    return 1;\n  }\n  piVar4 = __errno_location();\n  local_21 = 1;\n  piVar2 = *(int **)(unaff_EBP + 0xa18e);\n  do {\n    iVar7 = 2;\n    pbVar11 = (byte *)*param_2;\n    pbVar8 = (byte *)(unaff_EBP + 0x6267);\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      uVar13 = *pbVar11 < *pbVar8;\n      uVar14 = *pbVar11 == *pbVar8;\n      pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1;\n      pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1;\n    } while ((bool)uVar14);\n    if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n      *(undefined1 *)(unaff_EBP + 0xa32b) = 1;\n      __stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a);\nLAB_00011ec7:\n      local_40 = *(byte **)(unaff_EBP + 0xa326);\n      pbVar11 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      if (pbVar11 < pbVar8) {\n        pbVar5 = pbVar11 + 1;\n        __stream->_IO_read_ptr = (char *)pbVar5;\n        uVar12 = (uint)*pbVar11;\n      }\n      else {\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }\nLAB_00011f24:\n      if (pbVar5 < pbVar8) {\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }\n      uVar10 = __uflow(__stream);\n      if (uVar10 != 0xffffffff) goto LAB_00011f35;\n      local_30 = *piVar4;\n      p_Var9 = (_IO_FILE *)*piVar2;\n      pcVar3 = p_Var9->_IO_write_ptr;\n      if (pcVar3 < p_Var9->_IO_write_end) {\n        p_Var9->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)uVar12;\nLAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n        if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }\nLAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }\n        iVar7 = __overflow(p_Var9,uVar10);\n        if (-1 < iVar7) goto LAB_00011fac;\n      }\n      else {\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }\nLAB_0001215c:\n      do {\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      } while (iVar7 < 0);\nLAB_00011f07:\n      local_40 = local_40 + 1;\n      if (*(byte **)(unaff_EBP + 0xa322) == local_40) {\n        local_40 = *(byte **)(unaff_EBP + 0xa326);\n      }\nLAB_00011f1c:\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      uVar12 = uVar10;\n      goto LAB_00011f24;\n    }\n    __stream = fopen64((char *)*param_2,(char *)(unaff_EBP + 0x51cc));\n    if (__stream != (FILE *)0x0) {\n      FUN_00012690(__stream,2);\n      goto LAB_00011ec7;\n    }\nLAB_00012033:\n    uVar6 = FUN_000146e0(0,3,*param_2);\n    error(0,*piVar4,unaff_EBP + 0x5663,uVar6);\n    local_21 = 0;\nLAB_00011fcb:\n    param_2 = param_2 + 1;\n    uVar13 = param_1 == 0;\n    param_1 = param_1 + -1;\n    uVar14 = param_1 == 0;\n    if ((bool)uVar14) {\n      return local_21;\n    }\n  } while( true );\n}" type_identifier (function_declarator "FUN_00011e40(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int *piVar2;\n  char *pcVar3;\n  int *piVar4;\n  byte *pbVar5;\n  undefined4 uVar6;\n  _IO_FILE *__stream;\n  int iVar7;\n  byte *pbVar8;\n  _IO_FILE *extraout_ECX;\n  _IO_FILE *p_Var9;\n  uint uVar10;\n  int unaff_EBP;\n  byte *pbVar11;\n  uint uVar12;\n  undefined1 uVar13;\n  undefined1 uVar14;\n  byte bVar15;\n  undefined8 uVar16;\n  byte *local_40;\n  int local_30;\n  undefined1 local_21;\n  \n  bVar15 = 0;\n  FUN_00012549();\n  uVar13 = 0;\n  uVar14 = param_1 == 0;\n  if ((bool)uVar14) {\n    return 1;\n  }\n  piVar4 = __errno_location();\n  local_21 = 1;\n  piVar2 = *(int **)(unaff_EBP + 0xa18e);\n  do {\n    iVar7 = 2;\n    pbVar11 = (byte *)*param_2;\n    pbVar8 = (byte *)(unaff_EBP + 0x6267);\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      uVar13 = *pbVar11 < *pbVar8;\n      uVar14 = *pbVar11 == *pbVar8;\n      pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1;\n      pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1;\n    } while ((bool)uVar14);\n    if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n      *(undefined1 *)(unaff_EBP + 0xa32b) = 1;\n      __stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a);\nLAB_00011ec7:\n      local_40 = *(byte **)(unaff_EBP + 0xa326);\n      pbVar11 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      if (pbVar11 < pbVar8) {\n        pbVar5 = pbVar11 + 1;\n        __stream->_IO_read_ptr = (char *)pbVar5;\n        uVar12 = (uint)*pbVar11;\n      }\n      else {\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }\nLAB_00011f24:\n      if (pbVar5 < pbVar8) {\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }\n      uVar10 = __uflow(__stream);\n      if (uVar10 != 0xffffffff) goto LAB_00011f35;\n      local_30 = *piVar4;\n      p_Var9 = (_IO_FILE *)*piVar2;\n      pcVar3 = p_Var9->_IO_write_ptr;\n      if (pcVar3 < p_Var9->_IO_write_end) {\n        p_Var9->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)uVar12;\nLAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n        if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }\nLAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }\n        iVar7 = __overflow(p_Var9,uVar10);\n        if (-1 < iVar7) goto LAB_00011fac;\n      }\n      else {\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }\nLAB_0001215c:\n      do {\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      } while (iVar7 < 0);\nLAB_00011f07:\n      local_40 = local_40 + 1;\n      if (*(byte **)(unaff_EBP + 0xa322) == local_40) {\n        local_40 = *(byte **)(unaff_EBP + 0xa326);\n      }\nLAB_00011f1c:\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      uVar12 = uVar10;\n      goto LAB_00011f24;\n    }\n    __stream = fopen64((char *)*param_2,(char *)(unaff_EBP + 0x51cc));\n    if (__stream != (FILE *)0x0) {\n      FUN_00012690(__stream,2);\n      goto LAB_00011ec7;\n    }\nLAB_00012033:\n    uVar6 = FUN_000146e0(0,3,*param_2);\n    error(0,*piVar4,unaff_EBP + 0x5663,uVar6);\n    local_21 = 0;\nLAB_00011fcb:\n    param_2 = param_2 + 1;\n    uVar13 = param_1 == 0;\n    param_1 = param_1 + -1;\n    uVar14 = param_1 == 0;\n    if ((bool)uVar14) {\n      return local_21;\n    }\n  } while( true );\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "_IO_FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "_IO_FILE *extraout_ECX;" type_identifier (pointer_declarator "*extraout_ECX" * identifier) ;) (declaration "_IO_FILE *p_Var9;" type_identifier (pointer_declarator "*p_Var9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (declaration "byte *pbVar11;" type_identifier (pointer_declarator "*pbVar11" * identifier) ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "undefined1 uVar13;" type_identifier identifier ;) (declaration "undefined1 uVar14;" type_identifier identifier ;) (declaration "byte bVar15;" type_identifier identifier ;) (declaration "undefined8 uVar16;" type_identifier identifier ;) (declaration "byte *local_40;" type_identifier (pointer_declarator "*local_40" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "undefined1 local_21;" type_identifier identifier ;) (expression_statement "bVar15 = 0;" (assignment_expression "bVar15 = 0" identifier = number_literal) ;) (expression_statement "FUN_00012549();" (call_expression "FUN_00012549()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar13 = 0;" (assignment_expression "uVar13 = 0" identifier = number_literal) ;) (expression_statement "uVar14 = param_1 == 0;" (assignment_expression "uVar14 = param_1 == 0" identifier = (binary_expression "param_1 == 0" identifier == number_literal)) ;) (if_statement "if ((bool)uVar14) {\n    return 1;\n  }" if (parenthesized_expression "((bool)uVar14)" ( (cast_expression "(bool)uVar14" ( (type_descriptor "bool" primitive_type) ) identifier) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_21 = 1;" (assignment_expression "local_21 = 1" identifier = number_literal) ;) (expression_statement "piVar2 = *(int **)(unaff_EBP + 0xa18e);" (assignment_expression "piVar2 = *(int **)(unaff_EBP + 0xa18e)" identifier = (pointer_expression "*(int **)(unaff_EBP + 0xa18e)" * (cast_expression "(int **)(unaff_EBP + 0xa18e)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBP + 0xa18e)" ( (binary_expression "unaff_EBP + 0xa18e" identifier + number_literal) ))))) ;) (do_statement "do {\n    iVar7 = 2;\n    pbVar11 = (byte *)*param_2;\n    pbVar8 = (byte *)(unaff_EBP + 0x6267);\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      uVar13 = *pbVar11 < *pbVar8;\n      uVar14 = *pbVar11 == *pbVar8;\n      pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1;\n      pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1;\n    } while ((bool)uVar14);\n    if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n      *(undefined1 *)(unaff_EBP + 0xa32b) = 1;\n      __stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a);\nLAB_00011ec7:\n      local_40 = *(byte **)(unaff_EBP + 0xa326);\n      pbVar11 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      if (pbVar11 < pbVar8) {\n        pbVar5 = pbVar11 + 1;\n        __stream->_IO_read_ptr = (char *)pbVar5;\n        uVar12 = (uint)*pbVar11;\n      }\n      else {\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }\nLAB_00011f24:\n      if (pbVar5 < pbVar8) {\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }\n      uVar10 = __uflow(__stream);\n      if (uVar10 != 0xffffffff) goto LAB_00011f35;\n      local_30 = *piVar4;\n      p_Var9 = (_IO_FILE *)*piVar2;\n      pcVar3 = p_Var9->_IO_write_ptr;\n      if (pcVar3 < p_Var9->_IO_write_end) {\n        p_Var9->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)uVar12;\nLAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n        if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }\nLAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }\n        iVar7 = __overflow(p_Var9,uVar10);\n        if (-1 < iVar7) goto LAB_00011fac;\n      }\n      else {\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }\nLAB_0001215c:\n      do {\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      } while (iVar7 < 0);\nLAB_00011f07:\n      local_40 = local_40 + 1;\n      if (*(byte **)(unaff_EBP + 0xa322) == local_40) {\n        local_40 = *(byte **)(unaff_EBP + 0xa326);\n      }\nLAB_00011f1c:\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      uVar12 = uVar10;\n      goto LAB_00011f24;\n    }\n    __stream = fopen64((char *)*param_2,(char *)(unaff_EBP + 0x51cc));\n    if (__stream != (FILE *)0x0) {\n      FUN_00012690(__stream,2);\n      goto LAB_00011ec7;\n    }\nLAB_00012033:\n    uVar6 = FUN_000146e0(0,3,*param_2);\n    error(0,*piVar4,unaff_EBP + 0x5663,uVar6);\n    local_21 = 0;\nLAB_00011fcb:\n    param_2 = param_2 + 1;\n    uVar13 = param_1 == 0;\n    param_1 = param_1 + -1;\n    uVar14 = param_1 == 0;\n    if ((bool)uVar14) {\n      return local_21;\n    }\n  } while( true );" do (compound_statement "{\n    iVar7 = 2;\n    pbVar11 = (byte *)*param_2;\n    pbVar8 = (byte *)(unaff_EBP + 0x6267);\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      uVar13 = *pbVar11 < *pbVar8;\n      uVar14 = *pbVar11 == *pbVar8;\n      pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1;\n      pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1;\n    } while ((bool)uVar14);\n    if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n      *(undefined1 *)(unaff_EBP + 0xa32b) = 1;\n      __stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a);\nLAB_00011ec7:\n      local_40 = *(byte **)(unaff_EBP + 0xa326);\n      pbVar11 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      if (pbVar11 < pbVar8) {\n        pbVar5 = pbVar11 + 1;\n        __stream->_IO_read_ptr = (char *)pbVar5;\n        uVar12 = (uint)*pbVar11;\n      }\n      else {\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }\nLAB_00011f24:\n      if (pbVar5 < pbVar8) {\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }\n      uVar10 = __uflow(__stream);\n      if (uVar10 != 0xffffffff) goto LAB_00011f35;\n      local_30 = *piVar4;\n      p_Var9 = (_IO_FILE *)*piVar2;\n      pcVar3 = p_Var9->_IO_write_ptr;\n      if (pcVar3 < p_Var9->_IO_write_end) {\n        p_Var9->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)uVar12;\nLAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n        if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }\nLAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }\n        iVar7 = __overflow(p_Var9,uVar10);\n        if (-1 < iVar7) goto LAB_00011fac;\n      }\n      else {\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }\nLAB_0001215c:\n      do {\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      } while (iVar7 < 0);\nLAB_00011f07:\n      local_40 = local_40 + 1;\n      if (*(byte **)(unaff_EBP + 0xa322) == local_40) {\n        local_40 = *(byte **)(unaff_EBP + 0xa326);\n      }\nLAB_00011f1c:\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      uVar12 = uVar10;\n      goto LAB_00011f24;\n    }\n    __stream = fopen64((char *)*param_2,(char *)(unaff_EBP + 0x51cc));\n    if (__stream != (FILE *)0x0) {\n      FUN_00012690(__stream,2);\n      goto LAB_00011ec7;\n    }\nLAB_00012033:\n    uVar6 = FUN_000146e0(0,3,*param_2);\n    error(0,*piVar4,unaff_EBP + 0x5663,uVar6);\n    local_21 = 0;\nLAB_00011fcb:\n    param_2 = param_2 + 1;\n    uVar13 = param_1 == 0;\n    param_1 = param_1 + -1;\n    uVar14 = param_1 == 0;\n    if ((bool)uVar14) {\n      return local_21;\n    }\n  }" { (expression_statement "iVar7 = 2;" (assignment_expression "iVar7 = 2" identifier = number_literal) ;) (expression_statement "pbVar11 = (byte *)*param_2;" (assignment_expression "pbVar11 = (byte *)*param_2" identifier = (cast_expression "(byte *)*param_2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "pbVar8 = (byte *)(unaff_EBP + 0x6267);" (assignment_expression "pbVar8 = (byte *)(unaff_EBP + 0x6267)" identifier = (cast_expression "(byte *)(unaff_EBP + 0x6267)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + 0x6267)" ( (binary_expression "unaff_EBP + 0x6267" identifier + number_literal) )))) ;) (do_statement "do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      uVar13 = *pbVar11 < *pbVar8;\n      uVar14 = *pbVar11 == *pbVar8;\n      pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1;\n      pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1;\n    } while ((bool)uVar14);" do (compound_statement "{\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      uVar13 = *pbVar11 < *pbVar8;\n      uVar14 = *pbVar11 == *pbVar8;\n      pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1;\n      pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1;\n    }" { (if_statement "if (iVar7 == 0) break;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "uVar13 = *pbVar11 < *pbVar8;" (assignment_expression "uVar13 = *pbVar11 < *pbVar8" identifier = (binary_expression "*pbVar11 < *pbVar8" (pointer_expression "*pbVar11" * identifier) < (pointer_expression "*pbVar8" * identifier))) ;) (expression_statement "uVar14 = *pbVar11 == *pbVar8;" (assignment_expression "uVar14 = *pbVar11 == *pbVar8" identifier = (binary_expression "*pbVar11 == *pbVar8" (pointer_expression "*pbVar11" * identifier) == (pointer_expression "*pbVar8" * identifier))) ;) (expression_statement "pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1;" (assignment_expression "pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1" identifier = (binary_expression "pbVar11 + (uint)bVar15 * -2 + 1" (binary_expression "pbVar11 + (uint)bVar15 * -2" identifier + (binary_expression "(uint)bVar15 * -2" (cast_expression "(uint)bVar15" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1;" (assignment_expression "pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1" identifier = (binary_expression "pbVar8 + (uint)bVar15 * -2 + 1" (binary_expression "pbVar8 + (uint)bVar15 * -2" identifier + (binary_expression "(uint)bVar15 * -2" (cast_expression "(uint)bVar15" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "((bool)uVar14)" ( (cast_expression "(bool)uVar14" ( (type_descriptor "bool" primitive_type) ) identifier) )) ;) (if_statement "if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n      *(undefined1 *)(unaff_EBP + 0xa32b) = 1;\n      __stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a);\nLAB_00011ec7:\n      local_40 = *(byte **)(unaff_EBP + 0xa326);\n      pbVar11 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      if (pbVar11 < pbVar8) {\n        pbVar5 = pbVar11 + 1;\n        __stream->_IO_read_ptr = (char *)pbVar5;\n        uVar12 = (uint)*pbVar11;\n      }\n      else {\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }\nLAB_00011f24:\n      if (pbVar5 < pbVar8) {\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }\n      uVar10 = __uflow(__stream);\n      if (uVar10 != 0xffffffff) goto LAB_00011f35;\n      local_30 = *piVar4;\n      p_Var9 = (_IO_FILE *)*piVar2;\n      pcVar3 = p_Var9->_IO_write_ptr;\n      if (pcVar3 < p_Var9->_IO_write_end) {\n        p_Var9->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)uVar12;\nLAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n        if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }\nLAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }\n        iVar7 = __overflow(p_Var9,uVar10);\n        if (-1 < iVar7) goto LAB_00011fac;\n      }\n      else {\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }\nLAB_0001215c:\n      do {\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      } while (iVar7 < 0);\nLAB_00011f07:\n      local_40 = local_40 + 1;\n      if (*(byte **)(unaff_EBP + 0xa322) == local_40) {\n        local_40 = *(byte **)(unaff_EBP + 0xa326);\n      }\nLAB_00011f1c:\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      uVar12 = uVar10;\n      goto LAB_00011f24;\n    }" if (parenthesized_expression "((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13)" ( (binary_expression "(!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13" (parenthesized_expression "(!(bool)uVar13 && !(bool)uVar14)" ( (binary_expression "!(bool)uVar13 && !(bool)uVar14" (unary_expression "!(bool)uVar13" ! (cast_expression "(bool)uVar13" ( (type_descriptor "bool" primitive_type) ) identifier)) && (unary_expression "!(bool)uVar14" ! (cast_expression "(bool)uVar14" ( (type_descriptor "bool" primitive_type) ) identifier))) )) == (cast_expression "(bool)uVar13" ( (type_descriptor "bool" primitive_type) ) identifier)) )) (compound_statement "{\n      *(undefined1 *)(unaff_EBP + 0xa32b) = 1;\n      __stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a);\nLAB_00011ec7:\n      local_40 = *(byte **)(unaff_EBP + 0xa326);\n      pbVar11 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      if (pbVar11 < pbVar8) {\n        pbVar5 = pbVar11 + 1;\n        __stream->_IO_read_ptr = (char *)pbVar5;\n        uVar12 = (uint)*pbVar11;\n      }\n      else {\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }\nLAB_00011f24:\n      if (pbVar5 < pbVar8) {\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }\n      uVar10 = __uflow(__stream);\n      if (uVar10 != 0xffffffff) goto LAB_00011f35;\n      local_30 = *piVar4;\n      p_Var9 = (_IO_FILE *)*piVar2;\n      pcVar3 = p_Var9->_IO_write_ptr;\n      if (pcVar3 < p_Var9->_IO_write_end) {\n        p_Var9->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)uVar12;\nLAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n        if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }\nLAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }\n        iVar7 = __overflow(p_Var9,uVar10);\n        if (-1 < iVar7) goto LAB_00011fac;\n      }\n      else {\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }\nLAB_0001215c:\n      do {\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      } while (iVar7 < 0);\nLAB_00011f07:\n      local_40 = local_40 + 1;\n      if (*(byte **)(unaff_EBP + 0xa322) == local_40) {\n        local_40 = *(byte **)(unaff_EBP + 0xa326);\n      }\nLAB_00011f1c:\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      uVar12 = uVar10;\n      goto LAB_00011f24;\n    }" { (expression_statement "*(undefined1 *)(unaff_EBP + 0xa32b) = 1;" (assignment_expression "*(undefined1 *)(unaff_EBP + 0xa32b) = 1" (pointer_expression "*(undefined1 *)(unaff_EBP + 0xa32b)" * (cast_expression "(undefined1 *)(unaff_EBP + 0xa32b)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + 0xa32b)" ( (binary_expression "unaff_EBP + 0xa32b" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a);" (assignment_expression "__stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a)" identifier = (cast_expression "(_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a)" ( (type_descriptor "_IO_FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(unaff_EBP + 0xa18a)" * (pointer_expression "*(undefined4 **)(unaff_EBP + 0xa18a)" * (cast_expression "(undefined4 **)(unaff_EBP + 0xa18a)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBP + 0xa18a)" ( (binary_expression "unaff_EBP + 0xa18a" identifier + number_literal) ))))))) ;) (labeled_statement "LAB_00011ec7:\n      local_40 = *(byte **)(unaff_EBP + 0xa326);" statement_identifier : (expression_statement "local_40 = *(byte **)(unaff_EBP + 0xa326);" (assignment_expression "local_40 = *(byte **)(unaff_EBP + 0xa326)" identifier = (pointer_expression "*(byte **)(unaff_EBP + 0xa326)" * (cast_expression "(byte **)(unaff_EBP + 0xa326)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBP + 0xa326)" ( (binary_expression "unaff_EBP + 0xa326" identifier + number_literal) ))))) ;)) (expression_statement "pbVar11 = (byte *)__stream->_IO_read_ptr;" (assignment_expression "pbVar11 = (byte *)__stream->_IO_read_ptr" identifier = (cast_expression "(byte *)__stream->_IO_read_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__stream->_IO_read_ptr" identifier -> field_identifier))) ;) (expression_statement "pbVar8 = (byte *)__stream->_IO_read_end;" (assignment_expression "pbVar8 = (byte *)__stream->_IO_read_end" identifier = (cast_expression "(byte *)__stream->_IO_read_end" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__stream->_IO_read_end" identifier -> field_identifier))) ;) (if_statement "if (pbVar11 < pbVar8) {\n        pbVar5 = pbVar11 + 1;\n        __stream->_IO_read_ptr = (char *)pbVar5;\n        uVar12 = (uint)*pbVar11;\n      }\n      else {\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }" if (parenthesized_expression "(pbVar11 < pbVar8)" ( (binary_expression "pbVar11 < pbVar8" identifier < identifier) )) (compound_statement "{\n        pbVar5 = pbVar11 + 1;\n        __stream->_IO_read_ptr = (char *)pbVar5;\n        uVar12 = (uint)*pbVar11;\n      }" { (expression_statement "pbVar5 = pbVar11 + 1;" (assignment_expression "pbVar5 = pbVar11 + 1" identifier = (binary_expression "pbVar11 + 1" identifier + number_literal)) ;) (expression_statement "__stream->_IO_read_ptr = (char *)pbVar5;" (assignment_expression "__stream->_IO_read_ptr = (char *)pbVar5" (field_expression "__stream->_IO_read_ptr" identifier -> field_identifier) = (cast_expression "(char *)pbVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "uVar12 = (uint)*pbVar11;" (assignment_expression "uVar12 = (uint)*pbVar11" identifier = (binary_expression "(uint)*pbVar11" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }) (else_clause "else {\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }" else (compound_statement "{\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }" { (expression_statement "uVar12 = __uflow(__stream);" (assignment_expression "uVar12 = __uflow(__stream)" identifier = (call_expression "__uflow(__stream)" identifier (argument_list "(__stream)" ( identifier )))) ;) (expression_statement "local_30 = *piVar4;" (assignment_expression "local_30 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (if_statement "if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }" if (parenthesized_expression "(uVar12 == 0xffffffff)" ( (binary_expression "uVar12 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }" { (expression_statement "uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);" (assignment_expression "uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2)" identifier = (binary_expression "(uint)*(byte *)(unaff_EBP + 0xa2a2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(unaff_EBP + 0xa2a2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + 0xa2a2)" ( (binary_expression "unaff_EBP + 0xa2a2" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_00011f92;" goto statement_identifier ;) })) (expression_statement "pbVar5 = (byte *)__stream->_IO_read_ptr;" (assignment_expression "pbVar5 = (byte *)__stream->_IO_read_ptr" identifier = (cast_expression "(byte *)__stream->_IO_read_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__stream->_IO_read_ptr" identifier -> field_identifier))) ;) (expression_statement "pbVar8 = (byte *)__stream->_IO_read_end;" (assignment_expression "pbVar8 = (byte *)__stream->_IO_read_end" identifier = (cast_expression "(byte *)__stream->_IO_read_end" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__stream->_IO_read_end" identifier -> field_identifier))) ;) }))) (labeled_statement "LAB_00011f24:\n      if (pbVar5 < pbVar8) {\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }" statement_identifier : (if_statement "if (pbVar5 < pbVar8) {\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }" if (parenthesized_expression "(pbVar5 < pbVar8)" ( (binary_expression "pbVar5 < pbVar8" identifier < identifier) )) (compound_statement "{\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }" { (expression_statement "__stream->_IO_read_ptr = (char *)(pbVar5 + 1);" (assignment_expression "__stream->_IO_read_ptr = (char *)(pbVar5 + 1)" (field_expression "__stream->_IO_read_ptr" identifier -> field_identifier) = (cast_expression "(char *)(pbVar5 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar5 + 1)" ( (binary_expression "pbVar5 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar10 = (uint)*pbVar5;" (assignment_expression "uVar10 = (uint)*pbVar5" identifier = (binary_expression "(uint)*pbVar5" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (labeled_statement "LAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }" statement_identifier : (if_statement "if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }" if (parenthesized_expression "(*(byte *)(unaff_EBP + 0xa2a2) == uVar12)" ( (binary_expression "*(byte *)(unaff_EBP + 0xa2a2) == uVar12" (pointer_expression "*(byte *)(unaff_EBP + 0xa2a2)" * (cast_expression "(byte *)(unaff_EBP + 0xa2a2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + 0xa2a2)" ( (binary_expression "unaff_EBP + 0xa2a2" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }" { (expression_statement "bVar1 = *local_40;" (assignment_expression "bVar1 = *local_40" identifier = (pointer_expression "*local_40" * identifier)) ;) (expression_statement "uVar16 = CONCAT44(uVar10,(uint)bVar1);" (assignment_expression "uVar16 = CONCAT44(uVar10,(uint)bVar1)" identifier = (call_expression "CONCAT44(uVar10,(uint)bVar1)" identifier (argument_list "(uVar10,(uint)bVar1)" ( identifier , (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) )))) ;) (if_statement "if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }" { (expression_statement "p_Var9 = (_IO_FILE *)*piVar2;" (assignment_expression "p_Var9 = (_IO_FILE *)*piVar2" identifier = (cast_expression "(_IO_FILE *)*piVar2" ( (type_descriptor "_IO_FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (expression_statement "pbVar11 = (byte *)p_Var9->_IO_write_ptr;" (assignment_expression "pbVar11 = (byte *)p_Var9->_IO_write_ptr" identifier = (cast_expression "(byte *)p_Var9->_IO_write_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "p_Var9->_IO_write_ptr" identifier -> field_identifier))) ;) (if_statement "if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;" if (parenthesized_expression "(p_Var9->_IO_write_end <= pbVar11)" ( (binary_expression "p_Var9->_IO_write_end <= pbVar11" (field_expression "p_Var9->_IO_write_end" identifier -> field_identifier) <= identifier) )) (goto_statement "goto LAB_00012168;" goto statement_identifier ;)) (expression_statement "p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);" (assignment_expression "p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1)" (field_expression "p_Var9->_IO_write_ptr" identifier -> field_identifier) = (cast_expression "(char *)(pbVar11 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar11 + 1)" ( (binary_expression "pbVar11 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar11 = bVar1;" (assignment_expression "*pbVar11 = bVar1" (pointer_expression "*pbVar11" * identifier) = identifier) ;) })) (goto_statement "goto LAB_00011f07;" goto statement_identifier ;) }))) (expression_statement "p_Var9 = (_IO_FILE *)*piVar2;" (assignment_expression "p_Var9 = (_IO_FILE *)*piVar2" identifier = (cast_expression "(_IO_FILE *)*piVar2" ( (type_descriptor "_IO_FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (expression_statement "pcVar3 = p_Var9->_IO_write_ptr;" (assignment_expression "pcVar3 = p_Var9->_IO_write_ptr" identifier = (field_expression "p_Var9->_IO_write_ptr" identifier -> field_identifier)) ;) (if_statement "if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }" if (parenthesized_expression "(pcVar3 < p_Var9->_IO_write_end)" ( (binary_expression "pcVar3 < p_Var9->_IO_write_end" identifier < (field_expression "p_Var9->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }" { (expression_statement "p_Var9->_IO_write_ptr = pcVar3 + 1;" (assignment_expression "p_Var9->_IO_write_ptr = pcVar3 + 1" (field_expression "p_Var9->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar3 = (char)uVar12;" (assignment_expression "*pcVar3 = (char)uVar12" (pointer_expression "*pcVar3" * identifier) = (cast_expression "(char)uVar12" ( (type_descriptor "char" primitive_type) ) identifier)) ;) }) (else_clause "else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }" else (compound_statement "{\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }" { (expression_statement "iVar7 = __overflow(p_Var9,uVar12 & 0xff);" (assignment_expression "iVar7 = __overflow(p_Var9,uVar12 & 0xff)" identifier = (call_expression "__overflow(p_Var9,uVar12 & 0xff)" identifier (argument_list "(p_Var9,uVar12 & 0xff)" ( identifier , (binary_expression "uVar12 & 0xff" identifier & number_literal) )))) ;) (if_statement "if (iVar7 < 0) goto LAB_0001215c;" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0001215c;" goto statement_identifier ;)) }))) (goto_statement "goto LAB_00011f1c;" goto statement_identifier ;) }))) (expression_statement "uVar10 = __uflow(__stream);" (assignment_expression "uVar10 = __uflow(__stream)" identifier = (call_expression "__uflow(__stream)" identifier (argument_list "(__stream)" ( identifier )))) ;) (if_statement "if (uVar10 != 0xffffffff) goto LAB_00011f35;" if (parenthesized_expression "(uVar10 != 0xffffffff)" ( (binary_expression "uVar10 != 0xffffffff" identifier != number_literal) )) (goto_statement "goto LAB_00011f35;" goto statement_identifier ;)) (expression_statement "local_30 = *piVar4;" (assignment_expression "local_30 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "p_Var9 = (_IO_FILE *)*piVar2;" (assignment_expression "p_Var9 = (_IO_FILE *)*piVar2" identifier = (cast_expression "(_IO_FILE *)*piVar2" ( (type_descriptor "_IO_FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (expression_statement "pcVar3 = p_Var9->_IO_write_ptr;" (assignment_expression "pcVar3 = p_Var9->_IO_write_ptr" identifier = (field_expression "p_Var9->_IO_write_ptr" identifier -> field_identifier)) ;) (if_statement "if (pcVar3 < p_Var9->_IO_write_end) {\n        p_Var9->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)uVar12;\nLAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n        if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }\nLAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }\n        iVar7 = __overflow(p_Var9,uVar10);\n        if (-1 < iVar7) goto LAB_00011fac;\n      }\n      else {\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }" if (parenthesized_expression "(pcVar3 < p_Var9->_IO_write_end)" ( (binary_expression "pcVar3 < p_Var9->_IO_write_end" identifier < (field_expression "p_Var9->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n        p_Var9->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)uVar12;\nLAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n        if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }\nLAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }\n        iVar7 = __overflow(p_Var9,uVar10);\n        if (-1 < iVar7) goto LAB_00011fac;\n      }" { (expression_statement "p_Var9->_IO_write_ptr = pcVar3 + 1;" (assignment_expression "p_Var9->_IO_write_ptr = pcVar3 + 1" (field_expression "p_Var9->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar3 = (char)uVar12;" (assignment_expression "*pcVar3 = (char)uVar12" (pointer_expression "*pcVar3" * identifier) = (cast_expression "(char)uVar12" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (labeled_statement "LAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);" statement_identifier : (expression_statement "uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);" (assignment_expression "uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2)" identifier = (binary_expression "(uint)*(byte *)(unaff_EBP + 0xa2a2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(unaff_EBP + 0xa2a2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + 0xa2a2)" ( (binary_expression "unaff_EBP + 0xa2a2" identifier + number_literal) ))))) ;)) (if_statement "if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }" if (parenthesized_expression "(uVar10 == uVar12)" ( (binary_expression "uVar10 == uVar12" identifier == identifier) )) (compound_statement "{\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }" { (expression_statement "bVar1 = (byte)__stream->_flags;" (assignment_expression "bVar1 = (byte)__stream->_flags" identifier = (cast_expression "(byte)__stream->_flags" ( (type_descriptor "byte" type_identifier) ) (field_expression "__stream->_flags" identifier -> field_identifier))) ;) (goto_statement "goto joined_r0x00011faf;" goto statement_identifier ;) })) (labeled_statement "LAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;" statement_identifier : (expression_statement "p_Var9 = (_IO_FILE *)*piVar2;" (assignment_expression "p_Var9 = (_IO_FILE *)*piVar2" identifier = (cast_expression "(_IO_FILE *)*piVar2" ( (type_descriptor "_IO_FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;)) (expression_statement "pcVar3 = p_Var9->_IO_write_ptr;" (assignment_expression "pcVar3 = p_Var9->_IO_write_ptr" identifier = (field_expression "p_Var9->_IO_write_ptr" identifier -> field_identifier)) ;) (if_statement "if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }" if (parenthesized_expression "(pcVar3 < p_Var9->_IO_write_end)" ( (binary_expression "pcVar3 < p_Var9->_IO_write_end" identifier < (field_expression "p_Var9->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }" { (expression_statement "p_Var9->_IO_write_ptr = pcVar3 + 1;" (assignment_expression "p_Var9->_IO_write_ptr = pcVar3 + 1" (field_expression "p_Var9->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar3 = (char)uVar10;" (assignment_expression "*pcVar3 = (char)uVar10" (pointer_expression "*pcVar3" * identifier) = (cast_expression "(char)uVar10" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (labeled_statement "LAB_00011fac:\n          bVar1 = (byte)__stream->_flags;" statement_identifier : (expression_statement "bVar1 = (byte)__stream->_flags;" (assignment_expression "bVar1 = (byte)__stream->_flags" identifier = (cast_expression "(byte)__stream->_flags" ( (type_descriptor "byte" type_identifier) ) (field_expression "__stream->_flags" identifier -> field_identifier))) ;)) (labeled_statement "joined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }" statement_identifier : (if_statement "if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }" if (parenthesized_expression "((bVar1 & 0x20) != 0)" ( (binary_expression "(bVar1 & 0x20) != 0" (parenthesized_expression "(bVar1 & 0x20)" ( (binary_expression "bVar1 & 0x20" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }" { (expression_statement "uVar6 = FUN_000146e0(0,3,*param_2);" (assignment_expression "uVar6 = FUN_000146e0(0,3,*param_2)" identifier = (call_expression "FUN_000146e0(0,3,*param_2)" identifier (argument_list "(0,3,*param_2)" ( number_literal , number_literal , (pointer_expression "*param_2" * identifier) )))) ;) (expression_statement "error(0,local_30,unaff_EBP + 0x5663,uVar6);" (call_expression "error(0,local_30,unaff_EBP + 0x5663,uVar6)" identifier (argument_list "(0,local_30,unaff_EBP + 0x5663,uVar6)" ( number_literal , identifier , (binary_expression "unaff_EBP + 0x5663" identifier + number_literal) , identifier ))) ;) (expression_statement "local_21 = 0;" (assignment_expression "local_21 = 0" identifier = number_literal) ;) }))) (if_statement "if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }" if (parenthesized_expression "((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13)" ( (binary_expression "(!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13" (parenthesized_expression "(!(bool)uVar13 && !(bool)uVar14)" ( (binary_expression "!(bool)uVar13 && !(bool)uVar14" (unary_expression "!(bool)uVar13" ! (cast_expression "(bool)uVar13" ( (type_descriptor "bool" primitive_type) ) identifier)) && (unary_expression "!(bool)uVar14" ! (cast_expression "(bool)uVar14" ( (type_descriptor "bool" primitive_type) ) identifier))) )) == (cast_expression "(bool)uVar13" ( (type_descriptor "bool" primitive_type) ) identifier)) )) (compound_statement "{\n            clearerr_unlocked(__stream);\n          }" { (expression_statement "clearerr_unlocked(__stream);" (call_expression "clearerr_unlocked(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) }) (else_clause "else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }" else (compound_statement "{\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }" { (expression_statement "iVar7 = FUN_00015330(__stream);" (assignment_expression "iVar7 = FUN_00015330(__stream)" identifier = (call_expression "FUN_00015330(__stream)" identifier (argument_list "(__stream)" ( identifier )))) ;) (if_statement "if (iVar7 == -1) goto LAB_00012033;" if (parenthesized_expression "(iVar7 == -1)" ( (binary_expression "iVar7 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00012033;" goto statement_identifier ;)) }))) (goto_statement "goto LAB_00011fcb;" goto statement_identifier ;) })) (expression_statement "iVar7 = __overflow(p_Var9,uVar10);" (assignment_expression "iVar7 = __overflow(p_Var9,uVar10)" identifier = (call_expression "__overflow(p_Var9,uVar10)" identifier (argument_list "(p_Var9,uVar10)" ( identifier , identifier )))) ;) (if_statement "if (-1 < iVar7) goto LAB_00011fac;" if (parenthesized_expression "(-1 < iVar7)" ( (binary_expression "-1 < iVar7" number_literal < identifier) )) (goto_statement "goto LAB_00011fac;" goto statement_identifier ;)) }) (else_clause "else {\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }" else (compound_statement "{\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }" { (expression_statement "iVar7 = __overflow(p_Var9,uVar12 & 0xff);" (assignment_expression "iVar7 = __overflow(p_Var9,uVar12 & 0xff)" identifier = (call_expression "__overflow(p_Var9,uVar12 & 0xff)" identifier (argument_list "(p_Var9,uVar12 & 0xff)" ( identifier , (binary_expression "uVar12 & 0xff" identifier & number_literal) )))) ;) (if_statement "if (-1 < iVar7) goto LAB_000120af;" if (parenthesized_expression "(-1 < iVar7)" ( (binary_expression "-1 < iVar7" number_literal < identifier) )) (goto_statement "goto LAB_000120af;" goto statement_identifier ;)) }))) (labeled_statement "LAB_0001215c:\n      do {\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      } while (iVar7 < 0);" statement_identifier : (do_statement "do {\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      } while (iVar7 < 0);" do (compound_statement "{\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      }" { (expression_statement "uVar16 = FUN_00011830();" (assignment_expression "uVar16 = FUN_00011830()" identifier = (call_expression "FUN_00011830()" identifier (argument_list "()" ( )))) ;) (expression_statement "p_Var9 = extraout_ECX;" (assignment_expression "p_Var9 = extraout_ECX" identifier = identifier) ;) (labeled_statement "LAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);" statement_identifier : (expression_statement "uVar10 = (uint)((ulonglong)uVar16 >> 0x20);" (assignment_expression "uVar10 = (uint)((ulonglong)uVar16 >> 0x20)" identifier = (call_expression "(uint)((ulonglong)uVar16 >> 0x20)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)uVar16 >> 0x20)" ( (binary_expression "(ulonglong)uVar16 >> 0x20" (cast_expression "(ulonglong)uVar16" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;)) (expression_statement "iVar7 = __overflow(p_Var9,(int)uVar16);" (assignment_expression "iVar7 = __overflow(p_Var9,(int)uVar16)" identifier = (call_expression "__overflow(p_Var9,(int)uVar16)" identifier (argument_list "(p_Var9,(int)uVar16)" ( identifier , (cast_expression "(int)uVar16" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) }) while (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) ;)) (labeled_statement "LAB_00011f07:\n      local_40 = local_40 + 1;" statement_identifier : (expression_statement "local_40 = local_40 + 1;" (assignment_expression "local_40 = local_40 + 1" identifier = (binary_expression "local_40 + 1" identifier + number_literal)) ;)) (if_statement "if (*(byte **)(unaff_EBP + 0xa322) == local_40) {\n        local_40 = *(byte **)(unaff_EBP + 0xa326);\n      }" if (parenthesized_expression "(*(byte **)(unaff_EBP + 0xa322) == local_40)" ( (binary_expression "*(byte **)(unaff_EBP + 0xa322) == local_40" (pointer_expression "*(byte **)(unaff_EBP + 0xa322)" * (cast_expression "(byte **)(unaff_EBP + 0xa322)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBP + 0xa322)" ( (binary_expression "unaff_EBP + 0xa322" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n        local_40 = *(byte **)(unaff_EBP + 0xa326);\n      }" { (expression_statement "local_40 = *(byte **)(unaff_EBP + 0xa326);" (assignment_expression "local_40 = *(byte **)(unaff_EBP + 0xa326)" identifier = (pointer_expression "*(byte **)(unaff_EBP + 0xa326)" * (cast_expression "(byte **)(unaff_EBP + 0xa326)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBP + 0xa326)" ( (binary_expression "unaff_EBP + 0xa326" identifier + number_literal) ))))) ;) })) (labeled_statement "LAB_00011f1c:\n      pbVar5 = (byte *)__stream->_IO_read_ptr;" statement_identifier : (expression_statement "pbVar5 = (byte *)__stream->_IO_read_ptr;" (assignment_expression "pbVar5 = (byte *)__stream->_IO_read_ptr" identifier = (cast_expression "(byte *)__stream->_IO_read_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__stream->_IO_read_ptr" identifier -> field_identifier))) ;)) (expression_statement "pbVar8 = (byte *)__stream->_IO_read_end;" (assignment_expression "pbVar8 = (byte *)__stream->_IO_read_end" identifier = (cast_expression "(byte *)__stream->_IO_read_end" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__stream->_IO_read_end" identifier -> field_identifier))) ;) (expression_statement "uVar12 = uVar10;" (assignment_expression "uVar12 = uVar10" identifier = identifier) ;) (goto_statement "goto LAB_00011f24;" goto statement_identifier ;) })) (expression_statement "__stream = fopen64((char *)*param_2,(char *)(unaff_EBP + 0x51cc));" (assignment_expression "__stream = fopen64((char *)*param_2,(char *)(unaff_EBP + 0x51cc))" identifier = (call_expression "fopen64((char *)*param_2,(char *)(unaff_EBP + 0x51cc))" identifier (argument_list "((char *)*param_2,(char *)(unaff_EBP + 0x51cc))" ( (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) , (cast_expression "(char *)(unaff_EBP + 0x51cc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + 0x51cc)" ( (binary_expression "unaff_EBP + 0x51cc" identifier + number_literal) ))) )))) ;) (if_statement "if (__stream != (FILE *)0x0) {\n      FUN_00012690(__stream,2);\n      goto LAB_00011ec7;\n    }" if (parenthesized_expression "(__stream != (FILE *)0x0)" ( (binary_expression "__stream != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      FUN_00012690(__stream,2);\n      goto LAB_00011ec7;\n    }" { (expression_statement "FUN_00012690(__stream,2);" (call_expression "FUN_00012690(__stream,2)" identifier (argument_list "(__stream,2)" ( identifier , number_literal ))) ;) (goto_statement "goto LAB_00011ec7;" goto statement_identifier ;) })) (labeled_statement "LAB_00012033:\n    uVar6 = FUN_000146e0(0,3,*param_2);" statement_identifier : (expression_statement "uVar6 = FUN_000146e0(0,3,*param_2);" (assignment_expression "uVar6 = FUN_000146e0(0,3,*param_2)" identifier = (call_expression "FUN_000146e0(0,3,*param_2)" identifier (argument_list "(0,3,*param_2)" ( number_literal , number_literal , (pointer_expression "*param_2" * identifier) )))) ;)) (expression_statement "error(0,*piVar4,unaff_EBP + 0x5663,uVar6);" (call_expression "error(0,*piVar4,unaff_EBP + 0x5663,uVar6)" identifier (argument_list "(0,*piVar4,unaff_EBP + 0x5663,uVar6)" ( number_literal , (pointer_expression "*piVar4" * identifier) , (binary_expression "unaff_EBP + 0x5663" identifier + number_literal) , identifier ))) ;) (expression_statement "local_21 = 0;" (assignment_expression "local_21 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00011fcb:\n    param_2 = param_2 + 1;" statement_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 "uVar13 = param_1 == 0;" (assignment_expression "uVar13 = param_1 == 0" identifier = (binary_expression "param_1 == 0" identifier == number_literal)) ;) (expression_statement "param_1 = param_1 + -1;" (assignment_expression "param_1 = param_1 + -1" identifier = (binary_expression "param_1 + -1" identifier + number_literal)) ;) (expression_statement "uVar14 = param_1 == 0;" (assignment_expression "uVar14 = param_1 == 0" identifier = (binary_expression "param_1 == 0" identifier == number_literal)) ;) (if_statement "if ((bool)uVar14) {\n      return local_21;\n    }" if (parenthesized_expression "((bool)uVar14)" ( (cast_expression "(bool)uVar14" ( (type_descriptor "bool" primitive_type) ) identifier) )) (compound_statement "{\n      return local_21;\n    }" { (return_statement "return local_21;" return identifier ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) (if_statement if (parenthesized_expression ( (cast_expression ( (type_descriptor TYPE) ) IDENT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( (cast_expression ( (type_descriptor TYPE) ) IDENT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! (cast_expression ( (type_descriptor TYPE) ) IDENT)) && (unary_expression ! (cast_expression ( (type_descriptor TYPE) ) IDENT))) )) == (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (field_expression IDENT -> field_identifier))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (field_expression IDENT -> field_identifier))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (field_expression IDENT -> field_identifier) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (field_expression IDENT -> field_identifier))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (field_expression IDENT -> field_identifier))) ;) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (field_expression IDENT -> field_identifier) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (field_expression IDENT -> field_identifier))) ;) (if_statement if (parenthesized_expression ( (binary_expression (field_expression IDENT -> field_identifier) <= IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (field_expression IDENT -> field_identifier) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (goto_statement goto statement_identifier ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (field_expression IDENT -> field_identifier)) )) (compound_statement { (expression_statement (assignment_expression (field_expression IDENT -> field_identifier) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT & LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) }))) (goto_statement goto statement_identifier ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (field_expression IDENT -> field_identifier)) )) (compound_statement { (expression_statement (assignment_expression (field_expression IDENT -> field_identifier) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (field_expression IDENT -> field_identifier))) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;)) (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (field_expression IDENT -> field_identifier)) )) (compound_statement { (expression_statement (assignment_expression (field_expression IDENT -> field_identifier) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (field_expression IDENT -> field_identifier))) ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT , (pointer_expression * IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT , (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! (cast_expression ( (type_descriptor TYPE) ) IDENT)) && (unary_expression ! (cast_expression ( (type_descriptor TYPE) ) IDENT))) )) == (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }))) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT & LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;)) }))) (labeled_statement statement_identifier : (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) IDENT) )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT < LIT) )) ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (field_expression IDENT -> field_identifier))) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (field_expression IDENT -> field_identifier))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 ( IDENT , LIT ))) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT , (pointer_expression * IDENT) )))) ;)) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression * IDENT) , (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) (if_statement if (parenthesized_expression ( (cast_expression ( (type_descriptor TYPE) ) IDENT) )) (compound_statement { (return_statement return IDENT ;) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "undefined1 FUN_00011e40(int param_1,undefined4 *param_2)\n\n{\n  byte bVar1;\n  int *piVar2;\n  char *pcVar3;\n  int *piVar4;\n  byte *pbVar5;\n  undefined4 uVar6;\n  _IO_FILE *__stream;\n  int iVar7;\n  byte *pbVar8;\n  _IO_FILE *extraout_ECX;\n  _IO_FILE *p_Var9;\n  uint uVar10;\n  int unaff_EBP;\n  byte *pbVar11;\n  uint uVar12;\n  undefined1 uVar13;\n  undefined1 uVar14;\n  byte bVar15;\n  undefined8 uVar16;\n  byte *local_40;\n  int local_30;\n  undefined1 local_21;\n  \n  bVar15 = 0;\n  FUN_00012549();\n  uVar13 = 0;\n  uVar14 = param_1 == 0;\n  if ((bool)uVar14) {\n    return 1;\n  }\n  piVar4 = __errno_location();\n  local_21 = 1;\n  piVar2 = *(int **)(unaff_EBP + 0xa18e);\n  do {\n    iVar7 = 2;\n    pbVar11 = (byte *)*param_2;\n    pbVar8 = (byte *)(unaff_EBP + 0x6267);\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      uVar13 = *pbVar11 < *pbVar8;\n      uVar14 = *pbVar11 == *pbVar8;\n      pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1;\n      pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1;\n    } while ((bool)uVar14);\n    if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n      *(undefined1 *)(unaff_EBP + 0xa32b) = 1;\n      __stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a);\nLAB_00011ec7:\n      local_40 = *(byte **)(unaff_EBP + 0xa326);\n      pbVar11 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      if (pbVar11 < pbVar8) {\n        pbVar5 = pbVar11 + 1;\n        __stream->_IO_read_ptr = (char *)pbVar5;\n        uVar12 = (uint)*pbVar11;\n      }\n      else {\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }\nLAB_00011f24:\n      if (pbVar5 < pbVar8) {\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }\n      uVar10 = __uflow(__stream);\n      if (uVar10 != 0xffffffff) goto LAB_00011f35;\n      local_30 = *piVar4;\n      p_Var9 = (_IO_FILE *)*piVar2;\n      pcVar3 = p_Var9->_IO_write_ptr;\n      if (pcVar3 < p_Var9->_IO_write_end) {\n        p_Var9->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)uVar12;\nLAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n        if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }\nLAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }\n        iVar7 = __overflow(p_Var9,uVar10);\n        if (-1 < iVar7) goto LAB_00011fac;\n      }\n      else {\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }\nLAB_0001215c:\n      do {\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      } while (iVar7 < 0);\nLAB_00011f07:\n      local_40 = local_40 + 1;\n      if (*(byte **)(unaff_EBP + 0xa322) == local_40) {\n        local_40 = *(byte **)(unaff_EBP + 0xa326);\n      }\nLAB_00011f1c:\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      uVar12 = uVar10;\n      goto LAB_00011f24;\n    }\n    __stream = fopen64((char *)*param_2,(char *)(unaff_EBP + 0x51cc));\n    if (__stream != (FILE *)0x0) {\n      FUN_00012690(__stream,2);\n      goto LAB_00011ec7;\n    }\nLAB_00012033:\n    uVar6 = FUN_000146e0(0,3,*param_2);\n    error(0,*piVar4,unaff_EBP + 0x5663,uVar6);\n    local_21 = 0;\nLAB_00011fcb:\n    param_2 = param_2 + 1;\n    uVar13 = param_1 == 0;\n    param_1 = param_1 + -1;\n    uVar14 = param_1 == 0;\n    if ((bool)uVar14) {\n      return local_21;\n    }\n  } while( true );\n}" (type_identifier "undefined1") (function_declarator "FUN_00011e40(int param_1,undefined4 *param_2)" (identifier "FUN_00011e40") (parameter_list "(int param_1,undefined4 *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  int *piVar2;\n  char *pcVar3;\n  int *piVar4;\n  byte *pbVar5;\n  undefined4 uVar6;\n  _IO_FILE *__stream;\n  int iVar7;\n  byte *pbVar8;\n  _IO_FILE *extraout_ECX;\n  _IO_FILE *p_Var9;\n  uint uVar10;\n  int unaff_EBP;\n  byte *pbVar11;\n  uint uVar12;\n  undefined1 uVar13;\n  undefined1 uVar14;\n  byte bVar15;\n  undefined8 uVar16;\n  byte *local_40;\n  int local_30;\n  undefined1 local_21;\n  \n  bVar15 = 0;\n  FUN_00012549();\n  uVar13 = 0;\n  uVar14 = param_1 == 0;\n  if ((bool)uVar14) {\n    return 1;\n  }\n  piVar4 = __errno_location();\n  local_21 = 1;\n  piVar2 = *(int **)(unaff_EBP + 0xa18e);\n  do {\n    iVar7 = 2;\n    pbVar11 = (byte *)*param_2;\n    pbVar8 = (byte *)(unaff_EBP + 0x6267);\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      uVar13 = *pbVar11 < *pbVar8;\n      uVar14 = *pbVar11 == *pbVar8;\n      pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1;\n      pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1;\n    } while ((bool)uVar14);\n    if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n      *(undefined1 *)(unaff_EBP + 0xa32b) = 1;\n      __stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a);\nLAB_00011ec7:\n      local_40 = *(byte **)(unaff_EBP + 0xa326);\n      pbVar11 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      if (pbVar11 < pbVar8) {\n        pbVar5 = pbVar11 + 1;\n        __stream->_IO_read_ptr = (char *)pbVar5;\n        uVar12 = (uint)*pbVar11;\n      }\n      else {\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }\nLAB_00011f24:\n      if (pbVar5 < pbVar8) {\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }\n      uVar10 = __uflow(__stream);\n      if (uVar10 != 0xffffffff) goto LAB_00011f35;\n      local_30 = *piVar4;\n      p_Var9 = (_IO_FILE *)*piVar2;\n      pcVar3 = p_Var9->_IO_write_ptr;\n      if (pcVar3 < p_Var9->_IO_write_end) {\n        p_Var9->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)uVar12;\nLAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n        if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }\nLAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }\n        iVar7 = __overflow(p_Var9,uVar10);\n        if (-1 < iVar7) goto LAB_00011fac;\n      }\n      else {\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }\nLAB_0001215c:\n      do {\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      } while (iVar7 < 0);\nLAB_00011f07:\n      local_40 = local_40 + 1;\n      if (*(byte **)(unaff_EBP + 0xa322) == local_40) {\n        local_40 = *(byte **)(unaff_EBP + 0xa326);\n      }\nLAB_00011f1c:\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      uVar12 = uVar10;\n      goto LAB_00011f24;\n    }\n    __stream = fopen64((char *)*param_2,(char *)(unaff_EBP + 0x51cc));\n    if (__stream != (FILE *)0x0) {\n      FUN_00012690(__stream,2);\n      goto LAB_00011ec7;\n    }\nLAB_00012033:\n    uVar6 = FUN_000146e0(0,3,*param_2);\n    error(0,*piVar4,unaff_EBP + 0x5663,uVar6);\n    local_21 = 0;\nLAB_00011fcb:\n    param_2 = param_2 + 1;\n    uVar13 = param_1 == 0;\n    param_1 = param_1 + -1;\n    uVar14 = param_1 == 0;\n    if ((bool)uVar14) {\n      return local_21;\n    }\n  } while( true );\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "_IO_FILE *__stream;" (type_identifier "_IO_FILE") (pointer_declarator "*__stream" (* "*") (identifier "__stream")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "byte *pbVar8;" (type_identifier "byte") (pointer_declarator "*pbVar8" (* "*") (identifier "pbVar8")) (; ";")) (declaration "_IO_FILE *extraout_ECX;" (type_identifier "_IO_FILE") (pointer_declarator "*extraout_ECX" (* "*") (identifier "extraout_ECX")) (; ";")) (declaration "_IO_FILE *p_Var9;" (type_identifier "_IO_FILE") (pointer_declarator "*p_Var9" (* "*") (identifier "p_Var9")) (; ";")) (declaration "uint uVar10;" (type_identifier "uint") (identifier "uVar10") (; ";")) (declaration "int unaff_EBP;" (primitive_type "int") (identifier "unaff_EBP") (; ";")) (declaration "byte *pbVar11;" (type_identifier "byte") (pointer_declarator "*pbVar11" (* "*") (identifier "pbVar11")) (; ";")) (declaration "uint uVar12;" (type_identifier "uint") (identifier "uVar12") (; ";")) (declaration "undefined1 uVar13;" (type_identifier "undefined1") (identifier "uVar13") (; ";")) (declaration "undefined1 uVar14;" (type_identifier "undefined1") (identifier "uVar14") (; ";")) (declaration "byte bVar15;" (type_identifier "byte") (identifier "bVar15") (; ";")) (declaration "undefined8 uVar16;" (type_identifier "undefined8") (identifier "uVar16") (; ";")) (declaration "byte *local_40;" (type_identifier "byte") (pointer_declarator "*local_40" (* "*") (identifier "local_40")) (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "undefined1 local_21;" (type_identifier "undefined1") (identifier "local_21") (; ";")) (expression_statement "bVar15 = 0;" (assignment_expression "bVar15 = 0" (identifier "bVar15") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_00012549();" (call_expression "FUN_00012549()" (identifier "FUN_00012549") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar13 = 0;" (assignment_expression "uVar13 = 0" (identifier "uVar13") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar14 = param_1 == 0;" (assignment_expression "uVar14 = param_1 == 0" (identifier "uVar14") (= "=") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0"))) (; ";")) (if_statement "if ((bool)uVar14) {\n    return 1;\n  }" (if "if") (parenthesized_expression "((bool)uVar14)" (( "(") (cast_expression "(bool)uVar14" (( "(") (type_descriptor "bool" (primitive_type "bool")) () ")") (identifier "uVar14")) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" (identifier "piVar4") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "local_21 = 1;" (assignment_expression "local_21 = 1" (identifier "local_21") (= "=") (number_literal "1")) (; ";")) (expression_statement "piVar2 = *(int **)(unaff_EBP + 0xa18e);" (assignment_expression "piVar2 = *(int **)(unaff_EBP + 0xa18e)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(unaff_EBP + 0xa18e)" (* "*") (cast_expression "(int **)(unaff_EBP + 0xa18e)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EBP + 0xa18e)" (( "(") (binary_expression "unaff_EBP + 0xa18e" (identifier "unaff_EBP") (+ "+") (number_literal "0xa18e")) () ")"))))) (; ";")) (do_statement "do {\n    iVar7 = 2;\n    pbVar11 = (byte *)*param_2;\n    pbVar8 = (byte *)(unaff_EBP + 0x6267);\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      uVar13 = *pbVar11 < *pbVar8;\n      uVar14 = *pbVar11 == *pbVar8;\n      pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1;\n      pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1;\n    } while ((bool)uVar14);\n    if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n      *(undefined1 *)(unaff_EBP + 0xa32b) = 1;\n      __stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a);\nLAB_00011ec7:\n      local_40 = *(byte **)(unaff_EBP + 0xa326);\n      pbVar11 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      if (pbVar11 < pbVar8) {\n        pbVar5 = pbVar11 + 1;\n        __stream->_IO_read_ptr = (char *)pbVar5;\n        uVar12 = (uint)*pbVar11;\n      }\n      else {\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }\nLAB_00011f24:\n      if (pbVar5 < pbVar8) {\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }\n      uVar10 = __uflow(__stream);\n      if (uVar10 != 0xffffffff) goto LAB_00011f35;\n      local_30 = *piVar4;\n      p_Var9 = (_IO_FILE *)*piVar2;\n      pcVar3 = p_Var9->_IO_write_ptr;\n      if (pcVar3 < p_Var9->_IO_write_end) {\n        p_Var9->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)uVar12;\nLAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n        if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }\nLAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }\n        iVar7 = __overflow(p_Var9,uVar10);\n        if (-1 < iVar7) goto LAB_00011fac;\n      }\n      else {\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }\nLAB_0001215c:\n      do {\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      } while (iVar7 < 0);\nLAB_00011f07:\n      local_40 = local_40 + 1;\n      if (*(byte **)(unaff_EBP + 0xa322) == local_40) {\n        local_40 = *(byte **)(unaff_EBP + 0xa326);\n      }\nLAB_00011f1c:\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      uVar12 = uVar10;\n      goto LAB_00011f24;\n    }\n    __stream = fopen64((char *)*param_2,(char *)(unaff_EBP + 0x51cc));\n    if (__stream != (FILE *)0x0) {\n      FUN_00012690(__stream,2);\n      goto LAB_00011ec7;\n    }\nLAB_00012033:\n    uVar6 = FUN_000146e0(0,3,*param_2);\n    error(0,*piVar4,unaff_EBP + 0x5663,uVar6);\n    local_21 = 0;\nLAB_00011fcb:\n    param_2 = param_2 + 1;\n    uVar13 = param_1 == 0;\n    param_1 = param_1 + -1;\n    uVar14 = param_1 == 0;\n    if ((bool)uVar14) {\n      return local_21;\n    }\n  } while( true );" (do "do") (compound_statement "{\n    iVar7 = 2;\n    pbVar11 = (byte *)*param_2;\n    pbVar8 = (byte *)(unaff_EBP + 0x6267);\n    do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      uVar13 = *pbVar11 < *pbVar8;\n      uVar14 = *pbVar11 == *pbVar8;\n      pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1;\n      pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1;\n    } while ((bool)uVar14);\n    if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n      *(undefined1 *)(unaff_EBP + 0xa32b) = 1;\n      __stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a);\nLAB_00011ec7:\n      local_40 = *(byte **)(unaff_EBP + 0xa326);\n      pbVar11 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      if (pbVar11 < pbVar8) {\n        pbVar5 = pbVar11 + 1;\n        __stream->_IO_read_ptr = (char *)pbVar5;\n        uVar12 = (uint)*pbVar11;\n      }\n      else {\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }\nLAB_00011f24:\n      if (pbVar5 < pbVar8) {\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }\n      uVar10 = __uflow(__stream);\n      if (uVar10 != 0xffffffff) goto LAB_00011f35;\n      local_30 = *piVar4;\n      p_Var9 = (_IO_FILE *)*piVar2;\n      pcVar3 = p_Var9->_IO_write_ptr;\n      if (pcVar3 < p_Var9->_IO_write_end) {\n        p_Var9->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)uVar12;\nLAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n        if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }\nLAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }\n        iVar7 = __overflow(p_Var9,uVar10);\n        if (-1 < iVar7) goto LAB_00011fac;\n      }\n      else {\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }\nLAB_0001215c:\n      do {\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      } while (iVar7 < 0);\nLAB_00011f07:\n      local_40 = local_40 + 1;\n      if (*(byte **)(unaff_EBP + 0xa322) == local_40) {\n        local_40 = *(byte **)(unaff_EBP + 0xa326);\n      }\nLAB_00011f1c:\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      uVar12 = uVar10;\n      goto LAB_00011f24;\n    }\n    __stream = fopen64((char *)*param_2,(char *)(unaff_EBP + 0x51cc));\n    if (__stream != (FILE *)0x0) {\n      FUN_00012690(__stream,2);\n      goto LAB_00011ec7;\n    }\nLAB_00012033:\n    uVar6 = FUN_000146e0(0,3,*param_2);\n    error(0,*piVar4,unaff_EBP + 0x5663,uVar6);\n    local_21 = 0;\nLAB_00011fcb:\n    param_2 = param_2 + 1;\n    uVar13 = param_1 == 0;\n    param_1 = param_1 + -1;\n    uVar14 = param_1 == 0;\n    if ((bool)uVar14) {\n      return local_21;\n    }\n  }" ({ "{") (expression_statement "iVar7 = 2;" (assignment_expression "iVar7 = 2" (identifier "iVar7") (= "=") (number_literal "2")) (; ";")) (expression_statement "pbVar11 = (byte *)*param_2;" (assignment_expression "pbVar11 = (byte *)*param_2" (identifier "pbVar11") (= "=") (cast_expression "(byte *)*param_2" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (expression_statement "pbVar8 = (byte *)(unaff_EBP + 0x6267);" (assignment_expression "pbVar8 = (byte *)(unaff_EBP + 0x6267)" (identifier "pbVar8") (= "=") (cast_expression "(byte *)(unaff_EBP + 0x6267)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EBP + 0x6267)" (( "(") (binary_expression "unaff_EBP + 0x6267" (identifier "unaff_EBP") (+ "+") (number_literal "0x6267")) () ")")))) (; ";")) (do_statement "do {\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      uVar13 = *pbVar11 < *pbVar8;\n      uVar14 = *pbVar11 == *pbVar8;\n      pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1;\n      pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1;\n    } while ((bool)uVar14);" (do "do") (compound_statement "{\n      if (iVar7 == 0) break;\n      iVar7 = iVar7 + -1;\n      uVar13 = *pbVar11 < *pbVar8;\n      uVar14 = *pbVar11 == *pbVar8;\n      pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1;\n      pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1;\n    }" ({ "{") (if_statement "if (iVar7 == 0) break;" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + -1" (identifier "iVar7") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar13 = *pbVar11 < *pbVar8;" (assignment_expression "uVar13 = *pbVar11 < *pbVar8" (identifier "uVar13") (= "=") (binary_expression "*pbVar11 < *pbVar8" (pointer_expression "*pbVar11" (* "*") (identifier "pbVar11")) (< "<") (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8")))) (; ";")) (expression_statement "uVar14 = *pbVar11 == *pbVar8;" (assignment_expression "uVar14 = *pbVar11 == *pbVar8" (identifier "uVar14") (= "=") (binary_expression "*pbVar11 == *pbVar8" (pointer_expression "*pbVar11" (* "*") (identifier "pbVar11")) (== "==") (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8")))) (; ";")) (expression_statement "pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1;" (assignment_expression "pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1" (identifier "pbVar11") (= "=") (binary_expression "pbVar11 + (uint)bVar15 * -2 + 1" (binary_expression "pbVar11 + (uint)bVar15 * -2" (identifier "pbVar11") (+ "+") (binary_expression "(uint)bVar15 * -2" (cast_expression "(uint)bVar15" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar15")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1;" (assignment_expression "pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1" (identifier "pbVar8") (= "=") (binary_expression "pbVar8 + (uint)bVar15 * -2 + 1" (binary_expression "pbVar8 + (uint)bVar15 * -2" (identifier "pbVar8") (+ "+") (binary_expression "(uint)bVar15 * -2" (cast_expression "(uint)bVar15" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar15")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((bool)uVar14)" (( "(") (cast_expression "(bool)uVar14" (( "(") (type_descriptor "bool" (primitive_type "bool")) () ")") (identifier "uVar14")) () ")")) (; ";")) (if_statement "if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n      *(undefined1 *)(unaff_EBP + 0xa32b) = 1;\n      __stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a);\nLAB_00011ec7:\n      local_40 = *(byte **)(unaff_EBP + 0xa326);\n      pbVar11 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      if (pbVar11 < pbVar8) {\n        pbVar5 = pbVar11 + 1;\n        __stream->_IO_read_ptr = (char *)pbVar5;\n        uVar12 = (uint)*pbVar11;\n      }\n      else {\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }\nLAB_00011f24:\n      if (pbVar5 < pbVar8) {\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }\n      uVar10 = __uflow(__stream);\n      if (uVar10 != 0xffffffff) goto LAB_00011f35;\n      local_30 = *piVar4;\n      p_Var9 = (_IO_FILE *)*piVar2;\n      pcVar3 = p_Var9->_IO_write_ptr;\n      if (pcVar3 < p_Var9->_IO_write_end) {\n        p_Var9->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)uVar12;\nLAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n        if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }\nLAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }\n        iVar7 = __overflow(p_Var9,uVar10);\n        if (-1 < iVar7) goto LAB_00011fac;\n      }\n      else {\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }\nLAB_0001215c:\n      do {\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      } while (iVar7 < 0);\nLAB_00011f07:\n      local_40 = local_40 + 1;\n      if (*(byte **)(unaff_EBP + 0xa322) == local_40) {\n        local_40 = *(byte **)(unaff_EBP + 0xa326);\n      }\nLAB_00011f1c:\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      uVar12 = uVar10;\n      goto LAB_00011f24;\n    }" (if "if") (parenthesized_expression "((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13)" (( "(") (binary_expression "(!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13" (parenthesized_expression "(!(bool)uVar13 && !(bool)uVar14)" (( "(") (binary_expression "!(bool)uVar13 && !(bool)uVar14" (unary_expression "!(bool)uVar13" (! "!") (cast_expression "(bool)uVar13" (( "(") (type_descriptor "bool" (primitive_type "bool")) () ")") (identifier "uVar13"))) (&& "&&") (unary_expression "!(bool)uVar14" (! "!") (cast_expression "(bool)uVar14" (( "(") (type_descriptor "bool" (primitive_type "bool")) () ")") (identifier "uVar14")))) () ")")) (== "==") (cast_expression "(bool)uVar13" (( "(") (type_descriptor "bool" (primitive_type "bool")) () ")") (identifier "uVar13"))) () ")")) (compound_statement "{\n      *(undefined1 *)(unaff_EBP + 0xa32b) = 1;\n      __stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a);\nLAB_00011ec7:\n      local_40 = *(byte **)(unaff_EBP + 0xa326);\n      pbVar11 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      if (pbVar11 < pbVar8) {\n        pbVar5 = pbVar11 + 1;\n        __stream->_IO_read_ptr = (char *)pbVar5;\n        uVar12 = (uint)*pbVar11;\n      }\n      else {\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }\nLAB_00011f24:\n      if (pbVar5 < pbVar8) {\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }\n      uVar10 = __uflow(__stream);\n      if (uVar10 != 0xffffffff) goto LAB_00011f35;\n      local_30 = *piVar4;\n      p_Var9 = (_IO_FILE *)*piVar2;\n      pcVar3 = p_Var9->_IO_write_ptr;\n      if (pcVar3 < p_Var9->_IO_write_end) {\n        p_Var9->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)uVar12;\nLAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n        if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }\nLAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }\n        iVar7 = __overflow(p_Var9,uVar10);\n        if (-1 < iVar7) goto LAB_00011fac;\n      }\n      else {\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }\nLAB_0001215c:\n      do {\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      } while (iVar7 < 0);\nLAB_00011f07:\n      local_40 = local_40 + 1;\n      if (*(byte **)(unaff_EBP + 0xa322) == local_40) {\n        local_40 = *(byte **)(unaff_EBP + 0xa326);\n      }\nLAB_00011f1c:\n      pbVar5 = (byte *)__stream->_IO_read_ptr;\n      pbVar8 = (byte *)__stream->_IO_read_end;\n      uVar12 = uVar10;\n      goto LAB_00011f24;\n    }" ({ "{") (expression_statement "*(undefined1 *)(unaff_EBP + 0xa32b) = 1;" (assignment_expression "*(undefined1 *)(unaff_EBP + 0xa32b) = 1" (pointer_expression "*(undefined1 *)(unaff_EBP + 0xa32b)" (* "*") (cast_expression "(undefined1 *)(unaff_EBP + 0xa32b)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EBP + 0xa32b)" (( "(") (binary_expression "unaff_EBP + 0xa32b" (identifier "unaff_EBP") (+ "+") (number_literal "0xa32b")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "__stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a);" (assignment_expression "__stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a)" (identifier "__stream") (= "=") (cast_expression "(_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a)" (( "(") (type_descriptor "_IO_FILE *" (type_identifier "_IO_FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "**(undefined4 **)(unaff_EBP + 0xa18a)" (* "*") (pointer_expression "*(undefined4 **)(unaff_EBP + 0xa18a)" (* "*") (cast_expression "(undefined4 **)(unaff_EBP + 0xa18a)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EBP + 0xa18a)" (( "(") (binary_expression "unaff_EBP + 0xa18a" (identifier "unaff_EBP") (+ "+") (number_literal "0xa18a")) () ")"))))))) (; ";")) (labeled_statement "LAB_00011ec7:\n      local_40 = *(byte **)(unaff_EBP + 0xa326);" (statement_identifier "LAB_00011ec7") (: ":") (expression_statement "local_40 = *(byte **)(unaff_EBP + 0xa326);" (assignment_expression "local_40 = *(byte **)(unaff_EBP + 0xa326)" (identifier "local_40") (= "=") (pointer_expression "*(byte **)(unaff_EBP + 0xa326)" (* "*") (cast_expression "(byte **)(unaff_EBP + 0xa326)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EBP + 0xa326)" (( "(") (binary_expression "unaff_EBP + 0xa326" (identifier "unaff_EBP") (+ "+") (number_literal "0xa326")) () ")"))))) (; ";"))) (expression_statement "pbVar11 = (byte *)__stream->_IO_read_ptr;" (assignment_expression "pbVar11 = (byte *)__stream->_IO_read_ptr" (identifier "pbVar11") (= "=") (cast_expression "(byte *)__stream->_IO_read_ptr" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (field_expression "__stream->_IO_read_ptr" (identifier "__stream") (-> "->") (field_identifier "_IO_read_ptr")))) (; ";")) (expression_statement "pbVar8 = (byte *)__stream->_IO_read_end;" (assignment_expression "pbVar8 = (byte *)__stream->_IO_read_end" (identifier "pbVar8") (= "=") (cast_expression "(byte *)__stream->_IO_read_end" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (field_expression "__stream->_IO_read_end" (identifier "__stream") (-> "->") (field_identifier "_IO_read_end")))) (; ";")) (if_statement "if (pbVar11 < pbVar8) {\n        pbVar5 = pbVar11 + 1;\n        __stream->_IO_read_ptr = (char *)pbVar5;\n        uVar12 = (uint)*pbVar11;\n      }\n      else {\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }" (if "if") (parenthesized_expression "(pbVar11 < pbVar8)" (( "(") (binary_expression "pbVar11 < pbVar8" (identifier "pbVar11") (< "<") (identifier "pbVar8")) () ")")) (compound_statement "{\n        pbVar5 = pbVar11 + 1;\n        __stream->_IO_read_ptr = (char *)pbVar5;\n        uVar12 = (uint)*pbVar11;\n      }" ({ "{") (expression_statement "pbVar5 = pbVar11 + 1;" (assignment_expression "pbVar5 = pbVar11 + 1" (identifier "pbVar5") (= "=") (binary_expression "pbVar11 + 1" (identifier "pbVar11") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "__stream->_IO_read_ptr = (char *)pbVar5;" (assignment_expression "__stream->_IO_read_ptr = (char *)pbVar5" (field_expression "__stream->_IO_read_ptr" (identifier "__stream") (-> "->") (field_identifier "_IO_read_ptr")) (= "=") (cast_expression "(char *)pbVar5" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "pbVar5"))) (; ";")) (expression_statement "uVar12 = (uint)*pbVar11;" (assignment_expression "uVar12 = (uint)*pbVar11" (identifier "uVar12") (= "=") (binary_expression "(uint)*pbVar11" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar11"))) (; ";")) (} "}")) (else_clause "else {\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }" (else "else") (compound_statement "{\n        uVar12 = __uflow(__stream);\n        local_30 = *piVar4;\n        if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }\n        pbVar5 = (byte *)__stream->_IO_read_ptr;\n        pbVar8 = (byte *)__stream->_IO_read_end;\n      }" ({ "{") (expression_statement "uVar12 = __uflow(__stream);" (assignment_expression "uVar12 = __uflow(__stream)" (identifier "uVar12") (= "=") (call_expression "__uflow(__stream)" (identifier "__uflow") (argument_list "(__stream)" (( "(") (identifier "__stream") () ")")))) (; ";")) (expression_statement "local_30 = *piVar4;" (assignment_expression "local_30 = *piVar4" (identifier "local_30") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (if_statement "if (uVar12 == 0xffffffff) {\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }" (if "if") (parenthesized_expression "(uVar12 == 0xffffffff)" (( "(") (binary_expression "uVar12 == 0xffffffff" (identifier "uVar12") (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\n          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n          goto LAB_00011f92;\n        }" ({ "{") (expression_statement "uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);" (assignment_expression "uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2)" (identifier "uVar10") (= "=") (binary_expression "(uint)*(byte *)(unaff_EBP + 0xa2a2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(unaff_EBP + 0xa2a2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EBP + 0xa2a2)" (( "(") (binary_expression "unaff_EBP + 0xa2a2" (identifier "unaff_EBP") (+ "+") (number_literal "0xa2a2")) () ")"))))) (; ";")) (goto_statement "goto LAB_00011f92;" (goto "goto") (statement_identifier "LAB_00011f92") (; ";")) (} "}"))) (expression_statement "pbVar5 = (byte *)__stream->_IO_read_ptr;" (assignment_expression "pbVar5 = (byte *)__stream->_IO_read_ptr" (identifier "pbVar5") (= "=") (cast_expression "(byte *)__stream->_IO_read_ptr" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (field_expression "__stream->_IO_read_ptr" (identifier "__stream") (-> "->") (field_identifier "_IO_read_ptr")))) (; ";")) (expression_statement "pbVar8 = (byte *)__stream->_IO_read_end;" (assignment_expression "pbVar8 = (byte *)__stream->_IO_read_end" (identifier "pbVar8") (= "=") (cast_expression "(byte *)__stream->_IO_read_end" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (field_expression "__stream->_IO_read_end" (identifier "__stream") (-> "->") (field_identifier "_IO_read_end")))) (; ";")) (} "}")))) (labeled_statement "LAB_00011f24:\n      if (pbVar5 < pbVar8) {\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }" (statement_identifier "LAB_00011f24") (: ":") (if_statement "if (pbVar5 < pbVar8) {\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }" (if "if") (parenthesized_expression "(pbVar5 < pbVar8)" (( "(") (binary_expression "pbVar5 < pbVar8" (identifier "pbVar5") (< "<") (identifier "pbVar8")) () ")")) (compound_statement "{\n        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);\n        uVar10 = (uint)*pbVar5;\nLAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }\n        goto LAB_00011f1c;\n      }" ({ "{") (expression_statement "__stream->_IO_read_ptr = (char *)(pbVar5 + 1);" (assignment_expression "__stream->_IO_read_ptr = (char *)(pbVar5 + 1)" (field_expression "__stream->_IO_read_ptr" (identifier "__stream") (-> "->") (field_identifier "_IO_read_ptr")) (= "=") (cast_expression "(char *)(pbVar5 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar5 + 1)" (( "(") (binary_expression "pbVar5 + 1" (identifier "pbVar5") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "uVar10 = (uint)*pbVar5;" (assignment_expression "uVar10 = (uint)*pbVar5" (identifier "uVar10") (= "=") (binary_expression "(uint)*pbVar5" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar5"))) (; ";")) (labeled_statement "LAB_00011f35:\n        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }" (statement_identifier "LAB_00011f35") (: ":") (if_statement "if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }" (if "if") (parenthesized_expression "(*(byte *)(unaff_EBP + 0xa2a2) == uVar12)" (( "(") (binary_expression "*(byte *)(unaff_EBP + 0xa2a2) == uVar12" (pointer_expression "*(byte *)(unaff_EBP + 0xa2a2)" (* "*") (cast_expression "(byte *)(unaff_EBP + 0xa2a2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EBP + 0xa2a2)" (( "(") (binary_expression "unaff_EBP + 0xa2a2" (identifier "unaff_EBP") (+ "+") (number_literal "0xa2a2")) () ")")))) (== "==") (identifier "uVar12")) () ")")) (compound_statement "{\n          bVar1 = *local_40;\n          uVar16 = CONCAT44(uVar10,(uint)bVar1);\n          if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }\n          goto LAB_00011f07;\n        }" ({ "{") (expression_statement "bVar1 = *local_40;" (assignment_expression "bVar1 = *local_40" (identifier "bVar1") (= "=") (pointer_expression "*local_40" (* "*") (identifier "local_40"))) (; ";")) (expression_statement "uVar16 = CONCAT44(uVar10,(uint)bVar1);" (assignment_expression "uVar16 = CONCAT44(uVar10,(uint)bVar1)" (identifier "uVar16") (= "=") (call_expression "CONCAT44(uVar10,(uint)bVar1)" (identifier "CONCAT44") (argument_list "(uVar10,(uint)bVar1)" (( "(") (identifier "uVar10") (, ",") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1")) () ")")))) (; ";")) (if_statement "if (bVar1 != 0) {\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }" (if "if") (parenthesized_expression "(bVar1 != 0)" (( "(") (binary_expression "bVar1 != 0" (identifier "bVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            p_Var9 = (_IO_FILE *)*piVar2;\n            pbVar11 = (byte *)p_Var9->_IO_write_ptr;\n            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;\n            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);\n            *pbVar11 = bVar1;\n          }" ({ "{") (expression_statement "p_Var9 = (_IO_FILE *)*piVar2;" (assignment_expression "p_Var9 = (_IO_FILE *)*piVar2" (identifier "p_Var9") (= "=") (cast_expression "(_IO_FILE *)*piVar2" (( "(") (type_descriptor "_IO_FILE *" (type_identifier "_IO_FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")))) (; ";")) (expression_statement "pbVar11 = (byte *)p_Var9->_IO_write_ptr;" (assignment_expression "pbVar11 = (byte *)p_Var9->_IO_write_ptr" (identifier "pbVar11") (= "=") (cast_expression "(byte *)p_Var9->_IO_write_ptr" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (field_expression "p_Var9->_IO_write_ptr" (identifier "p_Var9") (-> "->") (field_identifier "_IO_write_ptr")))) (; ";")) (if_statement "if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;" (if "if") (parenthesized_expression "(p_Var9->_IO_write_end <= pbVar11)" (( "(") (binary_expression "p_Var9->_IO_write_end <= pbVar11" (field_expression "p_Var9->_IO_write_end" (identifier "p_Var9") (-> "->") (field_identifier "_IO_write_end")) (<= "<=") (identifier "pbVar11")) () ")")) (goto_statement "goto LAB_00012168;" (goto "goto") (statement_identifier "LAB_00012168") (; ";"))) (expression_statement "p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);" (assignment_expression "p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1)" (field_expression "p_Var9->_IO_write_ptr" (identifier "p_Var9") (-> "->") (field_identifier "_IO_write_ptr")) (= "=") (cast_expression "(char *)(pbVar11 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar11 + 1)" (( "(") (binary_expression "pbVar11 + 1" (identifier "pbVar11") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar11 = bVar1;" (assignment_expression "*pbVar11 = bVar1" (pointer_expression "*pbVar11" (* "*") (identifier "pbVar11")) (= "=") (identifier "bVar1")) (; ";")) (} "}"))) (goto_statement "goto LAB_00011f07;" (goto "goto") (statement_identifier "LAB_00011f07") (; ";")) (} "}")))) (expression_statement "p_Var9 = (_IO_FILE *)*piVar2;" (assignment_expression "p_Var9 = (_IO_FILE *)*piVar2" (identifier "p_Var9") (= "=") (cast_expression "(_IO_FILE *)*piVar2" (( "(") (type_descriptor "_IO_FILE *" (type_identifier "_IO_FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")))) (; ";")) (expression_statement "pcVar3 = p_Var9->_IO_write_ptr;" (assignment_expression "pcVar3 = p_Var9->_IO_write_ptr" (identifier "pcVar3") (= "=") (field_expression "p_Var9->_IO_write_ptr" (identifier "p_Var9") (-> "->") (field_identifier "_IO_write_ptr"))) (; ";")) (if_statement "if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }\n        else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }" (if "if") (parenthesized_expression "(pcVar3 < p_Var9->_IO_write_end)" (( "(") (binary_expression "pcVar3 < p_Var9->_IO_write_end" (identifier "pcVar3") (< "<") (field_expression "p_Var9->_IO_write_end" (identifier "p_Var9") (-> "->") (field_identifier "_IO_write_end"))) () ")")) (compound_statement "{\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar12;\n        }" ({ "{") (expression_statement "p_Var9->_IO_write_ptr = pcVar3 + 1;" (assignment_expression "p_Var9->_IO_write_ptr = pcVar3 + 1" (field_expression "p_Var9->_IO_write_ptr" (identifier "p_Var9") (-> "->") (field_identifier "_IO_write_ptr")) (= "=") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*pcVar3 = (char)uVar12;" (assignment_expression "*pcVar3 = (char)uVar12" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (cast_expression "(char)uVar12" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar12"))) (; ";")) (} "}")) (else_clause "else {\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }" (else "else") (compound_statement "{\n          iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n          if (iVar7 < 0) goto LAB_0001215c;\n        }" ({ "{") (expression_statement "iVar7 = __overflow(p_Var9,uVar12 & 0xff);" (assignment_expression "iVar7 = __overflow(p_Var9,uVar12 & 0xff)" (identifier "iVar7") (= "=") (call_expression "__overflow(p_Var9,uVar12 & 0xff)" (identifier "__overflow") (argument_list "(p_Var9,uVar12 & 0xff)" (( "(") (identifier "p_Var9") (, ",") (binary_expression "uVar12 & 0xff" (identifier "uVar12") (& "&") (number_literal "0xff")) () ")")))) (; ";")) (if_statement "if (iVar7 < 0) goto LAB_0001215c;" (if "if") (parenthesized_expression "(iVar7 < 0)" (( "(") (binary_expression "iVar7 < 0" (identifier "iVar7") (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001215c;" (goto "goto") (statement_identifier "LAB_0001215c") (; ";"))) (} "}")))) (goto_statement "goto LAB_00011f1c;" (goto "goto") (statement_identifier "LAB_00011f1c") (; ";")) (} "}")))) (expression_statement "uVar10 = __uflow(__stream);" (assignment_expression "uVar10 = __uflow(__stream)" (identifier "uVar10") (= "=") (call_expression "__uflow(__stream)" (identifier "__uflow") (argument_list "(__stream)" (( "(") (identifier "__stream") () ")")))) (; ";")) (if_statement "if (uVar10 != 0xffffffff) goto LAB_00011f35;" (if "if") (parenthesized_expression "(uVar10 != 0xffffffff)" (( "(") (binary_expression "uVar10 != 0xffffffff" (identifier "uVar10") (!= "!=") (number_literal "0xffffffff")) () ")")) (goto_statement "goto LAB_00011f35;" (goto "goto") (statement_identifier "LAB_00011f35") (; ";"))) (expression_statement "local_30 = *piVar4;" (assignment_expression "local_30 = *piVar4" (identifier "local_30") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (expression_statement "p_Var9 = (_IO_FILE *)*piVar2;" (assignment_expression "p_Var9 = (_IO_FILE *)*piVar2" (identifier "p_Var9") (= "=") (cast_expression "(_IO_FILE *)*piVar2" (( "(") (type_descriptor "_IO_FILE *" (type_identifier "_IO_FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")))) (; ";")) (expression_statement "pcVar3 = p_Var9->_IO_write_ptr;" (assignment_expression "pcVar3 = p_Var9->_IO_write_ptr" (identifier "pcVar3") (= "=") (field_expression "p_Var9->_IO_write_ptr" (identifier "p_Var9") (-> "->") (field_identifier "_IO_write_ptr"))) (; ";")) (if_statement "if (pcVar3 < p_Var9->_IO_write_end) {\n        p_Var9->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)uVar12;\nLAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n        if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }\nLAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }\n        iVar7 = __overflow(p_Var9,uVar10);\n        if (-1 < iVar7) goto LAB_00011fac;\n      }\n      else {\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }" (if "if") (parenthesized_expression "(pcVar3 < p_Var9->_IO_write_end)" (( "(") (binary_expression "pcVar3 < p_Var9->_IO_write_end" (identifier "pcVar3") (< "<") (field_expression "p_Var9->_IO_write_end" (identifier "p_Var9") (-> "->") (field_identifier "_IO_write_end"))) () ")")) (compound_statement "{\n        p_Var9->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = (char)uVar12;\nLAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);\n        if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }\nLAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;\n        pcVar3 = p_Var9->_IO_write_ptr;\n        if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }\n        iVar7 = __overflow(p_Var9,uVar10);\n        if (-1 < iVar7) goto LAB_00011fac;\n      }" ({ "{") (expression_statement "p_Var9->_IO_write_ptr = pcVar3 + 1;" (assignment_expression "p_Var9->_IO_write_ptr = pcVar3 + 1" (field_expression "p_Var9->_IO_write_ptr" (identifier "p_Var9") (-> "->") (field_identifier "_IO_write_ptr")) (= "=") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*pcVar3 = (char)uVar12;" (assignment_expression "*pcVar3 = (char)uVar12" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (cast_expression "(char)uVar12" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar12"))) (; ";")) (labeled_statement "LAB_000120af:\n        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);" (statement_identifier "LAB_000120af") (: ":") (expression_statement "uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);" (assignment_expression "uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2)" (identifier "uVar10") (= "=") (binary_expression "(uint)*(byte *)(unaff_EBP + 0xa2a2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(unaff_EBP + 0xa2a2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EBP + 0xa2a2)" (( "(") (binary_expression "unaff_EBP + 0xa2a2" (identifier "unaff_EBP") (+ "+") (number_literal "0xa2a2")) () ")"))))) (; ";"))) (if_statement "if (uVar10 == uVar12) {\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }" (if "if") (parenthesized_expression "(uVar10 == uVar12)" (( "(") (binary_expression "uVar10 == uVar12" (identifier "uVar10") (== "==") (identifier "uVar12")) () ")")) (compound_statement "{\n          bVar1 = (byte)__stream->_flags;\n          goto joined_r0x00011faf;\n        }" ({ "{") (expression_statement "bVar1 = (byte)__stream->_flags;" (assignment_expression "bVar1 = (byte)__stream->_flags" (identifier "bVar1") (= "=") (cast_expression "(byte)__stream->_flags" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (field_expression "__stream->_flags" (identifier "__stream") (-> "->") (field_identifier "_flags")))) (; ";")) (goto_statement "goto joined_r0x00011faf;" (goto "goto") (statement_identifier "joined_r0x00011faf") (; ";")) (} "}"))) (labeled_statement "LAB_00011f92:\n        p_Var9 = (_IO_FILE *)*piVar2;" (statement_identifier "LAB_00011f92") (: ":") (expression_statement "p_Var9 = (_IO_FILE *)*piVar2;" (assignment_expression "p_Var9 = (_IO_FILE *)*piVar2" (identifier "p_Var9") (= "=") (cast_expression "(_IO_FILE *)*piVar2" (( "(") (type_descriptor "_IO_FILE *" (type_identifier "_IO_FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")))) (; ";"))) (expression_statement "pcVar3 = p_Var9->_IO_write_ptr;" (assignment_expression "pcVar3 = p_Var9->_IO_write_ptr" (identifier "pcVar3") (= "=") (field_expression "p_Var9->_IO_write_ptr" (identifier "p_Var9") (-> "->") (field_identifier "_IO_write_ptr"))) (; ";")) (if_statement "if (pcVar3 < p_Var9->_IO_write_end) {\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }" (if "if") (parenthesized_expression "(pcVar3 < p_Var9->_IO_write_end)" (( "(") (binary_expression "pcVar3 < p_Var9->_IO_write_end" (identifier "pcVar3") (< "<") (field_expression "p_Var9->_IO_write_end" (identifier "p_Var9") (-> "->") (field_identifier "_IO_write_end"))) () ")")) (compound_statement "{\n          p_Var9->_IO_write_ptr = pcVar3 + 1;\n          *pcVar3 = (char)uVar10;\nLAB_00011fac:\n          bVar1 = (byte)__stream->_flags;\njoined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }\n          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }\n          goto LAB_00011fcb;\n        }" ({ "{") (expression_statement "p_Var9->_IO_write_ptr = pcVar3 + 1;" (assignment_expression "p_Var9->_IO_write_ptr = pcVar3 + 1" (field_expression "p_Var9->_IO_write_ptr" (identifier "p_Var9") (-> "->") (field_identifier "_IO_write_ptr")) (= "=") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*pcVar3 = (char)uVar10;" (assignment_expression "*pcVar3 = (char)uVar10" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (cast_expression "(char)uVar10" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar10"))) (; ";")) (labeled_statement "LAB_00011fac:\n          bVar1 = (byte)__stream->_flags;" (statement_identifier "LAB_00011fac") (: ":") (expression_statement "bVar1 = (byte)__stream->_flags;" (assignment_expression "bVar1 = (byte)__stream->_flags" (identifier "bVar1") (= "=") (cast_expression "(byte)__stream->_flags" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (field_expression "__stream->_flags" (identifier "__stream") (-> "->") (field_identifier "_flags")))) (; ";"))) (labeled_statement "joined_r0x00011faf:\n          if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }" (statement_identifier "joined_r0x00011faf") (: ":") (if_statement "if ((bVar1 & 0x20) != 0) {\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }" (if "if") (parenthesized_expression "((bVar1 & 0x20) != 0)" (( "(") (binary_expression "(bVar1 & 0x20) != 0" (parenthesized_expression "(bVar1 & 0x20)" (( "(") (binary_expression "bVar1 & 0x20" (identifier "bVar1") (& "&") (number_literal "0x20")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            uVar6 = FUN_000146e0(0,3,*param_2);\n            error(0,local_30,unaff_EBP + 0x5663,uVar6);\n            local_21 = 0;\n          }" ({ "{") (expression_statement "uVar6 = FUN_000146e0(0,3,*param_2);" (assignment_expression "uVar6 = FUN_000146e0(0,3,*param_2)" (identifier "uVar6") (= "=") (call_expression "FUN_000146e0(0,3,*param_2)" (identifier "FUN_000146e0") (argument_list "(0,3,*param_2)" (( "(") (number_literal "0") (, ",") (number_literal "3") (, ",") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")")))) (; ";")) (expression_statement "error(0,local_30,unaff_EBP + 0x5663,uVar6);" (call_expression "error(0,local_30,unaff_EBP + 0x5663,uVar6)" (identifier "error") (argument_list "(0,local_30,unaff_EBP + 0x5663,uVar6)" (( "(") (number_literal "0") (, ",") (identifier "local_30") (, ",") (binary_expression "unaff_EBP + 0x5663" (identifier "unaff_EBP") (+ "+") (number_literal "0x5663")) (, ",") (identifier "uVar6") () ")"))) (; ";")) (expression_statement "local_21 = 0;" (assignment_expression "local_21 = 0" (identifier "local_21") (= "=") (number_literal "0")) (; ";")) (} "}")))) (if_statement "if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {\n            clearerr_unlocked(__stream);\n          }\n          else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }" (if "if") (parenthesized_expression "((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13)" (( "(") (binary_expression "(!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13" (parenthesized_expression "(!(bool)uVar13 && !(bool)uVar14)" (( "(") (binary_expression "!(bool)uVar13 && !(bool)uVar14" (unary_expression "!(bool)uVar13" (! "!") (cast_expression "(bool)uVar13" (( "(") (type_descriptor "bool" (primitive_type "bool")) () ")") (identifier "uVar13"))) (&& "&&") (unary_expression "!(bool)uVar14" (! "!") (cast_expression "(bool)uVar14" (( "(") (type_descriptor "bool" (primitive_type "bool")) () ")") (identifier "uVar14")))) () ")")) (== "==") (cast_expression "(bool)uVar13" (( "(") (type_descriptor "bool" (primitive_type "bool")) () ")") (identifier "uVar13"))) () ")")) (compound_statement "{\n            clearerr_unlocked(__stream);\n          }" ({ "{") (expression_statement "clearerr_unlocked(__stream);" (call_expression "clearerr_unlocked(__stream)" (identifier "clearerr_unlocked") (argument_list "(__stream)" (( "(") (identifier "__stream") () ")"))) (; ";")) (} "}")) (else_clause "else {\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }" (else "else") (compound_statement "{\n            iVar7 = FUN_00015330(__stream);\n            if (iVar7 == -1) goto LAB_00012033;\n          }" ({ "{") (expression_statement "iVar7 = FUN_00015330(__stream);" (assignment_expression "iVar7 = FUN_00015330(__stream)" (identifier "iVar7") (= "=") (call_expression "FUN_00015330(__stream)" (identifier "FUN_00015330") (argument_list "(__stream)" (( "(") (identifier "__stream") () ")")))) (; ";")) (if_statement "if (iVar7 == -1) goto LAB_00012033;" (if "if") (parenthesized_expression "(iVar7 == -1)" (( "(") (binary_expression "iVar7 == -1" (identifier "iVar7") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_00012033;" (goto "goto") (statement_identifier "LAB_00012033") (; ";"))) (} "}")))) (goto_statement "goto LAB_00011fcb;" (goto "goto") (statement_identifier "LAB_00011fcb") (; ";")) (} "}"))) (expression_statement "iVar7 = __overflow(p_Var9,uVar10);" (assignment_expression "iVar7 = __overflow(p_Var9,uVar10)" (identifier "iVar7") (= "=") (call_expression "__overflow(p_Var9,uVar10)" (identifier "__overflow") (argument_list "(p_Var9,uVar10)" (( "(") (identifier "p_Var9") (, ",") (identifier "uVar10") () ")")))) (; ";")) (if_statement "if (-1 < iVar7) goto LAB_00011fac;" (if "if") (parenthesized_expression "(-1 < iVar7)" (( "(") (binary_expression "-1 < iVar7" (number_literal "-1") (< "<") (identifier "iVar7")) () ")")) (goto_statement "goto LAB_00011fac;" (goto "goto") (statement_identifier "LAB_00011fac") (; ";"))) (} "}")) (else_clause "else {\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }" (else "else") (compound_statement "{\n        iVar7 = __overflow(p_Var9,uVar12 & 0xff);\n        if (-1 < iVar7) goto LAB_000120af;\n      }" ({ "{") (expression_statement "iVar7 = __overflow(p_Var9,uVar12 & 0xff);" (assignment_expression "iVar7 = __overflow(p_Var9,uVar12 & 0xff)" (identifier "iVar7") (= "=") (call_expression "__overflow(p_Var9,uVar12 & 0xff)" (identifier "__overflow") (argument_list "(p_Var9,uVar12 & 0xff)" (( "(") (identifier "p_Var9") (, ",") (binary_expression "uVar12 & 0xff" (identifier "uVar12") (& "&") (number_literal "0xff")) () ")")))) (; ";")) (if_statement "if (-1 < iVar7) goto LAB_000120af;" (if "if") (parenthesized_expression "(-1 < iVar7)" (( "(") (binary_expression "-1 < iVar7" (number_literal "-1") (< "<") (identifier "iVar7")) () ")")) (goto_statement "goto LAB_000120af;" (goto "goto") (statement_identifier "LAB_000120af") (; ";"))) (} "}")))) (labeled_statement "LAB_0001215c:\n      do {\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      } while (iVar7 < 0);" (statement_identifier "LAB_0001215c") (: ":") (do_statement "do {\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      } while (iVar7 < 0);" (do "do") (compound_statement "{\n        uVar16 = FUN_00011830();\n        p_Var9 = extraout_ECX;\nLAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);\n        iVar7 = __overflow(p_Var9,(int)uVar16);\n      }" ({ "{") (expression_statement "uVar16 = FUN_00011830();" (assignment_expression "uVar16 = FUN_00011830()" (identifier "uVar16") (= "=") (call_expression "FUN_00011830()" (identifier "FUN_00011830") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "p_Var9 = extraout_ECX;" (assignment_expression "p_Var9 = extraout_ECX" (identifier "p_Var9") (= "=") (identifier "extraout_ECX")) (; ";")) (labeled_statement "LAB_00012168:\n        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);" (statement_identifier "LAB_00012168") (: ":") (expression_statement "uVar10 = (uint)((ulonglong)uVar16 >> 0x20);" (assignment_expression "uVar10 = (uint)((ulonglong)uVar16 >> 0x20)" (identifier "uVar10") (= "=") (call_expression "(uint)((ulonglong)uVar16 >> 0x20)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((ulonglong)uVar16 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar16 >> 0x20" (cast_expression "(ulonglong)uVar16" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar16")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";"))) (expression_statement "iVar7 = __overflow(p_Var9,(int)uVar16);" (assignment_expression "iVar7 = __overflow(p_Var9,(int)uVar16)" (identifier "iVar7") (= "=") (call_expression "__overflow(p_Var9,(int)uVar16)" (identifier "__overflow") (argument_list "(p_Var9,(int)uVar16)" (( "(") (identifier "p_Var9") (, ",") (cast_expression "(int)uVar16" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar16")) () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar7 < 0)" (( "(") (binary_expression "iVar7 < 0" (identifier "iVar7") (< "<") (number_literal "0")) () ")")) (; ";"))) (labeled_statement "LAB_00011f07:\n      local_40 = local_40 + 1;" (statement_identifier "LAB_00011f07") (: ":") (expression_statement "local_40 = local_40 + 1;" (assignment_expression "local_40 = local_40 + 1" (identifier "local_40") (= "=") (binary_expression "local_40 + 1" (identifier "local_40") (+ "+") (number_literal "1"))) (; ";"))) (if_statement "if (*(byte **)(unaff_EBP + 0xa322) == local_40) {\n        local_40 = *(byte **)(unaff_EBP + 0xa326);\n      }" (if "if") (parenthesized_expression "(*(byte **)(unaff_EBP + 0xa322) == local_40)" (( "(") (binary_expression "*(byte **)(unaff_EBP + 0xa322) == local_40" (pointer_expression "*(byte **)(unaff_EBP + 0xa322)" (* "*") (cast_expression "(byte **)(unaff_EBP + 0xa322)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EBP + 0xa322)" (( "(") (binary_expression "unaff_EBP + 0xa322" (identifier "unaff_EBP") (+ "+") (number_literal "0xa322")) () ")")))) (== "==") (identifier "local_40")) () ")")) (compound_statement "{\n        local_40 = *(byte **)(unaff_EBP + 0xa326);\n      }" ({ "{") (expression_statement "local_40 = *(byte **)(unaff_EBP + 0xa326);" (assignment_expression "local_40 = *(byte **)(unaff_EBP + 0xa326)" (identifier "local_40") (= "=") (pointer_expression "*(byte **)(unaff_EBP + 0xa326)" (* "*") (cast_expression "(byte **)(unaff_EBP + 0xa326)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EBP + 0xa326)" (( "(") (binary_expression "unaff_EBP + 0xa326" (identifier "unaff_EBP") (+ "+") (number_literal "0xa326")) () ")"))))) (; ";")) (} "}"))) (labeled_statement "LAB_00011f1c:\n      pbVar5 = (byte *)__stream->_IO_read_ptr;" (statement_identifier "LAB_00011f1c") (: ":") (expression_statement "pbVar5 = (byte *)__stream->_IO_read_ptr;" (assignment_expression "pbVar5 = (byte *)__stream->_IO_read_ptr" (identifier "pbVar5") (= "=") (cast_expression "(byte *)__stream->_IO_read_ptr" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (field_expression "__stream->_IO_read_ptr" (identifier "__stream") (-> "->") (field_identifier "_IO_read_ptr")))) (; ";"))) (expression_statement "pbVar8 = (byte *)__stream->_IO_read_end;" (assignment_expression "pbVar8 = (byte *)__stream->_IO_read_end" (identifier "pbVar8") (= "=") (cast_expression "(byte *)__stream->_IO_read_end" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (field_expression "__stream->_IO_read_end" (identifier "__stream") (-> "->") (field_identifier "_IO_read_end")))) (; ";")) (expression_statement "uVar12 = uVar10;" (assignment_expression "uVar12 = uVar10" (identifier "uVar12") (= "=") (identifier "uVar10")) (; ";")) (goto_statement "goto LAB_00011f24;" (goto "goto") (statement_identifier "LAB_00011f24") (; ";")) (} "}"))) (expression_statement "__stream = fopen64((char *)*param_2,(char *)(unaff_EBP + 0x51cc));" (assignment_expression "__stream = fopen64((char *)*param_2,(char *)(unaff_EBP + 0x51cc))" (identifier "__stream") (= "=") (call_expression "fopen64((char *)*param_2,(char *)(unaff_EBP + 0x51cc))" (identifier "fopen64") (argument_list "((char *)*param_2,(char *)(unaff_EBP + 0x51cc))" (( "(") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (, ",") (cast_expression "(char *)(unaff_EBP + 0x51cc)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EBP + 0x51cc)" (( "(") (binary_expression "unaff_EBP + 0x51cc" (identifier "unaff_EBP") (+ "+") (number_literal "0x51cc")) () ")"))) () ")")))) (; ";")) (if_statement "if (__stream != (FILE *)0x0) {\n      FUN_00012690(__stream,2);\n      goto LAB_00011ec7;\n    }" (if "if") (parenthesized_expression "(__stream != (FILE *)0x0)" (( "(") (binary_expression "__stream != (FILE *)0x0" (identifier "__stream") (!= "!=") (cast_expression "(FILE *)0x0" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      FUN_00012690(__stream,2);\n      goto LAB_00011ec7;\n    }" ({ "{") (expression_statement "FUN_00012690(__stream,2);" (call_expression "FUN_00012690(__stream,2)" (identifier "FUN_00012690") (argument_list "(__stream,2)" (( "(") (identifier "__stream") (, ",") (number_literal "2") () ")"))) (; ";")) (goto_statement "goto LAB_00011ec7;" (goto "goto") (statement_identifier "LAB_00011ec7") (; ";")) (} "}"))) (labeled_statement "LAB_00012033:\n    uVar6 = FUN_000146e0(0,3,*param_2);" (statement_identifier "LAB_00012033") (: ":") (expression_statement "uVar6 = FUN_000146e0(0,3,*param_2);" (assignment_expression "uVar6 = FUN_000146e0(0,3,*param_2)" (identifier "uVar6") (= "=") (call_expression "FUN_000146e0(0,3,*param_2)" (identifier "FUN_000146e0") (argument_list "(0,3,*param_2)" (( "(") (number_literal "0") (, ",") (number_literal "3") (, ",") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")")))) (; ";"))) (expression_statement "error(0,*piVar4,unaff_EBP + 0x5663,uVar6);" (call_expression "error(0,*piVar4,unaff_EBP + 0x5663,uVar6)" (identifier "error") (argument_list "(0,*piVar4,unaff_EBP + 0x5663,uVar6)" (( "(") (number_literal "0") (, ",") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (, ",") (binary_expression "unaff_EBP + 0x5663" (identifier "unaff_EBP") (+ "+") (number_literal "0x5663")) (, ",") (identifier "uVar6") () ")"))) (; ";")) (expression_statement "local_21 = 0;" (assignment_expression "local_21 = 0" (identifier "local_21") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00011fcb:\n    param_2 = param_2 + 1;" (statement_identifier "LAB_00011fcb") (: ":") (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 "uVar13 = param_1 == 0;" (assignment_expression "uVar13 = param_1 == 0" (identifier "uVar13") (= "=") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0"))) (; ";")) (expression_statement "param_1 = param_1 + -1;" (assignment_expression "param_1 = param_1 + -1" (identifier "param_1") (= "=") (binary_expression "param_1 + -1" (identifier "param_1") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar14 = param_1 == 0;" (assignment_expression "uVar14 = param_1 == 0" (identifier "uVar14") (= "=") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0"))) (; ";")) (if_statement "if ((bool)uVar14) {\n      return local_21;\n    }" (if "if") (parenthesized_expression "((bool)uVar14)" (( "(") (cast_expression "(bool)uVar14" (( "(") (type_descriptor "bool" (primitive_type "bool")) () ")") (identifier "uVar14")) () ")")) (compound_statement "{\n      return local_21;\n    }" ({ "{") (return_statement "return local_21;" (return "return") (identifier "local_21") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */

type_1 function_1(size_t var_1,char **var_23)

{
  type_2 var_11;
  type_3 *p_Var2;
  type_4 *puVar3;
  int *piVar4;
  type_2 *var_6;
  char *var_14;
  type_3 *var_16;
  int var_3;
  type_2 *var_5;
  type_5 var_8;
  type_2 *var_4;
  type_5 var_10;
  type_6 uVar12;
  type_6 uVar13;
  type_2 bVar14;
  type_2 *var_13;
  int local_30;
  type_1 local_21;
  
  bVar14 = 0;
  uVar12 = 0;
  uVar13 = var_1 == 0;
  if ((bool)uVar13) {
    return true;
  }
  piVar4 = var_2();
  puVar3 = PTR_stdout_0001bfd4;
  local_21 = true;
LAB_00011e90:
  var_3 = 2;
  var_4 = (type_2 *)*var_23;
  var_5 = &DAT_000180ad;
  do {
    if (var_3 == 0) break;
    var_3 = var_3 + -1;
    uVar12 = *var_4 < *var_5;
    uVar13 = *var_4 == *var_5;
    var_4 = var_4 + (type_5)bVar14 * -2 + 1;
    var_5 = var_5 + (type_5)bVar14 * -2 + 1;
  } while ((bool)uVar13);
  if ((!(bool)uVar12 && !(bool)uVar13) == (bool)uVar12) {
    have_read_stdin = true;
    var_16 = *(type_3 **)PTR_stdin_0001bfd0;
LAB_00011ec7:
    var_13 = (type_2 *)delims;
    var_4 = (type_2 *)var_16->_IO_read_ptr;
    var_5 = (type_2 *)var_16->_IO_read_end;
    if (var_4 < var_5) {
      var_6 = var_4 + 1;
      var_16->_IO_read_ptr = (char *)var_6;
      var_10 = (type_5)*var_4;
LAB_00011f24:
      do {
        if (var_6 < var_5) {
          var_16->_IO_read_ptr = (char *)(var_6 + 1);
          var_8 = (type_5)*var_6;
        }
        else {
          var_8 = var_7(var_16);
          if (var_8 == 0xffffffff) goto code_r0x00012089;
        }
        if (var_9 == var_10) {
          var_11 = *var_13;
          if (var_11 != 0) {
            p_Var2 = *(type_3 **)puVar3;
            var_4 = (type_2 *)p_Var2->_IO_write_ptr;
            if (var_4 < p_Var2->_IO_write_end) {
              p_Var2->_IO_write_ptr = (char *)(var_4 + 1);
              *var_4 = var_11;
            }
            else {
              var_3 = var_12(p_Var2,(type_5)var_11);
              if (var_3 < 0) goto LAB_0001215c;
            }
          }
          var_13 = var_13 + 1;
          if ((type_2 *)delim_end == var_13) {
            var_13 = (type_2 *)delims;
          }
        }
        else {
          p_Var2 = *(type_3 **)puVar3;
          var_14 = p_Var2->_IO_write_ptr;
          if (var_14 < p_Var2->_IO_write_end) {
            p_Var2->_IO_write_ptr = var_14 + 1;
            *var_14 = (char)var_10;
          }
          else {
            var_3 = var_12(p_Var2,var_10 & 0xff);
            if (var_3 < 0) goto LAB_0001215c;
          }
        }
        var_6 = (type_2 *)var_16->_IO_read_ptr;
        var_5 = (type_2 *)var_16->_IO_read_end;
        var_10 = var_8;
      } while( true );
    }
    var_10 = var_7(var_16);
    local_30 = *piVar4;
    if (var_10 != 0xffffffff) {
      var_6 = (type_2 *)var_16->_IO_read_ptr;
      var_5 = (type_2 *)var_16->_IO_read_end;
      goto LAB_00011f24;
    }
    var_8 = (type_5)var_9;
    goto LAB_00011f92;
  }
  var_16 = var_15(*var_23,"r");
  if (var_16 != (type_7 *)0x0) {
    var_17((type_7 *)var_16,FADVISE_SEQUENTIAL);
    goto LAB_00011ec7;
  }
  goto LAB_00012033;
code_r0x00012089:
  local_30 = *piVar4;
  p_Var2 = *(type_3 **)puVar3;
  var_14 = p_Var2->_IO_write_ptr;
  if (var_14 < p_Var2->_IO_write_end) {
    p_Var2->_IO_write_ptr = var_14 + 1;
    *var_14 = (char)var_10;
  }
  else {
    var_3 = var_12(p_Var2,var_10 & 0xff);
    if (var_3 < 0) goto LAB_0001215c;
  }
  var_8 = (type_5)var_9;
  if (var_8 == var_10) {
    var_11 = (type_2)var_16->_flags;
  }
  else {
LAB_00011f92:
    p_Var2 = *(type_3 **)puVar3;
    var_14 = p_Var2->_IO_write_ptr;
    if (var_14 < p_Var2->_IO_write_end) {
      p_Var2->_IO_write_ptr = var_14 + 1;
      *var_14 = (char)var_8;
    }
    else {
      var_3 = var_12(p_Var2,var_8);
      if (var_3 < 0) {
LAB_0001215c:
                    /* WARNING: Subroutine does not return */
        var_18();
      }
    }
    var_11 = (type_2)var_16->_flags;
  }
  if ((var_11 & 0x20) != 0) {
    var_14 = var_19(0,shell_escape_quoting_style,*var_23);
    var_20(0,local_30,"%s",var_14);
    local_21 = false;
  }
  if ((!(bool)uVar12 && !(bool)uVar13) == (bool)uVar12) {
    var_21(var_16);
  }
  else {
    var_3 = var_22((type_7 *)var_16);
    if (var_3 == -1) {
LAB_00012033:
      var_14 = var_19(0,shell_escape_quoting_style,*var_23);
      var_20(0,*piVar4,"%s",var_14);
      local_21 = false;
    }
  }
  var_23 = var_23 + 1;
  uVar12 = var_1 == 0;
  var_1 = var_1 - 1;
  uVar13 = var_1 == 0;
  if ((bool)uVar13) {
    return local_21;
  }
  goto LAB_00011e90;
}


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

undefined1 MASKED(int param_1,undefined4 *param_2)

{
  byte bVar1;
  int *piVar2;
  char *pcVar3;
  int *piVar4;
  byte *pbVar5;
  undefined4 uVar6;
  _IO_FILE *__stream;
  int iVar7;
  byte *pbVar8;
  _IO_FILE *extraout_ECX;
  _IO_FILE *p_Var9;
  uint uVar10;
  int unaff_EBP;
  byte *pbVar11;
  uint uVar12;
  undefined1 uVar13;
  undefined1 uVar14;
  byte bVar15;
  undefined8 uVar16;
  byte *local_40;
  int local_30;
  undefined1 local_21;
  
  bVar15 = 0;
  FUN_00012549();
  uVar13 = 0;
  uVar14 = param_1 == 0;
  if ((bool)uVar14) {
    return 1;
  }
  piVar4 = __errno_location();
  local_21 = 1;
  piVar2 = *(int **)(unaff_EBP + 0xa18e);
  do {
    iVar7 = 2;
    pbVar11 = (byte *)*param_2;
    pbVar8 = (byte *)(unaff_EBP + 0x6267);
    do {
      if (iVar7 == 0) break;
      iVar7 = iVar7 + -1;
      uVar13 = *pbVar11 < *pbVar8;
      uVar14 = *pbVar11 == *pbVar8;
      pbVar11 = pbVar11 + (uint)bVar15 * -2 + 1;
      pbVar8 = pbVar8 + (uint)bVar15 * -2 + 1;
    } while ((bool)uVar14);
    if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {
      *(undefined1 *)(unaff_EBP + 0xa32b) = 1;
      __stream = (_IO_FILE *)**(undefined4 **)(unaff_EBP + 0xa18a);
LAB_00011ec7:
      local_40 = *(byte **)(unaff_EBP + 0xa326);
      pbVar11 = (byte *)__stream->_IO_read_ptr;
      pbVar8 = (byte *)__stream->_IO_read_end;
      if (pbVar11 < pbVar8) {
        pbVar5 = pbVar11 + 1;
        __stream->_IO_read_ptr = (char *)pbVar5;
        uVar12 = (uint)*pbVar11;
      }
      else {
        uVar12 = __uflow(__stream);
        local_30 = *piVar4;
        if (uVar12 == 0xffffffff) {
          uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);
          goto LAB_00011f92;
        }
        pbVar5 = (byte *)__stream->_IO_read_ptr;
        pbVar8 = (byte *)__stream->_IO_read_end;
      }
LAB_00011f24:
      if (pbVar5 < pbVar8) {
        __stream->_IO_read_ptr = (char *)(pbVar5 + 1);
        uVar10 = (uint)*pbVar5;
LAB_00011f35:
        if (*(byte *)(unaff_EBP + 0xa2a2) == uVar12) {
          bVar1 = *local_40;
          uVar16 = CONCAT44(uVar10,(uint)bVar1);
          if (bVar1 != 0) {
            p_Var9 = (_IO_FILE *)*piVar2;
            pbVar11 = (byte *)p_Var9->_IO_write_ptr;
            if (p_Var9->_IO_write_end <= pbVar11) goto LAB_00012168;
            p_Var9->_IO_write_ptr = (char *)(pbVar11 + 1);
            *pbVar11 = bVar1;
          }
          goto LAB_00011f07;
        }
        p_Var9 = (_IO_FILE *)*piVar2;
        pcVar3 = p_Var9->_IO_write_ptr;
        if (pcVar3 < p_Var9->_IO_write_end) {
          p_Var9->_IO_write_ptr = pcVar3 + 1;
          *pcVar3 = (char)uVar12;
        }
        else {
          iVar7 = __overflow(p_Var9,uVar12 & 0xff);
          if (iVar7 < 0) goto LAB_0001215c;
        }
        goto LAB_00011f1c;
      }
      uVar10 = __uflow(__stream);
      if (uVar10 != 0xffffffff) goto LAB_00011f35;
      local_30 = *piVar4;
      p_Var9 = (_IO_FILE *)*piVar2;
      pcVar3 = p_Var9->_IO_write_ptr;
      if (pcVar3 < p_Var9->_IO_write_end) {
        p_Var9->_IO_write_ptr = pcVar3 + 1;
        *pcVar3 = (char)uVar12;
LAB_000120af:
        uVar10 = (uint)*(byte *)(unaff_EBP + 0xa2a2);
        if (uVar10 == uVar12) {
          bVar1 = (byte)__stream->_flags;
          goto joined_r0x00011faf;
        }
LAB_00011f92:
        p_Var9 = (_IO_FILE *)*piVar2;
        pcVar3 = p_Var9->_IO_write_ptr;
        if (pcVar3 < p_Var9->_IO_write_end) {
          p_Var9->_IO_write_ptr = pcVar3 + 1;
          *pcVar3 = (char)uVar10;
LAB_00011fac:
          bVar1 = (byte)__stream->_flags;
joined_r0x00011faf:
          if ((bVar1 & 0x20) != 0) {
            uVar6 = FUN_000146e0(0,3,*param_2);
            error(0,local_30,unaff_EBP + 0x5663,uVar6);
            local_21 = 0;
          }
          if ((!(bool)uVar13 && !(bool)uVar14) == (bool)uVar13) {
            clearerr_unlocked(__stream);
          }
          else {
            iVar7 = FUN_00015330(__stream);
            if (iVar7 == -1) goto LAB_00012033;
          }
          goto LAB_00011fcb;
        }
        iVar7 = __overflow(p_Var9,uVar10);
        if (-1 < iVar7) goto LAB_00011fac;
      }
      else {
        iVar7 = __overflow(p_Var9,uVar12 & 0xff);
        if (-1 < iVar7) goto LAB_000120af;
      }
LAB_0001215c:
      do {
        uVar16 = FUN_00011830();
        p_Var9 = extraout_ECX;
LAB_00012168:
        uVar10 = (uint)((ulonglong)uVar16 >> 0x20);
        iVar7 = __overflow(p_Var9,(int)uVar16);
      } while (iVar7 < 0);
LAB_00011f07:
      local_40 = local_40 + 1;
      if (*(byte **)(unaff_EBP + 0xa322) == local_40) {
        local_40 = *(byte **)(unaff_EBP + 0xa326);
      }
LAB_00011f1c:
      pbVar5 = (byte *)__stream->_IO_read_ptr;
      pbVar8 = (byte *)__stream->_IO_read_end;
      uVar12 = uVar10;
      goto LAB_00011f24;
    }
    __stream = fopen64((char *)*param_2,(char *)(unaff_EBP + 0x51cc));
    if (__stream != (FILE *)0x0) {
      FUN_00012690(__stream,2);
      goto LAB_00011ec7;
    }
LAB_00012033:
    uVar6 = FUN_000146e0(0,3,*param_2);
    error(0,*piVar4,unaff_EBP + 0x5663,uVar6);
    local_21 = 0;
LAB_00011fcb:
    param_2 = param_2 + 1;
    uVar13 = param_1 == 0;
    param_1 = param_1 + -1;
    uVar14 = param_1 == 0;
    if ((bool)uVar14) {
      return local_21;
    }
  } while( true );
}

