// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/src/bstub.c
// Function: ExtGetSectorCaption
const char *ExtGetSectorCaption(short sectnum)
{
	if ((sector[sectnum].lotag|sector[sectnum].hitag) == 0)
	{
		tempbuf[0] = 0;
	}
	else
	{
          switch((unsigned short)sector[sectnum].lotag) {
          case 1:
               sprintf(lo,"ACTIVATE SECTOR");
               break;
          case 6:
               sprintf(lo,"RISING DOOR");
               break;
          case 7:
               sprintf(lo,"DROP DOOR");
               break;
          case 8:
               sprintf(lo,"HOR SPLIT DOOR");
               break;
          case 9:
               sprintf(lo,"VER SPLIT DOOR");
               break;
          case 1000:
               sprintf(lo,"PLATFORM ELEVATOR");
               break;
          case 1003:
               sprintf(lo,"BOX ELEVATOR");
               break;
          case 1004:
               sprintf(lo,"PLATFORM W/DELAY");
               break;
          case 1005:
               sprintf(lo,"BOX W/DELAY");
               break;
          default:
               sprintf(lo,"%hu",(unsigned short)sector[sectnum].lotag);
               break;
          }
          sprintf(tempbuf,"%hu,%s",(unsigned short)sector[sectnum].hitag,lo);
	}
	return(tempbuf);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movw %di, %ax
movw %ax, -0x2(%rbp)
movswq -0x2(%rbp), %rcx
leaq 0x275375(%rip), %rax    # 0x2805c0
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movswl 0x22(%rax), %eax
movswq -0x2(%rbp), %rdx
leaq 0x27535e(%rip), %rcx    # 0x2805c0
imulq $0x28, %rdx, %rdx
addq %rdx, %rcx
movswl 0x24(%rcx), %ecx
orl %ecx, %eax
cmpl $0x0, %eax
jne 0xb280
movb $0x0, 0xd6bb5(%rip)     # 0xe1e30
jmp 0xb457
movswq -0x2(%rbp), %rax
leaq (%rax,%rax,4), %rcx
leaq 0x275330(%rip), %rax    # 0x2805c0
movzwl 0x22(%rax,%rcx,8), %eax
movl %eax, -0x8(%rbp)
subl $0x1, %eax
je 0xb31a
jmp 0xb29f
movl -0x8(%rbp), %eax
subl $0x6, %eax
je 0xb334
jmp 0xb2ad
movl -0x8(%rbp), %eax
subl $0x7, %eax
je 0xb34e
jmp 0xb2bb
movl -0x8(%rbp), %eax
subl $0x8, %eax
je 0xb368
jmp 0xb2c9
movl -0x8(%rbp), %eax
subl $0x9, %eax
je 0xb382
jmp 0xb2d7
movl -0x8(%rbp), %eax
subl $0x3e8, %eax            # imm = 0x3E8
je 0xb39c
jmp 0xb2e7
movl -0x8(%rbp), %eax
subl $0x3eb, %eax            # imm = 0x3EB
je 0xb3b3
jmp 0xb2f7
movl -0x8(%rbp), %eax
subl $0x3ec, %eax            # imm = 0x3EC
je 0xb3ca
jmp 0xb307
movl -0x8(%rbp), %eax
subl $0x3ed, %eax            # imm = 0x3ED
je 0xb3e1
jmp 0xb3f8
leaq 0x15ecff(%rip), %rdi    # 0x16a020
leaq 0xa49de(%rip), %rsi     # 0xafd06
movb $0x0, %al
callq 0x6a30
jmp 0xb424
leaq 0x15ece5(%rip), %rdi    # 0x16a020
leaq 0xa49d4(%rip), %rsi     # 0xafd16
movb $0x0, %al
callq 0x6a30
jmp 0xb424
leaq 0x15eccb(%rip), %rdi    # 0x16a020
leaq 0xa49c6(%rip), %rsi     # 0xafd22
movb $0x0, %al
callq 0x6a30
jmp 0xb424
leaq 0x15ecb1(%rip), %rdi    # 0x16a020
leaq 0xa49b6(%rip), %rsi     # 0xafd2c
movb $0x0, %al
callq 0x6a30
jmp 0xb424
leaq 0x15ec97(%rip), %rdi    # 0x16a020
leaq 0xa49ab(%rip), %rsi     # 0xafd3b
movb $0x0, %al
callq 0x6a30
jmp 0xb424
leaq 0x15ec7d(%rip), %rdi    # 0x16a020
leaq 0xa49a0(%rip), %rsi     # 0xafd4a
movb $0x0, %al
callq 0x6a30
jmp 0xb424
leaq 0x15ec66(%rip), %rdi    # 0x16a020
leaq 0xa499b(%rip), %rsi     # 0xafd5c
movb $0x0, %al
callq 0x6a30
jmp 0xb424
leaq 0x15ec4f(%rip), %rdi    # 0x16a020
leaq 0xa4991(%rip), %rsi     # 0xafd69
movb $0x0, %al
callq 0x6a30
jmp 0xb424
leaq 0x15ec38(%rip), %rdi    # 0x16a020
leaq 0xa498b(%rip), %rsi     # 0xafd7a
movb $0x0, %al
callq 0x6a30
jmp 0xb424
movswq -0x2(%rbp), %rcx
leaq 0x2751bc(%rip), %rax    # 0x2805c0
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movzwl 0x22(%rax), %edx
leaq 0x15ec0a(%rip), %rdi    # 0x16a020
leaq 0xa49a2(%rip), %rsi     # 0xafdbf
movb $0x0, %al
callq 0x6a30
movswq -0x2(%rbp), %rcx
leaq 0x275190(%rip), %rax    # 0x2805c0
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movzwl 0x24(%rax), %edx
leaq 0xd69ee(%rip), %rdi     # 0xe1e30
leaq 0xa493d(%rip), %rsi     # 0xafd86
leaq 0x15ebd0(%rip), %rcx    # 0x16a020
movb $0x0, %al
callq 0x6a30
leaq 0xd69d2(%rip), %rax     # 0xe1e30
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)