// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0xa0, %rsp
movw %dx, %ax
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movw %ax, -0xa(%rbp)
movl $0x0, -0x68(%rbp)
movl $0x0, -0x6c(%rbp)
movl $0x0, -0x70(%rbp)
callq 0x1a410
leaq -0x60(%rbp), %rdi
movl -0x4(%rbp), %edx
movl -0x8(%rbp), %ecx
movswl -0xa(%rbp), %r8d
leaq 0x89519(%rip), %rsi     # 0xb0b71
movb $0x0, %al
callq 0x6a30
movl $0x0, -0x64(%rbp)
movslq -0x64(%rbp), %rax
movsbl -0x60(%rbp,%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x71(%rbp)
je 0x27683
cmpl $0x1e, -0x64(%rbp)
setl %al
movb %al, -0x71(%rbp)
movb -0x71(%rbp), %al
testb $0x1, %al
jne 0x2768c
jmp 0x27697
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x27666
jmp 0x27699
cmpl $0x1e, -0x64(%rbp)
jge 0x276b3
movslq -0x64(%rbp), %rax
movb $0x20, -0x60(%rbp,%rax)
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x27699
movb $0x0, -0x42(%rbp)
leaq 0xb95ca(%rip), %rax     # 0xe0c88
movl (%rax), %eax
addl $-0x5, %eax
movl %eax, %ecx
movq %rcx, -0x80(%rbp)
subl $0x3, %eax
ja 0x2773c
movq -0x80(%rbp), %rax
leaq 0x88973(%rip), %rcx     # 0xb004c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x400, -0x68(%rbp)     # imm = 0x400
movl $0x1000, -0x6c(%rbp)    # imm = 0x1000
movl $0x1000, -0x70(%rbp)    # imm = 0x1000
jmp 0x2773c
movl $0x400, -0x68(%rbp)     # imm = 0x400
movl $0x2000, -0x6c(%rbp)    # imm = 0x2000
movl $0x1000, -0x70(%rbp)    # imm = 0x1000
jmp 0x2773c
movl $0x400, -0x68(%rbp)     # imm = 0x400
movl $0x2000, -0x6c(%rbp)    # imm = 0x2000
movl $0x1000, -0x70(%rbp)    # imm = 0x1000
jmp 0x2773c
movl $0x1000, -0x68(%rbp)    # imm = 0x1000
movl $0x4000, -0x6c(%rbp)    # imm = 0x4000
movl $0x4000, -0x70(%rbp)    # imm = 0x4000
leaq -0x60(%rbp), %r8
movl $0x8, %edi
movl $0x80, %esi
movl $0xb, %edx
movl $0x6, %ecx
xorl %r9d, %r9d
callq 0x255b0
leaq -0x60(%rbp), %rdi
leaq 0xb9521(%rip), %rax     # 0xe0c88
movl (%rax), %edx
leaq 0x3e5350(%rip), %rax    # 0x40cac0
movswl (%rax), %ecx
movl -0x68(%rbp), %r8d
leaq 0x42a24a(%rip), %rax    # 0x4519c8
movswl (%rax), %r9d
movl -0x6c(%rbp), %r11d
movl 0x18f19f(%rip), %r10d   # 0x1b692c
movl -0x70(%rbp), %eax
leaq 0x893eb(%rip), %rsi     # 0xb0b82
movl %r11d, (%rsp)
movl %r10d, 0x8(%rsp)
movl %eax, 0x10(%rsp)
movb $0x0, %al
callq 0x6a30
movl $0x0, -0x64(%rbp)
movslq -0x64(%rbp), %rax
movsbl -0x60(%rbp,%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x81(%rbp)
je 0x277d5
cmpl $0x2e, -0x64(%rbp)
setl %al
movb %al, -0x81(%rbp)
movb -0x81(%rbp), %al
testb $0x1, %al
jne 0x277e1
jmp 0x277ec
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x277b2
jmp 0x277ee
cmpl $0x2e, -0x64(%rbp)
jge 0x27808
movslq -0x64(%rbp), %rax
movb $0x20, -0x60(%rbp,%rax)
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x277ee
movb $0x0, -0x32(%rbp)
leaq -0x60(%rbp), %r8
movl $0x108, %edi            # imm = 0x108
movl $0x80, %esi
movl $0xe, %edx
movl $0x6, %ecx
xorl %r9d, %r9d
callq 0x255b0
callq 0x1a450
addq $0xa0, %rsp
popq %rbp
retq
nopw (%rax,%rax)