// File: /workspace/github_c_makefile_star2_O1/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, 0x9a3bf(%rip)     # 0xa46e0
movslq %edi, %rax
imulq $0x2c, %rax, %rax
leaq 0x271981(%rip), %rcx    # 0x27bcb0
movzwl 0x26(%rcx,%rax), %ebp
movzwl 0x28(%rcx,%rax), %ebx
movl %ebx, %edx
orl %ebp, %edx
je 0xa399
leaq (%rcx,%rax), %r14
cmpw $0x68, 0xe(%r14)
jne 0xa3de
leaq 0x12259a(%rip), %rdi    # 0x12c8f0
leaq 0x68b00(%rip), %rsi     # 0x72e5d
movl %ebx, %edx
xorl %eax, %eax
callq 0x6b00
movzwl 0x26(%r14), %edx
leal -0x3e8(%rdx), %eax
cmpl $0x9, %eax
ja 0xa558
leaq 0x67de7(%rip), %rcx     # 0x72168
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movabsq $0x474e49534c5550, %rax # imm = 0x474E49534C5550
jmp 0xa58a
movswq 0xe(%rcx,%rax), %rax
leaq (%rax,%rax,4), %rax
leaq (%rax,%rax,4), %rsi
addq 0x87c32(%rip), %rsi     # 0x91fe0
leaq 0x12251b(%rip), %rdi    # 0x12c8d0
callq 0x6430
cmpb $0x0, 0x12250f(%rip)    # 0x12c8d0
je 0xa5b4
leaq 0x9a312(%rip), %rdi     # 0xa46e0
leaq 0x1224fb(%rip), %rsi    # 0x12c8d0
popq %rbx
popq %r14
popq %rbp
jmp 0x6430
movswq 0xe(%rcx,%rax), %rax
leaq (%rax,%rax,4), %rax
leaq (%rax,%rax,4), %rsi
addq 0x87bed(%rip), %rsi     # 0x91fe0
leaq 0x1224d6(%rip), %r14    # 0x12c8d0
movq %r14, %rdi
callq 0x6430
leaq 0x9a2d7(%rip), %rdi     # 0xa46e0
leaq 0x68acf(%rip), %rsi     # 0x72edf
movl %ebx, %edx
movl %ebp, %ecx
movq %r14, %r8
xorl %eax, %eax
callq 0x6b00
jmp 0xa5b4
movswl 0x1c(%r14), %edx
leaq 0x1224c1(%rip), %rdi    # 0x12c8f0
leaq 0x68a40(%rip), %rsi     # 0x72e76
xorl %eax, %eax
callq 0x6b00
movabsq $0x20474e494e4e4150, %rax # imm = 0x20474E494E4E4150
movq %rax, 0x122482(%rip)    # 0x12c8d0
movabsq $0x53524f4f4c4620, %rax # imm = 0x53524F4F4C4620
movq %rax, 0x122478(%rip)    # 0x12c8d7
jmp 0xa591
movb $0x0, 0x122469(%rip)    # 0x12c8d4
movl $0x50524157, 0x12245b(%rip) # imm = 0x50524157
jmp 0xa591
movabsq $0x414c454420434954, %rax # imm = 0x414C454420434954
movq %rax, 0x122445(%rip)    # 0x12c8d0
movw $0x59, 0x122444(%rip)   # 0x12c8d8
jmp 0xa591
movswl 0x1c(%r14), %edx
leaq 0x12244b(%rip), %rdi    # 0x12c8f0
leaq 0x689ca(%rip), %rsi     # 0x72e76
xorl %eax, %eax
callq 0x6b00
movabsq $0x20474e494e4e4150, %rax # imm = 0x20474E494E4E4150
movq %rax, 0x12240c(%rip)    # 0x12c8d0
movabsq $0x534c4c41572047, %rax # imm = 0x534C4C41572047
movq %rax, 0x122401(%rip)    # 0x12c8d6
jmp 0xa591
movabsq $0x59414c45442f57, %rax # imm = 0x59414C45442F57
movq %rax, 0x1223eb(%rip)    # 0x12c8d6
movabsq $0x2f57204b4e494c42, %rax # imm = 0x2F57204B4E494C42
jmp 0xa58a
movabsq $0x4952454b43494c46, %rax # imm = 0x4952454B43494C46
movq %rax, 0x1223c5(%rip)    # 0x12c8d0
movl $0x474e49, 0x1223c2(%rip) # imm = 0x474E49
jmp 0xa591
movswl 0x1c(%r14), %edx
leaq 0x1223cd(%rip), %rdi    # 0x12c8f0
leaq 0x6894c(%rip), %rsi     # 0x72e76
xorl %eax, %eax
callq 0x6b00
movups 0x68960(%rip), %xmm0    # 0x72e98
movaps %xmm0, 0x122391(%rip)   # 0x12c8d0
movb $0x0, 0x12239a(%rip)    # 0x12c8e0
jmp 0xa591
movups 0x6895a(%rip), %xmm0    # 0x72ea9
movaps %xmm0, 0x12237a(%rip)   # 0x12c8d0
jmp 0xa591
leaq 0x122371(%rip), %rdi    # 0x12c8d0
leaq 0x688f7(%rip), %rsi     # 0x72e5d
xorl %eax, %eax
callq 0x6b00
jmp 0xa591
movabsq $0x544847494c2059, %rax # imm = 0x544847494C2059
movq %rax, 0x122355(%rip)    # 0x12c8d5
movabsq $0x4c20594441455453, %rax # imm = 0x4C20594441455453
movq %rax, 0x12233f(%rip)    # 0x12c8d0
leaq 0x9a148(%rip), %rdi     # 0xa46e0
leaq 0x6893a(%rip), %rsi     # 0x72ed9
leaq 0x12234a(%rip), %rdx    # 0x12c8f0
leaq 0x122323(%rip), %rcx    # 0x12c8d0
xorl %eax, %eax
callq 0x6b00
leaq 0x9a125(%rip), %rax     # 0xa46e0
popq %rbx
popq %r14
popq %rbp
retq