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

print_file_list * __regparm3 try_print_file_open(char *origname,char *modname,stat *fst)

{
  uint uVar1;
  size_t __size;
  uint uVar2;
  print_file_list *ppVar3;
  print_file_list *__ptr;
  int __fildes;
  int iVar4;
  size_t sVar5;
  char *pcVar6;
  char **ppcVar7;
  char *pcVar8;
  uint uVar9;
  char *pcVar10;
  uint local_3c;
  char *local_34;
  uint local_30;
  
  __ptr = (print_file_list *)xmalloc(0x28);
  __fildes = open64(modname,0);
  if (-1 < __fildes) {
    iVar4 = __fxstat64(3,__fildes,(stat64 *)fst);
    if (iVar4 < 0) {
      close(__fildes);
    }
    else {
      __size = (size_t)fst->st_size;
      __ptr->mapsize = __size;
      local_34 = (char *)malloc(__size);
      if ((local_34 != (char *)0x0) &&
         (sVar5 = read(__fildes,local_34,__size), sVar5 == __ptr->mapsize)) {
        close(__fildes);
        uVar2 = __ptr->mapsize;
        __ptr->map = local_34;
        pcVar6 = local_34 + uVar2;
        if (local_34 < pcVar6) {
          ppcVar7 = (char **)0x0;
          uVar9 = 0;
          local_30 = 0x2d;
          local_3c = 0;
          pcVar10 = local_34;
          do {
            pcVar8 = pcVar10 + 1;
            if (*pcVar10 == '\n') {
              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\r')) {
LAB_00016ea8:
                pcVar8 = pcVar10 + 2;
              }
LAB_00016e28:
              uVar1 = local_3c + 1;
              if ((ppcVar7 == (char **)0x0) || (uVar9 < uVar1)) {
                local_30 = local_30 - 5;
                if ((int)local_30 < 1) {
                  local_30 = 1;
                }
                uVar9 = uVar2 / local_30 + 1;
                if (uVar9 <= uVar1) {
                  uVar9 = uVar1;
                }
                ppcVar7 = (char **)xrealloc(ppcVar7,uVar9 * 4);
              }
              ppcVar7[local_3c] = local_34;
              local_3c = uVar1;
              local_34 = pcVar8;
            }
            else if (*pcVar10 == '\r') {
              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\n')) goto LAB_00016ea8;
              goto LAB_00016e28;
            }
            pcVar10 = pcVar8;
          } while (pcVar8 < pcVar6);
        }
        else {
          local_3c = 0;
          ppcVar7 = (char **)0x0;
        }
        __ptr->linemap = ppcVar7;
        __ptr->last_line = 0;
        __ptr->maxline = local_3c;
        __ptr->max_printed = 0;
        __ptr->filename = origname;
        __ptr->first = 1;
        __ptr->modname = modname;
        ppVar3 = __ptr;
        __ptr->next = print_files;
        print_files = ppVar3;
        return __ptr;
      }
      free(local_34);
      close(__fildes);
    }
  }
  free(__ptr);
  return (print_file_list *)0x0;
}



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

undefined4 * __regparm3 FUN_00016d10(undefined4 param_1,char *param_2,stat64 *param_3)

