// File: /workspace/github_c_makefile_star2_O1/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 0x4b59
callq 0xdf7c
movl %eax, %ebp
xorb $0x1, %al
movzbl %al, %ebx
callq 0xde6c
movq %rax, %r15
callq 0x4cfa
movb %bpl, 0xf(%rsp)
movzbl %bpl, %r14d
orl $-0x2, %r14d
addl %eax, %r14d
callq 0x4d04
movl %eax, %ebp
movq %r15, %rdi
callq 0xd869
movq %rax, %r15
movq %rax, %rdi
movl %ebx, %esi
movl %ebp, %edx
movq %r14, 0x20(%rsp)
movl %r14d, %ecx
callq 0xd78c
testq %r15, %r15
je 0x50e7
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 0x4b81
movl $0x7c, %edi
callq 0x4c4b
decl %ebx
movl %r14d, %edi
cmpl $0x1, %ebx
jg 0x4f1a
xorl %eax, %eax
movq %r15, 0x38(%rsp)
movq %r15, %r14
movl %eax, 0x14(%rsp)
testl %eax, %eax
je 0x4f76
movl 0x10(%r14), %esi
movl 0x14(%r14), %edi
decl %edi
movl 0x18(%r14), %ebx
callq 0x4b81
cmpl $0x2, %ebx
jl 0x4f76
incl %ebx
movl $0x2d, %edi
callq 0x4c4b
decl %ebx
cmpl $0x2, %ebx
jg 0x4f65
movq (%r14), %rax
movq 0x20(%r14), %rcx
movq %rcx, 0x40(%rsp)
movq 0x28(%r14), %rcx
movq %rcx, 0x48(%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 0x9ede
testq %rax, %rax
je 0x5080
movq %rax, %r13
xorl %r15d, %r15d
cmpl 0x1c(%r14), %r15d
jge 0x5080
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 0x4b81
callq 0x4d0e
testl %ebx, %ebx
jle 0x5069
movl %ebx, %r12d
xorl %ebp, %ebp
movl 0xc(%r14), %ebx
addl %r15d, %ebx
testb $0x38, 0x40(%r14)
je 0x5021
leaq 0x40(%rsp), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0xcdc0
movzbl %al, %edi
callq 0x4ac3
movl %ebp, 0x28(%rsp)
movl %ebx, 0x2c(%rsp)
movq 0x38(%r14), %rax
cmpq 0x28(%rsp), %rax
je 0x5043
movq (%r13), %rax
movsbl (%rax,%rbp), %edi
callq 0x4c4b
jmp 0x5061
movl $0x1, %edi
callq 0x4ac3
movq (%r13), %rax
movsbl (%rax,%rbp), %edi
callq 0x4c4b
xorl %edi, %edi
callq 0x4ac3
incq %rbp
cmpq %rbp, %r12
jne 0x4ffd
xorl %edi, %edi
callq 0x4ac3
movq 0x18(%r13), %r13
incl %r15d
testq %r13, %r13
jne 0x4fc7
movl $0x3, %edi
callq 0x4c8c
cmpl 0x1c(%r14), %r15d
jge 0x50b4
movl 0x14(%r14), %edi
addl %r15d, %edi
movl 0x10(%r14), %esi
callq 0x4b81
movl $0x7e, %edi
callq 0x4c4b
callq 0x4d0e
incl %r15d
jmp 0x508a
xorl %edi, %edi
callq 0x4c8c
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 0x51bc
callq 0xdfa1
movl %eax, %ebp
callq 0x4d04
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 0xdf6c
testq %rax, %rax
je 0x51af
movq %rax, %r12
xorl %ebp, %ebp
movq (%r12), %rax
movq (%rax), %rdi
callq 0x9348
testq %rax, %rax
leaq 0x9f60(%rip), %rcx      # 0xf0a8
cmoveq %rcx, %rax
movq %r15, %rdi
movq %r14, %rsi
leaq 0xa938(%rip), %rdx      # 0xfa91
movq %rax, %rcx
xorl %eax, %eax
callq 0x41e0
movl %eax, %r13d
xorl %edi, %edi
movl %ebp, %esi
callq 0x4b81
callq 0xdf5c
cmpq %rax, %r12
jne 0x5183
movl $0x1, %edi
callq 0x4ac3
movq %r15, %rdi
callq 0x4cce
xorl %edi, %edi
callq 0x4ac3
movl $0x7c, %edi
callq 0x4c4b
addl %r13d, %ebp
incl %ebp
cmpl %ebx, %ebp
jae 0x51af
movq 0x8(%r12), %r12
testq %r12, %r12
jne 0x5132
callq 0x4d0e
movq %r15, %rdi
callq 0x4080
movl 0x1c(%rsp), %edi
movl 0x18(%rsp), %esi
callq 0x4b81
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq