// File: /workspace/github_c_makefile_star2_O3/coapp-packages[P]bzip2/bzip2.c
// Function: testf
static 
void testf ( Char *name )
{
   FILE *inStr;
   Bool allOK;
   struct MY_STAT statBuf;

   deleteOutputOnInterrupt = False;

   if (name == NULL && srcMode != SM_I2O)
      panic ( "testf: bad modes\n" );

   copyFileName ( outName, (Char*)"(none)" );
   switch (srcMode) {
      case SM_I2O: copyFileName ( inName, (Char*)"(stdin)" ); break;
      case SM_F2F: copyFileName ( inName, name ); break;
      case SM_F2O: copyFileName ( inName, name ); break;
   }

   if ( srcMode != SM_I2O && containsDubiousChars ( inName ) ) {
      if (noisy)
      fprintf ( stderr, "%s: There are no files matching `%s'.\n",
                progName, inName );
      setExit(1);
      return;
   }
   if ( srcMode != SM_I2O && !fileExists ( inName ) ) {
      fprintf ( stderr, "%s: Can't open input %s: %s.\n",
                progName, inName, strerror(errno) );
      setExit(1);
      return;
   }
   if ( srcMode != SM_I2O ) {
      MY_STAT(inName, &statBuf);
      if ( MY_S_ISDIR(statBuf.st_mode) ) {
         fprintf( stderr,
                  "%s: Input file %s is a directory.\n",
                  progName,inName);
         setExit(1);
         return;
      }
   }

   switch ( srcMode ) {

      case SM_I2O:
         if ( isatty ( fileno ( stdin ) ) ) {
            fprintf ( stderr,
                      "%s: I won't read compressed data from a terminal.\n",
                      progName );
            fprintf ( stderr, "%s: For help, type: `%s --help'.\n",
                              progName, progName );
            setExit(1);
            return;
         };
         inStr = stdin;
         break;

      case SM_F2O: case SM_F2F:
         inStr = fopen ( inName, "rb" );
         if ( inStr == NULL ) {
            fprintf ( stderr, "%s: Can't open input file %s:%s.\n",
                      progName, inName, strerror(errno) );
            setExit(1);
            return;
         };
         break;

      default:
         panic ( "testf: bad srcMode" );
         break;
   }

   if (verbosity >= 1) {
      fprintf ( stderr, "  %s: ", inName );
      pad ( inName );
      fflush ( stderr );
   }

   /*--- Now the input handle is sane.  Do the Biz. ---*/
   outputHandleJustInCase = NULL;
   allOK = testStream ( inStr );

   if (allOK && verbosity >= 1) fprintf ( stderr, "ok\n" );
   if (!allOK) testFailsExist = True;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x27c8, %rsp           # imm = 0x27C8
movq %rdi, %rbx
movb $0x0, 0x14218(%rip)     # 0x18de4
testq %rdi, %rdi
jne 0x4bde
cmpl $0x1, 0x14e54(%rip)     # 0x19a2c
jne 0x4f34
leaq 0x1461b(%rip), %rdi     # 0x19200
leaq 0xd50d(%rip), %rsi      # 0x120f9
callq 0x3a9d
movl 0x14e35(%rip), %eax     # 0x19a2c
cmpl $0x3, %eax
je 0x4c16
cmpl $0x2, %eax
je 0x4c16
cmpl $0x1, %eax
jne 0x4c2b
leaq 0x141e3(%rip), %rdi     # 0x18df0
leaq 0xe7d6(%rip), %rsi      # 0x133ea
jmp 0x4c20
leaq 0x141d3(%rip), %rdi     # 0x18df0
movq %rbx, %rsi
callq 0x3a9d
movl 0x14e01(%rip), %eax     # 0x19a2c
cmpl $0x1, %eax
je 0x4cb4
leaq 0x141b5(%rip), %rdi     # 0x18df0
callq 0x5169
testb %al, %al
je 0x4eef
cmpl $0x1, 0x14ddd(%rip)     # 0x19a2c
je 0x4cb4
leaq 0x14198(%rip), %rdi     # 0x18df0
leaq 0x20(%rsp), %rbx
movq %rbx, %rsi
callq 0x2190
movl $0xf000, %eax           # imm = 0xF000
andl 0x18(%rbx), %eax
cmpl $0x4000, %eax           # imm = 0x4000
je 0x4ef6
movl 0x14dae(%rip), %eax     # 0x19a2c
leal -0x2(%rax), %ecx
cmpl $0x2, %ecx
jae 0x4cab
leaq 0x14163(%rip), %rdi     # 0x18df0
leaq 0xe8a0(%rip), %rsi      # 0x13534
callq 0x2230
movq %rax, %rbx
testq %rax, %rax
jne 0x4cd5
callq 0x2c0d
jmp 0x4e7f
cmpl $0x1, %eax
jne 0x4f62
movq 0x1331d(%rip), %rbx     # 0x17fd8
movq (%rbx), %rdi
callq 0x21b0
movl %eax, %edi
callq 0x20b0
testl %eax, %eax
jne 0x4ecc
movq (%rbx), %rbx
cmpl $0x0, 0x140f0(%rip)     # 0x18dcc
jg 0x4eb4
movq $0x0, 0x140d3(%rip) # 0x18dc0
movl $0x0, 0xc(%rsp)
movq %rbx, %rdi
callq 0x20a0
testl %eax, %eax
jne 0x4f2f
movl 0x140c1(%rip), %edx     # 0x18dcc
movzbl 0x140b6(%rip), %ecx     # 0x18dc8
leaq 0x8(%rsp), %rdi
leaq 0xb0(%rsp), %r8
xorl %ebp, %ebp
movq %rbx, %rsi
xorl %r9d, %r9d
callq 0x71bf
movq %rax, %r12
testq %rax, %rax
je 0x4e34
cmpl $0x0, 0x8(%rsp)
jne 0x4e34
xorl %ebp, %ebp
leaq 0x8(%rsp), %r14
leaq 0x1440(%rsp), %r15
leaq 0xb0(%rsp), %r13
incl %ebp
xorl %eax, %eax
testl %eax, %eax
jne 0x4d83
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
movl $0x1388, %ecx           # imm = 0x1388
callq 0x73c0
movl 0x8(%rsp), %eax
cmpl $-0x5, %eax
jne 0x4d5e
jmp 0x4e34
cmpl $0x4, %eax
jne 0x4e34
movq %r14, %rdi
movq %r12, %rsi
leaq 0x10(%rsp), %rdx
leaq 0xc(%rsp), %rcx
callq 0x75e7
cmpl $0x0, 0x8(%rsp)
jne 0x4f56
movslq 0xc(%rsp), %rax
testq %rax, %rax
jle 0x4dd1
movq 0x10(%rsp), %rcx
xorl %edx, %edx
movb (%rcx,%rdx), %sil
movb %sil, 0xb0(%rsp,%rdx)
incq %rdx
cmpq %rdx, %rax
jne 0x4dbd
movq %r14, %rdi
movq %r12, %rsi
callq 0x734f
cmpl $0x0, 0x8(%rsp)
jne 0x4f56
movl 0xc(%rsp), %r9d
testl %r9d, %r9d
jne 0x4e06
movq %rbx, %rdi
callq 0x530e
testb %al, %al
jne 0x4efd
movl 0xc(%rsp), %r9d
movl 0x13fc0(%rip), %edx     # 0x18dcc
movzbl 0x13fb5(%rip), %ecx     # 0x18dc8
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %r8
callq 0x71bf
movq %rax, %r12
testq %rax, %rax
je 0x4e34
cmpl $0x0, 0x8(%rsp)
je 0x4d5a
leaq 0x1c(%rsp), %rdi
movq %r12, %rsi
callq 0x734f
cmpl $0x0, 0x13f84(%rip)     # 0x18dcc
je 0x4ebe
movl 0x8(%rsp), %eax
cmpl $-0x5, %eax
jne 0x4e91
movq 0x1317e(%rip), %rax     # 0x17fd8
cmpq %rbx, (%rax)
je 0x4e67
movq %rbx, %rdi
callq 0x20d0
cmpl $0x1, %ebp
je 0x4ed3
cmpb $0x0, 0x13f58(%rip)     # 0x18dcb
jne 0x4ee8
movl 0x13f51(%rip), %eax     # 0x18dcc
testl %eax, %eax
jg 0x4ee1
addq $0x27c8, %rsp           # imm = 0x27C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
addl $0x9, %eax
cmpl $0x6, %eax
ja 0x4f40
leaq 0xd200(%rip), %rcx      # 0x120a4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
callq 0x2e39
jmp 0x4ed8
callq 0x2d57
jmp 0x4ce2
callq 0x2da7
jmp 0x4e4a
callq 0x2e5b
jmp 0x4ed8
callq 0x2d06
jmp 0x4e7f
callq 0x2e17
movb $0x1, 0x13ef5(%rip)     # 0x18dd4
jmp 0x4e7f
callq 0x2df5
jmp 0x4e7f
callq 0x2dd3
jmp 0x4e75
callq 0x2caa
jmp 0x4e7f
callq 0x2c69
jmp 0x4e7f
movq %rbx, %rdi
callq 0x20a0
testl %eax, %eax
jne 0x4f2f
movq %rbx, %rdi
callq 0x20d0
cmpl $-0x1, %eax
je 0x4f2f
movl 0x13eb0(%rip), %eax     # 0x18dcc
cmpl $0x2, %eax
jl 0x4e7b
callq 0x2d85
jmp 0x4e75
callq 0x52d3
leaq 0xe9eb(%rip), %rdi      # 0x13926
callq 0x5137
leaq 0xeaae(%rip), %rdi      # 0x139f5
callq 0x5137
callq 0x5108
callq 0x53e0
leaq 0xea10(%rip), %rdi      # 0x1396d
callq 0x5137
leaq 0xe9ed(%rip), %rdi      # 0x13956
callq 0x5137