// File: /workspace/github_c_makefile_star2_O1/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, 0x101ca(%rip)     # 0x14de4
testq %rdi, %rdi
jne 0x4c2c
cmpl $0x1, 0x10e06(%rip)     # 0x15a2c
jne 0x4f97
leaq 0x105cd(%rip), %rdi     # 0x15200
leaq 0xa4bf(%rip), %rsi      # 0xf0f9
callq 0x3b15
movl 0x10de7(%rip), %eax     # 0x15a2c
cmpl $0x3, %eax
je 0x4c64
cmpl $0x2, %eax
je 0x4c64
cmpl $0x1, %eax
jne 0x4c73
leaq 0x10195(%rip), %rdi     # 0x14df0
leaq 0xb78b(%rip), %rsi      # 0x103ed
jmp 0x4c6e
leaq 0x10185(%rip), %rdi     # 0x14df0
movq %rbx, %rsi
callq 0x3b15
cmpl $0x1, 0x10db2(%rip)     # 0x15a2c
je 0x4c90
leaq 0x1016d(%rip), %rdi     # 0x14df0
callq 0x51ce
testb %al, %al
je 0x4f48
cmpl $0x1, 0x10d95(%rip)     # 0x15a2c
je 0x4cc0
leaq 0x10150(%rip), %rdi     # 0x14df0
leaq 0x20(%rsp), %rbx
movq %rbx, %rsi
callq 0x2190
movl $0xf000, %eax           # imm = 0xF000
andl 0x18(%rbx), %eax
cmpl $0x4000, %eax           # imm = 0x4000
je 0x4f4f
movl 0x10d66(%rip), %eax     # 0x15a2c
leal -0x2(%rax), %ecx
cmpl $0x2, %ecx
jae 0x4cf3
leaq 0x1011b(%rip), %rdi     # 0x14df0
leaq 0xb85b(%rip), %rsi      # 0x10537
callq 0x2230
movq %rax, %rbx
testq %rax, %rax
jne 0x4d1d
callq 0x2cd2
jmp 0x4edb
cmpl $0x1, %eax
jne 0x4fc5
movq 0xf2d5(%rip), %rbx      # 0x13fd8
movq (%rbx), %rdi
callq 0x21b0
movl %eax, %edi
callq 0x20c0
testl %eax, %eax
jne 0x4f56
movq (%rbx), %rbx
cmpl $0x0, 0x100a8(%rip)     # 0x14dcc
jg 0x4f10
movq $0x0, 0x1008b(%rip) # 0x14dc0
movl $0x0, 0xc(%rsp)
movq %rbx, %rdi
callq 0x20b0
testl %eax, %eax
jne 0x4f92
movl 0x10079(%rip), %edx     # 0x14dcc
movzbl 0x1006e(%rip), %ecx     # 0x14dc8
leaq 0x8(%rsp), %rdi
leaq 0xb0(%rsp), %r8
xorl %ebp, %ebp
movq %rbx, %rsi
xorl %r9d, %r9d
callq 0x718c
movq %rax, %r14
testq %rax, %rax
je 0x4e79
cmpl $0x0, 0x8(%rsp)
jne 0x4e79
xorl %ebp, %ebp
leaq 0x8(%rsp), %r15
leaq 0x1440(%rsp), %r12
leaq 0xb0(%rsp), %r13
incl %ebp
movl 0x8(%rsp), %eax
testl %eax, %eax
jne 0x4dcb
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
movl $0x1388, %ecx           # imm = 0x1388
callq 0x7388
cmpl $-0x5, 0x8(%rsp)
jne 0x4da4
jmp 0x4e79
cmpl $0x4, %eax
jne 0x4e79
movq %r15, %rdi
movq %r14, %rsi
leaq 0x10(%rsp), %rdx
leaq 0xc(%rsp), %rcx
callq 0x75ab
cmpl $0x0, 0x8(%rsp)
jne 0x4fb9
movslq 0xc(%rsp), %rax
testq %rax, %rax
jle 0x4e19
movq 0x10(%rsp), %rcx
xorl %edx, %edx
movb (%rcx,%rdx), %sil
movb %sil, 0xb0(%rsp,%rdx)
incq %rdx
cmpq %rdx, %rax
jne 0x4e05
movq %r15, %rdi
movq %r14, %rsi
callq 0x731f
cmpl $0x0, 0x8(%rsp)
jne 0x4fb9
cmpl $0x0, 0xc(%rsp)
jne 0x4e46
movq %rbx, %rdi
callq 0x5368
testb %al, %al
jne 0x4f60
movl 0xff80(%rip), %edx      # 0x14dcc
movzbl 0xff75(%rip), %ecx      # 0x14dc8
movl 0xc(%rsp), %r9d
movq %r15, %rdi
movq %rbx, %rsi
movq %r13, %r8
callq 0x718c
movq %rax, %r14
testq %rax, %rax
je 0x4e79
cmpl $0x0, 0x8(%rsp)
je 0x4da2
leaq 0x1c(%rsp), %rdi
movq %r14, %rsi
callq 0x731f
cmpl $0x0, 0xff3f(%rip)      # 0x14dcc
je 0x4f21
movl 0x8(%rsp), %eax
cmpl $-0x5, %eax
jne 0x4eed
movq 0xf135(%rip), %rax      # 0x13fd8
cmpq %rbx, (%rax)
je 0x4eb0
movq %rbx, %rdi
callq 0x20e0
cmpl $0x1, %ebp
je 0x4f32
movb $0x1, %bl
cmpb $0x0, 0xff0d(%rip)      # 0x14dcb
jne 0x4f3e
xorl %ebp, %ebp
testb %bl, %bl
je 0x4ecf
cmpl $0x0, 0xfeff(%rip)      # 0x14dcc
jg 0x4f1a
testb %bpl, %bpl
je 0x4edb
movb $0x1, 0xfef9(%rip)      # 0x14dd4
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 0x4fa3
leaq 0xa1a4(%rip), %rcx      # 0xf0a4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
callq 0x2e3f
jmp 0x4f37
callq 0x2d7f
jmp 0x4d2a
callq 0x2e83
jmp 0x4ecf
callq 0x2dcf
jmp 0x4e93
callq 0x2e61
jmp 0x4f37
callq 0x2e1d
movb $0x1, %bpl
xorl %ebx, %ebx
jmp 0x4ec2
callq 0x2dfb
jmp 0x4ec0
callq 0x2c35
jmp 0x4edb
callq 0x2c91
jmp 0x4edb
callq 0x2d2e
jmp 0x4edb
movq %rbx, %rdi
callq 0x20b0
testl %eax, %eax
jne 0x4f92
movq %rbx, %rdi
callq 0x20e0
cmpl $-0x1, %eax
je 0x4f92
movb $0x1, %bl
cmpl $0x2, 0xfe4a(%rip)      # 0x14dcc
jl 0x4ec0
callq 0x2dad
jmp 0x4ec0
callq 0x532d
leaq 0xb98b(%rip), %rdi      # 0x10929
callq 0x519c
leaq 0xba4e(%rip), %rdi      # 0x109f8
callq 0x519c
callq 0x516d
callq 0x5442
leaq 0xb9b0(%rip), %rdi      # 0x10970
callq 0x519c
leaq 0xb98d(%rip), %rdi      # 0x10959
callq 0x519c