// File: /workspace/github_c_makefile_star2_O2/bobrippling[P]tim/ui.c
// Function: ui_redraw
void ui_redraw()
{
	int save_y, save_x;
	nc_get_yx(&save_y, &save_x);

	int tabspace = tabs_single() ? 0 : 1;
	ui_draw_windows(windows_cur(), tabspace, nc_LINES() - (1 + tabspace), nc_COLS());

	if(tabspace)
		ui_draw_tabs();

	nc_set_yx(save_y, save_x);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
leaq 0x14(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x49c3
callq 0xd270
movl %eax, %ebp
xorb $0x1, %al
movzbl %al, %ebx
callq 0xd170
movq %rax, %r14
callq 0x4b4e
movl %eax, %r15d
movb %bpl, 0x3(%rsp)
movzbl %bpl, %r13d
orl $-0x2, %r13d
leal (%r15,%r13), %ebp
callq 0x4b58
movl %eax, %r12d
movq %r14, %rdi
callq 0xcb9a
movq %rax, %rdi
movl %ebx, %esi
movl %r12d, %edx
movq %rax, %r12
movl %ebp, %ecx
callq 0xcac0
leal (%r15,%r13), %eax
decl %eax
movl %eax, 0x4(%rsp)
pushq $0x2d
popq %r15
xorl %eax, %eax
testq %r12, %r12
je 0x4f3a
movl %eax, 0x8(%rsp)
testl %eax, %eax
je 0x4d82
movl 0x10(%r12), %ebx
movl 0x14(%r12), %edi
decl %ebx
movl 0x4(%rsp), %ebp
testl %ebp, %ebp
jle 0x4d82
leal 0x1(%rdi), %r14d
movl %ebx, %esi
callq 0x49e5
pushq $0x7c
popq %rdi
callq 0x4ab2
decl %ebp
movl %r14d, %edi
jmp 0x4d64
xorl %eax, %eax
movq %r12, 0x20(%rsp)
testq %r12, %r12
je 0x4f25
movl %eax, 0xc(%rsp)
testl %eax, %eax
je 0x4dc1
movl 0x10(%r12), %esi
movl 0x14(%r12), %edi
decl %edi
movl 0x18(%r12), %ebx
callq 0x49e5
cmpl $0x2, %ebx
jl 0x4dc1
decl %ebx
movl %r15d, %edi
callq 0x4ab2
jmp 0x4db0
movq (%r12), %rax
movups 0x20(%r12), %xmm0
movaps %xmm0, 0x30(%rsp)
movl 0x40(%r12), %ecx
xorl %edx, %edx
cmpl $0x10, %ecx
sete %dl
cmpl $0x20, %ecx
pushq $0x2
popq %rcx
cmovel %ecx, %edx
movl %edx, 0x40(%rsp)
movq 0x8(%rax), %rdi
movl 0xc(%r12), %esi
xorl %r13d, %r13d
xorl %edx, %edx
callq 0x9737
movq %rax, %r15
leaq 0x38(%r12), %rax
movq %rax, 0x28(%rsp)
testq %r15, %r15
je 0x4ed5
cmpl 0x1c(%r12), %r13d
jge 0x4ed5
movq 0x8(%r15), %rbp
movl 0x10(%r12), %esi
movl 0x18(%r12), %eax
cmpq %rax, %rbp
cmovael %eax, %ebp
movl 0x14(%r12), %edi
addl %r13d, %edi
callq 0x49e5
callq 0x4b62
testl %ebp, %ebp
movl $0x0, %eax
cmovlel %eax, %ebp
xorl %ebx, %ebx
cmpq %rbx, %rbp
je 0x4ec2
movl 0xc(%r12), %r14d
addl %r13d, %r14d
testb $0x38, 0x40(%r12)
je 0x4e7c
leaq 0x30(%rsp), %rdi
movl %ebx, %esi
movl %r14d, %edx
callq 0xc184
movzbl %al, %edi
callq 0x4932
movl %ebx, 0x18(%rsp)
movl %r14d, 0x1c(%rsp)
movq 0x28(%rsp), %rax
movq (%rax), %rax
cmpq 0x18(%rsp), %rax
je 0x4ea2
movq (%r15), %rax
movsbl (%rax,%rbx), %edi
callq 0x4ab2
jmp 0x4ebd
pushq $0x1
popq %rdi
callq 0x4932
movq (%r15), %rax
movsbl (%rax,%rbx), %edi
callq 0x4ab2
xorl %edi, %edi
callq 0x4932
incq %rbx
jmp 0x4e50
xorl %edi, %edi
callq 0x4932
movq 0x18(%r15), %r15
incl %r13d
jmp 0x4e0a
pushq $0x3
popq %rdi
callq 0x4aec
pushq $0x7e
popq %rbx
pushq $0x2d
popq %r15
cmpl 0x1c(%r12), %r13d
jge 0x4f0e
movl 0x14(%r12), %edi
addl %r13d, %edi
movl 0x10(%r12), %esi
callq 0x49e5
movl %ebx, %edi
callq 0x4ab2
callq 0x4b62
incl %r13d
jmp 0x4ee4
xorl %edi, %edi
callq 0x4aec
movl 0xc(%rsp), %eax
incl %eax
movq 0x58(%r12), %r12
jmp 0x4d89
movl 0x8(%rsp), %eax
incl %eax
movq 0x20(%rsp), %r12
movq 0x50(%r12), %r12
jmp 0x4d43
cmpb $0x0, 0x3(%rsp)
jne 0x5000
callq 0xd27e
movl %eax, %ebx
callq 0x4b58
movl %eax, %ebp
xorl %edx, %edx
divl %ebx
cmpl $0x3, %eax
pushq $0x2
popq %rdi
cmovael %eax, %edi
incl %edi
movq %rdi, %r13
callq 0x5648
movq %rax, %r14
callq 0xd260
movq %rax, %r15
xorl %r12d, %r12d
testq %r15, %r15
je 0x4ff3
movq (%r15), %rax
movq (%rax), %rdi
callq 0x8cc6
testq %rax, %rax
leaq 0x910e(%rip), %rcx      # 0xe0a0
cmoveq %rcx, %rax
movq %r14, %rdi
movq %r13, %rsi
leaq 0x9adc(%rip), %rdx      # 0xea7f
movq %rax, %rcx
xorl %eax, %eax
callq 0x41e0
movl %eax, %ebx
xorl %edi, %edi
movl %r12d, %esi
callq 0x49e5
callq 0xd250
cmpq %rax, %r15
jne 0x4fcb
pushq $0x1
popq %rdi
callq 0x4932
movq %r14, %rdi
callq 0x4b24
xorl %edi, %edi
callq 0x4932
pushq $0x7c
popq %rdi
callq 0x4ab2
addl %ebx, %r12d
incl %r12d
cmpl %ebp, %r12d
jae 0x4ff3
movq 0x8(%r15), %r15
jmp 0x4f78
callq 0x4b62
movq %r14, %rdi
callq 0x4080
movl 0x14(%rsp), %edi
movl 0x10(%rsp), %esi
callq 0x49e5
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq