// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x18, %rsp
movb %dil, %al
movb %al, 0x17(%rsp)
leaq 0xe638(%rip), %rdi      # 0xfc0a
xorl %eax, %eax
callq 0x1090
movzbl 0x17(%rsp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, 0x8(%rsp)
subl $0xd, %eax
ja 0x1796
movq 0x8(%rsp), %rax
leaq 0xda14(%rip), %rcx      # 0xf010
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0xe608(%rip), %rdi      # 0xfc14
movb $0x0, %al
callq 0x1090
jmp 0x1796
leaq 0xe611(%rip), %rdi      # 0xfc30
movb $0x0, %al
callq 0x1090
jmp 0x1796
leaq 0xe61d(%rip), %rdi      # 0xfc4f
movb $0x0, %al
callq 0x1090
jmp 0x1796
leaq 0xe62b(%rip), %rdi      # 0xfc70
movb $0x0, %al
callq 0x1090
jmp 0x1796
leaq 0xe639(%rip), %rdi      # 0xfc91
movb $0x0, %al
callq 0x1090
jmp 0x1796
leaq 0xe655(%rip), %rdi      # 0xfcc0
movb $0x0, %al
callq 0x1090
jmp 0x1796
leaq 0xe66a(%rip), %rdi      # 0xfce8
movb $0x0, %al
callq 0x1090
jmp 0x1796
movq 0x11b1f(%rip), %rsi     # 0x131b0
subq 0x1e018(%rip), %rsi     # 0x1f6b0
subq 0x1e019(%rip), %rsi     # 0x1f6b8
subq $0x1, %rsi
leaq 0xe669(%rip), %rdi      # 0xfd13
movb $0x0, %al
callq 0x1090
leaq 0xe67d(%rip), %rdi      # 0xfd35
leaq 0x1e001(%rip), %rsi     # 0x1f6c0
movb $0x0, %al
callq 0x1090
jmp 0x1796
leaq 0xe680(%rip), %rdi      # 0xfd52
movb $0x0, %al
callq 0x1090
jmp 0x1796
leaq 0xe68c(%rip), %rdi      # 0xfd71
movb $0x0, %al
callq 0x1090
cmpb $0x0, 0x11aa2(%rip)     # 0x13195
je 0x1705
leaq 0xe68c(%rip), %rdi      # 0xfd88
movb $0x0, %al
callq 0x1090
jmp 0x1713
leaq 0xe685(%rip), %rdi      # 0xfd91
movb $0x0, %al
callq 0x1090
leaq 0xe681(%rip), %rdi      # 0xfd9b
movb $0x0, %al
callq 0x1090
jmp 0x1796
leaq 0xe67c(%rip), %rdi      # 0xfda6
movb $0x0, %al
callq 0x1090
cmpb $0x0, 0x11a5d(%rip)     # 0x13195
je 0x174a
leaq 0xe647(%rip), %rdi      # 0xfd88
movb $0x0, %al
callq 0x1090
jmp 0x1758
leaq 0xe640(%rip), %rdi      # 0xfd91
movb $0x0, %al
callq 0x1090
leaq 0xe659(%rip), %rdi      # 0xfdb8
movb $0x0, %al
callq 0x1090
jmp 0x1796
leaq 0xe664(%rip), %rdi      # 0xfdd3
movb $0x0, %al
callq 0x1090
jmp 0x1796
leaq 0xe66e(%rip), %rdi      # 0xfded
movb $0x0, %al
callq 0x1090
jmp 0x1796
leaq 0xe686(%rip), %rdi      # 0xfe15
movb $0x0, %al
callq 0x1090
movzbl 0x17(%rsp), %eax
cmpl $0x4, %eax
je 0x17bc
callq 0x1830
cmpl $0x0, 0x19dec(%rip)     # 0x1b598
je 0x17ba
leaq 0x19ce3(%rip), %rdi     # 0x1b498
callq 0x1870
jmp 0x17bc
movzbl 0x19cd5(%rip), %edi     # 0x1b498
callq 0x10d0
leaq 0x19cc9(%rip), %rdi     # 0x1b498
addq $0x1, %rdi
callq 0x1040
movl $0x1, %edi
callq 0x1140
nopw %cs:(%rax,%rax)