// File: /workspace/github_c_makefile_star2_O1/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), %rax
leaq 0x238969(%rip), %rcx    # 0x242a60
movzwl 0x22(%rcx,%rax,8), %edx
movzwl 0x24(%rcx,%rax,8), %esi
orw %dx, %si
je 0xa136
pushq %rbx
leaq (%rcx,%rax,8), %rbx
leal -0x1(%rdx), %eax
cmpl $0x8, %eax
ja 0xa142
leaq 0x68012(%rip), %rcx     # 0x7212c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movups 0x68c92(%rip), %xmm0    # 0x72dbc
movaps %xmm0, 0x12279f(%rip)   # 0x12c8d0
jmp 0xa263
movb $0x0, 0x9a5a3(%rip)     # 0xa46e0
jmp 0xa284
leal -0x3e8(%rdx), %eax
cmpl $0x5, %eax
ja 0xa1f6
leaq 0x67ff8(%rip), %rcx     # 0x72150
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movups 0x68c98(%rip), %xmm0    # 0x72e00
movaps %xmm0, 0x122761(%rip)   # 0x12c8d0
movw $0x52, 0x122768(%rip)   # 0x12c8e0
jmp 0xa263
movabsq $0x4f4f4420504f5244, %rax # imm = 0x4F4F4420504F5244
movq %rax, 0x122742(%rip)    # 0x12c8d0
movw $0x52, 0x122741(%rip)   # 0x12c8d8
jmp 0xa263
movabsq $0x524f4f44205449, %rax # imm = 0x524F4F44205449
movq %rax, 0x12272a(%rip)    # 0x12c8d7
movabsq $0x494c505320524f48, %rax # imm = 0x494C505320524F48
jmp 0xa23f
movabsq $0x524f4f44205449, %rax # imm = 0x524F4F44205449
movq %rax, 0x12270a(%rip)    # 0x12c8d7
movabsq $0x494c505320524556, %rax # imm = 0x494C505320524556
jmp 0xa23f
movabsq $0x4420474e49534952, %rax # imm = 0x4420474E49534952
movq %rax, 0x1226e6(%rip)    # 0x12c8d0
movl $0x524f4f, 0x1226e4(%rip) # imm = 0x524F4F
jmp 0xa263
leaq 0x1226d3(%rip), %rdi    # 0x12c8d0
leaq 0x68c59(%rip), %rsi     # 0x72e5d
xorl %eax, %eax
callq 0x6b00
jmp 0xa263
movups 0x68c0b(%rip), %xmm0    # 0x72e1f
movaps %xmm0, 0x1226b5(%rip)   # 0x12c8d0
movb $0x0, 0x1226be(%rip)    # 0x12c8e0
jmp 0xa263
movabsq $0x524f544156454c, %rax # imm = 0x524F544156454C
movq %rax, 0x1226a0(%rip)    # 0x12c8d5
movabsq $0x56454c4520584f42, %rax # imm = 0x56454C4520584F42
movq %rax, 0x12268a(%rip)    # 0x12c8d0
jmp 0xa263
movabsq $0x45442f5720584f42, %rax # imm = 0x45442F5720584F42
movq %rax, 0x122677(%rip)    # 0x12c8d0
movl $0x59414c, 0x122675(%rip) # imm = 0x59414C
movzwl 0x24(%rbx), %edx
leaq 0x9a472(%rip), %rdi     # 0xa46e0
leaq 0x68bc7(%rip), %rsi     # 0x72e3c
leaq 0x122654(%rip), %rcx    # 0x12c8d0
xorl %eax, %eax
callq 0x6b00
popq %rbx
leaq 0x9a455(%rip), %rax     # 0xa46e0
retq