// File: /workspace/github_c_makefile_star2_O1/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 0x111381(%rip), %eax    # 0x12cd68
movl %eax, 0x87623(%rip)     # 0xa3010
movl 0x111379(%rip), %eax    # 0x12cd6c
movl %eax, 0x8761b(%rip)     # 0xa3014
movl $0x90, 0x111365(%rip)   # 0x12cd68
leaq 0x8762a(%rip), %rax     # 0xa3034
movl $0xffffff70, %ecx       # imm = 0xFFFFFF70
addl (%rax), %ecx
movl %ecx, 0x111355(%rip)    # 0x12cd6c
leaq 0x58230(%rip), %rsi     # 0x73c4e
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 0x19108
movslq %ebp, %r14
leaq (%r14,%r14,4), %r15
leaq 0x227006(%rip), %r12    # 0x242a60
movswl (%r12,%r15,8), %edx
leaq 0x581f2(%rip), %rsi     # 0x73c58
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
movswl 0x2(%r12,%r15,8), %edx
leaq 0x581ca(%rip), %rsi     # 0x73c66
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
leaq 0x38fa44(%rip), %rax    # 0x3ab510
movswl (%rax,%r14,2), %edx
leaq 0x581a0(%rip), %rsi     # 0x73c78
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
movswl 0x24(%r12,%r15,8), %edx
movswl 0x22(%r12,%r15,8), %ecx
leaq 0x58174(%rip), %rsi     # 0x73c88
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 0x19108
movswl 0x24(%r12,%r15,8), %edx
movswl 0x22(%r12,%r15,8), %ecx
leaq 0x58145(%rip), %rsi     # 0x73c95
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 0x19108
movswl 0x26(%r12,%r15,8), %edx
leaq 0x58123(%rip), %rsi     # 0x73ca9
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
movzbl 0x20(%r12,%r15,8), %edx
leaq 0x580f7(%rip), %rsi     # 0x73cb3
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
movl 0x8(%r12,%r15,8), %edx
subl 0x4(%r12,%r15,8), %edx
sarl $0x8, %edx
leaq 0x580c9(%rip), %rsi     # 0x73cc2
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 0x19108
leaq 0x580aa(%rip), %r8      # 0x73cd3
movl $0xc8, %edi
movl $0x20, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorl %r9d, %r9d
callq 0x19108
movswl 0xc(%r12,%r15,8), %edx
leaq 0x5808b(%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
movzbl 0x16(%r12,%r15,8), %edx
movzbl 0x17(%r12,%r15,8), %ecx
leaq 0x5805f(%rip), %rsi     # 0x73ced
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
movsbl 0x14(%r12,%r15,8), %edx
leaq 0x5803a(%rip), %rsi     # 0x73cfe
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
movl 0x4(%r12,%r15,8), %edx
leaq 0x58014(%rip), %r13     # 0x73d0d
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 0x19108
movswl 0x10(%r12,%r15,8), %edx
leaq 0x5808e(%rip), %rbp     # 0x73dc0
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 0x19108
movswl 0x12(%r12,%r15,8), %edx
leaq 0x57fb3(%rip), %rsi     # 0x73d1e
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
movzbl 0x15(%r12,%r15,8), %edx
leaq 0x57f90(%rip), %r14     # 0x73d31
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 0x19108
leaq 0x57f71(%rip), %r8      # 0x73d45
movl $0x190, %edi            # imm = 0x190
movl $0x20, %esi
movl $0xb, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorl %r9d, %r9d
callq 0x19108
movswl 0xe(%r12,%r15,8), %edx
movq %rbx, %rdi
leaq 0x57edd(%rip), %rsi     # 0x73cdd
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
movzbl 0x1e(%r12,%r15,8), %edx
movzbl 0x1f(%r12,%r15,8), %ecx
movq %rbx, %rdi
leaq 0x57eb1(%rip), %rsi     # 0x73ced
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
movsbl 0x1c(%r12,%r15,8), %edx
movq %rbx, %rdi
leaq 0x57e8c(%rip), %rsi     # 0x73cfe
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 0x19108
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 0x19108
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 0x19108
movswl 0x1a(%r12,%r15,8), %edx
leaq 0x57e45(%rip), %rsi     # 0x73d4d
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 0x19108
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 0x19108
movl 0x870ab(%rip), %eax     # 0xa3014
testl %eax, %eax
js 0x1bf9f
movl 0x8709d(%rip), %ecx     # 0xa3010
movl %ecx, 0x110def(%rip)    # 0x12cd68
movl %eax, 0x110ded(%rip)    # 0x12cd6c
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, 0x87086(%rip)     # 0xa3010
movl %eax, 0x87084(%rip)     # 0xa3014
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x57498(%rip), %rdi     # 0x7343e
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6c31f