// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x20, %rsp
movw %di, %ax
movw %ax, -0x2(%rbp)
movb $0x0, 0xd65da(%rip)     # 0xe1e30
movswq -0x2(%rbp), %rcx
leaq 0x2adfae(%rip), %rax    # 0x2b9810
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movswl 0x26(%rax), %eax
movswq -0x2(%rbp), %rdx
leaq 0x2adf97(%rip), %rcx    # 0x2b9810
imulq $0x2c, %rdx, %rdx
addq %rdx, %rcx
movswl 0x28(%rcx), %ecx
orl %ecx, %eax
cmpl $0x0, %eax
jne 0xb8c8
leaq 0x15e78e(%rip), %rsi    # 0x16a020
movswl -0x2(%rbp), %edi
callq 0x6e50
movsbl 0x15e77e(%rip), %eax    # 0x16a020
cmpl $0x0, %eax
je 0xb8c3
leaq 0xd6582(%rip), %rdi     # 0xe1e30
leaq 0xa5146(%rip), %rsi     # 0xb09fb
leaq 0x15e764(%rip), %rdx    # 0x16a020
movb $0x0, %al
callq 0x6a30
jmp 0xbb79
movswq -0x2(%rbp), %rcx
leaq 0x2adf3c(%rip), %rax    # 0x2b9810
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movzwl 0xe(%rax), %eax
cmpl $0x68, %eax
jne 0xbb1d
movswq -0x2(%rbp), %rax
imulq $0x2c, %rax, %rcx
leaq 0x2adf18(%rip), %rax    # 0x2b9810
movq %rax, -0x18(%rbp)
movzwl 0x28(%rax,%rcx), %edx
leaq 0x15e748(%rip), %rdi    # 0x16a050
leaq 0xa44b0(%rip), %rsi     # 0xafdbf
xorl %eax, %eax
callq 0x6a30
movq -0x18(%rbp), %rax
movswq -0x2(%rbp), %rcx
imulq $0x2c, %rcx, %rcx
movzwl 0x26(%rax,%rcx), %eax
addl $0xfffffc18, %eax       # imm = 0xFFFFFC18
movl %eax, %ecx
movq %rcx, -0x10(%rbp)
subl $0x9, %eax
ja 0xbacc
movq -0x10(%rbp), %rax
leaq 0xa379d(%rip), %rcx     # 0xaf0e4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x15e6c9(%rip), %rdi    # 0x16a020
leaq 0xa4465(%rip), %rsi     # 0xafdc3
movb $0x0, %al
callq 0x6a30
jmp 0xbaf8
leaq 0x15e6af(%rip), %rdi    # 0x16a020
leaq 0xa4453(%rip), %rsi     # 0xafdcb
movb $0x0, %al
callq 0x6a30
jmp 0xbaf8
leaq 0x15e695(%rip), %rdi    # 0x16a020
leaq 0xa4444(%rip), %rsi     # 0xafdd6
movb $0x0, %al
callq 0x6a30
jmp 0xbaf8
movswq -0x2(%rbp), %rcx
leaq 0x2ade66(%rip), %rax    # 0x2b9810
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movswl 0x1c(%rax), %edx
leaq 0x15e694(%rip), %rdi    # 0x16a050
leaq 0xa441d(%rip), %rsi     # 0xafde0
movb $0x0, %al
callq 0x6a30
leaq 0x15e64f(%rip), %rdi    # 0x16a020
leaq 0xa440d(%rip), %rsi     # 0xafde5
movb $0x0, %al
callq 0x6a30
jmp 0xbaf8
movswq -0x2(%rbp), %rcx
leaq 0x2ade20(%rip), %rax    # 0x2b9810
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movswl 0x1c(%rax), %edx
leaq 0x15e64e(%rip), %rdi    # 0x16a050
leaq 0xa43d7(%rip), %rsi     # 0xafde0
movb $0x0, %al
callq 0x6a30
leaq 0x15e609(%rip), %rdi    # 0x16a020
leaq 0xa43d5(%rip), %rsi     # 0xafdf3
movb $0x0, %al
callq 0x6a30
jmp 0xbaf8
movswq -0x2(%rbp), %rcx
leaq 0x2addda(%rip), %rax    # 0x2b9810
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movswl 0x1c(%rax), %edx
leaq 0x15e608(%rip), %rdi    # 0x16a050
leaq 0xa4391(%rip), %rsi     # 0xafde0
movb $0x0, %al
callq 0x6a30
leaq 0x15e5c3(%rip), %rdi    # 0x16a020
leaq 0xa439e(%rip), %rsi     # 0xafe02
movb $0x0, %al
callq 0x6a30
jmp 0xbaf8
leaq 0x15e5a9(%rip), %rdi    # 0x16a020
leaq 0xa4395(%rip), %rsi     # 0xafe13
movb $0x0, %al
callq 0x6a30
jmp 0xbaf8
leaq 0x15e592(%rip), %rdi    # 0x16a020
leaq 0xa438e(%rip), %rsi     # 0xafe23
movb $0x0, %al
callq 0x6a30
jmp 0xbaf8
leaq 0x15e57b(%rip), %rdi    # 0x16a020
leaq 0xa4385(%rip), %rsi     # 0xafe31
movb $0x0, %al
callq 0x6a30
jmp 0xbaf8
leaq 0x15e564(%rip), %rdi    # 0x16a020
leaq 0xa437b(%rip), %rsi     # 0xafe3e
movb $0x0, %al
callq 0x6a30
jmp 0xbaf8
movswq -0x2(%rbp), %rcx
leaq 0x2add38(%rip), %rax    # 0x2b9810
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movzwl 0x26(%rax), %edx
leaq 0x15e536(%rip), %rdi    # 0x16a020
leaq 0xa42ce(%rip), %rsi     # 0xafdbf
movb $0x0, %al
callq 0x6a30
leaq 0xd6331(%rip), %rdi     # 0xe1e30
leaq 0xa433d(%rip), %rsi     # 0xafe43
leaq 0x15e543(%rip), %rdx    # 0x16a050
leaq 0x15e50c(%rip), %rcx    # 0x16a020
movb $0x0, %al
callq 0x6a30
jmp 0xbb77
leaq 0x15e4fc(%rip), %rsi    # 0x16a020
movswl -0x2(%rbp), %edi
callq 0x6e50
movswq -0x2(%rbp), %rcx
leaq 0x2adcd7(%rip), %rax    # 0x2b9810
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movzwl 0x28(%rax), %edx
movswq -0x2(%rbp), %rcx
leaq 0x2adcc0(%rip), %rax    # 0x2b9810
imulq $0x2c, %rcx, %rcx
addq %rcx, %rax
movzwl 0x26(%rax), %ecx
leaq 0xd62ce(%rip), %rdi     # 0xe1e30
leaq 0xa42e0(%rip), %rsi     # 0xafe49
leaq 0x15e4b0(%rip), %r8     # 0x16a020
movb $0x0, %al
callq 0x6a30
jmp 0xbb79
leaq 0xd62b0(%rip), %rax     # 0xe1e30
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)