// File: /workspace/github_c_makefile_star2_O1/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
leal -0x1(%rbx), %eax
cmpl $0xd, %eax
ja 0x1564
leaq 0x9be0(%rip), %rcx      # 0xb010
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0xafd2(%rip), %rdi      # 0xc412
jmp 0x155a
leaq 0xae8e(%rip), %rdi      # 0xc2da
jmp 0x155a
leaq 0xaf2e(%rip), %rdi      # 0xc386
jmp 0x155a
leaq 0xae4f(%rip), %rdi      # 0xc2b3
jmp 0x155a
leaq 0xa0e3(%rip), %rdi      # 0xb553
xorl %eax, %eax
callq 0x10b0
cmpb $0x0, 0xdd37(%rip)      # 0xf1b5
leaq 0xa0ee(%rip), %rax      # 0xb573
leaq 0xa0de(%rip), %rdi      # 0xb56a
cmoveq %rax, %rdi
xorl %eax, %eax
callq 0x10b0
leaq 0xae6f(%rip), %rdi      # 0xc30d
jmp 0x155a
leaq 0xaf2a(%rip), %rdi      # 0xc3d4
jmp 0x155a
leaq 0xaefe(%rip), %rdi      # 0xc3b4
jmp 0x155a
movq 0x1a216(%rip), %rsi     # 0x1b6d8
addq 0x1a207(%rip), %rsi     # 0x1b6d0
notq %rsi
addq 0xdcfd(%rip), %rsi      # 0xf1d0
leaq 0xa03a(%rip), %rdi      # 0xb514
xorl %eax, %eax
callq 0x10b0
leaq 0xa04e(%rip), %rdi      # 0xb536
leaq 0x1a1f1(%rip), %rsi     # 0x1b6e0
xorl %eax, %eax
callq 0x10b0
jmp 0x155f
leaq 0xaef5(%rip), %rdi      # 0xc3f4
jmp 0x155a
leaq 0xae57(%rip), %rdi      # 0xc35f
jmp 0x155a
leaq 0xad80(%rip), %rdi      # 0xc291
jmp 0x155a
leaq 0xae1b(%rip), %rdi      # 0xc335
jmp 0x155a
leaq 0xa05a(%rip), %rdi      # 0xb57d
xorl %eax, %eax
callq 0x10b0
cmpb $0x0, 0xdc84(%rip)      # 0xf1b5
leaq 0xa03b(%rip), %rax      # 0xb573
leaq 0xa02b(%rip), %rdi      # 0xb56a
cmoveq %rax, %rdi
xorl %eax, %eax
callq 0x10b0
leaq 0xada2(%rip), %rdi      # 0xc2f3
jmp 0x155a
leaq 0xadbd(%rip), %rdi      # 0xc317
callq 0x1070
cmpb $0x4, %bl
je 0x1587
callq 0x15c4
movl 0x16049(%rip), %edx     # 0x175b8
testq %rdx, %rdx
je 0x1587
movzbl 0x15f3d(%rip), %edi     # 0x174b8
leaq 0x1604e(%rip), %rsi     # 0x175d0
callq 0x1080
movzbl 0x15f2a(%rip), %edi     # 0x174b8
callq 0x10f0
leaq 0x15f1f(%rip), %rdi     # 0x174b9
callq 0x1050
movl $0x1, %edi
callq 0x1170