LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/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 %r14
pushq %rbx
subq $0x10, %rsp
leaq 0x2227b(%rip), %r14     # 0x29708
movq (%r14), %rbx
testq %rbx, %rbx
je 0x7552
movd 0x318(%rdi), %xmm0
movd 0x31c(%rdi), %xmm1
psrlw $0x1, %xmm1
paddw %xmm0, %xmm1
pextrw $0x0, %xmm1, %eax
movdqa %xmm1, (%rsp)
pextrw $0x1, %xmm1, %ebp
shll $0x10, %ebp
orl %eax, %ebp
movq 0x4c(%rbx), %rsi
movl %ebp, %edi
callq 0x60d4
testb %al, %al
jne 0x7554
movq 0x78(%rbx), %rbx
testq %rbx, %rbx
jne 0x74c6
movq (%r14), %rax
testq %rax, %rax
je 0x7552
punpcklwd (%rsp), %xmm0   # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1],xmm0[2],mem[2],xmm0[3],mem[3]
psrad $0x10, %xmm0
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
xorl %ebx, %ebx
pxor %xmm1, %xmm1
movd 0x4c(%rax), %xmm2
movd 0x50(%rax), %xmm3
pshuflw $0x60, %xmm2, %xmm2     # xmm2 = xmm2[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm2
psubd %xmm0, %xmm2
psrlw $0x1, %xmm3
punpcklwd %xmm1, %xmm3    # xmm3 = xmm3[0],xmm1[0],xmm3[1],xmm1[1],xmm3[2],xmm1[2],xmm3[3],xmm1[3]
paddd %xmm2, %xmm3
movdqa %xmm3, %xmm2
psrad $0x1f, %xmm2
pxor %xmm2, %xmm3
psubd %xmm2, %xmm3
pshufd $0x55, %xmm3, %xmm2     # xmm2 = xmm3[1,1,1,1]
paddd %xmm3, %xmm2
movd %xmm2, %edx
cmpl %ecx, %edx
cmovll %edx, %ecx
cmovlq %rax, %rbx
movq 0x78(%rax), %rax
testq %rax, %rax
jne 0x74fb
jmp 0x7554
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x22193(%rip), %rax     # 0x29708
movq (%rax), %rbp
testq %rbp, %rbp
je 0x763a
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 0x762b
movq 0x4c(%rbp), %r15
leaq 0x20(%rsp), %rdi
movq %rdi, %rsi
movq %rbx, %rdx
callq 0x18f6e
testb %al, %al
je 0x762b
movq %r13, %r14
movq %rbx, %r13
movq %r12, %rdi
movq %r15, %rsi
movq %r12, %rbx
movl 0x14(%rsp), %r12d
movl %r12d, %edx
callq 0x61e6
testb %al, %al
je 0x761d
movq %rbx, %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0x6171
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 0x75aa
jmp 0x7643
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_O3/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 $0x18, %rsp
leaq 0x2209c(%rip), %rax     # 0x29708
movq (%rax), %r13
testq %r13, %r13
je 0x76ab
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x8(%rsp), %rbp
movq %rsp, %r12
movq %r13, (%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rbp)
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x18f6e
testb %al, %al
jne 0x76af
movq 0x78(%r13), %r13
testq %r13, %r13
jne 0x7685
xorl %eax, %eax
jmp 0x76c1
movq 0x10(%rsp), %rax
movq %rax, 0x10(%rbx)
movups (%rsp), %xmm0
movups %xmm0, (%rbx)
movb $0x1, %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x7ad3
leaq 0x21c46(%rip), %rax     # 0x29710
cmpq %rbx, (%rax)
je 0x7b81
testq %r14, %r14
jne 0x7b00
movq 0x58(%rbx), %r14
testq %r14, %r14
jne 0x7b00
movq %rbx, %rdi
xorl %esi, %esi
callq 0xd8b2
movq %rax, %r14
testq %rax, %rax
jne 0x7b00
movq 0x60(%rbx), %r14
testq %r14, %r14
je 0x7b81
movq 0x58(%rbx), %rsi
cmpq %rsi, %r14
je 0x7b81
testq %rsi, %rsi
je 0x7b26
cmpl $0x0, 0x40(%rbx)
je 0x7b26
movq 0x30(%rsi), %r8
movq %rbx, %rdi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x9de8
movq 0x30(%r14), %rsi
movq %r14, %rdi
callq 0xa7fb
movq 0x58(%rbx), %rdi
testq %rdi, %rdi
je 0x7b44
movq 0x30(%rdi), %rsi
callq 0xa781
movq %r14, 0x58(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xd4f6
movl 0x20(%rbx), %edx
movl 0x20(%r14), %ecx
leaq 0x17986(%rip), %rsi     # 0x1f4eb
movl $0x2000, %edi           # imm = 0x2000
xorl %eax, %eax
callq 0x1e6b8
movl $0x1, %edi
xorl %eax, %eax
callq 0x1e6b8
movb $0x1, %al
jmp 0x7b83
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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, %r14
movq %rdi, %r15
movq (%rdi), %r13
movq 0x8(%rdi), %rcx
xorl %eax, %eax
cmpl $0x1, %edx
setne %al
movq 0x40(%rcx,%rax,8), %rbp
testq %rbp, %rbp
jne 0x7c0d
xorl %r9d, %r9d
xorl %edi, %edi
cmpl $0x1, %edx
sete %r8b
setne %dil
movq 0x70(%r13,%rdi,8), %r13
jne 0x7bf6
leaq 0x21b0c(%rip), %rdi     # 0x29700
jmp 0x7bfd
leaq 0x21b0b(%rip), %rdi     # 0x29708
testq %r13, %r13
jne 0x7c05
movq (%rdi), %r13
movb %r8b, %r9b
movq 0x60(%r13,%r9,8), %rbp
cmpq %rcx, %rbp
je 0x7cb9
movq %rsi, 0x8(%rsp)
leaq 0x40(,%rax,8), %rbx
xorl %eax, %eax
xorl %ecx, %ecx
movl %edx, 0x4(%rsp)
cmpl $0x1, %edx
sete %al
setne %cl
leaq 0x70(,%rcx,8), %rcx
movq %rcx, 0x18(%rsp)
leaq 0x60(,%rax,8), %rax
movq %rax, 0x10(%rsp)
leaq 0x20(%rsp), %r12
movq %r13, 0x20(%rsp)
movq %rbp, 0x28(%rsp)
movq $0x0, 0x30(%rsp)
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x18fb4
testb %al, %al
jne 0x7cbd
movq (%rbp,%rbx), %rbp
testq %rbp, %rbp
jne 0x7cb3
leaq 0x21a7f(%rip), %rax     # 0x29708
cmpl $0x1, 0x4(%rsp)
jne 0x7c97
leaq 0x21a69(%rip), %rax     # 0x29700
movq 0x18(%rsp), %rcx
movq (%r13,%rcx), %r13
testq %r13, %r13
jne 0x7ca9
movq (%rax), %r13
movq 0x10(%rsp), %rax
movq (%r13,%rax), %rbp
cmpq 0x8(%r15), %rbp
jne 0x7c53
xorl %eax, %eax
jmp 0x7cd5
movq 0x30(%rsp), %rax
movq 0x8(%rsp), %rcx
movq %rax, 0x10(%rcx)
movups 0x20(%rsp), %xmm0
movups %xmm0, (%rcx)
movb $0x1, %al
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 $0x18, %rsp
leaq 0x21a0f(%rip), %rax     # 0x29708
movq (%rax), %r13
testq %r13, %r13
je 0x7d49
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq %rsp, %r12
movq 0x60(%r13), %rbp
testq %rbp, %rbp
je 0x7d40
movq %r13, (%rsp)
movq %rbp, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x18fb4
testb %al, %al
jne 0x7d4d
movq 0x48(%rbp), %rbp
jmp 0x7d11
movq 0x78(%r13), %r13
testq %r13, %r13
jne 0x7d0d
xorl %eax, %eax
jmp 0x7d5f
movq 0x10(%rsp), %rax
movq %rax, 0x10(%rbx)
movups (%rsp), %xmm0
movups %xmm0, (%rbx)
movb $0x1, %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
testl %ecx, %ecx
je 0x7db2
cmpl %ebp, 0x28(%rbx)
je 0x7db7
movl 0x24(%rbx), %r12d
movl %ebp, 0x28(%rbx)
leaq 0x22063(%rip), %rax     # 0x29df8
cmpb $0x1, (%rax)
jne 0x7dad
movq 0x30(%rbx), %rdi
movl $0x1, %esi
callq 0x97a3
cmpl $0x1, %eax
jle 0x7dcc
movl %ebp, 0x24(%rbx)
jmp 0x7dcf
cmpl %ebp, 0x24(%rbx)
jne 0x7dbc
xorl %r15d, %r15d
jmp 0x7e32
movl %ebp, 0x24(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x7e3e
jmp 0x7ded
movl 0x24(%rbx), %ebp
movb $0x1, %r15b
cmpl %r12d, %ebp
je 0x7e32
movq %r14, %rdi
movq %rbx, %rsi
callq 0x7e3e
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8958
movl 0x20(%r14), %edx
movl 0x20(%rbx), %ecx
cmpl $0x0, 0x24(%rbx)
leaq 0x18e56(%rip), %rax     # 0x20c55
leaq 0x18e56(%rip), %r8      # 0x20c5c
cmoveq %rax, %r8
leaq 0x176fa(%rip), %rsi     # 0x1f50b
movl $0x4000, %edi           # imm = 0x4000
xorl %eax, %eax
callq 0x1e6b8
movb $0x1, %r15b
cmpq %rbx, 0x58(%r14)
jne 0x7e32
movl $0x1, %edi
xorl %eax, %eax
callq 0x1e6b8
movl %r15d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x812c
movq 0x68(%rdi), %rax
addq $0x68, %rdi
movq %rsi, 0x48(%rax)
movq %rax, 0x40(%rsi)
jmp 0x8138
movq %rsi, 0x58(%rdi)
movq %rsi, 0x60(%rdi)
addq $0x68, %rdi
movq %rsi, (%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x173f2(%rip), %rcx     # 0x1f553
cmovneq %r14, %rcx
leaq 0x16edb(%rip), %rdx     # 0x1f047
movl $0x20, %esi
movq %rax, %rdi
xorl %eax, %eax
callq 0x4110
testl %ebp, %ebp
jne 0x8191
leaq 0x21542(%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 0x21c4e(%rip), %rax     # 0x29df8
movzbl (%rax), %eax
movl %eax, 0x24(%rbx)
movups %xmm0, 0x50(%rbx)
leaq 0x21c05(%rip), %rax     # 0x29dc0
movl (%rax), %eax
movl %eax, 0x60(%rbx)
leaq 0x21bfd(%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_O3/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 0x17370(%rip), %rsi     # 0x1f55b
movl $0x100, %edi            # imm = 0x100
movq %r14, %r8
movq %rbx, %r9
xorl %eax, %eax
callq 0x1e6b8
leaq 0x16e43(%rip), %rdx     # 0x1f047
movl $0x20, %esi
movq %r14, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x4110
movl $0x1, %edi
xorl %eax, %eax
callq 0x1e6b8
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1dcd6
// File: /workspace/github_c_makefile_star2_O3/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 0x1733a(%rip), %rsi     # 0x1f57f
movl $0x80, %edi
movq %rbx, %r8
xorl %eax, %eax
callq 0x1e6b8
movq 0x44(%r14), %rax
movq %rax, 0x60(%rbx)
cmpq $0x0, 0x58(%r14)
je 0x8275
movq 0x68(%r14), %rax
addq $0x68, %r14
movq %rbx, 0x48(%rax)
movq %rax, 0x40(%rbx)
jmp 0x8281
movq %rbx, 0x58(%r14)
movq %rbx, 0x60(%r14)
addq $0x68, %r14
movq %rbx, (%r14)
callq 0x1db67
callq 0x1dab9
callq 0x1dcd6
callq 0x1dd9c
callq 0x1dc3b
movl $0x1, %edi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1e6b8
// File: /workspace/github_c_makefile_star2_O3/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 0x172ba(%rip), %rsi     # 0x1f59d
movl $0x200, %edi            # imm = 0x200
xorl %eax, %eax
callq 0x1e6b8
movq 0x30(%r14), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb924
movq %rbx, %rdi
movq %r14, %rsi
callq 0x80cc
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xd6b9
movq %r14, %rdi
callq 0x4460
callq 0x1db67
callq 0x1dab9
callq 0x1dcd6
callq 0x1dd9c
leaq 0x213d8(%rip), %rax     # 0x29710
movq (%rax), %rax
testq %rax, %rax
je 0x8347
cmpq $0x0, 0x58(%rbx)
je 0x835a
movl $0x1, %edi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1e6b8
cmpq %rbx, %rax
je 0x8380
movq %rbx, %rdi
xorl %esi, %esi
callq 0x7ab4
movq 0x58(%rbx), %rsi
testq %rsi, %rsi
je 0x8347
movq 0x38(%rsi), %rdx
movq %rbx, %rdi
callq 0x9a3d
jmp 0x8347
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xa308
jmp 0x8347
// File: /workspace/github_c_makefile_star2_O3/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 0x920c
testq %rax, %rax
je 0x8950
movq 0x48(%rax), %rcx
testq %rcx, %rcx
je 0x8942
cmpb $0x0, 0x304(%rcx)
jne 0x8954
movq 0x30(%rbx), %rsi
movq %rax, %rdi
callq 0x926e
jmp 0x892b
xorl %eax, %eax
jmp 0x8956
movb $0x1, %al
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x8a10
movl 0x50(%rdi), %ecx
movl 0x5c(%rsi), %r10d
addl 0x3c(%rdi), %r10d
movzwl 0x52(%rdi), %r9d
movzwl 0x4c(%rdi), %eax
addw %r10w, %ax
movl 0x50(%rsi), %r11d
addl 0x30(%rdi), %r11d
movzwl 0x4e(%rdi), %r8d
addw %r11w, %r8w
addl 0x54(%rsi), %r10d
addl 0x34(%rdi), %r10d
addl 0x58(%rsi), %r11d
addl 0x38(%rdi), %r11d
subl %r10d, %ecx
subl %r11d, %r9d
cmpl $0x1, 0x24(%rsi)
jne 0x89d9
pushq %rbx
leaq 0x213fe(%rip), %r10     # 0x29db0
movl (%r10), %r11d
movl 0xc(%r10), %ebx
addl %ebx, %eax
addl 0x4(%r10), %ebx
addl %r11d, %r8d
subl %ebx, %ecx
addl 0x8(%r10), %r11d
subl %r11d, %r9d
leaq 0x21425(%rip), %r10     # 0x29df7
cmpb $0x0, (%r10)
popq %rbx
jne 0x89e9
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
jmp 0x8a11
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x20f55(%rip), %rcx     # 0x29dc8
movsd (%rcx), %xmm0
movsd %xmm0, (%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O3/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:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x8e8e
movq %rdi, %rbx
cmpl %esi, 0x4(%rdi)
jne 0x8e9a
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl %esi, 0x4(%rbx)
movq %rbx, %rdi
callq 0x8ebe
movq 0x40(%rbx), %r14
movb $0x1, %bl
testq %r14, %r14
je 0x8e90
movq %r14, %rdi
callq 0x8ebe
movq 0x40(%r14), %r14
jmp 0x8eab
// File: /workspace/github_c_makefile_star2_O3/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 0x8f11
movq 0x30(%rdi), %rax
testq %rax, %rax
jne 0x8ed3
cmpq $0x0, 0x38(%rdi)
je 0x8f11
cmpl $0x1, 0x4(%rdi)
movzwl 0x20(%rax), %esi
movq 0x38(%rdi), %rcx
movzwl 0x20(%rcx), %edx
jne 0x8efb
addl %esi, %edx
movw %dx, 0x20(%rdi)
movzwl 0x22(%rax), %eax
movzwl 0x22(%rcx), %ecx
cmpw %cx, %ax
cmoval %eax, %ecx
jmp 0x8f0d
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_O3/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
movq 0x10(%rdx), %rax
testq %rax, %rax
jne 0x8f93
movl $0x1, %edi
movl $0x10, %esi
callq 0x48b0
movl $0x3, 0x8(%rax)
leaq 0x20e41(%rip), %rcx     # 0x29dc8
movsd (%rcx), %xmm0
movsd %xmm0, (%rax)
movq %rax, 0x10(%r14)
movl %ebx, 0x8(%rax)
movl 0x20(%r12), %edx
movl 0x20(%r15), %ecx
movl (%r14), %r8d
testl %ebx, %ebx
je 0x8fb4
cmpl $0x1, %ebx
jne 0x8fbd
leaq 0x1828f(%rip), %r9      # 0x21241
jmp 0x8fd2
leaq 0x166ae(%rip), %r9      # 0x1f669
jmp 0x8fd2
cmpl $0x2, %ebx
leaq 0x166a8(%rip), %rax     # 0x1f66f
leaq 0x166a7(%rip), %r9      # 0x1f675
cmoveq %rax, %r9
leaq 0x16667(%rip), %rsi     # 0x1f640
movl $0x100000, %edi         # imm = 0x100000
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1e6b8
// File: /workspace/github_c_makefile_star2_O3/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
movq 0x10(%rdx), %rax
testq %rax, %rax
jne 0x9040
movl $0x1, %edi
movl $0x10, %esi
movsd %xmm0, 0x8(%rsp)
callq 0x48b0
movl $0x3, 0x8(%rax)
leaq 0x20d9a(%rip), %rcx     # 0x29dc8
movsd (%rcx), %xmm0
movsd %xmm0, (%rax)
movsd 0x8(%rsp), %xmm0
movq %rax, 0x10(%rbx)
movsd %xmm0, (%rax)
movl 0x20(%r15), %edx
movl 0x20(%r14), %ecx
movl (%rbx), %r8d
leaq 0x16624(%rip), %rsi     # 0x1f67a
movl $0x100000, %edi         # imm = 0x100000
movb $0x1, %al
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x1e6b8
// File: /workspace/github_c_makefile_star2_O3/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:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r15
movq 0x10(%rdx), %rdi
testq %rdi, %rdi
je 0x90cc
movq %rdx, %rbx
movq %rsi, %r14
movl 0xc(%rdi), %esi
testl %esi, %esi
je 0x909c
leaq 0x20638(%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 0x165eb(%rip), %rsi     # 0x1f6a6
movl $0x100000, %edi         # imm = 0x100000
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0x1e6b8
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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:
testq %rdx, %rdx
je 0x9110
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x906b
movq 0x30(%rbx), %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x90d2
movq 0x38(%rbx), %rbx
testq %rbx, %rbx
jne 0x90e5
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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, %r14
movq 0x30(%rdi), %rax
xorl %ebx, %ebx
testq %rax, %rax
je 0x91f0
movq %rax, %r15
movq 0x30(%rax), %rax
testq %rax, %rax
jne 0x9125
xorl %r12d, %r12d
xorl %ebx, %ebx
xorl %edx, %edx
xorl %esi, %esi
cmpb $0x0, 0x24(%r15)
jne 0x91b6
movl %edx, %r13d
xorl %edi, %edi
movl %esi, %ebp
movq %r14, %rsi
movq %r15, %rdx
callq 0x970b
movq %rax, %rdi
callq 0x615f
movl %ebp, %esi
movl %eax, %ebp
cmpl %esi, %eax
jbe 0x9184
cmpq $0x0, 0x10(%r15)
movl %r13d, %edx
jne 0x917d
cmpb $0x0, 0x27(%r15)
jne 0x9187
movl %ebp, %esi
movq %r15, %rbx
jmp 0x9187
movl %r13d, %edx
cmpl %edx, %ebp
jbe 0x91b6
cmpq $0x0, 0x10(%r15)
jne 0x91b6
cmpb $0x0, 0x27(%r15)
jne 0x91b6
movq 0x40(%r15), %rdi
movl %esi, 0x4(%rsp)
callq 0x923d
movl 0x4(%rsp), %esi
movl %r13d, %edx
testl %eax, %eax
cmovel %ebp, %edx
cmoveq %r15, %r12
movq 0x30(%r14), %rax
movq %r15, %rcx
movq 0x40(%r15), %r15
testq %r15, %r15
je 0x91d1
cmpq %rax, %rcx
je 0x91d1
cmpq %rcx, 0x38(%r15)
je 0x91ba
cmpq %rax, %rcx
je 0x91f3
movq 0x38(%r15), %rax
testq %rax, %rax
je 0x91f3
movq %rax, %r15
movq 0x30(%rax), %rax
testq %rax, %rax
jne 0x91da
jmp 0x9143
xorl %r12d, %r12d
testq %r12, %r12
cmovneq %r12, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x92a5
movq %rdi, %rax
movq 0x40(%rdi), %rdi
testq %rdi, %rdi
je 0x928a
cmpq %rsi, %rax
je 0x928a
cmpq %rax, 0x38(%rdi)
je 0x9273
cmpq %rsi, %rax
je 0x92a5
movq 0x38(%rdi), %rcx
testq %rcx, %rcx
je 0x92a5
movq %rcx, %rax
movq 0x30(%rcx), %rcx
testq %rcx, %rcx
jne 0x9293
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x96da
leaq 0x1fff8(%rip), %rax     # 0x296c8
movq (%rax), %rdi
callq 0x4920
movl %eax, %ebx
movl $0x1, %edi
movl $0x50, %esi
callq 0x48b0
movl %ebx, (%rax)
leaq 0x206d6(%rip), %rcx     # 0x29dc8
movsd (%rcx), %xmm0
movsd %xmm0, 0x8(%rax)
movl $0x1, 0x4(%rax)
movl $0x200020, 0x20(%rax)   # imm = 0x200020
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x9732
movq 0x48(%rdx), %rax
testq %rax, %rax
je 0x9740
cmpl $0x2, 0x308(%rax)
jne 0x975b
movd 0x31c(%rax), %xmm0
addq $0x318, %rax            # imm = 0x318
jmp 0x9769
movd 0x50(%rdi), %xmm0
addq $0x4c, %rdi
movq %rdi, %rdx
jmp 0x9788
testq %rsi, %rsi
je 0x9757
leaq 0x206ab(%rip), %rax     # 0x29df7
cmpb $0x1, (%rax)
jne 0x976e
cmpl $0x1, 0x24(%rsi)
jne 0x976e
xorl %eax, %eax
jmp 0x9772
movd 0x324(%rax), %xmm0
addq $0x320, %rax            # imm = 0x320
movq %rax, %rdx
jmp 0x9788
movzwl 0x60(%rsi), %eax
movd 0x1c(%rdx), %xmm0
addq $0x18, %rdx
movd %eax, %xmm1
pshuflw $0x0, %xmm1, %xmm1      # xmm1 = xmm1[0,0,0,0,4,5,6,7]
psubw %xmm1, %xmm0
pextrw $0x1, %xmm0, %ecx
movl (%rdx), %edx
shlq $0x30, %rcx
pextrw $0x0, %xmm0, %eax
shlq $0x20, %rax
orq %rcx, %rax
orq %rdx, %rax
retq
// File: /workspace/github_c_makefile_star2_O3/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:
testq %rdi, %rdi
je 0x9812
movq %rdi, %rax
movq %rax, %rcx
movq 0x30(%rax), %rax
testq %rax, %rax
jne 0x97ab
xorl %eax, %eax
cmpb $0x0, 0x25(%rcx)
jne 0x97df
movq 0x48(%rcx), %rdx
testb %sil, %sil
je 0x97cf
testq %rdx, %rdx
jne 0x97d4
jmp 0x97dd
testq %rdx, %rdx
je 0x97df
cmpl $0x1, 0x308(%rdx)
ja 0x97df
incl %eax
movq %rcx, %rdx
movq 0x40(%rcx), %rcx
testq %rcx, %rcx
je 0x97f6
cmpq %rdi, %rdx
je 0x97f6
cmpq %rdx, 0x38(%rcx)
je 0x97df
cmpq %rdi, %rdx
je 0x9814
movq 0x38(%rcx), %rdx
testq %rdx, %rdx
je 0x9814
movq %rdx, %rcx
movq 0x30(%rdx), %rdx
testq %rdx, %rdx
jne 0x97ff
jmp 0x97b9
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x9893
movq %rdx, %rbx
cmpb %cl, 0x29(%rdx)
je 0x9893
movq %rdi, %r14
movb %cl, 0x29(%rbx)
movl 0x20(%rdi), %edx
movl 0x20(%rsi), %eax
movl (%rbx), %r8d
leaq 0x17262(%rip), %rsi     # 0x20ac9
leaq 0x1602c(%rip), %r9      # 0x1f89a
testb %cl, %cl
cmovneq %rsi, %r9
leaq 0x160a2(%rip), %rsi     # 0x1f91d
movl $0x2000000, %edi        # imm = 0x2000000
movl %eax, %ecx
xorl %eax, %eax
callq 0x1e6b8
movq 0x58(%r14), %rax
cmpq %rbx, 0x38(%rax)
je 0x989b
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl $0x1, %edi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1e6b8
// File: /workspace/github_c_makefile_star2_O3/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:
testq %rdx, %rdx
je 0x9942
pushq %r15
pushq %r14
pushq %rbx
movq 0x40(%rdx), %r15
testq %r15, %r15
je 0x993d
movq %rsi, %rbx
movq %rdi, %r14
movq 0x30(%r15), %rax
cmpb $0x1, 0x24(%rax)
jne 0x98fe
movq 0x38(%r15), %rcx
movb 0x24(%rcx), %cl
cmpb %cl, 0x24(%r15)
je 0x990a
movb %cl, 0x24(%r15)
testb %cl, %cl
je 0x990a
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x906b
movq 0x30(%r15), %rax
jmp 0x990a
cmpb $0x0, 0x24(%r15)
je 0x990a
movb $0x0, 0x24(%r15)
cmpb $0x1, 0x25(%rax)
jne 0x9919
movq 0x38(%r15), %rax
movb 0x25(%rax), %al
jmp 0x991b
xorl %eax, %eax
movzbl %al, %ecx
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0xca20
movq %r15, %rdi
callq 0x8ebe
movq 0x40(%r15), %r15
testq %r15, %r15
jne 0x98cb
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/baskerville[P]bspwm/src/tree.c
// Function: is_focusable
bool is_focusable(node_t *n)
{
	for (node_t *f = first_extrema(n); f != NULL; f = next_leaf(f, n)) {
		if (f->client != NULL && !f->hidden) {
			return true;
		}
	}
	return false;
}

// Assembly:
movq %rdi, %rcx
testq %rcx, %rcx
je 0x999a
movq %rcx, %rax
movq 0x30(%rcx), %rcx
testq %rcx, %rcx
jne 0x9946
jmp 0x9971
movq 0x38(%rax), %rcx
testq %rcx, %rcx
je 0x999a
movq %rcx, %rax
movq 0x30(%rcx), %rdx
movq %rdx, %rcx
testq %rdx, %rdx
jne 0x995d
cmpq $0x0, 0x48(%rax)
je 0x997e
cmpb $0x1, 0x25(%rax)
jne 0x999d
movq %rax, %rcx
movq 0x40(%rax), %rax
testq %rax, %rax
je 0x9995
cmpq %rdi, %rcx
je 0x9995
cmpq %rcx, 0x38(%rax)
je 0x997e
cmpq %rdi, %rcx
jne 0x9959
xorl %eax, %eax
retq
movb $0x1, %al
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x96c2
movq %rax, %r12
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
movq %r15, %rcx
callq 0x92a8
movl 0x20(%r14), %edx
movl 0x20(%rbx), %ecx
testq %r15, %r15
je 0x99dd
movl (%r15), %ebp
movl (%r12), %r9d
leaq 0x15ce7(%rip), %rsi     # 0x1f6cf
movl $0x8000, %edi           # imm = 0x8000
movl %ebp, %r8d
xorl %eax, %eax
callq 0x1e6b8
leaq 0x203fa(%rip), %rax     # 0x29df8
cmpb $0x1, (%rax)
jne 0x9a34
cmpl $0x1, 0x24(%rbx)
jne 0x9a34
movq 0x30(%rbx), %rdi
movl $0x1, %esi
callq 0x97a3
cmpl $0x2, %eax
jl 0x9a34
movl 0x28(%rbx), %edx
movq %r14, %rdi
movq %rbx, %rsi
xorl %ecx, %ecx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x7d6e
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/baskerville[P]bspwm/src/tree.c
// Function: first_focusable_leaf
node_t *first_focusable_leaf(node_t *n)
{
	for (node_t *f = first_extrema(n); f != NULL; f = next_leaf(f, n)) {
		if (f->client != NULL && !f->hidden) {
			return f;
		}
	}
	return NULL;
}

// Assembly:
movq %rdi, %rcx
testq %rcx, %rcx
je 0x9c8a
movq %rcx, %rax
movq 0x30(%rcx), %rcx
testq %rcx, %rcx
jne 0x9c36
jmp 0x9c61
movq 0x38(%rax), %rcx
testq %rcx, %rcx
je 0x9c8a
movq %rcx, %rax
movq 0x30(%rcx), %rdx
movq %rdx, %rcx
testq %rdx, %rdx
jne 0x9c4d
cmpq $0x0, 0x48(%rax)
je 0x9c6e
cmpb $0x1, 0x25(%rax)
jne 0x9c8c
movq %rax, %rcx
movq 0x40(%rax), %rax
testq %rax, %rax
je 0x9c85
cmpq %rdi, %rcx
je 0x9c85
cmpq %rcx, 0x38(%rax)
je 0x9c6e
cmpq %rdi, %rcx
jne 0x9c49
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/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, %rax
testq %rax, %rax
je 0x9dac
movq %rax, %r13
movq 0x30(%rax), %rax
testq %rax, %rax
jne 0x9ca4
movq 0x30(%rbx), %rax
xorl %ebp, %ebp
movq %rax, %rcx
testq %rcx, %rcx
je 0x9d57
movq %rcx, %r12
movq 0x30(%rcx), %rcx
testq %rcx, %rcx
jne 0x9cc2
jmp 0x9cef
movq 0x38(%r12), %rcx
testq %rcx, %rcx
je 0x9d57
movq %rcx, %r12
movq 0x30(%rcx), %rcx
testq %rcx, %rcx
jne 0x9cde
cmpq %r13, %r12
je 0x9d35
movq 0x48(%r12), %rsi
testq %rsi, %rsi
je 0x9d35
movq 0x48(%r13), %rdi
testq %rdi, %rdi
je 0x9d35
cmpl $0x3, 0x308(%rsi)
jne 0x9d35
callq 0xd1d2
testl %eax, %eax
jns 0x9d35
movq 0x48(%r12), %rax
movl 0x30c(%rax), %ecx
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0xc70b
movb $0x1, %bpl
movq 0x30(%rbx), %rax
movq %r12, %rcx
movq 0x40(%r12), %r12
testq %r12, %r12
je 0x9d52
cmpq %rax, %rcx
je 0x9d52
cmpq %rcx, 0x38(%r12)
je 0x9d39
cmpq %rax, %rcx
jne 0x9cd9
movq %r13, %rcx
movq 0x40(%r13), %r13
testq %r13, %r13
je 0x9d6e
cmpq %r15, %rcx
je 0x9d6e
cmpq %rcx, 0x38(%r13)
je 0x9d57
cmpq %r15, %rcx
je 0x9d8d
movq 0x38(%r13), %rcx
testq %rcx, %rcx
je 0x9d8d
movq %rcx, %r13
movq 0x30(%rcx), %rcx
testq %rcx, %rcx
jne 0x9d77
jmp 0x9cbf
testb $0x1, %bpl
je 0x9dac
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8958
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x9dce
xorl %eax, %eax
retq
cmpq %rsi, %rdi
je 0x9de1
movq 0x40(%rdi), %rdi
cmpq %rsi, %rdi
je 0x9de1
testq %rdi, %rdi
jne 0x9dd3
cmpq %rsi, %rdi
sete %al
retq
// File: /workspace/github_c_makefile_star2_O3/baskerville[P]bspwm/src/tree.c
// Function: transfer_sticky_nodes
void transfer_sticky_nodes(monitor_t *ms, desktop_t *ds, monitor_t *md, desktop_t *dd, node_t *n)
{
	if (n == NULL) {
		return;
	} else if (n->sticky) {
		sticky_still = false;
		transfer_node(ms, ds, n, md, dd, dd->focus, false);
		sticky_still = true;
	} else {
		/* we need references to the children because n might be freed after
		 * the first recursive call */
		node_t *first_child = n->first_child;
		node_t *second_child = n->second_child;
		transfer_sticky_nodes(ms, ds, md, dd, first_child);
		transfer_sticky_nodes(ms, ds, md, dd, second_child);
	}
}

// Assembly:
testq %r8, %r8
je 0x9e6a
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
cmpb $0x1, 0x26(%r14)
je 0x9e2e
movq 0x30(%r14), %r8
movq 0x38(%r14), %r14
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x9de8
testq %r14, %r14
jne 0x9e07
jmp 0x9e5c
leaq 0x1f935(%rip), %rbp     # 0x2976a
movb $0x0, (%rbp)
movq 0x38(%rbx), %r9
movl $0x0, (%rsp)
movq %r13, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r15, %rcx
movq %rbx, %r8
callq 0x9e6b
movb $0x1, (%rbp)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/baskerville[P]bspwm/src/tree.c
// Function: set_urgent
void set_urgent(monitor_t *m, desktop_t *d, node_t *n, bool value)
{
	if (value && mon->desk->focus == n) {
		return;
	}

	n->client->urgent = value;

	if (value) {
		n->client->wm_flags |= WM_FLAG_DEMANDS_ATTENTION;
	} else {
		n->client->wm_flags &= ~WM_FLAG_DEMANDS_ATTENTION;
	}

	ewmh_wm_state_update(n);

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

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
testl %ecx, %ecx
je 0xa71d
leaq 0x1f01a(%rip), %rax     # 0x29710
movq (%rax), %rax
movq 0x58(%rax), %rax
cmpq %rbx, 0x38(%rax)
je 0xa775
movq 0x48(%rbx), %rax
movb %cl, 0x304(%rax)
orb $0x8, 0x379(%rax)
leaq 0x163ae(%rip), %r12     # 0x20ac9
jmp 0xa735
movq 0x48(%rbx), %rax
movb %cl, 0x304(%rax)
andb $-0x9, 0x379(%rax)
leaq 0x15165(%rip), %r12     # 0x1f89a
movq %rbx, %rdi
callq 0x1e1d3
movl 0x20(%r15), %edx
movl 0x20(%r14), %ecx
movl (%rbx), %r8d
leaq 0x151f8(%rip), %rsi     # 0x1f947
movl $0x2000000, %edi        # imm = 0x2000000
movq %r12, %r9
xorl %eax, %eax
callq 0x1e6b8
movl $0x1, %edi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1e6b8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/baskerville[P]bspwm/src/tree.c
// Function: hide_node
void hide_node(desktop_t *d, node_t *n)
{
	if (n == NULL || (!hide_sticky && n->sticky)) {
		return;
	} else {
		if (!n->hidden) {
			if (n->presel != NULL && d->layout != LAYOUT_MONOCLE) {
				window_hide(n->presel->feedback);
			}
			if (n->client != NULL) {
				window_hide(n->id);
			}
		}
		if (n->client != NULL) {
			n->client->shown = false;
		}
		hide_node(d, n->first_child);
		hide_node(d, n->second_child);
	}
}

// Assembly:
testq %rsi, %rsi
je 0xa7fa
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x1efd1(%rip), %r15     # 0x29769
cmpb $0x0, (%r15)
jne 0xa7a4
cmpb $0x0, 0x26(%rbx)
jne 0xa7f5
cmpb $0x0, 0x25(%rbx)
jne 0xa7d0
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0xa7c2
cmpl $0x1, 0x24(%r14)
je 0xa7c2
movl 0xc(%rax), %edi
callq 0x104cb
cmpq $0x0, 0x48(%rbx)
je 0xa7d0
movl (%rbx), %edi
callq 0x104cb
movq 0x48(%rbx), %rax
testq %rax, %rax
je 0xa7e0
movb $0x0, 0x305(%rax)
movq 0x30(%rbx), %rsi
movq %r14, %rdi
callq 0xa781
movq 0x38(%rbx), %rbx
testq %rbx, %rbx
jne 0xa798
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/baskerville[P]bspwm/src/tree.c
// Function: show_node
void show_node(desktop_t *d, node_t *n)
{
	if (n == NULL) {
		return;
	} else {
		if (!n->hidden) {
			if (n->client != NULL) {
				window_show(n->id);
			}
			if (n->presel != NULL && d->layout != LAYOUT_MONOCLE) {
				window_show(n->presel->feedback);
			}
		}
		if (n->client != NULL) {
			n->client->shown = true;
		}
		show_node(d, n->first_child);
		show_node(d, n->second_child);
	}
}

// Assembly:
testq %rsi, %rsi
je 0xa862
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
cmpb $0x0, 0x25(%rbx)
jne 0xa836
cmpq $0x0, 0x48(%rbx)
je 0xa81e
movl (%rbx), %edi
callq 0xfe6b
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0xa836
cmpl $0x1, 0x24(%r14)
je 0xa836
movl 0xc(%rax), %edi
callq 0xfe6b
movq 0x48(%rbx), %rax
testq %rax, %rax
je 0xa846
movb $0x1, 0x305(%rax)
movq 0x30(%rbx), %rsi
movq %r14, %rdi
callq 0xa7fb
movq 0x38(%rbx), %rbx
testq %rbx, %rbx
jne 0xa80a
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/baskerville[P]bspwm/src/tree.c
// Function: make_client
client_t *make_client(void)
{
	client_t *c = calloc(1, sizeof(client_t));
	c->state = c->last_state = STATE_TILED;
	c->layer = c->last_layer = LAYER_NORMAL;
	snprintf(c->class_name, sizeof(c->class_name), "%s", MISSING_VALUE);
	snprintf(c->instance_name, sizeof(c->instance_name), "%s", MISSING_VALUE);
	c->border_width = border_width;
	c->urgent = false;
	c->shown = false;
	c->wm_flags = 0;
	c->icccm_props.input_hint = true;
	c->icccm_props.take_focus = false;
	c->icccm_props.delete_window = false;
	c->size_hints.flags = 0;
	c->honor_size_hints = honor_size_hints;
	return c;
}

// Assembly:
pushq %rax
movl $0x1, %edi
movl $0x37c, %esi            # imm = 0x37C
callq 0x48b0
movabsq $0x100000001, %rcx      # imm = 0x100000001
movq %rcx, 0x310(%rax)
movl $0x412f4e, %ecx         # imm = 0x412F4E
movl %ecx, (%rax)
movl %ecx, 0x100(%rax)
leaq 0x1f52c(%rip), %rcx     # 0x29dc4
movl (%rcx), %ecx
movl %ecx, 0x300(%rax)
movb $0x1, 0x375(%rax)
leaq 0x1f55a(%rip), %rcx     # 0x29e08
movl (%rcx), %ecx
movl %ecx, 0x328(%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O3/baskerville[P]bspwm/src/tree.c
// Function: clients_count_in
unsigned int clients_count_in(node_t *n)
{
	if (n == NULL) {
		return 0;
	} else {
		return (n->client != NULL ? 1 : 0) +
		        clients_count_in(n->first_child) +
		        clients_count_in(n->second_child);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0xab30
movq %rdi, %r14
xorl %ebx, %ebx
movq 0x30(%r14), %rdi
movq 0x48(%r14), %r15
callq 0xab00
movq 0x38(%r14), %r14
cmpq $0x1, %r15
sbbl $-0x1, %ebx
addl %eax, %ebx
testq %r14, %r14
jne 0xab0f
jmp 0xab32
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/baskerville[P]bspwm/src/tree.c
// Function: brother_tree
node_t *brother_tree(node_t *n)
{
	if (n == NULL || n->parent == NULL) {
		return NULL;
	}
	if (is_first_child(n)) {
		return n->parent->second_child;
	} else {
		return n->parent->first_child;
	}
}

// Assembly:
testq %rdi, %rdi
je 0xab52
movq 0x40(%rdi), %rcx
testq %rcx, %rcx
je 0xab52
movq 0x30(%rcx), %rax
cmpq %rdi, %rax
je 0xab55
retq
xorl %eax, %eax
retq
movq 0x38(%rcx), %rax
retq
// File: /workspace/github_c_makefile_star2_O3/baskerville[P]bspwm/src/tree.c
// Function: next_node
node_t *next_node(node_t *n)
{
	if (n == NULL) {
		return NULL;
	}

	if (n->second_child != NULL) {
		return first_extrema(n->second_child);
	} else {
		node_t *p = n;
		while (is_second_child(p)) {
			p = p->parent;
		}
		if (is_first_child(p)) {
			return p->parent;
		} else {
			return NULL;
		}
	}
}

// Assembly:
testq %rdi, %rdi
je 0xab87
movq 0x38(%rdi), %rcx
testq %rcx, %rcx
je 0xab8a
movq %rcx, %rax
movq 0x30(%rcx), %rcx
testq %rcx, %rcx
jne 0xab7a
retq
xorl %eax, %eax
retq
xorl %eax, %eax
movq %rdi, %rcx
movq 0x40(%rdi), %rdi
testq %rdi, %rdi
je 0xab86
cmpq %rcx, 0x38(%rdi)
je 0xab8c
xorl %eax, %eax
cmpq %rcx, 0x30(%rdi)
cmoveq %rdi, %rax
retq