{
  uint uVar1;
  size_t __size;
  uint uVar2;
  undefined4 *puVar3;
  undefined4 *__ptr;
  int iVar4;
  int iVar5;
  ssize_t sVar6;
  char *pcVar7;
  char *pcVar8;
  uint uVar9;
  char *pcVar10;
  uint local_3c;
  char *local_34;
  uint local_30;
  
  __ptr = (undefined4 *)xmalloc(0x28);
  iVar4 = open64(param_2,0);
  if (-1 < iVar4) {
    iVar5 = __fxstat64(3,iVar4,param_3);
    if (iVar5 < 0) {
      close(iVar4);
    }
    else {
      __size = (size_t)param_3->st_size;
      __ptr[4] = __size;
      local_34 = (char *)malloc(__size);
      if ((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])) {
        close(iVar4);
        uVar2 = __ptr[4];
        __ptr[3] = local_34;
        pcVar7 = local_34 + uVar2;
        if (local_34 < pcVar7) {
          iVar4 = 0;
          uVar9 = 0;
          local_30 = 0x2d;
          local_3c = 0;
          pcVar10 = local_34;
          do {
            pcVar8 = pcVar10 + 1;
            if (*pcVar10 == '\n') {
              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {
LAB_00016ea8:
                pcVar8 = pcVar10 + 2;
              }
LAB_00016e28:
              uVar1 = local_3c + 1;
              if ((iVar4 == 0) || (uVar9 < uVar1)) {
                local_30 = local_30 - 5;
                if ((int)local_30 < 1) {
                  local_30 = 1;
                }
                uVar9 = uVar2 / local_30 + 1;
                if (uVar9 <= uVar1) {
                  uVar9 = uVar1;
                }
                iVar4 = xrealloc(iVar4,uVar9 * 4);
              }
              *(char **)(iVar4 + local_3c * 4) = local_34;
              local_3c = uVar1;
              local_34 = pcVar8;
            }
            else if (*pcVar10 == '\r') {
              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;
              goto LAB_00016e28;
            }
            pcVar10 = pcVar8;
          } while (pcVar8 < pcVar7);
        }
        else {
          local_3c = 0;
          iVar4 = 0;
        }
        __ptr[5] = iVar4;
        __ptr[7] = 0;
        __ptr[6] = local_3c;
        __ptr[8] = 0;
        __ptr[1] = param_1;
        __ptr[9] = 1;
        __ptr[2] = param_2;
        puVar3 = __ptr;
        *__ptr = DAT_0007202c;
        DAT_0007202c = puVar3;
        return __ptr;
      }
      free(local_34);
      close(iVar4);
    }
  }
  free(__ptr);
  return (undefined4 *)0x0;
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
MOV EDI,ECX
PUSH ESI
PUSH EBX
CALL 0x000153a0
ADD EBX,0x5a2e3
SUB ESP,0x38
MOV dword ptr [ESP + 0x20],EAX
MOV dword ptr [ESP + 0x24],EDX
PUSH 0x28
CALL 0x000142b0
MOV ESI,EAX
POP EAX
POP EDX
PUSH 0x0
PUSH EBP
CALL 0x00014090
ADD ESP,0x10
TEST EAX,EAX
JS 0x00016da7
SUB ESP,0x4
MOV EBP,EAX
PUSH EDI
PUSH EAX
PUSH 0x3
CALL 0x000142c0
ADD ESP,0x10
TEST EAX,EAX
JS 0x00016f10
MOV EDX,dword ptr [EDI + 0x2c]
SUB ESP,0xc
MOV dword ptr [ESI + 0x10],EDX
PUSH EDX
MOV dword ptr [ESP + 0x10],EDX
CALL 0x000143a0
ADD ESP,0x10
MOV EDX,dword ptr [ESP]
TEST EAX,EAX
MOV EDI,EAX
JZ 0x00016d93
SUB ESP,0x4
PUSH EDX
PUSH EAX
PUSH EBP
CALL 0x000140a0
ADD ESP,0x10
CMP EAX,dword ptr [ESI + 0x10]
JZ 0x00016dc0
SUB ESP,0xc
PUSH EDI
CALL 0x00014120
MOV dword ptr [ESP],EBP
CALL 0x00014810
ADD ESP,0x10
SUB ESP,0xc
PUSH ESI
XOR ESI,ESI
CALL 0x00014120
ADD ESP,0x10
MOV EAX,ESI
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH EBP
CALL 0x00014810
MOV EAX,dword ptr [ESI + 0x10]
MOV dword ptr [ESI + 0xc],EDI
MOV dword ptr [ESP + 0x20],EAX
ADD EAX,EDI
MOV dword ptr [ESP + 0x14],EAX
ADD ESP,0x10
CMP EDI,EAX
JNC 0x00016f00
XOR EDX,EDX
MOV dword ptr [ESP + 0x1c],ESI
XOR ECX,ECX
MOV dword ptr [ESP + 0x8],EDI
MOV ESI,EDX
MOV dword ptr [ESP + 0xc],0x2d
MOV dword ptr [ESP],0x0
JMP 0x00016e8e
CMP AL,0xd
JNZ 0x00016e86
CMP EBP,dword ptr [ESP + 0x4]
JNC 0x00016e28
CMP byte ptr [EDI + 0x1],0xa
JZ 0x00016ea8
LEA ESI,[ESI]
MOV EAX,dword ptr [ESP]
LEA EDI,[EAX + 0x1]
TEST ECX,ECX
JZ 0x00016e36
CMP EDI,ESI
JBE 0x00016e75
MOV EAX,dword ptr [ESP + 0xc]
MOV EDX,0x1
SUB EAX,0x5
TEST EAX,EAX
CMOVLE EAX,EDX
XOR EDX,EDX
MOV dword ptr [ESP + 0xc],EAX
MOV ESI,EAX
MOV EAX,dword ptr [ESP + 0x10]
DIV ESI
LEA EDX,[EAX + 0x1]
CMP EDI,EDX
CMOVNC EDX,EDI
SUB ESP,0x8
LEA EAX,[EDX*0x4 + 0x0]
MOV ESI,EDX
PUSH EAX
PUSH ECX
CALL 0x00014220
ADD ESP,0x10
MOV ECX,EAX
MOV EAX,dword ptr [ESP]
MOV EDX,dword ptr [ESP + 0x8]
MOV dword ptr [ESP],EDI
MOV dword ptr [ESP + 0x8],EBP
MOV dword ptr [ECX + EAX*0x4],EDX
MOV EDI,EBP
CMP dword ptr [ESP + 0x4],EBP
JBE 0x00016eb0
MOVZX EAX,byte ptr [EDI]
LEA EBP,[EDI + 0x1]
CMP AL,0xa
JNZ 0x00016e10
CMP EBP,dword ptr [ESP + 0x4]
JNC 0x00016e28
CMP byte ptr [EDI + 0x1],0xd
JNZ 0x00016e28
LEA EBP,[EDI + 0x2]
JMP 0x00016e28
MOV ESI,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [ESP]
MOV dword ptr [ESI + 0x14],ECX
MOV dword ptr [ESI + 0x1c],0x0
MOV dword ptr [ESI + 0x18],EAX
MOV EAX,dword ptr [ESP + 0x14]
MOV dword ptr [ESI + 0x20],0x0
MOV dword ptr [ESI + 0x4],EAX
MOV EAX,dword ptr [ESP + 0x18]
MOV dword ptr [ESI + 0x24],0x1
MOV dword ptr [ESI + 0x8],EAX
MOV EAX,dword ptr [EBX + 0x102c]
MOV dword ptr [EBX + 0x102c],ESI
MOV dword ptr [ESI],EAX
ADD ESP,0x2c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP],0x0
XOR ECX,ECX
JMP 0x00016eb4
SUB ESP,0xc
PUSH EBP
CALL 0x00014810
ADD ESP,0x10
JMP 0x00016da7
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * __regparm3 FUN_00016d10(undefined4 param_1,char *param_2,stat64 *param_3)\n\n{\n  uint uVar1;\n  size_t __size;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined4 *__ptr;\n  int iVar4;\n  int iVar5;\n  ssize_t sVar6;\n  char *pcVar7;\n  char *pcVar8;\n  uint uVar9;\n  char *pcVar10;\n  uint local_3c;\n  char *local_34;\n  uint local_30;\n  \n  __ptr = (undefined4 *)xmalloc(0x28);\n  iVar4 = open64(param_2,0);\n  if (-1 < iVar4) {\n    iVar5 = __fxstat64(3,iVar4,param_3);\n    if (iVar5 < 0) {\n      close(iVar4);\n    }\n    else {\n      __size = (size_t)param_3->st_size;\n      __ptr[4] = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])) {\n        close(iVar4);\n        uVar2 = __ptr[4];\n        __ptr[3] = local_34;\n        pcVar7 = local_34 + uVar2;\n        if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }\n        __ptr[5] = iVar4;\n        __ptr[7] = 0;\n        __ptr[6] = local_3c;\n        __ptr[8] = 0;\n        __ptr[1] = param_1;\n        __ptr[9] = 1;\n        __ptr[2] = param_2;\n        puVar3 = __ptr;\n        *__ptr = DAT_0007202c;\n        DAT_0007202c = puVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(iVar4);\n    }\n  }\n  free(__ptr);\n  return (undefined4 *)0x0;\n}\n\n" comment (ERROR "undefined4 * __regparm3 FUN_00016d10(undefined4 param_1,char *param_2,stat64 *param_3)" (binary_expression "undefined4 * __regparm3 FUN_00016d10(undefined4 param_1,char *param_2,stat64 *param_3)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_00016d10(undefined4 param_1,char *param_2,stat64 *param_3)" identifier (argument_list "(undefined4 param_1,char *param_2,stat64 *param_3)" ( identifier (ERROR "param_1" identifier) , (binary_expression "char *param_2" identifier * identifier) , (binary_expression "stat64 *param_3" identifier * identifier) ))))) (compound_statement "{\n  uint uVar1;\n  size_t __size;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined4 *__ptr;\n  int iVar4;\n  int iVar5;\n  ssize_t sVar6;\n  char *pcVar7;\n  char *pcVar8;\n  uint uVar9;\n  char *pcVar10;\n  uint local_3c;\n  char *local_34;\n  uint local_30;\n  \n  __ptr = (undefined4 *)xmalloc(0x28);\n  iVar4 = open64(param_2,0);\n  if (-1 < iVar4) {\n    iVar5 = __fxstat64(3,iVar4,param_3);\n    if (iVar5 < 0) {\n      close(iVar4);\n    }\n    else {\n      __size = (size_t)param_3->st_size;\n      __ptr[4] = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])) {\n        close(iVar4);\n        uVar2 = __ptr[4];\n        __ptr[3] = local_34;\n        pcVar7 = local_34 + uVar2;\n        if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }\n        __ptr[5] = iVar4;\n        __ptr[7] = 0;\n        __ptr[6] = local_3c;\n        __ptr[8] = 0;\n        __ptr[1] = param_1;\n        __ptr[9] = 1;\n        __ptr[2] = param_2;\n        puVar3 = __ptr;\n        *__ptr = DAT_0007202c;\n        DAT_0007202c = puVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(iVar4);\n    }\n  }\n  free(__ptr);\n  return (undefined4 *)0x0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "size_t __size;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "ssize_t sVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "uint local_3c;" type_identifier identifier ;) (declaration "char *local_34;" primitive_type (pointer_declarator "*local_34" * identifier) ;) (declaration "uint local_30;" type_identifier identifier ;) (expression_statement "__ptr = (undefined4 *)xmalloc(0x28);" (assignment_expression "__ptr = (undefined4 *)xmalloc(0x28)" identifier = (cast_expression "(undefined4 *)xmalloc(0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x28)" identifier (argument_list "(0x28)" ( number_literal ))))) ;) (expression_statement "iVar4 = open64(param_2,0);" (assignment_expression "iVar4 = open64(param_2,0)" identifier = (call_expression "open64(param_2,0)" identifier (argument_list "(param_2,0)" ( identifier , number_literal )))) ;) (if_statement "if (-1 < iVar4) {\n    iVar5 = __fxstat64(3,iVar4,param_3);\n    if (iVar5 < 0) {\n      close(iVar4);\n    }\n    else {\n      __size = (size_t)param_3->st_size;\n      __ptr[4] = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])) {\n        close(iVar4);\n        uVar2 = __ptr[4];\n        __ptr[3] = local_34;\n        pcVar7 = local_34 + uVar2;\n        if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }\n        __ptr[5] = iVar4;\n        __ptr[7] = 0;\n        __ptr[6] = local_3c;\n        __ptr[8] = 0;\n        __ptr[1] = param_1;\n        __ptr[9] = 1;\n        __ptr[2] = param_2;\n        puVar3 = __ptr;\n        *__ptr = DAT_0007202c;\n        DAT_0007202c = puVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(iVar4);\n    }\n  }" if (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (compound_statement "{\n    iVar5 = __fxstat64(3,iVar4,param_3);\n    if (iVar5 < 0) {\n      close(iVar4);\n    }\n    else {\n      __size = (size_t)param_3->st_size;\n      __ptr[4] = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])) {\n        close(iVar4);\n        uVar2 = __ptr[4];\n        __ptr[3] = local_34;\n        pcVar7 = local_34 + uVar2;\n        if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }\n        __ptr[5] = iVar4;\n        __ptr[7] = 0;\n        __ptr[6] = local_3c;\n        __ptr[8] = 0;\n        __ptr[1] = param_1;\n        __ptr[9] = 1;\n        __ptr[2] = param_2;\n        puVar3 = __ptr;\n        *__ptr = DAT_0007202c;\n        DAT_0007202c = puVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(iVar4);\n    }\n  }" { (expression_statement "iVar5 = __fxstat64(3,iVar4,param_3);" (assignment_expression "iVar5 = __fxstat64(3,iVar4,param_3)" identifier = (call_expression "__fxstat64(3,iVar4,param_3)" identifier (argument_list "(3,iVar4,param_3)" ( number_literal , identifier , identifier )))) ;) (if_statement "if (iVar5 < 0) {\n      close(iVar4);\n    }\n    else {\n      __size = (size_t)param_3->st_size;\n      __ptr[4] = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])) {\n        close(iVar4);\n        uVar2 = __ptr[4];\n        __ptr[3] = local_34;\n        pcVar7 = local_34 + uVar2;\n        if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }\n        __ptr[5] = iVar4;\n        __ptr[7] = 0;\n        __ptr[6] = local_3c;\n        __ptr[8] = 0;\n        __ptr[1] = param_1;\n        __ptr[9] = 1;\n        __ptr[2] = param_2;\n        puVar3 = __ptr;\n        *__ptr = DAT_0007202c;\n        DAT_0007202c = puVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(iVar4);\n    }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n      close(iVar4);\n    }" { (expression_statement "close(iVar4);" (call_expression "close(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) }) (else_clause "else {\n      __size = (size_t)param_3->st_size;\n      __ptr[4] = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])) {\n        close(iVar4);\n        uVar2 = __ptr[4];\n        __ptr[3] = local_34;\n        pcVar7 = local_34 + uVar2;\n        if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }\n        __ptr[5] = iVar4;\n        __ptr[7] = 0;\n        __ptr[6] = local_3c;\n        __ptr[8] = 0;\n        __ptr[1] = param_1;\n        __ptr[9] = 1;\n        __ptr[2] = param_2;\n        puVar3 = __ptr;\n        *__ptr = DAT_0007202c;\n        DAT_0007202c = puVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(iVar4);\n    }" else (compound_statement "{\n      __size = (size_t)param_3->st_size;\n      __ptr[4] = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])) {\n        close(iVar4);\n        uVar2 = __ptr[4];\n        __ptr[3] = local_34;\n        pcVar7 = local_34 + uVar2;\n        if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }\n        __ptr[5] = iVar4;\n        __ptr[7] = 0;\n        __ptr[6] = local_3c;\n        __ptr[8] = 0;\n        __ptr[1] = param_1;\n        __ptr[9] = 1;\n        __ptr[2] = param_2;\n        puVar3 = __ptr;\n        *__ptr = DAT_0007202c;\n        DAT_0007202c = puVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(iVar4);\n    }" { (expression_statement "__size = (size_t)param_3->st_size;" (assignment_expression "__size = (size_t)param_3->st_size" identifier = (cast_expression "(size_t)param_3->st_size" ( (type_descriptor "size_t" primitive_type) ) (field_expression "param_3->st_size" identifier -> field_identifier))) ;) (expression_statement "__ptr[4] = __size;" (assignment_expression "__ptr[4] = __size" (subscript_expression "__ptr[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_34 = (char *)malloc(__size);" (assignment_expression "local_34 = (char *)malloc(__size)" identifier = (cast_expression "(char *)malloc(__size)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(__size)" identifier (argument_list "(__size)" ( identifier ))))) ;) (if_statement "if ((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])) {\n        close(iVar4);\n        uVar2 = __ptr[4];\n        __ptr[3] = local_34;\n        pcVar7 = local_34 + uVar2;\n        if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }\n        __ptr[5] = iVar4;\n        __ptr[7] = 0;\n        __ptr[6] = local_3c;\n        __ptr[8] = 0;\n        __ptr[1] = param_1;\n        __ptr[9] = 1;\n        __ptr[2] = param_2;\n        puVar3 = __ptr;\n        *__ptr = DAT_0007202c;\n        DAT_0007202c = puVar3;\n        return __ptr;\n      }" if (parenthesized_expression "((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4]))" ( (binary_expression "(local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])" (parenthesized_expression "(local_34 != (char *)0x0)" ( (binary_expression "local_34 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])" ( (comma_expression "sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4]" (assignment_expression "sVar6 = read(iVar4,local_34,__size)" identifier = (call_expression "read(iVar4,local_34,__size)" identifier (argument_list "(iVar4,local_34,__size)" ( identifier , identifier , identifier )))) , (binary_expression "sVar6 == __ptr[4]" identifier == (subscript_expression "__ptr[4]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        close(iVar4);\n        uVar2 = __ptr[4];\n        __ptr[3] = local_34;\n        pcVar7 = local_34 + uVar2;\n        if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }\n        __ptr[5] = iVar4;\n        __ptr[7] = 0;\n        __ptr[6] = local_3c;\n        __ptr[8] = 0;\n        __ptr[1] = param_1;\n        __ptr[9] = 1;\n        __ptr[2] = param_2;\n        puVar3 = __ptr;\n        *__ptr = DAT_0007202c;\n        DAT_0007202c = puVar3;\n        return __ptr;\n      }" { (expression_statement "close(iVar4);" (call_expression "close(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (expression_statement "uVar2 = __ptr[4];" (assignment_expression "uVar2 = __ptr[4]" identifier = (subscript_expression "__ptr[4]" identifier [ number_literal ])) ;) (expression_statement "__ptr[3] = local_34;" (assignment_expression "__ptr[3] = local_34" (subscript_expression "__ptr[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pcVar7 = local_34 + uVar2;" (assignment_expression "pcVar7 = local_34 + uVar2" identifier = (binary_expression "local_34 + uVar2" identifier + identifier)) ;) (if_statement "if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }" if (parenthesized_expression "(local_34 < pcVar7)" ( (binary_expression "local_34 < pcVar7" identifier < identifier) )) (compound_statement "{\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0x2d;" (assignment_expression "local_30 = 0x2d" identifier = number_literal) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "pcVar10 = local_34;" (assignment_expression "pcVar10 = local_34" identifier = identifier) ;) (do_statement "do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);" do (compound_statement "{\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          }" { (expression_statement "pcVar8 = pcVar10 + 1;" (assignment_expression "pcVar8 = pcVar10 + 1" identifier = (binary_expression "pcVar10 + 1" identifier + number_literal)) ;) (if_statement "if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }" if (parenthesized_expression "(*pcVar10 == '\n')" ( (binary_expression "*pcVar10 == '\n'" (pointer_expression "*pcVar10" * identifier) == (char_literal "'\n'" ' escape_sequence ')) )) (compound_statement "{\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }" { (if_statement "if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }" if (parenthesized_expression "((pcVar8 < pcVar7) && (pcVar10[1] == '\r'))" ( (binary_expression "(pcVar8 < pcVar7) && (pcVar10[1] == '\r')" (parenthesized_expression "(pcVar8 < pcVar7)" ( (binary_expression "pcVar8 < pcVar7" identifier < identifier) )) && (parenthesized_expression "(pcVar10[1] == '\r')" ( (binary_expression "pcVar10[1] == '\r'" (subscript_expression "pcVar10[1]" identifier [ number_literal ]) == (char_literal "'\r'" ' escape_sequence ')) ))) )) (compound_statement "{\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }" { (labeled_statement "LAB_00016ea8:\n                pcVar8 = pcVar10 + 2;" statement_identifier : (expression_statement "pcVar8 = pcVar10 + 2;" (assignment_expression "pcVar8 = pcVar10 + 2" identifier = (binary_expression "pcVar10 + 2" identifier + number_literal)) ;)) })) (labeled_statement "LAB_00016e28:\n              uVar1 = local_3c + 1;" statement_identifier : (expression_statement "uVar1 = local_3c + 1;" (assignment_expression "uVar1 = local_3c + 1" identifier = (binary_expression "local_3c + 1" identifier + number_literal)) ;)) (if_statement "if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }" if (parenthesized_expression "((iVar4 == 0) || (uVar9 < uVar1))" ( (binary_expression "(iVar4 == 0) || (uVar9 < uVar1)" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) || (parenthesized_expression "(uVar9 < uVar1)" ( (binary_expression "uVar9 < uVar1" identifier < identifier) ))) )) (compound_statement "{\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }" { (expression_statement "local_30 = local_30 - 5;" (assignment_expression "local_30 = local_30 - 5" identifier = (binary_expression "local_30 - 5" identifier - number_literal)) ;) (if_statement "if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }" if (parenthesized_expression "((int)local_30 < 1)" ( (binary_expression "(int)local_30 < 1" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n                  local_30 = 1;\n                }" { (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" identifier = number_literal) ;) })) (expression_statement "uVar9 = uVar2 / local_30 + 1;" (assignment_expression "uVar9 = uVar2 / local_30 + 1" identifier = (binary_expression "uVar2 / local_30 + 1" (binary_expression "uVar2 / local_30" identifier / identifier) + number_literal)) ;) (if_statement "if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }" if (parenthesized_expression "(uVar9 <= uVar1)" ( (binary_expression "uVar9 <= uVar1" identifier <= identifier) )) (compound_statement "{\n                  uVar9 = uVar1;\n                }" { (expression_statement "uVar9 = uVar1;" (assignment_expression "uVar9 = uVar1" identifier = identifier) ;) })) (expression_statement "iVar4 = xrealloc(iVar4,uVar9 * 4);" (assignment_expression "iVar4 = xrealloc(iVar4,uVar9 * 4)" identifier = (call_expression "xrealloc(iVar4,uVar9 * 4)" identifier (argument_list "(iVar4,uVar9 * 4)" ( identifier , (binary_expression "uVar9 * 4" identifier * number_literal) )))) ;) })) (expression_statement "*(char **)(iVar4 + local_3c * 4) = local_34;" (assignment_expression "*(char **)(iVar4 + local_3c * 4) = local_34" (pointer_expression "*(char **)(iVar4 + local_3c * 4)" * (cast_expression "(char **)(iVar4 + local_3c * 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + local_3c * 4)" ( (binary_expression "iVar4 + local_3c * 4" identifier + (binary_expression "local_3c * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "local_3c = uVar1;" (assignment_expression "local_3c = uVar1" identifier = identifier) ;) (expression_statement "local_34 = pcVar8;" (assignment_expression "local_34 = pcVar8" identifier = identifier) ;) }) (else_clause "else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }" else (if_statement "if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }" if (parenthesized_expression "(*pcVar10 == '\r')" ( (binary_expression "*pcVar10 == '\r'" (pointer_expression "*pcVar10" * identifier) == (char_literal "'\r'" ' escape_sequence ')) )) (compound_statement "{\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }" { (if_statement "if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;" if (parenthesized_expression "((pcVar8 < pcVar7) && (pcVar10[1] == '\n'))" ( (binary_expression "(pcVar8 < pcVar7) && (pcVar10[1] == '\n')" (parenthesized_expression "(pcVar8 < pcVar7)" ( (binary_expression "pcVar8 < pcVar7" identifier < identifier) )) && (parenthesized_expression "(pcVar10[1] == '\n')" ( (binary_expression "pcVar10[1] == '\n'" (subscript_expression "pcVar10[1]" identifier [ number_literal ]) == (char_literal "'\n'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_00016ea8;" goto statement_identifier ;)) (goto_statement "goto LAB_00016e28;" goto statement_identifier ;) })))) (expression_statement "pcVar10 = pcVar8;" (assignment_expression "pcVar10 = pcVar8" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar8 < pcVar7)" ( (binary_expression "pcVar8 < pcVar7" identifier < identifier) )) ;) }) (else_clause "else {\n          local_3c = 0;\n          iVar4 = 0;\n        }" else (compound_statement "{\n          local_3c = 0;\n          iVar4 = 0;\n        }" { (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }))) (expression_statement "__ptr[5] = iVar4;" (assignment_expression "__ptr[5] = iVar4" (subscript_expression "__ptr[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__ptr[7] = 0;" (assignment_expression "__ptr[7] = 0" (subscript_expression "__ptr[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "__ptr[6] = local_3c;" (assignment_expression "__ptr[6] = local_3c" (subscript_expression "__ptr[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__ptr[8] = 0;" (assignment_expression "__ptr[8] = 0" (subscript_expression "__ptr[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "__ptr[1] = param_1;" (assignment_expression "__ptr[1] = param_1" (subscript_expression "__ptr[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__ptr[9] = 1;" (assignment_expression "__ptr[9] = 1" (subscript_expression "__ptr[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "__ptr[2] = param_2;" (assignment_expression "__ptr[2] = param_2" (subscript_expression "__ptr[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3 = __ptr;" (assignment_expression "puVar3 = __ptr" identifier = identifier) ;) (expression_statement "*__ptr = DAT_0007202c;" (assignment_expression "*__ptr = DAT_0007202c" (pointer_expression "*__ptr" * identifier) = identifier) ;) (expression_statement "DAT_0007202c = puVar3;" (assignment_expression "DAT_0007202c = puVar3" identifier = identifier) ;) (return_statement "return __ptr;" return identifier ;) })) (expression_statement "free(local_34);" (call_expression "free(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) (expression_statement "close(iVar4);" (call_expression "close(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) }))) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nprint_file_list * __regparm3 try_print_file_open(char *origname,char *modname,stat *fst)\n\n{\n  uint uVar1;\n  size_t __size;\n  uint uVar2;\n  print_file_list *ppVar3;\n  print_file_list *__ptr;\n  int __fildes;\n  int iVar4;\n  size_t sVar5;\n  char *pcVar6;\n  char **ppcVar7;\n  char *pcVar8;\n  uint uVar9;\n  char *pcVar10;\n  uint local_3c;\n  char *local_34;\n  uint local_30;\n  \n  __ptr = (print_file_list *)xmalloc(0x28);\n  __fildes = open64(modname,0);\n  if (-1 < __fildes) {\n    iVar4 = __fxstat64(3,__fildes,(stat64 *)fst);\n    if (iVar4 < 0) {\n      close(__fildes);\n    }\n    else {\n      __size = (size_t)fst->st_size;\n      __ptr->mapsize = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) &&\n         (sVar5 = read(__fildes,local_34,__size), sVar5 == __ptr->mapsize)) {\n        close(__fildes);\n        uVar2 = __ptr->mapsize;\n        __ptr->map = local_34;\n        pcVar6 = local_34 + uVar2;\n        if (local_34 < pcVar6) {\n          ppcVar7 = (char **)0x0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((ppcVar7 == (char **)0x0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                ppcVar7 = (char **)xrealloc(ppcVar7,uVar9 * 4);\n              }\n              ppcVar7[local_3c] = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar6);\n        }\n        else {\n          local_3c = 0;\n          ppcVar7 = (char **)0x0;\n        }\n        __ptr->linemap = ppcVar7;\n        __ptr->last_line = 0;\n        __ptr->maxline = local_3c;\n        __ptr->max_printed = 0;\n        __ptr->filename = origname;\n        __ptr->first = 1;\n        __ptr->modname = modname;\n        ppVar3 = __ptr;\n        __ptr->next = print_files;\n        print_files = ppVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(__fildes);\n    }\n  }\n  free(__ptr);\n  return (print_file_list *)0x0;\n}\n\n" comment (ERROR "print_file_list * __regparm3 try_print_file_open(char *origname,char *modname,stat *fst)" (binary_expression "print_file_list * __regparm3 try_print_file_open(char *origname,char *modname,stat *fst)" identifier * (ERROR "__regparm3" identifier) (call_expression "try_print_file_open(char *origname,char *modname,stat *fst)" identifier (argument_list "(char *origname,char *modname,stat *fst)" ( (binary_expression "char *origname" identifier * identifier) , (binary_expression "char *modname" identifier * identifier) , (binary_expression "stat *fst" identifier * identifier) ))))) (compound_statement "{\n  uint uVar1;\n  size_t __size;\n  uint uVar2;\n  print_file_list *ppVar3;\n  print_file_list *__ptr;\n  int __fildes;\n  int iVar4;\n  size_t sVar5;\n  char *pcVar6;\n  char **ppcVar7;\n  char *pcVar8;\n  uint uVar9;\n  char *pcVar10;\n  uint local_3c;\n  char *local_34;\n  uint local_30;\n  \n  __ptr = (print_file_list *)xmalloc(0x28);\n  __fildes = open64(modname,0);\n  if (-1 < __fildes) {\n    iVar4 = __fxstat64(3,__fildes,(stat64 *)fst);\n    if (iVar4 < 0) {\n      close(__fildes);\n    }\n    else {\n      __size = (size_t)fst->st_size;\n      __ptr->mapsize = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) &&\n         (sVar5 = read(__fildes,local_34,__size), sVar5 == __ptr->mapsize)) {\n        close(__fildes);\n        uVar2 = __ptr->mapsize;\n        __ptr->map = local_34;\n        pcVar6 = local_34 + uVar2;\n        if (local_34 < pcVar6) {\n          ppcVar7 = (char **)0x0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((ppcVar7 == (char **)0x0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                ppcVar7 = (char **)xrealloc(ppcVar7,uVar9 * 4);\n              }\n              ppcVar7[local_3c] = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar6);\n        }\n        else {\n          local_3c = 0;\n          ppcVar7 = (char **)0x0;\n        }\n        __ptr->linemap = ppcVar7;\n        __ptr->last_line = 0;\n        __ptr->maxline = local_3c;\n        __ptr->max_printed = 0;\n        __ptr->filename = origname;\n        __ptr->first = 1;\n        __ptr->modname = modname;\n        ppVar3 = __ptr;\n        __ptr->next = print_files;\n        print_files = ppVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(__fildes);\n    }\n  }\n  free(__ptr);\n  return (print_file_list *)0x0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "size_t __size;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "print_file_list *ppVar3;" type_identifier (pointer_declarator "*ppVar3" * identifier) ;) (declaration "print_file_list *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "int __fildes;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char **ppcVar7;" primitive_type (pointer_declarator "**ppcVar7" * (pointer_declarator "*ppcVar7" * identifier)) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "uint local_3c;" type_identifier identifier ;) (declaration "char *local_34;" primitive_type (pointer_declarator "*local_34" * identifier) ;) (declaration "uint local_30;" type_identifier identifier ;) (expression_statement "__ptr = (print_file_list *)xmalloc(0x28);" (assignment_expression "__ptr = (print_file_list *)xmalloc(0x28)" identifier = (cast_expression "(print_file_list *)xmalloc(0x28)" ( (type_descriptor "print_file_list *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x28)" identifier (argument_list "(0x28)" ( number_literal ))))) ;) (expression_statement "__fildes = open64(modname,0);" (assignment_expression "__fildes = open64(modname,0)" identifier = (call_expression "open64(modname,0)" identifier (argument_list "(modname,0)" ( identifier , number_literal )))) ;) (if_statement "if (-1 < __fildes) {\n    iVar4 = __fxstat64(3,__fildes,(stat64 *)fst);\n    if (iVar4 < 0) {\n      close(__fildes);\n    }\n    else {\n      __size = (size_t)fst->st_size;\n      __ptr->mapsize = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) &&\n         (sVar5 = read(__fildes,local_34,__size), sVar5 == __ptr->mapsize)) {\n        close(__fildes);\n        uVar2 = __ptr->mapsize;\n        __ptr->map = local_34;\n        pcVar6 = local_34 + uVar2;\n        if (local_34 < pcVar6) {\n          ppcVar7 = (char **)0x0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((ppcVar7 == (char **)0x0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                ppcVar7 = (char **)xrealloc(ppcVar7,uVar9 * 4);\n              }\n              ppcVar7[local_3c] = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar6);\n        }\n        else {\n          local_3c = 0;\n          ppcVar7 = (char **)0x0;\n        }\n        __ptr->linemap = ppcVar7;\n        __ptr->last_line = 0;\n        __ptr->maxline = local_3c;\n        __ptr->max_printed = 0;\n        __ptr->filename = origname;\n        __ptr->first = 1;\n        __ptr->modname = modname;\n        ppVar3 = __ptr;\n        __ptr->next = print_files;\n        print_files = ppVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(__fildes);\n    }\n  }" if (parenthesized_expression "(-1 < __fildes)" ( (binary_expression "-1 < __fildes" number_literal < identifier) )) (compound_statement "{\n    iVar4 = __fxstat64(3,__fildes,(stat64 *)fst);\n    if (iVar4 < 0) {\n      close(__fildes);\n    }\n    else {\n      __size = (size_t)fst->st_size;\n      __ptr->mapsize = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) &&\n         (sVar5 = read(__fildes,local_34,__size), sVar5 == __ptr->mapsize)) {\n        close(__fildes);\n        uVar2 = __ptr->mapsize;\n        __ptr->map = local_34;\n        pcVar6 = local_34 + uVar2;\n        if (local_34 < pcVar6) {\n          ppcVar7 = (char **)0x0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((ppcVar7 == (char **)0x0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                ppcVar7 = (char **)xrealloc(ppcVar7,uVar9 * 4);\n              }\n              ppcVar7[local_3c] = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar6);\n        }\n        else {\n          local_3c = 0;\n          ppcVar7 = (char **)0x0;\n        }\n        __ptr->linemap = ppcVar7;\n        __ptr->last_line = 0;\n        __ptr->maxline = local_3c;\n        __ptr->max_printed = 0;\n        __ptr->filename = origname;\n        __ptr->first = 1;\n        __ptr->modname = modname;\n        ppVar3 = __ptr;\n        __ptr->next = print_files;\n        print_files = ppVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(__fildes);\n    }\n  }" { (expression_statement "iVar4 = __fxstat64(3,__fildes,(stat64 *)fst);" (assignment_expression "iVar4 = __fxstat64(3,__fildes,(stat64 *)fst)" identifier = (call_expression "__fxstat64(3,__fildes,(stat64 *)fst)" identifier (argument_list "(3,__fildes,(stat64 *)fst)" ( number_literal , identifier , (cast_expression "(stat64 *)fst" ( (type_descriptor "stat64 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (iVar4 < 0) {\n      close(__fildes);\n    }\n    else {\n      __size = (size_t)fst->st_size;\n      __ptr->mapsize = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) &&\n         (sVar5 = read(__fildes,local_34,__size), sVar5 == __ptr->mapsize)) {\n        close(__fildes);\n        uVar2 = __ptr->mapsize;\n        __ptr->map = local_34;\n        pcVar6 = local_34 + uVar2;\n        if (local_34 < pcVar6) {\n          ppcVar7 = (char **)0x0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((ppcVar7 == (char **)0x0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                ppcVar7 = (char **)xrealloc(ppcVar7,uVar9 * 4);\n              }\n              ppcVar7[local_3c] = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar6);\n        }\n        else {\n          local_3c = 0;\n          ppcVar7 = (char **)0x0;\n        }\n        __ptr->linemap = ppcVar7;\n        __ptr->last_line = 0;\n        __ptr->maxline = local_3c;\n        __ptr->max_printed = 0;\n        __ptr->filename = origname;\n        __ptr->first = 1;\n        __ptr->modname = modname;\n        ppVar3 = __ptr;\n        __ptr->next = print_files;\n        print_files = ppVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(__fildes);\n    }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n      close(__fildes);\n    }" { (expression_statement "close(__fildes);" (call_expression "close(__fildes)" identifier (argument_list "(__fildes)" ( identifier ))) ;) }) (else_clause "else {\n      __size = (size_t)fst->st_size;\n      __ptr->mapsize = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) &&\n         (sVar5 = read(__fildes,local_34,__size), sVar5 == __ptr->mapsize)) {\n        close(__fildes);\n        uVar2 = __ptr->mapsize;\n        __ptr->map = local_34;\n        pcVar6 = local_34 + uVar2;\n        if (local_34 < pcVar6) {\n          ppcVar7 = (char **)0x0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((ppcVar7 == (char **)0x0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                ppcVar7 = (char **)xrealloc(ppcVar7,uVar9 * 4);\n              }\n              ppcVar7[local_3c] = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar6);\n        }\n        else {\n          local_3c = 0;\n          ppcVar7 = (char **)0x0;\n        }\n        __ptr->linemap = ppcVar7;\n        __ptr->last_line = 0;\n        __ptr->maxline = local_3c;\n        __ptr->max_printed = 0;\n        __ptr->filename = origname;\n        __ptr->first = 1;\n        __ptr->modname = modname;\n        ppVar3 = __ptr;\n        __ptr->next = print_files;\n        print_files = ppVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(__fildes);\n    }" else (compound_statement "{\n      __size = (size_t)fst->st_size;\n      __ptr->mapsize = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) &&\n         (sVar5 = read(__fildes,local_34,__size), sVar5 == __ptr->mapsize)) {\n        close(__fildes);\n        uVar2 = __ptr->mapsize;\n        __ptr->map = local_34;\n        pcVar6 = local_34 + uVar2;\n        if (local_34 < pcVar6) {\n          ppcVar7 = (char **)0x0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((ppcVar7 == (char **)0x0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                ppcVar7 = (char **)xrealloc(ppcVar7,uVar9 * 4);\n              }\n              ppcVar7[local_3c] = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar6);\n        }\n        else {\n          local_3c = 0;\n          ppcVar7 = (char **)0x0;\n        }\n        __ptr->linemap = ppcVar7;\n        __ptr->last_line = 0;\n        __ptr->maxline = local_3c;\n        __ptr->max_printed = 0;\n        __ptr->filename = origname;\n        __ptr->first = 1;\n        __ptr->modname = modname;\n        ppVar3 = __ptr;\n        __ptr->next = print_files;\n        print_files = ppVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(__fildes);\n    }" { (expression_statement "__size = (size_t)fst->st_size;" (assignment_expression "__size = (size_t)fst->st_size" identifier = (cast_expression "(size_t)fst->st_size" ( (type_descriptor "size_t" primitive_type) ) (field_expression "fst->st_size" identifier -> field_identifier))) ;) (expression_statement "__ptr->mapsize = __size;" (assignment_expression "__ptr->mapsize = __size" (field_expression "__ptr->mapsize" identifier -> field_identifier) = identifier) ;) (expression_statement "local_34 = (char *)malloc(__size);" (assignment_expression "local_34 = (char *)malloc(__size)" identifier = (cast_expression "(char *)malloc(__size)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(__size)" identifier (argument_list "(__size)" ( identifier ))))) ;) (if_statement "if ((local_34 != (char *)0x0) &&\n         (sVar5 = read(__fildes,local_34,__size), sVar5 == __ptr->mapsize)) {\n        close(__fildes);\n        uVar2 = __ptr->mapsize;\n        __ptr->map = local_34;\n        pcVar6 = local_34 + uVar2;\n        if (local_34 < pcVar6) {\n          ppcVar7 = (char **)0x0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((ppcVar7 == (char **)0x0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                ppcVar7 = (char **)xrealloc(ppcVar7,uVar9 * 4);\n              }\n              ppcVar7[local_3c] = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar6);\n        }\n        else {\n          local_3c = 0;\n          ppcVar7 = (char **)0x0;\n        }\n        __ptr->linemap = ppcVar7;\n        __ptr->last_line = 0;\n        __ptr->maxline = local_3c;\n        __ptr->max_printed = 0;\n        __ptr->filename = origname;\n        __ptr->first = 1;\n        __ptr->modname = modname;\n        ppVar3 = __ptr;\n        __ptr->next = print_files;\n        print_files = ppVar3;\n        return __ptr;\n      }" if (parenthesized_expression "((local_34 != (char *)0x0) &&\n         (sVar5 = read(__fildes,local_34,__size), sVar5 == __ptr->mapsize))" ( (binary_expression "(local_34 != (char *)0x0) &&\n         (sVar5 = read(__fildes,local_34,__size), sVar5 == __ptr->mapsize)" (parenthesized_expression "(local_34 != (char *)0x0)" ( (binary_expression "local_34 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(sVar5 = read(__fildes,local_34,__size), sVar5 == __ptr->mapsize)" ( (comma_expression "sVar5 = read(__fildes,local_34,__size), sVar5 == __ptr->mapsize" (assignment_expression "sVar5 = read(__fildes,local_34,__size)" identifier = (call_expression "read(__fildes,local_34,__size)" identifier (argument_list "(__fildes,local_34,__size)" ( identifier , identifier , identifier )))) , (binary_expression "sVar5 == __ptr->mapsize" identifier == (field_expression "__ptr->mapsize" identifier -> field_identifier))) ))) )) (compound_statement "{\n        close(__fildes);\n        uVar2 = __ptr->mapsize;\n        __ptr->map = local_34;\n        pcVar6 = local_34 + uVar2;\n        if (local_34 < pcVar6) {\n          ppcVar7 = (char **)0x0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((ppcVar7 == (char **)0x0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                ppcVar7 = (char **)xrealloc(ppcVar7,uVar9 * 4);\n              }\n              ppcVar7[local_3c] = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar6);\n        }\n        else {\n          local_3c = 0;\n          ppcVar7 = (char **)0x0;\n        }\n        __ptr->linemap = ppcVar7;\n        __ptr->last_line = 0;\n        __ptr->maxline = local_3c;\n        __ptr->max_printed = 0;\n        __ptr->filename = origname;\n        __ptr->first = 1;\n        __ptr->modname = modname;\n        ppVar3 = __ptr;\n        __ptr->next = print_files;\n        print_files = ppVar3;\n        return __ptr;\n      }" { (expression_statement "close(__fildes);" (call_expression "close(__fildes)" identifier (argument_list "(__fildes)" ( identifier ))) ;) (expression_statement "uVar2 = __ptr->mapsize;" (assignment_expression "uVar2 = __ptr->mapsize" identifier = (field_expression "__ptr->mapsize" identifier -> field_identifier)) ;) (expression_statement "__ptr->map = local_34;" (assignment_expression "__ptr->map = local_34" (field_expression "__ptr->map" identifier -> field_identifier) = identifier) ;) (expression_statement "pcVar6 = local_34 + uVar2;" (assignment_expression "pcVar6 = local_34 + uVar2" identifier = (binary_expression "local_34 + uVar2" identifier + identifier)) ;) (if_statement "if (local_34 < pcVar6) {\n          ppcVar7 = (char **)0x0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((ppcVar7 == (char **)0x0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                ppcVar7 = (char **)xrealloc(ppcVar7,uVar9 * 4);\n              }\n              ppcVar7[local_3c] = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar6);\n        }\n        else {\n          local_3c = 0;\n          ppcVar7 = (char **)0x0;\n        }" if (parenthesized_expression "(local_34 < pcVar6)" ( (binary_expression "local_34 < pcVar6" identifier < identifier) )) (compound_statement "{\n          ppcVar7 = (char **)0x0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((ppcVar7 == (char **)0x0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                ppcVar7 = (char **)xrealloc(ppcVar7,uVar9 * 4);\n              }\n              ppcVar7[local_3c] = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar6);\n        }" { (expression_statement "ppcVar7 = (char **)0x0;" (assignment_expression "ppcVar7 = (char **)0x0" identifier = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0x2d;" (assignment_expression "local_30 = 0x2d" identifier = number_literal) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "pcVar10 = local_34;" (assignment_expression "pcVar10 = local_34" identifier = identifier) ;) (do_statement "do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((ppcVar7 == (char **)0x0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                ppcVar7 = (char **)xrealloc(ppcVar7,uVar9 * 4);\n              }\n              ppcVar7[local_3c] = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar6);" do (compound_statement "{\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((ppcVar7 == (char **)0x0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                ppcVar7 = (char **)xrealloc(ppcVar7,uVar9 * 4);\n              }\n              ppcVar7[local_3c] = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          }" { (expression_statement "pcVar8 = pcVar10 + 1;" (assignment_expression "pcVar8 = pcVar10 + 1" identifier = (binary_expression "pcVar10 + 1" identifier + number_literal)) ;) (if_statement "if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((ppcVar7 == (char **)0x0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                ppcVar7 = (char **)xrealloc(ppcVar7,uVar9 * 4);\n              }\n              ppcVar7[local_3c] = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }" if (parenthesized_expression "(*pcVar10 == '\n')" ( (binary_expression "*pcVar10 == '\n'" (pointer_expression "*pcVar10" * identifier) == (char_literal "'\n'" ' escape_sequence ')) )) (compound_statement "{\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((ppcVar7 == (char **)0x0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                ppcVar7 = (char **)xrealloc(ppcVar7,uVar9 * 4);\n              }\n              ppcVar7[local_3c] = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }" { (if_statement "if ((pcVar8 < pcVar6) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }" if (parenthesized_expression "((pcVar8 < pcVar6) && (pcVar10[1] == '\r'))" ( (binary_expression "(pcVar8 < pcVar6) && (pcVar10[1] == '\r')" (parenthesized_expression "(pcVar8 < pcVar6)" ( (binary_expression "pcVar8 < pcVar6" identifier < identifier) )) && (parenthesized_expression "(pcVar10[1] == '\r')" ( (binary_expression "pcVar10[1] == '\r'" (subscript_expression "pcVar10[1]" identifier [ number_literal ]) == (char_literal "'\r'" ' escape_sequence ')) ))) )) (compound_statement "{\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }" { (labeled_statement "LAB_00016ea8:\n                pcVar8 = pcVar10 + 2;" statement_identifier : (expression_statement "pcVar8 = pcVar10 + 2;" (assignment_expression "pcVar8 = pcVar10 + 2" identifier = (binary_expression "pcVar10 + 2" identifier + number_literal)) ;)) })) (labeled_statement "LAB_00016e28:\n              uVar1 = local_3c + 1;" statement_identifier : (expression_statement "uVar1 = local_3c + 1;" (assignment_expression "uVar1 = local_3c + 1" identifier = (binary_expression "local_3c + 1" identifier + number_literal)) ;)) (if_statement "if ((ppcVar7 == (char **)0x0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                ppcVar7 = (char **)xrealloc(ppcVar7,uVar9 * 4);\n              }" if (parenthesized_expression "((ppcVar7 == (char **)0x0) || (uVar9 < uVar1))" ( (binary_expression "(ppcVar7 == (char **)0x0) || (uVar9 < uVar1)" (parenthesized_expression "(ppcVar7 == (char **)0x0)" ( (binary_expression "ppcVar7 == (char **)0x0" identifier == (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) || (parenthesized_expression "(uVar9 < uVar1)" ( (binary_expression "uVar9 < uVar1" identifier < identifier) ))) )) (compound_statement "{\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                ppcVar7 = (char **)xrealloc(ppcVar7,uVar9 * 4);\n              }" { (expression_statement "local_30 = local_30 - 5;" (assignment_expression "local_30 = local_30 - 5" identifier = (binary_expression "local_30 - 5" identifier - number_literal)) ;) (if_statement "if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }" if (parenthesized_expression "((int)local_30 < 1)" ( (binary_expression "(int)local_30 < 1" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n                  local_30 = 1;\n                }" { (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" identifier = number_literal) ;) })) (expression_statement "uVar9 = uVar2 / local_30 + 1;" (assignment_expression "uVar9 = uVar2 / local_30 + 1" identifier = (binary_expression "uVar2 / local_30 + 1" (binary_expression "uVar2 / local_30" identifier / identifier) + number_literal)) ;) (if_statement "if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }" if (parenthesized_expression "(uVar9 <= uVar1)" ( (binary_expression "uVar9 <= uVar1" identifier <= identifier) )) (compound_statement "{\n                  uVar9 = uVar1;\n                }" { (expression_statement "uVar9 = uVar1;" (assignment_expression "uVar9 = uVar1" identifier = identifier) ;) })) (expression_statement "ppcVar7 = (char **)xrealloc(ppcVar7,uVar9 * 4);" (assignment_expression "ppcVar7 = (char **)xrealloc(ppcVar7,uVar9 * 4)" identifier = (cast_expression "(char **)xrealloc(ppcVar7,uVar9 * 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xrealloc(ppcVar7,uVar9 * 4)" identifier (argument_list "(ppcVar7,uVar9 * 4)" ( identifier , (binary_expression "uVar9 * 4" identifier * number_literal) ))))) ;) })) (expression_statement "ppcVar7[local_3c] = local_34;" (assignment_expression "ppcVar7[local_3c] = local_34" (subscript_expression "ppcVar7[local_3c]" identifier [ identifier ]) = identifier) ;) (expression_statement "local_3c = uVar1;" (assignment_expression "local_3c = uVar1" identifier = identifier) ;) (expression_statement "local_34 = pcVar8;" (assignment_expression "local_34 = pcVar8" identifier = identifier) ;) }) (else_clause "else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }" else (if_statement "if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }" if (parenthesized_expression "(*pcVar10 == '\r')" ( (binary_expression "*pcVar10 == '\r'" (pointer_expression "*pcVar10" * identifier) == (char_literal "'\r'" ' escape_sequence ')) )) (compound_statement "{\n              if ((pcVar8 < pcVar6) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }" { (if_statement "if ((pcVar8 < pcVar6) && (pcVar10[1] == '\n')) goto LAB_00016ea8;" if (parenthesized_expression "((pcVar8 < pcVar6) && (pcVar10[1] == '\n'))" ( (binary_expression "(pcVar8 < pcVar6) && (pcVar10[1] == '\n')" (parenthesized_expression "(pcVar8 < pcVar6)" ( (binary_expression "pcVar8 < pcVar6" identifier < identifier) )) && (parenthesized_expression "(pcVar10[1] == '\n')" ( (binary_expression "pcVar10[1] == '\n'" (subscript_expression "pcVar10[1]" identifier [ number_literal ]) == (char_literal "'\n'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_00016ea8;" goto statement_identifier ;)) (goto_statement "goto LAB_00016e28;" goto statement_identifier ;) })))) (expression_statement "pcVar10 = pcVar8;" (assignment_expression "pcVar10 = pcVar8" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar8 < pcVar6)" ( (binary_expression "pcVar8 < pcVar6" identifier < identifier) )) ;) }) (else_clause "else {\n          local_3c = 0;\n          ppcVar7 = (char **)0x0;\n        }" else (compound_statement "{\n          local_3c = 0;\n          ppcVar7 = (char **)0x0;\n        }" { (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "ppcVar7 = (char **)0x0;" (assignment_expression "ppcVar7 = (char **)0x0" identifier = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) }))) (expression_statement "__ptr->linemap = ppcVar7;" (assignment_expression "__ptr->linemap = ppcVar7" (field_expression "__ptr->linemap" identifier -> field_identifier) = identifier) ;) (expression_statement "__ptr->last_line = 0;" (assignment_expression "__ptr->last_line = 0" (field_expression "__ptr->last_line" identifier -> field_identifier) = number_literal) ;) (expression_statement "__ptr->maxline = local_3c;" (assignment_expression "__ptr->maxline = local_3c" (field_expression "__ptr->maxline" identifier -> field_identifier) = identifier) ;) (expression_statement "__ptr->max_printed = 0;" (assignment_expression "__ptr->max_printed = 0" (field_expression "__ptr->max_printed" identifier -> field_identifier) = number_literal) ;) (expression_statement "__ptr->filename = origname;" (assignment_expression "__ptr->filename = origname" (field_expression "__ptr->filename" identifier -> field_identifier) = identifier) ;) (expression_statement "__ptr->first = 1;" (assignment_expression "__ptr->first = 1" (field_expression "__ptr->first" identifier -> field_identifier) = number_literal) ;) (expression_statement "__ptr->modname = modname;" (assignment_expression "__ptr->modname = modname" (field_expression "__ptr->modname" identifier -> field_identifier) = identifier) ;) (expression_statement "ppVar3 = __ptr;" (assignment_expression "ppVar3 = __ptr" identifier = identifier) ;) (expression_statement "__ptr->next = print_files;" (assignment_expression "__ptr->next = print_files" (field_expression "__ptr->next" identifier -> field_identifier) = identifier) ;) (expression_statement "print_files = ppVar3;" (assignment_expression "print_files = ppVar3" identifier = identifier) ;) (return_statement "return __ptr;" return identifier ;) })) (expression_statement "free(local_34);" (call_expression "free(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) (expression_statement "close(__fildes);" (call_expression "close(__fildes)" identifier (argument_list "(__fildes)" ( identifier ))) ;) }))) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return (print_file_list *)0x0;" return (cast_expression "(print_file_list *)0x0" ( (type_descriptor "print_file_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))
(translation_unit "undefined4 * __regparm3 FUN_00016d10(undefined4 param_1,char *param_2,stat64 *param_3)\n\n{\n  uint uVar1;\n  size_t __size;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined4 *__ptr;\n  int iVar4;\n  int iVar5;\n  ssize_t sVar6;\n  char *pcVar7;\n  char *pcVar8;\n  uint uVar9;\n  char *pcVar10;\n  uint local_3c;\n  char *local_34;\n  uint local_30;\n  \n  __ptr = (undefined4 *)xmalloc(0x28);\n  iVar4 = open64(param_2,0);\n  if (-1 < iVar4) {\n    iVar5 = __fxstat64(3,iVar4,param_3);\n    if (iVar5 < 0) {\n      close(iVar4);\n    }\n    else {\n      __size = (size_t)param_3->st_size;\n      __ptr[4] = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])) {\n        close(iVar4);\n        uVar2 = __ptr[4];\n        __ptr[3] = local_34;\n        pcVar7 = local_34 + uVar2;\n        if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }\n        __ptr[5] = iVar4;\n        __ptr[7] = 0;\n        __ptr[6] = local_3c;\n        __ptr[8] = 0;\n        __ptr[1] = param_1;\n        __ptr[9] = 1;\n        __ptr[2] = param_2;\n        puVar3 = __ptr;\n        *__ptr = DAT_0007202c;\n        DAT_0007202c = puVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(iVar4);\n    }\n  }\n  free(__ptr);\n  return (undefined4 *)0x0;\n}\n\n" (ERROR "undefined4 * __regparm3 FUN_00016d10(undefined4 param_1,char *param_2,stat64 *param_3)" (binary_expression "undefined4 * __regparm3 FUN_00016d10(undefined4 param_1,char *param_2,stat64 *param_3)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_00016d10(undefined4 param_1,char *param_2,stat64 *param_3)" identifier (argument_list "(undefined4 param_1,char *param_2,stat64 *param_3)" ( identifier (ERROR "param_1" identifier) , (binary_expression "char *param_2" identifier * identifier) , (binary_expression "stat64 *param_3" identifier * identifier) ))))) (compound_statement "{\n  uint uVar1;\n  size_t __size;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined4 *__ptr;\n  int iVar4;\n  int iVar5;\n  ssize_t sVar6;\n  char *pcVar7;\n  char *pcVar8;\n  uint uVar9;\n  char *pcVar10;\n  uint local_3c;\n  char *local_34;\n  uint local_30;\n  \n  __ptr = (undefined4 *)xmalloc(0x28);\n  iVar4 = open64(param_2,0);\n  if (-1 < iVar4) {\n    iVar5 = __fxstat64(3,iVar4,param_3);\n    if (iVar5 < 0) {\n      close(iVar4);\n    }\n    else {\n      __size = (size_t)param_3->st_size;\n      __ptr[4] = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])) {\n        close(iVar4);\n        uVar2 = __ptr[4];\n        __ptr[3] = local_34;\n        pcVar7 = local_34 + uVar2;\n        if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }\n        __ptr[5] = iVar4;\n        __ptr[7] = 0;\n        __ptr[6] = local_3c;\n        __ptr[8] = 0;\n        __ptr[1] = param_1;\n        __ptr[9] = 1;\n        __ptr[2] = param_2;\n        puVar3 = __ptr;\n        *__ptr = DAT_0007202c;\n        DAT_0007202c = puVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(iVar4);\n    }\n  }\n  free(__ptr);\n  return (undefined4 *)0x0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "size_t __size;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "ssize_t sVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "uint local_3c;" type_identifier identifier ;) (declaration "char *local_34;" primitive_type (pointer_declarator "*local_34" * identifier) ;) (declaration "uint local_30;" type_identifier identifier ;) (expression_statement "__ptr = (undefined4 *)xmalloc(0x28);" (assignment_expression "__ptr = (undefined4 *)xmalloc(0x28)" identifier = (cast_expression "(undefined4 *)xmalloc(0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x28)" identifier (argument_list "(0x28)" ( number_literal ))))) ;) (expression_statement "iVar4 = open64(param_2,0);" (assignment_expression "iVar4 = open64(param_2,0)" identifier = (call_expression "open64(param_2,0)" identifier (argument_list "(param_2,0)" ( identifier , number_literal )))) ;) (if_statement "if (-1 < iVar4) {\n    iVar5 = __fxstat64(3,iVar4,param_3);\n    if (iVar5 < 0) {\n      close(iVar4);\n    }\n    else {\n      __size = (size_t)param_3->st_size;\n      __ptr[4] = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])) {\n        close(iVar4);\n        uVar2 = __ptr[4];\n        __ptr[3] = local_34;\n        pcVar7 = local_34 + uVar2;\n        if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }\n        __ptr[5] = iVar4;\n        __ptr[7] = 0;\n        __ptr[6] = local_3c;\n        __ptr[8] = 0;\n        __ptr[1] = param_1;\n        __ptr[9] = 1;\n        __ptr[2] = param_2;\n        puVar3 = __ptr;\n        *__ptr = DAT_0007202c;\n        DAT_0007202c = puVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(iVar4);\n    }\n  }" if (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (compound_statement "{\n    iVar5 = __fxstat64(3,iVar4,param_3);\n    if (iVar5 < 0) {\n      close(iVar4);\n    }\n    else {\n      __size = (size_t)param_3->st_size;\n      __ptr[4] = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])) {\n        close(iVar4);\n        uVar2 = __ptr[4];\n        __ptr[3] = local_34;\n        pcVar7 = local_34 + uVar2;\n        if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }\n        __ptr[5] = iVar4;\n        __ptr[7] = 0;\n        __ptr[6] = local_3c;\n        __ptr[8] = 0;\n        __ptr[1] = param_1;\n        __ptr[9] = 1;\n        __ptr[2] = param_2;\n        puVar3 = __ptr;\n        *__ptr = DAT_0007202c;\n        DAT_0007202c = puVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(iVar4);\n    }\n  }" { (expression_statement "iVar5 = __fxstat64(3,iVar4,param_3);" (assignment_expression "iVar5 = __fxstat64(3,iVar4,param_3)" identifier = (call_expression "__fxstat64(3,iVar4,param_3)" identifier (argument_list "(3,iVar4,param_3)" ( number_literal , identifier , identifier )))) ;) (if_statement "if (iVar5 < 0) {\n      close(iVar4);\n    }\n    else {\n      __size = (size_t)param_3->st_size;\n      __ptr[4] = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])) {\n        close(iVar4);\n        uVar2 = __ptr[4];\n        __ptr[3] = local_34;\n        pcVar7 = local_34 + uVar2;\n        if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }\n        __ptr[5] = iVar4;\n        __ptr[7] = 0;\n        __ptr[6] = local_3c;\n        __ptr[8] = 0;\n        __ptr[1] = param_1;\n        __ptr[9] = 1;\n        __ptr[2] = param_2;\n        puVar3 = __ptr;\n        *__ptr = DAT_0007202c;\n        DAT_0007202c = puVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(iVar4);\n    }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n      close(iVar4);\n    }" { (expression_statement "close(iVar4);" (call_expression "close(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) }) (else_clause "else {\n      __size = (size_t)param_3->st_size;\n      __ptr[4] = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])) {\n        close(iVar4);\n        uVar2 = __ptr[4];\n        __ptr[3] = local_34;\n        pcVar7 = local_34 + uVar2;\n        if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }\n        __ptr[5] = iVar4;\n        __ptr[7] = 0;\n        __ptr[6] = local_3c;\n        __ptr[8] = 0;\n        __ptr[1] = param_1;\n        __ptr[9] = 1;\n        __ptr[2] = param_2;\n        puVar3 = __ptr;\n        *__ptr = DAT_0007202c;\n        DAT_0007202c = puVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(iVar4);\n    }" else (compound_statement "{\n      __size = (size_t)param_3->st_size;\n      __ptr[4] = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])) {\n        close(iVar4);\n        uVar2 = __ptr[4];\n        __ptr[3] = local_34;\n        pcVar7 = local_34 + uVar2;\n        if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }\n        __ptr[5] = iVar4;\n        __ptr[7] = 0;\n        __ptr[6] = local_3c;\n        __ptr[8] = 0;\n        __ptr[1] = param_1;\n        __ptr[9] = 1;\n        __ptr[2] = param_2;\n        puVar3 = __ptr;\n        *__ptr = DAT_0007202c;\n        DAT_0007202c = puVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(iVar4);\n    }" { (expression_statement "__size = (size_t)param_3->st_size;" (assignment_expression "__size = (size_t)param_3->st_size" identifier = (cast_expression "(size_t)param_3->st_size" ( (type_descriptor "size_t" primitive_type) ) (field_expression "param_3->st_size" identifier -> field_identifier))) ;) (expression_statement "__ptr[4] = __size;" (assignment_expression "__ptr[4] = __size" (subscript_expression "__ptr[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_34 = (char *)malloc(__size);" (assignment_expression "local_34 = (char *)malloc(__size)" identifier = (cast_expression "(char *)malloc(__size)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(__size)" identifier (argument_list "(__size)" ( identifier ))))) ;) (if_statement "if ((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])) {\n        close(iVar4);\n        uVar2 = __ptr[4];\n        __ptr[3] = local_34;\n        pcVar7 = local_34 + uVar2;\n        if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }\n        __ptr[5] = iVar4;\n        __ptr[7] = 0;\n        __ptr[6] = local_3c;\n        __ptr[8] = 0;\n        __ptr[1] = param_1;\n        __ptr[9] = 1;\n        __ptr[2] = param_2;\n        puVar3 = __ptr;\n        *__ptr = DAT_0007202c;\n        DAT_0007202c = puVar3;\n        return __ptr;\n      }" if (parenthesized_expression "((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4]))" ( (binary_expression "(local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])" (parenthesized_expression "(local_34 != (char *)0x0)" ( (binary_expression "local_34 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])" ( (comma_expression "sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4]" (assignment_expression "sVar6 = read(iVar4,local_34,__size)" identifier = (call_expression "read(iVar4,local_34,__size)" identifier (argument_list "(iVar4,local_34,__size)" ( identifier , identifier , identifier )))) , (binary_expression "sVar6 == __ptr[4]" identifier == (subscript_expression "__ptr[4]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        close(iVar4);\n        uVar2 = __ptr[4];\n        __ptr[3] = local_34;\n        pcVar7 = local_34 + uVar2;\n        if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }\n        __ptr[5] = iVar4;\n        __ptr[7] = 0;\n        __ptr[6] = local_3c;\n        __ptr[8] = 0;\n        __ptr[1] = param_1;\n        __ptr[9] = 1;\n        __ptr[2] = param_2;\n        puVar3 = __ptr;\n        *__ptr = DAT_0007202c;\n        DAT_0007202c = puVar3;\n        return __ptr;\n      }" { (expression_statement "close(iVar4);" (call_expression "close(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (expression_statement "uVar2 = __ptr[4];" (assignment_expression "uVar2 = __ptr[4]" identifier = (subscript_expression "__ptr[4]" identifier [ number_literal ])) ;) (expression_statement "__ptr[3] = local_34;" (assignment_expression "__ptr[3] = local_34" (subscript_expression "__ptr[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pcVar7 = local_34 + uVar2;" (assignment_expression "pcVar7 = local_34 + uVar2" identifier = (binary_expression "local_34 + uVar2" identifier + identifier)) ;) (if_statement "if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }" if (parenthesized_expression "(local_34 < pcVar7)" ( (binary_expression "local_34 < pcVar7" identifier < identifier) )) (compound_statement "{\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0x2d;" (assignment_expression "local_30 = 0x2d" identifier = number_literal) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "pcVar10 = local_34;" (assignment_expression "pcVar10 = local_34" identifier = identifier) ;) (do_statement "do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);" do (compound_statement "{\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          }" { (expression_statement "pcVar8 = pcVar10 + 1;" (assignment_expression "pcVar8 = pcVar10 + 1" identifier = (binary_expression "pcVar10 + 1" identifier + number_literal)) ;) (if_statement "if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }" if (parenthesized_expression "(*pcVar10 == '\n')" ( (binary_expression "*pcVar10 == '\n'" (pointer_expression "*pcVar10" * identifier) == (char_literal "'\n'" ' escape_sequence ')) )) (compound_statement "{\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }" { (if_statement "if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }" if (parenthesized_expression "((pcVar8 < pcVar7) && (pcVar10[1] == '\r'))" ( (binary_expression "(pcVar8 < pcVar7) && (pcVar10[1] == '\r')" (parenthesized_expression "(pcVar8 < pcVar7)" ( (binary_expression "pcVar8 < pcVar7" identifier < identifier) )) && (parenthesized_expression "(pcVar10[1] == '\r')" ( (binary_expression "pcVar10[1] == '\r'" (subscript_expression "pcVar10[1]" identifier [ number_literal ]) == (char_literal "'\r'" ' escape_sequence ')) ))) )) (compound_statement "{\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }" { (labeled_statement "LAB_00016ea8:\n                pcVar8 = pcVar10 + 2;" statement_identifier : (expression_statement "pcVar8 = pcVar10 + 2;" (assignment_expression "pcVar8 = pcVar10 + 2" identifier = (binary_expression "pcVar10 + 2" identifier + number_literal)) ;)) })) (labeled_statement "LAB_00016e28:\n              uVar1 = local_3c + 1;" statement_identifier : (expression_statement "uVar1 = local_3c + 1;" (assignment_expression "uVar1 = local_3c + 1" identifier = (binary_expression "local_3c + 1" identifier + number_literal)) ;)) (if_statement "if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }" if (parenthesized_expression "((iVar4 == 0) || (uVar9 < uVar1))" ( (binary_expression "(iVar4 == 0) || (uVar9 < uVar1)" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) || (parenthesized_expression "(uVar9 < uVar1)" ( (binary_expression "uVar9 < uVar1" identifier < identifier) ))) )) (compound_statement "{\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }" { (expression_statement "local_30 = local_30 - 5;" (assignment_expression "local_30 = local_30 - 5" identifier = (binary_expression "local_30 - 5" identifier - number_literal)) ;) (if_statement "if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }" if (parenthesized_expression "((int)local_30 < 1)" ( (binary_expression "(int)local_30 < 1" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n                  local_30 = 1;\n                }" { (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" identifier = number_literal) ;) })) (expression_statement "uVar9 = uVar2 / local_30 + 1;" (assignment_expression "uVar9 = uVar2 / local_30 + 1" identifier = (binary_expression "uVar2 / local_30 + 1" (binary_expression "uVar2 / local_30" identifier / identifier) + number_literal)) ;) (if_statement "if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }" if (parenthesized_expression "(uVar9 <= uVar1)" ( (binary_expression "uVar9 <= uVar1" identifier <= identifier) )) (compound_statement "{\n                  uVar9 = uVar1;\n                }" { (expression_statement "uVar9 = uVar1;" (assignment_expression "uVar9 = uVar1" identifier = identifier) ;) })) (expression_statement "iVar4 = xrealloc(iVar4,uVar9 * 4);" (assignment_expression "iVar4 = xrealloc(iVar4,uVar9 * 4)" identifier = (call_expression "xrealloc(iVar4,uVar9 * 4)" identifier (argument_list "(iVar4,uVar9 * 4)" ( identifier , (binary_expression "uVar9 * 4" identifier * number_literal) )))) ;) })) (expression_statement "*(char **)(iVar4 + local_3c * 4) = local_34;" (assignment_expression "*(char **)(iVar4 + local_3c * 4) = local_34" (pointer_expression "*(char **)(iVar4 + local_3c * 4)" * (cast_expression "(char **)(iVar4 + local_3c * 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + local_3c * 4)" ( (binary_expression "iVar4 + local_3c * 4" identifier + (binary_expression "local_3c * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "local_3c = uVar1;" (assignment_expression "local_3c = uVar1" identifier = identifier) ;) (expression_statement "local_34 = pcVar8;" (assignment_expression "local_34 = pcVar8" identifier = identifier) ;) }) (else_clause "else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }" else (if_statement "if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }" if (parenthesized_expression "(*pcVar10 == '\r')" ( (binary_expression "*pcVar10 == '\r'" (pointer_expression "*pcVar10" * identifier) == (char_literal "'\r'" ' escape_sequence ')) )) (compound_statement "{\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }" { (if_statement "if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;" if (parenthesized_expression "((pcVar8 < pcVar7) && (pcVar10[1] == '\n'))" ( (binary_expression "(pcVar8 < pcVar7) && (pcVar10[1] == '\n')" (parenthesized_expression "(pcVar8 < pcVar7)" ( (binary_expression "pcVar8 < pcVar7" identifier < identifier) )) && (parenthesized_expression "(pcVar10[1] == '\n')" ( (binary_expression "pcVar10[1] == '\n'" (subscript_expression "pcVar10[1]" identifier [ number_literal ]) == (char_literal "'\n'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_00016ea8;" goto statement_identifier ;)) (goto_statement "goto LAB_00016e28;" goto statement_identifier ;) })))) (expression_statement "pcVar10 = pcVar8;" (assignment_expression "pcVar10 = pcVar8" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar8 < pcVar7)" ( (binary_expression "pcVar8 < pcVar7" identifier < identifier) )) ;) }) (else_clause "else {\n          local_3c = 0;\n          iVar4 = 0;\n        }" else (compound_statement "{\n          local_3c = 0;\n          iVar4 = 0;\n        }" { (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }))) (expression_statement "__ptr[5] = iVar4;" (assignment_expression "__ptr[5] = iVar4" (subscript_expression "__ptr[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__ptr[7] = 0;" (assignment_expression "__ptr[7] = 0" (subscript_expression "__ptr[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "__ptr[6] = local_3c;" (assignment_expression "__ptr[6] = local_3c" (subscript_expression "__ptr[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__ptr[8] = 0;" (assignment_expression "__ptr[8] = 0" (subscript_expression "__ptr[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "__ptr[1] = param_1;" (assignment_expression "__ptr[1] = param_1" (subscript_expression "__ptr[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__ptr[9] = 1;" (assignment_expression "__ptr[9] = 1" (subscript_expression "__ptr[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "__ptr[2] = param_2;" (assignment_expression "__ptr[2] = param_2" (subscript_expression "__ptr[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3 = __ptr;" (assignment_expression "puVar3 = __ptr" identifier = identifier) ;) (expression_statement "*__ptr = DAT_0007202c;" (assignment_expression "*__ptr = DAT_0007202c" (pointer_expression "*__ptr" * identifier) = identifier) ;) (expression_statement "DAT_0007202c = puVar3;" (assignment_expression "DAT_0007202c = puVar3" identifier = identifier) ;) (return_statement "return __ptr;" return identifier ;) })) (expression_statement "free(local_34);" (call_expression "free(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) (expression_statement "close(iVar4);" (call_expression "close(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) }))) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))
(translation_unit (ERROR (binary_expression IDENT * (ERROR IDENT) (call_expression IDENT (argument_list ( IDENT (ERROR IDENT) , (binary_expression IDENT * IDENT) , (binary_expression IDENT * IDENT) ))))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (field_expression IDENT -> field_identifier))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) , (binary_expression IDENT == (subscript_expression IDENT [ LIT ]))) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT / IDENT) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT * LIT) )))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) ))) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })))) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) }))
(ERROR "undefined4 * __regparm3 FUN_00016d10(undefined4 param_1,char *param_2,stat64 *param_3)" (binary_expression "undefined4 * __regparm3 FUN_00016d10(undefined4 param_1,char *param_2,stat64 *param_3)" (identifier "undefined4") (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (call_expression "FUN_00016d10(undefined4 param_1,char *param_2,stat64 *param_3)" (identifier "FUN_00016d10") (argument_list "(undefined4 param_1,char *param_2,stat64 *param_3)" (( "(") (identifier "undefined4") (ERROR "param_1" (identifier "param_1")) (, ",") (binary_expression "char *param_2" (identifier "char") (* "*") (identifier "param_2")) (, ",") (binary_expression "stat64 *param_3" (identifier "stat64") (* "*") (identifier "param_3")) () ")"))))) (compound_statement "{\n  uint uVar1;\n  size_t __size;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined4 *__ptr;\n  int iVar4;\n  int iVar5;\n  ssize_t sVar6;\n  char *pcVar7;\n  char *pcVar8;\n  uint uVar9;\n  char *pcVar10;\n  uint local_3c;\n  char *local_34;\n  uint local_30;\n  \n  __ptr = (undefined4 *)xmalloc(0x28);\n  iVar4 = open64(param_2,0);\n  if (-1 < iVar4) {\n    iVar5 = __fxstat64(3,iVar4,param_3);\n    if (iVar5 < 0) {\n      close(iVar4);\n    }\n    else {\n      __size = (size_t)param_3->st_size;\n      __ptr[4] = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])) {\n        close(iVar4);\n        uVar2 = __ptr[4];\n        __ptr[3] = local_34;\n        pcVar7 = local_34 + uVar2;\n        if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }\n        __ptr[5] = iVar4;\n        __ptr[7] = 0;\n        __ptr[6] = local_3c;\n        __ptr[8] = 0;\n        __ptr[1] = param_1;\n        __ptr[9] = 1;\n        __ptr[2] = param_2;\n        puVar3 = __ptr;\n        *__ptr = DAT_0007202c;\n        DAT_0007202c = puVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(iVar4);\n    }\n  }\n  free(__ptr);\n  return (undefined4 *)0x0;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "size_t __size;" (primitive_type "size_t") (identifier "__size") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 *__ptr;" (type_identifier "undefined4") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "ssize_t sVar6;" (primitive_type "ssize_t") (identifier "sVar6") (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "char *pcVar8;" (primitive_type "char") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "char *pcVar10;" (primitive_type "char") (pointer_declarator "*pcVar10" (* "*") (identifier "pcVar10")) (; ";")) (declaration "uint local_3c;" (type_identifier "uint") (identifier "local_3c") (; ";")) (declaration "char *local_34;" (primitive_type "char") (pointer_declarator "*local_34" (* "*") (identifier "local_34")) (; ";")) (declaration "uint local_30;" (type_identifier "uint") (identifier "local_30") (; ";")) (expression_statement "__ptr = (undefined4 *)xmalloc(0x28);" (assignment_expression "__ptr = (undefined4 *)xmalloc(0x28)" (identifier "__ptr") (= "=") (cast_expression "(undefined4 *)xmalloc(0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x28)" (identifier "xmalloc") (argument_list "(0x28)" (( "(") (number_literal "0x28") () ")"))))) (; ";")) (expression_statement "iVar4 = open64(param_2,0);" (assignment_expression "iVar4 = open64(param_2,0)" (identifier "iVar4") (= "=") (call_expression "open64(param_2,0)" (identifier "open64") (argument_list "(param_2,0)" (( "(") (identifier "param_2") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (-1 < iVar4) {\n    iVar5 = __fxstat64(3,iVar4,param_3);\n    if (iVar5 < 0) {\n      close(iVar4);\n    }\n    else {\n      __size = (size_t)param_3->st_size;\n      __ptr[4] = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])) {\n        close(iVar4);\n        uVar2 = __ptr[4];\n        __ptr[3] = local_34;\n        pcVar7 = local_34 + uVar2;\n        if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }\n        __ptr[5] = iVar4;\n        __ptr[7] = 0;\n        __ptr[6] = local_3c;\n        __ptr[8] = 0;\n        __ptr[1] = param_1;\n        __ptr[9] = 1;\n        __ptr[2] = param_2;\n        puVar3 = __ptr;\n        *__ptr = DAT_0007202c;\n        DAT_0007202c = puVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(iVar4);\n    }\n  }" (if "if") (parenthesized_expression "(-1 < iVar4)" (( "(") (binary_expression "-1 < iVar4" (number_literal "-1") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n    iVar5 = __fxstat64(3,iVar4,param_3);\n    if (iVar5 < 0) {\n      close(iVar4);\n    }\n    else {\n      __size = (size_t)param_3->st_size;\n      __ptr[4] = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])) {\n        close(iVar4);\n        uVar2 = __ptr[4];\n        __ptr[3] = local_34;\n        pcVar7 = local_34 + uVar2;\n        if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }\n        __ptr[5] = iVar4;\n        __ptr[7] = 0;\n        __ptr[6] = local_3c;\n        __ptr[8] = 0;\n        __ptr[1] = param_1;\n        __ptr[9] = 1;\n        __ptr[2] = param_2;\n        puVar3 = __ptr;\n        *__ptr = DAT_0007202c;\n        DAT_0007202c = puVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(iVar4);\n    }\n  }" ({ "{") (expression_statement "iVar5 = __fxstat64(3,iVar4,param_3);" (assignment_expression "iVar5 = __fxstat64(3,iVar4,param_3)" (identifier "iVar5") (= "=") (call_expression "__fxstat64(3,iVar4,param_3)" (identifier "__fxstat64") (argument_list "(3,iVar4,param_3)" (( "(") (number_literal "3") (, ",") (identifier "iVar4") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar5 < 0) {\n      close(iVar4);\n    }\n    else {\n      __size = (size_t)param_3->st_size;\n      __ptr[4] = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])) {\n        close(iVar4);\n        uVar2 = __ptr[4];\n        __ptr[3] = local_34;\n        pcVar7 = local_34 + uVar2;\n        if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }\n        __ptr[5] = iVar4;\n        __ptr[7] = 0;\n        __ptr[6] = local_3c;\n        __ptr[8] = 0;\n        __ptr[1] = param_1;\n        __ptr[9] = 1;\n        __ptr[2] = param_2;\n        puVar3 = __ptr;\n        *__ptr = DAT_0007202c;\n        DAT_0007202c = puVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(iVar4);\n    }" (if "if") (parenthesized_expression "(iVar5 < 0)" (( "(") (binary_expression "iVar5 < 0" (identifier "iVar5") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      close(iVar4);\n    }" ({ "{") (expression_statement "close(iVar4);" (call_expression "close(iVar4)" (identifier "close") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      __size = (size_t)param_3->st_size;\n      __ptr[4] = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])) {\n        close(iVar4);\n        uVar2 = __ptr[4];\n        __ptr[3] = local_34;\n        pcVar7 = local_34 + uVar2;\n        if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }\n        __ptr[5] = iVar4;\n        __ptr[7] = 0;\n        __ptr[6] = local_3c;\n        __ptr[8] = 0;\n        __ptr[1] = param_1;\n        __ptr[9] = 1;\n        __ptr[2] = param_2;\n        puVar3 = __ptr;\n        *__ptr = DAT_0007202c;\n        DAT_0007202c = puVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(iVar4);\n    }" (else "else") (compound_statement "{\n      __size = (size_t)param_3->st_size;\n      __ptr[4] = __size;\n      local_34 = (char *)malloc(__size);\n      if ((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])) {\n        close(iVar4);\n        uVar2 = __ptr[4];\n        __ptr[3] = local_34;\n        pcVar7 = local_34 + uVar2;\n        if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }\n        __ptr[5] = iVar4;\n        __ptr[7] = 0;\n        __ptr[6] = local_3c;\n        __ptr[8] = 0;\n        __ptr[1] = param_1;\n        __ptr[9] = 1;\n        __ptr[2] = param_2;\n        puVar3 = __ptr;\n        *__ptr = DAT_0007202c;\n        DAT_0007202c = puVar3;\n        return __ptr;\n      }\n      free(local_34);\n      close(iVar4);\n    }" ({ "{") (expression_statement "__size = (size_t)param_3->st_size;" (assignment_expression "__size = (size_t)param_3->st_size" (identifier "__size") (= "=") (cast_expression "(size_t)param_3->st_size" (( "(") (type_descriptor "size_t" (primitive_type "size_t")) () ")") (field_expression "param_3->st_size" (identifier "param_3") (-> "->") (field_identifier "st_size")))) (; ";")) (expression_statement "__ptr[4] = __size;" (assignment_expression "__ptr[4] = __size" (subscript_expression "__ptr[4]" (identifier "__ptr") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "__size")) (; ";")) (expression_statement "local_34 = (char *)malloc(__size);" (assignment_expression "local_34 = (char *)malloc(__size)" (identifier "local_34") (= "=") (cast_expression "(char *)malloc(__size)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "malloc(__size)" (identifier "malloc") (argument_list "(__size)" (( "(") (identifier "__size") () ")"))))) (; ";")) (if_statement "if ((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])) {\n        close(iVar4);\n        uVar2 = __ptr[4];\n        __ptr[3] = local_34;\n        pcVar7 = local_34 + uVar2;\n        if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }\n        __ptr[5] = iVar4;\n        __ptr[7] = 0;\n        __ptr[6] = local_3c;\n        __ptr[8] = 0;\n        __ptr[1] = param_1;\n        __ptr[9] = 1;\n        __ptr[2] = param_2;\n        puVar3 = __ptr;\n        *__ptr = DAT_0007202c;\n        DAT_0007202c = puVar3;\n        return __ptr;\n      }" (if "if") (parenthesized_expression "((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4]))" (( "(") (binary_expression "(local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])" (parenthesized_expression "(local_34 != (char *)0x0)" (( "(") (binary_expression "local_34 != (char *)0x0" (identifier "local_34") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])" (( "(") (comma_expression "sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4]" (assignment_expression "sVar6 = read(iVar4,local_34,__size)" (identifier "sVar6") (= "=") (call_expression "read(iVar4,local_34,__size)" (identifier "read") (argument_list "(iVar4,local_34,__size)" (( "(") (identifier "iVar4") (, ",") (identifier "local_34") (, ",") (identifier "__size") () ")")))) (, ",") (binary_expression "sVar6 == __ptr[4]" (identifier "sVar6") (== "==") (subscript_expression "__ptr[4]" (identifier "__ptr") ([ "[") (number_literal "4") (] "]")))) () ")"))) () ")")) (compound_statement "{\n        close(iVar4);\n        uVar2 = __ptr[4];\n        __ptr[3] = local_34;\n        pcVar7 = local_34 + uVar2;\n        if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }\n        __ptr[5] = iVar4;\n        __ptr[7] = 0;\n        __ptr[6] = local_3c;\n        __ptr[8] = 0;\n        __ptr[1] = param_1;\n        __ptr[9] = 1;\n        __ptr[2] = param_2;\n        puVar3 = __ptr;\n        *__ptr = DAT_0007202c;\n        DAT_0007202c = puVar3;\n        return __ptr;\n      }" ({ "{") (expression_statement "close(iVar4);" (call_expression "close(iVar4)" (identifier "close") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (expression_statement "uVar2 = __ptr[4];" (assignment_expression "uVar2 = __ptr[4]" (identifier "uVar2") (= "=") (subscript_expression "__ptr[4]" (identifier "__ptr") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "__ptr[3] = local_34;" (assignment_expression "__ptr[3] = local_34" (subscript_expression "__ptr[3]" (identifier "__ptr") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "local_34")) (; ";")) (expression_statement "pcVar7 = local_34 + uVar2;" (assignment_expression "pcVar7 = local_34 + uVar2" (identifier "pcVar7") (= "=") (binary_expression "local_34 + uVar2" (identifier "local_34") (+ "+") (identifier "uVar2"))) (; ";")) (if_statement "if (local_34 < pcVar7) {\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }\n        else {\n          local_3c = 0;\n          iVar4 = 0;\n        }" (if "if") (parenthesized_expression "(local_34 < pcVar7)" (( "(") (binary_expression "local_34 < pcVar7" (identifier "local_34") (< "<") (identifier "pcVar7")) () ")")) (compound_statement "{\n          iVar4 = 0;\n          uVar9 = 0;\n          local_30 = 0x2d;\n          local_3c = 0;\n          pcVar10 = local_34;\n          do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);\n        }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" (identifier "uVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_30 = 0x2d;" (assignment_expression "local_30 = 0x2d" (identifier "local_30") (= "=") (number_literal "0x2d")) (; ";")) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" (identifier "local_3c") (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar10 = local_34;" (assignment_expression "pcVar10 = local_34" (identifier "pcVar10") (= "=") (identifier "local_34")) (; ";")) (do_statement "do {\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          } while (pcVar8 < pcVar7);" (do "do") (compound_statement "{\n            pcVar8 = pcVar10 + 1;\n            if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }\n            pcVar10 = pcVar8;\n          }" ({ "{") (expression_statement "pcVar8 = pcVar10 + 1;" (assignment_expression "pcVar8 = pcVar10 + 1" (identifier "pcVar8") (= "=") (binary_expression "pcVar10 + 1" (identifier "pcVar10") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (*pcVar10 == '\n') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }\n            else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }" (if "if") (parenthesized_expression "(*pcVar10 == '\n')" (( "(") (binary_expression "*pcVar10 == '\n'" (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10")) (== "==") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) () ")")) (compound_statement "{\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }\nLAB_00016e28:\n              uVar1 = local_3c + 1;\n              if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }\n              *(char **)(iVar4 + local_3c * 4) = local_34;\n              local_3c = uVar1;\n              local_34 = pcVar8;\n            }" ({ "{") (if_statement "if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }" (if "if") (parenthesized_expression "((pcVar8 < pcVar7) && (pcVar10[1] == '\r'))" (( "(") (binary_expression "(pcVar8 < pcVar7) && (pcVar10[1] == '\r')" (parenthesized_expression "(pcVar8 < pcVar7)" (( "(") (binary_expression "pcVar8 < pcVar7" (identifier "pcVar8") (< "<") (identifier "pcVar7")) () ")")) (&& "&&") (parenthesized_expression "(pcVar10[1] == '\r')" (( "(") (binary_expression "pcVar10[1] == '\r'" (subscript_expression "pcVar10[1]" (identifier "pcVar10") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'\r'" (' "'") (escape_sequence "\r") (' "'"))) () ")"))) () ")")) (compound_statement "{\nLAB_00016ea8:\n                pcVar8 = pcVar10 + 2;\n              }" ({ "{") (labeled_statement "LAB_00016ea8:\n                pcVar8 = pcVar10 + 2;" (statement_identifier "LAB_00016ea8") (: ":") (expression_statement "pcVar8 = pcVar10 + 2;" (assignment_expression "pcVar8 = pcVar10 + 2" (identifier "pcVar8") (= "=") (binary_expression "pcVar10 + 2" (identifier "pcVar10") (+ "+") (number_literal "2"))) (; ";"))) (} "}"))) (labeled_statement "LAB_00016e28:\n              uVar1 = local_3c + 1;" (statement_identifier "LAB_00016e28") (: ":") (expression_statement "uVar1 = local_3c + 1;" (assignment_expression "uVar1 = local_3c + 1" (identifier "uVar1") (= "=") (binary_expression "local_3c + 1" (identifier "local_3c") (+ "+") (number_literal "1"))) (; ";"))) (if_statement "if ((iVar4 == 0) || (uVar9 < uVar1)) {\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }" (if "if") (parenthesized_expression "((iVar4 == 0) || (uVar9 < uVar1))" (( "(") (binary_expression "(iVar4 == 0) || (uVar9 < uVar1)" (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(uVar9 < uVar1)" (( "(") (binary_expression "uVar9 < uVar1" (identifier "uVar9") (< "<") (identifier "uVar1")) () ")"))) () ")")) (compound_statement "{\n                local_30 = local_30 - 5;\n                if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }\n                uVar9 = uVar2 / local_30 + 1;\n                if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }\n                iVar4 = xrealloc(iVar4,uVar9 * 4);\n              }" ({ "{") (expression_statement "local_30 = local_30 - 5;" (assignment_expression "local_30 = local_30 - 5" (identifier "local_30") (= "=") (binary_expression "local_30 - 5" (identifier "local_30") (- "-") (number_literal "5"))) (; ";")) (if_statement "if ((int)local_30 < 1) {\n                  local_30 = 1;\n                }" (if "if") (parenthesized_expression "((int)local_30 < 1)" (( "(") (binary_expression "(int)local_30 < 1" (cast_expression "(int)local_30" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_30")) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n                  local_30 = 1;\n                }" ({ "{") (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" (identifier "local_30") (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "uVar9 = uVar2 / local_30 + 1;" (assignment_expression "uVar9 = uVar2 / local_30 + 1" (identifier "uVar9") (= "=") (binary_expression "uVar2 / local_30 + 1" (binary_expression "uVar2 / local_30" (identifier "uVar2") (/ "/") (identifier "local_30")) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (uVar9 <= uVar1) {\n                  uVar9 = uVar1;\n                }" (if "if") (parenthesized_expression "(uVar9 <= uVar1)" (( "(") (binary_expression "uVar9 <= uVar1" (identifier "uVar9") (<= "<=") (identifier "uVar1")) () ")")) (compound_statement "{\n                  uVar9 = uVar1;\n                }" ({ "{") (expression_statement "uVar9 = uVar1;" (assignment_expression "uVar9 = uVar1" (identifier "uVar9") (= "=") (identifier "uVar1")) (; ";")) (} "}"))) (expression_statement "iVar4 = xrealloc(iVar4,uVar9 * 4);" (assignment_expression "iVar4 = xrealloc(iVar4,uVar9 * 4)" (identifier "iVar4") (= "=") (call_expression "xrealloc(iVar4,uVar9 * 4)" (identifier "xrealloc") (argument_list "(iVar4,uVar9 * 4)" (( "(") (identifier "iVar4") (, ",") (binary_expression "uVar9 * 4" (identifier "uVar9") (* "*") (number_literal "4")) () ")")))) (; ";")) (} "}"))) (expression_statement "*(char **)(iVar4 + local_3c * 4) = local_34;" (assignment_expression "*(char **)(iVar4 + local_3c * 4) = local_34" (pointer_expression "*(char **)(iVar4 + local_3c * 4)" (* "*") (cast_expression "(char **)(iVar4 + local_3c * 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + local_3c * 4)" (( "(") (binary_expression "iVar4 + local_3c * 4" (identifier "iVar4") (+ "+") (binary_expression "local_3c * 4" (identifier "local_3c") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "local_34")) (; ";")) (expression_statement "local_3c = uVar1;" (assignment_expression "local_3c = uVar1" (identifier "local_3c") (= "=") (identifier "uVar1")) (; ";")) (expression_statement "local_34 = pcVar8;" (assignment_expression "local_34 = pcVar8" (identifier "local_34") (= "=") (identifier "pcVar8")) (; ";")) (} "}")) (else_clause "else if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }" (else "else") (if_statement "if (*pcVar10 == '\r') {\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }" (if "if") (parenthesized_expression "(*pcVar10 == '\r')" (( "(") (binary_expression "*pcVar10 == '\r'" (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10")) (== "==") (char_literal "'\r'" (' "'") (escape_sequence "\r") (' "'"))) () ")")) (compound_statement "{\n              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;\n              goto LAB_00016e28;\n            }" ({ "{") (if_statement "if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;" (if "if") (parenthesized_expression "((pcVar8 < pcVar7) && (pcVar10[1] == '\n'))" (( "(") (binary_expression "(pcVar8 < pcVar7) && (pcVar10[1] == '\n')" (parenthesized_expression "(pcVar8 < pcVar7)" (( "(") (binary_expression "pcVar8 < pcVar7" (identifier "pcVar8") (< "<") (identifier "pcVar7")) () ")")) (&& "&&") (parenthesized_expression "(pcVar10[1] == '\n')" (( "(") (binary_expression "pcVar10[1] == '\n'" (subscript_expression "pcVar10[1]" (identifier "pcVar10") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) () ")"))) () ")")) (goto_statement "goto LAB_00016ea8;" (goto "goto") (statement_identifier "LAB_00016ea8") (; ";"))) (goto_statement "goto LAB_00016e28;" (goto "goto") (statement_identifier "LAB_00016e28") (; ";")) (} "}"))))) (expression_statement "pcVar10 = pcVar8;" (assignment_expression "pcVar10 = pcVar8" (identifier "pcVar10") (= "=") (identifier "pcVar8")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pcVar8 < pcVar7)" (( "(") (binary_expression "pcVar8 < pcVar7" (identifier "pcVar8") (< "<") (identifier "pcVar7")) () ")")) (; ";")) (} "}")) (else_clause "else {\n          local_3c = 0;\n          iVar4 = 0;\n        }" (else "else") (compound_statement "{\n          local_3c = 0;\n          iVar4 = 0;\n        }" ({ "{") (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" (identifier "local_3c") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "__ptr[5] = iVar4;" (assignment_expression "__ptr[5] = iVar4" (subscript_expression "__ptr[5]" (identifier "__ptr") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "__ptr[7] = 0;" (assignment_expression "__ptr[7] = 0" (subscript_expression "__ptr[7]" (identifier "__ptr") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "__ptr[6] = local_3c;" (assignment_expression "__ptr[6] = local_3c" (subscript_expression "__ptr[6]" (identifier "__ptr") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "local_3c")) (; ";")) (expression_statement "__ptr[8] = 0;" (assignment_expression "__ptr[8] = 0" (subscript_expression "__ptr[8]" (identifier "__ptr") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "__ptr[1] = param_1;" (assignment_expression "__ptr[1] = param_1" (subscript_expression "__ptr[1]" (identifier "__ptr") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "__ptr[9] = 1;" (assignment_expression "__ptr[9] = 1" (subscript_expression "__ptr[9]" (identifier "__ptr") ([ "[") (number_literal "9") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "__ptr[2] = param_2;" (assignment_expression "__ptr[2] = param_2" (subscript_expression "__ptr[2]" (identifier "__ptr") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "puVar3 = __ptr;" (assignment_expression "puVar3 = __ptr" (identifier "puVar3") (= "=") (identifier "__ptr")) (; ";")) (expression_statement "*__ptr = DAT_0007202c;" (assignment_expression "*__ptr = DAT_0007202c" (pointer_expression "*__ptr" (* "*") (identifier "__ptr")) (= "=") (identifier "DAT_0007202c")) (; ";")) (expression_statement "DAT_0007202c = puVar3;" (assignment_expression "DAT_0007202c = puVar3" (identifier "DAT_0007202c") (= "=") (identifier "puVar3")) (; ";")) (return_statement "return __ptr;" (return "return") (identifier "__ptr") (; ";")) (} "}"))) (expression_statement "free(local_34);" (call_expression "free(local_34)" (identifier "free") (argument_list "(local_34)" (( "(") (identifier "local_34") () ")"))) (; ";")) (expression_statement "close(iVar4);" (call_expression "close(iVar4)" (identifier "close") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (return_statement "return (undefined4 *)0x0;" (return "return") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))

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

type_2 * __regparm3 try_print_file_open(char *origname,char *modname,stat *fst)

{
  type_1 var_18;
  size_t __size;
  type_1 var_11;
  type_2 *ppVar3;
  type_2 *__ptr;
  int var_3;
  int var_5;
  size_t var_10;
  char *var_12;
  char **var_16;
  char *var_14;
  type_1 var_17;
  char *var_13;
  type_1 var_15;
  char *var_8;
  type_1 var_19;
  
  __ptr = (type_2 *)var_1(0x28);
  var_3 = var_2(modname,0);
  if (-1 < var_3) {
    var_5 = var_4(3,var_3,(type_3 *)fst);
    if (var_5 < 0) {
      var_6(var_3);
    }
    else {
      __size = (size_t)fst->st_size;
      __ptr->mapsize = __size;
      var_8 = (char *)var_7(__size);
      if ((var_8 != (char *)0x0) &&
         (var_10 = var_9(var_3,var_8,__size), var_10 == __ptr->mapsize)) {
        var_6(var_3);
        var_11 = __ptr->mapsize;
        __ptr->map = var_8;
        var_12 = var_8 + var_11;
        if (var_8 < var_12) {
          var_16 = (char **)0x0;
          var_17 = 0;
          var_19 = 0x2d;
          var_15 = 0;
          var_13 = var_8;
          do {
            var_14 = var_13 + 1;
            if (*var_13 == '\n') {
              if ((var_14 < var_12) && (var_13[1] == '\r')) {
LAB_00016ea8:
                var_14 = var_13 + 2;
              }
LAB_00016e28:
              var_18 = var_15 + 1;
              if ((var_16 == (char **)0x0) || (var_17 < var_18)) {
                var_19 = var_19 - 5;
                if ((int)var_19 < 1) {
                  var_19 = 1;
                }
                var_17 = var_11 / var_19 + 1;
                if (var_17 <= var_18) {
                  var_17 = var_18;
                }
                var_16 = (char **)var_20(var_16,var_17 * 4);
              }
              var_16[var_15] = var_8;
              var_15 = var_18;
              var_8 = var_14;
            }
            else if (*var_13 == '\r') {
              if ((var_14 < var_12) && (var_13[1] == '\n')) goto LAB_00016ea8;
              goto LAB_00016e28;
            }
            var_13 = var_14;
          } while (var_14 < var_12);
        }
        else {
          var_15 = 0;
          var_16 = (char **)0x0;
        }
        __ptr->linemap = var_16;
        __ptr->last_line = 0;
        __ptr->maxline = var_15;
        __ptr->max_printed = 0;
        __ptr->filename = origname;
        __ptr->first = 1;
        __ptr->modname = modname;
        ppVar3 = __ptr;
        __ptr->next = print_files;
        print_files = ppVar3;
        return __ptr;
      }
      var_21(var_8);
      var_6(var_3);
    }
  }
  var_21(__ptr);
  return (type_2 *)0x0;
}


(translation_unit (ERROR (binary_expression left: (identifier) (ERROR (identifier)) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (ERROR (identifier)) (binary_expression left: (identifier) right: (identifier)) (binary_expression left: (identifier) right: (identifier)))))) (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator 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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (field_expression argument: (identifier) field: (field_identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) right: (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (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: (number_literal))) (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: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))))) consequence: (goto_statement label: (statement_identifier))) (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))))

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

undefined4 * __regparm3 MASKED(undefined4 param_1,char *param_2,stat64 *param_3)

{
  uint uVar1;
  size_t __size;
  uint uVar2;
  undefined4 *puVar3;
  undefined4 *__ptr;
  int iVar4;
  int iVar5;
  ssize_t sVar6;
  char *pcVar7;
  char *pcVar8;
  uint uVar9;
  char *pcVar10;
  uint local_3c;
  char *local_34;
  uint local_30;
  
  __ptr = (undefined4 *)xmalloc(0x28);
  iVar4 = open64(param_2,0);
  if (-1 < iVar4) {
    iVar5 = __fxstat64(3,iVar4,param_3);
    if (iVar5 < 0) {
      close(iVar4);
    }
    else {
      __size = (size_t)param_3->st_size;
      __ptr[4] = __size;
      local_34 = (char *)malloc(__size);
      if ((local_34 != (char *)0x0) && (sVar6 = read(iVar4,local_34,__size), sVar6 == __ptr[4])) {
        close(iVar4);
        uVar2 = __ptr[4];
        __ptr[3] = local_34;
        pcVar7 = local_34 + uVar2;
        if (local_34 < pcVar7) {
          iVar4 = 0;
          uVar9 = 0;
          local_30 = 0x2d;
          local_3c = 0;
          pcVar10 = local_34;
          do {
            pcVar8 = pcVar10 + 1;
            if (*pcVar10 == '\n') {
              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\r')) {
LAB_00016ea8:
                pcVar8 = pcVar10 + 2;
              }
LAB_00016e28:
              uVar1 = local_3c + 1;
              if ((iVar4 == 0) || (uVar9 < uVar1)) {
                local_30 = local_30 - 5;
                if ((int)local_30 < 1) {
                  local_30 = 1;
                }
                uVar9 = uVar2 / local_30 + 1;
                if (uVar9 <= uVar1) {
                  uVar9 = uVar1;
                }
                iVar4 = xrealloc(iVar4,uVar9 * 4);
              }
              *(char **)(iVar4 + local_3c * 4) = local_34;
              local_3c = uVar1;
              local_34 = pcVar8;
            }
            else if (*pcVar10 == '\r') {
              if ((pcVar8 < pcVar7) && (pcVar10[1] == '\n')) goto LAB_00016ea8;
              goto LAB_00016e28;
            }
            pcVar10 = pcVar8;
          } while (pcVar8 < pcVar7);
        }
        else {
          local_3c = 0;
          iVar4 = 0;
        }
        __ptr[5] = iVar4;
        __ptr[7] = 0;
        __ptr[6] = local_3c;
        __ptr[8] = 0;
        __ptr[1] = param_1;
        __ptr[9] = 1;
        __ptr[2] = param_2;
        puVar3 = __ptr;
        *__ptr = DAT_0007202c;
        DAT_0007202c = puVar3;
        return __ptr;
      }
      free(local_34);
      close(iVar4);
    }
  }
  free(__ptr);
  return (undefined4 *)0x0;
}

