// File: /workspace/github_c_makefile_star2_O3/mincebert[P]maketzx/maketzx.c
// Function: Error
void Error (byte errornumber)
{
  printf("\nERROR - ");
  switch (errornumber)
	 {
	   case 1  : printf("Could not open input file\n\n"); break;
	   case 2  : printf("Could not create output file\n\n"); break;
	   case 3  : printf("Could not read from input file\n\n"); break;
	   case 4  : printf("Could not write to output file\n\n"); break;
	   case 5  : printf("Input file is corrupted or in a wrong format\n\n"); break;
	   case 6  : printf("Extended block contains nonsense data\n\n"); break;
	   case 7  : printf("Found a block at a different sample rate\n\n"); break;
	   case 8  : printf("Tape loading error at sample %lu\n",totalread-lastpulse-currpulse-1);
		     printf("        Probable cause: %s\n\n",errstring); break;
	   case 9  : printf("Unexpected end of input file\n\n"); break;
	   case 10 : printf("Not enough memory for ");
		     if (zeta) printf("ZetaLoad");
		     else printf("Speedlock");
		     printf(" block 1\n\n"); break;
	   case 11 : printf("Cannot determine ");
		     if (zeta) printf("ZetaLoad");
		     else printf("Speedlock");
		     printf(" block 1 loading address\n\n"); break;
	   case 12 : printf("Bleepload block missing\n\n"); break;
	   case 13 : printf("Too many loading standards specified!\n\n"); break;
	   case 14 : printf("Loader is probably not Bleepload\n\n"); break;
	 }
  if (errornumber!=4)
     {
       CloseFiles();
       if (tempfile.bufpoint) Flush(&tempfile);
     }
  close(tempfile.handle);
  remove(tempfile.name);  /* for beta testing comment this line */
  exit(1);
}

// Assembly:
pushq %rbx
movl %edi, %ebx
leaq 0xa0f4(%rip), %rdi      # 0xb50a
xorl %eax, %eax
callq 0x10b0
decl %ebx
cmpl $0xd, %ebx
ja 0x1563
leaq 0x9be1(%rip), %rax      # 0xb010
movslq (%rax,%rbx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0xafd3(%rip), %rdi      # 0xc412
jmp 0x155e
leaq 0xae8f(%rip), %rdi      # 0xc2da
jmp 0x155e
leaq 0xaf2f(%rip), %rdi      # 0xc386
jmp 0x155e
leaq 0xae50(%rip), %rdi      # 0xc2b3
jmp 0x155e
leaq 0xa0e4(%rip), %rdi      # 0xb553
xorl %eax, %eax
callq 0x10b0
cmpb $0x0, 0xdd38(%rip)      # 0xf1b5
leaq 0xa0ef(%rip), %rax      # 0xb573
leaq 0xa0df(%rip), %rdi      # 0xb56a
cmoveq %rax, %rdi
xorl %eax, %eax
callq 0x10b0
leaq 0xae70(%rip), %rdi      # 0xc30d
jmp 0x155e
leaq 0xaf2b(%rip), %rdi      # 0xc3d4
jmp 0x155e
leaq 0xaeff(%rip), %rdi      # 0xc3b4
callq 0x1070
jmp 0x1586
movq 0x1a212(%rip), %rsi     # 0x1b6d8
addq 0x1a203(%rip), %rsi     # 0x1b6d0
notq %rsi
addq 0xdcf9(%rip), %rsi      # 0xf1d0
leaq 0xa036(%rip), %rdi      # 0xb514
xorl %eax, %eax
callq 0x10b0
leaq 0xa04a(%rip), %rdi      # 0xb536
leaq 0x1a1ed(%rip), %rsi     # 0x1b6e0
xorl %eax, %eax
callq 0x10b0
jmp 0x1563
leaq 0xaef1(%rip), %rdi      # 0xc3f4
jmp 0x155e
leaq 0xae53(%rip), %rdi      # 0xc35f
jmp 0x155e
leaq 0xad7c(%rip), %rdi      # 0xc291
jmp 0x155e
leaq 0xae17(%rip), %rdi      # 0xc335
jmp 0x155e
leaq 0xa056(%rip), %rdi      # 0xb57d
xorl %eax, %eax
callq 0x10b0
cmpb $0x0, 0xdc80(%rip)      # 0xf1b5
leaq 0xa037(%rip), %rax      # 0xb573
leaq 0xa027(%rip), %rdi      # 0xb56a
cmoveq %rax, %rdi
xorl %eax, %eax
callq 0x10b0
leaq 0xad9e(%rip), %rdi      # 0xc2f3
jmp 0x155e
leaq 0xadb9(%rip), %rdi      # 0xc317
callq 0x1070
callq 0x15c3
movl 0x1604a(%rip), %edx     # 0x175b8
testq %rdx, %rdx
je 0x1586
movzbl 0x15f3e(%rip), %edi     # 0x174b8
leaq 0x1604f(%rip), %rsi     # 0x175d0
callq 0x1080
movzbl 0x15f2b(%rip), %edi     # 0x174b8
callq 0x10f0
leaq 0x15f20(%rip), %rdi     # 0x174b9
callq 0x1050
movl $0x1, %edi
callq 0x1170