// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0x8(%rbp)
movb $0x0, 0x19a5e(%rip)     # 0x1de94
cmpq $0x0, -0x8(%rbp)
jne 0x4452
cmpl $0x1, 0x1a698(%rip)     # 0x1eadc
je 0x4452
leaq 0x155ab(%rip), %rdi     # 0x199f8
callq 0x4ad0
leaq 0x19e57(%rip), %rdi     # 0x1e2b0
leaq 0x13d41(%rip), %rsi     # 0x181a1
callq 0x3040
movl 0x1a671(%rip), %eax     # 0x1eadc
movl %eax, -0xac(%rbp)
subl $0x1, %eax
je 0x4492
jmp 0x4478
movl -0xac(%rbp), %eax
subl $0x2, %eax
je 0x44b9
jmp 0x4485
movl -0xac(%rbp), %eax
subl $0x3, %eax
je 0x44a7
jmp 0x44c9
leaq 0x19a07(%rip), %rdi     # 0x1dea0
leaq 0x14ff5(%rip), %rsi     # 0x19495
callq 0x3040
jmp 0x44c9
movq -0x8(%rbp), %rsi
leaq 0x199ee(%rip), %rdi     # 0x1dea0
callq 0x3040
jmp 0x44c9
movq -0x8(%rbp), %rsi
leaq 0x199dc(%rip), %rdi     # 0x1dea0
callq 0x3040
cmpl $0x1, 0x1a60c(%rip)     # 0x1eadc
je 0x4524
leaq 0x199c7(%rip), %rdi     # 0x1dea0
callq 0x4b10
movzbl %al, %eax
cmpl $0x0, %eax
je 0x4524
cmpb $0x0, 0x1998e(%rip)     # 0x1de7b
je 0x4515
movq 0x18b02(%rip), %rax     # 0x1cff8
movq (%rax), %rdi
movq 0x1a5d0(%rip), %rdx     # 0x1ead0
leaq 0x14f9f(%rip), %rsi     # 0x194a6
leaq 0x19992(%rip), %rcx     # 0x1dea0
movb $0x0, %al
callq 0x2170
movl $0x1, %edi
callq 0x4400
jmp 0x47cb
cmpl $0x1, 0x1a5b1(%rip)     # 0x1eadc
je 0x459d
leaq 0x1996c(%rip), %rdi     # 0x1dea0
callq 0x4b20
cmpb $0x0, %al
jne 0x459d
movq 0x18ab4(%rip), %rax     # 0x1cff8
movq (%rax), %rax
movq %rax, -0xc0(%rbp)
movq 0x1a57b(%rip), %rax     # 0x1ead0
movq %rax, -0xb8(%rbp)
callq 0x2060
movl (%rax), %edi
callq 0x2260
movq -0xc0(%rbp), %rdi
movq -0xb8(%rbp), %rdx
movq %rax, %r8
leaq 0x1548a(%rip), %rsi     # 0x19a0a
leaq 0x19919(%rip), %rcx     # 0x1dea0
movb $0x0, %al
callq 0x2170
movl $0x1, %edi
callq 0x4400
jmp 0x47cb
cmpl $0x1, 0x1a538(%rip)     # 0x1eadc
je 0x4602
leaq 0x198f3(%rip), %rdi     # 0x1dea0
leaq -0xa8(%rbp), %rsi
callq 0x2180
movl -0x90(%rbp), %eax
andl $0xf000, %eax           # imm = 0xF000
cmpl $0x4000, %eax           # imm = 0x4000
jne 0x4600
movq 0x18a26(%rip), %rax     # 0x1cff8
movq (%rax), %rdi
movq 0x1a4f4(%rip), %rdx     # 0x1ead0
leaq 0x14f37(%rip), %rsi     # 0x1951a
leaq 0x198b6(%rip), %rcx     # 0x1dea0
movb $0x0, %al
callq 0x2170
movl $0x1, %edi
callq 0x4400
jmp 0x47cb
jmp 0x4602
movl 0x1a4d4(%rip), %eax     # 0x1eadc
movl %eax, -0xc4(%rbp)
subl $0x1, %eax
je 0x462c
jmp 0x4615
movl -0xc4(%rbp), %eax
addl $-0x2, %eax
subl $0x2, %eax
jb 0x46ae
jmp 0x472e
movq 0x189a5(%rip), %rax     # 0x1cfd8
movq (%rax), %rdi
callq 0x2190
movl %eax, %edi
callq 0x20c0
cmpl $0x0, %eax
je 0x469b
movq 0x189aa(%rip), %rax     # 0x1cff8
movq (%rax), %rdi
movq 0x1a478(%rip), %rdx     # 0x1ead0
leaq 0x15211(%rip), %rsi     # 0x19870
movb $0x0, %al
callq 0x2170
movq 0x1898b(%rip), %rax     # 0x1cff8
movq (%rax), %rdi
movq 0x1a459(%rip), %rdx     # 0x1ead0
movq 0x1a452(%rip), %rcx     # 0x1ead0
leaq 0x14f5f(%rip), %rsi     # 0x195e4
movb $0x0, %al
callq 0x2170
movl $0x1, %edi
callq 0x4400
jmp 0x47cb
movq 0x18936(%rip), %rax     # 0x1cfd8
movq (%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0x473a
leaq 0x197eb(%rip), %rdi     # 0x1dea0
leaq 0x14f4a(%rip), %rsi     # 0x19606
callq 0x2210
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x472c
movq 0x18925(%rip), %rax     # 0x1cff8
movq (%rax), %rax
movq %rax, -0xd8(%rbp)
movq 0x1a3ec(%rip), %rax     # 0x1ead0
movq %rax, -0xd0(%rbp)
callq 0x2060
movl (%rax), %edi
callq 0x2260
movq -0xd8(%rbp), %rdi
movq -0xd0(%rbp), %rdx
movq %rax, %r8
leaq 0x15194(%rip), %rsi     # 0x198a3
leaq 0x1978a(%rip), %rcx     # 0x1dea0
movb $0x0, %al
callq 0x2170
movl $0x1, %edi
callq 0x4400
jmp 0x47cb
jmp 0x473a
leaq 0x152f3(%rip), %rdi     # 0x19a28
callq 0x4ad0
cmpl $0x1, 0x1973b(%rip)     # 0x1de7c
jl 0x477d
movq 0x188ae(%rip), %rax     # 0x1cff8
movq (%rax), %rdi
leaq 0x14ede(%rip), %rsi     # 0x19632
leaq 0x19745(%rip), %rdx     # 0x1dea0
movb $0x0, %al
callq 0x2170
leaq 0x19737(%rip), %rdi     # 0x1dea0
callq 0x4d30
movq 0x18883(%rip), %rax     # 0x1cff8
movq (%rax), %rdi
callq 0x21b0
movq $0x0, 0x196e8(%rip) # 0x1de70
movq -0x10(%rbp), %rdi
callq 0x5ad0
movb %al, -0x11(%rbp)
movzbl -0x11(%rbp), %eax
cmpl $0x0, %eax
je 0x47be
cmpl $0x1, 0x196d8(%rip)     # 0x1de7c
jl 0x47be
movq 0x1884b(%rip), %rax     # 0x1cff8
movq (%rax), %rdi
leaq 0x15284(%rip), %rsi     # 0x19a3b
movb $0x0, %al
callq 0x2170
cmpb $0x0, -0x11(%rbp)
jne 0x47cb
movb $0x1, 0x196b9(%rip)     # 0x1de84
addq $0xe0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)