// File: /workspace/github_c_makefile_star2_O1/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 0x1118c3(%rip), %eax    # 0x12cd68
movl %eax, 0x87b65(%rip)     # 0xa3010
movl 0x1118bb(%rip), %eax    # 0x12cd6c
movl %eax, 0x87b5d(%rip)     # 0xa3014
movl $0x90, 0x1118a7(%rip)   # 0x12cd68
leaq 0x87b6c(%rip), %rax     # 0xa3034
movl $0xffffff70, %ecx       # imm = 0xFFFFFF70
addl (%rax), %ecx
movl %ecx, 0x111897(%rip)    # 0x12cd6c
leaq 0x57afc(%rip), %rsi     # 0x72fd8
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 0x19108
movslq %ebp, %r14
movq %r14, %r13
shlq $0x5, %r13
leaq 0x19c52f(%rip), %r12    # 0x1b7a50
movl (%r12,%r13), %edx
leaq 0x58832(%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,%r13), %edx
leaq 0x5880e(%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
movswl 0x8(%r12,%r13), %edx
leaq 0x587e9(%rip), %rsi     # 0x73d80
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
movl %r14d, %edi
callq 0x3bae9
leaq 0x587bc(%rip), %rsi     # 0x73d8b
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 0x19108
movswl 0x1c(%r12,%r13), %edx
movswl 0x1a(%r12,%r13), %ecx
leaq 0x5867b(%rip), %rsi     # 0x73c88
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 0x19108
movswl 0x1c(%r12,%r13), %edx
movswl 0x1a(%r12,%r13), %ecx
leaq 0x5864c(%rip), %rsi     # 0x73c95
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
movswq 0x10(%r12,%r13), %rax
leaq (%rax,%rax,4), %rax
leaq (%rax,%rax,4), %rax
leaq 0x125739(%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 0xe(%r12,%r13), %edx
leaq 0x5862a(%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 0x14(%r12,%r13), %edx
leaq 0x586ad(%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 0x15(%r12,%r13), %edx
leaq 0x58681(%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 0x16(%r12,%r13), %edx
movzbl 0x17(%r12,%r13), %ecx
leaq 0x5864d(%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
movzbl 0x18(%r12,%r13), %edx
movzbl 0x19(%r12,%r13), %ecx
leaq 0x58556(%rip), %rsi     # 0x73ced
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 0x10(%r12,%r13), %edx
leaq 0x585f3(%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 0x12(%r12,%r13), %edx
leaq 0x585b9(%rip), %rsi     # 0x73dbc
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 0x19108
movswl 0xc(%r12,%r13), %edx
leaq 0x58597(%rip), %rsi     # 0x73dd0
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 0xa(%r12,%r13), %edx
leaq 0x58570(%rip), %rsi     # 0x73ddf
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 0x1e(%r12,%r13), %edx
leaq 0x58404(%rip), %rsi     # 0x73ca9
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
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 0x35745
sarl $0x4, %eax
leaq 0x584eb(%rip), %rsi     # 0x73dec
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 0x19108
movl %r14d, %edi
callq 0x3bae9
cltq
leaq (%rax,%rax,4), %rax
leaq 0x22711f(%rip), %rcx    # 0x242a60
movl 0x8(%rcx,%rax,8), %edx
subl 0x4(%rcx,%rax,8), %edx
sarl $0x8, %edx
leaq 0x5836f(%rip), %rsi     # 0x73cc2
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 0x19108
movl 0x87692(%rip), %eax     # 0xa3014
testl %eax, %eax
js 0x1b9b5
movl 0x87684(%rip), %ecx     # 0xa3010
movl %ecx, 0x1113d6(%rip)    # 0x12cd68
movl %eax, 0x1113d4(%rip)    # 0x12cd6c
movl %r15d, 0x87671(%rip)    # 0xa3010
movl %r15d, 0x8766e(%rip)    # 0xa3014
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x57a82(%rip), %rdi     # 0x7343e
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6c31f