// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/build.c
// Function: showspritedata
void showspritedata(short spritenum)
{
	char snotbuf[80];

	setstatusbarviewport16();

	Bsprintf(snotbuf,"Sprite %d",spritenum);
	printext16(8,32,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"X-coordinate: %d",sprite[spritenum].x);
	printext16(8,48,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Y-coordinate: %d",sprite[spritenum].y);
	printext16(8,56,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Z-coordinate: %d",sprite[spritenum].z);
	printext16(8,64,11,-1,snotbuf,0);

	Bsprintf(snotbuf,"Sectnum: %d",sprite[spritenum].sectnum);
	printext16(8,72,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Statnum: %d",sprite[spritenum].statnum);
	printext16(8,80,11,-1,snotbuf,0);

	Bsprintf(snotbuf,"Tags: %d, %d",sprite[spritenum].hitag,sprite[spritenum].lotag);
	printext16(8,96,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"     (0x%x), (0x%x)",sprite[spritenum].hitag,sprite[spritenum].lotag);
	printext16(8,104,11,-1,snotbuf,0);

	printext16(200,32,11,-1,names[sprite[spritenum].picnum],0);
	Bsprintf(snotbuf,"Flags (hex): %x",sprite[spritenum].cstat);
	printext16(200,48,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Shade: %d",sprite[spritenum].shade);
	printext16(200,56,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Pal: %d",sprite[spritenum].pal);
	printext16(200,64,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"(X,Y)repeat: %d, %d",sprite[spritenum].xrepeat,sprite[spritenum].yrepeat);
	printext16(200,72,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"(X,Y)offset: %d, %d",sprite[spritenum].xoffset,sprite[spritenum].yoffset);
	printext16(200,80,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Tile number: %d",sprite[spritenum].picnum);
	printext16(200,88,11,-1,snotbuf,0);

	Bsprintf(snotbuf,"Angle (2048 degrees): %d",sprite[spritenum].ang);
	printext16(400,48,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"X-Velocity: %d",sprite[spritenum].xvel);
	printext16(400,56,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Y-Velocity: %d",sprite[spritenum].yvel);
	printext16(400,64,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Z-Velocity: %d",sprite[spritenum].zvel);
	printext16(400,72,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Owner: %d",sprite[spritenum].owner);
	printext16(400,80,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Clipdist: %d",sprite[spritenum].clipdist);
	printext16(400,88,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Extra: %d",sprite[spritenum].extra);
	printext16(400,96,11,-1,snotbuf,0);

	restoreviewport16();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
movl %edi, %ebp
movl 0x111f73(%rip), %eax    # 0x12cd68
movl %eax, 0x88215(%rip)     # 0xa3010
movl 0x111f6b(%rip), %eax    # 0x12cd6c
movl %eax, 0x8820d(%rip)     # 0xa3014
movl $0x90, 0x111f57(%rip)   # 0x12cd68
leaq 0x8821c(%rip), %rax     # 0xa3034
movl $0xffffff70, %ecx       # imm = 0xFFFFFF70
addl (%rax), %ecx
movl %ecx, 0x111f47(%rip)    # 0x12cd6c
leaq 0x581bc(%rip), %rsi     # 0x72fe8
movq %rsp, %rbx
movq %rbx, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x6b00
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movl $0x8, %edi
movl $0x20, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x19108
movslq %ebp, %rax
imulq $0x2c, %rax, %r15
leaq 0x260e42(%rip), %r12    # 0x27bcb0
movl (%r12,%r15), %edx
leaq 0x58ee5(%rip), %rsi     # 0x73d5e
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x8, %edi
movl $0x30, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x19108
movl 0x4(%r12,%r15), %edx
leaq 0x58ec1(%rip), %rsi     # 0x73d6f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x8, %edi
movl $0x38, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x19108
movl 0x8(%r12,%r15), %edx
leaq 0x58e2a(%rip), %rsi     # 0x73d0d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x8, %edi
movl $0x40, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x19108
movswl 0x18(%r12,%r15), %edx
leaq 0x58ee3(%rip), %rsi     # 0x73dfc
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x8, %edi
movl $0x48, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x19108
movswl 0x1a(%r12,%r15), %edx
leaq 0x58eb9(%rip), %rsi     # 0x73e08
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x8, %edi
movl $0x50, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x19108
movswl 0x28(%r12,%r15), %edx
movswl 0x26(%r12,%r15), %ecx
leaq 0x58cfd(%rip), %rsi     # 0x73c88
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x8, %edi
movl $0x60, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x19108
movswl 0x28(%r12,%r15), %edx
movswl 0x26(%r12,%r15), %ecx
leaq 0x58cce(%rip), %rsi     # 0x73c95
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x8, %edi
movl $0x68, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x19108
movswq 0xe(%r12,%r15), %rax
leaq (%rax,%rax,4), %rax
leaq (%rax,%rax,4), %rax
leaq 0x125dbb(%rip), %r8     # 0x140dc0
addq %rax, %r8
movl $0xc8, %edi
movl $0x20, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorl %r9d, %r9d
callq 0x19108
movswl 0xc(%r12,%r15), %edx
leaq 0x58cac(%rip), %rsi     # 0x73cdd
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0xc8, %edi
movl $0x30, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x19108
movsbl 0x10(%r12,%r15), %edx
leaq 0x58d2f(%rip), %rsi     # 0x73d96
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0xc8, %edi
movl $0x38, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x19108
movzbl 0x11(%r12,%r15), %edx
leaq 0x58d03(%rip), %rsi     # 0x73da0
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0xc8, %edi
movl $0x40, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x19108
movzbl 0x14(%r12,%r15), %edx
movzbl 0x15(%r12,%r15), %ecx
leaq 0x58ccf(%rip), %rsi     # 0x73da8
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0xc8, %edi
movl $0x48, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x19108
movsbl 0x16(%r12,%r15), %edx
movsbl 0x17(%r12,%r15), %ecx
leaq 0x58cff(%rip), %rsi     # 0x73e14
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0xc8, %edi
movl $0x50, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x19108
movswl 0xe(%r12,%r15), %edx
leaq 0x58c75(%rip), %rsi     # 0x73dc0
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0xc8, %edi
movl $0x58, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x19108
movswl 0x1c(%r12,%r15), %edx
leaq 0x58ca7(%rip), %rsi     # 0x73e28
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x190, %edi            # imm = 0x190
movl $0x30, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x19108
movswl 0x20(%r12,%r15), %edx
leaq 0x58c8a(%rip), %rsi     # 0x73e41
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x190, %edi            # imm = 0x190
movl $0x38, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x19108
movswl 0x22(%r12,%r15), %edx
leaq 0x58c63(%rip), %rsi     # 0x73e50
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x190, %edi            # imm = 0x190
movl $0x40, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x19108
movswl 0x24(%r12,%r15), %edx
leaq 0x58c3c(%rip), %rsi     # 0x73e5f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x190, %edi            # imm = 0x190
movl $0x48, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x19108
movswl 0x1e(%r12,%r15), %edx
leaq 0x58c15(%rip), %rsi     # 0x73e6e
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x190, %edi            # imm = 0x190
movl $0x50, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x19108
movzbl 0x12(%r12,%r15), %edx
leaq 0x58be9(%rip), %rsi     # 0x73e78
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x190, %edi            # imm = 0x190
movl $0x58, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x19108
movswl 0x2a(%r12,%r15), %edx
leaq 0x589e4(%rip), %rsi     # 0x73ca9
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x190, %edi            # imm = 0x190
movl $0x60, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x19108
movl 0x87d20(%rip), %eax     # 0xa3014
testl %eax, %eax
js 0x1b325
movl 0x87d12(%rip), %ecx     # 0xa3010
movl %ecx, 0x111a64(%rip)    # 0x12cd68
movl %eax, 0x111a62(%rip)    # 0x12cd6c
movl %r14d, 0x87cff(%rip)    # 0xa3010
movl %r14d, 0x87cfc(%rip)    # 0xa3014
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x58112(%rip), %rdi     # 0x7343e
xorl %eax, %eax
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x6c31f