// File: /workspace/github_c_makefile_star2_O0/Babkock[P]st/x.c
// Function: xdrawline
void
xdrawline(Line line, int x1, int y1, int x2)
{
	int i, x, ox, numspecs;
	Glyph base, new;
	XftGlyphFontSpec *specs = xw.specbuf;

	numspecs = xmakeglyphfontspecs(specs, &line[x1], x2 - x1, x1, y1);
	i = ox = 0;
	for (x = x1; x < x2 && i < numspecs; x++) {
		new = line[x];
		if (new.mode == ATTR_WDUMMY)
			continue;
		if (selected(x, y1))
			new.mode |= ATTR_SELECTED;
		if (vbellset && isvbellcell(x, y1))
			new.mode ^= ATTR_REVERSE;
		if (i > 0 && ATTRCMP(base, new)) {
			xdrawglyphfontspecs(specs, base, i, ox, y1);
			specs += i;
			numspecs -= i;
			i = 0;
		}
		if (i == 0) {
			ox = x;
			base = new;
		}
		i++;
	}
	if (i > 0)
		xdrawglyphfontspecs(specs, base, i, ox, y1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movq 0x1519c(%rip), %rax     # 0x234f8
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rdi
movq -0x8(%rbp), %rsi
movslq -0xc(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rsi
movl -0x14(%rbp), %edx
subl -0xc(%rbp), %edx
movl -0xc(%rbp), %ecx
movl -0x10(%rbp), %r8d
callq 0xe4f0
movl %eax, -0x24(%rbp)
movl $0x0, -0x20(%rbp)
movl $0x0, -0x18(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %ecx
xorl %eax, %eax
cmpl -0x14(%rbp), %ecx
movb %al, -0x51(%rbp)
jge 0xe3b5
movl -0x18(%rbp), %eax
cmpl -0x24(%rbp), %eax
setl %al
movb %al, -0x51(%rbp)
movb -0x51(%rbp), %al
testb $0x1, %al
jne 0xe3c1
jmp 0xe4c8
movq -0x8(%rbp), %rax
movslq -0x1c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rcx
movq %rcx, -0x44(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x3c(%rbp)
movzwl -0x40(%rbp), %eax
cmpl $0x400, %eax            # imm = 0x400
jne 0xe3ef
jmp 0xe4ba
movl -0x1c(%rbp), %edi
movl -0x10(%rbp), %esi
callq 0x72a0
cmpl $0x0, %eax
je 0xe40c
movzwl -0x40(%rbp), %eax
orl $0x1000, %eax           # imm = 0x1000
movw %ax, -0x40(%rbp)
cmpl $0x0, 0x15205(%rip)     # 0x23618
je 0xe430
movl -0x1c(%rbp), %edi
movl -0x10(%rbp), %esi
callq 0xeb30
cmpl $0x0, %eax
je 0xe430
movzwl -0x40(%rbp), %eax
xorl $0x20, %eax
movw %ax, -0x40(%rbp)
cmpl $0x0, -0x18(%rbp)
jle 0xe495
movzwl -0x30(%rbp), %eax
movzwl -0x40(%rbp), %ecx
cmpl %ecx, %eax
jne 0xe452
movl -0x2c(%rbp), %eax
cmpl -0x3c(%rbp), %eax
jne 0xe452
movl -0x28(%rbp), %eax
cmpl -0x38(%rbp), %eax
je 0xe495
movq -0x50(%rbp), %rdi
movl -0x18(%rbp), %ecx
movl -0x20(%rbp), %r8d
movl -0x10(%rbp), %r9d
movq -0x34(%rbp), %rsi
movq -0x2c(%rbp), %rdx
callq 0xeb70
movl -0x18(%rbp), %ecx
movq -0x50(%rbp), %rax
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movl -0x18(%rbp), %ecx
movl -0x24(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x24(%rbp)
movl $0x0, -0x18(%rbp)
cmpl $0x0, -0x18(%rbp)
jne 0xe4b1
movl -0x1c(%rbp), %eax
movl %eax, -0x20(%rbp)
movq -0x44(%rbp), %rax
movq %rax, -0x34(%rbp)
movq -0x3c(%rbp), %rax
movq %rax, -0x2c(%rbp)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0xe39c
cmpl $0x0, -0x18(%rbp)
jle 0xe4ea
movq -0x50(%rbp), %rdi
movl -0x18(%rbp), %ecx
movl -0x20(%rbp), %r8d
movl -0x10(%rbp), %r9d
movq -0x34(%rbp), %rsi
movq -0x2c(%rbp), %rdx
callq 0xeb70
addq $0x60, %rsp
popq %rbp
retq