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

_Bool bsd_sum_file(char *file,int print_name)

{
  int iVar1;
  _IO_FILE *p_Var2;
  byte *pbVar3;
  uint uVar4;
  int iVar5;
  char *pcVar6;
  int *piVar7;
  int iVar8;
  _Bool _Var9;
  uint uVar10;
  byte *pbVar11;
  uint uVar12;
  int in_GS_OFFSET;
  bool bVar13;
  bool bVar14;
  bool bVar15;
  _IO_FILE *local_2bc;
  byte *local_2b8;
  char hbuf [652];
  
  iVar8 = 2;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  bVar13 = false;
  bVar15 = true;
  pbVar3 = (byte *)file;
  pbVar11 = &DAT_0001a279;
  do {
    if (iVar8 == 0) break;
    iVar8 = iVar8 + -1;
    bVar13 = *pbVar3 < *pbVar11;
    bVar15 = *pbVar3 == *pbVar11;
    pbVar3 = pbVar3 + 1;
    pbVar11 = pbVar11 + 1;
  } while (bVar15);
  bVar15 = !bVar13 && !bVar15;
  if (bVar15 == bVar13) {
    have_read_stdin = true;
    local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0;
LAB_00011a52:
    iVar8 = 0;
    uVar10 = 0;
    fadvise((FILE *)local_2bc,FADVISE_SEQUENTIAL);
    local_2b8 = (byte *)local_2bc->_IO_read_end;
    pbVar3 = (byte *)local_2bc->_IO_read_ptr;
    uVar12 = 0;
    do {
      if (pbVar3 < local_2b8) {
        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);
        uVar4 = (uint)*pbVar3;
        pbVar3 = pbVar3 + 1;
      }
      else {
        uVar4 = __uflow(local_2bc);
        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;
        local_2b8 = (byte *)local_2bc->_IO_read_end;
        pbVar3 = (byte *)local_2bc->_IO_read_ptr;
      }
      bVar14 = 0xfffffffe < uVar12;
      uVar12 = uVar12 + 1;
      iVar8 = iVar8 + (uint)bVar14;
      uVar10 = (uVar10 & 1) * 0x8000 + ((int)uVar10 >> 1) + uVar4 & 0xffff;
    } while( true );
  }
  local_2bc = fopen64(file,"r");
  if (local_2bc != (FILE *)0x0) goto LAB_00011a52;
LAB_00011bb2:
  pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,file);
  piVar7 = __errno_location();
  _Var9 = false;
  error(0,*piVar7,&DAT_0001a2f2,pcVar6);
LAB_00011b49:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return _Var9;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
code_r0x00011ac3:
  if ((local_2bc->_flags & 0x20) != 0) {
    pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,file);
    piVar7 = __errno_location();
    _Var9 = false;
    error(0,*piVar7,&DAT_0001a2f2,pcVar6);
    if (bVar15 != bVar13) {
      rpl_fclose((FILE *)local_2bc);
    }
    goto LAB_00011b49;
  }
  if (bVar15 != bVar13) {
    iVar5 = rpl_fclose((FILE *)local_2bc);
    if (iVar5 != 0) goto LAB_00011bb2;
  }
  pcVar6 = human_readable(CONCAT44(iVar8,uVar12),hbuf,0,1,0x400);
  __printf_chk(1,"%05d %5s",uVar10,pcVar6);
  if (1 < print_name) {
    __printf_chk(1,&DAT_0001a2f1,file,pcVar6);
  }
  p_Var2 = *(_IO_FILE **)PTR_stdout_0001dfd4;
  pcVar6 = p_Var2->_IO_write_ptr;
  if (pcVar6 < p_Var2->_IO_write_end) {
    _Var9 = true;
    p_Var2->_IO_write_ptr = pcVar6 + 1;
    *pcVar6 = '\n';
  }
  else {
    _Var9 = true;
    __overflow(p_Var2,10);
  }
  goto LAB_00011b49;
}



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

undefined4 FUN_000119f0(byte *param_1,int param_2)

{
  _IO_FILE *p_Var1;
  char *pcVar2;
  byte *pbVar3;
  uint uVar4;
  int iVar5;
  undefined4 uVar6;
  int *piVar7;
  int iVar8;
  uint uVar9;
  undefined4 uVar10;
  byte *pbVar11;
  uint uVar12;
  int in_GS_OFFSET;
  bool bVar13;
  bool bVar14;
  bool bVar15;
  _IO_FILE *local_2bc;
  byte *local_2b8;
  undefined1 local_2ac [652];
  int local_20;
  undefined4 uStack_14;
  
  iVar8 = 2;
  uStack_14 = 0x119fe;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  bVar13 = false;
  bVar15 = true;
  pbVar3 = param_1;
  pbVar11 = &DAT_0001a279;
  do {
    if (iVar8 == 0) break;
    iVar8 = iVar8 + -1;
    bVar13 = *pbVar3 < *pbVar11;
    bVar15 = *pbVar3 == *pbVar11;
    pbVar3 = pbVar3 + 1;
    pbVar11 = pbVar11 + 1;
  } while (bVar15);
  bVar15 = !bVar13 && !bVar15;
  if (bVar15 == bVar13) {
    DAT_0001e188 = 1;
    local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0;
LAB_00011a52:
    iVar8 = 0;
    uVar9 = 0;
    FUN_000120d0(local_2bc,2);
    local_2b8 = (byte *)local_2bc->_IO_read_end;
    pbVar3 = (byte *)local_2bc->_IO_read_ptr;
    uVar12 = 0;
    do {
      if (pbVar3 < local_2b8) {
        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);
        uVar4 = (uint)*pbVar3;
        pbVar3 = pbVar3 + 1;
      }
      else {
        uVar4 = __uflow(local_2bc);
        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;
        local_2b8 = (byte *)local_2bc->_IO_read_end;
        pbVar3 = (byte *)local_2bc->_IO_read_ptr;
      }
      bVar14 = 0xfffffffe < uVar12;
      uVar12 = uVar12 + 1;
      iVar8 = iVar8 + (uint)bVar14;
      uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff;
    } while( true );
  }
  local_2bc = fopen64((char *)param_1,"r");
  if (local_2bc != (FILE *)0x0) goto LAB_00011a52;
LAB_00011bb2:
  uVar6 = FUN_000159a0(0,3,param_1);
  piVar7 = __errno_location();
  uVar10 = 0;
  error(0,*piVar7,&DAT_0001a2f2,uVar6);
LAB_00011b49:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar10;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00018f70();
code_r0x00011ac3:
  if ((local_2bc->_flags & 0x20) != 0) {
    uVar6 = FUN_000159a0(0,3,param_1);
    piVar7 = __errno_location();
    uVar10 = 0;
    error(0,*piVar7,&DAT_0001a2f2,uVar6);
    if (bVar15 != bVar13) {
      FUN_00017360(local_2bc);
    }
    goto LAB_00011b49;
  }
  if (bVar15 != bVar13) {
    iVar5 = FUN_00017360(local_2bc);
    if (iVar5 != 0) goto LAB_00011bb2;
  }
  uVar6 = FUN_00012110(uVar12,iVar8,local_2ac,0,1,0,0x400,0);
  __printf_chk(1,"%05d %5s",uVar9,uVar6);
  if (1 < param_2) {
    __printf_chk(1,&DAT_0001a2f1,param_1,uVar6);
  }
  p_Var1 = *(_IO_FILE **)PTR_stdout_0001dfd4;
  pcVar2 = p_Var1->_IO_write_ptr;
  if (pcVar2 < p_Var1->_IO_write_end) {
    uVar10 = 1;
    p_Var1->_IO_write_ptr = pcVar2 + 1;
    *pcVar2 = '\n';
  }
  else {
    uVar10 = 1;
    __overflow(p_Var1,10);
  }
  goto LAB_00011b49;
}


