// File: /workspace/github_c_makefile_star2_O0/mincebert[P]maketzx/maketzx.c
// Function: WriteTZXGroupStart
void WriteTZXGroupStart(void)
{
  byte count;
  byte ldrtype=((header.type)&0xf0)/0x10,block=(header.type)&0x0f;
  char bnum[2];
  itoa(block,bnum,10);
  if (!ldrtype)
     {
       switch (block)
	      {
		case 0x0a : strcpy(groupname,"Decryption Beeps\0"); break;
		case 0x0b : strcpy(groupname,"Decryption Waves\0"); break;
		case 0x0c : strcpy(groupname,"Decryption Tone\0"); break;
	      }
     }
  if (ldrtype>=1 && ldrtype<=7)
     {
       char stype[2];
       itoa(ldrtype,stype,10);
       strcpy(groupname,"Speedlock ");
       strcat(groupname,stype);
     }
  if (ldrtype==9)
     { strcpy(groupname,"Bleepload"); }
  if (ldrtype==0x0b)
     { strcpy(groupname,"ZetaLoad"); }
  if (ldrtype)
     {
       strcat(groupname," Block ");
       strcat(groupname,bnum);
       strcat(groupname,"\0");
     }
  groupstart[1]=strlen(groupname);
  for (count=0; count<sizeof(groupstart); count++) PutData(&outfile,groupstart[count],1);
  for (count=0; count<groupstart[1]; count++) PutData(&outfile,groupname[count],1);
}

// Assembly:
subq $0x18, %rsp
movzbl 0x15275(%rip), %eax     # 0x1fbd0
andl $0xf0, %eax
movl $0x10, %ecx
cltd
idivl %ecx
movb %al, 0x16(%rsp)
movzbl 0x1525d(%rip), %eax     # 0x1fbd0
andl $0xf, %eax
movb %al, 0x15(%rsp)
movzbl 0x15(%rsp), %edi
leaq 0x13(%rsp), %rsi
movl $0xa, %edx
callq 0x1250
cmpb $0x0, 0x16(%rsp)
jne 0xa9fa
movzbl 0x15(%rsp), %eax
movl %eax, 0xc(%rsp)
subl $0xa, %eax
je 0xa9bb
jmp 0xa9a5
movl 0xc(%rsp), %eax
subl $0xb, %eax
je 0xa9d0
jmp 0xa9b0
movl 0xc(%rsp), %eax
subl $0xc, %eax
je 0xa9e5
jmp 0xa9f8
leaq 0x1586e(%rip), %rdi     # 0x20230
leaq 0x4fa1(%rip), %rsi      # 0xf96a
callq 0x1050
jmp 0xa9f8
leaq 0x15859(%rip), %rdi     # 0x20230
leaq 0x4f9e(%rip), %rsi      # 0xf97c
callq 0x1050
jmp 0xa9f8
leaq 0x15844(%rip), %rdi     # 0x20230
leaq 0x4f9b(%rip), %rsi      # 0xf98e
callq 0x1050
jmp 0xa9fa
movzbl 0x16(%rsp), %eax
cmpl $0x1, %eax
jl 0xaa46
movzbl 0x16(%rsp), %eax
cmpl $0x7, %eax
jg 0xaa46
movzbl 0x16(%rsp), %edi
leaq 0x11(%rsp), %rsi
movl $0xa, %edx
callq 0x1250
leaq 0x15807(%rip), %rdi     # 0x20230
leaq 0x6212(%rip), %rsi      # 0x10c42
callq 0x1050
leaq 0x11(%rsp), %rsi
leaq 0x157ef(%rip), %rdi     # 0x20230
callq 0x1130
movzbl 0x16(%rsp), %eax
cmpl $0x9, %eax
jne 0xaa63
leaq 0x157d9(%rip), %rdi     # 0x20230
leaq 0x61ef(%rip), %rsi      # 0x10c4d
callq 0x1050
movzbl 0x16(%rsp), %eax
cmpl $0xb, %eax
jne 0xaa80
leaq 0x157bc(%rip), %rdi     # 0x20230
leaq 0x530d(%rip), %rsi      # 0xfd88
callq 0x1050
cmpb $0x0, 0x16(%rsp)
je 0xaabe
leaq 0x157a2(%rip), %rdi     # 0x20230
leaq 0x61c2(%rip), %rsi      # 0x10c57
callq 0x1130
leaq 0x13(%rsp), %rsi
leaq 0x1578a(%rip), %rdi     # 0x20230
callq 0x1130
leaq 0x1577e(%rip), %rdi     # 0x20230
leaq 0x4ee6(%rip), %rsi      # 0xf99f
callq 0x1130
leaq 0x1576b(%rip), %rdi     # 0x20230
callq 0x1080
movb %al, 0x8699(%rip)       # 0x13169
movb $0x0, 0x17(%rsp)
movzbl 0x17(%rsp), %eax
cmpq $0x2, %rax
jae 0xab0f
movzbl 0x17(%rsp), %eax
movl %eax, %ecx
leaq 0xc88a(%rip), %rdi      # 0x17378
movl $0x1, %edx
leaq 0x866e(%rip), %rax      # 0x13168
movzbl (%rax,%rcx), %esi
callq 0x2440
movb 0x17(%rsp), %al
addb $0x1, %al
movb %al, 0x17(%rsp)
jmp 0xaad5
movb $0x0, 0x17(%rsp)
movzbl 0x17(%rsp), %eax
movzbl 0x8649(%rip), %ecx      # 0x13169
cmpl %ecx, %eax
jge 0xab53
movzbl 0x17(%rsp), %eax
movl %eax, %ecx
leaq 0xc846(%rip), %rdi      # 0x17378
movl $0x1, %edx
leaq 0x156f2(%rip), %rax     # 0x20230
movzbl (%rax,%rcx), %esi
callq 0x2440
movb 0x17(%rsp), %al
addb $0x1, %al
movb %al, 0x17(%rsp)
jmp 0xab14
addq $0x18, %rsp
retq
nopl (%rax,%rax)