// File: /workspace/github_c_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %edi, %r13d
callq 0x1228e
leaq 0x4fee7(%rip), %rsi     # 0x68ff2
movq %rsp, %rbx
movq %rbx, %rdi
movl %r13d, %edx
xorl %eax, %eax
callq 0x6b00
pushq $0x8
popq %r12
pushq $0x20
popq %rsi
pushq $0xb
popq %rbp
pushq $-0x1
popq %r14
movl %r12d, %edi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movslq %r13d, %rax
imulq $0x2c, %rax, %r13
leaq 0x25cb66(%rip), %r15    # 0x275cb0
movl (%r15,%r13), %edx
leaq 0x50c8b(%rip), %rsi     # 0x69de0
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
pushq $0x30
popq %rsi
movl %r12d, %edi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movl 0x4(%r15,%r13), %edx
leaq 0x50c70(%rip), %rsi     # 0x69df1
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
pushq $0x38
popq %rsi
movl %r12d, %edi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movl 0x8(%r15,%r13), %edx
leaq 0x50be2(%rip), %rsi     # 0x69d8f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
pushq $0x40
popq %rsi
movl %r12d, %edi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movswl 0x18(%r15,%r13), %edx
leaq 0x50ca4(%rip), %rsi     # 0x69e7e
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
pushq $0x48
popq %rsi
movl %r12d, %edi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movswl 0x1a(%r15,%r13), %edx
leaq 0x50c83(%rip), %rsi     # 0x69e8a
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
pushq $0x50
popq %rsi
movl %r12d, %edi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movswl 0x28(%r15,%r13), %edx
movswl 0x26(%r15,%r13), %ecx
leaq 0x50ad0(%rip), %rsi     # 0x69d0a
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
pushq $0x60
popq %rsi
movl %r12d, %edi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movswl 0x28(%r15,%r13), %edx
movswl 0x26(%r15,%r13), %ecx
leaq 0x50aaa(%rip), %rsi     # 0x69d17
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
pushq $0x68
popq %rsi
movl %r12d, %edi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movswq 0xe(%r15,%r13), %rax
imulq $0x19, %rax, %rax
leaq 0x121b22(%rip), %r8     # 0x13adc0
addq %rax, %r8
movl $0xc8, %edi
pushq $0x20
popq %rsi
movl %ebp, %edx
movl %r14d, %ecx
xorl %r9d, %r9d
callq 0x176c0
movswl 0xc(%r15,%r13), %edx
leaq 0x50a9c(%rip), %rsi     # 0x69d5f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0xc8, %edi
pushq $0x30
popq %rsi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movsbl 0x10(%r15,%r13), %edx
leaq 0x50b26(%rip), %rsi     # 0x69e18
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0xc8, %edi
pushq $0x38
popq %rsi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movzbl 0x11(%r15,%r13), %edx
leaq 0x50b01(%rip), %rsi     # 0x69e22
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0xc8, %edi
pushq $0x40
popq %rsi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movzbl 0x14(%r15,%r13), %edx
movzbl 0x15(%r15,%r13), %ecx
leaq 0x50ad4(%rip), %rsi     # 0x69e2a
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0xc8, %edi
pushq $0x48
popq %rsi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movsbl 0x16(%r15,%r13), %edx
movsbl 0x17(%r15,%r13), %ecx
leaq 0x50b0b(%rip), %rsi     # 0x69e96
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0xc8, %edi
pushq $0x50
popq %r12
movl %r12d, %esi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movswl 0xe(%r15,%r13), %edx
leaq 0x50a84(%rip), %rsi     # 0x69e42
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
pushq $0x58
popq %rsi
movl $0xc8, %edi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movswl 0x1c(%r15,%r13), %edx
leaq 0x50abd(%rip), %rsi     # 0x69eaa
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x190, %edi            # imm = 0x190
pushq $0x30
popq %rsi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movswl 0x20(%r15,%r13), %edx
leaq 0x50aa7(%rip), %rsi     # 0x69ec3
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x190, %edi            # imm = 0x190
pushq $0x38
popq %rsi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movswl 0x22(%r15,%r13), %edx
leaq 0x50a87(%rip), %rsi     # 0x69ed2
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x190, %edi            # imm = 0x190
pushq $0x40
popq %rsi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movswl 0x24(%r15,%r13), %edx
leaq 0x50a67(%rip), %rsi     # 0x69ee1
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x190, %edi            # imm = 0x190
pushq $0x48
popq %rsi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movswl 0x1e(%r15,%r13), %edx
leaq 0x50a47(%rip), %rsi     # 0x69ef0
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x190, %edi            # imm = 0x190
movl %r12d, %esi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movzbl 0x12(%r15,%r13), %edx
leaq 0x50a22(%rip), %rsi     # 0x69efa
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x190, %edi            # imm = 0x190
pushq $0x58
popq %rsi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movswl 0x2a(%r15,%r13), %edx
leaq 0x50824(%rip), %rsi     # 0x69d2b
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x190, %edi            # imm = 0x190
pushq $0x60
popq %rsi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x122c5