PUSH EBP
MOV ECX,0x2
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00011660
ADD EBX,0xc602
SUB ESP,0x2ac
MOV ESI,dword ptr [ESP + 0x2c0]
MOV dword ptr [ESP + 0xc],ESI
LEA EDI,[EBX + 0xffffc279]
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x29c],EAX
XOR EAX,EAX
CMPSB.REPE ES:EDI,ESI
SETA AL
SBB AL,0x0
MOVSX EAX,AL
MOV dword ptr [ESP + 0x8],EAX
TEST EAX,EAX
JNZ 0x00011b90
MOV EAX,dword ptr [EBX + 0xffffffd0]
MOV byte ptr [EBX + 0x188],0x1
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP],EAX
SUB ESP,0x8
XOR EBP,EBP
XOR ESI,ESI
PUSH 0x2
MOV EDI,dword ptr [ESP + 0xc]
PUSH EDI
CALL 0x000120d0
MOV EAX,EDI
MOV EDI,dword ptr [EDI + 0x8]
MOV EAX,dword ptr [EAX + 0x4]
MOV dword ptr [ESP + 0x14],EDI
ADD ESP,0x10
XOR EDI,EDI
JMP 0x00011aa5
MOV EDX,dword ptr [ESP]
LEA ECX,[EAX + 0x1]
MOV dword ptr [EDX + 0x4],ECX
MOVZX EAX,byte ptr [EAX]
ADD EDI,0x1
MOV EDX,ESI
ADC EBP,0x0
SHL ESI,0xf
SAR EDX,0x1
MOVZX ESI,SI
ADD ESI,EDX
ADD ESI,EAX
MOV EAX,ECX
MOVZX ESI,SI
CMP dword ptr [ESP + 0x4],EAX
JA 0x00011a80
SUB ESP,0xc
PUSH dword ptr [ESP + 0xc]
CALL 0x000112b0
ADD ESP,0x10
CMP EAX,-0x1
JNZ 0x00011c52
MOV EAX,dword ptr [ESP]
TEST byte ptr [EAX],0x20
JNZ 0x00011be8
MOV EAX,dword ptr [ESP + 0x8]
TEST EAX,EAX
JZ 0x00011aee
SUB ESP,0xc
PUSH dword ptr [ESP + 0xc]
CALL 0x00017360
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00011bb2
PUSH 0x0
PUSH 0x400
PUSH 0x0
PUSH 0x1
PUSH 0x0
LEA EAX,[ESP + 0x24]
PUSH EAX
PUSH EBP
PUSH EDI
CALL 0x00012110
ADD ESP,0x20
PUSH EAX
LEA EAX,[EBX + 0xffffb00e]
PUSH ESI
PUSH EAX
PUSH 0x1
CALL 0x000112a0
ADD ESP,0x10
CMP dword ptr [ESP + 0x2c4],0x1
JG 0x00011b70
MOV EAX,dword ptr [EBX + 0xffffffd4]
MOV EAX,dword ptr [EAX]
MOV EDX,dword ptr [EAX + 0x14]
CMP EDX,dword ptr [EAX + 0x18]
JNC 0x00011c35
LEA ECX,[EDX + 0x1]
MOV ESI,0x1
MOV dword ptr [EAX + 0x14],ECX
MOV byte ptr [EDX],0xa
MOV EBX,dword ptr [ESP + 0x29c]
XOR EBX,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x00011c4d
ADD ESP,0x2ac
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xffffc2f1]
PUSH dword ptr [ESP + 0x10]
PUSH EAX
PUSH 0x1
CALL 0x000112a0
ADD ESP,0x10
JMP 0x00011b27
SUB ESP,0x8
LEA EAX,[EBX + 0xffffb352]
PUSH EAX
PUSH dword ptr [ESP + 0x18]
CALL 0x00011140
MOV dword ptr [ESP + 0x10],EAX
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00011a52
SUB ESP,0x4
PUSH dword ptr [ESP + 0x10]
PUSH 0x3
PUSH 0x0
CALL 0x000159a0
MOV ESI,EAX
CALL 0x00011280
LEA EDX,[EBX + 0xffffc2f2]
PUSH ESI
XOR ESI,ESI
PUSH EDX
PUSH dword ptr [EAX]
PUSH 0x0
CALL 0x000111a0
ADD ESP,0x20
JMP 0x00011b49
SUB ESP,0x4
PUSH dword ptr [ESP + 0x10]
PUSH 0x3
PUSH 0x0
CALL 0x000159a0
MOV ESI,EAX
CALL 0x00011280
LEA EDX,[EBX + 0xffffc2f2]
PUSH ESI
XOR ESI,ESI
PUSH EDX
PUSH dword ptr [EAX]
PUSH 0x0
CALL 0x000111a0
ADD ESP,0x20
MOV EDX,dword ptr [ESP + 0x8]
TEST EDX,EDX
JZ 0x00011b49
SUB ESP,0xc
PUSH dword ptr [ESP + 0xc]
CALL 0x00017360
ADD ESP,0x10
JMP 0x00011b49
SUB ESP,0x8
MOV ESI,0x1
PUSH 0xa
PUSH EAX
CALL 0x000112f0
ADD ESP,0x10
JMP 0x00011b49
CALL 0x00018f70
MOV ECX,dword ptr [ESP]
MOV EDX,dword ptr [ECX + 0x8]
MOV ECX,dword ptr [ECX + 0x4]
MOV dword ptr [ESP + 0x4],EDX
JMP 0x00011a8c
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_000119f0(byte *param_1,int param_2)\n\n{\n  _IO_FILE *p_Var1;\n  char *pcVar2;\n  byte *pbVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int *piVar7;\n  int iVar8;\n  uint uVar9;\n  undefined4 uVar10;\n  byte *pbVar11;\n  uint uVar12;\n  int in_GS_OFFSET;\n  bool bVar13;\n  bool bVar14;\n  bool bVar15;\n  _IO_FILE *local_2bc;\n  byte *local_2b8;\n  undefined1 local_2ac [652];\n  int local_20;\n  undefined4 uStack_14;\n  \n  iVar8 = 2;\n  uStack_14 = 0x119fe;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar13 = false;\n  bVar15 = true;\n  pbVar3 = param_1;\n  pbVar11 = &DAT_0001a279;\n  do {\n    if (iVar8 == 0) break;\n    iVar8 = iVar8 + -1;\n    bVar13 = *pbVar3 < *pbVar11;\n    bVar15 = *pbVar3 == *pbVar11;\n    pbVar3 = pbVar3 + 1;\n    pbVar11 = pbVar11 + 1;\n  } while (bVar15);\n  bVar15 = !bVar13 && !bVar15;\n  if (bVar15 == bVar13) {\n    DAT_0001e188 = 1;\n    local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0;\nLAB_00011a52:\n    iVar8 = 0;\n    uVar9 = 0;\n    FUN_000120d0(local_2bc,2);\n    local_2b8 = (byte *)local_2bc->_IO_read_end;\n    pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n    uVar12 = 0;\n    do {\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff;\n    } while( true );\n  }\n  local_2bc = fopen64((char *)param_1,"r");\n  if (local_2bc != (FILE *)0x0) goto LAB_00011a52;\nLAB_00011bb2:\n  uVar6 = FUN_000159a0(0,3,param_1);\n  piVar7 = __errno_location();\n  uVar10 = 0;\n  error(0,*piVar7,&DAT_0001a2f2,uVar6);\nLAB_00011b49:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar10;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00018f70();\ncode_r0x00011ac3:\n  if ((local_2bc->_flags & 0x20) != 0) {\n    uVar6 = FUN_000159a0(0,3,param_1);\n    piVar7 = __errno_location();\n    uVar10 = 0;\n    error(0,*piVar7,&DAT_0001a2f2,uVar6);\n    if (bVar15 != bVar13) {\n      FUN_00017360(local_2bc);\n    }\n    goto LAB_00011b49;\n  }\n  if (bVar15 != bVar13) {\n    iVar5 = FUN_00017360(local_2bc);\n    if (iVar5 != 0) goto LAB_00011bb2;\n  }\n  uVar6 = FUN_00012110(uVar12,iVar8,local_2ac,0,1,0,0x400,0);\n  __printf_chk(1,"%05d %5s",uVar9,uVar6);\n  if (1 < param_2) {\n    __printf_chk(1,&DAT_0001a2f1,param_1,uVar6);\n  }\n  p_Var1 = *(_IO_FILE **)PTR_stdout_0001dfd4;\n  pcVar2 = p_Var1->_IO_write_ptr;\n  if (pcVar2 < p_Var1->_IO_write_end) {\n    uVar10 = 1;\n    p_Var1->_IO_write_ptr = pcVar2 + 1;\n    *pcVar2 = '\n';\n  }\n  else {\n    uVar10 = 1;\n    __overflow(p_Var1,10);\n  }\n  goto LAB_00011b49;\n}\n\n" comment (function_definition "undefined4 FUN_000119f0(byte *param_1,int param_2)\n\n{\n  _IO_FILE *p_Var1;\n  char *pcVar2;\n  byte *pbVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int *piVar7;\n  int iVar8;\n  uint uVar9;\n  undefined4 uVar10;\n  byte *pbVar11;\n  uint uVar12;\n  int in_GS_OFFSET;\n  bool bVar13;\n  bool bVar14;\n  bool bVar15;\n  _IO_FILE *local_2bc;\n  byte *local_2b8;\n  undefined1 local_2ac [652];\n  int local_20;\n  undefined4 uStack_14;\n  \n  iVar8 = 2;\n  uStack_14 = 0x119fe;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar13 = false;\n  bVar15 = true;\n  pbVar3 = param_1;\n  pbVar11 = &DAT_0001a279;\n  do {\n    if (iVar8 == 0) break;\n    iVar8 = iVar8 + -1;\n    bVar13 = *pbVar3 < *pbVar11;\n    bVar15 = *pbVar3 == *pbVar11;\n    pbVar3 = pbVar3 + 1;\n    pbVar11 = pbVar11 + 1;\n  } while (bVar15);\n  bVar15 = !bVar13 && !bVar15;\n  if (bVar15 == bVar13) {\n    DAT_0001e188 = 1;\n    local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0;\nLAB_00011a52:\n    iVar8 = 0;\n    uVar9 = 0;\n    FUN_000120d0(local_2bc,2);\n    local_2b8 = (byte *)local_2bc->_IO_read_end;\n    pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n    uVar12 = 0;\n    do {\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff;\n    } while( true );\n  }\n  local_2bc = fopen64((char *)param_1,"r");\n  if (local_2bc != (FILE *)0x0) goto LAB_00011a52;\nLAB_00011bb2:\n  uVar6 = FUN_000159a0(0,3,param_1);\n  piVar7 = __errno_location();\n  uVar10 = 0;\n  error(0,*piVar7,&DAT_0001a2f2,uVar6);\nLAB_00011b49:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar10;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00018f70();\ncode_r0x00011ac3:\n  if ((local_2bc->_flags & 0x20) != 0) {\n    uVar6 = FUN_000159a0(0,3,param_1);\n    piVar7 = __errno_location();\n    uVar10 = 0;\n    error(0,*piVar7,&DAT_0001a2f2,uVar6);\n    if (bVar15 != bVar13) {\n      FUN_00017360(local_2bc);\n    }\n    goto LAB_00011b49;\n  }\n  if (bVar15 != bVar13) {\n    iVar5 = FUN_00017360(local_2bc);\n    if (iVar5 != 0) goto LAB_00011bb2;\n  }\n  uVar6 = FUN_00012110(uVar12,iVar8,local_2ac,0,1,0,0x400,0);\n  __printf_chk(1,"%05d %5s",uVar9,uVar6);\n  if (1 < param_2) {\n    __printf_chk(1,&DAT_0001a2f1,param_1,uVar6);\n  }\n  p_Var1 = *(_IO_FILE **)PTR_stdout_0001dfd4;\n  pcVar2 = p_Var1->_IO_write_ptr;\n  if (pcVar2 < p_Var1->_IO_write_end) {\n    uVar10 = 1;\n    p_Var1->_IO_write_ptr = pcVar2 + 1;\n    *pcVar2 = '\n';\n  }\n  else {\n    uVar10 = 1;\n    __overflow(p_Var1,10);\n  }\n  goto LAB_00011b49;\n}" type_identifier (function_declarator "FUN_000119f0(byte *param_1,int param_2)" identifier (parameter_list "(byte *param_1,int param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  _IO_FILE *p_Var1;\n  char *pcVar2;\n  byte *pbVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int *piVar7;\n  int iVar8;\n  uint uVar9;\n  undefined4 uVar10;\n  byte *pbVar11;\n  uint uVar12;\n  int in_GS_OFFSET;\n  bool bVar13;\n  bool bVar14;\n  bool bVar15;\n  _IO_FILE *local_2bc;\n  byte *local_2b8;\n  undefined1 local_2ac [652];\n  int local_20;\n  undefined4 uStack_14;\n  \n  iVar8 = 2;\n  uStack_14 = 0x119fe;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar13 = false;\n  bVar15 = true;\n  pbVar3 = param_1;\n  pbVar11 = &DAT_0001a279;\n  do {\n    if (iVar8 == 0) break;\n    iVar8 = iVar8 + -1;\n    bVar13 = *pbVar3 < *pbVar11;\n    bVar15 = *pbVar3 == *pbVar11;\n    pbVar3 = pbVar3 + 1;\n    pbVar11 = pbVar11 + 1;\n  } while (bVar15);\n  bVar15 = !bVar13 && !bVar15;\n  if (bVar15 == bVar13) {\n    DAT_0001e188 = 1;\n    local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0;\nLAB_00011a52:\n    iVar8 = 0;\n    uVar9 = 0;\n    FUN_000120d0(local_2bc,2);\n    local_2b8 = (byte *)local_2bc->_IO_read_end;\n    pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n    uVar12 = 0;\n    do {\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff;\n    } while( true );\n  }\n  local_2bc = fopen64((char *)param_1,"r");\n  if (local_2bc != (FILE *)0x0) goto LAB_00011a52;\nLAB_00011bb2:\n  uVar6 = FUN_000159a0(0,3,param_1);\n  piVar7 = __errno_location();\n  uVar10 = 0;\n  error(0,*piVar7,&DAT_0001a2f2,uVar6);\nLAB_00011b49:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar10;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00018f70();\ncode_r0x00011ac3:\n  if ((local_2bc->_flags & 0x20) != 0) {\n    uVar6 = FUN_000159a0(0,3,param_1);\n    piVar7 = __errno_location();\n    uVar10 = 0;\n    error(0,*piVar7,&DAT_0001a2f2,uVar6);\n    if (bVar15 != bVar13) {\n      FUN_00017360(local_2bc);\n    }\n    goto LAB_00011b49;\n  }\n  if (bVar15 != bVar13) {\n    iVar5 = FUN_00017360(local_2bc);\n    if (iVar5 != 0) goto LAB_00011bb2;\n  }\n  uVar6 = FUN_00012110(uVar12,iVar8,local_2ac,0,1,0,0x400,0);\n  __printf_chk(1,"%05d %5s",uVar9,uVar6);\n  if (1 < param_2) {\n    __printf_chk(1,&DAT_0001a2f1,param_1,uVar6);\n  }\n  p_Var1 = *(_IO_FILE **)PTR_stdout_0001dfd4;\n  pcVar2 = p_Var1->_IO_write_ptr;\n  if (pcVar2 < p_Var1->_IO_write_end) {\n    uVar10 = 1;\n    p_Var1->_IO_write_ptr = pcVar2 + 1;\n    *pcVar2 = '\n';\n  }\n  else {\n    uVar10 = 1;\n    __overflow(p_Var1,10);\n  }\n  goto LAB_00011b49;\n}" { (declaration "_IO_FILE *p_Var1;" type_identifier (pointer_declarator "*p_Var1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "byte *pbVar11;" type_identifier (pointer_declarator "*pbVar11" * identifier) ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar13;" primitive_type identifier ;) (declaration "bool bVar14;" primitive_type identifier ;) (declaration "bool bVar15;" primitive_type identifier ;) (declaration "_IO_FILE *local_2bc;" type_identifier (pointer_declarator "*local_2bc" * identifier) ;) (declaration "byte *local_2b8;" type_identifier (pointer_declarator "*local_2b8" * identifier) ;) (declaration "undefined1 local_2ac [652];" type_identifier (array_declarator "local_2ac [652]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "iVar8 = 2;" (assignment_expression "iVar8 = 2" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x119fe;" (assignment_expression "uStack_14 = 0x119fe" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "bVar13 = false;" (assignment_expression "bVar13 = false" identifier = false) ;) (expression_statement "bVar15 = true;" (assignment_expression "bVar15 = true" identifier = true) ;) (expression_statement "pbVar3 = param_1;" (assignment_expression "pbVar3 = param_1" identifier = identifier) ;) (expression_statement "pbVar11 = &DAT_0001a279;" (assignment_expression "pbVar11 = &DAT_0001a279" identifier = (pointer_expression "&DAT_0001a279" & identifier)) ;) (do_statement "do {\n    if (iVar8 == 0) break;\n    iVar8 = iVar8 + -1;\n    bVar13 = *pbVar3 < *pbVar11;\n    bVar15 = *pbVar3 == *pbVar11;\n    pbVar3 = pbVar3 + 1;\n    pbVar11 = pbVar11 + 1;\n  } while (bVar15);" do (compound_statement "{\n    if (iVar8 == 0) break;\n    iVar8 = iVar8 + -1;\n    bVar13 = *pbVar3 < *pbVar11;\n    bVar15 = *pbVar3 == *pbVar11;\n    pbVar3 = pbVar3 + 1;\n    pbVar11 = pbVar11 + 1;\n  }" { (if_statement "if (iVar8 == 0) break;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (expression_statement "bVar13 = *pbVar3 < *pbVar11;" (assignment_expression "bVar13 = *pbVar3 < *pbVar11" identifier = (binary_expression "*pbVar3 < *pbVar11" (pointer_expression "*pbVar3" * identifier) < (pointer_expression "*pbVar11" * identifier))) ;) (expression_statement "bVar15 = *pbVar3 == *pbVar11;" (assignment_expression "bVar15 = *pbVar3 == *pbVar11" identifier = (binary_expression "*pbVar3 == *pbVar11" (pointer_expression "*pbVar3" * identifier) == (pointer_expression "*pbVar11" * identifier))) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "pbVar11 = pbVar11 + 1;" (assignment_expression "pbVar11 = pbVar11 + 1" identifier = (binary_expression "pbVar11 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar15)" ( identifier )) ;) (expression_statement "bVar15 = !bVar13 && !bVar15;" (assignment_expression "bVar15 = !bVar13 && !bVar15" identifier = (binary_expression "!bVar13 && !bVar15" (unary_expression "!bVar13" ! identifier) && (unary_expression "!bVar15" ! identifier))) ;) (if_statement "if (bVar15 == bVar13) {\n    DAT_0001e188 = 1;\n    local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0;\nLAB_00011a52:\n    iVar8 = 0;\n    uVar9 = 0;\n    FUN_000120d0(local_2bc,2);\n    local_2b8 = (byte *)local_2bc->_IO_read_end;\n    pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n    uVar12 = 0;\n    do {\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff;\n    } while( true );\n  }" if (parenthesized_expression "(bVar15 == bVar13)" ( (binary_expression "bVar15 == bVar13" identifier == identifier) )) (compound_statement "{\n    DAT_0001e188 = 1;\n    local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0;\nLAB_00011a52:\n    iVar8 = 0;\n    uVar9 = 0;\n    FUN_000120d0(local_2bc,2);\n    local_2b8 = (byte *)local_2bc->_IO_read_end;\n    pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n    uVar12 = 0;\n    do {\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff;\n    } while( true );\n  }" { (expression_statement "DAT_0001e188 = 1;" (assignment_expression "DAT_0001e188 = 1" identifier = number_literal) ;) (expression_statement "local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0;" (assignment_expression "local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0" identifier = (pointer_expression "*(_IO_FILE **)PTR_stdin_0001dfd0" * (cast_expression "(_IO_FILE **)PTR_stdin_0001dfd0" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (labeled_statement "LAB_00011a52:\n    iVar8 = 0;" statement_identifier : (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;)) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (expression_statement "FUN_000120d0(local_2bc,2);" (call_expression "FUN_000120d0(local_2bc,2)" identifier (argument_list "(local_2bc,2)" ( identifier , number_literal ))) ;) (expression_statement "local_2b8 = (byte *)local_2bc->_IO_read_end;" (assignment_expression "local_2b8 = (byte *)local_2bc->_IO_read_end" identifier = (cast_expression "(byte *)local_2bc->_IO_read_end" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "local_2bc->_IO_read_end" identifier -> field_identifier))) ;) (expression_statement "pbVar3 = (byte *)local_2bc->_IO_read_ptr;" (assignment_expression "pbVar3 = (byte *)local_2bc->_IO_read_ptr" identifier = (cast_expression "(byte *)local_2bc->_IO_read_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "local_2bc->_IO_read_ptr" identifier -> field_identifier))) ;) (expression_statement "uVar12 = 0;" (assignment_expression "uVar12 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff;\n    } while( true );" do (compound_statement "{\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff;\n    }" { (if_statement "if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }" if (parenthesized_expression "(pbVar3 < local_2b8)" ( (binary_expression "pbVar3 < local_2b8" identifier < identifier) )) (compound_statement "{\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }" { (expression_statement "local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);" (assignment_expression "local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1)" (field_expression "local_2bc->_IO_read_ptr" identifier -> field_identifier) = (cast_expression "(char *)(pbVar3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 1)" ( (binary_expression "pbVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar4 = (uint)*pbVar3;" (assignment_expression "uVar4 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }" else (compound_statement "{\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }" { (expression_statement "uVar4 = __uflow(local_2bc);" (assignment_expression "uVar4 = __uflow(local_2bc)" identifier = (call_expression "__uflow(local_2bc)" identifier (argument_list "(local_2bc)" ( identifier )))) ;) (if_statement "if (uVar4 == 0xffffffff) goto code_r0x00011ac3;" if (parenthesized_expression "(uVar4 == 0xffffffff)" ( (binary_expression "uVar4 == 0xffffffff" identifier == number_literal) )) (goto_statement "goto code_r0x00011ac3;" goto statement_identifier ;)) (expression_statement "local_2b8 = (byte *)local_2bc->_IO_read_end;" (assignment_expression "local_2b8 = (byte *)local_2bc->_IO_read_end" identifier = (cast_expression "(byte *)local_2bc->_IO_read_end" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "local_2bc->_IO_read_end" identifier -> field_identifier))) ;) (expression_statement "pbVar3 = (byte *)local_2bc->_IO_read_ptr;" (assignment_expression "pbVar3 = (byte *)local_2bc->_IO_read_ptr" identifier = (cast_expression "(byte *)local_2bc->_IO_read_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "local_2bc->_IO_read_ptr" identifier -> field_identifier))) ;) }))) (expression_statement "bVar14 = 0xfffffffe < uVar12;" (assignment_expression "bVar14 = 0xfffffffe < uVar12" identifier = (binary_expression "0xfffffffe < uVar12" number_literal < identifier)) ;) (expression_statement "uVar12 = uVar12 + 1;" (assignment_expression "uVar12 = uVar12 + 1" identifier = (binary_expression "uVar12 + 1" identifier + number_literal)) ;) (expression_statement "iVar8 = iVar8 + (uint)bVar14;" (assignment_expression "iVar8 = iVar8 + (uint)bVar14" identifier = (binary_expression "iVar8 + (uint)bVar14" identifier + (cast_expression "(uint)bVar14" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (expression_statement "uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff;" (assignment_expression "uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff" identifier = (binary_expression "(uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff" (binary_expression "(uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4" (binary_expression "(uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1)" (binary_expression "(uVar9 & 1) * 0x8000" (parenthesized_expression "(uVar9 & 1)" ( (binary_expression "uVar9 & 1" identifier & number_literal) )) * number_literal) + (parenthesized_expression "((int)uVar9 >> 1)" ( (binary_expression "(int)uVar9 >> 1" (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) + identifier) & number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (expression_statement "local_2bc = fopen64((char *)param_1,"r");" (assignment_expression "local_2bc = fopen64((char *)param_1,"r")" identifier = (call_expression "fopen64((char *)param_1,"r")" identifier (argument_list "((char *)param_1,"r")" ( (cast_expression "(char *)param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""r"" " string_content ") )))) ;) (if_statement "if (local_2bc != (FILE *)0x0) goto LAB_00011a52;" if (parenthesized_expression "(local_2bc != (FILE *)0x0)" ( (binary_expression "local_2bc != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00011a52;" goto statement_identifier ;)) (labeled_statement "LAB_00011bb2:\n  uVar6 = FUN_000159a0(0,3,param_1);" statement_identifier : (expression_statement "uVar6 = FUN_000159a0(0,3,param_1);" (assignment_expression "uVar6 = FUN_000159a0(0,3,param_1)" identifier = (call_expression "FUN_000159a0(0,3,param_1)" identifier (argument_list "(0,3,param_1)" ( number_literal , number_literal , identifier )))) ;)) (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) (expression_statement "error(0,*piVar7,&DAT_0001a2f2,uVar6);" (call_expression "error(0,*piVar7,&DAT_0001a2f2,uVar6)" identifier (argument_list "(0,*piVar7,&DAT_0001a2f2,uVar6)" ( number_literal , (pointer_expression "*piVar7" * identifier) , (pointer_expression "&DAT_0001a2f2" & identifier) , identifier ))) ;) (labeled_statement "LAB_00011b49:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar10;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar10;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar10;\n  }" { (return_statement "return uVar10;" return identifier ;) }))) comment (expression_statement "FUN_00018f70();" (call_expression "FUN_00018f70()" identifier (argument_list "()" ( ))) ;) (labeled_statement "code_r0x00011ac3:\n  if ((local_2bc->_flags & 0x20) != 0) {\n    uVar6 = FUN_000159a0(0,3,param_1);\n    piVar7 = __errno_location();\n    uVar10 = 0;\n    error(0,*piVar7,&DAT_0001a2f2,uVar6);\n    if (bVar15 != bVar13) {\n      FUN_00017360(local_2bc);\n    }\n    goto LAB_00011b49;\n  }" statement_identifier : (if_statement "if ((local_2bc->_flags & 0x20) != 0) {\n    uVar6 = FUN_000159a0(0,3,param_1);\n    piVar7 = __errno_location();\n    uVar10 = 0;\n    error(0,*piVar7,&DAT_0001a2f2,uVar6);\n    if (bVar15 != bVar13) {\n      FUN_00017360(local_2bc);\n    }\n    goto LAB_00011b49;\n  }" if (parenthesized_expression "((local_2bc->_flags & 0x20) != 0)" ( (binary_expression "(local_2bc->_flags & 0x20) != 0" (parenthesized_expression "(local_2bc->_flags & 0x20)" ( (binary_expression "local_2bc->_flags & 0x20" (field_expression "local_2bc->_flags" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar6 = FUN_000159a0(0,3,param_1);\n    piVar7 = __errno_location();\n    uVar10 = 0;\n    error(0,*piVar7,&DAT_0001a2f2,uVar6);\n    if (bVar15 != bVar13) {\n      FUN_00017360(local_2bc);\n    }\n    goto LAB_00011b49;\n  }" { (expression_statement "uVar6 = FUN_000159a0(0,3,param_1);" (assignment_expression "uVar6 = FUN_000159a0(0,3,param_1)" identifier = (call_expression "FUN_000159a0(0,3,param_1)" identifier (argument_list "(0,3,param_1)" ( number_literal , number_literal , identifier )))) ;) (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) (expression_statement "error(0,*piVar7,&DAT_0001a2f2,uVar6);" (call_expression "error(0,*piVar7,&DAT_0001a2f2,uVar6)" identifier (argument_list "(0,*piVar7,&DAT_0001a2f2,uVar6)" ( number_literal , (pointer_expression "*piVar7" * identifier) , (pointer_expression "&DAT_0001a2f2" & identifier) , identifier ))) ;) (if_statement "if (bVar15 != bVar13) {\n      FUN_00017360(local_2bc);\n    }" if (parenthesized_expression "(bVar15 != bVar13)" ( (binary_expression "bVar15 != bVar13" identifier != identifier) )) (compound_statement "{\n      FUN_00017360(local_2bc);\n    }" { (expression_statement "FUN_00017360(local_2bc);" (call_expression "FUN_00017360(local_2bc)" identifier (argument_list "(local_2bc)" ( identifier ))) ;) })) (goto_statement "goto LAB_00011b49;" goto statement_identifier ;) }))) (if_statement "if (bVar15 != bVar13) {\n    iVar5 = FUN_00017360(local_2bc);\n    if (iVar5 != 0) goto LAB_00011bb2;\n  }" if (parenthesized_expression "(bVar15 != bVar13)" ( (binary_expression "bVar15 != bVar13" identifier != identifier) )) (compound_statement "{\n    iVar5 = FUN_00017360(local_2bc);\n    if (iVar5 != 0) goto LAB_00011bb2;\n  }" { (expression_statement "iVar5 = FUN_00017360(local_2bc);" (assignment_expression "iVar5 = FUN_00017360(local_2bc)" identifier = (call_expression "FUN_00017360(local_2bc)" identifier (argument_list "(local_2bc)" ( identifier )))) ;) (if_statement "if (iVar5 != 0) goto LAB_00011bb2;" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00011bb2;" goto statement_identifier ;)) })) (expression_statement "uVar6 = FUN_00012110(uVar12,iVar8,local_2ac,0,1,0,0x400,0);" (assignment_expression "uVar6 = FUN_00012110(uVar12,iVar8,local_2ac,0,1,0,0x400,0)" identifier = (call_expression "FUN_00012110(uVar12,iVar8,local_2ac,0,1,0,0x400,0)" identifier (argument_list "(uVar12,iVar8,local_2ac,0,1,0,0x400,0)" ( identifier , identifier , identifier , number_literal , number_literal , number_literal , number_literal , number_literal )))) ;) (expression_statement "__printf_chk(1,"%05d %5s",uVar9,uVar6);" (call_expression "__printf_chk(1,"%05d %5s",uVar9,uVar6)" identifier (argument_list "(1,"%05d %5s",uVar9,uVar6)" ( number_literal , (string_literal ""%05d %5s"" " string_content ") , identifier , identifier ))) ;) (if_statement "if (1 < param_2) {\n    __printf_chk(1,&DAT_0001a2f1,param_1,uVar6);\n  }" if (parenthesized_expression "(1 < param_2)" ( (binary_expression "1 < param_2" number_literal < identifier) )) (compound_statement "{\n    __printf_chk(1,&DAT_0001a2f1,param_1,uVar6);\n  }" { (expression_statement "__printf_chk(1,&DAT_0001a2f1,param_1,uVar6);" (call_expression "__printf_chk(1,&DAT_0001a2f1,param_1,uVar6)" identifier (argument_list "(1,&DAT_0001a2f1,param_1,uVar6)" ( number_literal , (pointer_expression "&DAT_0001a2f1" & identifier) , identifier , identifier ))) ;) })) (expression_statement "p_Var1 = *(_IO_FILE **)PTR_stdout_0001dfd4;" (assignment_expression "p_Var1 = *(_IO_FILE **)PTR_stdout_0001dfd4" identifier = (pointer_expression "*(_IO_FILE **)PTR_stdout_0001dfd4" * (cast_expression "(_IO_FILE **)PTR_stdout_0001dfd4" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pcVar2 = p_Var1->_IO_write_ptr;" (assignment_expression "pcVar2 = p_Var1->_IO_write_ptr" identifier = (field_expression "p_Var1->_IO_write_ptr" identifier -> field_identifier)) ;) (if_statement "if (pcVar2 < p_Var1->_IO_write_end) {\n    uVar10 = 1;\n    p_Var1->_IO_write_ptr = pcVar2 + 1;\n    *pcVar2 = '\n';\n  }\n  else {\n    uVar10 = 1;\n    __overflow(p_Var1,10);\n  }" if (parenthesized_expression "(pcVar2 < p_Var1->_IO_write_end)" ( (binary_expression "pcVar2 < p_Var1->_IO_write_end" identifier < (field_expression "p_Var1->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n    uVar10 = 1;\n    p_Var1->_IO_write_ptr = pcVar2 + 1;\n    *pcVar2 = '\n';\n  }" { (expression_statement "uVar10 = 1;" (assignment_expression "uVar10 = 1" identifier = number_literal) ;) (expression_statement "p_Var1->_IO_write_ptr = pcVar2 + 1;" (assignment_expression "p_Var1->_IO_write_ptr = pcVar2 + 1" (field_expression "p_Var1->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar2 = '\n';" (assignment_expression "*pcVar2 = '\n'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\n'" ' escape_sequence ')) ;) }) (else_clause "else {\n    uVar10 = 1;\n    __overflow(p_Var1,10);\n  }" else (compound_statement "{\n    uVar10 = 1;\n    __overflow(p_Var1,10);\n  }" { (expression_statement "uVar10 = 1;" (assignment_expression "uVar10 = 1" identifier = number_literal) ;) (expression_statement "__overflow(p_Var1,10);" (call_expression "__overflow(p_Var1,10)" identifier (argument_list "(p_Var1,10)" ( identifier , number_literal ))) ;) }))) (goto_statement "goto LAB_00011b49;" goto statement_identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\n_Bool bsd_sum_file(char *file,int print_name)\n\n{\n  int iVar1;\n  _IO_FILE *p_Var2;\n  byte *pbVar3;\n  uint uVar4;\n  int iVar5;\n  char *pcVar6;\n  int *piVar7;\n  int iVar8;\n  _Bool _Var9;\n  uint uVar10;\n  byte *pbVar11;\n  uint uVar12;\n  int in_GS_OFFSET;\n  bool bVar13;\n  bool bVar14;\n  bool bVar15;\n  _IO_FILE *local_2bc;\n  byte *local_2b8;\n  char hbuf [652];\n  \n  iVar8 = 2;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar13 = false;\n  bVar15 = true;\n  pbVar3 = (byte *)file;\n  pbVar11 = &DAT_0001a279;\n  do {\n    if (iVar8 == 0) break;\n    iVar8 = iVar8 + -1;\n    bVar13 = *pbVar3 < *pbVar11;\n    bVar15 = *pbVar3 == *pbVar11;\n    pbVar3 = pbVar3 + 1;\n    pbVar11 = pbVar11 + 1;\n  } while (bVar15);\n  bVar15 = !bVar13 && !bVar15;\n  if (bVar15 == bVar13) {\n    have_read_stdin = true;\n    local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0;\nLAB_00011a52:\n    iVar8 = 0;\n    uVar10 = 0;\n    fadvise((FILE *)local_2bc,FADVISE_SEQUENTIAL);\n    local_2b8 = (byte *)local_2bc->_IO_read_end;\n    pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n    uVar12 = 0;\n    do {\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar10 = (uVar10 & 1) * 0x8000 + ((int)uVar10 >> 1) + uVar4 & 0xffff;\n    } while( true );\n  }\n  local_2bc = fopen64(file,"r");\n  if (local_2bc != (FILE *)0x0) goto LAB_00011a52;\nLAB_00011bb2:\n  pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,file);\n  piVar7 = __errno_location();\n  _Var9 = false;\n  error(0,*piVar7,&DAT_0001a2f2,pcVar6);\nLAB_00011b49:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return _Var9;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\ncode_r0x00011ac3:\n  if ((local_2bc->_flags & 0x20) != 0) {\n    pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,file);\n    piVar7 = __errno_location();\n    _Var9 = false;\n    error(0,*piVar7,&DAT_0001a2f2,pcVar6);\n    if (bVar15 != bVar13) {\n      rpl_fclose((FILE *)local_2bc);\n    }\n    goto LAB_00011b49;\n  }\n  if (bVar15 != bVar13) {\n    iVar5 = rpl_fclose((FILE *)local_2bc);\n    if (iVar5 != 0) goto LAB_00011bb2;\n  }\n  pcVar6 = human_readable(CONCAT44(iVar8,uVar12),hbuf,0,1,0x400);\n  __printf_chk(1,"%05d %5s",uVar10,pcVar6);\n  if (1 < print_name) {\n    __printf_chk(1,&DAT_0001a2f1,file,pcVar6);\n  }\n  p_Var2 = *(_IO_FILE **)PTR_stdout_0001dfd4;\n  pcVar6 = p_Var2->_IO_write_ptr;\n  if (pcVar6 < p_Var2->_IO_write_end) {\n    _Var9 = true;\n    p_Var2->_IO_write_ptr = pcVar6 + 1;\n    *pcVar6 = '\n';\n  }\n  else {\n    _Var9 = true;\n    __overflow(p_Var2,10);\n  }\n  goto LAB_00011b49;\n}\n\n" comment (function_definition "_Bool bsd_sum_file(char *file,int print_name)\n\n{\n  int iVar1;\n  _IO_FILE *p_Var2;\n  byte *pbVar3;\n  uint uVar4;\n  int iVar5;\n  char *pcVar6;\n  int *piVar7;\n  int iVar8;\n  _Bool _Var9;\n  uint uVar10;\n  byte *pbVar11;\n  uint uVar12;\n  int in_GS_OFFSET;\n  bool bVar13;\n  bool bVar14;\n  bool bVar15;\n  _IO_FILE *local_2bc;\n  byte *local_2b8;\n  char hbuf [652];\n  \n  iVar8 = 2;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar13 = false;\n  bVar15 = true;\n  pbVar3 = (byte *)file;\n  pbVar11 = &DAT_0001a279;\n  do {\n    if (iVar8 == 0) break;\n    iVar8 = iVar8 + -1;\n    bVar13 = *pbVar3 < *pbVar11;\n    bVar15 = *pbVar3 == *pbVar11;\n    pbVar3 = pbVar3 + 1;\n    pbVar11 = pbVar11 + 1;\n  } while (bVar15);\n  bVar15 = !bVar13 && !bVar15;\n  if (bVar15 == bVar13) {\n    have_read_stdin = true;\n    local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0;\nLAB_00011a52:\n    iVar8 = 0;\n    uVar10 = 0;\n    fadvise((FILE *)local_2bc,FADVISE_SEQUENTIAL);\n    local_2b8 = (byte *)local_2bc->_IO_read_end;\n    pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n    uVar12 = 0;\n    do {\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar10 = (uVar10 & 1) * 0x8000 + ((int)uVar10 >> 1) + uVar4 & 0xffff;\n    } while( true );\n  }\n  local_2bc = fopen64(file,"r");\n  if (local_2bc != (FILE *)0x0) goto LAB_00011a52;\nLAB_00011bb2:\n  pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,file);\n  piVar7 = __errno_location();\n  _Var9 = false;\n  error(0,*piVar7,&DAT_0001a2f2,pcVar6);\nLAB_00011b49:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return _Var9;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\ncode_r0x00011ac3:\n  if ((local_2bc->_flags & 0x20) != 0) {\n    pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,file);\n    piVar7 = __errno_location();\n    _Var9 = false;\n    error(0,*piVar7,&DAT_0001a2f2,pcVar6);\n    if (bVar15 != bVar13) {\n      rpl_fclose((FILE *)local_2bc);\n    }\n    goto LAB_00011b49;\n  }\n  if (bVar15 != bVar13) {\n    iVar5 = rpl_fclose((FILE *)local_2bc);\n    if (iVar5 != 0) goto LAB_00011bb2;\n  }\n  pcVar6 = human_readable(CONCAT44(iVar8,uVar12),hbuf,0,1,0x400);\n  __printf_chk(1,"%05d %5s",uVar10,pcVar6);\n  if (1 < print_name) {\n    __printf_chk(1,&DAT_0001a2f1,file,pcVar6);\n  }\n  p_Var2 = *(_IO_FILE **)PTR_stdout_0001dfd4;\n  pcVar6 = p_Var2->_IO_write_ptr;\n  if (pcVar6 < p_Var2->_IO_write_end) {\n    _Var9 = true;\n    p_Var2->_IO_write_ptr = pcVar6 + 1;\n    *pcVar6 = '\n';\n  }\n  else {\n    _Var9 = true;\n    __overflow(p_Var2,10);\n  }\n  goto LAB_00011b49;\n}" type_identifier (function_declarator "bsd_sum_file(char *file,int print_name)" identifier (parameter_list "(char *file,int print_name)" ( (parameter_declaration "char *file" primitive_type (pointer_declarator "*file" * identifier)) , (parameter_declaration "int print_name" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  _IO_FILE *p_Var2;\n  byte *pbVar3;\n  uint uVar4;\n  int iVar5;\n  char *pcVar6;\n  int *piVar7;\n  int iVar8;\n  _Bool _Var9;\n  uint uVar10;\n  byte *pbVar11;\n  uint uVar12;\n  int in_GS_OFFSET;\n  bool bVar13;\n  bool bVar14;\n  bool bVar15;\n  _IO_FILE *local_2bc;\n  byte *local_2b8;\n  char hbuf [652];\n  \n  iVar8 = 2;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar13 = false;\n  bVar15 = true;\n  pbVar3 = (byte *)file;\n  pbVar11 = &DAT_0001a279;\n  do {\n    if (iVar8 == 0) break;\n    iVar8 = iVar8 + -1;\n    bVar13 = *pbVar3 < *pbVar11;\n    bVar15 = *pbVar3 == *pbVar11;\n    pbVar3 = pbVar3 + 1;\n    pbVar11 = pbVar11 + 1;\n  } while (bVar15);\n  bVar15 = !bVar13 && !bVar15;\n  if (bVar15 == bVar13) {\n    have_read_stdin = true;\n    local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0;\nLAB_00011a52:\n    iVar8 = 0;\n    uVar10 = 0;\n    fadvise((FILE *)local_2bc,FADVISE_SEQUENTIAL);\n    local_2b8 = (byte *)local_2bc->_IO_read_end;\n    pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n    uVar12 = 0;\n    do {\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar10 = (uVar10 & 1) * 0x8000 + ((int)uVar10 >> 1) + uVar4 & 0xffff;\n    } while( true );\n  }\n  local_2bc = fopen64(file,"r");\n  if (local_2bc != (FILE *)0x0) goto LAB_00011a52;\nLAB_00011bb2:\n  pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,file);\n  piVar7 = __errno_location();\n  _Var9 = false;\n  error(0,*piVar7,&DAT_0001a2f2,pcVar6);\nLAB_00011b49:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return _Var9;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\ncode_r0x00011ac3:\n  if ((local_2bc->_flags & 0x20) != 0) {\n    pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,file);\n    piVar7 = __errno_location();\n    _Var9 = false;\n    error(0,*piVar7,&DAT_0001a2f2,pcVar6);\n    if (bVar15 != bVar13) {\n      rpl_fclose((FILE *)local_2bc);\n    }\n    goto LAB_00011b49;\n  }\n  if (bVar15 != bVar13) {\n    iVar5 = rpl_fclose((FILE *)local_2bc);\n    if (iVar5 != 0) goto LAB_00011bb2;\n  }\n  pcVar6 = human_readable(CONCAT44(iVar8,uVar12),hbuf,0,1,0x400);\n  __printf_chk(1,"%05d %5s",uVar10,pcVar6);\n  if (1 < print_name) {\n    __printf_chk(1,&DAT_0001a2f1,file,pcVar6);\n  }\n  p_Var2 = *(_IO_FILE **)PTR_stdout_0001dfd4;\n  pcVar6 = p_Var2->_IO_write_ptr;\n  if (pcVar6 < p_Var2->_IO_write_end) {\n    _Var9 = true;\n    p_Var2->_IO_write_ptr = pcVar6 + 1;\n    *pcVar6 = '\n';\n  }\n  else {\n    _Var9 = true;\n    __overflow(p_Var2,10);\n  }\n  goto LAB_00011b49;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "_IO_FILE *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "_Bool _Var9;" type_identifier identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "byte *pbVar11;" type_identifier (pointer_declarator "*pbVar11" * identifier) ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar13;" primitive_type identifier ;) (declaration "bool bVar14;" primitive_type identifier ;) (declaration "bool bVar15;" primitive_type identifier ;) (declaration "_IO_FILE *local_2bc;" type_identifier (pointer_declarator "*local_2bc" * identifier) ;) (declaration "byte *local_2b8;" type_identifier (pointer_declarator "*local_2b8" * identifier) ;) (declaration "char hbuf [652];" primitive_type (array_declarator "hbuf [652]" identifier [ number_literal ]) ;) (expression_statement "iVar8 = 2;" (assignment_expression "iVar8 = 2" identifier = number_literal) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "bVar13 = false;" (assignment_expression "bVar13 = false" identifier = false) ;) (expression_statement "bVar15 = true;" (assignment_expression "bVar15 = true" identifier = true) ;) (expression_statement "pbVar3 = (byte *)file;" (assignment_expression "pbVar3 = (byte *)file" identifier = (cast_expression "(byte *)file" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pbVar11 = &DAT_0001a279;" (assignment_expression "pbVar11 = &DAT_0001a279" identifier = (pointer_expression "&DAT_0001a279" & identifier)) ;) (do_statement "do {\n    if (iVar8 == 0) break;\n    iVar8 = iVar8 + -1;\n    bVar13 = *pbVar3 < *pbVar11;\n    bVar15 = *pbVar3 == *pbVar11;\n    pbVar3 = pbVar3 + 1;\n    pbVar11 = pbVar11 + 1;\n  } while (bVar15);" do (compound_statement "{\n    if (iVar8 == 0) break;\n    iVar8 = iVar8 + -1;\n    bVar13 = *pbVar3 < *pbVar11;\n    bVar15 = *pbVar3 == *pbVar11;\n    pbVar3 = pbVar3 + 1;\n    pbVar11 = pbVar11 + 1;\n  }" { (if_statement "if (iVar8 == 0) break;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (expression_statement "bVar13 = *pbVar3 < *pbVar11;" (assignment_expression "bVar13 = *pbVar3 < *pbVar11" identifier = (binary_expression "*pbVar3 < *pbVar11" (pointer_expression "*pbVar3" * identifier) < (pointer_expression "*pbVar11" * identifier))) ;) (expression_statement "bVar15 = *pbVar3 == *pbVar11;" (assignment_expression "bVar15 = *pbVar3 == *pbVar11" identifier = (binary_expression "*pbVar3 == *pbVar11" (pointer_expression "*pbVar3" * identifier) == (pointer_expression "*pbVar11" * identifier))) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "pbVar11 = pbVar11 + 1;" (assignment_expression "pbVar11 = pbVar11 + 1" identifier = (binary_expression "pbVar11 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar15)" ( identifier )) ;) (expression_statement "bVar15 = !bVar13 && !bVar15;" (assignment_expression "bVar15 = !bVar13 && !bVar15" identifier = (binary_expression "!bVar13 && !bVar15" (unary_expression "!bVar13" ! identifier) && (unary_expression "!bVar15" ! identifier))) ;) (if_statement "if (bVar15 == bVar13) {\n    have_read_stdin = true;\n    local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0;\nLAB_00011a52:\n    iVar8 = 0;\n    uVar10 = 0;\n    fadvise((FILE *)local_2bc,FADVISE_SEQUENTIAL);\n    local_2b8 = (byte *)local_2bc->_IO_read_end;\n    pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n    uVar12 = 0;\n    do {\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar10 = (uVar10 & 1) * 0x8000 + ((int)uVar10 >> 1) + uVar4 & 0xffff;\n    } while( true );\n  }" if (parenthesized_expression "(bVar15 == bVar13)" ( (binary_expression "bVar15 == bVar13" identifier == identifier) )) (compound_statement "{\n    have_read_stdin = true;\n    local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0;\nLAB_00011a52:\n    iVar8 = 0;\n    uVar10 = 0;\n    fadvise((FILE *)local_2bc,FADVISE_SEQUENTIAL);\n    local_2b8 = (byte *)local_2bc->_IO_read_end;\n    pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n    uVar12 = 0;\n    do {\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar10 = (uVar10 & 1) * 0x8000 + ((int)uVar10 >> 1) + uVar4 & 0xffff;\n    } while( true );\n  }" { (expression_statement "have_read_stdin = true;" (assignment_expression "have_read_stdin = true" identifier = true) ;) (expression_statement "local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0;" (assignment_expression "local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0" identifier = (pointer_expression "*(_IO_FILE **)PTR_stdin_0001dfd0" * (cast_expression "(_IO_FILE **)PTR_stdin_0001dfd0" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (labeled_statement "LAB_00011a52:\n    iVar8 = 0;" statement_identifier : (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;)) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) (expression_statement "fadvise((FILE *)local_2bc,FADVISE_SEQUENTIAL);" (call_expression "fadvise((FILE *)local_2bc,FADVISE_SEQUENTIAL)" identifier (argument_list "((FILE *)local_2bc,FADVISE_SEQUENTIAL)" ( (cast_expression "(FILE *)local_2bc" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) (expression_statement "local_2b8 = (byte *)local_2bc->_IO_read_end;" (assignment_expression "local_2b8 = (byte *)local_2bc->_IO_read_end" identifier = (cast_expression "(byte *)local_2bc->_IO_read_end" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "local_2bc->_IO_read_end" identifier -> field_identifier))) ;) (expression_statement "pbVar3 = (byte *)local_2bc->_IO_read_ptr;" (assignment_expression "pbVar3 = (byte *)local_2bc->_IO_read_ptr" identifier = (cast_expression "(byte *)local_2bc->_IO_read_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "local_2bc->_IO_read_ptr" identifier -> field_identifier))) ;) (expression_statement "uVar12 = 0;" (assignment_expression "uVar12 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar10 = (uVar10 & 1) * 0x8000 + ((int)uVar10 >> 1) + uVar4 & 0xffff;\n    } while( true );" do (compound_statement "{\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar10 = (uVar10 & 1) * 0x8000 + ((int)uVar10 >> 1) + uVar4 & 0xffff;\n    }" { (if_statement "if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }" if (parenthesized_expression "(pbVar3 < local_2b8)" ( (binary_expression "pbVar3 < local_2b8" identifier < identifier) )) (compound_statement "{\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }" { (expression_statement "local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);" (assignment_expression "local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1)" (field_expression "local_2bc->_IO_read_ptr" identifier -> field_identifier) = (cast_expression "(char *)(pbVar3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 1)" ( (binary_expression "pbVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar4 = (uint)*pbVar3;" (assignment_expression "uVar4 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }" else (compound_statement "{\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }" { (expression_statement "uVar4 = __uflow(local_2bc);" (assignment_expression "uVar4 = __uflow(local_2bc)" identifier = (call_expression "__uflow(local_2bc)" identifier (argument_list "(local_2bc)" ( identifier )))) ;) (if_statement "if (uVar4 == 0xffffffff) goto code_r0x00011ac3;" if (parenthesized_expression "(uVar4 == 0xffffffff)" ( (binary_expression "uVar4 == 0xffffffff" identifier == number_literal) )) (goto_statement "goto code_r0x00011ac3;" goto statement_identifier ;)) (expression_statement "local_2b8 = (byte *)local_2bc->_IO_read_end;" (assignment_expression "local_2b8 = (byte *)local_2bc->_IO_read_end" identifier = (cast_expression "(byte *)local_2bc->_IO_read_end" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "local_2bc->_IO_read_end" identifier -> field_identifier))) ;) (expression_statement "pbVar3 = (byte *)local_2bc->_IO_read_ptr;" (assignment_expression "pbVar3 = (byte *)local_2bc->_IO_read_ptr" identifier = (cast_expression "(byte *)local_2bc->_IO_read_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "local_2bc->_IO_read_ptr" identifier -> field_identifier))) ;) }))) (expression_statement "bVar14 = 0xfffffffe < uVar12;" (assignment_expression "bVar14 = 0xfffffffe < uVar12" identifier = (binary_expression "0xfffffffe < uVar12" number_literal < identifier)) ;) (expression_statement "uVar12 = uVar12 + 1;" (assignment_expression "uVar12 = uVar12 + 1" identifier = (binary_expression "uVar12 + 1" identifier + number_literal)) ;) (expression_statement "iVar8 = iVar8 + (uint)bVar14;" (assignment_expression "iVar8 = iVar8 + (uint)bVar14" identifier = (binary_expression "iVar8 + (uint)bVar14" identifier + (cast_expression "(uint)bVar14" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (expression_statement "uVar10 = (uVar10 & 1) * 0x8000 + ((int)uVar10 >> 1) + uVar4 & 0xffff;" (assignment_expression "uVar10 = (uVar10 & 1) * 0x8000 + ((int)uVar10 >> 1) + uVar4 & 0xffff" identifier = (binary_expression "(uVar10 & 1) * 0x8000 + ((int)uVar10 >> 1) + uVar4 & 0xffff" (binary_expression "(uVar10 & 1) * 0x8000 + ((int)uVar10 >> 1) + uVar4" (binary_expression "(uVar10 & 1) * 0x8000 + ((int)uVar10 >> 1)" (binary_expression "(uVar10 & 1) * 0x8000" (parenthesized_expression "(uVar10 & 1)" ( (binary_expression "uVar10 & 1" identifier & number_literal) )) * number_literal) + (parenthesized_expression "((int)uVar10 >> 1)" ( (binary_expression "(int)uVar10 >> 1" (cast_expression "(int)uVar10" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) + identifier) & number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (expression_statement "local_2bc = fopen64(file,"r");" (assignment_expression "local_2bc = fopen64(file,"r")" identifier = (call_expression "fopen64(file,"r")" identifier (argument_list "(file,"r")" ( identifier , (string_literal ""r"" " string_content ") )))) ;) (if_statement "if (local_2bc != (FILE *)0x0) goto LAB_00011a52;" if (parenthesized_expression "(local_2bc != (FILE *)0x0)" ( (binary_expression "local_2bc != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00011a52;" goto statement_identifier ;)) (labeled_statement "LAB_00011bb2:\n  pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,file);" statement_identifier : (expression_statement "pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,file);" (assignment_expression "pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,file)" identifier = (call_expression "quotearg_n_style_colon(0,shell_escape_quoting_style,file)" identifier (argument_list "(0,shell_escape_quoting_style,file)" ( number_literal , identifier , identifier )))) ;)) (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "_Var9 = false;" (assignment_expression "_Var9 = false" identifier = false) ;) (expression_statement "error(0,*piVar7,&DAT_0001a2f2,pcVar6);" (call_expression "error(0,*piVar7,&DAT_0001a2f2,pcVar6)" identifier (argument_list "(0,*piVar7,&DAT_0001a2f2,pcVar6)" ( number_literal , (pointer_expression "*piVar7" * identifier) , (pointer_expression "&DAT_0001a2f2" & identifier) , identifier ))) ;) (labeled_statement "LAB_00011b49:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return _Var9;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return _Var9;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return _Var9;\n  }" { (return_statement "return _Var9;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) (labeled_statement "code_r0x00011ac3:\n  if ((local_2bc->_flags & 0x20) != 0) {\n    pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,file);\n    piVar7 = __errno_location();\n    _Var9 = false;\n    error(0,*piVar7,&DAT_0001a2f2,pcVar6);\n    if (bVar15 != bVar13) {\n      rpl_fclose((FILE *)local_2bc);\n    }\n    goto LAB_00011b49;\n  }" statement_identifier : (if_statement "if ((local_2bc->_flags & 0x20) != 0) {\n    pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,file);\n    piVar7 = __errno_location();\n    _Var9 = false;\n    error(0,*piVar7,&DAT_0001a2f2,pcVar6);\n    if (bVar15 != bVar13) {\n      rpl_fclose((FILE *)local_2bc);\n    }\n    goto LAB_00011b49;\n  }" if (parenthesized_expression "((local_2bc->_flags & 0x20) != 0)" ( (binary_expression "(local_2bc->_flags & 0x20) != 0" (parenthesized_expression "(local_2bc->_flags & 0x20)" ( (binary_expression "local_2bc->_flags & 0x20" (field_expression "local_2bc->_flags" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,file);\n    piVar7 = __errno_location();\n    _Var9 = false;\n    error(0,*piVar7,&DAT_0001a2f2,pcVar6);\n    if (bVar15 != bVar13) {\n      rpl_fclose((FILE *)local_2bc);\n    }\n    goto LAB_00011b49;\n  }" { (expression_statement "pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,file);" (assignment_expression "pcVar6 = quotearg_n_style_colon(0,shell_escape_quoting_style,file)" identifier = (call_expression "quotearg_n_style_colon(0,shell_escape_quoting_style,file)" identifier (argument_list "(0,shell_escape_quoting_style,file)" ( number_literal , identifier , identifier )))) ;) (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "_Var9 = false;" (assignment_expression "_Var9 = false" identifier = false) ;) (expression_statement "error(0,*piVar7,&DAT_0001a2f2,pcVar6);" (call_expression "error(0,*piVar7,&DAT_0001a2f2,pcVar6)" identifier (argument_list "(0,*piVar7,&DAT_0001a2f2,pcVar6)" ( number_literal , (pointer_expression "*piVar7" * identifier) , (pointer_expression "&DAT_0001a2f2" & identifier) , identifier ))) ;) (if_statement "if (bVar15 != bVar13) {\n      rpl_fclose((FILE *)local_2bc);\n    }" if (parenthesized_expression "(bVar15 != bVar13)" ( (binary_expression "bVar15 != bVar13" identifier != identifier) )) (compound_statement "{\n      rpl_fclose((FILE *)local_2bc);\n    }" { (expression_statement "rpl_fclose((FILE *)local_2bc);" (call_expression "rpl_fclose((FILE *)local_2bc)" identifier (argument_list "((FILE *)local_2bc)" ( (cast_expression "(FILE *)local_2bc" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) })) (goto_statement "goto LAB_00011b49;" goto statement_identifier ;) }))) (if_statement "if (bVar15 != bVar13) {\n    iVar5 = rpl_fclose((FILE *)local_2bc);\n    if (iVar5 != 0) goto LAB_00011bb2;\n  }" if (parenthesized_expression "(bVar15 != bVar13)" ( (binary_expression "bVar15 != bVar13" identifier != identifier) )) (compound_statement "{\n    iVar5 = rpl_fclose((FILE *)local_2bc);\n    if (iVar5 != 0) goto LAB_00011bb2;\n  }" { (expression_statement "iVar5 = rpl_fclose((FILE *)local_2bc);" (assignment_expression "iVar5 = rpl_fclose((FILE *)local_2bc)" identifier = (call_expression "rpl_fclose((FILE *)local_2bc)" identifier (argument_list "((FILE *)local_2bc)" ( (cast_expression "(FILE *)local_2bc" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (iVar5 != 0) goto LAB_00011bb2;" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00011bb2;" goto statement_identifier ;)) })) (expression_statement "pcVar6 = human_readable(CONCAT44(iVar8,uVar12),hbuf,0,1,0x400);" (assignment_expression "pcVar6 = human_readable(CONCAT44(iVar8,uVar12),hbuf,0,1,0x400)" identifier = (call_expression "human_readable(CONCAT44(iVar8,uVar12),hbuf,0,1,0x400)" identifier (argument_list "(CONCAT44(iVar8,uVar12),hbuf,0,1,0x400)" ( (call_expression "CONCAT44(iVar8,uVar12)" identifier (argument_list "(iVar8,uVar12)" ( identifier , identifier ))) , identifier , number_literal , number_literal , number_literal )))) ;) (expression_statement "__printf_chk(1,"%05d %5s",uVar10,pcVar6);" (call_expression "__printf_chk(1,"%05d %5s",uVar10,pcVar6)" identifier (argument_list "(1,"%05d %5s",uVar10,pcVar6)" ( number_literal , (string_literal ""%05d %5s"" " string_content ") , identifier , identifier ))) ;) (if_statement "if (1 < print_name) {\n    __printf_chk(1,&DAT_0001a2f1,file,pcVar6);\n  }" if (parenthesized_expression "(1 < print_name)" ( (binary_expression "1 < print_name" number_literal < identifier) )) (compound_statement "{\n    __printf_chk(1,&DAT_0001a2f1,file,pcVar6);\n  }" { (expression_statement "__printf_chk(1,&DAT_0001a2f1,file,pcVar6);" (call_expression "__printf_chk(1,&DAT_0001a2f1,file,pcVar6)" identifier (argument_list "(1,&DAT_0001a2f1,file,pcVar6)" ( number_literal , (pointer_expression "&DAT_0001a2f1" & identifier) , identifier , identifier ))) ;) })) (expression_statement "p_Var2 = *(_IO_FILE **)PTR_stdout_0001dfd4;" (assignment_expression "p_Var2 = *(_IO_FILE **)PTR_stdout_0001dfd4" identifier = (pointer_expression "*(_IO_FILE **)PTR_stdout_0001dfd4" * (cast_expression "(_IO_FILE **)PTR_stdout_0001dfd4" ( (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    _Var9 = true;\n    p_Var2->_IO_write_ptr = pcVar6 + 1;\n    *pcVar6 = '\n';\n  }\n  else {\n    _Var9 = true;\n    __overflow(p_Var2,10);\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    _Var9 = true;\n    p_Var2->_IO_write_ptr = pcVar6 + 1;\n    *pcVar6 = '\n';\n  }" { (expression_statement "_Var9 = true;" (assignment_expression "_Var9 = true" identifier = true) ;) (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 = '\n';" (assignment_expression "*pcVar6 = '\n'" (pointer_expression "*pcVar6" * identifier) = (char_literal "'\n'" ' escape_sequence ')) ;) }) (else_clause "else {\n    _Var9 = true;\n    __overflow(p_Var2,10);\n  }" else (compound_statement "{\n    _Var9 = true;\n    __overflow(p_Var2,10);\n  }" { (expression_statement "_Var9 = true;" (assignment_expression "_Var9 = true" identifier = true) ;) (expression_statement "__overflow(p_Var2,10);" (call_expression "__overflow(p_Var2,10)" identifier (argument_list "(p_Var2,10)" ( identifier , number_literal ))) ;) }))) (goto_statement "goto LAB_00011b49;" goto statement_identifier ;) })))
(translation_unit "undefined4 FUN_000119f0(byte *param_1,int param_2)\n\n{\n  _IO_FILE *p_Var1;\n  char *pcVar2;\n  byte *pbVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int *piVar7;\n  int iVar8;\n  uint uVar9;\n  undefined4 uVar10;\n  byte *pbVar11;\n  uint uVar12;\n  int in_GS_OFFSET;\n  bool bVar13;\n  bool bVar14;\n  bool bVar15;\n  _IO_FILE *local_2bc;\n  byte *local_2b8;\n  undefined1 local_2ac [652];\n  int local_20;\n  undefined4 uStack_14;\n  \n  iVar8 = 2;\n  uStack_14 = 0x119fe;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar13 = false;\n  bVar15 = true;\n  pbVar3 = param_1;\n  pbVar11 = &DAT_0001a279;\n  do {\n    if (iVar8 == 0) break;\n    iVar8 = iVar8 + -1;\n    bVar13 = *pbVar3 < *pbVar11;\n    bVar15 = *pbVar3 == *pbVar11;\n    pbVar3 = pbVar3 + 1;\n    pbVar11 = pbVar11 + 1;\n  } while (bVar15);\n  bVar15 = !bVar13 && !bVar15;\n  if (bVar15 == bVar13) {\n    DAT_0001e188 = 1;\n    local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0;\nLAB_00011a52:\n    iVar8 = 0;\n    uVar9 = 0;\n    FUN_000120d0(local_2bc,2);\n    local_2b8 = (byte *)local_2bc->_IO_read_end;\n    pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n    uVar12 = 0;\n    do {\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff;\n    } while( true );\n  }\n  local_2bc = fopen64((char *)param_1,"r");\n  if (local_2bc != (FILE *)0x0) goto LAB_00011a52;\nLAB_00011bb2:\n  uVar6 = FUN_000159a0(0,3,param_1);\n  piVar7 = __errno_location();\n  uVar10 = 0;\n  error(0,*piVar7,&DAT_0001a2f2,uVar6);\nLAB_00011b49:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar10;\n  }\n                    \n  FUN_00018f70();\ncode_r0x00011ac3:\n  if ((local_2bc->_flags & 0x20) != 0) {\n    uVar6 = FUN_000159a0(0,3,param_1);\n    piVar7 = __errno_location();\n    uVar10 = 0;\n    error(0,*piVar7,&DAT_0001a2f2,uVar6);\n    if (bVar15 != bVar13) {\n      FUN_00017360(local_2bc);\n    }\n    goto LAB_00011b49;\n  }\n  if (bVar15 != bVar13) {\n    iVar5 = FUN_00017360(local_2bc);\n    if (iVar5 != 0) goto LAB_00011bb2;\n  }\n  uVar6 = FUN_00012110(uVar12,iVar8,local_2ac,0,1,0,0x400,0);\n  __printf_chk(1,"%05d %5s",uVar9,uVar6);\n  if (1 < param_2) {\n    __printf_chk(1,&DAT_0001a2f1,param_1,uVar6);\n  }\n  p_Var1 = *(_IO_FILE **)PTR_stdout_0001dfd4;\n  pcVar2 = p_Var1->_IO_write_ptr;\n  if (pcVar2 < p_Var1->_IO_write_end) {\n    uVar10 = 1;\n    p_Var1->_IO_write_ptr = pcVar2 + 1;\n    *pcVar2 = '\n';\n  }\n  else {\n    uVar10 = 1;\n    __overflow(p_Var1,10);\n  }\n  goto LAB_00011b49;\n}\n\n" (function_definition "undefined4 FUN_000119f0(byte *param_1,int param_2)\n\n{\n  _IO_FILE *p_Var1;\n  char *pcVar2;\n  byte *pbVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int *piVar7;\n  int iVar8;\n  uint uVar9;\n  undefined4 uVar10;\n  byte *pbVar11;\n  uint uVar12;\n  int in_GS_OFFSET;\n  bool bVar13;\n  bool bVar14;\n  bool bVar15;\n  _IO_FILE *local_2bc;\n  byte *local_2b8;\n  undefined1 local_2ac [652];\n  int local_20;\n  undefined4 uStack_14;\n  \n  iVar8 = 2;\n  uStack_14 = 0x119fe;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar13 = false;\n  bVar15 = true;\n  pbVar3 = param_1;\n  pbVar11 = &DAT_0001a279;\n  do {\n    if (iVar8 == 0) break;\n    iVar8 = iVar8 + -1;\n    bVar13 = *pbVar3 < *pbVar11;\n    bVar15 = *pbVar3 == *pbVar11;\n    pbVar3 = pbVar3 + 1;\n    pbVar11 = pbVar11 + 1;\n  } while (bVar15);\n  bVar15 = !bVar13 && !bVar15;\n  if (bVar15 == bVar13) {\n    DAT_0001e188 = 1;\n    local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0;\nLAB_00011a52:\n    iVar8 = 0;\n    uVar9 = 0;\n    FUN_000120d0(local_2bc,2);\n    local_2b8 = (byte *)local_2bc->_IO_read_end;\n    pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n    uVar12 = 0;\n    do {\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff;\n    } while( true );\n  }\n  local_2bc = fopen64((char *)param_1,"r");\n  if (local_2bc != (FILE *)0x0) goto LAB_00011a52;\nLAB_00011bb2:\n  uVar6 = FUN_000159a0(0,3,param_1);\n  piVar7 = __errno_location();\n  uVar10 = 0;\n  error(0,*piVar7,&DAT_0001a2f2,uVar6);\nLAB_00011b49:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar10;\n  }\n                    \n  FUN_00018f70();\ncode_r0x00011ac3:\n  if ((local_2bc->_flags & 0x20) != 0) {\n    uVar6 = FUN_000159a0(0,3,param_1);\n    piVar7 = __errno_location();\n    uVar10 = 0;\n    error(0,*piVar7,&DAT_0001a2f2,uVar6);\n    if (bVar15 != bVar13) {\n      FUN_00017360(local_2bc);\n    }\n    goto LAB_00011b49;\n  }\n  if (bVar15 != bVar13) {\n    iVar5 = FUN_00017360(local_2bc);\n    if (iVar5 != 0) goto LAB_00011bb2;\n  }\n  uVar6 = FUN_00012110(uVar12,iVar8,local_2ac,0,1,0,0x400,0);\n  __printf_chk(1,"%05d %5s",uVar9,uVar6);\n  if (1 < param_2) {\n    __printf_chk(1,&DAT_0001a2f1,param_1,uVar6);\n  }\n  p_Var1 = *(_IO_FILE **)PTR_stdout_0001dfd4;\n  pcVar2 = p_Var1->_IO_write_ptr;\n  if (pcVar2 < p_Var1->_IO_write_end) {\n    uVar10 = 1;\n    p_Var1->_IO_write_ptr = pcVar2 + 1;\n    *pcVar2 = '\n';\n  }\n  else {\n    uVar10 = 1;\n    __overflow(p_Var1,10);\n  }\n  goto LAB_00011b49;\n}" type_identifier (function_declarator "FUN_000119f0(byte *param_1,int param_2)" identifier (parameter_list "(byte *param_1,int param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  _IO_FILE *p_Var1;\n  char *pcVar2;\n  byte *pbVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int *piVar7;\n  int iVar8;\n  uint uVar9;\n  undefined4 uVar10;\n  byte *pbVar11;\n  uint uVar12;\n  int in_GS_OFFSET;\n  bool bVar13;\n  bool bVar14;\n  bool bVar15;\n  _IO_FILE *local_2bc;\n  byte *local_2b8;\n  undefined1 local_2ac [652];\n  int local_20;\n  undefined4 uStack_14;\n  \n  iVar8 = 2;\n  uStack_14 = 0x119fe;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar13 = false;\n  bVar15 = true;\n  pbVar3 = param_1;\n  pbVar11 = &DAT_0001a279;\n  do {\n    if (iVar8 == 0) break;\n    iVar8 = iVar8 + -1;\n    bVar13 = *pbVar3 < *pbVar11;\n    bVar15 = *pbVar3 == *pbVar11;\n    pbVar3 = pbVar3 + 1;\n    pbVar11 = pbVar11 + 1;\n  } while (bVar15);\n  bVar15 = !bVar13 && !bVar15;\n  if (bVar15 == bVar13) {\n    DAT_0001e188 = 1;\n    local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0;\nLAB_00011a52:\n    iVar8 = 0;\n    uVar9 = 0;\n    FUN_000120d0(local_2bc,2);\n    local_2b8 = (byte *)local_2bc->_IO_read_end;\n    pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n    uVar12 = 0;\n    do {\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff;\n    } while( true );\n  }\n  local_2bc = fopen64((char *)param_1,"r");\n  if (local_2bc != (FILE *)0x0) goto LAB_00011a52;\nLAB_00011bb2:\n  uVar6 = FUN_000159a0(0,3,param_1);\n  piVar7 = __errno_location();\n  uVar10 = 0;\n  error(0,*piVar7,&DAT_0001a2f2,uVar6);\nLAB_00011b49:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar10;\n  }\n                    \n  FUN_00018f70();\ncode_r0x00011ac3:\n  if ((local_2bc->_flags & 0x20) != 0) {\n    uVar6 = FUN_000159a0(0,3,param_1);\n    piVar7 = __errno_location();\n    uVar10 = 0;\n    error(0,*piVar7,&DAT_0001a2f2,uVar6);\n    if (bVar15 != bVar13) {\n      FUN_00017360(local_2bc);\n    }\n    goto LAB_00011b49;\n  }\n  if (bVar15 != bVar13) {\n    iVar5 = FUN_00017360(local_2bc);\n    if (iVar5 != 0) goto LAB_00011bb2;\n  }\n  uVar6 = FUN_00012110(uVar12,iVar8,local_2ac,0,1,0,0x400,0);\n  __printf_chk(1,"%05d %5s",uVar9,uVar6);\n  if (1 < param_2) {\n    __printf_chk(1,&DAT_0001a2f1,param_1,uVar6);\n  }\n  p_Var1 = *(_IO_FILE **)PTR_stdout_0001dfd4;\n  pcVar2 = p_Var1->_IO_write_ptr;\n  if (pcVar2 < p_Var1->_IO_write_end) {\n    uVar10 = 1;\n    p_Var1->_IO_write_ptr = pcVar2 + 1;\n    *pcVar2 = '\n';\n  }\n  else {\n    uVar10 = 1;\n    __overflow(p_Var1,10);\n  }\n  goto LAB_00011b49;\n}" { (declaration "_IO_FILE *p_Var1;" type_identifier (pointer_declarator "*p_Var1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "byte *pbVar11;" type_identifier (pointer_declarator "*pbVar11" * identifier) ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar13;" primitive_type identifier ;) (declaration "bool bVar14;" primitive_type identifier ;) (declaration "bool bVar15;" primitive_type identifier ;) (declaration "_IO_FILE *local_2bc;" type_identifier (pointer_declarator "*local_2bc" * identifier) ;) (declaration "byte *local_2b8;" type_identifier (pointer_declarator "*local_2b8" * identifier) ;) (declaration "undefined1 local_2ac [652];" type_identifier (array_declarator "local_2ac [652]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "iVar8 = 2;" (assignment_expression "iVar8 = 2" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x119fe;" (assignment_expression "uStack_14 = 0x119fe" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "bVar13 = false;" (assignment_expression "bVar13 = false" identifier = false) ;) (expression_statement "bVar15 = true;" (assignment_expression "bVar15 = true" identifier = true) ;) (expression_statement "pbVar3 = param_1;" (assignment_expression "pbVar3 = param_1" identifier = identifier) ;) (expression_statement "pbVar11 = &DAT_0001a279;" (assignment_expression "pbVar11 = &DAT_0001a279" identifier = (pointer_expression "&DAT_0001a279" & identifier)) ;) (do_statement "do {\n    if (iVar8 == 0) break;\n    iVar8 = iVar8 + -1;\n    bVar13 = *pbVar3 < *pbVar11;\n    bVar15 = *pbVar3 == *pbVar11;\n    pbVar3 = pbVar3 + 1;\n    pbVar11 = pbVar11 + 1;\n  } while (bVar15);" do (compound_statement "{\n    if (iVar8 == 0) break;\n    iVar8 = iVar8 + -1;\n    bVar13 = *pbVar3 < *pbVar11;\n    bVar15 = *pbVar3 == *pbVar11;\n    pbVar3 = pbVar3 + 1;\n    pbVar11 = pbVar11 + 1;\n  }" { (if_statement "if (iVar8 == 0) break;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (expression_statement "bVar13 = *pbVar3 < *pbVar11;" (assignment_expression "bVar13 = *pbVar3 < *pbVar11" identifier = (binary_expression "*pbVar3 < *pbVar11" (pointer_expression "*pbVar3" * identifier) < (pointer_expression "*pbVar11" * identifier))) ;) (expression_statement "bVar15 = *pbVar3 == *pbVar11;" (assignment_expression "bVar15 = *pbVar3 == *pbVar11" identifier = (binary_expression "*pbVar3 == *pbVar11" (pointer_expression "*pbVar3" * identifier) == (pointer_expression "*pbVar11" * identifier))) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "pbVar11 = pbVar11 + 1;" (assignment_expression "pbVar11 = pbVar11 + 1" identifier = (binary_expression "pbVar11 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar15)" ( identifier )) ;) (expression_statement "bVar15 = !bVar13 && !bVar15;" (assignment_expression "bVar15 = !bVar13 && !bVar15" identifier = (binary_expression "!bVar13 && !bVar15" (unary_expression "!bVar13" ! identifier) && (unary_expression "!bVar15" ! identifier))) ;) (if_statement "if (bVar15 == bVar13) {\n    DAT_0001e188 = 1;\n    local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0;\nLAB_00011a52:\n    iVar8 = 0;\n    uVar9 = 0;\n    FUN_000120d0(local_2bc,2);\n    local_2b8 = (byte *)local_2bc->_IO_read_end;\n    pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n    uVar12 = 0;\n    do {\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff;\n    } while( true );\n  }" if (parenthesized_expression "(bVar15 == bVar13)" ( (binary_expression "bVar15 == bVar13" identifier == identifier) )) (compound_statement "{\n    DAT_0001e188 = 1;\n    local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0;\nLAB_00011a52:\n    iVar8 = 0;\n    uVar9 = 0;\n    FUN_000120d0(local_2bc,2);\n    local_2b8 = (byte *)local_2bc->_IO_read_end;\n    pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n    uVar12 = 0;\n    do {\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff;\n    } while( true );\n  }" { (expression_statement "DAT_0001e188 = 1;" (assignment_expression "DAT_0001e188 = 1" identifier = number_literal) ;) (expression_statement "local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0;" (assignment_expression "local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0" identifier = (pointer_expression "*(_IO_FILE **)PTR_stdin_0001dfd0" * (cast_expression "(_IO_FILE **)PTR_stdin_0001dfd0" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (labeled_statement "LAB_00011a52:\n    iVar8 = 0;" statement_identifier : (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;)) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (expression_statement "FUN_000120d0(local_2bc,2);" (call_expression "FUN_000120d0(local_2bc,2)" identifier (argument_list "(local_2bc,2)" ( identifier , number_literal ))) ;) (expression_statement "local_2b8 = (byte *)local_2bc->_IO_read_end;" (assignment_expression "local_2b8 = (byte *)local_2bc->_IO_read_end" identifier = (cast_expression "(byte *)local_2bc->_IO_read_end" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "local_2bc->_IO_read_end" identifier -> field_identifier))) ;) (expression_statement "pbVar3 = (byte *)local_2bc->_IO_read_ptr;" (assignment_expression "pbVar3 = (byte *)local_2bc->_IO_read_ptr" identifier = (cast_expression "(byte *)local_2bc->_IO_read_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "local_2bc->_IO_read_ptr" identifier -> field_identifier))) ;) (expression_statement "uVar12 = 0;" (assignment_expression "uVar12 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff;\n    } while( true );" do (compound_statement "{\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff;\n    }" { (if_statement "if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }" if (parenthesized_expression "(pbVar3 < local_2b8)" ( (binary_expression "pbVar3 < local_2b8" identifier < identifier) )) (compound_statement "{\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }" { (expression_statement "local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);" (assignment_expression "local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1)" (field_expression "local_2bc->_IO_read_ptr" identifier -> field_identifier) = (cast_expression "(char *)(pbVar3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 1)" ( (binary_expression "pbVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar4 = (uint)*pbVar3;" (assignment_expression "uVar4 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }" else (compound_statement "{\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }" { (expression_statement "uVar4 = __uflow(local_2bc);" (assignment_expression "uVar4 = __uflow(local_2bc)" identifier = (call_expression "__uflow(local_2bc)" identifier (argument_list "(local_2bc)" ( identifier )))) ;) (if_statement "if (uVar4 == 0xffffffff) goto code_r0x00011ac3;" if (parenthesized_expression "(uVar4 == 0xffffffff)" ( (binary_expression "uVar4 == 0xffffffff" identifier == number_literal) )) (goto_statement "goto code_r0x00011ac3;" goto statement_identifier ;)) (expression_statement "local_2b8 = (byte *)local_2bc->_IO_read_end;" (assignment_expression "local_2b8 = (byte *)local_2bc->_IO_read_end" identifier = (cast_expression "(byte *)local_2bc->_IO_read_end" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "local_2bc->_IO_read_end" identifier -> field_identifier))) ;) (expression_statement "pbVar3 = (byte *)local_2bc->_IO_read_ptr;" (assignment_expression "pbVar3 = (byte *)local_2bc->_IO_read_ptr" identifier = (cast_expression "(byte *)local_2bc->_IO_read_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "local_2bc->_IO_read_ptr" identifier -> field_identifier))) ;) }))) (expression_statement "bVar14 = 0xfffffffe < uVar12;" (assignment_expression "bVar14 = 0xfffffffe < uVar12" identifier = (binary_expression "0xfffffffe < uVar12" number_literal < identifier)) ;) (expression_statement "uVar12 = uVar12 + 1;" (assignment_expression "uVar12 = uVar12 + 1" identifier = (binary_expression "uVar12 + 1" identifier + number_literal)) ;) (expression_statement "iVar8 = iVar8 + (uint)bVar14;" (assignment_expression "iVar8 = iVar8 + (uint)bVar14" identifier = (binary_expression "iVar8 + (uint)bVar14" identifier + (cast_expression "(uint)bVar14" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (expression_statement "uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff;" (assignment_expression "uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff" identifier = (binary_expression "(uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff" (binary_expression "(uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4" (binary_expression "(uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1)" (binary_expression "(uVar9 & 1) * 0x8000" (parenthesized_expression "(uVar9 & 1)" ( (binary_expression "uVar9 & 1" identifier & number_literal) )) * number_literal) + (parenthesized_expression "((int)uVar9 >> 1)" ( (binary_expression "(int)uVar9 >> 1" (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) + identifier) & number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (expression_statement "local_2bc = fopen64((char *)param_1,"r");" (assignment_expression "local_2bc = fopen64((char *)param_1,"r")" identifier = (call_expression "fopen64((char *)param_1,"r")" identifier (argument_list "((char *)param_1,"r")" ( (cast_expression "(char *)param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""r"" " string_content ") )))) ;) (if_statement "if (local_2bc != (FILE *)0x0) goto LAB_00011a52;" if (parenthesized_expression "(local_2bc != (FILE *)0x0)" ( (binary_expression "local_2bc != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00011a52;" goto statement_identifier ;)) (labeled_statement "LAB_00011bb2:\n  uVar6 = FUN_000159a0(0,3,param_1);" statement_identifier : (expression_statement "uVar6 = FUN_000159a0(0,3,param_1);" (assignment_expression "uVar6 = FUN_000159a0(0,3,param_1)" identifier = (call_expression "FUN_000159a0(0,3,param_1)" identifier (argument_list "(0,3,param_1)" ( number_literal , number_literal , identifier )))) ;)) (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) (expression_statement "error(0,*piVar7,&DAT_0001a2f2,uVar6);" (call_expression "error(0,*piVar7,&DAT_0001a2f2,uVar6)" identifier (argument_list "(0,*piVar7,&DAT_0001a2f2,uVar6)" ( number_literal , (pointer_expression "*piVar7" * identifier) , (pointer_expression "&DAT_0001a2f2" & identifier) , identifier ))) ;) (labeled_statement "LAB_00011b49:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar10;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar10;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar10;\n  }" { (return_statement "return uVar10;" return identifier ;) }))) (expression_statement "FUN_00018f70();" (call_expression "FUN_00018f70()" identifier (argument_list "()" ( ))) ;) (labeled_statement "code_r0x00011ac3:\n  if ((local_2bc->_flags & 0x20) != 0) {\n    uVar6 = FUN_000159a0(0,3,param_1);\n    piVar7 = __errno_location();\n    uVar10 = 0;\n    error(0,*piVar7,&DAT_0001a2f2,uVar6);\n    if (bVar15 != bVar13) {\n      FUN_00017360(local_2bc);\n    }\n    goto LAB_00011b49;\n  }" statement_identifier : (if_statement "if ((local_2bc->_flags & 0x20) != 0) {\n    uVar6 = FUN_000159a0(0,3,param_1);\n    piVar7 = __errno_location();\n    uVar10 = 0;\n    error(0,*piVar7,&DAT_0001a2f2,uVar6);\n    if (bVar15 != bVar13) {\n      FUN_00017360(local_2bc);\n    }\n    goto LAB_00011b49;\n  }" if (parenthesized_expression "((local_2bc->_flags & 0x20) != 0)" ( (binary_expression "(local_2bc->_flags & 0x20) != 0" (parenthesized_expression "(local_2bc->_flags & 0x20)" ( (binary_expression "local_2bc->_flags & 0x20" (field_expression "local_2bc->_flags" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar6 = FUN_000159a0(0,3,param_1);\n    piVar7 = __errno_location();\n    uVar10 = 0;\n    error(0,*piVar7,&DAT_0001a2f2,uVar6);\n    if (bVar15 != bVar13) {\n      FUN_00017360(local_2bc);\n    }\n    goto LAB_00011b49;\n  }" { (expression_statement "uVar6 = FUN_000159a0(0,3,param_1);" (assignment_expression "uVar6 = FUN_000159a0(0,3,param_1)" identifier = (call_expression "FUN_000159a0(0,3,param_1)" identifier (argument_list "(0,3,param_1)" ( number_literal , number_literal , identifier )))) ;) (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) (expression_statement "error(0,*piVar7,&DAT_0001a2f2,uVar6);" (call_expression "error(0,*piVar7,&DAT_0001a2f2,uVar6)" identifier (argument_list "(0,*piVar7,&DAT_0001a2f2,uVar6)" ( number_literal , (pointer_expression "*piVar7" * identifier) , (pointer_expression "&DAT_0001a2f2" & identifier) , identifier ))) ;) (if_statement "if (bVar15 != bVar13) {\n      FUN_00017360(local_2bc);\n    }" if (parenthesized_expression "(bVar15 != bVar13)" ( (binary_expression "bVar15 != bVar13" identifier != identifier) )) (compound_statement "{\n      FUN_00017360(local_2bc);\n    }" { (expression_statement "FUN_00017360(local_2bc);" (call_expression "FUN_00017360(local_2bc)" identifier (argument_list "(local_2bc)" ( identifier ))) ;) })) (goto_statement "goto LAB_00011b49;" goto statement_identifier ;) }))) (if_statement "if (bVar15 != bVar13) {\n    iVar5 = FUN_00017360(local_2bc);\n    if (iVar5 != 0) goto LAB_00011bb2;\n  }" if (parenthesized_expression "(bVar15 != bVar13)" ( (binary_expression "bVar15 != bVar13" identifier != identifier) )) (compound_statement "{\n    iVar5 = FUN_00017360(local_2bc);\n    if (iVar5 != 0) goto LAB_00011bb2;\n  }" { (expression_statement "iVar5 = FUN_00017360(local_2bc);" (assignment_expression "iVar5 = FUN_00017360(local_2bc)" identifier = (call_expression "FUN_00017360(local_2bc)" identifier (argument_list "(local_2bc)" ( identifier )))) ;) (if_statement "if (iVar5 != 0) goto LAB_00011bb2;" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00011bb2;" goto statement_identifier ;)) })) (expression_statement "uVar6 = FUN_00012110(uVar12,iVar8,local_2ac,0,1,0,0x400,0);" (assignment_expression "uVar6 = FUN_00012110(uVar12,iVar8,local_2ac,0,1,0,0x400,0)" identifier = (call_expression "FUN_00012110(uVar12,iVar8,local_2ac,0,1,0,0x400,0)" identifier (argument_list "(uVar12,iVar8,local_2ac,0,1,0,0x400,0)" ( identifier , identifier , identifier , number_literal , number_literal , number_literal , number_literal , number_literal )))) ;) (expression_statement "__printf_chk(1,"%05d %5s",uVar9,uVar6);" (call_expression "__printf_chk(1,"%05d %5s",uVar9,uVar6)" identifier (argument_list "(1,"%05d %5s",uVar9,uVar6)" ( number_literal , (string_literal ""%05d %5s"" " string_content ") , identifier , identifier ))) ;) (if_statement "if (1 < param_2) {\n    __printf_chk(1,&DAT_0001a2f1,param_1,uVar6);\n  }" if (parenthesized_expression "(1 < param_2)" ( (binary_expression "1 < param_2" number_literal < identifier) )) (compound_statement "{\n    __printf_chk(1,&DAT_0001a2f1,param_1,uVar6);\n  }" { (expression_statement "__printf_chk(1,&DAT_0001a2f1,param_1,uVar6);" (call_expression "__printf_chk(1,&DAT_0001a2f1,param_1,uVar6)" identifier (argument_list "(1,&DAT_0001a2f1,param_1,uVar6)" ( number_literal , (pointer_expression "&DAT_0001a2f1" & identifier) , identifier , identifier ))) ;) })) (expression_statement "p_Var1 = *(_IO_FILE **)PTR_stdout_0001dfd4;" (assignment_expression "p_Var1 = *(_IO_FILE **)PTR_stdout_0001dfd4" identifier = (pointer_expression "*(_IO_FILE **)PTR_stdout_0001dfd4" * (cast_expression "(_IO_FILE **)PTR_stdout_0001dfd4" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pcVar2 = p_Var1->_IO_write_ptr;" (assignment_expression "pcVar2 = p_Var1->_IO_write_ptr" identifier = (field_expression "p_Var1->_IO_write_ptr" identifier -> field_identifier)) ;) (if_statement "if (pcVar2 < p_Var1->_IO_write_end) {\n    uVar10 = 1;\n    p_Var1->_IO_write_ptr = pcVar2 + 1;\n    *pcVar2 = '\n';\n  }\n  else {\n    uVar10 = 1;\n    __overflow(p_Var1,10);\n  }" if (parenthesized_expression "(pcVar2 < p_Var1->_IO_write_end)" ( (binary_expression "pcVar2 < p_Var1->_IO_write_end" identifier < (field_expression "p_Var1->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n    uVar10 = 1;\n    p_Var1->_IO_write_ptr = pcVar2 + 1;\n    *pcVar2 = '\n';\n  }" { (expression_statement "uVar10 = 1;" (assignment_expression "uVar10 = 1" identifier = number_literal) ;) (expression_statement "p_Var1->_IO_write_ptr = pcVar2 + 1;" (assignment_expression "p_Var1->_IO_write_ptr = pcVar2 + 1" (field_expression "p_Var1->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar2 = '\n';" (assignment_expression "*pcVar2 = '\n'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\n'" ' escape_sequence ')) ;) }) (else_clause "else {\n    uVar10 = 1;\n    __overflow(p_Var1,10);\n  }" else (compound_statement "{\n    uVar10 = 1;\n    __overflow(p_Var1,10);\n  }" { (expression_statement "uVar10 = 1;" (assignment_expression "uVar10 = 1" identifier = number_literal) ;) (expression_statement "__overflow(p_Var1,10);" (call_expression "__overflow(p_Var1,10)" identifier (argument_list "(p_Var1,10)" ( identifier , number_literal ))) ;) }))) (goto_statement "goto LAB_00011b49;" goto statement_identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE 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 (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (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 IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( 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))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (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)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (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 ;)) (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 = (binary_expression LIT < IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) * LIT) + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) + IDENT) & LIT)) ;) }) while (parenthesized_expression ( BOOL )) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT , IDENT )))) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression * IDENT) , (pointer_expression & IDENT) , IDENT ))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (field_expression IDENT -> field_identifier) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression * IDENT) , (pointer_expression & IDENT) , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (goto_statement goto statement_identifier ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (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 ;)) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT , LIT , LIT , LIT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) , IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) 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 IDENT = LIT) ;) (expression_statement (assignment_expression (field_expression IDENT -> field_identifier) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) }))) (goto_statement goto statement_identifier ;) })))
(function_definition "undefined4 FUN_000119f0(byte *param_1,int param_2)\n\n{\n  _IO_FILE *p_Var1;\n  char *pcVar2;\n  byte *pbVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int *piVar7;\n  int iVar8;\n  uint uVar9;\n  undefined4 uVar10;\n  byte *pbVar11;\n  uint uVar12;\n  int in_GS_OFFSET;\n  bool bVar13;\n  bool bVar14;\n  bool bVar15;\n  _IO_FILE *local_2bc;\n  byte *local_2b8;\n  undefined1 local_2ac [652];\n  int local_20;\n  undefined4 uStack_14;\n  \n  iVar8 = 2;\n  uStack_14 = 0x119fe;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar13 = false;\n  bVar15 = true;\n  pbVar3 = param_1;\n  pbVar11 = &DAT_0001a279;\n  do {\n    if (iVar8 == 0) break;\n    iVar8 = iVar8 + -1;\n    bVar13 = *pbVar3 < *pbVar11;\n    bVar15 = *pbVar3 == *pbVar11;\n    pbVar3 = pbVar3 + 1;\n    pbVar11 = pbVar11 + 1;\n  } while (bVar15);\n  bVar15 = !bVar13 && !bVar15;\n  if (bVar15 == bVar13) {\n    DAT_0001e188 = 1;\n    local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0;\nLAB_00011a52:\n    iVar8 = 0;\n    uVar9 = 0;\n    FUN_000120d0(local_2bc,2);\n    local_2b8 = (byte *)local_2bc->_IO_read_end;\n    pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n    uVar12 = 0;\n    do {\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff;\n    } while( true );\n  }\n  local_2bc = fopen64((char *)param_1,"r");\n  if (local_2bc != (FILE *)0x0) goto LAB_00011a52;\nLAB_00011bb2:\n  uVar6 = FUN_000159a0(0,3,param_1);\n  piVar7 = __errno_location();\n  uVar10 = 0;\n  error(0,*piVar7,&DAT_0001a2f2,uVar6);\nLAB_00011b49:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar10;\n  }\n                    \n  FUN_00018f70();\ncode_r0x00011ac3:\n  if ((local_2bc->_flags & 0x20) != 0) {\n    uVar6 = FUN_000159a0(0,3,param_1);\n    piVar7 = __errno_location();\n    uVar10 = 0;\n    error(0,*piVar7,&DAT_0001a2f2,uVar6);\n    if (bVar15 != bVar13) {\n      FUN_00017360(local_2bc);\n    }\n    goto LAB_00011b49;\n  }\n  if (bVar15 != bVar13) {\n    iVar5 = FUN_00017360(local_2bc);\n    if (iVar5 != 0) goto LAB_00011bb2;\n  }\n  uVar6 = FUN_00012110(uVar12,iVar8,local_2ac,0,1,0,0x400,0);\n  __printf_chk(1,"%05d %5s",uVar9,uVar6);\n  if (1 < param_2) {\n    __printf_chk(1,&DAT_0001a2f1,param_1,uVar6);\n  }\n  p_Var1 = *(_IO_FILE **)PTR_stdout_0001dfd4;\n  pcVar2 = p_Var1->_IO_write_ptr;\n  if (pcVar2 < p_Var1->_IO_write_end) {\n    uVar10 = 1;\n    p_Var1->_IO_write_ptr = pcVar2 + 1;\n    *pcVar2 = '\n';\n  }\n  else {\n    uVar10 = 1;\n    __overflow(p_Var1,10);\n  }\n  goto LAB_00011b49;\n}" (type_identifier "undefined4") (function_declarator "FUN_000119f0(byte *param_1,int param_2)" (identifier "FUN_000119f0") (parameter_list "(byte *param_1,int param_2)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  _IO_FILE *p_Var1;\n  char *pcVar2;\n  byte *pbVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int *piVar7;\n  int iVar8;\n  uint uVar9;\n  undefined4 uVar10;\n  byte *pbVar11;\n  uint uVar12;\n  int in_GS_OFFSET;\n  bool bVar13;\n  bool bVar14;\n  bool bVar15;\n  _IO_FILE *local_2bc;\n  byte *local_2b8;\n  undefined1 local_2ac [652];\n  int local_20;\n  undefined4 uStack_14;\n  \n  iVar8 = 2;\n  uStack_14 = 0x119fe;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  bVar13 = false;\n  bVar15 = true;\n  pbVar3 = param_1;\n  pbVar11 = &DAT_0001a279;\n  do {\n    if (iVar8 == 0) break;\n    iVar8 = iVar8 + -1;\n    bVar13 = *pbVar3 < *pbVar11;\n    bVar15 = *pbVar3 == *pbVar11;\n    pbVar3 = pbVar3 + 1;\n    pbVar11 = pbVar11 + 1;\n  } while (bVar15);\n  bVar15 = !bVar13 && !bVar15;\n  if (bVar15 == bVar13) {\n    DAT_0001e188 = 1;\n    local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0;\nLAB_00011a52:\n    iVar8 = 0;\n    uVar9 = 0;\n    FUN_000120d0(local_2bc,2);\n    local_2b8 = (byte *)local_2bc->_IO_read_end;\n    pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n    uVar12 = 0;\n    do {\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff;\n    } while( true );\n  }\n  local_2bc = fopen64((char *)param_1,"r");\n  if (local_2bc != (FILE *)0x0) goto LAB_00011a52;\nLAB_00011bb2:\n  uVar6 = FUN_000159a0(0,3,param_1);\n  piVar7 = __errno_location();\n  uVar10 = 0;\n  error(0,*piVar7,&DAT_0001a2f2,uVar6);\nLAB_00011b49:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar10;\n  }\n                    \n  FUN_00018f70();\ncode_r0x00011ac3:\n  if ((local_2bc->_flags & 0x20) != 0) {\n    uVar6 = FUN_000159a0(0,3,param_1);\n    piVar7 = __errno_location();\n    uVar10 = 0;\n    error(0,*piVar7,&DAT_0001a2f2,uVar6);\n    if (bVar15 != bVar13) {\n      FUN_00017360(local_2bc);\n    }\n    goto LAB_00011b49;\n  }\n  if (bVar15 != bVar13) {\n    iVar5 = FUN_00017360(local_2bc);\n    if (iVar5 != 0) goto LAB_00011bb2;\n  }\n  uVar6 = FUN_00012110(uVar12,iVar8,local_2ac,0,1,0,0x400,0);\n  __printf_chk(1,"%05d %5s",uVar9,uVar6);\n  if (1 < param_2) {\n    __printf_chk(1,&DAT_0001a2f1,param_1,uVar6);\n  }\n  p_Var1 = *(_IO_FILE **)PTR_stdout_0001dfd4;\n  pcVar2 = p_Var1->_IO_write_ptr;\n  if (pcVar2 < p_Var1->_IO_write_end) {\n    uVar10 = 1;\n    p_Var1->_IO_write_ptr = pcVar2 + 1;\n    *pcVar2 = '\n';\n  }\n  else {\n    uVar10 = 1;\n    __overflow(p_Var1,10);\n  }\n  goto LAB_00011b49;\n}" ({ "{") (declaration "_IO_FILE *p_Var1;" (type_identifier "_IO_FILE") (pointer_declarator "*p_Var1" (* "*") (identifier "p_Var1")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "undefined4 uVar10;" (type_identifier "undefined4") (identifier "uVar10") (; ";")) (declaration "byte *pbVar11;" (type_identifier "byte") (pointer_declarator "*pbVar11" (* "*") (identifier "pbVar11")) (; ";")) (declaration "uint uVar12;" (type_identifier "uint") (identifier "uVar12") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "bool bVar13;" (primitive_type "bool") (identifier "bVar13") (; ";")) (declaration "bool bVar14;" (primitive_type "bool") (identifier "bVar14") (; ";")) (declaration "bool bVar15;" (primitive_type "bool") (identifier "bVar15") (; ";")) (declaration "_IO_FILE *local_2bc;" (type_identifier "_IO_FILE") (pointer_declarator "*local_2bc" (* "*") (identifier "local_2bc")) (; ";")) (declaration "byte *local_2b8;" (type_identifier "byte") (pointer_declarator "*local_2b8" (* "*") (identifier "local_2b8")) (; ";")) (declaration "undefined1 local_2ac [652];" (type_identifier "undefined1") (array_declarator "local_2ac [652]" (identifier "local_2ac") ([ "[") (number_literal "652") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "iVar8 = 2;" (assignment_expression "iVar8 = 2" (identifier "iVar8") (= "=") (number_literal "2")) (; ";")) (expression_statement "uStack_14 = 0x119fe;" (assignment_expression "uStack_14 = 0x119fe" (identifier "uStack_14") (= "=") (number_literal "0x119fe")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "bVar13 = false;" (assignment_expression "bVar13 = false" (identifier "bVar13") (= "=") (false "false")) (; ";")) (expression_statement "bVar15 = true;" (assignment_expression "bVar15 = true" (identifier "bVar15") (= "=") (true "true")) (; ";")) (expression_statement "pbVar3 = param_1;" (assignment_expression "pbVar3 = param_1" (identifier "pbVar3") (= "=") (identifier "param_1")) (; ";")) (expression_statement "pbVar11 = &DAT_0001a279;" (assignment_expression "pbVar11 = &DAT_0001a279" (identifier "pbVar11") (= "=") (pointer_expression "&DAT_0001a279" (& "&") (identifier "DAT_0001a279"))) (; ";")) (do_statement "do {\n    if (iVar8 == 0) break;\n    iVar8 = iVar8 + -1;\n    bVar13 = *pbVar3 < *pbVar11;\n    bVar15 = *pbVar3 == *pbVar11;\n    pbVar3 = pbVar3 + 1;\n    pbVar11 = pbVar11 + 1;\n  } while (bVar15);" (do "do") (compound_statement "{\n    if (iVar8 == 0) break;\n    iVar8 = iVar8 + -1;\n    bVar13 = *pbVar3 < *pbVar11;\n    bVar15 = *pbVar3 == *pbVar11;\n    pbVar3 = pbVar3 + 1;\n    pbVar11 = pbVar11 + 1;\n  }" ({ "{") (if_statement "if (iVar8 == 0) break;" (if "if") (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + -1" (identifier "iVar8") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar13 = *pbVar3 < *pbVar11;" (assignment_expression "bVar13 = *pbVar3 < *pbVar11" (identifier "bVar13") (= "=") (binary_expression "*pbVar3 < *pbVar11" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (< "<") (pointer_expression "*pbVar11" (* "*") (identifier "pbVar11")))) (; ";")) (expression_statement "bVar15 = *pbVar3 == *pbVar11;" (assignment_expression "bVar15 = *pbVar3 == *pbVar11" (identifier "bVar15") (= "=") (binary_expression "*pbVar3 == *pbVar11" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (== "==") (pointer_expression "*pbVar11" (* "*") (identifier "pbVar11")))) (; ";")) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + 1" (identifier "pbVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar11 = pbVar11 + 1;" (assignment_expression "pbVar11 = pbVar11 + 1" (identifier "pbVar11") (= "=") (binary_expression "pbVar11 + 1" (identifier "pbVar11") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar15)" (( "(") (identifier "bVar15") () ")")) (; ";")) (expression_statement "bVar15 = !bVar13 && !bVar15;" (assignment_expression "bVar15 = !bVar13 && !bVar15" (identifier "bVar15") (= "=") (binary_expression "!bVar13 && !bVar15" (unary_expression "!bVar13" (! "!") (identifier "bVar13")) (&& "&&") (unary_expression "!bVar15" (! "!") (identifier "bVar15")))) (; ";")) (if_statement "if (bVar15 == bVar13) {\n    DAT_0001e188 = 1;\n    local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0;\nLAB_00011a52:\n    iVar8 = 0;\n    uVar9 = 0;\n    FUN_000120d0(local_2bc,2);\n    local_2b8 = (byte *)local_2bc->_IO_read_end;\n    pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n    uVar12 = 0;\n    do {\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff;\n    } while( true );\n  }" (if "if") (parenthesized_expression "(bVar15 == bVar13)" (( "(") (binary_expression "bVar15 == bVar13" (identifier "bVar15") (== "==") (identifier "bVar13")) () ")")) (compound_statement "{\n    DAT_0001e188 = 1;\n    local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0;\nLAB_00011a52:\n    iVar8 = 0;\n    uVar9 = 0;\n    FUN_000120d0(local_2bc,2);\n    local_2b8 = (byte *)local_2bc->_IO_read_end;\n    pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n    uVar12 = 0;\n    do {\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff;\n    } while( true );\n  }" ({ "{") (expression_statement "DAT_0001e188 = 1;" (assignment_expression "DAT_0001e188 = 1" (identifier "DAT_0001e188") (= "=") (number_literal "1")) (; ";")) (expression_statement "local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0;" (assignment_expression "local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0" (identifier "local_2bc") (= "=") (pointer_expression "*(_IO_FILE **)PTR_stdin_0001dfd0" (* "*") (cast_expression "(_IO_FILE **)PTR_stdin_0001dfd0" (( "(") (type_descriptor "_IO_FILE **" (type_identifier "_IO_FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stdin_0001dfd0")))) (; ";")) (labeled_statement "LAB_00011a52:\n    iVar8 = 0;" (statement_identifier "LAB_00011a52") (: ":") (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" (identifier "iVar8") (= "=") (number_literal "0")) (; ";"))) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" (identifier "uVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_000120d0(local_2bc,2);" (call_expression "FUN_000120d0(local_2bc,2)" (identifier "FUN_000120d0") (argument_list "(local_2bc,2)" (( "(") (identifier "local_2bc") (, ",") (number_literal "2") () ")"))) (; ";")) (expression_statement "local_2b8 = (byte *)local_2bc->_IO_read_end;" (assignment_expression "local_2b8 = (byte *)local_2bc->_IO_read_end" (identifier "local_2b8") (= "=") (cast_expression "(byte *)local_2bc->_IO_read_end" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (field_expression "local_2bc->_IO_read_end" (identifier "local_2bc") (-> "->") (field_identifier "_IO_read_end")))) (; ";")) (expression_statement "pbVar3 = (byte *)local_2bc->_IO_read_ptr;" (assignment_expression "pbVar3 = (byte *)local_2bc->_IO_read_ptr" (identifier "pbVar3") (= "=") (cast_expression "(byte *)local_2bc->_IO_read_ptr" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (field_expression "local_2bc->_IO_read_ptr" (identifier "local_2bc") (-> "->") (field_identifier "_IO_read_ptr")))) (; ";")) (expression_statement "uVar12 = 0;" (assignment_expression "uVar12 = 0" (identifier "uVar12") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff;\n    } while( true );" (do "do") (compound_statement "{\n      if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }\n      bVar14 = 0xfffffffe < uVar12;\n      uVar12 = uVar12 + 1;\n      iVar8 = iVar8 + (uint)bVar14;\n      uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff;\n    }" ({ "{") (if_statement "if (pbVar3 < local_2b8) {\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }\n      else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }" (if "if") (parenthesized_expression "(pbVar3 < local_2b8)" (( "(") (binary_expression "pbVar3 < local_2b8" (identifier "pbVar3") (< "<") (identifier "local_2b8")) () ")")) (compound_statement "{\n        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);\n        uVar4 = (uint)*pbVar3;\n        pbVar3 = pbVar3 + 1;\n      }" ({ "{") (expression_statement "local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);" (assignment_expression "local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1)" (field_expression "local_2bc->_IO_read_ptr" (identifier "local_2bc") (-> "->") (field_identifier "_IO_read_ptr")) (= "=") (cast_expression "(char *)(pbVar3 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar3 + 1)" (( "(") (binary_expression "pbVar3 + 1" (identifier "pbVar3") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "uVar4 = (uint)*pbVar3;" (assignment_expression "uVar4 = (uint)*pbVar3" (identifier "uVar4") (= "=") (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar3"))) (; ";")) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + 1" (identifier "pbVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }" (else "else") (compound_statement "{\n        uVar4 = __uflow(local_2bc);\n        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;\n        local_2b8 = (byte *)local_2bc->_IO_read_end;\n        pbVar3 = (byte *)local_2bc->_IO_read_ptr;\n      }" ({ "{") (expression_statement "uVar4 = __uflow(local_2bc);" (assignment_expression "uVar4 = __uflow(local_2bc)" (identifier "uVar4") (= "=") (call_expression "__uflow(local_2bc)" (identifier "__uflow") (argument_list "(local_2bc)" (( "(") (identifier "local_2bc") () ")")))) (; ";")) (if_statement "if (uVar4 == 0xffffffff) goto code_r0x00011ac3;" (if "if") (parenthesized_expression "(uVar4 == 0xffffffff)" (( "(") (binary_expression "uVar4 == 0xffffffff" (identifier "uVar4") (== "==") (number_literal "0xffffffff")) () ")")) (goto_statement "goto code_r0x00011ac3;" (goto "goto") (statement_identifier "code_r0x00011ac3") (; ";"))) (expression_statement "local_2b8 = (byte *)local_2bc->_IO_read_end;" (assignment_expression "local_2b8 = (byte *)local_2bc->_IO_read_end" (identifier "local_2b8") (= "=") (cast_expression "(byte *)local_2bc->_IO_read_end" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (field_expression "local_2bc->_IO_read_end" (identifier "local_2bc") (-> "->") (field_identifier "_IO_read_end")))) (; ";")) (expression_statement "pbVar3 = (byte *)local_2bc->_IO_read_ptr;" (assignment_expression "pbVar3 = (byte *)local_2bc->_IO_read_ptr" (identifier "pbVar3") (= "=") (cast_expression "(byte *)local_2bc->_IO_read_ptr" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (field_expression "local_2bc->_IO_read_ptr" (identifier "local_2bc") (-> "->") (field_identifier "_IO_read_ptr")))) (; ";")) (} "}")))) (expression_statement "bVar14 = 0xfffffffe < uVar12;" (assignment_expression "bVar14 = 0xfffffffe < uVar12" (identifier "bVar14") (= "=") (binary_expression "0xfffffffe < uVar12" (number_literal "0xfffffffe") (< "<") (identifier "uVar12"))) (; ";")) (expression_statement "uVar12 = uVar12 + 1;" (assignment_expression "uVar12 = uVar12 + 1" (identifier "uVar12") (= "=") (binary_expression "uVar12 + 1" (identifier "uVar12") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar8 = iVar8 + (uint)bVar14;" (assignment_expression "iVar8 = iVar8 + (uint)bVar14" (identifier "iVar8") (= "=") (binary_expression "iVar8 + (uint)bVar14" (identifier "iVar8") (+ "+") (cast_expression "(uint)bVar14" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar14")))) (; ";")) (expression_statement "uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff;" (assignment_expression "uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff" (identifier "uVar9") (= "=") (binary_expression "(uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff" (binary_expression "(uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4" (binary_expression "(uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1)" (binary_expression "(uVar9 & 1) * 0x8000" (parenthesized_expression "(uVar9 & 1)" (( "(") (binary_expression "uVar9 & 1" (identifier "uVar9") (& "&") (number_literal "1")) () ")")) (* "*") (number_literal "0x8000")) (+ "+") (parenthesized_expression "((int)uVar9 >> 1)" (( "(") (binary_expression "(int)uVar9 >> 1" (cast_expression "(int)uVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar9")) (>> ">>") (number_literal "1")) () ")"))) (+ "+") (identifier "uVar4")) (& "&") (number_literal "0xffff"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}"))) (expression_statement "local_2bc = fopen64((char *)param_1,"r");" (assignment_expression "local_2bc = fopen64((char *)param_1,"r")" (identifier "local_2bc") (= "=") (call_expression "fopen64((char *)param_1,"r")" (identifier "fopen64") (argument_list "((char *)param_1,"r")" (( "(") (cast_expression "(char *)param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1")) (, ",") (string_literal ""r"" (" """) (string_content "r") (" """)) () ")")))) (; ";")) (if_statement "if (local_2bc != (FILE *)0x0) goto LAB_00011a52;" (if "if") (parenthesized_expression "(local_2bc != (FILE *)0x0)" (( "(") (binary_expression "local_2bc != (FILE *)0x0" (identifier "local_2bc") (!= "!=") (cast_expression "(FILE *)0x0" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00011a52;" (goto "goto") (statement_identifier "LAB_00011a52") (; ";"))) (labeled_statement "LAB_00011bb2:\n  uVar6 = FUN_000159a0(0,3,param_1);" (statement_identifier "LAB_00011bb2") (: ":") (expression_statement "uVar6 = FUN_000159a0(0,3,param_1);" (assignment_expression "uVar6 = FUN_000159a0(0,3,param_1)" (identifier "uVar6") (= "=") (call_expression "FUN_000159a0(0,3,param_1)" (identifier "FUN_000159a0") (argument_list "(0,3,param_1)" (( "(") (number_literal "0") (, ",") (number_literal "3") (, ",") (identifier "param_1") () ")")))) (; ";"))) (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" (identifier "piVar7") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" (identifier "uVar10") (= "=") (number_literal "0")) (; ";")) (expression_statement "error(0,*piVar7,&DAT_0001a2f2,uVar6);" (call_expression "error(0,*piVar7,&DAT_0001a2f2,uVar6)" (identifier "error") (argument_list "(0,*piVar7,&DAT_0001a2f2,uVar6)" (( "(") (number_literal "0") (, ",") (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) (, ",") (pointer_expression "&DAT_0001a2f2" (& "&") (identifier "DAT_0001a2f2")) (, ",") (identifier "uVar6") () ")"))) (; ";")) (labeled_statement "LAB_00011b49:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar10;\n  }" (statement_identifier "LAB_00011b49") (: ":") (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar10;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return uVar10;\n  }" ({ "{") (return_statement "return uVar10;" (return "return") (identifier "uVar10") (; ";")) (} "}")))) (expression_statement "FUN_00018f70();" (call_expression "FUN_00018f70()" (identifier "FUN_00018f70") (argument_list "()" (( "(") () ")"))) (; ";")) (labeled_statement "code_r0x00011ac3:\n  if ((local_2bc->_flags & 0x20) != 0) {\n    uVar6 = FUN_000159a0(0,3,param_1);\n    piVar7 = __errno_location();\n    uVar10 = 0;\n    error(0,*piVar7,&DAT_0001a2f2,uVar6);\n    if (bVar15 != bVar13) {\n      FUN_00017360(local_2bc);\n    }\n    goto LAB_00011b49;\n  }" (statement_identifier "code_r0x00011ac3") (: ":") (if_statement "if ((local_2bc->_flags & 0x20) != 0) {\n    uVar6 = FUN_000159a0(0,3,param_1);\n    piVar7 = __errno_location();\n    uVar10 = 0;\n    error(0,*piVar7,&DAT_0001a2f2,uVar6);\n    if (bVar15 != bVar13) {\n      FUN_00017360(local_2bc);\n    }\n    goto LAB_00011b49;\n  }" (if "if") (parenthesized_expression "((local_2bc->_flags & 0x20) != 0)" (( "(") (binary_expression "(local_2bc->_flags & 0x20) != 0" (parenthesized_expression "(local_2bc->_flags & 0x20)" (( "(") (binary_expression "local_2bc->_flags & 0x20" (field_expression "local_2bc->_flags" (identifier "local_2bc") (-> "->") (field_identifier "_flags")) (& "&") (number_literal "0x20")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar6 = FUN_000159a0(0,3,param_1);\n    piVar7 = __errno_location();\n    uVar10 = 0;\n    error(0,*piVar7,&DAT_0001a2f2,uVar6);\n    if (bVar15 != bVar13) {\n      FUN_00017360(local_2bc);\n    }\n    goto LAB_00011b49;\n  }" ({ "{") (expression_statement "uVar6 = FUN_000159a0(0,3,param_1);" (assignment_expression "uVar6 = FUN_000159a0(0,3,param_1)" (identifier "uVar6") (= "=") (call_expression "FUN_000159a0(0,3,param_1)" (identifier "FUN_000159a0") (argument_list "(0,3,param_1)" (( "(") (number_literal "0") (, ",") (number_literal "3") (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" (identifier "piVar7") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" (identifier "uVar10") (= "=") (number_literal "0")) (; ";")) (expression_statement "error(0,*piVar7,&DAT_0001a2f2,uVar6);" (call_expression "error(0,*piVar7,&DAT_0001a2f2,uVar6)" (identifier "error") (argument_list "(0,*piVar7,&DAT_0001a2f2,uVar6)" (( "(") (number_literal "0") (, ",") (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) (, ",") (pointer_expression "&DAT_0001a2f2" (& "&") (identifier "DAT_0001a2f2")) (, ",") (identifier "uVar6") () ")"))) (; ";")) (if_statement "if (bVar15 != bVar13) {\n      FUN_00017360(local_2bc);\n    }" (if "if") (parenthesized_expression "(bVar15 != bVar13)" (( "(") (binary_expression "bVar15 != bVar13" (identifier "bVar15") (!= "!=") (identifier "bVar13")) () ")")) (compound_statement "{\n      FUN_00017360(local_2bc);\n    }" ({ "{") (expression_statement "FUN_00017360(local_2bc);" (call_expression "FUN_00017360(local_2bc)" (identifier "FUN_00017360") (argument_list "(local_2bc)" (( "(") (identifier "local_2bc") () ")"))) (; ";")) (} "}"))) (goto_statement "goto LAB_00011b49;" (goto "goto") (statement_identifier "LAB_00011b49") (; ";")) (} "}")))) (if_statement "if (bVar15 != bVar13) {\n    iVar5 = FUN_00017360(local_2bc);\n    if (iVar5 != 0) goto LAB_00011bb2;\n  }" (if "if") (parenthesized_expression "(bVar15 != bVar13)" (( "(") (binary_expression "bVar15 != bVar13" (identifier "bVar15") (!= "!=") (identifier "bVar13")) () ")")) (compound_statement "{\n    iVar5 = FUN_00017360(local_2bc);\n    if (iVar5 != 0) goto LAB_00011bb2;\n  }" ({ "{") (expression_statement "iVar5 = FUN_00017360(local_2bc);" (assignment_expression "iVar5 = FUN_00017360(local_2bc)" (identifier "iVar5") (= "=") (call_expression "FUN_00017360(local_2bc)" (identifier "FUN_00017360") (argument_list "(local_2bc)" (( "(") (identifier "local_2bc") () ")")))) (; ";")) (if_statement "if (iVar5 != 0) goto LAB_00011bb2;" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00011bb2;" (goto "goto") (statement_identifier "LAB_00011bb2") (; ";"))) (} "}"))) (expression_statement "uVar6 = FUN_00012110(uVar12,iVar8,local_2ac,0,1,0,0x400,0);" (assignment_expression "uVar6 = FUN_00012110(uVar12,iVar8,local_2ac,0,1,0,0x400,0)" (identifier "uVar6") (= "=") (call_expression "FUN_00012110(uVar12,iVar8,local_2ac,0,1,0,0x400,0)" (identifier "FUN_00012110") (argument_list "(uVar12,iVar8,local_2ac,0,1,0,0x400,0)" (( "(") (identifier "uVar12") (, ",") (identifier "iVar8") (, ",") (identifier "local_2ac") (, ",") (number_literal "0") (, ",") (number_literal "1") (, ",") (number_literal "0") (, ",") (number_literal "0x400") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "__printf_chk(1,"%05d %5s",uVar9,uVar6);" (call_expression "__printf_chk(1,"%05d %5s",uVar9,uVar6)" (identifier "__printf_chk") (argument_list "(1,"%05d %5s",uVar9,uVar6)" (( "(") (number_literal "1") (, ",") (string_literal ""%05d %5s"" (" """) (string_content "%05d %5s") (" """)) (, ",") (identifier "uVar9") (, ",") (identifier "uVar6") () ")"))) (; ";")) (if_statement "if (1 < param_2) {\n    __printf_chk(1,&DAT_0001a2f1,param_1,uVar6);\n  }" (if "if") (parenthesized_expression "(1 < param_2)" (( "(") (binary_expression "1 < param_2" (number_literal "1") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n    __printf_chk(1,&DAT_0001a2f1,param_1,uVar6);\n  }" ({ "{") (expression_statement "__printf_chk(1,&DAT_0001a2f1,param_1,uVar6);" (call_expression "__printf_chk(1,&DAT_0001a2f1,param_1,uVar6)" (identifier "__printf_chk") (argument_list "(1,&DAT_0001a2f1,param_1,uVar6)" (( "(") (number_literal "1") (, ",") (pointer_expression "&DAT_0001a2f1" (& "&") (identifier "DAT_0001a2f1")) (, ",") (identifier "param_1") (, ",") (identifier "uVar6") () ")"))) (; ";")) (} "}"))) (expression_statement "p_Var1 = *(_IO_FILE **)PTR_stdout_0001dfd4;" (assignment_expression "p_Var1 = *(_IO_FILE **)PTR_stdout_0001dfd4" (identifier "p_Var1") (= "=") (pointer_expression "*(_IO_FILE **)PTR_stdout_0001dfd4" (* "*") (cast_expression "(_IO_FILE **)PTR_stdout_0001dfd4" (( "(") (type_descriptor "_IO_FILE **" (type_identifier "_IO_FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stdout_0001dfd4")))) (; ";")) (expression_statement "pcVar2 = p_Var1->_IO_write_ptr;" (assignment_expression "pcVar2 = p_Var1->_IO_write_ptr" (identifier "pcVar2") (= "=") (field_expression "p_Var1->_IO_write_ptr" (identifier "p_Var1") (-> "->") (field_identifier "_IO_write_ptr"))) (; ";")) (if_statement "if (pcVar2 < p_Var1->_IO_write_end) {\n    uVar10 = 1;\n    p_Var1->_IO_write_ptr = pcVar2 + 1;\n    *pcVar2 = '\n';\n  }\n  else {\n    uVar10 = 1;\n    __overflow(p_Var1,10);\n  }" (if "if") (parenthesized_expression "(pcVar2 < p_Var1->_IO_write_end)" (( "(") (binary_expression "pcVar2 < p_Var1->_IO_write_end" (identifier "pcVar2") (< "<") (field_expression "p_Var1->_IO_write_end" (identifier "p_Var1") (-> "->") (field_identifier "_IO_write_end"))) () ")")) (compound_statement "{\n    uVar10 = 1;\n    p_Var1->_IO_write_ptr = pcVar2 + 1;\n    *pcVar2 = '\n';\n  }" ({ "{") (expression_statement "uVar10 = 1;" (assignment_expression "uVar10 = 1" (identifier "uVar10") (= "=") (number_literal "1")) (; ";")) (expression_statement "p_Var1->_IO_write_ptr = pcVar2 + 1;" (assignment_expression "p_Var1->_IO_write_ptr = pcVar2 + 1" (field_expression "p_Var1->_IO_write_ptr" (identifier "p_Var1") (-> "->") (field_identifier "_IO_write_ptr")) (= "=") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*pcVar2 = '\n';" (assignment_expression "*pcVar2 = '\n'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (= "=") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) (; ";")) (} "}")) (else_clause "else {\n    uVar10 = 1;\n    __overflow(p_Var1,10);\n  }" (else "else") (compound_statement "{\n    uVar10 = 1;\n    __overflow(p_Var1,10);\n  }" ({ "{") (expression_statement "uVar10 = 1;" (assignment_expression "uVar10 = 1" (identifier "uVar10") (= "=") (number_literal "1")) (; ";")) (expression_statement "__overflow(p_Var1,10);" (call_expression "__overflow(p_Var1,10)" (identifier "__overflow") (argument_list "(p_Var1,10)" (( "(") (identifier "p_Var1") (, ",") (number_literal "10") () ")"))) (; ";")) (} "}")))) (goto_statement "goto LAB_00011b49;" (goto "goto") (statement_identifier "LAB_00011b49") (; ";")) (} "}")))

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

type_1 function_1(char *file,int var_25)

{
  int var_18;
  type_2 *p_Var2;
  type_3 *var_3;
  type_4 var_10;
  int var_21;
  char *var_26;
  int *piVar7;
  int var_2;
  type_1 _Var9;
  type_4 var_12;
  type_3 *var_4;
  type_4 var_11;
  int var_1;
  bool var_6;
  bool bVar14;
  bool var_5;
  type_2 *var_14;
  type_3 *var_8;
  char hbuf [652];
  
  var_2 = 2;
  var_18 = *(int *)(var_1 + 0x14);
  var_6 = false;
  var_5 = true;
  var_3 = (type_3 *)file;
  var_4 = &DAT_0001a279;
  do {
    if (var_2 == 0) break;
    var_2 = var_2 + -1;
    var_6 = *var_3 < *var_4;
    var_5 = *var_3 == *var_4;
    var_3 = var_3 + 1;
    var_4 = var_4 + 1;
  } while (var_5);
  var_5 = !var_6 && !var_5;
  if (var_5 == var_6) {
    have_read_stdin = true;
    var_14 = *(type_2 **)PTR_stdin_0001dfd0;
LAB_00011a52:
    var_2 = 0;
    var_12 = 0;
    var_7((type_5 *)var_14,FADVISE_SEQUENTIAL);
    var_8 = (type_3 *)var_14->_IO_read_end;
    var_3 = (type_3 *)var_14->_IO_read_ptr;
    var_11 = 0;
    do {
      if (var_3 < var_8) {
        var_14->_IO_read_ptr = (char *)(var_3 + 1);
        var_10 = (type_4)*var_3;
        var_3 = var_3 + 1;
      }
      else {
        var_10 = var_9(var_14);
        if (var_10 == 0xffffffff) goto code_r0x00011ac3;
        var_8 = (type_3 *)var_14->_IO_read_end;
        var_3 = (type_3 *)var_14->_IO_read_ptr;
      }
      bVar14 = 0xfffffffe < var_11;
      var_11 = var_11 + 1;
      var_2 = var_2 + (type_4)bVar14;
      var_12 = (var_12 & 1) * 0x8000 + ((int)var_12 >> 1) + var_10 & 0xffff;
    } while( true );
  }
  var_14 = var_13(file,"r");
  if (var_14 != (type_5 *)0x0) goto LAB_00011a52;
LAB_00011bb2:
  var_26 = var_15(0,shell_escape_quoting_style,file);
  piVar7 = var_16();
  _Var9 = false;
  var_17(0,*piVar7,&DAT_0001a2f2,var_26);
LAB_00011b49:
  if (var_18 == *(int *)(var_1 + 0x14)) {
    return _Var9;
  }
                    /* WARNING: Subroutine does not return */
  var_19();
code_r0x00011ac3:
  if ((var_14->_flags & 0x20) != 0) {
    var_26 = var_15(0,shell_escape_quoting_style,file);
    piVar7 = var_16();
    _Var9 = false;
    var_17(0,*piVar7,&DAT_0001a2f2,var_26);
    if (var_5 != var_6) {
      var_20((type_5 *)var_14);
    }
    goto LAB_00011b49;
  }
  if (var_5 != var_6) {
    var_21 = var_20((type_5 *)var_14);
    if (var_21 != 0) goto LAB_00011bb2;
  }
  var_26 = var_22(var_23(var_2,var_11),hbuf,0,1,0x400);
  var_24(1,"%05d %5s",var_12,var_26);
  if (1 < var_25) {
    var_24(1,&DAT_0001a2f1,file,var_26);
  }
  p_Var2 = *(type_2 **)PTR_stdout_0001dfd4;
  var_26 = p_Var2->_IO_write_ptr;
  if (var_26 < p_Var2->_IO_write_end) {
    _Var9 = true;
    p_Var2->_IO_write_ptr = var_26 + 1;
    *var_26 = '\n';
  }
  else {
    _Var9 = true;
    var_27(p_Var2,10);
  }
  goto LAB_00011b49;
}


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

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

undefined4 MASKED(byte *param_1,int param_2)

{
  _IO_FILE *p_Var1;
  char *pcVar2;
  byte *pbVar3;
  uint uVar4;
  int iVar5;
  undefined4 uVar6;
  int *piVar7;
  int iVar8;
  uint uVar9;
  undefined4 uVar10;
  byte *pbVar11;
  uint uVar12;
  int in_GS_OFFSET;
  bool bVar13;
  bool bVar14;
  bool bVar15;
  _IO_FILE *local_2bc;
  byte *local_2b8;
  undefined1 local_2ac [652];
  int local_20;
  undefined4 uStack_14;
  
  iVar8 = 2;
  uStack_14 = 0x119fe;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  bVar13 = false;
  bVar15 = true;
  pbVar3 = param_1;
  pbVar11 = &DAT_0001a279;
  do {
    if (iVar8 == 0) break;
    iVar8 = iVar8 + -1;
    bVar13 = *pbVar3 < *pbVar11;
    bVar15 = *pbVar3 == *pbVar11;
    pbVar3 = pbVar3 + 1;
    pbVar11 = pbVar11 + 1;
  } while (bVar15);
  bVar15 = !bVar13 && !bVar15;
  if (bVar15 == bVar13) {
    DAT_0001e188 = 1;
    local_2bc = *(_IO_FILE **)PTR_stdin_0001dfd0;
LAB_00011a52:
    iVar8 = 0;
    uVar9 = 0;
    FUN_000120d0(local_2bc,2);
    local_2b8 = (byte *)local_2bc->_IO_read_end;
    pbVar3 = (byte *)local_2bc->_IO_read_ptr;
    uVar12 = 0;
    do {
      if (pbVar3 < local_2b8) {
        local_2bc->_IO_read_ptr = (char *)(pbVar3 + 1);
        uVar4 = (uint)*pbVar3;
        pbVar3 = pbVar3 + 1;
      }
      else {
        uVar4 = __uflow(local_2bc);
        if (uVar4 == 0xffffffff) goto code_r0x00011ac3;
        local_2b8 = (byte *)local_2bc->_IO_read_end;
        pbVar3 = (byte *)local_2bc->_IO_read_ptr;
      }
      bVar14 = 0xfffffffe < uVar12;
      uVar12 = uVar12 + 1;
      iVar8 = iVar8 + (uint)bVar14;
      uVar9 = (uVar9 & 1) * 0x8000 + ((int)uVar9 >> 1) + uVar4 & 0xffff;
    } while( true );
  }
  local_2bc = fopen64((char *)param_1,"r");
  if (local_2bc != (FILE *)0x0) goto LAB_00011a52;
LAB_00011bb2:
  uVar6 = FUN_000159a0(0,3,param_1);
  piVar7 = __errno_location();
  uVar10 = 0;
  error(0,*piVar7,&DAT_0001a2f2,uVar6);
LAB_00011b49:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar10;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00018f70();
code_r0x00011ac3:
  if ((local_2bc->_flags & 0x20) != 0) {
    uVar6 = FUN_000159a0(0,3,param_1);
    piVar7 = __errno_location();
    uVar10 = 0;
    error(0,*piVar7,&DAT_0001a2f2,uVar6);
    if (bVar15 != bVar13) {
      FUN_00017360(local_2bc);
    }
    goto LAB_00011b49;
  }
  if (bVar15 != bVar13) {
    iVar5 = FUN_00017360(local_2bc);
    if (iVar5 != 0) goto LAB_00011bb2;
  }
  uVar6 = FUN_00012110(uVar12,iVar8,local_2ac,0,1,0,0x400,0);
  __printf_chk(1,"%05d %5s",uVar9,uVar6);
  if (1 < param_2) {
    __printf_chk(1,&DAT_0001a2f1,param_1,uVar6);
  }
  p_Var1 = *(_IO_FILE **)PTR_stdout_0001dfd4;
  pcVar2 = p_Var1->_IO_write_ptr;
  if (pcVar2 < p_Var1->_IO_write_end) {
    uVar10 = 1;
    p_Var1->_IO_write_ptr = pcVar2 + 1;
    *pcVar2 = '\n';
  }
  else {
    uVar10 = 1;
    __overflow(p_Var1,10);
  }
  goto LAB_00011b49;
}

