// File: /workspace/github_c_makefile_star2_O3/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:
movslq %edi, %rax
leaq (%rax,%rax,4), %rcx
leaq 0x2397e6(%rip), %rsi    # 0x243a60
movzwl 0x22(%rsi,%rcx,8), %edx
movzwl 0x24(%rsi,%rcx,8), %eax
movl %eax, %edi
orw %dx, %di
je 0xa2b7
pushq %rbx
leal -0x1(%rdx), %edi
cmpl $0x8, %edi
ja 0xa2c3
leaq 0x68e91(%rip), %r8      # 0x7312c
movslq (%r8,%rdi,4), %rdi
addq %r8, %rdi
jmpq *%rdi
movups 0x69b5d(%rip), %xmm0    # 0x73e08
movaps %xmm0, 0x12361e(%rip)   # 0x12d8d0
jmp 0xa3ec
movb $0x0, 0x9b422(%rip)     # 0xa56e0
jmp 0xa40c
leal -0x3e8(%rdx), %edi
cmpl $0x5, %edi
ja 0xa377
leaq 0x68e77(%rip), %r8      # 0x73150
movslq (%r8,%rdi,4), %rdi
addq %r8, %rdi
jmpq *%rdi
movups 0x69b63(%rip), %xmm0    # 0x73e4c
movaps %xmm0, 0x1235e0(%rip)   # 0x12d8d0
movw $0x52, 0x1235e7(%rip)   # 0x12d8e0
jmp 0xa3ec
movabsq $0x4f4f4420504f5244, %rcx # imm = 0x4F4F4420504F5244
movq %rcx, 0x1235c1(%rip)    # 0x12d8d0
movw $0x52, 0x1235c0(%rip)   # 0x12d8d8
jmp 0xa3ec
movabsq $0x524f4f44205449, %rcx # imm = 0x524F4F44205449
movq %rcx, 0x1235a9(%rip)    # 0x12d8d7
movabsq $0x494c505320524f48, %rcx # imm = 0x494C505320524F48
jmp 0xa3c8
movabsq $0x524f4f44205449, %rcx # imm = 0x524F4F44205449
movq %rcx, 0x123589(%rip)    # 0x12d8d7
movabsq $0x494c505320524556, %rcx # imm = 0x494C505320524556
jmp 0xa3c8
movabsq $0x4420474e49534952, %rcx # imm = 0x4420474E49534952
movq %rcx, 0x123565(%rip)    # 0x12d8d0
movl $0x524f4f, 0x123563(%rip) # imm = 0x524F4F
jmp 0xa3ec
leaq (%rsi,%rcx,8), %rbx
leaq 0x12354e(%rip), %rdi    # 0x12d8d0
leaq 0x69b20(%rip), %rsi     # 0x73ea9
xorl %eax, %eax
callq 0x6b00
movzwl 0x24(%rbx), %eax
jmp 0xa3ec
movups 0x69ace(%rip), %xmm0    # 0x73e6b
movaps %xmm0, 0x12352c(%rip)   # 0x12d8d0
movb $0x0, 0x123535(%rip)    # 0x12d8e0
jmp 0xa3ec
movabsq $0x524f544156454c, %rcx # imm = 0x524F544156454C
movq %rcx, 0x123517(%rip)    # 0x12d8d5
movabsq $0x56454c4520584f42, %rcx # imm = 0x56454C4520584F42
movq %rcx, 0x123501(%rip)    # 0x12d8d0
jmp 0xa3ec
movabsq $0x45442f5720584f42, %rcx # imm = 0x45442F5720584F42
movq %rcx, 0x1234ee(%rip)    # 0x12d8d0
movl $0x59414c, 0x1234ec(%rip) # imm = 0x59414C
movzwl %ax, %edx
leaq 0x9b2ea(%rip), %rdi     # 0xa56e0
leaq 0x69a8b(%rip), %rsi     # 0x73e88
leaq 0x1234cc(%rip), %rcx    # 0x12d8d0
xorl %eax, %eax
callq 0x6b00
popq %rbx
leaq 0x9b2cd(%rip), %rax     # 0xa56e0
retq