// File: /workspace/github_c_makefile_star2_O3/jonof[P]jftekwar/src/bstub.c
// Function: ExtGetSpriteCaption
const char *ExtGetSpriteCaption(short spritenum)
{
     tempbuf[0]=0;
     if ((sprite[spritenum].lotag|sprite[spritenum].hitag) == 0) {
          SpriteName(spritenum,lo);
          if (lo[0] != 0) {
               sprintf(tempbuf,"%s",lo);
          }
     }
     else if ((unsigned short)sprite[spritenum].picnum == 104) {
          sprintf(hi,"%hu",(unsigned short)sprite[spritenum].hitag);
          switch((unsigned short)sprite[spritenum].lotag) {
          case 1000:
               sprintf(lo,"PULSING");
               break;
          case 1001:
               sprintf(lo,"FLICKERING");
               break;
          case 1002:
               sprintf(lo,"TIC DELAY");
               break;
          case 1003:
               sprintf(hi,"A=%d",sprite[spritenum].ang);
               sprintf(lo,"PANNING WALLS");
               break;
          case 1004:
               sprintf(hi,"A=%d",sprite[spritenum].ang);
               sprintf(lo,"PANNING FLOORS");
               break;
          case 1005:
               sprintf(hi,"A=%d",sprite[spritenum].ang);
               sprintf(lo,"PANNING CEILINGS");
               break;
          case 1006:
               sprintf(lo,"FLICKER W/DELAY");
               break;
          case 1007:
               sprintf(lo,"BLINK W/DELAY");
               break;
          case 1008:
               sprintf(lo,"STEADY LIGHT");
               break;
          case 1009:
               sprintf(lo,"WARP");
               break;
          default:
               sprintf(lo,"%hu",(unsigned short)sprite[spritenum].lotag);
               break;
          }
          sprintf(tempbuf,"%s,%s",hi,lo);
     }
     else {
          SpriteName(spritenum,lo);
          sprintf(tempbuf,"%hu,%hu %s",(unsigned short)sprite[spritenum].hitag,
                                   (unsigned short)sprite[spritenum].lotag,lo);
     }
	return(tempbuf);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movb $0x0, 0x9b237(%rip)     # 0xa56e0
movslq %edi, %rax
imulq $0x2c, %rax, %rax
leaq 0x2727f9(%rip), %r14    # 0x27ccb0
movzwl 0x26(%r14,%rax), %ebp
movzwl 0x28(%r14,%rax), %ebx
movl %ebx, %ecx
orl %ebp, %ecx
je 0xa525
addq %rax, %r14
movswq 0xe(%r14), %rax
cmpq $0x68, %rax
jne 0xa56a
leaq 0x12340e(%rip), %rdi    # 0x12d8f0
leaq 0x699c0(%rip), %rsi     # 0x73ea9
movl %ebx, %edx
xorl %eax, %eax
callq 0x6b00
movzwl 0x26(%r14), %edx
leal -0x3e8(%rdx), %eax
cmpl $0x9, %eax
ja 0xa6de
leaq 0x68c5b(%rip), %rcx     # 0x73168
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movabsq $0x474e49534c5550, %rax # imm = 0x474E49534C5550
jmp 0xa710
movswq 0xe(%r14,%rax), %rax
leaq (%rax,%rax,4), %rax
leaq (%rax,%rax,4), %rsi
addq 0x88aa6(%rip), %rsi     # 0x92fe0
leaq 0x12338f(%rip), %rdi    # 0x12d8d0
callq 0x6430
cmpb $0x0, 0x123383(%rip)    # 0x12d8d0
je 0xa73a
leaq 0x9b186(%rip), %rdi     # 0xa56e0
leaq 0x12336f(%rip), %rsi    # 0x12d8d0
popq %rbx
popq %r14
popq %rbp
jmp 0x6430
leaq (%rax,%rax,4), %rax
leaq (%rax,%rax,4), %rsi
addq 0x88a67(%rip), %rsi     # 0x92fe0
leaq 0x123350(%rip), %r14    # 0x12d8d0
movq %r14, %rdi
callq 0x6430
leaq 0x9b151(%rip), %rdi     # 0xa56e0
leaq 0x69995(%rip), %rsi     # 0x73f2b
movl %ebx, %edx
movl %ebp, %ecx
movq %r14, %r8
xorl %eax, %eax
callq 0x6b00
jmp 0xa73a
movswl 0x1c(%r14), %edx
leaq 0x12333b(%rip), %rdi    # 0x12d8f0
leaq 0x69906(%rip), %rsi     # 0x73ec2
xorl %eax, %eax
callq 0x6b00
movabsq $0x20474e494e4e4150, %rax # imm = 0x20474E494E4E4150
movq %rax, 0x1232fc(%rip)    # 0x12d8d0
movabsq $0x53524f4f4c4620, %rax # imm = 0x53524F4F4C4620
movq %rax, 0x1232f2(%rip)    # 0x12d8d7
jmp 0xa717
movb $0x0, 0x1232e3(%rip)    # 0x12d8d4
movl $0x50524157, 0x1232d5(%rip) # imm = 0x50524157
jmp 0xa717
movabsq $0x414c454420434954, %rax # imm = 0x414C454420434954
movq %rax, 0x1232bf(%rip)    # 0x12d8d0
movw $0x59, 0x1232be(%rip)   # 0x12d8d8
jmp 0xa717
movswl 0x1c(%r14), %edx
leaq 0x1232c5(%rip), %rdi    # 0x12d8f0
leaq 0x69890(%rip), %rsi     # 0x73ec2
xorl %eax, %eax
callq 0x6b00
movabsq $0x20474e494e4e4150, %rax # imm = 0x20474E494E4E4150
movq %rax, 0x123286(%rip)    # 0x12d8d0
movabsq $0x534c4c41572047, %rax # imm = 0x534C4C41572047
movq %rax, 0x12327b(%rip)    # 0x12d8d6
jmp 0xa717
movabsq $0x59414c45442f57, %rax # imm = 0x59414C45442F57
movq %rax, 0x123265(%rip)    # 0x12d8d6
movabsq $0x2f57204b4e494c42, %rax # imm = 0x2F57204B4E494C42
jmp 0xa710
movabsq $0x4952454b43494c46, %rax # imm = 0x4952454B43494C46
movq %rax, 0x12323f(%rip)    # 0x12d8d0
movl $0x474e49, 0x12323c(%rip) # imm = 0x474E49
jmp 0xa717
movswl 0x1c(%r14), %edx
leaq 0x123247(%rip), %rdi    # 0x12d8f0
leaq 0x69812(%rip), %rsi     # 0x73ec2
xorl %eax, %eax
callq 0x6b00
movups 0x69826(%rip), %xmm0    # 0x73ee4
movaps %xmm0, 0x12320b(%rip)   # 0x12d8d0
movb $0x0, 0x123214(%rip)    # 0x12d8e0
jmp 0xa717
movups 0x69820(%rip), %xmm0    # 0x73ef5
movaps %xmm0, 0x1231f4(%rip)   # 0x12d8d0
jmp 0xa717
leaq 0x1231eb(%rip), %rdi    # 0x12d8d0
leaq 0x697bd(%rip), %rsi     # 0x73ea9
xorl %eax, %eax
callq 0x6b00
jmp 0xa717
movabsq $0x544847494c2059, %rax # imm = 0x544847494C2059
movq %rax, 0x1231cf(%rip)    # 0x12d8d5
movabsq $0x4c20594441455453, %rax # imm = 0x4C20594441455453
movq %rax, 0x1231b9(%rip)    # 0x12d8d0
leaq 0x9afc2(%rip), %rdi     # 0xa56e0
leaq 0x69800(%rip), %rsi     # 0x73f25
leaq 0x1231c4(%rip), %rdx    # 0x12d8f0
leaq 0x12319d(%rip), %rcx    # 0x12d8d0
xorl %eax, %eax
callq 0x6b00
leaq 0x9af9f(%rip), %rax     # 0xa56e0
popq %rbx
popq %r14
popq %rbp
retq