// File: /workspace/github_c_makefile_star2_O0/seanpringle[P]xoat/./spot.c
// Function: spot_update_bar
void spot_update_bar(int spot, int mon)
{
	int i, n = 0, len = 0; Client *o, *c = NULL;
	char *name = NULL, title[SPOT_BUFF]; *title = 0;
	Monitor *m = &monitors[mon];

	if (spot == SPOT1)
	{
		// Show X root window name in spot1 bar
		// Use xsetroot -name for a custom status
		char *tmp = NULL;
		if (XFetchName(display, root, &tmp))
			len += snprintf(title+len, MAX(0, SPOT_BUFF-len), " %s  ", tmp);
		if (tmp) XFree(tmp);
	}
	for_windows(i, o) if (o->manage && o->spot == spot && o->monitor == mon)
	{
		if (!c) c = o;
		if ((name = window_get_name(o->window)) && name)
		{
			if (settings.title_ellipsis > 0 && strlen(name) > settings.title_ellipsis)
			{
				name = realloc(name, strlen(name)+4);
				strcpy(name+settings.title_ellipsis, "...");
			}
			len += snprintf(title+len, MAX(0, SPOT_BUFF-len), " [%d] %s  ", n++, name);
			free(name);
		}
	}
	if (settings.title)
	{
		if (c && !c->full && *title && m->bars[spot])
		{
			int focus = c->window == current || (spot == current_spot && mon == current_mon);
			char *color  = focus && c->window == current ? settings.title_focus : settings.title_blur;
			char *border = focus && c->window == current ? settings.border_focus: settings.border_blur;
			textbox_font(m->bars[spot], settings.title, color, border);
			textbox_text(m->bars[spot], title);
			textbox_draw(m->bars[spot]);
			textbox_show(m->bars[spot]);
		}
		else
		if (m->bars[spot])
			textbox_hide(m->bars[spot]);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x490, %rsp            # imm = 0x490
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movl $0x0, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movq $0x0, -0x28(%rbp)
movq $0x0, -0x30(%rbp)
movb $0x0, -0x430(%rbp)
movslq -0x8(%rbp), %rcx
leaq 0x98ef(%rip), %rax      # 0x13bb0
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x438(%rbp)
cmpl $0x1, -0x4(%rbp)
jne 0xa381
movq $0x0, -0x440(%rbp)
movq 0x98b5(%rip), %rdi      # 0x13ba0
movq 0x9ea6(%rip), %rsi      # 0x14198
leaq -0x440(%rbp), %rdx
callq 0x3510
cmpl $0x0, %eax
je 0xa369
leaq -0x430(%rbp), %rax
movslq -0x14(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x460(%rbp)
movl $0x400, %ecx            # imm = 0x400
subl -0x14(%rbp), %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jle 0xa330
xorl %eax, %eax
movl %eax, -0x464(%rbp)
jmp 0xa33e
movl $0x400, %eax            # imm = 0x400
subl -0x14(%rbp), %eax
movl %eax, -0x464(%rbp)
movq -0x460(%rbp), %rdi
movl -0x464(%rbp), %eax
movslq %eax, %rsi
movq -0x440(%rbp), %rcx
leaq 0x4f6c(%rip), %rdx      # 0xf2c8
movb $0x0, %al
callq 0x3080
addl -0x14(%rbp), %eax
movl %eax, -0x14(%rbp)
cmpq $0x0, -0x440(%rbp)
je 0xa37f
movq -0x440(%rbp), %rdi
callq 0x3050
jmp 0xa381
callq 0x7380
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
movswl 0x99f9(%rip), %ecx      # 0x13d90
cmpl %ecx, %eax
jge 0xa51d
movslq -0xc(%rbp), %rcx
leaq 0x99e6(%rip), %rax      # 0x13d90
movq 0x8(%rax,%rcx,8), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
je 0xa50d
movq -0x20(%rbp), %rax
movswl 0x104(%rax), %eax
cmpl $0x0, %eax
je 0xa50b
movq -0x20(%rbp), %rax
movq 0x118(%rax), %rax
movslq -0x4(%rbp), %rcx
cmpq %rcx, %rax
jne 0xa50b
movq -0x20(%rbp), %rax
movswl 0x100(%rax), %eax
cmpl -0x8(%rbp), %eax
jne 0xa50b
cmpq $0x0, -0x28(%rbp)
jne 0xa40c
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rdi
callq 0x7210
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
je 0xa509
cmpq $0x0, -0x30(%rbp)
je 0xa509
cmpl $0x0, 0x9db8(%rip)      # 0x141f0
jbe 0xa492
movq -0x30(%rbp), %rdi
callq 0x3250
movl 0x9da7(%rip), %ecx      # 0x141f0
cmpq %rcx, %rax
jbe 0xa492
movq -0x30(%rbp), %rax
movq %rax, -0x470(%rbp)
movq -0x30(%rbp), %rdi
callq 0x3250
movq -0x470(%rbp), %rdi
movq %rax, %rsi
addq $0x4, %rsi
callq 0x3630
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
movl 0x9d6d(%rip), %eax      # 0x141f0
addq %rax, %rdi
leaq 0x4e32(%rip), %rsi      # 0xf2bf
callq 0x3490
leaq -0x430(%rbp), %rax
movslq -0x14(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x478(%rbp)
movl $0x400, %ecx            # imm = 0x400
subl -0x14(%rbp), %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jle 0xa4bf
xorl %eax, %eax
movl %eax, -0x47c(%rbp)
jmp 0xa4cd
movl $0x400, %eax            # imm = 0x400
subl -0x14(%rbp), %eax
movl %eax, -0x47c(%rbp)
movq -0x478(%rbp), %rdi
movl -0x47c(%rbp), %eax
movslq %eax, %rsi
movl -0x10(%rbp), %ecx
movl %ecx, %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
movq -0x30(%rbp), %r8
leaq 0x4dd0(%rip), %rdx      # 0xf2c3
movb $0x0, %al
callq 0x3080
addl -0x14(%rbp), %eax
movl %eax, -0x14(%rbp)
movq -0x30(%rbp), %rdi
callq 0x3220
jmp 0xa50b
jmp 0xa50d
jmp 0xa50f
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xa38d
cmpq $0x0, 0x9cb3(%rip)      # 0x141d8
je 0xa6f7
cmpq $0x0, -0x28(%rbp)
je 0xa6cb
movq -0x28(%rbp), %rax
cmpw $0x0, 0x10a(%rax)
jne 0xa6cb
movsbl -0x430(%rbp), %eax
cmpl $0x0, %eax
je 0xa6cb
movq -0x438(%rbp), %rax
movslq -0x4(%rbp), %rcx
cmpq $0x0, 0x28(%rax,%rcx,8)
je 0xa6cb
movq -0x28(%rbp), %rax
movq (%rax), %rcx
movb $0x1, %al
cmpq 0x9629(%rip), %rcx      # 0x13ba8
movb %al, -0x47d(%rbp)
je 0xa5be
movl -0x4(%rbp), %ecx
movswl 0x9ca7(%rip), %edx      # 0x14238
xorl %eax, %eax
cmpl %edx, %ecx
movb %al, -0x47e(%rbp)
jne 0xa5b2
movl -0x8(%rbp), %eax
movswl 0x9c93(%rip), %ecx      # 0x1423a
cmpl %ecx, %eax
sete %al
movb %al, -0x47e(%rbp)
movb -0x47e(%rbp), %al
movb %al, -0x47d(%rbp)
movb -0x47d(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x444(%rbp)
cmpl $0x0, -0x444(%rbp)
je 0xa5f8
movq -0x28(%rbp), %rax
movq (%rax), %rax
cmpq 0x95c2(%rip), %rax      # 0x13ba8
jne 0xa5f8
movq 0x9bf9(%rip), %rax      # 0x141e8
movq %rax, -0x488(%rbp)
jmp 0xa606
movq 0x9be1(%rip), %rax      # 0x141e0
movq %rax, -0x488(%rbp)
movq -0x488(%rbp), %rax
movq %rax, -0x450(%rbp)
cmpl $0x0, -0x444(%rbp)
je 0xa63d
movq -0x28(%rbp), %rax
movq (%rax), %rax
cmpq 0x957d(%rip), %rax      # 0x13ba8
jne 0xa63d
movq 0x9b8c(%rip), %rax      # 0x141c0
movq %rax, -0x490(%rbp)
jmp 0xa64b
movq 0x9b74(%rip), %rax      # 0x141b8
movq %rax, -0x490(%rbp)
movq -0x490(%rbp), %rax
movq %rax, -0x458(%rbp)
movq -0x438(%rbp), %rax
movslq -0x4(%rbp), %rcx
movq 0x28(%rax,%rcx,8), %rdi
movq 0x9b68(%rip), %rsi      # 0x141d8
movq -0x450(%rbp), %rdx
movq -0x458(%rbp), %rcx
callq 0x3f30
movq -0x438(%rbp), %rax
movslq -0x4(%rbp), %rcx
movq 0x28(%rax,%rcx,8), %rdi
leaq -0x430(%rbp), %rsi
callq 0x4070
movq -0x438(%rbp), %rax
movslq -0x4(%rbp), %rcx
movq 0x28(%rax,%rcx,8), %rdi
callq 0x44e0
movq -0x438(%rbp), %rax
movslq -0x4(%rbp), %rcx
movq 0x28(%rax,%rcx,8), %rdi
callq 0x43d0
jmp 0xa6f5
movq -0x438(%rbp), %rax
movslq -0x4(%rbp), %rcx
cmpq $0x0, 0x28(%rax,%rcx,8)
je 0xa6f3
movq -0x438(%rbp), %rax
movslq -0x4(%rbp), %rcx
movq 0x28(%rax,%rcx,8), %rdi
callq 0x4400
jmp 0xa6f5
jmp 0xa6f7
addq $0x490, %rsp            # imm = 0x490
popq %rbp
retq