LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/monitor.c
// Function: embrace_client
void embrace_client(monitor_t *m, client_t *c)
{
	if ((c->floating_rectangle.x + c->floating_rectangle.width) <= m->rectangle.x) {
		c->floating_rectangle.x = m->rectangle.x;
	} else if (c->floating_rectangle.x >= (m->rectangle.x + m->rectangle.width)) {
		c->floating_rectangle.x = (m->rectangle.x + m->rectangle.width) - c->floating_rectangle.width;
	}
	if ((c->floating_rectangle.y + c->floating_rectangle.height) <= m->rectangle.y) {
		c->floating_rectangle.y = m->rectangle.y;
	} else if (c->floating_rectangle.y >= (m->rectangle.y + m->rectangle.height)) {
		c->floating_rectangle.y = (m->rectangle.y + m->rectangle.height) - c->floating_rectangle.height;
	}
}

// Assembly:
movswl 0x318(%rsi), %edx
movzwl 0x31c(%rsi), %eax
leal (%rax,%rdx), %r9d
movzwl 0x4c(%rdi), %ecx
movswl %cx, %r8d
cmpl %r8d, %r9d
jle 0x7226
movzwl 0x50(%rdi), %ecx
addl %r8d, %ecx
cmpl %edx, %ecx
jg 0x722d
subl %eax, %ecx
movw %cx, 0x318(%rsi)
movswl 0x31a(%rsi), %edx
movzwl 0x31e(%rsi), %eax
leal (%rax,%rdx), %r9d
movzwl 0x4e(%rdi), %ecx
movswl %cx, %r8d
cmpl %r8d, %r9d
jle 0x7259
movzwl 0x52(%rdi), %ecx
addl %r8d, %ecx
cmpl %edx, %ecx
jg 0x7260
subl %eax, %ecx
movw %cx, 0x31a(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/monitor.c
// Function: add_monitor
void add_monitor(monitor_t *m)
{
	xcb_rectangle_t r = m->rectangle;

	if (mon == NULL) {
		mon = m;
		mon_head = m;
		mon_tail = m;
	} else {
		monitor_t *a = mon_head;
		while (a != NULL && rect_cmp(m->rectangle, a->rectangle) > 0) {
			a = a->next;
		}
		if (a != NULL) {
			monitor_t *b = a->prev;
			if (b != NULL) {
				b->next = m;
			} else {
				mon_head = m;
			}
			m->prev = b;
			m->next = a;
			a->prev = m;
		} else {
			mon_tail->next = m;
			m->prev = mon_tail;
			mon_tail = m;
		}
	}

	put_status(SBSC_MASK_MONITOR_ADD, "monitor_add 0x%08X %s %ux%u+%i+%i\n", m->id, m->name, r.width, r.height, r.x, r.y);

	put_status(SBSC_MASK_REPORT);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movswl 0x4c(%rdi), %r12d
movswl 0x4e(%rdi), %r11d
movzwl 0x50(%rdi), %ebp
movzwl 0x52(%rdi), %r14d
leaq 0x22487(%rip), %rax     # 0x29710
cmpq $0x0, (%rax)
je 0x72d2
movq %r11, (%rsp)
leaq 0x2246e(%rip), %r15     # 0x29708
movq (%r15), %r13
testq %r13, %r13
je 0x72b9
movq 0x4c(%rbx), %rdi
movq 0x4c(%r13), %rsi
callq 0x639f
testl %eax, %eax
jle 0x72e8
movq 0x78(%r13), %r13
jmp 0x729d
leaq 0x22440(%rip), %r13     # 0x29700
movq (%r13), %rax
movq %rbx, 0x78(%rax)
movq %rax, 0x70(%rbx)
movq (%rsp), %r11
jmp 0x7308
movq %rbx, (%rax)
leaq 0x2242c(%rip), %rax     # 0x29708
movq %rbx, (%rax)
leaq 0x2241a(%rip), %r13     # 0x29700
jmp 0x7308
movq 0x70(%r13), %rax
testq %rax, %rax
je 0x72f5
leaq 0x78(%rax), %r15
movq (%rsp), %r11
movq %rbx, (%r15)
movq %rax, 0x70(%rbx)
movq %r13, 0x78(%rbx)
addq $0x70, %r13
movq %rbx, (%r13)
movl 0x20(%rbx), %edx
leaq 0x18184(%rip), %rsi     # 0x1f49a
movl $0x2, %edi
movq %rbx, %rcx
movl %ebp, %r8d
movl %r14d, %r9d
xorl %eax, %eax
pushq %r11
pushq %r12
callq 0x1eb0b
addq $0x10, %rsp
movl $0x1, %edi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1eb0b
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/monitor.c
// Function: remove_monitor
void remove_monitor(monitor_t *m)
{
	put_status(SBSC_MASK_MONITOR_REMOVE, "monitor_remove 0x%08X\n", m->id);

	while (m->desk_head != NULL) {
		remove_desktop(m, m->desk_head);
	}

	monitor_t *last_mon = mon;

	unlink_monitor(m);
	xcb_destroy_window(dpy, m->root);
	free(m);

	if (mon != last_mon) {
		focus_node(NULL, NULL, NULL);
	}

	put_status(SBSC_MASK_REPORT);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl 0x20(%rdi), %edx
leaq 0x180fe(%rip), %rsi     # 0x1f4bd
movl $0x8, %edi
xorl %eax, %eax
callq 0x1eb0b
movq 0x60(%rbx), %rsi
testq %rsi, %rsi
je 0x73de
movq %rbx, %rdi
callq 0x842d
jmp 0x73cb
leaq 0x2232b(%rip), %r14     # 0x29710
movq (%r14), %r15
movq %rbx, %rdi
callq 0x734d
leaq 0x222d1(%rip), %rax     # 0x296c8
movq (%rax), %rdi
movl 0x28(%rbx), %esi
callq 0x4130
movq %rbx, %rdi
callq 0x4460
cmpq %r15, (%r14)
je 0x741a
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0xa2cd
movl $0x1, %edi
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0x1eb0b
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/monitor.c
// Function: merge_monitors
void merge_monitors(monitor_t *ms, monitor_t *md)
{
	if (ms == NULL || md == NULL || ms == md) {
		return;
	}

	desktop_t *d = ms->desk_head;
	while (d != NULL) {
		desktop_t *next = d->next;
		transfer_desktop(ms, md, d, false);
		d = next;
	}
}

// Assembly:
cmpq %rsi, %rdi
je 0x746c
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
testq %rdi, %rdi
je 0x7467
movq %rsi, %rbx
testq %rsi, %rsi
je 0x7467
movq 0x60(%r14), %rdx
testq %rdx, %rdx
je 0x7467
movq 0x48(%rdx), %r15
movq %r14, %rdi
movq %rbx, %rsi
xorl %ecx, %ecx
callq 0x7fb3
movq %r15, %rdx
testq %r15, %r15
jne 0x744e
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/monitor.c
// Function: closest_monitor
monitor_t *closest_monitor(monitor_t *m, cycle_dir_t dir, monitor_select_t *sel)
{
	monitor_t *f = (dir == CYCLE_PREV ? m->prev : m->next);

	if (f == NULL) {
		f = (dir == CYCLE_PREV ? mon_tail : mon_head);
	}

	while (f != m) {
		coordinates_t loc = {f, NULL, NULL};
		if (monitor_matches(&loc, &loc, sel)) {
			return f;
		}
		f = (dir == CYCLE_PREV ? f->prev : f->next);
		if (f == NULL) {
			f = (dir == CYCLE_PREV ? mon_tail : mon_head);
		}
	}

	return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movq %rdi, %r14
xorl %eax, %eax
movl %esi, 0xc(%rsp)
cmpl $0x1, %esi
setne %al
movq 0x70(%rdi,%rax,8), %r13
jne 0x749d
leaq 0x22265(%rip), %rcx     # 0x29700
jmp 0x74a4
leaq 0x22264(%rip), %rcx     # 0x29708
testq %r13, %r13
jne 0x74ac
movq (%rcx), %r13
leaq 0x70(,%rax,8), %rbp
leaq 0x10(%rsp), %r15
cmpq %r14, %r13
je 0x750d
movq %r13, 0x10(%rsp)
leaq 0x18(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq %r15, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x1905e
testb %al, %al
je 0x74e5
movq %r13, %r12
jmp 0x7507
leaq 0x2221c(%rip), %rcx     # 0x29708
cmpl $0x1, 0xc(%rsp)
jne 0x74fa
leaq 0x22206(%rip), %rcx     # 0x29700
movq (%r13,%rbp), %r13
testq %r13, %r13
jne 0x7507
movq (%rcx), %r13
testb %al, %al
je 0x74b9
jmp 0x7510
xorl %r12d, %r12d
movq %r12, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/monitor.c
// Function: monitor_from_point
monitor_t *monitor_from_point(xcb_point_t pt)
{
	for (monitor_t *m = mon_head; m != NULL; m = m->next) {
		if (is_inside_monitor(m, pt)) {
			return m;
		}
	}
	return NULL;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
leaq 0x221cf(%rip), %rax     # 0x29708
movq (%rax), %rbx
testq %rbx, %rbx
je 0x755b
movl %edi, %ebp
movq 0x4c(%rbx), %rsi
movl %ebp, %edi
callq 0x6134
testb %al, %al
jne 0x755b
movq 0x78(%rbx), %rbx
testq %rbx, %rbx
jne 0x7543
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/monitor.c
// Function: monitor_from_client
monitor_t *monitor_from_client(client_t *c)
{
	int16_t xc = c->floating_rectangle.x + c->floating_rectangle.width/2;
	int16_t yc = c->floating_rectangle.y + c->floating_rectangle.height/2;
	xcb_point_t pt = {xc, yc};
	monitor_t *nearest = monitor_from_point(pt);
	if (nearest == NULL) {
		int dmin = INT_MAX;
		for (monitor_t *m = mon_head; m != NULL; m = m->next) {
			xcb_rectangle_t r = m->rectangle;
			int d = abs((r.x + r.width / 2) - xc) + abs((r.y + r.height / 2) - yc);
			if (d < dmin) {
				dmin = d;
				nearest = m;
			}
		}
	}
	return nearest;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movzwl 0x31c(%rdi), %r14d
shrl %r14d
addw 0x318(%rdi), %r14w
movzwl 0x31e(%rdi), %r15d
shrl %r15d
addw 0x31a(%rdi), %r15w
leaq 0x2216e(%rip), %r12     # 0x29708
movq (%r12), %rbx
testq %rbx, %rbx
je 0x75c7
movl %r15d, %eax
shll $0x10, %eax
movzwl %r14w, %ebp
orl %eax, %ebp
movq 0x4c(%rbx), %rsi
movl %ebp, %edi
callq 0x6134
testb %al, %al
jne 0x75c7
movq 0x78(%rbx), %rbx
testq %rbx, %rbx
jne 0x75af
testq %rbx, %rbx
jne 0x7636
movq (%r12), %rax
testq %rax, %rax
je 0x7634
movswl %r14w, %ecx
movswl %r15w, %edx
movl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
xorl %ebx, %ebx
movswl 0x4c(%rax), %edi
subl %ecx, %edi
movswl 0x4e(%rax), %r8d
movzwl 0x50(%rax), %r9d
shrl %r9d
addl %edi, %r9d
movl %r9d, %edi
negl %edi
cmovsl %r9d, %edi
movzwl 0x52(%rax), %r9d
shrl %r9d
subl %edx, %r8d
addl %r9d, %r8d
movl %r8d, %r9d
negl %r9d
cmovsl %r8d, %r9d
addl %edi, %r9d
cmpl %esi, %r9d
cmovll %r9d, %esi
cmovlq %rax, %rbx
movq 0x78(%rax), %rax
testq %rax, %rax
jne 0x75e4
jmp 0x7636
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/monitor.c
// Function: nearest_monitor
monitor_t *nearest_monitor(monitor_t *m, direction_t dir, monitor_select_t *sel)
{
	uint32_t dmin = UINT32_MAX;
	monitor_t *nearest = NULL;
	xcb_rectangle_t rect = m->rectangle;
	for (monitor_t *f = mon_head; f != NULL; f = f->next) {
		coordinates_t loc = {f, NULL, NULL};
		xcb_rectangle_t r = f->rectangle;
		if (f == m ||
		    !monitor_matches(&loc, &loc, sel) ||
		    !on_dir_side(rect, r, dir)) {
			continue;
		}
		uint32_t d = boundary_distance(rect, r, dir);
		if (d < dmin) {
			dmin = d;
			nearest = f;
		}
	}
	return nearest;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
leaq 0x220b1(%rip), %rax     # 0x29708
movq (%rax), %rbp
testq %rbp, %rbp
je 0x771c
movq %rdx, %rbx
movq %rdi, %r14
movl %esi, 0x14(%rsp)
movq 0x4c(%rdi), %r12
movl $0xffffffff, 0x4(%rsp)  # imm = 0xFFFFFFFF
leaq 0x28(%rsp), %r13
movq $0x0, 0x8(%rsp)
movq %rdi, 0x18(%rsp)
movq %rbp, 0x20(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%r13)
cmpq %r14, %rbp
je 0x770d
movq 0x4c(%rbp), %r15
leaq 0x20(%rsp), %rdi
movq %rdi, %rsi
movq %rbx, %rdx
callq 0x1905e
testb %al, %al
je 0x770d
movq %r13, %r14
movq %rbx, %r13
movq %r12, %rdi
movq %r15, %rsi
movq %r12, %rbx
movl 0x14(%rsp), %r12d
movl %r12d, %edx
callq 0x6246
testb %al, %al
je 0x76ff
movq %rbx, %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0x61d1
movl 0x4(%rsp), %edx
cmpl %edx, %eax
movq 0x8(%rsp), %rcx
cmovbq %rbp, %rcx
movq %rcx, 0x8(%rsp)
cmovbl %eax, %edx
movl %edx, 0x4(%rsp)
movq %rbx, %r12
movq %r13, %rbx
movq %r14, %r13
movq 0x18(%rsp), %r14
movq 0x78(%rbp), %rbp
testq %rbp, %rbp
jne 0x768c
jmp 0x7725
movq $0x0, 0x8(%rsp)
movq 0x8(%rsp), %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/monitor.c
// Function: find_any_monitor
bool find_any_monitor(coordinates_t *ref, coordinates_t *dst, monitor_select_t *sel)
{
	for (monitor_t *m = mon_head; m != NULL; m = m->next) {
		coordinates_t loc = {m, NULL, NULL};
		if (monitor_matches(&loc, ref, sel)) {
			*dst = loc;
			return true;
		}
	}
	return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
leaq 0x21fba(%rip), %rax     # 0x29708
movq (%rax), %r13
testq %r13, %r13
setne %bpl
je 0x77ca
movq %rdx, %r14
movq %rdi, %r15
movq %rsi, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
movq %r13, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movq %r15, %rsi
callq 0x1905e
testb %al, %al
jne 0x77b4
leaq 0x18(%rsp), %rbx
leaq 0x10(%rsp), %r12
movq 0x78(%r13), %r13
testq %r13, %r13
setne %bpl
je 0x77ca
movq %r13, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1905e
testb %al, %al
je 0x778a
movq 0x20(%rsp), %rax
movq 0x8(%rsp), %rcx
movq %rax, 0x10(%rcx)
movups 0x10(%rsp), %xmm0
movups %xmm0, (%rcx)
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/desktop.c
// Function: activate_desktop
bool activate_desktop(monitor_t *m, desktop_t *d)
{
	if (d != NULL && m == mon) {
		return false;
	}

	if (d == NULL) {
		d = m->desk;
		if (d == NULL) {
			d = history_last_desktop(m, NULL);
		}
		if (d == NULL) {
			d = m->desk_head;
		}
	}

	if (d == NULL || d == m->desk) {
		return false;
	}

	if (m->sticky_count > 0 && m->desk != NULL) {
		transfer_sticky_nodes(m, m->desk, m, d, m->desk->root);
	}

	show_desktop(d);
	hide_desktop(m->desk);

	m->desk = d;

	history_add(m, d, NULL, false);

	put_status(SBSC_MASK_DESKTOP_ACTIVATE, "desktop_activate 0x%08X 0x%08X\n", m->id, d->id);
	put_status(SBSC_MASK_REPORT);

	return true;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
testq %rsi, %rsi
je 0x7c07
leaq 0x21b12(%rip), %rax     # 0x29710
cmpq %rbx, (%rax)
je 0x7cb5
testq %r14, %r14
jne 0x7c2b
movq 0x58(%rbx), %r14
testq %r14, %r14
jne 0x7c22
movq %rbx, %rdi
xorl %esi, %esi
callq 0xd805
movq %rax, %r14
testq %r14, %r14
jne 0x7c2b
movq 0x60(%rbx), %r14
testq %r14, %r14
je 0x7cb5
movq 0x58(%rbx), %rsi
cmpq %rsi, %r14
je 0x7cb5
testq %rsi, %rsi
je 0x7c5a
cmpl $0x0, 0x40(%rbx)
je 0x7c5a
movq 0x30(%rsi), %r8
movq %rbx, %rdi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x9dd4
movq 0x30(%r14), %rsi
movq %r14, %rdi
callq 0xa798
movq 0x58(%rbx), %rdi
testq %rdi, %rdi
je 0x7c78
movq 0x30(%rdi), %rsi
callq 0xa721
movq %r14, 0x58(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xd40d
movl 0x20(%rbx), %edx
movl 0x20(%r14), %ecx
leaq 0x17862(%rip), %rsi     # 0x1f4fb
movl $0x2000, %edi           # imm = 0x2000
xorl %eax, %eax
callq 0x1eb0b
movl $0x1, %edi
xorl %eax, %eax
callq 0x1eb0b
movb $0x1, %al
jmp 0x7cb7
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/desktop.c
// Function: find_closest_desktop
bool find_closest_desktop(coordinates_t *ref, coordinates_t *dst, cycle_dir_t dir, desktop_select_t *sel)
{
	monitor_t *m = ref->monitor;
	desktop_t *d = ref->desktop;
	d = (dir == CYCLE_PREV ? d->prev : d->next);

#define HANDLE_BOUNDARIES(m, d)  \
	if (d == NULL) { \
		m = (dir == CYCLE_PREV ? m->prev : m->next); \
		if (m == NULL) { \
			m = (dir == CYCLE_PREV ? mon_tail : mon_head); \
		} \
		d = (dir == CYCLE_PREV ? m->desk_tail : m->desk_head); \
	}
	HANDLE_BOUNDARIES(m, d)

	while (d != ref->desktop) {
		coordinates_t loc = {m, d, NULL};
		if (desktop_matches(&loc, ref, sel)) {
			*dst = loc;
			return true;
		}
		d = (dir == CYCLE_PREV ? d->prev : d->next);
		HANDLE_BOUNDARIES(m, d)
	}
#undef HANDLE_BOUNDARIES

	return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %r13
movq 0x8(%rdi), %rax
xorl %ecx, %ecx
cmpl $0x1, %edx
setne %cl
movq 0x40(%rax,%rcx,8), %rcx
testq %rcx, %rcx
jne 0x7d41
xorl %eax, %eax
xorl %esi, %esi
cmpl $0x1, %edx
sete %cl
setne %sil
movq 0x70(%r13,%rsi,8), %r13
jne 0x7d2b
leaq 0x219d7(%rip), %rsi     # 0x29700
jmp 0x7d32
leaq 0x219d6(%rip), %rsi     # 0x29708
testq %r13, %r13
jne 0x7d3a
movq (%rsi), %r13
movb %cl, %al
movq 0x60(%r13,%rax,8), %rcx
xorl %eax, %eax
xorl %esi, %esi
movl %edx, 0x4(%rsp)
cmpl $0x1, %edx
sete %al
setne %sil
shll $0x3, %esi
leaq 0x40(%rsi), %rdx
movq %rdx, 0x18(%rsp)
orq $0x70, %rsi
movq %rsi, 0x10(%rsp)
leaq 0x60(,%rax,8), %rax
movq %rax, 0x8(%rsp)
movq %rcx, %r12
movq 0x8(%r15), %rbp
cmpq %rbp, %rcx
je 0x7e0a
movq %r13, 0x20(%rsp)
movq %r12, 0x28(%rsp)
movq $0x0, 0x30(%rsp)
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x190a4
testb %al, %al
je 0x7dc3
movq 0x30(%rsp), %rcx
movq %rcx, 0x10(%r14)
movups 0x20(%rsp), %xmm0
movups %xmm0, (%r14)
movq %r12, %rcx
jmp 0x7e02
movq 0x18(%rsp), %rcx
movq (%r12,%rcx), %rcx
testq %rcx, %rcx
jne 0x7e02
leaq 0x21930(%rip), %rcx     # 0x29708
cmpl $0x1, 0x4(%rsp)
jne 0x7de6
leaq 0x2191a(%rip), %rcx     # 0x29700
movq 0x10(%rsp), %rdx
movq (%r13,%rdx), %r13
testq %r13, %r13
jne 0x7df8
movq (%rcx), %r13
movq 0x8(%rsp), %rcx
movq (%r13,%rcx), %rcx
testb %al, %al
je 0x7d75
cmpq %rbp, %r12
setne %al
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/desktop.c
// Function: find_any_desktop
bool find_any_desktop(coordinates_t *ref, coordinates_t *dst, desktop_select_t *sel)
{
	for (monitor_t *m = mon_head; m != NULL; m = m->next) {
		for (desktop_t *d = m->desk_head; d != NULL; d = d->next) {
			coordinates_t loc = {m, d, NULL};
			if (desktop_matches(&loc, ref, sel)) {
				*dst = loc;
				return true;
			}
		}
	}
	return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, 0x20(%rsp)
leaq 0x218cf(%rip), %rax     # 0x29708
movq (%rax), %r13
testq %r13, %r13
setne %bpl
je 0x7eae
movq %rdx, %rbx
movq %rdi, %r15
movq 0x60(%r13), %r12
testq %r12, %r12
sete %r14b
je 0x7ea1
movq %r13, 0x8(%rsp)
movq %r12, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x190a4
testb %al, %al
jne 0x7e86
movq 0x48(%r12), %r12
jmp 0x7e4f
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rax, 0x10(%rcx)
movups 0x8(%rsp), %xmm0
movups %xmm0, (%rcx)
testb %r14b, %r14b
je 0x7eae
movq 0x78(%r13), %r13
testq %r13, %r13
setne %bpl
jne 0x7e4b
andb $0x1, %bpl
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/desktop.c
// Function: set_layout
bool set_layout(monitor_t *m, desktop_t *d, layout_t l, bool user)
{
	if ((user && d->user_layout == l) || (!user && d->layout == l)) {
		return false;
	}

	layout_t old_layout = d->layout;

	if (user) {
		d->user_layout = l;
	} else {
		d->layout = l;
	}

	if (user && (!single_monocle || tiled_count(d->root, true) > 1)) {
		d->layout = l;
	}

	if (d->layout != old_layout) {
		handle_presel_feedbacks(m, d);

		if (user) {
			arrange(m, d);
		}

		put_status(SBSC_MASK_DESKTOP_LAYOUT, "desktop_layout 0x%08X 0x%08X %s\n", m->id, d->id, LAYOUT_STR(d->layout));

		if (d == m->desk) {
			put_status(SBSC_MASK_REPORT);
		}
	}

	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %r15d
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
testl %ecx, %ecx
je 0x7ee4
cmpl %ebp, 0x28(%rbx)
je 0x7ee9
testb %r15b, %r15b
jne 0x7ef0
cmpl %ebp, 0x24(%rbx)
jne 0x7ef0
xorl %ebp, %ebp
jmp 0x7f8e
movl 0x24(%rbx), %r12d
testb %r15b, %r15b
je 0x7efe
movl %ebp, 0x28(%rbx)
jmp 0x7f01
movl %ebp, 0x24(%rbx)
testb %r15b, %r15b
je 0x7f28
leaq 0x21eeb(%rip), %rax     # 0x29df8
cmpb $0x1, (%rax)
jne 0x7f25
movq 0x30(%rbx), %rdi
movl $0x1, %esi
callq 0x98c5
cmpl $0x2, %eax
jl 0x7f28
movl %ebp, 0x24(%rbx)
movb $0x1, %bpl
cmpl %r12d, 0x24(%rbx)
je 0x7f8e
movq %r14, %rdi
movq %rbx, %rsi
callq 0x7f99
testb %r15b, %r15b
je 0x7f4c
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8a5c
movl 0x20(%r14), %edx
movl 0x20(%rbx), %ecx
cmpl $0x0, 0x24(%rbx)
leaq 0x18d43(%rip), %rax     # 0x20ca1
leaq 0x18d43(%rip), %r8      # 0x20ca8
cmoveq %rax, %r8
leaq 0x175ab(%rip), %rsi     # 0x1f51b
movl $0x4000, %edi           # imm = 0x4000
xorl %eax, %eax
callq 0x1eb0b
cmpq %rbx, 0x58(%r14)
jne 0x7f8e
movl $0x1, %edi
xorl %eax, %eax
callq 0x1eb0b
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/desktop.c
// Function: insert_desktop
void insert_desktop(monitor_t *m, desktop_t *d)
{
	if (m->desk == NULL) {
		m->desk = d;
		m->desk_head = d;
		m->desk_tail = d;
	} else {
		m->desk_tail->next = d;
		d->prev = m->desk_tail;
		m->desk_tail = d;
	}
}

// Assembly:
cmpq $0x0, 0x58(%rdi)
je 0x8287
movq 0x68(%rdi), %rax
addq $0x68, %rdi
movq %rsi, 0x48(%rax)
movq %rax, 0x40(%rsi)
jmp 0x8293
movq %rsi, 0x58(%rdi)
movq %rsi, 0x60(%rdi)
addq $0x68, %rdi
movq %rsi, (%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/desktop.c
// Function: make_desktop
desktop_t *make_desktop(const char *name, uint32_t id)
{
	desktop_t *d = calloc(1, sizeof(desktop_t));
	snprintf(d->name, sizeof(d->name), "%s", name == NULL ? DEFAULT_DESK_NAME : name);
	if (id == XCB_NONE) {
		d->id = xcb_generate_id(dpy);
	}
	d->prev = d->next = NULL;
	d->root = d->focus = NULL;
	d->user_layout = LAYOUT_TILED;
	d->layout = single_monocle ? LAYOUT_MONOCLE : LAYOUT_TILED;
	d->padding = (padding_t) PADDING;
	d->window_gap = window_gap;
	d->border_width = border_width;
	return d;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %r14
movl $0x1, %edi
movl $0x68, %esi
callq 0x48b0
movq %rax, %rbx
testq %r14, %r14
leaq 0x172a7(%rip), %rcx     # 0x1f563
cmovneq %r14, %rcx
leaq 0x16d80(%rip), %rdx     # 0x1f047
movl $0x20, %esi
movq %rax, %rdi
xorl %eax, %eax
callq 0x4110
testl %ebp, %ebp
jne 0x82ec
leaq 0x213e7(%rip), %rax     # 0x296c8
movq (%rax), %rdi
callq 0x4920
movl %eax, 0x20(%rbx)
movl $0x0, 0x28(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x40(%rbx)
leaq 0x21af3(%rip), %rax     # 0x29df8
movzbl (%rax), %eax
movl %eax, 0x24(%rbx)
movups %xmm0, 0x50(%rbx)
leaq 0x21aaa(%rip), %rax     # 0x29dc0
movl (%rax), %eax
movl %eax, 0x60(%rbx)
leaq 0x21aa2(%rip), %rax     # 0x29dc4
movl (%rax), %eax
movl %eax, 0x64(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/desktop.c
// Function: rename_desktop
void rename_desktop(monitor_t *m, desktop_t *d, const char *name)
{

	put_status(SBSC_MASK_DESKTOP_RENAME, "desktop_rename 0x%08X 0x%08X %s %s\n", m->id, d->id, d->name, name);

	snprintf(d->name, sizeof(d->name), "%s", name);

	put_status(SBSC_MASK_REPORT);
	ewmh_update_desktop_names();
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movl 0x20(%rdi), %edx
movl 0x20(%rsi), %ecx
leaq 0x17225(%rip), %rsi     # 0x1f56b
movl $0x100, %edi            # imm = 0x100
movq %r14, %r8
movq %rbx, %r9
xorl %eax, %eax
callq 0x1eb0b
leaq 0x16ce8(%rip), %rdx     # 0x1f047
movl $0x20, %esi
movq %r14, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x4110
movl $0x1, %edi
xorl %eax, %eax
callq 0x1eb0b
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1e0b4
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/desktop.c
// Function: add_desktop
void add_desktop(monitor_t *m, desktop_t *d)
{
	put_status(SBSC_MASK_DESKTOP_ADD, "desktop_add 0x%08X 0x%08X %s\n", m->id, d->id, d->name);

	d->border_width = m->border_width;
	d->window_gap = m->window_gap;
	insert_desktop(m, d);
	ewmh_update_current_desktop();
	ewmh_update_number_of_desktops();
	ewmh_update_desktop_names();
	ewmh_update_desktop_viewport();
	ewmh_update_wm_desktops();
	put_status(SBSC_MASK_REPORT);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl 0x20(%rdi), %edx
movl 0x20(%rsi), %ecx
leaq 0x171ef(%rip), %rsi     # 0x1f58f
movl $0x80, %edi
movq %rbx, %r8
xorl %eax, %eax
callq 0x1eb0b
movl 0x48(%r14), %eax
movl %eax, 0x64(%rbx)
movl 0x44(%r14), %eax
movl %eax, 0x60(%rbx)
cmpq $0x0, 0x58(%r14)
je 0x83d6
movq 0x68(%r14), %rax
addq $0x68, %r14
movq %rbx, 0x48(%rax)
movq %rax, 0x40(%rbx)
jmp 0x83e2
movq %rbx, 0x58(%r14)
movq %rbx, 0x60(%r14)
addq $0x68, %r14
movq %rbx, (%r14)
callq 0x1df11
callq 0x1de29
callq 0x1e0b4
callq 0x1e17a
callq 0x1e003
movl $0x1, %edi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1eb0b
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/desktop.c
// Function: remove_desktop
void remove_desktop(monitor_t *m, desktop_t *d)
{
	put_status(SBSC_MASK_DESKTOP_REMOVE, "desktop_remove 0x%08X 0x%08X\n", m->id, d->id);

	remove_node(m, d, d->root);
	unlink_desktop(m, d);
	history_remove(d, NULL, false);
	free(d);

	ewmh_update_current_desktop();
	ewmh_update_number_of_desktops();
	ewmh_update_desktop_names();
	ewmh_update_desktop_viewport();

	if (mon != NULL && m->desk == NULL) {
		if (m == mon) {
			focus_node(m, NULL, NULL);
		} else {
			activate_desktop(m, NULL);
			if (m->desk != NULL) {
				activate_node(m, m->desk, m->desk->focus);
			}
		}
	}

	put_status(SBSC_MASK_REPORT);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl 0x20(%rdi), %edx
movl 0x20(%rsi), %ecx
leaq 0x17169(%rip), %rsi     # 0x1f5ad
movl $0x200, %edi            # imm = 0x200
xorl %eax, %eax
callq 0x1eb0b
movq 0x30(%r14), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb8db
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8227
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xd60c
movq %r14, %rdi
callq 0x4460
callq 0x1df11
callq 0x1de29
callq 0x1e0b4
callq 0x1e17a
leaq 0x21277(%rip), %rax     # 0x29710
movq (%rax), %rax
testq %rax, %rax
je 0x84a8
cmpq $0x0, 0x58(%rbx)
je 0x84bb
movl $0x1, %edi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1eb0b
cmpq %rbx, %rax
je 0x84e1
movq %rbx, %rdi
xorl %esi, %esi
callq 0x7be8
movq 0x58(%rbx), %rsi
testq %rsi, %rsi
je 0x84a8
movq 0x38(%rsi), %rdx
movq %rbx, %rdi
callq 0x9af5
jmp 0x84a8
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xa2cd
jmp 0x84a8
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/desktop.c
// Function: is_urgent
bool is_urgent(desktop_t *d)
{
	for (node_t *n = first_extrema(d->root); n != NULL; n = next_leaf(n, d->root)) {
		if (n->client == NULL) {
			continue;
		}
		if (n->client->urgent) {
			return true;
		}
	}
	return false;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x92fd
testq %rax, %rax
setne %cl
je 0x8a55
movq 0x48(%rax), %rdx
testq %rdx, %rdx
je 0x8a47
cmpb $0x0, 0x304(%rdx)
jne 0x8a55
movq 0x30(%rbx), %rsi
movq %rax, %rdi
callq 0x9363
jmp 0x8a2d
andb $0x1, %cl
movl %ecx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/tree.c
// Function: arrange
void arrange(monitor_t *m, desktop_t *d)
{
	if (d->root == NULL) {
		return;
	}

	xcb_rectangle_t rect = m->rectangle;

	rect.x += m->padding.left + d->padding.left;
	rect.y += m->padding.top + d->padding.top;
	rect.width -= m->padding.left + d->padding.left + d->padding.right + m->padding.right;
	rect.height -= m->padding.top + d->padding.top + d->padding.bottom + m->padding.bottom;

	if (d->layout == LAYOUT_MONOCLE) {
		rect.x += monocle_padding.left;
		rect.y += monocle_padding.top;
		rect.width -= monocle_padding.left + monocle_padding.right;
		rect.height -= monocle_padding.top + monocle_padding.bottom;
	}

	if (!gapless_monocle || d->layout != LAYOUT_MONOCLE) {
		rect.x += d->window_gap;
		rect.y += d->window_gap;
		rect.width -= d->window_gap;
		rect.height -= d->window_gap;
	}

	apply_layout(m, d, d->root, rect, rect);
}

// Assembly:
movq 0x30(%rsi), %rdx
testq %rdx, %rdx
je 0x8b1c
pushq %rbp
pushq %rbx
movl 0x50(%rdi), %ecx
movl 0x5c(%rsi), %r11d
addl 0x3c(%rdi), %r11d
movzwl 0x52(%rdi), %r9d
movzwl 0x4c(%rdi), %eax
addw %r11w, %ax
movl 0x24(%rsi), %r10d
movl 0x50(%rsi), %ebx
addl 0x30(%rdi), %ebx
movzwl 0x4e(%rdi), %r8d
addl 0x54(%rsi), %r11d
addl 0x34(%rdi), %r11d
addw %bx, %r8w
subl %r11d, %ecx
addl 0x58(%rsi), %ebx
addl 0x38(%rdi), %ebx
subl %ebx, %r9d
cmpl $0x1, %r10d
jne 0x8ad0
leaq 0x212f9(%rip), %r11     # 0x29db0
movl (%r11), %ebx
movl 0xc(%r11), %ebp
addl %ebp, %eax
addl %ebx, %r8d
addl 0x4(%r11), %ebp
subl %ebp, %ecx
addl 0x8(%r11), %ebx
subl %ebx, %r9d
cmpl $0x1, %r10d
jne 0x8ae3
leaq 0x2131a(%rip), %r10     # 0x29df7
cmpb $0x0, (%r10)
jne 0x8af3
movl 0x60(%rsi), %r10d
addl %r10d, %eax
addl %r10d, %r8d
subl %r10d, %ecx
subl %r10d, %r9d
movzwl %r9w, %r9d
shlq $0x30, %r9
movzwl %cx, %ecx
shlq $0x20, %rcx
orq %r9, %rcx
shll $0x10, %r8d
orq %rcx, %r8
movzwl %ax, %ecx
orq %r8, %rcx
movq %rcx, %r8
popq %rbx
popq %rbp
jmp 0x8b1d
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/tree.c
// Function: make_presel
presel_t *make_presel(void)
{
	presel_t *p = calloc(1, sizeof(presel_t));
	p->split_dir = DIR_EAST;
	p->split_ratio = split_ratio;
	p->feedback = XCB_NONE;
	return p;
}

// Assembly:
pushq %rax
movl $0x1, %edi
movl $0x10, %esi
callq 0x48b0
movl $0x3, 0x8(%rax)
leaq 0x20e3d(%rip), %rcx     # 0x29dc8
movsd (%rcx), %xmm0
movsd %xmm0, (%rax)
movl $0x0, 0xc(%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/tree.c
// Function: set_type
bool set_type(node_t *n, split_type_t typ)
{
	if (n == NULL || n->split_type == typ) {
		return false;
	}

	n->split_type = typ;
	update_constraints(n);
	rebuild_constraints_towards_root(n);
	return true;
}

// Assembly:
testq %rdi, %rdi
je 0x8fae
pushq %rbx
movq %rdi, %rbx
cmpl %esi, 0x4(%rdi)
jne 0x8fb1
xorl %eax, %eax
jmp 0x8fc6
xorl %eax, %eax
retq
movl %esi, 0x4(%rbx)
movq %rbx, %rdi
callq 0x8fc8
movq %rbx, %rdi
callq 0x901e
movb $0x1, %al
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/tree.c
// Function: update_constraints
void update_constraints(node_t *n)
{
	if (n == NULL || is_leaf(n)) {
		return;
	}
	if (n->split_type == TYPE_VERTICAL) {
		n->constraints.min_width = n->first_child->constraints.min_width + n->second_child->constraints.min_width;
		n->constraints.min_height = MAX(n->first_child->constraints.min_height, n->second_child->constraints.min_height);
	} else {
		n->constraints.min_width = MAX(n->first_child->constraints.min_width, n->second_child->constraints.min_width);
		n->constraints.min_height = n->first_child->constraints.min_height + n->second_child->constraints.min_height;
	}
}

// Assembly:
testq %rdi, %rdi
je 0x901d
cmpq $0x0, 0x30(%rdi)
jne 0x8fdb
cmpq $0x0, 0x38(%rdi)
je 0x901d
cmpl $0x1, 0x4(%rdi)
movq 0x30(%rdi), %rax
movzwl 0x20(%rax), %esi
movq 0x38(%rdi), %rcx
movzwl 0x20(%rcx), %edx
jne 0x9007
addl %esi, %edx
movw %dx, 0x20(%rdi)
movzwl 0x22(%rax), %eax
movzwl 0x22(%rcx), %ecx
cmpw %cx, %ax
cmoval %eax, %ecx
jmp 0x9019
cmpw %dx, %si
cmoval %esi, %edx
movw %dx, 0x20(%rdi)
movzwl 0x22(%rcx), %ecx
addw 0x22(%rax), %cx
movw %cx, 0x22(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/tree.c
// Function: presel_dir
void presel_dir(monitor_t *m, desktop_t *d, node_t *n, direction_t dir)
{
	if (n->presel == NULL) {
		n->presel = make_presel();
	}

	n->presel->split_dir = dir;

	put_status(SBSC_MASK_NODE_PRESEL, "node_presel 0x%08X 0x%08X 0x%08X dir %s\n", m->id, d->id, n->id, SPLIT_DIR_STR(dir));
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
cmpq $0x0, 0x10(%rdx)
jne 0x90a3
movl $0x1, %edi
movl $0x10, %esi
callq 0x48b0
movl $0x3, 0x8(%rax)
leaq 0x20d38(%rip), %rcx     # 0x29dc8
movsd (%rcx), %xmm0
movsd %xmm0, (%rax)
movl $0x0, 0xc(%rax)
movq %rax, 0x10(%r14)
movq 0x10(%r14), %rax
movl %ebx, 0x8(%rax)
movl 0x20(%r12), %edx
movl 0x20(%r15), %ecx
movl (%r14), %r8d
testl %ebx, %ebx
je 0x90c8
cmpl $0x1, %ebx
jne 0x90d1
leaq 0x181c7(%rip), %r9      # 0x2128d
jmp 0x90e6
leaq 0x165aa(%rip), %r9      # 0x1f679
jmp 0x90e6
cmpl $0x2, %ebx
leaq 0x165a4(%rip), %rax     # 0x1f67f
leaq 0x165a3(%rip), %r9      # 0x1f685
cmoveq %rax, %r9
leaq 0x16563(%rip), %rsi     # 0x1f650
movl $0x100000, %edi         # imm = 0x100000
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1eb0b
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/tree.c
// Function: presel_ratio
void presel_ratio(monitor_t *m, desktop_t *d, node_t *n, double ratio)
{
	if (n->presel == NULL) {
		n->presel = make_presel();
	}

	n->presel->split_ratio = ratio;

	put_status(SBSC_MASK_NODE_PRESEL, "node_presel 0x%08X 0x%08X 0x%08X ratio %lf\n", m->id, d->id, n->id, ratio);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
cmpq $0x0, 0x10(%rdx)
jne 0x9159
movl $0x1, %edi
movl $0x10, %esi
movsd %xmm0, 0x8(%rsp)
callq 0x48b0
movl $0x3, 0x8(%rax)
leaq 0x20c88(%rip), %rcx     # 0x29dc8
movsd (%rcx), %xmm0
movsd %xmm0, (%rax)
movsd 0x8(%rsp), %xmm0
movl $0x0, 0xc(%rax)
movq %rax, 0x10(%rbx)
movq 0x10(%rbx), %rax
movsd %xmm0, (%rax)
movl 0x20(%r15), %edx
movl 0x20(%r14), %ecx
movl (%rbx), %r8d
leaq 0x16517(%rip), %rsi     # 0x1f68a
movl $0x100000, %edi         # imm = 0x100000
movb $0x1, %al
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x1eb0b
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/tree.c
// Function: cancel_presel
void cancel_presel(monitor_t *m, desktop_t *d, node_t *n)
{
	if (n->presel == NULL) {
		return;
	}

	if (n->presel->feedback != XCB_NONE) {
		xcb_destroy_window(dpy, n->presel->feedback);
	}

	free(n->presel);
	n->presel = NULL;

	put_status(SBSC_MASK_NODE_PRESEL, "node_presel 0x%08X 0x%08X 0x%08X cancel\n", m->id, d->id, n->id);
}

// Assembly:
movq 0x10(%rdx), %rax
testq %rax, %rax
je 0x91e9
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl 0xc(%rax), %esi
testl %esi, %esi
je 0x91b5
leaq 0x2051b(%rip), %rax     # 0x296c8
movq (%rax), %rdi
callq 0x4130
movq 0x10(%rbx), %rdi
callq 0x4460
movq $0x0, 0x10(%rbx)
movl 0x20(%r15), %edx
movl 0x20(%r14), %ecx
movl (%rbx), %r8d
leaq 0x164de(%rip), %rsi     # 0x1f6b6
movl $0x100000, %edi         # imm = 0x100000
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0x1eb0b
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/tree.c
// Function: cancel_presel_in
void cancel_presel_in(monitor_t *m, desktop_t *d, node_t *n)
{
	if (n == NULL) {
		return;
	}
	cancel_presel(m, d, n);
	cancel_presel_in(m, d, n->first_child);
	cancel_presel_in(m, d, n->second_child);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
testq %rbx, %rbx
je 0x9220
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x9188
movq 0x30(%rbx), %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x91ea
movq 0x38(%rbx), %rbx
jmp 0x91f8
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/tree.c
// Function: find_public
node_t *find_public(desktop_t *d)
{
	unsigned int b_manual_area = 0;
	unsigned int b_automatic_area = 0;
	node_t *b_manual = NULL;
	node_t *b_automatic = NULL;
	for (node_t *n = first_extrema(d->root); n != NULL; n = next_leaf(n, d->root)) {
		if (n->vacant) {
			continue;
		}
		unsigned int n_area = node_area(d, n);
		if (n_area > b_manual_area && (n->presel != NULL || !n->private)) {
			b_manual = n;
			b_manual_area = n_area;
		}
		if (n_area > b_automatic_area &&
		    n->presel == NULL && !n->private && private_count(n->parent) == 0) {
			b_automatic = n;
			b_automatic_area = n_area;
		}
	}
	if (b_automatic != NULL) {
		return b_automatic;
	} else {
		return b_manual;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x92fd
xorl %r13d, %r13d
testq %rax, %rax
je 0x92d5
movq %rax, %r15
movq $0x0, (%rsp)
xorl %r14d, %r14d
xorl %r12d, %r12d
cmpb $0x0, 0x24(%r15)
jne 0x92bf
xorl %edi, %edi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x982d
movq %rax, %rdi
callq 0x61bf
movl %eax, %ebp
cmpl %r12d, %eax
jbe 0x9291
cmpq $0x0, 0x10(%r15)
jne 0x928b
cmpb $0x0, 0x27(%r15)
jne 0x9291
movl %ebp, %r12d
movq %r15, %r14
cmpl %r13d, %ebp
jbe 0x92bf
cmpq $0x0, 0x10(%r15)
jne 0x92bf
cmpb $0x0, 0x27(%r15)
jne 0x92bf
movq 0x40(%r15), %rdi
callq 0x9331
testl %eax, %eax
cmovel %ebp, %r13d
movq (%rsp), %rax
cmoveq %r15, %rax
movq %rax, (%rsp)
movq 0x30(%rbx), %rsi
movq %r15, %rdi
callq 0x9363
movq %rax, %r15
testq %rax, %rax
jne 0x925a
jmp 0x92e0
xorl %r14d, %r14d
movq $0x0, (%rsp)
movq (%rsp), %rax
testq %rax, %rax
cmovneq %rax, %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/tree.c
// Function: next_leaf
node_t *next_leaf(node_t *n, node_t *r)
{
	if (n == NULL) {
		return NULL;
	}
	node_t *p = n;
	while (is_second_child(p) && p != r) {
		p = p->parent;
	}
	if (p == r) {
		return NULL;
	}
	return first_extrema(p->parent->second_child);
}

// Assembly:
testq %rdi, %rdi
je 0x93a2
testq %rdi, %rdi
je 0x937f
movq 0x40(%rdi), %rax
testq %rax, %rax
je 0x937f
cmpq %rdi, 0x38(%rax)
sete %al
jmp 0x9381
xorl %eax, %eax
cmpq %rsi, %rdi
je 0x9390
testb %al, %al
je 0x9390
movq 0x40(%rdi), %rdi
jmp 0x9368
cmpq %rsi, %rdi
je 0x93a2
movq 0x40(%rdi), %rax
movq 0x38(%rax), %rdi
jmp 0x92fd
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/tree.c
// Function: make_node
node_t *make_node(uint32_t id)
{
	if (id == XCB_NONE) {
		id = xcb_generate_id(dpy);
	}
	node_t *n = calloc(1, sizeof(node_t));
	n->id = id;
	n->parent = n->first_child = n->second_child = NULL;
	n->vacant = n->hidden = n->sticky = n->private = n->locked = n->marked = false;
	n->split_ratio = split_ratio;
	n->split_type = TYPE_VERTICAL;
	n->constraints = (constraints_t) {MIN_WIDTH, MIN_HEIGHT};
	n->presel = NULL;
	n->client = NULL;
	return n;
}

// Assembly:
pushq %rbx
movl %edi, %ebx
testl %edi, %edi
jne 0x97da
leaq 0x1fef8(%rip), %rax     # 0x296c8
movq (%rax), %rdi
callq 0x4920
movl %eax, %ebx
movl $0x1, %edi
movl $0x50, %esi
callq 0x48b0
movl %ebx, (%rax)
movl $0x0, 0x24(%rax)
movw $0x0, 0x28(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rax)
xorl %ecx, %ecx
movq %rcx, 0x40(%rax)
leaq 0x205bc(%rip), %rdx     # 0x29dc8
movsd (%rdx), %xmm0
movsd %xmm0, 0x8(%rax)
movl $0x1, 0x4(%rax)
movl $0x200020, 0x20(%rax)   # imm = 0x200020
movq %rcx, 0x10(%rax)
movq %rcx, 0x48(%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/tree.c
// Function: get_rectangle
xcb_rectangle_t get_rectangle(monitor_t *m, desktop_t *d, node_t *n)
{
	if (n == NULL) {
		return m->rectangle;
	}
	client_t *c = n->client;
	if (c != NULL) {
		if (IS_FLOATING(c)) {
			return c->floating_rectangle;
		} else {
			return c->tiled_rectangle;
		}
	} else {
		int wg = (d == NULL ? 0 : (gapless_monocle && d->layout == LAYOUT_MONOCLE ? 0 : d->window_gap));
		xcb_rectangle_t rect = n->rectangle;
		rect.width -= wg;
		rect.height -= wg;
		return rect;
	}
}

// Assembly:
testq %rdx, %rdx
je 0x985b
movq 0x48(%rdx), %rdi
testq %rdi, %rdi
je 0x9869
cmpl $0x2, 0x308(%rdi)
jne 0x9884
leaq 0x318(%rdi), %rcx
movzwl 0x31c(%rdi), %eax
movzwl 0x31e(%rdi), %edx
jmp 0x98ae
leaq 0x4c(%rdi), %rcx
movzwl 0x50(%rdi), %eax
movzwl 0x52(%rdi), %edx
jmp 0x98ae
testq %rsi, %rsi
je 0x9880
leaq 0x20582(%rip), %rax     # 0x29df7
cmpb $0x1, (%rax)
jne 0x989b
cmpl $0x1, 0x24(%rsi)
jne 0x989b
xorl %esi, %esi
jmp 0x989f
leaq 0x320(%rdi), %rcx
movzwl 0x324(%rdi), %eax
movzwl 0x326(%rdi), %edx
jmp 0x98ae
movzwl 0x60(%rsi), %esi
leaq 0x18(%rdx), %rcx
movl 0x1c(%rdx), %eax
movzwl 0x1e(%rdx), %edx
subl %esi, %eax
subl %esi, %edx
movl (%rcx), %ecx
movzwl %dx, %edx
shlq $0x30, %rdx
movzwl %ax, %eax
shlq $0x20, %rax
orq %rdx, %rax
orq %rcx, %rax
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/tree.c
// Function: tiled_count
int tiled_count(node_t *n, bool include_receptacles)
{
	if (n == NULL) {
		return 0;
	}
	int cnt = 0;
	for (node_t *f = first_extrema(n); f != NULL; f = next_leaf(f, n)) {
		if (!f->hidden && ((include_receptacles && f->client == NULL) ||
		                   (f->client != NULL && IS_TILED(f->client)))) {
			cnt++;
		}
	}
	return cnt;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
xorl %ebp, %ebp
testq %rdi, %rdi
je 0x9916
movl %esi, %ebx
movq %rdi, %r14
callq 0x92fd
testq %rax, %rax
je 0x9916
xorl %ebp, %ebp
cmpb $0x0, 0x25(%rax)
jne 0x9906
testb %bl, %bl
je 0x98f2
cmpq $0x0, 0x48(%rax)
je 0x9904
movq 0x48(%rax), %rcx
testq %rcx, %rcx
je 0x9906
cmpl $0x1, 0x308(%rcx)
ja 0x9906
incl %ebp
movq %rax, %rdi
movq %r14, %rsi
callq 0x9363
testq %rax, %rax
jne 0x98e1
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/tree.c
// Function: set_marked
void set_marked(monitor_t *m, desktop_t *d, node_t *n, bool value)
{
	if (n == NULL || n->marked == value) {
		return;
	}

	n->marked = value;

	put_status(SBSC_MASK_NODE_FLAG, "node_flag 0x%08X 0x%08X 0x%08X marked %s\n", m->id, d->id, n->id, ON_OFF_STR(value));

	if (n == m->desk->focus) {
		put_status(SBSC_MASK_REPORT);
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdx, %rdx
je 0x998a
movq %rdx, %rbx
cmpb %cl, 0x29(%rdx)
je 0x998a
movq %rdi, %r14
movb %cl, 0x29(%rbx)
movl 0x20(%rdi), %edx
movl 0x20(%rsi), %eax
movl (%rbx), %r8d
leaq 0x171b7(%rip), %rsi     # 0x20b15
leaq 0x15f45(%rip), %r9      # 0x1f8aa
testb %cl, %cl
cmovneq %rsi, %r9
leaq 0x15fbb(%rip), %rsi     # 0x1f92d
movl $0x2000000, %edi        # imm = 0x2000000
movl %eax, %ecx
xorl %eax, %eax
callq 0x1eb0b
movq 0x58(%r14), %rax
cmpq %rbx, 0x38(%rax)
je 0x9992
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl $0x1, %edi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1eb0b
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/tree.c
// Function: propagate_flags_upward
void propagate_flags_upward(monitor_t *m, desktop_t *d, node_t *n)
{
	if (n == NULL) {
		return;
	}

	node_t *p = n->parent;

	if (p != NULL) {
		set_vacant_local(m, d, p, (p->first_child->vacant && p->second_child->vacant));
		set_hidden_local(m, d, p, (p->first_child->hidden && p->second_child->hidden));
		update_constraints(p);
	}

	propagate_flags_upward(m, d, p);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
testq %rbx, %rbx
je 0x9a20
movq 0x40(%rbx), %rbx
testq %rbx, %rbx
je 0x99b3
movq 0x30(%rbx), %rax
cmpb $0x1, 0x24(%rax)
jne 0x99d4
movq 0x38(%rbx), %rax
movb 0x24(%rax), %al
jmp 0x99d6
xorl %eax, %eax
cmpb %al, 0x24(%rbx)
je 0x99f0
movb %al, 0x24(%rbx)
testb %al, %al
je 0x99f0
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x9188
movq 0x30(%rbx), %rax
cmpb $0x1, 0x25(%rax)
jne 0x9a03
movq 0x38(%rbx), %rax
movb 0x25(%rax), %al
jmp 0x9a05
xorl %eax, %eax
movzbl %al, %ecx
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0xc95c
movq %rbx, %rdi
callq 0x8fc8
jmp 0x99b3
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/tree.c
// Function: insert_receptacle
void insert_receptacle(monitor_t *m, desktop_t *d, node_t *n)
{
	node_t *r = make_node(XCB_NONE);
	insert_node(m, d, r, n);
	put_status(SBSC_MASK_NODE_ADD, "node_add 0x%08X 0x%08X 0x%08X 0x%08X\n", m->id, d->id, n != NULL ? n->id : 0, r->id);

	if (single_monocle && d->layout == LAYOUT_MONOCLE && tiled_count(d->root, true) > 1) {
		set_layout(m, d, d->user_layout, false);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
xorl %ebp, %ebp
xorl %edi, %edi
callq 0x97c2
movq %rax, %r12
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
movq %r15, %rcx
callq 0x93a5
movl 0x20(%r14), %edx
movl 0x20(%rbx), %ecx
testq %r15, %r15
je 0x9a95
movl (%r15), %ebp
movl (%r12), %r9d
leaq 0x15c3f(%rip), %rsi     # 0x1f6df
movl $0x8000, %edi           # imm = 0x8000
movl %ebp, %r8d
xorl %eax, %eax
callq 0x1eb0b
leaq 0x20342(%rip), %rax     # 0x29df8
cmpb $0x1, (%rax)
jne 0x9aec
cmpl $0x1, 0x24(%rbx)
jne 0x9aec
movq 0x30(%rbx), %rdi
movl $0x1, %esi
callq 0x98c5
cmpl $0x2, %eax
jl 0x9aec
movl 0x28(%rbx), %edx
movq %r14, %rdi
movq %rbx, %rsi
xorl %ecx, %ecx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x7ec3
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/tree.c
// Function: activate_node
bool activate_node(monitor_t *m, desktop_t *d, node_t *n)
{
	if (n == NULL && d->root != NULL) {
		n = d->focus;
		if (n == NULL) {
			n = history_last_node(d, NULL);
		}
		if (n == NULL) {
			n = first_focusable_leaf(d->root);
		}
	}

	if (d == mon->desk || (n != NULL && !is_focusable(n))) {
		return false;
	}

	if (n != NULL) {
		if (d->focus != NULL && n != d->focus) {
			neutralize_occluding_windows(m, d, n);
		}
		stack(d, n, true);
		if (d->focus != n) {
			for (node_t *f = first_extrema(d->focus); f != NULL; f = next_leaf(f, d->focus)) {
				if (f->client != NULL && !is_descendant(f, n)) {
					window_draw_border(f->id, get_border_color(false, (m == mon)));
				}
			}
		}
		draw_border(n, true, (m == mon));
	}

	d->focus = n;
	history_add(m, d, n, false);

	put_status(SBSC_MASK_REPORT);

	if (n == NULL) {
		return true;
	}

	put_status(SBSC_MASK_NODE_ACTIVATE, "node_activate 0x%08X 0x%08X 0x%08X\n", m->id, d->id, n->id);

	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
testq %rdx, %rdx
je 0x9c3b
leaq 0x1fbf7(%rip), %r13     # 0x29710
movq (%r13), %rax
cmpq %rbx, 0x58(%rax)
je 0x9c37
testq %r15, %r15
je 0x9c72
movq %r15, %rdi
callq 0x9a26
testb %al, %al
je 0x9c37
movq 0x38(%rbx), %rax
testq %rax, %rax
je 0x9b5c
cmpq %rax, %r15
je 0x9b5c
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x9cd8
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0xd20e
movq 0x38(%rbx), %rdi
cmpq %r15, %rdi
je 0x9bda
callq 0x92fd
testq %rax, %rax
je 0x9bda
movq %rax, %r12
cmpq $0x0, 0x48(%r12)
je 0x9bc6
movq %r12, %rax
cmpq %r15, %r12
je 0x9ba3
movq %r12, %rax
movq 0x40(%rax), %rax
cmpq %r15, %rax
je 0x9ba3
testq %rax, %rax
jne 0x9b95
cmpq %r15, %rax
je 0x9bc6
movl (%r12), %ebp
xorl %esi, %esi
cmpq %r14, (%r13)
sete %sil
xorl %edi, %edi
callq 0x1056b
movl %ebp, %edi
movl %eax, %esi
callq 0x10595
movq 0x38(%rbx), %rsi
movq %r12, %rdi
callq 0x9363
movq %rax, %r12
testq %rax, %rax
jne 0x9b82
xorl %edx, %edx
cmpq %r14, (%r13)
sete %dl
movq %r15, %rdi
movl $0x1, %esi
callq 0xff0c
movq %r15, 0x38(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0xd40d
movl $0x1, %edi
xorl %eax, %eax
callq 0x1eb0b
movb $0x1, %bpl
testq %r15, %r15
je 0x9c95
movl 0x20(%r14), %edx
movl 0x20(%rbx), %ecx
movl (%r15), %r8d
leaq 0x15adc(%rip), %rsi     # 0x1f705
movl $0x400000, %edi         # imm = 0x400000
xorl %eax, %eax
callq 0x1eb0b
jmp 0x9c95
xorl %ebp, %ebp
jmp 0x9c95
cmpq $0x0, 0x30(%rbx)
je 0x9ca6
movq 0x38(%rbx), %r15
testq %r15, %r15
jne 0x9c58
movq %rbx, %rdi
xorl %esi, %esi
callq 0xd797
movq %rax, %r15
testq %r15, %r15
jne 0x9b12
movq 0x30(%rbx), %rdi
callq 0x9cae
movq %rax, %r15
jmp 0x9b12
movq %r15, 0x38(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0xd40d
movl $0x1, %edi
xorl %eax, %eax
callq 0x1eb0b
movb $0x1, %bpl
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r15d, %r15d
jmp 0x9b12
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/tree.c
// Function: neutralize_occluding_windows
void neutralize_occluding_windows(monitor_t *m, desktop_t *d, node_t *n)
{
	bool changed = false;
	for (node_t *f = first_extrema(n); f != NULL; f = next_leaf(f, n)) {
		for (node_t *a = first_extrema(d->root); a != NULL; a = next_leaf(a, d->root)) {
			if (a != f && a->client != NULL && f->client != NULL &&
			    IS_FULLSCREEN(a->client) && stack_cmp(f->client, a->client) < 0) {
				set_state(m, d, a, a->client->last_state);
				changed = true;
			}
		}
	}
	if (changed) {
		arrange(m, d);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movq %rdx, %rdi
callq 0x92fd
testq %rax, %rax
je 0x9d98
movq %rax, %r12
xorl %ebp, %ebp
movq 0x30(%rbx), %rdi
callq 0x92fd
movq %rax, %r13
testq %rax, %rax
je 0x9d66
cmpq %r12, %r13
je 0x9d58
movq 0x48(%r13), %rsi
testq %rsi, %rsi
je 0x9d58
movq 0x48(%r12), %rdi
testq %rdi, %rdi
je 0x9d58
cmpl $0x3, 0x308(%rsi)
jne 0x9d58
callq 0xd0f7
testl %eax, %eax
jns 0x9d58
movq 0x48(%r13), %rax
movl 0x30c(%rax), %ecx
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0xc64b
movb $0x1, %bpl
movq 0x30(%rbx), %rsi
movq %r13, %rdi
callq 0x9363
jmp 0x9d0b
movq %r12, %rdi
movq %r15, %rsi
callq 0x9363
movq %rax, %r12
testq %rax, %rax
jne 0x9d02
testb $0x1, %bpl
je 0x9d98
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8a5c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/tree.c
// Function: is_descendant
bool is_descendant(node_t *a, node_t *b)
{
	if (a == NULL || b == NULL) {
		return false;
	}
	while (a != b && a != NULL) {
		a = a->parent;
	}
	return a == b;
}

// Assembly:
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
je 0x9dba
xorl %eax, %eax
retq
cmpq %rsi, %rdi
je 0x9dcd
movq 0x40(%rdi), %rdi
cmpq %rsi, %rdi
je 0x9dcd
testq %rdi, %rdi
jne 0x9dbf
cmpq %rsi, %rdi
sete %al
retq