// File: /workspace/github_c_makefile_star2_O2/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 $0x68, %rsp
movl %edi, %r15d
callq 0x1228e
leaq 0x4f963(%rip), %rsi     # 0x68fe2
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0x6b00
pushq $0x8
popq %rdi
pushq $0x20
popq %rsi
pushq $0xb
popq %r13
pushq $-0x1
popq %rbp
movl %r13d, %edx
movl %ebp, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movslq %r15d, %r14
movq %r14, %r15
movq %r14, 0x8(%rsp)
shlq $0x5, %r15
leaq 0x19838c(%rip), %r12    # 0x1b1a50
movl (%r12,%r15), %edx
leaq 0x50711(%rip), %rsi     # 0x69de0
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
pushq $0x30
popq %rsi
pushq $0x8
popq %rdi
movl %r13d, %edx
movl %ebp, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movl 0x4(%r12,%r15), %edx
leaq 0x506f6(%rip), %rsi     # 0x69df1
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
pushq $0x38
popq %rsi
pushq $0x8
popq %rdi
movl %r13d, %edx
movl %ebp, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movswl 0x8(%r12,%r15), %edx
leaq 0x506da(%rip), %rsi     # 0x69e02
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
pushq $0x40
popq %rsi
pushq $0x8
popq %rdi
movl %r13d, %edx
movl %ebp, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movl %r14d, %edi
callq 0x39217
leaq 0x506b6(%rip), %rsi     # 0x69e0d
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0x6b00
pushq $0x48
popq %rsi
pushq $0x8
popq %rdi
movl %edi, %r14d
movl %r13d, %edx
movl %ebp, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movswl 0x1c(%r12,%r15), %edx
movswl 0x1a(%r12,%r15), %ecx
leaq 0x5057b(%rip), %rsi     # 0x69d0a
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
pushq $0x58
popq %rsi
movl %r14d, %edi
movl %r13d, %edx
movl %r13d, %r14d
movl %ebp, %ecx
movl %ebp, %r13d
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movswl 0x1c(%r12,%r15), %edx
movswl 0x1a(%r12,%r15), %ecx
leaq 0x5054f(%rip), %rsi     # 0x69d17
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
pushq $0x60
popq %rsi
pushq $0x8
popq %rdi
movl %r14d, %edx
movl %ebp, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movswq 0x10(%r12,%r15), %rax
imulq $0x19, %rax, %rax
leaq 0x1215c7(%rip), %r8     # 0x13adc0
addq %rax, %r8
movl $0xc8, %edi
pushq $0x20
popq %rsi
movl %r14d, %edx
movl %ebp, %ecx
xorl %r9d, %r9d
callq 0x176c0
movswl 0xe(%r12,%r15), %edx
leaq 0x50541(%rip), %rsi     # 0x69d5f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0xc8, %edi
pushq $0x30
popq %rsi
movl %r14d, %edx
movl %ebp, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movsbl 0x14(%r12,%r15), %edx
leaq 0x505cb(%rip), %rsi     # 0x69e18
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0xc8, %edi
pushq $0x38
popq %rsi
movl %r14d, %edx
movl %ebp, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movzbl 0x15(%r12,%r15), %edx
leaq 0x505a6(%rip), %rsi     # 0x69e22
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0xc8, %edi
pushq $0x40
popq %rsi
movl %r14d, %edx
movl %ebp, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movzbl 0x16(%r12,%r15), %edx
movzbl 0x17(%r12,%r15), %ecx
leaq 0x50579(%rip), %rsi     # 0x69e2a
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0xc8, %edi
pushq $0x48
popq %rsi
movl %r14d, %edx
movl %r13d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movzbl 0x18(%r12,%r15), %edx
movzbl 0x19(%r12,%r15), %ecx
leaq 0x50488(%rip), %rsi     # 0x69d6f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
pushq $0x50
popq %rsi
movl $0xc8, %edi
movl %r14d, %edx
movl %r13d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movswl 0x10(%r12,%r15), %edx
leaq 0x5052b(%rip), %rsi     # 0x69e42
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0xc8, %edi
pushq $0x58
popq %rsi
movl %r14d, %edx
movl %r13d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movswl 0x12(%r12,%r15), %edx
leaq 0x504f7(%rip), %rsi     # 0x69e3e
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0xc8, %edi
pushq $0x60
popq %rsi
movl %r14d, %edx
movl %r13d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movswl 0xc(%r12,%r15), %edx
leaq 0x504db(%rip), %rsi     # 0x69e52
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x190, %edi            # imm = 0x190
pushq $0x30
popq %rsi
movl %r14d, %edx
movl %r13d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movswl 0xa(%r12,%r15), %edx
leaq 0x504ba(%rip), %rsi     # 0x69e61
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x190, %edi            # imm = 0x190
pushq $0x38
popq %rsi
movl %r14d, %edx
movl %r13d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movswl 0x1e(%r12,%r15), %edx
leaq 0x50354(%rip), %rsi     # 0x69d2b
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x190, %edi            # imm = 0x190
pushq $0x48
popq %rsi
movl %r14d, %edx
movl %r13d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movswq 0x8(%r12,%r15), %rax
shlq $0x5, %rax
movl (%r12,%r15), %ecx
movl 0x4(%r12,%r15), %edi
subl (%r12,%rax), %ecx
subl 0x4(%r12,%rax), %edi
imull %ecx, %ecx
imull %edi, %edi
addl %ecx, %edi
callq 0x3326c
sarl $0x4, %eax
leaq 0x50441(%rip), %rsi     # 0x69e6e
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0x6b00
movl $0x190, %edi            # imm = 0x190
pushq $0x60
popq %rsi
movl %r14d, %edx
movl %r13d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movq 0x8(%rsp), %rdi
callq 0x39217
cltq
imulq $0x28, %rax, %rax
leaq 0x222ff7(%rip), %rcx    # 0x23ca60
movl 0x8(%rcx,%rax), %edx
subl 0x4(%rcx,%rax), %edx
sarl $0x8, %edx
leaq 0x502c9(%rip), %rsi     # 0x69d44
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
pushq $0x68
popq %rsi
movl $0x190, %edi            # imm = 0x190
movl %r14d, %edx
movl %r13d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x122c5