// File: /workspace/github_c_makefile_star2_O2/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 %rbx
movslq %edi, %rax
imulq $0x28, %rax, %rcx
leaq 0x23339c(%rip), %rbx    # 0x23ca60
movzwl 0x22(%rbx,%rcx), %edx
movzwl 0x24(%rbx,%rcx), %eax
movl %eax, %esi
orw %dx, %si
je 0x9700
leal -0x1(%rdx), %esi
cmpl $0x8, %esi
ja 0x970c
leaq 0x5ea48(%rip), %rdi     # 0x6812c
movslq (%rdi,%rsi,4), %rsi
addq %rdi, %rsi
jmpq *%rsi
movups 0x5f6d2(%rip), %xmm0    # 0x68dc6
movaps %xmm0, 0x11d1d5(%rip)   # 0x1268d0
jmp 0x9834
movb $0x0, 0x94fd9(%rip)     # 0x9e6e0
jmp 0x9853
leal -0x3e8(%rdx), %esi
cmpl $0x5, %esi
ja 0x97c0
leaq 0x5ea2e(%rip), %rdi     # 0x68150
movslq (%rdi,%rsi,4), %rsi
addq %rdi, %rsi
jmpq *%rsi
movups 0x5f6d8(%rip), %xmm0    # 0x68e0a
movaps %xmm0, 0x11d197(%rip)   # 0x1268d0
movw $0x52, 0x11d19e(%rip)   # 0x1268e0
jmp 0x9834
movabsq $0x4f4f4420504f5244, %rcx # imm = 0x4F4F4420504F5244
movq %rcx, 0x11d178(%rip)    # 0x1268d0
movw $0x52, 0x11d177(%rip)   # 0x1268d8
jmp 0x9834
movabsq $0x524f4f44205449, %rcx # imm = 0x524F4F44205449
movq %rcx, 0x11d160(%rip)    # 0x1268d7
movabsq $0x494c505320524f48, %rcx # imm = 0x494C505320524F48
jmp 0x9810
movabsq $0x524f4f44205449, %rcx # imm = 0x524F4F44205449
movq %rcx, 0x11d140(%rip)    # 0x1268d7
movabsq $0x494c505320524556, %rcx # imm = 0x494C505320524556
jmp 0x9810
movabsq $0x4420474e49534952, %rcx # imm = 0x4420474E49534952
movq %rcx, 0x11d11c(%rip)    # 0x1268d0
movl $0x524f4f, 0x11d11a(%rip) # imm = 0x524F4F
jmp 0x9834
addq %rcx, %rbx
leaq 0x11d106(%rip), %rdi    # 0x1268d0
leaq 0x5f696(%rip), %rsi     # 0x68e67
xorl %eax, %eax
callq 0x6b00
movzwl 0x24(%rbx), %eax
jmp 0x9834
movups 0x5f644(%rip), %xmm0    # 0x68e29
movaps %xmm0, 0x11d0e4(%rip)   # 0x1268d0
movb $0x0, 0x11d0ed(%rip)    # 0x1268e0
jmp 0x9834
movabsq $0x524f544156454c, %rcx # imm = 0x524F544156454C
movq %rcx, 0x11d0cf(%rip)    # 0x1268d5
movabsq $0x56454c4520584f42, %rcx # imm = 0x56454C4520584F42
movq %rcx, 0x11d0b9(%rip)    # 0x1268d0
jmp 0x9834
movabsq $0x45442f5720584f42, %rcx # imm = 0x45442F5720584F42
movq %rcx, 0x11d0a6(%rip)    # 0x1268d0
movl $0x59414c, 0x11d0a4(%rip) # imm = 0x59414C
movzwl %ax, %edx
leaq 0x94ea2(%rip), %rdi     # 0x9e6e0
leaq 0x5f601(%rip), %rsi     # 0x68e46
leaq 0x11d084(%rip), %rcx    # 0x1268d0
xorl %eax, %eax
callq 0x6b00
leaq 0x94e86(%rip), %rax     # 0x9e6e0
popq %rbx
retq