// File: /workspace/github_c_makefile_star2_O3/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 $0x58, %rsp
leaq 0x1c(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x4b65
callq 0xdbfc
movl %eax, %ebp
xorb $0x1, %al
movzbl %al, %ebx
callq 0xdaf0
movq %rax, %r15
callq 0x4cfb
movb %bpl, 0xf(%rsp)
movzbl %bpl, %r14d
orl $-0x2, %r14d
addl %eax, %r14d
callq 0x4d05
movl %eax, %ebp
movq %r15, %rdi
callq 0xd4d9
movq %rax, %r15
movq %rax, %rdi
movl %ebx, %esi
movl %ebp, %edx
movq %r14, 0x20(%rsp)
movl %r14d, %ecx
callq 0xd3c4
testq %r15, %r15
je 0x50dd
movq 0x20(%rsp), %rax
decl %eax
movl %eax, 0x10(%rsp)
xorl %eax, %eax
movq %rax, 0x30(%rsp)
testl %eax, %eax
je 0x4f39
cmpl $0x0, 0x10(%rsp)
jle 0x4f39
movl 0x10(%r15), %ebp
decl %ebp
movl 0x14(%r15), %edi
movq 0x20(%rsp), %rax
movl %eax, %ebx
leal 0x1(%rdi), %r14d
movl %ebp, %esi
callq 0x4b8c
movl $0x7c, %edi
callq 0x4c56
decl %ebx
movl %r14d, %edi
cmpl $0x1, %ebx
ja 0x4f1a
xorl %eax, %eax
movq %r15, 0x38(%rsp)
movq %r15, %r14
movl %eax, 0x14(%rsp)
testl %eax, %eax
je 0x4f74
movl 0x10(%r14), %esi
movl 0x14(%r14), %edi
decl %edi
movl 0x18(%r14), %ebx
callq 0x4b8c
cmpl $0x2, %ebx
jl 0x4f74
decl %ebx
movl $0x2d, %edi
callq 0x4c56
cmpl $0x1, %ebx
ja 0x4f63
movq (%r14), %rax
movups 0x20(%r14), %xmm0
movaps %xmm0, 0x40(%rsp)
movl 0x40(%r14), %ecx
xorl %edx, %edx
cmpl $0x10, %ecx
sete %dl
cmpl $0x20, %ecx
movl $0x2, %ecx
cmovel %ecx, %edx
movl %edx, 0x50(%rsp)
movq 0x8(%rax), %rdi
movl 0xc(%r14), %esi
xorl %r15d, %r15d
xorl %edx, %edx
callq 0x9d35
testq %rax, %rax
je 0x5076
movq %rax, %r13
xorl %r15d, %r15d
cmpl 0x1c(%r14), %r15d
jge 0x5076
movq 0x8(%r13), %rbx
movl 0x10(%r14), %esi
movl 0x18(%r14), %eax
cmpq %rax, %rbx
cmovael %eax, %ebx
movl 0x14(%r14), %edi
addl %r15d, %edi
callq 0x4b8c
callq 0x4d0f
testl %ebx, %ebx
jle 0x505f
movl %ebx, %r12d
xorl %ebp, %ebp
movl 0xc(%r14), %ebx
addl %r15d, %ebx
testb $0x38, 0x40(%r14)
je 0x5017
leaq 0x40(%rsp), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0xca24
movzbl %al, %edi
callq 0x4acf
movl %ebp, 0x28(%rsp)
movl %ebx, 0x2c(%rsp)
movq 0x38(%r14), %rax
cmpq 0x28(%rsp), %rax
je 0x5039
movq (%r13), %rax
movsbl (%rax,%rbp), %edi
callq 0x4c56
jmp 0x5057
movl $0x1, %edi
callq 0x4acf
movq (%r13), %rax
movsbl (%rax,%rbp), %edi
callq 0x4c56
xorl %edi, %edi
callq 0x4acf
incq %rbp
cmpq %rbp, %r12
jne 0x4ff3
xorl %edi, %edi
callq 0x4acf
movq 0x18(%r13), %r13
incl %r15d
testq %r13, %r13
jne 0x4fbd
movl $0x3, %edi
callq 0x4c97
cmpl 0x1c(%r14), %r15d
jge 0x50aa
movl 0x14(%r14), %edi
addl %r15d, %edi
movl 0x10(%r14), %esi
callq 0x4b8c
movl $0x7e, %edi
callq 0x4c56
callq 0x4d0f
incl %r15d
jmp 0x5080
xorl %edi, %edi
callq 0x4c97
movl 0x14(%rsp), %eax
incl %eax
movq 0x58(%r14), %r14
testq %r14, %r14
jne 0x4f43
movq 0x30(%rsp), %rax
incl %eax
movq 0x38(%rsp), %r15
movq 0x50(%r15), %r15
testq %r15, %r15
jne 0x4ef9
cmpb $0x0, 0xf(%rsp)
jne 0x51b2
callq 0xdc21
movl %eax, %ebp
callq 0x4d05
movl %eax, %ebx
xorl %edx, %edx
divl %ebp
cmpl $0x3, %eax
movl $0x2, %r14d
cmovael %eax, %r14d
incl %r14d
movq %r14, %rdi
callq 0x5830
movq %rax, %r15
callq 0xdbec
testq %rax, %rax
je 0x51a5
movq %rax, %r12
xorl %ebp, %ebp
movq (%r12), %rax
movq (%rax), %rdi
callq 0x9216
testq %rax, %rax
leaq 0x8f62(%rip), %rcx      # 0xe0a0
cmoveq %rcx, %rax
movq %r15, %rdi
movq %r14, %rsi
leaq 0x9930(%rip), %rdx      # 0xea7f
movq %rax, %rcx
xorl %eax, %eax
callq 0x41e0
movl %eax, %r13d
xorl %edi, %edi
movl %ebp, %esi
callq 0x4b8c
callq 0xdbdc
cmpq %rax, %r12
jne 0x5179
movl $0x1, %edi
callq 0x4acf
movq %r15, %rdi
callq 0x4ccf
xorl %edi, %edi
callq 0x4acf
movl $0x7c, %edi
callq 0x4c56
addl %r13d, %ebp
incl %ebp
cmpl %ebx, %ebp
jae 0x51a5
movq 0x8(%r12), %r12
testq %r12, %r12
jne 0x5128
callq 0x4d0f
movq %r15, %rdi
callq 0x4080
movl 0x1c(%rsp), %edi
movl 0x18(%rsp), %esi
callq 0x4b8c
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq