// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/jfbuild/src/build.c
// Function: printext16
void printext16(int xpos, int ypos, short col, short backcol, const char *name, char fontsize)
{
	int stx, i, x, y;
	const unsigned char *letptr;
	unsigned char *ptr;
	const struct textfontspec *f;

	f = &textfonts[min((unsigned)fontsize, 2)];
	stx = xpos;

	for(i=0;name[i];i++)
	{
		letptr = &f->font[((int)(unsigned char)name[i])*f->cellh + f->cellyoff];
		ptr = (unsigned char *)(bytesperline*(ytop16+ypos+f->charysiz-1)+stx+frameplace);
		for(y=f->charysiz-1;y>=0;y--)
		{
			for(x=f->charxsiz-1;x>=0;x--)
			{
				if (letptr[y]&pow2char[7-x-f->cellxoff])
					ptr[x] = (unsigned char)col;
				else if (backcol >= 0)
					ptr[x] = (unsigned char)backcol;
			}
			ptr -= bytesperline;
		}
		stx += f->charxsiz;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movb %r9b, %al
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movw %dx, -0xa(%rbp)
movw %cx, -0xc(%rbp)
movq %r8, -0x18(%rbp)
movb %al, -0x19(%rbp)
movsbl -0x19(%rbp), %eax
cmpl $0x2, %eax
jae 0x255de
movsbl -0x19(%rbp), %eax
movl %eax, -0x4c(%rbp)
jmp 0x255e8
movl $0x2, %eax
movl %eax, -0x4c(%rbp)
jmp 0x255e8
movl -0x4c(%rbp), %eax
movl %eax, %eax
movl %eax, %ecx
leaq 0xa953a(%rip), %rax     # 0xceb30
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movl -0x4(%rbp), %eax
movl %eax, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
cmpb $0x0, (%rax,%rcx)
je 0x25759
movq -0x48(%rbp), %rax
movq (%rax), %rax
movq -0x18(%rbp), %rcx
movslq -0x24(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
movq -0x48(%rbp), %rdx
imull 0x10(%rdx), %ecx
movq -0x48(%rbp), %rdx
addl 0x18(%rdx), %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
leaq 0x195791(%rip), %rax    # 0x1bade4
movl (%rax), %eax
movl 0x144e71(%rip), %ecx    # 0x16a4cc
addl -0x8(%rbp), %ecx
movq -0x48(%rbp), %rdx
addl 0xc(%rdx), %ecx
subl $0x1, %ecx
imull %ecx, %eax
addl -0x20(%rbp), %eax
cltq
leaq 0x195599(%rip), %rcx    # 0x1bac10
addq (%rcx), %rax
movq %rax, -0x40(%rbp)
movq -0x48(%rbp), %rax
movl 0xc(%rax), %eax
subl $0x1, %eax
movl %eax, -0x2c(%rbp)
cmpl $0x0, -0x2c(%rbp)
jl 0x2573e
movq -0x48(%rbp), %rax
movl 0x8(%rax), %eax
subl $0x1, %eax
movl %eax, -0x28(%rbp)
cmpl $0x0, -0x28(%rbp)
jl 0x25714
movq -0x38(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl $0x7, %ecx
subl -0x28(%rbp), %ecx
movq -0x48(%rbp), %rdx
subl 0x14(%rdx), %ecx
movslq %ecx, %rdx
leaq 0xbb5c3(%rip), %rcx     # 0xe0c90
movzbl (%rcx,%rdx), %ecx
andl %ecx, %eax
cmpl $0x0, %eax
je 0x256eb
movw -0xa(%rbp), %ax
movb %al, %dl
movq -0x40(%rbp), %rax
movslq -0x28(%rbp), %rcx
movb %dl, (%rax,%rcx)
jmp 0x25707
movswl -0xc(%rbp), %eax
cmpl $0x0, %eax
jl 0x25705
movw -0xc(%rbp), %ax
movb %al, %dl
movq -0x40(%rbp), %rax
movslq -0x28(%rbp), %rcx
movb %dl, (%rax,%rcx)
jmp 0x25707
jmp 0x25709
movl -0x28(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x256a2
leaq 0x1956c9(%rip), %rax    # 0x1bade4
movl (%rax), %ecx
movq -0x40(%rbp), %rax
movslq %ecx, %rdx
xorl %ecx, %ecx
subq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movl -0x2c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x2568b
movq -0x48(%rbp), %rax
movl 0x8(%rax), %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x2560e
popq %rbp
retq
nopl (%rax,%rax)