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

	setstatusbarviewport16();

	Bsprintf(snotbuf,"Sector %d",sectnum);
	printext16(8,32,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Firstwall: %d",sector[sectnum].wallptr);
	printext16(8,48,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Numberofwalls: %d",sector[sectnum].wallnum);
	printext16(8,56,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Firstsprite: %d",headspritesect[sectnum]);
	printext16(8,64,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Tags: %d, %d",sector[sectnum].hitag,sector[sectnum].lotag);
	printext16(8,72,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"     (0x%x), (0x%x)",sector[sectnum].hitag,sector[sectnum].lotag);
	printext16(8,80,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Extra: %d",sector[sectnum].extra);
	printext16(8,88,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Visibility: %d",sector[sectnum].visibility);
	printext16(8,96,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Pixel height: %d",(sector[sectnum].floorz-sector[sectnum].ceilingz)>>8);
	printext16(8,104,11,-1,snotbuf,0);

	printext16(200,32,11,-1,"CEILINGS:",0);
	Bsprintf(snotbuf,"Flags (hex): %x",sector[sectnum].ceilingstat);
	printext16(200,48,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"(X,Y)pan: %d, %d",sector[sectnum].ceilingxpanning,sector[sectnum].ceilingypanning);
	printext16(200,56,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Shade byte: %d",sector[sectnum].ceilingshade);
	printext16(200,64,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Z-coordinate: %d",sector[sectnum].ceilingz);
	printext16(200,72,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Tile number: %d",sector[sectnum].ceilingpicnum);
	printext16(200,80,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Ceiling heinum: %d",sector[sectnum].ceilingheinum);
	printext16(200,88,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Palookup number: %d",sector[sectnum].ceilingpal);
	printext16(200,96,11,-1,snotbuf,0);

	printext16(400,32,11,-1,"FLOORS:",0);
	Bsprintf(snotbuf,"Flags (hex): %x",sector[sectnum].floorstat);
	printext16(400,48,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"(X,Y)pan: %d, %d",sector[sectnum].floorxpanning,sector[sectnum].floorypanning);
	printext16(400,56,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Shade byte: %d",sector[sectnum].floorshade);
	printext16(400,64,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Z-coordinate: %d",sector[sectnum].floorz);
	printext16(400,72,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Tile number: %d",sector[sectnum].floorpicnum);
	printext16(400,80,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Floor heinum: %d",sector[sectnum].floorheinum);
	printext16(400,88,11,-1,snotbuf,0);
	Bsprintf(snotbuf,"Palookup number: %d",sector[sectnum].floorpal);
	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, %r15d
callq 0x1228e
leaq 0x50202(%rip), %rsi     # 0x69cd0
movq %rsp, %rbx
movq %rbx, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0x6b00
pushq $0x8
popq %rbp
pushq $0x20
popq %rsi
pushq $0xb
popq %r14
pushq $-0x1
popq %r12
movl %ebp, %edi
movl %r14d, %edx
movl %r12d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movslq %r15d, %r13
imulq $0x28, %r13, %r15
leaq 0x222f53(%rip), %rax    # 0x23ca60
movswl (%rax,%r15), %edx
leaq 0x501c1(%rip), %rsi     # 0x69cda
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
pushq $0x30
popq %rsi
movl %ebp, %edi
movl %r14d, %edx
movl %r12d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
leaq 0x222f20(%rip), %rax    # 0x23ca60
movswl 0x2(%rax,%r15), %edx
leaq 0x5019b(%rip), %rsi     # 0x69ce8
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
pushq $0x38
popq %rsi
movl %ebp, %edi
movl %r14d, %edx
movl %r12d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
leaq 0x38b99c(%rip), %rax    # 0x3a5510
movswl (%rax,%r13,2), %edx
leaq 0x5017a(%rip), %rsi     # 0x69cfa
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
pushq $0x40
popq %rsi
movl %ebp, %edi
movl %ebp, %r13d
movl %r14d, %edx
movl %r14d, %ebp
movl %r12d, %ecx
movl %r12d, %r14d
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
leaq 0x222eb0(%rip), %r12    # 0x23ca60
movswl 0x24(%r12,%r15), %edx
movswl 0x22(%r12,%r15), %ecx
leaq 0x50147(%rip), %rsi     # 0x69d0a
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
pushq $0x48
popq %rsi
movl %r13d, %edi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movswl 0x24(%r12,%r15), %edx
movswl 0x22(%r12,%r15), %ecx
leaq 0x50121(%rip), %rsi     # 0x69d17
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
pushq $0x50
popq %rsi
movl %r13d, %edi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movswl 0x26(%r12,%r15), %edx
leaq 0x50108(%rip), %rsi     # 0x69d2b
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
pushq $0x58
popq %rsi
movl %r13d, %edi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movzbl 0x20(%r12,%r15), %edx
leaq 0x500e5(%rip), %rsi     # 0x69d35
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
pushq $0x60
popq %rsi
movl %r13d, %edi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movl 0x8(%r12,%r15), %edx
subl 0x4(%r12,%r15), %edx
sarl $0x8, %edx
leaq 0x500c0(%rip), %rsi     # 0x69d44
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
pushq $0x68
popq %rsi
movl %r13d, %edi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
leaq 0x500aa(%rip), %r8      # 0x69d55
movl $0xc8, %edi
pushq $0x20
popq %rsi
movl %ebp, %edx
movl %r14d, %ecx
xorl %r9d, %r9d
callq 0x176c0
movswl 0xc(%r12,%r15), %edx
leaq 0x50092(%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
movzbl 0x16(%r12,%r15), %edx
movzbl 0x17(%r12,%r15), %ecx
leaq 0x5006d(%rip), %rsi     # 0x69d6f
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
movsbl 0x14(%r12,%r15), %edx
leaq 0x5004f(%rip), %rsi     # 0x69d80
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
movl 0x4(%r12,%r15), %edx
leaq 0x50030(%rip), %rsi     # 0x69d8f
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
movswl 0x10(%r12,%r15), %edx
leaq 0x500b4(%rip), %rsi     # 0x69e42
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0xc8, %edi
pushq $0x50
popq %rsi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movswl 0x12(%r12,%r15), %edx
leaq 0x4ffe3(%rip), %rsi     # 0x69da0
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0xc8, %edi
pushq $0x58
popq %rsi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movzbl 0x15(%r12,%r15), %edx
leaq 0x4ffc7(%rip), %r13     # 0x69db3
movq %rbx, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x6b00
movl $0xc8, %edi
pushq $0x60
popq %rsi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
leaq 0x4ffaf(%rip), %r8      # 0x69dc7
movl $0x190, %edi            # imm = 0x190
pushq $0x20
popq %rsi
movl %ebp, %edx
movl %r14d, %ecx
xorl %r9d, %r9d
callq 0x176c0
movswl 0xe(%r12,%r15), %edx
movq %rbx, %rdi
leaq 0x4ff22(%rip), %rsi     # 0x69d5f
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
movzbl 0x1e(%r12,%r15), %edx
movzbl 0x1f(%r12,%r15), %ecx
movq %rbx, %rdi
leaq 0x4fefd(%rip), %rsi     # 0x69d6f
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
movsbl 0x1c(%r12,%r15), %edx
movq %rbx, %rdi
leaq 0x4fedf(%rip), %rsi     # 0x69d80
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
movl 0x8(%r12,%r15), %edx
movq %rbx, %rdi
leaq 0x4fec0(%rip), %rsi     # 0x69d8f
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 0x18(%r12,%r15), %edx
movq %rbx, %rdi
leaq 0x4ff44(%rip), %rsi     # 0x69e42
xorl %eax, %eax
callq 0x6b00
movl $0x190, %edi            # imm = 0x190
pushq $0x50
popq %rsi
movl %ebp, %edx
movl %r14d, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x176c0
movswl 0x1a(%r12,%r15), %edx
leaq 0x4fea5(%rip), %rsi     # 0x69dcf
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
movzbl 0x1d(%r12,%r15), %edx
movq %rbx, %rdi
movq %r13, %rsi
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