// File: /workspace/github_c_makefile_star2_O2/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 %r14
pushq %rbx
pushq %rax
movb $0x0, 0x94def(%rip)     # 0x9e6e0
movslq %edi, %rax
imulq $0x2c, %rax, %rax
leaq 0x26c3b1(%rip), %r14    # 0x275cb0
movzwl 0x28(%r14,%rax), %edx
movzwl 0x26(%r14,%rax), %ecx
orw %dx, %cx
je 0x9963
addq %rax, %r14
cmpw $0x68, 0xe(%r14)
jne 0x9999
leaq 0x11cfce(%rip), %rdi    # 0x1268f0
leaq 0x5f53e(%rip), %rsi     # 0x68e67
xorl %eax, %eax
callq 0x6b00
movzwl 0x26(%r14), %edx
leal -0x3e8(%rdx), %eax
cmpl $0x9, %eax
ja 0x9b07
leaq 0x5e81d(%rip), %rcx     # 0x68168
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movabsq $0x474e49534c5550, %rax # imm = 0x474E49534C5550
jmp 0x9b39
movswl %di, %edi
leaq 0x11cf63(%rip), %rsi    # 0x1268d0
callq 0x6ee1
cmpb $0x0, 0x11cf57(%rip)    # 0x1268d0
je 0x9b63
leaq 0x94d5a(%rip), %rdi     # 0x9e6e0
leaq 0x11cf43(%rip), %rsi    # 0x1268d0
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x6430
movswl %di, %edi
leaq 0x11cf2d(%rip), %rbx    # 0x1268d0
movq %rbx, %rsi
callq 0x6ee1
movzwl 0x28(%r14), %edx
movzwl 0x26(%r14), %ecx
leaq 0x94d24(%rip), %rdi     # 0x9e6e0
leaq 0x5f526(%rip), %rsi     # 0x68ee9
movq %rbx, %r8
xorl %eax, %eax
callq 0x6b00
jmp 0x9b63
movswl 0x1c(%r14), %edx
leaq 0x11cf12(%rip), %rdi    # 0x1268f0
leaq 0x5f49b(%rip), %rsi     # 0x68e80
xorl %eax, %eax
callq 0x6b00
movabsq $0x20474e494e4e4150, %rax # imm = 0x20474E494E4E4150
movq %rax, 0x11ced3(%rip)    # 0x1268d0
movabsq $0x53524f4f4c4620, %rax # imm = 0x53524F4F4C4620
movq %rax, 0x11cec9(%rip)    # 0x1268d7
jmp 0x9b40
movb $0x0, 0x11ceba(%rip)    # 0x1268d4
movl $0x50524157, 0x11ceac(%rip) # imm = 0x50524157
jmp 0x9b40
movabsq $0x414c454420434954, %rax # imm = 0x414C454420434954
movq %rax, 0x11ce96(%rip)    # 0x1268d0
movw $0x59, 0x11ce95(%rip)   # 0x1268d8
jmp 0x9b40
movswl 0x1c(%r14), %edx
leaq 0x11ce9c(%rip), %rdi    # 0x1268f0
leaq 0x5f425(%rip), %rsi     # 0x68e80
xorl %eax, %eax
callq 0x6b00
movabsq $0x20474e494e4e4150, %rax # imm = 0x20474E494E4E4150
movq %rax, 0x11ce5d(%rip)    # 0x1268d0
movabsq $0x534c4c41572047, %rax # imm = 0x534C4C41572047
movq %rax, 0x11ce52(%rip)    # 0x1268d6
jmp 0x9b40
movabsq $0x59414c45442f57, %rax # imm = 0x59414C45442F57
movq %rax, 0x11ce3c(%rip)    # 0x1268d6
movabsq $0x2f57204b4e494c42, %rax # imm = 0x2F57204B4E494C42
jmp 0x9b39
movabsq $0x4952454b43494c46, %rax # imm = 0x4952454B43494C46
movq %rax, 0x11ce16(%rip)    # 0x1268d0
movl $0x474e49, 0x11ce13(%rip) # imm = 0x474E49
jmp 0x9b40
movswl 0x1c(%r14), %edx
leaq 0x11ce1e(%rip), %rdi    # 0x1268f0
leaq 0x5f3a7(%rip), %rsi     # 0x68e80
xorl %eax, %eax
callq 0x6b00
movups 0x5f3bb(%rip), %xmm0    # 0x68ea2
movaps %xmm0, 0x11cde2(%rip)   # 0x1268d0
movb $0x0, 0x11cdeb(%rip)    # 0x1268e0
jmp 0x9b40
movups 0x5f3b5(%rip), %xmm0    # 0x68eb3
movaps %xmm0, 0x11cdcb(%rip)   # 0x1268d0
jmp 0x9b40
leaq 0x11cdc2(%rip), %rdi    # 0x1268d0
leaq 0x5f352(%rip), %rsi     # 0x68e67
xorl %eax, %eax
callq 0x6b00
jmp 0x9b40
movabsq $0x544847494c2059, %rax # imm = 0x544847494C2059
movq %rax, 0x11cda6(%rip)    # 0x1268d5
movabsq $0x4c20594441455453, %rax # imm = 0x4C20594441455453
movq %rax, 0x11cd90(%rip)    # 0x1268d0
leaq 0x94b99(%rip), %rdi     # 0x9e6e0
leaq 0x5f395(%rip), %rsi     # 0x68ee3
leaq 0x11cd9b(%rip), %rdx    # 0x1268f0
leaq 0x11cd74(%rip), %rcx    # 0x1268d0
xorl %eax, %eax
callq 0x6b00
leaq 0x94b76(%rip), %rax     # 0x9e6e0
addq $0x8, %rsp
popq %rbx
popq %r14
retq