// File: /workspace/github_c_makefile_star2_O3/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, %ebp
movl 0x11228e(%rip), %eax    # 0x12dd68
movl %eax, 0x88530(%rip)     # 0xa4010
movl 0x112286(%rip), %eax    # 0x12dd6c
movl %eax, 0x88528(%rip)     # 0xa4014
movl $0x90, 0x112272(%rip)   # 0x12dd68
leaq 0x88537(%rip), %rax     # 0xa4034
movl $0xffffff70, %ecx       # imm = 0xFFFFFF70
addl (%rax), %ecx
movl %ecx, 0x112262(%rip)    # 0x12dd6c
leaq 0x5927f(%rip), %rsi     # 0x74d90
movq %rsp, %rbx
movq %rbx, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x6b00
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
leaq (%r14,%r14,4), %r15
leaq 0x227f13(%rip), %r12    # 0x243a60
movswl (%r12,%r15,8), %edx
leaq 0x59241(%rip), %rsi     # 0x74d9a
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
movswl 0x2(%r12,%r15,8), %edx
leaq 0x59219(%rip), %rsi     # 0x74da8
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
leaq 0x390951(%rip), %rax    # 0x3ac510
movswl (%rax,%r14,2), %edx
leaq 0x591ef(%rip), %rsi     # 0x74dba
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
movswl 0x24(%r12,%r15,8), %edx
movswl 0x22(%r12,%r15,8), %ecx
leaq 0x591c3(%rip), %rsi     # 0x74dca
movq %rbx, %rdi
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 0x24(%r12,%r15,8), %edx
movswl 0x22(%r12,%r15,8), %ecx
leaq 0x59194(%rip), %rsi     # 0x74dd7
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x8, %edi
movl $0x50, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x1915d
movswl 0x26(%r12,%r15,8), %edx
leaq 0x59172(%rip), %rsi     # 0x74deb
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
movzbl 0x20(%r12,%r15,8), %edx
leaq 0x59146(%rip), %rsi     # 0x74df5
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
movl 0x8(%r12,%r15,8), %edx
subl 0x4(%r12,%r15,8), %edx
sarl $0x8, %edx
leaq 0x59118(%rip), %rsi     # 0x74e04
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x8, %edi
movl $0x68, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x1915d
leaq 0x590f9(%rip), %r8      # 0x74e15
movl $0xc8, %edi
movl $0x20, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorl %r9d, %r9d
callq 0x1915d
movswl 0xc(%r12,%r15,8), %edx
leaq 0x590da(%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
movzbl 0x16(%r12,%r15,8), %edx
movzbl 0x17(%r12,%r15,8), %ecx
leaq 0x590ae(%rip), %rsi     # 0x74e2f
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
movsbl 0x14(%r12,%r15,8), %edx
leaq 0x59089(%rip), %rsi     # 0x74e40
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
movl 0x4(%r12,%r15,8), %edx
leaq 0x59063(%rip), %r13     # 0x74e4f
movq %rbx, %rdi
movq %r13, %rsi
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
movswl 0x10(%r12,%r15,8), %edx
leaq 0x590dd(%rip), %rbp     # 0x74f02
movq %rbx, %rdi
movq %rbp, %rsi
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 0x12(%r12,%r15,8), %edx
leaq 0x59002(%rip), %rsi     # 0x74e60
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
movzbl 0x15(%r12,%r15,8), %edx
leaq 0x58fdf(%rip), %r14     # 0x74e73
movq %rbx, %rdi
movq %r14, %rsi
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
leaq 0x58fc0(%rip), %r8      # 0x74e87
movl $0x190, %edi            # imm = 0x190
movl $0x20, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorl %r9d, %r9d
callq 0x1915d
movswl 0xe(%r12,%r15,8), %edx
movq %rbx, %rdi
leaq 0x58f2c(%rip), %rsi     # 0x74e1f
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
movzbl 0x1e(%r12,%r15,8), %edx
movzbl 0x1f(%r12,%r15,8), %ecx
movq %rbx, %rdi
leaq 0x58f00(%rip), %rsi     # 0x74e2f
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
movsbl 0x1c(%r12,%r15,8), %edx
movq %rbx, %rdi
leaq 0x58edb(%rip), %rsi     # 0x74e40
xorl %eax, %eax
callq 0x6b00
movl $0x190, %edi            # imm = 0x190
movl $0x40, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x1915d
movl 0x8(%r12,%r15,8), %edx
movq %rbx, %rdi
movq %r13, %rsi
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
movswl 0x18(%r12,%r15,8), %edx
movq %rbx, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x6b00
movl $0x190, %edi            # imm = 0x190
movl $0x50, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x1915d
movswl 0x1a(%r12,%r15,8), %edx
leaq 0x58e94(%rip), %rsi     # 0x74e8f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6b00
movl $0x190, %edi            # imm = 0x190
movl $0x58, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
xorl %r9d, %r9d
callq 0x1915d
movzbl 0x1d(%r12,%r15,8), %edx
movq %rbx, %rdi
movq %r14, %rsi
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 0x87fb8(%rip), %eax     # 0xa4014
testl %eax, %eax
js 0x1c092
movl 0x87faa(%rip), %ecx     # 0xa4010
movl %ecx, 0x111cfc(%rip)    # 0x12dd68
movl %eax, 0x111cfa(%rip)    # 0x12dd6c
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, 0x87f93(%rip)     # 0xa4010
movl %eax, 0x87f91(%rip)     # 0xa4014
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x584e7(%rip), %rdi     # 0x74580
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6e05b