// File: /workspace/github_c_makefile_star2_O3/jonof[P]jftekwar/jfbuild/src/build.c
// Function: printcoords16
void printcoords16(int posxe, int posye, short ange)
{
	char snotbuf[80];
	int i, maxsect = 0, maxwall = 0, maxspri = 0;

	setstatusbarviewport16();

	Bsprintf(snotbuf,"x=%d y=%d ang=%d",posxe,posye,ange);
	i = 0;
	while ((snotbuf[i] != 0) && (i < 30))
		i++;
	while (i < 30)
	{
		snotbuf[i] = 32;
		i++;
	}
	snotbuf[30] = 0;

	switch (mapversion) {
		case 5:
			maxsect = MAXSECTORSV5;
			maxwall = MAXWALLSV5;
			maxspri = MAXSPRITESV5;
			break;
		case 6:
			maxsect = MAXSECTORSV6;
			maxwall = MAXWALLSV6;
			maxspri = MAXSPRITESV6;
			break;
		case 7:
			maxsect = MAXSECTORSV7;
			maxwall = MAXWALLSV7;
			maxspri = MAXSPRITESV7;
			break;
		case 8:
			maxsect = MAXSECTORSV8;
			maxwall = MAXWALLSV8;
			maxspri = MAXSPRITESV8;
			break;
	}

	printext16(8,128, 11, 6, snotbuf,0);

	Bsprintf(snotbuf,"v%d %d/%d sect %d/%d wall %d/%d spri",
					mapversion,
					numsectors, maxsect,
					numwalls, maxwall,
					numsprites, maxspri);
	i = 0;
	while ((snotbuf[i] != 0) && (i < 46))
		i++;
	while (i < 46)
	{
		snotbuf[i] = 32;
		i++;
	}
	snotbuf[46] = 0;

	printext16(264,128, 14, 6, snotbuf,0);

	restoreviewport16();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %edx, %r8d
movl %esi, %ecx
movl %edi, %edx
movl 0x113593(%rip), %eax    # 0x12dd68
movl %eax, 0x89835(%rip)     # 0xa4010
movl 0x11358b(%rip), %eax    # 0x12dd6c
movl %eax, 0x8982d(%rip)     # 0xa4014
movl $0x90, 0x113577(%rip)   # 0x12dd68
leaq 0x8983c(%rip), %rax     # 0xa4034
movl $0xffffff70, %esi       # imm = 0xFFFFFF70
addl (%rax), %esi
movl %esi, 0x113567(%rip)    # 0x12dd6c
leaq 0x5a54e(%rip), %rsi     # 0x74d5a
xorl %ebx, %ebx
movq %rsp, %rdi
xorl %eax, %eax
callq 0x6b00
leaq 0x1(%rbx), %rax
cmpq $0x1d, %rbx
ja 0x1a82b
cmpb $0x0, (%rsp,%rbx)
movq %rax, %rbx
jne 0x1a818
leaq -0x1(%rax), %rcx
cmpq $0x1d, %rcx
ja 0x1a84e
leaq (%rsp,%rax), %rdi
decq %rdi
movl $0x1f, %edx
subq %rax, %rdx
movl $0x20, %esi
callq 0x62f0
movb $0x0, 0x1e(%rsp)
leaq 0x89f3e(%rip), %rbp     # 0xa4798
movl (%rbp), %eax
addl $-0x5, %eax
xorl %ebx, %ebx
movl $0x0, %r15d
movl $0x0, %r13d
cmpl $0x3, %eax
ja 0x1a895
movl %eax, %eax
leaq 0x598a4(%rip), %rcx     # 0x74120
movl (%rcx,%rax,4), %ebx
leaq 0x598aa(%rip), %rcx     # 0x74130
movl (%rcx,%rax,4), %r15d
leaq 0x598af(%rip), %rcx     # 0x74140
movl (%rcx,%rax,4), %r13d
movq %rsp, %r14
xorl %r12d, %r12d
movl $0x8, %edi
movl $0x80, %esi
movl $0xb, %edx
movl $0x6, %ecx
movq %r14, %r8
xorl %r9d, %r9d
callq 0x1915d
movl (%rbp), %edx
leaq 0x3b569c(%rip), %rax    # 0x3cff60
movswl (%rax), %ecx
leaq 0x3fc39a(%rip), %rax    # 0x416c68
movswl (%rax), %r9d
movl 0x15f8f3(%rip), %r10d   # 0x17a1cc
subq $0x8, %rsp
leaq 0x5a487(%rip), %rsi     # 0x74d6b
movq %r14, %rdi
movl %ebx, %r8d
xorl %eax, %eax
pushq %r13
pushq %r10
pushq %r15
callq 0x6b00
addq $0x20, %rsp
leaq 0x1(%r12), %rax
cmpq $0x2d, %r12
ja 0x1a910
cmpb $0x0, (%rsp,%r12)
movq %rax, %r12
jne 0x1a8fb
leaq -0x1(%rax), %rcx
cmpq $0x2d, %rcx
ja 0x1a933
leaq (%rsp,%rax), %rdi
decq %rdi
movl $0x2f, %edx
subq %rax, %rdx
movl $0x20, %esi
callq 0x62f0
movq %rsp, %r8
movb $0x0, 0x2e(%r8)
movl $0x108, %edi            # imm = 0x108
movl $0x80, %esi
movl $0xe, %edx
movl $0x6, %ecx
xorl %r9d, %r9d
callq 0x1915d
movl 0x896b7(%rip), %eax     # 0xa4014
testl %eax, %eax
js 0x1a993
movl 0x896a9(%rip), %ecx     # 0xa4010
movl %ecx, 0x1133fb(%rip)    # 0x12dd68
movl %eax, 0x1133f9(%rip)    # 0x12dd6c
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, 0x89692(%rip)     # 0xa4010
movl %eax, 0x89690(%rip)     # 0xa4014
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x59be6(%rip), %rdi     # 0x74580
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6e05b