// File: /workspace/github_c_makefile_star2_O3/jonof[P]jftekwar/jfbuild/src/build.c
// Function: showwalldata
void showwalldata(short wallnum)
{
	int dax, day, dist;
	char snotbuf[80];

	setstatusbarviewport16();

	Bsprintf(snotbuf,"Wall %d",wallnum);
	printext16(8,32,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"X-coordinate: %d",wall[wallnum].x);
	printext16(8,48,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Y-coordinate: %d",wall[wallnum].y);
	printext16(8,56,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Point2: %d",wall[wallnum].point2);
	printext16(8,64,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Sector: %d",sectorofwall(wallnum));
	printext16(8,72,11,-1,snotbuf,0);

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

	printext16(200,32,11,-1,names[wall[wallnum].picnum],0);
	Bsprintf(snotbuf,"Flags (hex): %x",wall[wallnum].cstat);
	printext16(200,48,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Shade: %d",wall[wallnum].shade);
	printext16(200,56,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Pal: %d",wall[wallnum].pal);
	printext16(200,64,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"(X,Y)repeat: %d, %d",wall[wallnum].xrepeat,wall[wallnum].yrepeat);
	printext16(200,72,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"(X,Y)pan: %d, %d",wall[wallnum].xpanning,wall[wallnum].ypanning);
	printext16(200,80,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Tile number: %d",wall[wallnum].picnum);
	printext16(200,88,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"OverTile number: %d",wall[wallnum].overpicnum);
	printext16(200,96,11,-1,snotbuf,0);

	Bsprintf(snotbuf,"nextsector: %d",wall[wallnum].nextsector);
	printext16(400,48,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"nextwall: %d",wall[wallnum].nextwall);
	printext16(400,56,11,-1,snotbuf,0);

	Bsprintf(snotbuf,"Extra: %d",wall[wallnum].extra);
	printext16(400,72,11,-1,snotbuf,0);

	dax = wall[wallnum].x-wall[wall[wallnum].point2].x;
	day = wall[wallnum].y-wall[wall[wallnum].point2].y;
	dist = ksqrt(dax*dax+day*day);
	Bsprintf(snotbuf,"Wall length: %d",dist>>4);
	printext16(400,96,11,-1,snotbuf,0);

	dax = (int)sectorofwall(wallnum);
	Bsprintf(snotbuf,"Pixel height: %d",(sector[dax].floorz-sector[dax].ceilingz)>>8);
	printext16(400,104,11,-1,snotbuf,0);

	restoreviewport16();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %edi, %ebp
movl 0x1127d0(%rip), %eax    # 0x12dd68
movl %eax, 0x88a72(%rip)     # 0xa4010
movl 0x1127c8(%rip), %eax    # 0x12dd6c
movl %eax, 0x88a6a(%rip)     # 0xa4014
movl $0x90, 0x1127b4(%rip)   # 0x12dd68
leaq 0x88a79(%rip), %rax     # 0xa4034
movl $0xffffff70, %ecx       # imm = 0xFFFFFF70
addl (%rax), %ecx
movl %ecx, 0x1127a4(%rip)    # 0x12dd6c
leaq 0x58a55(%rip), %rsi     # 0x74024
movq %rsp, %rbx
movq %rbx, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x6b00
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movl $0x8, %edi
movl $0x20, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x1915d
movslq %ebp, %r14
movq %r14, %r13
shlq $0x5, %r13
leaq 0x19d43c(%rip), %r12    # 0x1b8a50
movl (%r12,%r13), %edx
leaq 0x59881(%rip), %rsi     # 0x74ea0
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 0x1915d
movl 0x4(%r12,%r13), %edx
leaq 0x5985d(%rip), %rsi     # 0x74eb1
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 0x1915d
movswl 0x8(%r12,%r13), %edx
leaq 0x59838(%rip), %rsi     # 0x74ec2
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 0x1915d
movl %r14d, %edi
callq 0x3cfa6
leaq 0x5980b(%rip), %rsi     # 0x74ecd
movq %rbx, %rdi
movl %eax, %edx
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 0x1915d
movswl 0x1c(%r12,%r13), %edx
movswl 0x1a(%r12,%r13), %ecx
leaq 0x596ca(%rip), %rsi     # 0x74dca
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x8, %edi
movl $0x58, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x1915d
movswl 0x1c(%r12,%r13), %edx
movswl 0x1a(%r12,%r13), %ecx
leaq 0x5969b(%rip), %rsi     # 0x74dd7
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 0x1915d
movswq 0x10(%r12,%r13), %rax
leaq (%rax,%rax,4), %rax
leaq (%rax,%rax,4), %rax
leaq 0x126646(%rip), %r8     # 0x141dc0
addq %rax, %r8
movl $0xc8, %edi
movl $0x20, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorl %r9d, %r9d
callq 0x1915d
movswl 0xe(%r12,%r13), %edx
leaq 0x59679(%rip), %rsi     # 0x74e1f
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 0x1915d
movsbl 0x14(%r12,%r13), %edx
leaq 0x596fc(%rip), %rsi     # 0x74ed8
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 0x1915d
movzbl 0x15(%r12,%r13), %edx
leaq 0x596d0(%rip), %rsi     # 0x74ee2
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 0x1915d
movzbl 0x16(%r12,%r13), %edx
movzbl 0x17(%r12,%r13), %ecx
leaq 0x5969c(%rip), %rsi     # 0x74eea
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 0x1915d
movzbl 0x18(%r12,%r13), %edx
movzbl 0x19(%r12,%r13), %ecx
leaq 0x595a5(%rip), %rsi     # 0x74e2f
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 0x1915d
movswl 0x10(%r12,%r13), %edx
leaq 0x59642(%rip), %rsi     # 0x74f02
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 0x1915d
movswl 0x12(%r12,%r13), %edx
leaq 0x59608(%rip), %rsi     # 0x74efe
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0xc8, %edi
movl $0x60, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x1915d
movswl 0xc(%r12,%r13), %edx
leaq 0x595e6(%rip), %rsi     # 0x74f12
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 0x1915d
movswl 0xa(%r12,%r13), %edx
leaq 0x595bf(%rip), %rsi     # 0x74f21
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 0x1915d
movswl 0x1e(%r12,%r13), %edx
leaq 0x59453(%rip), %rsi     # 0x74deb
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 0x1915d
movswq 0x8(%r12,%r13), %rax
shlq $0x5, %rax
movl (%r12,%r13), %ecx
movl 0x4(%r12,%r13), %edi
subl (%r12,%rax), %ecx
subl 0x4(%r12,%rax), %edi
imull %ecx, %ecx
imull %edi, %edi
addl %ecx, %edi
callq 0x3699d
sarl $0x4, %eax
leaq 0x5953a(%rip), %rsi     # 0x74f2e
movq %rbx, %rdi
movl %eax, %edx
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 0x1915d
movl %r14d, %edi
callq 0x3cfa6
cltq
leaq (%rax,%rax,4), %rax
leaq 0x22802c(%rip), %rcx    # 0x243a60
movl 0x8(%rcx,%rax,8), %edx
subl 0x4(%rcx,%rax,8), %edx
sarl $0x8, %edx
leaq 0x593be(%rip), %rsi     # 0x74e04
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x190, %edi            # imm = 0x190
movl $0x68, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x1915d
movl 0x8859f(%rip), %eax     # 0xa4014
testl %eax, %eax
js 0x1baa8
movl 0x88591(%rip), %ecx     # 0xa4010
movl %ecx, 0x1122e3(%rip)    # 0x12dd68
movl %eax, 0x1122e1(%rip)    # 0x12dd6c
movl %r15d, 0x8857e(%rip)    # 0xa4010
movl %r15d, 0x8857b(%rip)    # 0xa4014
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x58ad1(%rip), %rdi     # 0x74580
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6e05b