LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/tree.c
// Function: set_sticky
void set_sticky(monitor_t *m, desktop_t *d, node_t *n, bool value)
{
	if (n == NULL || n->sticky == value) {
		return;
	}

	if (d != m->desk) {
		transfer_node(m, d, n, m, m->desk, m->desk->focus, false);
	}

	n->sticky = value;

	if (value) {
		m->sticky_count++;
	} else {
		m->sticky_count--;
	}

	if (n->client != NULL) {
		if (value) {
			n->client->wm_flags |= WM_FLAG_STICKY;
		} else {
			n->client->wm_flags &= ~WM_FLAG_STICKY;
		}
		ewmh_wm_state_update(n);
	}

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

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdx, %rdx
je 0xc37f
movl %ecx, %ebp
movq %rdx, %rbx
cmpb %bpl, 0x26(%rdx)
je 0xc37f
movq %rsi, %r15
movq %rdi, %r14
movq 0x58(%rdi), %r8
cmpq %rsi, %r8
je 0xc2ff
movq 0x38(%r8), %r9
andl $0x0, (%rsp)
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x9937
movb %bpl, 0x26(%rbx)
movl 0x40(%r14), %eax
testb %bpl, %bpl
je 0xc324
incl %eax
movl %eax, 0x40(%r14)
movq 0x48(%rbx), %rax
testq %rax, %rax
je 0xc342
orb $0x2, 0x378(%rax)
jmp 0xc33a
decl %eax
movl %eax, 0x40(%r14)
movq 0x48(%rbx), %rax
testq %rax, %rax
je 0xc342
andb $-0x3, 0x378(%rax)
movq %rbx, %rdi
callq 0x1cbb9
movl 0x20(%r14), %edx
movl 0x20(%r15), %ecx
movl (%rbx), %r8d
leaq 0x13775(%rip), %rax     # 0x1fac9
leaq 0x1253f(%rip), %r9      # 0x1e89a
testb %bpl, %bpl
cmovneq %rax, %r9
leaq 0x12535(%rip), %rsi     # 0x1e89e
movl $0x2000000, %edi        # imm = 0x2000000
xorl %eax, %eax
callq 0x1d07d
movq 0x58(%r14), %rax
cmpq %rbx, 0x38(%rax)
je 0xc38a
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
pushq $0x1
popq %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1d07d
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/tree.c
// Function: set_private
void set_private(monitor_t *m, desktop_t *d, node_t *n, bool value)
{
	if (n == NULL || n->private == value) {
		return;
	}

	n->private = value;

	put_status(SBSC_MASK_NODE_FLAG, "node_flag 0x%08X 0x%08X 0x%08X private %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 0xc3f1
movq %rdx, %rbx
cmpb %cl, 0x27(%rdx)
je 0xc3f1
movq %rdi, %r14
movb %cl, 0x27(%rbx)
movl 0x20(%rdi), %edx
movl 0x20(%rsi), %eax
movl (%rbx), %r8d
leaq 0x13704(%rip), %rsi     # 0x1fac9
leaq 0x124ce(%rip), %r9      # 0x1e89a
testb %cl, %cl
cmovneq %rsi, %r9
leaq 0x124ef(%rip), %rsi     # 0x1e8c8
movl $0x2000000, %edi        # imm = 0x2000000
movl %eax, %ecx
xorl %eax, %eax
callq 0x1d07d
movq 0x58(%r14), %rax
cmpq %rbx, 0x38(%rax)
je 0xc3f9
addq $0x8, %rsp
popq %rbx
popq %r14
retq
pushq $0x1
popq %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1d07d
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/tree.c
// Function: set_locked
void set_locked(monitor_t *m, desktop_t *d, node_t *n, bool value)
{
	if (n == NULL || n->locked == value) {
		return;
	}

	n->locked = value;

	put_status(SBSC_MASK_NODE_FLAG, "node_flag 0x%08X 0x%08X 0x%08X locked %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 0xc45d
movq %rdx, %rbx
cmpb %cl, 0x28(%rdx)
je 0xc45d
movq %rdi, %r14
movb %cl, 0x28(%rbx)
movl 0x20(%rdi), %edx
movl 0x20(%rsi), %eax
movl (%rbx), %r8d
leaq 0x13698(%rip), %rsi     # 0x1fac9
leaq 0x12462(%rip), %r9      # 0x1e89a
testb %cl, %cl
cmovneq %rsi, %r9
leaq 0x124ae(%rip), %rsi     # 0x1e8f3
movl $0x2000000, %edi        # imm = 0x2000000
movl %eax, %ecx
xorl %eax, %eax
callq 0x1d07d
movq 0x58(%r14), %rax
cmpq %rbx, 0x38(%rax)
je 0xc465
addq $0x8, %rsp
popq %rbx
popq %r14
retq
pushq $0x1
popq %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1d07d
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/tree.c
// Function: listen_enter_notify
void listen_enter_notify(node_t *n, bool enable)
{
	uint32_t mask = CLIENT_EVENT_MASK | (enable ? XCB_EVENT_MASK_ENTER_WINDOW : 0);
	for (node_t *f = first_extrema(n); f != NULL; f = next_leaf(f, n)) {
		if (f->client == NULL) {
			continue;
		}
		xcb_change_window_attributes(dpy, f->id, XCB_CW_EVENT_MASK, &mask);
		if (f->presel != NULL) {
			xcb_change_window_attributes(dpy, f->presel->feedback, XCB_CW_EVENT_MASK, &mask);
		}
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
shll $0x4, %esi
orl $0x600000, %esi         # imm = 0x600000
leaq 0x4(%rsp), %r14
movl %esi, (%r14)
callq 0x8e72
movq %rax, %r15
leaq 0x1c227(%rip), %r12     # 0x286c8
testq %r15, %r15
je 0xc4ee
cmpq $0x0, 0x48(%r15)
je 0xc4de
movq (%r12), %rdi
movl (%r15), %esi
movl $0x800, %edx            # imm = 0x800
movq %r14, %rcx
callq 0x4700
movq 0x10(%r15), %rax
testq %rax, %rax
je 0xc4de
movq (%r12), %rdi
movl 0xc(%rax), %esi
movl $0x800, %edx            # imm = 0x800
movq %r14, %rcx
callq 0x4700
movq %r15, %rdi
movq %rbx, %rsi
callq 0x8ed0
movq %rax, %r15
jmp 0xc4a1
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/tree.c
// Function: regenerate_ids_in
void regenerate_ids_in(node_t *n)
{
	if (n == NULL || n->client != NULL) {
		return;
	}
	n->id = xcb_generate_id(dpy);
	regenerate_ids_in(n->first_child);
	regenerate_ids_in(n->second_child);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x1c1c0(%rip), %r14     # 0x286c8
testq %rbx, %rbx
je 0xc52d
cmpq $0x0, 0x48(%rbx)
jne 0xc52d
movq (%r14), %rdi
callq 0x4920
movl %eax, (%rbx)
movq 0x30(%rbx), %rdi
callq 0xc4fa
movq 0x38(%rbx), %rbx
jmp 0xc508
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/stack.c
// Function: stack_insert_after
void stack_insert_after(stacking_list_t *a, node_t *n)
{
	stacking_list_t *s = make_stack(n);
	if (a == NULL) {
		stack_head = stack_tail = s;
	} else {
		if (a->node == n) {
			free(s);
			return;
		}
		remove_stack_node(n);
		stacking_list_t *b = a->next;
		if (b != NULL) {
			b->prev = s;
		}
		s->next = b;
		s->prev = a;
		a->next = s;
		if (stack_tail == a) {
			stack_tail = s;
		}
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %r14
movq %rsi, %rdi
callq 0xc564
movq %rax, %rbx
testq %r14, %r14
je 0xc5c7
cmpq %r15, (%r14)
je 0xc5e1
movq %r15, %rdi
callq 0xc5ee
movq 0x10(%r14), %rax
testq %rax, %rax
je 0xc5ad
movq %rbx, 0x8(%rax)
movq %rax, 0x10(%rbx)
movq %r14, 0x8(%rbx)
movq %rbx, 0x10(%r14)
leaq 0x1c180(%rip), %rax     # 0x28740
cmpq %r14, (%rax)
jne 0xc5db
jmp 0xc5d8
leaq 0x1c172(%rip), %rax     # 0x28740
movq %rbx, (%rax)
leaq 0x1c170(%rip), %rax     # 0x28748
movq %rbx, (%rax)
popq %rbx
popq %r14
popq %r15
retq
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x4460
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/stack.c
// Function: remove_stack_node
void remove_stack_node(node_t *n)
{
	for (node_t *f = first_extrema(n); f != NULL; f = next_leaf(f, n)) {
		for (stacking_list_t *s = stack_head; s != NULL; s = s->next) {
			if (s->node == f) {
				remove_stack(s);
				break;
			}
		}
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x8e72
movq %rax, %r14
leaq 0x1c143(%rip), %r15     # 0x28748
testq %r14, %r14
je 0xc635
movq %r15, %rdi
movq (%rdi), %rdi
testq %rdi, %rdi
je 0xc625
cmpq %r14, (%rdi)
je 0xc620
addq $0x10, %rdi
jmp 0xc60d
callq 0xc6b1
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8ed0
movq %rax, %r14
jmp 0xc605
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/stack.c
// Function: stack_insert_before
void stack_insert_before(stacking_list_t *a, node_t *n)
{
	stacking_list_t *s = make_stack(n);
	if (a == NULL) {
		stack_head = stack_tail = s;
	} else {
		if (a->node == n) {
			free(s);
			return;
		}
		remove_stack_node(n);
		stacking_list_t *b = a->prev;
		if (b != NULL) {
			b->next = s;
		}
		s->prev = b;
		s->next = a;
		a->prev = s;
		if (stack_head == a) {
			stack_head = s;
		}
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %r14
movq %rsi, %rdi
callq 0xc564
movq %rax, %rbx
testq %r14, %r14
je 0xc68a
cmpq %r15, (%r14)
je 0xc6a4
movq %r15, %rdi
callq 0xc5ee
movq 0x8(%r14), %rax
testq %rax, %rax
je 0xc670
movq %rbx, 0x10(%rax)
movq %rax, 0x8(%rbx)
movq %r14, 0x10(%rbx)
movq %rbx, 0x8(%r14)
leaq 0x1c0c5(%rip), %rax     # 0x28748
cmpq %r14, (%rax)
jne 0xc69e
jmp 0xc69b
leaq 0x1c0af(%rip), %rax     # 0x28740
movq %rbx, (%rax)
leaq 0x1c0ad(%rip), %rax     # 0x28748
movq %rbx, (%rax)
popq %rbx
popq %r14
popq %r15
retq
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x4460
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/stack.c
// Function: remove_stack
void remove_stack(stacking_list_t *s)
{
	if (s == NULL) {
		return;
	}
	stacking_list_t *a = s->prev;
	stacking_list_t *b = s->next;
	if (a != NULL) {
		a->next = b;
	}
	if (b != NULL) {
		b->prev = a;
	}
	if (s == stack_head) {
		stack_head = b;
	}
	if (s == stack_tail) {
		stack_tail = a;
	}
	free(s);
}

// Assembly:
testq %rdi, %rdi
je 0xc6f7
movq 0x8(%rdi), %rax
movq 0x10(%rdi), %rcx
testq %rax, %rax
je 0xc6c7
movq %rcx, 0x10(%rax)
testq %rcx, %rcx
je 0xc6d0
movq %rax, 0x8(%rcx)
leaq 0x1c071(%rip), %rdx     # 0x28748
cmpq %rdi, (%rdx)
jne 0xc6df
movq %rcx, (%rdx)
leaq 0x1c05a(%rip), %rcx     # 0x28740
cmpq %rdi, (%rcx)
jne 0x4460
movq %rax, (%rcx)
jmp 0x4460
retq
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/stack.c
// Function: limit_above
stacking_list_t *limit_above(node_t *n)
{
	stacking_list_t *s = stack_head;
	while (s != NULL && stack_cmp(n->client, s->node->client) >= 0) {
		s = s->next;
	}
	if (s == NULL) {
		s = stack_tail;
	}
	if (s->node == n) {
		s = s->prev;
	}
	return s;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
leaq 0x1bfef(%rip), %rbx     # 0x28748
movq (%rbx), %rbx
testq %rbx, %rbx
je 0xc77b
movq 0x48(%r14), %rdi
movq (%rbx), %r15
movq 0x48(%r15), %rsi
callq 0xc72a
testl %eax, %eax
js 0xc788
addq $0x10, %rbx
jmp 0xc759
leaq 0x1bfbe(%rip), %rax     # 0x28740
movq (%rax), %rbx
movq (%rbx), %r15
cmpq %r14, %r15
jne 0xc791
movq 0x8(%rbx), %rbx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/stack.c
// Function: limit_below
stacking_list_t *limit_below(node_t *n)
{
	stacking_list_t *s = stack_tail;
	while (s != NULL && stack_cmp(n->client, s->node->client) <= 0) {
		s = s->prev;
	}
	if (s == NULL) {
		s = stack_head;
	}
	if (s->node == n) {
		s = s->next;
	}
	return s;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
leaq 0x1bf97(%rip), %rbx     # 0x28740
movq (%rbx), %rbx
testq %rbx, %rbx
je 0xc7cb
movq 0x48(%r14), %rdi
movq (%rbx), %r15
movq 0x48(%r15), %rsi
callq 0xc72a
testl %eax, %eax
jg 0xc7d8
addq $0x8, %rbx
jmp 0xc7a9
leaq 0x1bf76(%rip), %rax     # 0x28748
movq (%rax), %rbx
movq (%rbx), %r15
cmpq %r14, %r15
jne 0xc7e1
movq 0x10(%rbx), %rbx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/stack.c
// Function: stack
void stack(desktop_t *d, node_t *n, bool focused)
{
	for (node_t *f = first_extrema(n); f != NULL; f = next_leaf(f, n)) {
		if (f->client == NULL || (IS_FLOATING(f->client) && !auto_raise)) {
			continue;
		}

		if (stack_head == NULL) {
			stack_insert_after(NULL, f);
		} else {
			stacking_list_t *s = (focused ? limit_above(f) : limit_below(f));
			if (s == NULL) {
				continue;
			}
			int i = stack_cmp(f->client, s->node->client);
			if (i < 0 || (i == 0 && !focused)) {
				stack_insert_before(s, f);
				window_below(f->id, s->node->id);
				put_status(SBSC_MASK_NODE_STACK, "node_stack 0x%08X below 0x%08X\n", f->id, s->node->id);
			} else {
				stack_insert_after(s, f);
				window_above(f->id, s->node->id);
				put_status(SBSC_MASK_NODE_STACK, "node_stack 0x%08X above 0x%08X\n", f->id, s->node->id);
			}
		}
	}

	ewmh_update_client_list(true);
	restack_presel_feedbacks(d);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, (%rsp)
movq %rsi, %rdi
callq 0x8e72
movq %rax, %r15
leaq 0x1bf38(%rip), %r13     # 0x28748
testq %r15, %r15
je 0xc8ff
movq 0x48(%r15), %r12
testq %r12, %r12
je 0xc8ec
cmpl $0x2, 0x308(%r12)
jne 0xc841
leaq 0x1bf33(%rip), %rax     # 0x2876b
cmpb $0x1, (%rax)
jne 0xc8ec
cmpq $0x0, (%r13)
je 0xc857
movq %r15, %rdi
testb %bpl, %bpl
je 0xc866
callq 0xc74a
jmp 0xc86b
xorl %edi, %edi
movq %r15, %rsi
callq 0xc578
jmp 0xc8ec
callq 0xc79a
movq %rax, %rbx
testq %rax, %rax
je 0xc8ec
movq (%rbx), %rax
movq 0x48(%rax), %rsi
movq %r12, %rdi
callq 0xc72a
testl %eax, %eax
setns %al
setne %cl
orb %bpl, %cl
movq %rbx, %rdi
movq %r15, %rsi
testb %cl, %al
je 0xc8bf
callq 0xc578
movl (%r15), %edi
movq (%rbx), %rax
movl (%rax), %esi
callq 0xf4a5
movl (%r15), %edx
movq (%rbx), %rax
movl (%rax), %ecx
movl $0x200000, %edi         # imm = 0x200000
leaq 0x120d4(%rip), %rsi     # 0x1e991
jmp 0xc8e5
callq 0xc63b
movl (%r15), %edi
movq (%rbx), %rax
movl (%rax), %esi
callq 0x104a3
movl (%r15), %edx
movq (%rbx), %rax
movl (%rax), %ecx
movl $0x200000, %edi         # imm = 0x200000
leaq 0x1208c(%rip), %rsi     # 0x1e971
xorl %eax, %eax
callq 0x1d07d
movq %r15, %rdi
movq %r14, %rsi
callq 0x8ed0
movq %rax, %r15
jmp 0xc810
pushq $0x1
popq %rdi
callq 0x1ca74
movq (%rsp), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xc91e
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/stack.c
// Function: restack_presel_feedbacks
void restack_presel_feedbacks(desktop_t *d)
{
	stacking_list_t *s = stack_tail;
	while (s != NULL && !IS_TILED(s->node->client)) {
		s = s->prev;
	}
	if (s != NULL) {
		restack_presel_feedbacks_in(d->root, s->node);
	}
}

// Assembly:
leaq 0x1be1b(%rip), %rax     # 0x28740
movq (%rax), %rax
testq %rax, %rax
je 0xc94a
movq (%rax), %rsi
movq 0x48(%rsi), %rcx
addq $0x8, %rax
cmpl $0x1, 0x308(%rcx)
ja 0xc925
movq 0x30(%rdi), %rdi
jmp 0xc94b
retq
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/stack.c
// Function: restack_presel_feedbacks_in
void restack_presel_feedbacks_in(node_t *r, node_t *n)
{
	if (r == NULL) {
		return;
	} else {
		if (r->presel != NULL) {
			window_above(r->presel->feedback, n->id);
		}
		restack_presel_feedbacks_in(r->first_child, n);
		restack_presel_feedbacks_in(r->second_child, n);
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
testq %r14, %r14
je 0xc97f
movq 0x10(%r14), %rax
testq %rax, %rax
je 0xc96d
movl 0xc(%rax), %edi
movl (%rbx), %esi
callq 0xf4a5
movq 0x30(%r14), %rdi
movq %rbx, %rsi
callq 0xc94b
movq 0x38(%r14), %r14
jmp 0xc955
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/history.c
// Function: make_history
history_t *make_history(monitor_t *m, desktop_t *d, node_t *n)
{
	history_t *h = calloc(1, sizeof(history_t));
	h->loc = (coordinates_t) {m, d, n};
	h->prev = h->next = NULL;
	h->latest = true;
	return h;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
pushq $0x1
popq %rdi
pushq $0x30
popq %rsi
callq 0x48b0
movq %r15, (%rax)
movq %r14, 0x8(%rax)
movq %rbx, 0x10(%rax)
movb $0x1, 0x18(%rax)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/history.c
// Function: history_add
void history_add(monitor_t *m, desktop_t *d, node_t *n, bool focused)
{
	if (!record_history) {
		return;
	}

	if (focused) {
		history_needle = NULL;
	}

	history_t *h = make_history(m, d, n);

	if (history_head == NULL) {
		history_head = history_tail = h;
	} else if ((n != NULL && history_tail->loc.node != n) || (n == NULL && d != history_tail->loc.desktop)) {
		history_t *ip = focused ? history_tail : NULL;

		for (history_t *hh = history_tail; hh != NULL; hh = hh->prev) {
			if ((n != NULL && hh->loc.node == n) || (n == NULL && d == hh->loc.desktop)) {
				hh->latest = false;
			}
			if (ip == NULL && ((n != NULL && hh->loc.desktop == d) || (n == NULL && hh->loc.monitor == m))) {
				ip = hh;
			}
		}

		if (ip != NULL) {
			history_insert_after(h, ip);
		} else {
			ip = history_head;
			if (n != NULL) {
				for (history_t *hh = history_head; hh != NULL; hh = hh->next) {
					if (hh->latest && hh->loc.monitor == m) {
						ip = hh;
						break;
					}
				}
			}
			history_insert_before(h, ip);
		}
	} else {
		free(h);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
leaq 0x1bda4(%rip), %rax     # 0x28768
cmpb $0x1, (%rax)
jne 0xca96
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
testb %bpl, %bpl
je 0xc9e8
leaq 0x1bd34(%rip), %rax     # 0x28718
andq $0x0, (%rax)
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0xc988
leaq 0x1bd2b(%rip), %rcx     # 0x28728
movq (%rcx), %rsi
testq %rsi, %rsi
je 0xca89
leaq 0x1bd10(%rip), %rcx     # 0x28720
movq (%rcx), %rdx
testq %r14, %r14
je 0xcaa1
cmpq %r14, 0x10(%rdx)
je 0xcaab
xorl %ecx, %ecx
testb %bpl, %bpl
cmovneq %rdx, %rcx
testq %rdx, %rdx
je 0xca6f
testq %r14, %r14
je 0xca52
cmpq %r14, 0x10(%rdx)
jne 0xca43
movb $0x0, 0x18(%rdx)
testq %rcx, %rcx
jne 0xca69
cmpq %r15, 0x8(%rdx)
je 0xca66
xorl %ecx, %ecx
jmp 0xca69
cmpq %r15, 0x8(%rdx)
jne 0xca5c
movb $0x0, 0x18(%rdx)
testq %rcx, %rcx
jne 0xca69
cmpq %rbx, (%rdx)
jne 0xca4e
movq %rdx, %rcx
movq 0x20(%rdx), %rdx
jmp 0xca2f
testq %rcx, %rcx
je 0xcabd
movq %rax, %rdi
movq %rcx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xcaf0
leaq 0x1bc90(%rip), %rdx     # 0x28720
movq %rax, (%rdx)
movq %rax, (%rcx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
cmpq %r15, 0x8(%rdx)
jne 0xca26
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x4460
testq %r14, %r14
je 0xcade
movq %rsi, %rcx
testq %rcx, %rcx
je 0xcade
cmpb $0x1, 0x18(%rcx)
jne 0xcad5
cmpq %rbx, (%rcx)
je 0xcadb
movq 0x28(%rcx), %rcx
jmp 0xcac5
movq %rcx, %rsi
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xcb1a
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/history.c
// Function: history_insert_after
void history_insert_after(history_t *a, history_t *b)
{
	a->next = b->next;
	if (b->next != NULL) {
		b->next->prev = a;
	}
	b->next = a;
	a->prev = b;
	if (history_tail == b) {
		history_tail = a;
	}
}

// Assembly:
movq 0x28(%rsi), %rax
movq %rax, 0x28(%rdi)
testq %rax, %rax
je 0xcb01
movq %rdi, 0x20(%rax)
movq %rdi, 0x28(%rsi)
movq %rsi, 0x20(%rdi)
leaq 0x1bc10(%rip), %rax     # 0x28720
cmpq %rsi, (%rax)
je 0xcb16
retq
movq %rdi, (%rax)
retq
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/history.c
// Function: history_insert_before
void history_insert_before(history_t *a, history_t *b)
{
	a->prev = b->prev;
	if (b->prev != NULL) {
		b->prev->next = a;
	}
	b->prev = a;
	a->next = b;
	if (history_head == b) {
		history_head = a;
	}
}

// Assembly:
movq 0x20(%rsi), %rax
movq %rax, 0x20(%rdi)
testq %rax, %rax
je 0xcb2b
movq %rdi, 0x28(%rax)
movq %rdi, 0x20(%rsi)
movq %rsi, 0x28(%rdi)
leaq 0x1bbee(%rip), %rax     # 0x28728
cmpq %rsi, (%rax)
je 0xcb40
retq
movq %rdi, (%rax)
retq
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/history.c
// Function: history_remove
void history_remove(desktop_t *d, node_t *n, bool deep)
{
	/* removing from the newest to the oldest is required */
	/* for maintaining the *latest* attribute */
	history_t *b = history_tail;
	while (b != NULL) {
		if ((n != NULL && ((deep && is_descendant(b->loc.node, n)) || (!deep && b->loc.node == n))) ||
		    (n == NULL && d == b->loc.desktop)) {
			history_t *a = b->next;
			history_t *c = b->prev;
			if (a != NULL) {
				/* remove duplicate entries */
				while (c != NULL && ((a->loc.node != NULL && a->loc.node == c->loc.node) ||
				       (a->loc.node == NULL && a->loc.desktop == c->loc.desktop))) {
					history_t *p = c->prev;
					if (history_head == c) {
						history_head = history_tail;
					}
					if (history_needle == c) {
						history_needle = history_tail;
					}
					free(c);
					c = p;
				}
				a->prev = c;
			}
			if (c != NULL) {
				c->next = a;
			}
			if (history_tail == b) {
				history_tail = c;
			}
			if (history_head == b) {
				history_head = a;
			}
			if (history_needle == b) {
				history_needle = c;
			}
			free(b);
			b = c;
		} else {
			b = b->prev;
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, 0x4(%rsp)
movq %rsi, %r14
movq %rdi, 0x8(%rsp)
leaq 0x1bbbb(%rip), %rax     # 0x28720
movq (%rax), %r12
leaq 0x1bbb9(%rip), %r15     # 0x28728
leaq 0x1bba2(%rip), %rbx     # 0x28718
movq %rsi, 0x10(%rsp)
testq %r12, %r12
je 0xcc75
testq %r14, %r14
je 0xcc0d
movq 0x10(%r12), %rdi
cmpb $0x0, 0x4(%rsp)
je 0xcc23
movq %r14, %rsi
callq 0x9892
testb %al, %al
je 0xcc19
movq 0x20(%r12), %r13
movq 0x28(%r12), %r14
testq %r14, %r14
je 0xcc31
testq %r13, %r13
je 0xcc2d
movq 0x10(%r14), %rax
testq %rax, %rax
je 0xcbce
cmpq 0x10(%r13), %rax
je 0xcbd8
jmp 0xcc2d
movq 0x8(%r14), %rax
cmpq 0x8(%r13), %rax
jne 0xcc2d
cmpq %r13, (%r15)
jne 0xcbea
leaq 0x1bb3c(%rip), %rax     # 0x28720
movq (%rax), %rax
movq %rax, (%r15)
cmpq %r13, (%rbx)
jne 0xcbfc
leaq 0x1bb2a(%rip), %rax     # 0x28720
movq (%rax), %rax
movq %rax, (%rbx)
movq 0x20(%r13), %rbp
movq %r13, %rdi
callq 0x4460
movq %rbp, %r13
jmp 0xcbb8
movq 0x8(%rsp), %rax
cmpq %rax, 0x8(%r12)
je 0xcba9
movq 0x20(%r12), %r12
jmp 0xcb7b
cmpq %r14, %rdi
jne 0xcc19
jmp 0xcba9
movq %r13, 0x20(%r14)
testq %r13, %r13
je 0xcc3a
movq %r14, 0x28(%r13)
leaq 0x1badf(%rip), %rax     # 0x28720
cmpq %r12, (%rax)
jne 0xcc50
leaq 0x1bad3(%rip), %rax     # 0x28720
movq %r13, (%rax)
cmpq %r12, (%r15)
jne 0xcc58
movq %r14, (%r15)
cmpq %r12, (%rbx)
jne 0xcc60
movq %r13, (%rbx)
movq %r12, %rdi
callq 0x4460
movq %r13, %r12
movq 0x10(%rsp), %r14
jmp 0xcb7b
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/history.c
// Function: empty_history
void empty_history(void)
{
	history_t *h = history_head;
	while (h != NULL) {
		history_t *next = h->next;
		free(h);
		h = next;
	}
	history_head = history_tail = NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
leaq 0x1ba99(%rip), %rbx     # 0x28728
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xcca5
movq 0x28(%rdi), %r14
callq 0x4460
movq %r14, %rdi
jmp 0xcc92
leaq 0x1ba74(%rip), %rax     # 0x28720
andq $0x0, (%rax)
andq $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/history.c
// Function: history_last_node
node_t *history_last_node(desktop_t *d, node_t *n)
{
	for (history_t *h = history_tail; h != NULL; h = h->prev) {
		if (h->latest && h->loc.node != NULL && !h->loc.node->hidden &&
		    !is_descendant(h->loc.node, n) && h->loc.desktop == d) {
			return h->loc.node;
		}
	}
	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
leaq 0x1ba4f(%rip), %r12     # 0x28720
xorl %ebx, %ebx
movq (%r12), %r12
testq %r12, %r12
je 0xcd12
cmpb $0x1, 0x18(%r12)
jne 0xcd07
movq 0x10(%r12), %rdi
testq %rdi, %rdi
je 0xcd07
cmpb $0x0, 0x25(%rdi)
jne 0xcd07
movq %r14, %rsi
callq 0x9892
testb %al, %al
jne 0xcd07
cmpq %r15, 0x8(%r12)
je 0xcd0d
addq $0x20, %r12
jmp 0xccd3
movq 0x10(%r12), %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/history.c
// Function: history_find_newest_node
bool history_find_newest_node(coordinates_t *ref, coordinates_t *dst, node_select_t *sel)
{
	for (history_t *h = history_tail; h != NULL; h = h->prev) {
		if (h->loc.node == NULL ||
		    h->loc.node->hidden ||
		    !node_matches(&h->loc, ref, sel)) {
			continue;
		}
		*dst = h->loc;
		return true;
	}

	return false;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %r12
leaq 0x1b995(%rip), %rbx     # 0x28720
movq (%rbx), %rbx
testq %rbx, %rbx
je 0xcdc9
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0xcdb4
cmpb $0x0, 0x25(%rax)
jne 0xcdb4
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x17e76
testb %al, %al
jne 0xcdba
addq $0x20, %rbx
jmp 0xcd8b
movq 0x10(%rbx), %rax
movq %rax, 0x10(%r14)
movups (%rbx), %xmm0
movups %xmm0, (%r14)
testq %rbx, %rbx
setne %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/history.c
// Function: history_find_node
bool history_find_node(history_dir_t hdi, coordinates_t *ref, coordinates_t *dst, node_select_t *sel)
{
	if (history_needle == NULL || record_history) {
		history_needle = history_tail;
	}

	history_t *h;
	for (h = history_needle; h != NULL; h = (hdi == HISTORY_OLDER ? h->prev : h->next)) {
		if (!h->latest ||
		    h->loc.node == NULL ||
		    h->loc.node == ref->node ||
		    h->loc.node->hidden ||
		    !node_matches(&h->loc, ref, sel)) {
			continue;
		}
		if (!record_history) {
			history_needle = h;
		}
		*dst = h->loc;
		return true;
	}
	return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdx, %rbx
movq %rsi, %r12
leaq 0x1b922(%rip), %r13     # 0x28718
movq (%r13), %r14
testq %r14, %r14
je 0xce0b
leaq 0x1b962(%rip), %rax     # 0x28768
cmpb $0x1, (%rax)
jne 0xce19
leaq 0x1b90e(%rip), %rax     # 0x28720
movq (%rax), %r14
movq %r14, (%r13)
xorl %eax, %eax
testl %edi, %edi
setne %al
leaq 0x20(,%rax,8), %rbp
testq %r14, %r14
je 0xce81
cmpb $0x1, 0x18(%r14)
jne 0xce5c
movq 0x10(%r14), %rax
testq %rax, %rax
je 0xce5c
cmpq 0x10(%r12), %rax
je 0xce5c
cmpb $0x0, 0x25(%rax)
jne 0xce5c
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x17e76
testb %al, %al
jne 0xce62
movq (%r14,%rbp), %r14
jmp 0xce28
leaq 0x1b8ff(%rip), %rax     # 0x28768
cmpb $0x0, (%rax)
jne 0xce72
movq %r14, (%r13)
movq 0x10(%r14), %rax
movq %rax, 0x10(%rbx)
movups (%r14), %xmm0
movups %xmm0, (%rbx)
testq %r14, %r14
setne %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/history.c
// Function: history_find_newest_desktop
bool history_find_newest_desktop(coordinates_t *ref, coordinates_t *dst, desktop_select_t *sel)
{
	for (history_t *h = history_tail; h != NULL; h = h->prev) {
		if (desktop_matches(&h->loc, ref, sel)) {
			*dst = h->loc;
			return true;
		}
	}

	return false;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %r12
leaq 0x1b872(%rip), %rbx     # 0x28720
movq (%rbx), %rbx
testq %rbx, %rbx
je 0xcedd
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x17c4d
testb %al, %al
jne 0xcece
addq $0x20, %rbx
jmp 0xceae
movq 0x10(%rbx), %rax
movq %rax, 0x10(%r14)
movups (%rbx), %xmm0
movups %xmm0, (%r14)
testq %rbx, %rbx
setne %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/history.c
// Function: history_find_desktop
bool history_find_desktop(history_dir_t hdi, coordinates_t *ref, coordinates_t *dst, desktop_select_t *sel)
{
	if (history_needle == NULL || record_history) {
		history_needle = history_tail;
	}

	history_t *h;
	for (h = history_needle; h != NULL; h = (hdi == HISTORY_OLDER ? h->prev : h->next)) {
		if (!h->latest ||
		    h->loc.desktop == ref->desktop ||
		    !desktop_matches(&h->loc, ref, sel)) {
			continue;
		}
		if (!record_history) {
			history_needle = h;
		}
		*dst = h->loc;
		return true;
	}
	return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdx, %rbx
movq %rsi, %r12
leaq 0x1b80e(%rip), %r13     # 0x28718
movq (%r13), %r14
testq %r14, %r14
je 0xcf1f
leaq 0x1b84e(%rip), %rax     # 0x28768
cmpb $0x1, (%rax)
jne 0xcf2d
leaq 0x1b7fa(%rip), %rax     # 0x28720
movq (%rax), %r14
movq %r14, (%r13)
xorl %eax, %eax
testl %edi, %edi
setne %al
leaq 0x20(,%rax,8), %rbp
testq %r14, %r14
je 0xcf8a
cmpb $0x1, 0x18(%r14)
jne 0xcf65
movq 0x8(%r14), %rax
cmpq 0x8(%r12), %rax
je 0xcf65
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x17c4d
testb %al, %al
jne 0xcf6b
movq (%r14,%rbp), %r14
jmp 0xcf3c
leaq 0x1b7f6(%rip), %rax     # 0x28768
cmpb $0x0, (%rax)
jne 0xcf7b
movq %r14, (%r13)
movq 0x10(%r14), %rax
movq %rax, 0x10(%rbx)
movups (%r14), %xmm0
movups %xmm0, (%rbx)
testq %r14, %r14
setne %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/history.c
// Function: history_find_newest_monitor
bool history_find_newest_monitor(coordinates_t *ref, coordinates_t *dst, monitor_select_t *sel)
{
	for (history_t *h = history_tail; h != NULL; h = h->prev) {
		if (monitor_matches(&h->loc, ref, sel)) {
			*dst = h->loc;
			return true;
		}
	}

	return false;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %r12
leaq 0x1b769(%rip), %rbx     # 0x28720
movq (%rbx), %rbx
testq %rbx, %rbx
je 0xcfe6
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x17c07
testb %al, %al
jne 0xcfd7
addq $0x20, %rbx
jmp 0xcfb7
movq 0x10(%rbx), %rax
movq %rax, 0x10(%r14)
movups (%rbx), %xmm0
movups %xmm0, (%r14)
testq %rbx, %rbx
setne %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/history.c
// Function: history_find_monitor
bool history_find_monitor(history_dir_t hdi, coordinates_t *ref, coordinates_t *dst, monitor_select_t *sel)
{
	if (history_needle == NULL || record_history) {
		history_needle = history_tail;
	}

	history_t *h;

	for (h = history_needle; h != NULL; h = (hdi == HISTORY_OLDER ? h->prev : h->next)) {
		if (!h->latest ||
		    h->loc.monitor == ref->monitor ||
		    !monitor_matches(&h->loc, ref, sel)) {
			continue;
		}
		if (!record_history) {
			history_needle = h;
		}
		*dst = h->loc;
		return true;
	}

	return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdx, %rbx
movq %rsi, %r12
leaq 0x1b705(%rip), %r13     # 0x28718
movq (%r13), %r14
testq %r14, %r14
je 0xd028
leaq 0x1b745(%rip), %rax     # 0x28768
cmpb $0x1, (%rax)
jne 0xd036
leaq 0x1b6f1(%rip), %rax     # 0x28720
movq (%rax), %r14
movq %r14, (%r13)
xorl %eax, %eax
testl %edi, %edi
setne %al
leaq 0x20(,%rax,8), %rbp
testq %r14, %r14
je 0xd091
cmpb $0x1, 0x18(%r14)
jne 0xd06c
movq (%r14), %rax
cmpq (%r12), %rax
je 0xd06c
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x17c07
testb %al, %al
jne 0xd072
movq (%r14,%rbp), %r14
jmp 0xd045
leaq 0x1b6ef(%rip), %rax     # 0x28768
cmpb $0x0, (%rax)
jne 0xd082
movq %r14, (%r13)
movq 0x10(%r14), %rax
movq %rax, 0x10(%rbx)
movups (%r14), %xmm0
movups %xmm0, (%rbx)
testq %r14, %r14
setne %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/history.c
// Function: history_rank
uint32_t history_rank(node_t *n)
{
	uint32_t r = 0;
	history_t *h = history_tail;
	while (h != NULL && (!h->latest || h->loc.node != n)) {
		h = h->prev;
		r++;
	}
	if (h == NULL) {
		return UINT32_MAX;
	} else {
		return r;
	}
}

// Assembly:
leaq 0x1b673(%rip), %rdx     # 0x28720
xorl %ecx, %ecx
pushq $-0x1
popq %rax
movq (%rdx), %rdx
testq %rdx, %rdx
je 0xd0d0
cmpb $0x1, 0x18(%rdx)
jne 0xd0c6
cmpq %rdi, 0x10(%rdx)
je 0xd0ce
addq $0x20, %rdx
incl %ecx
jmp 0xd0b2
movl %ecx, %eax
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/events.c
// Function: client_message
void client_message(xcb_generic_event_t *evt)
{
	xcb_client_message_event_t *e = (xcb_client_message_event_t *) evt;

	if (e->type == ewmh->_NET_CURRENT_DESKTOP) {
		coordinates_t loc;
		if (ewmh_locate_desktop(e->data.data32[0], &loc)) {
			focus_node(loc.monitor, loc.desktop, loc.desktop->focus);
		}
		return;
	}

	coordinates_t loc;
	if (!locate_window(e->window, &loc)) {
		for (pending_rule_t *pr = pending_rule_head; pr != NULL; pr = pr->next) {
			if (pr->win == e->window) {
				postpone_event(pr, evt);
				break;
			}
		}
		return;
	}

	if (e->type == ewmh->_NET_WM_STATE) {
		handle_state(loc.monitor, loc.desktop, loc.node, e->data.data32[1], e->data.data32[0]);
		handle_state(loc.monitor, loc.desktop, loc.node, e->data.data32[2], e->data.data32[0]);
	} else if (e->type == ewmh->_NET_ACTIVE_WINDOW) {
		if ((ignore_ewmh_focus && e->data.data32[0] == XCB_EWMH_CLIENT_SOURCE_TYPE_NORMAL) ||
		    loc.node == mon->desk->focus) {
			return;
		}
		focus_node(loc.monitor, loc.desktop, loc.node);
	} else if (e->type == ewmh->_NET_WM_DESKTOP) {
		coordinates_t dloc;
		if (ewmh_locate_desktop(e->data.data32[0], &dloc)) {
			transfer_node(loc.monitor, loc.desktop, loc.node, dloc.monitor, dloc.desktop, dloc.desktop->focus, false);
		}
	} else if (e->type == ewmh->_NET_CLOSE_WINDOW) {
		close_node(loc.node);
	}
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movl 0x8(%rdi), %eax
leaq 0x1bc6f(%rip), %r14     # 0x28e30
movq (%r14), %rcx
cmpl 0x38(%rcx), %eax
jne 0xd1f6
movl 0xc(%rbx), %edi
leaq 0x8(%rsp), %rsi
callq 0x1c5b4
testb %al, %al
je 0xd2b1
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x38(%rsi), %rdx
callq 0x9cf6
jmp 0xd2b1
movl 0x4(%rbx), %edi
leaq 0x8(%rsp), %rsi
callq 0x199cc
testb %al, %al
je 0xd24d
movl 0x8(%rbx), %eax
movq (%r14), %rcx
cmpl 0x84(%rcx), %eax
jne 0xd26a
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movl 0xc(%rbx), %r8d
movl 0x10(%rbx), %ecx
callq 0xdbbc
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movl 0xc(%rbx), %r8d
movl 0x14(%rbx), %ecx
callq 0xdbbc
jmp 0xd2b1
leaq 0x1b484(%rip), %rdi     # 0x286d8
movq (%rdi), %rdi
testq %rdi, %rdi
je 0xd2b1
movl 0x4(%rdi), %eax
cmpl 0x4(%rbx), %eax
je 0xd2a9
addq $0x28, %rdi
jmp 0xd254
cmpl 0x40(%rcx), %eax
jne 0xd2b9
leaq 0x1bb89(%rip), %rax     # 0x28dff
cmpb $0x1, (%rax)
jne 0xd281
cmpl $0x1, 0xc(%rbx)
je 0xd2b1
movq 0x18(%rsp), %rdx
leaq 0x1b483(%rip), %rax     # 0x28710
movq (%rax), %rax
movq 0x58(%rax), %rax
cmpq 0x38(%rax), %rdx
je 0xd2b1
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
jmp 0xd1ec
movq %rbx, %rsi
callq 0x1b91c
addq $0x38, %rsp
popq %rbx
popq %r14
retq
cmpl 0x7c(%rcx), %eax
jne 0xd2f7
movl 0xc(%rbx), %edi
leaq 0x20(%rsp), %rsi
callq 0x1c5b4
testb %al, %al
je 0xd2b1
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x20(%rsp), %rcx
movq 0x28(%rsp), %r8
movq 0x38(%r8), %r9
andl $0x0, (%rsp)
callq 0x9937
jmp 0xd2b1
cmpl 0x58(%rcx), %eax
jne 0xd2b1
movq 0x18(%rsp), %rdi
callq 0xb048
jmp 0xd2b1
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/events.c
// Function: enter_notify
void enter_notify(xcb_generic_event_t *evt)
{
	xcb_enter_notify_event_t *e = (xcb_enter_notify_event_t *) evt;
	xcb_window_t win = e->event;

	if (e->mode != XCB_NOTIFY_MODE_NORMAL || e->detail == XCB_NOTIFY_DETAIL_INFERIOR) {
		return;
	}

	/* Ignore the enter notify events that we generated by unmapping the motion
	 * recorder window in `query_pointer`. */
	if (motion_recorder.enabled && motion_recorder.sequence == e->sequence) {
		return;
	}

	if (win == mon->root || (mon->desk->focus != NULL &&
	                         (win == mon->desk->focus->id ||
	                          (mon->desk->focus->presel != NULL &&
	                           win == mon->desk->focus->presel->feedback)))) {
		return;
	}

	update_motion_recorder();
}

// Assembly:
cmpb $0x0, 0x1e(%rdi)
jne 0xd888
cmpb $0x2, 0x1(%rdi)
je 0xd888
movl 0xc(%rdi), %eax
leaq 0x1aeaa(%rip), %rcx     # 0x286e8
cmpb $0x1, 0x6(%rcx)
jne 0xd84e
movzwl 0x4(%rcx), %ecx
cmpw 0x2(%rdi), %cx
je 0xd888
leaq 0x1aebb(%rip), %rcx     # 0x28710
movq (%rcx), %rcx
cmpl 0x28(%rcx), %eax
je 0xd888
movq 0x58(%rcx), %rcx
movq 0x38(%rcx), %rcx
testq %rcx, %rcx
je 0x102fe
cmpl (%rcx), %eax
je 0xd888
movq 0x10(%rcx), %rcx
testq %rcx, %rcx
je 0x102fe
cmpl 0xc(%rcx), %eax
jne 0x102fe
retq
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/events.c
// Function: motion_notify
void motion_notify(xcb_generic_event_t *evt)
{
	xcb_motion_notify_event_t *e = (xcb_motion_notify_event_t *) evt;

	static uint16_t last_motion_x = 0, last_motion_y = 0;
	static xcb_timestamp_t last_motion_time = 0;

	int64_t dtime = e->time - last_motion_time;

	/* Ignore unintentional pointer motions. */
	if (dtime > 1000) {
		last_motion_time = e->time;
		last_motion_x = e->event_x;
		last_motion_y = e->event_y;
		return;
	}
	int mdist = abs(e->event_x - last_motion_x) + abs(e->event_y - last_motion_y);
	if (mdist < 10) {
		return;
	}

	disable_motion_recorder();

	xcb_window_t win = XCB_NONE;
	query_pointer(&win, NULL);
	coordinates_t loc;
	bool pff = pointer_follows_focus;
	bool pfm = pointer_follows_monitor;
	pointer_follows_focus = false;
	pointer_follows_monitor = false;
	auto_raise = false;

	if (locate_window(win, &loc)) {
		if (loc.monitor->desk == loc.desktop && loc.node != mon->desk->focus) {
			focus_node(loc.monitor, loc.desktop, loc.node);
		}
	} else {
		xcb_point_t pt = {e->root_x, e->root_y};
		monitor_t *m = monitor_from_point(pt);
		if (m != NULL && m != mon) {
			focus_node(m, m->desk, m->desk->focus);
		}
	}

	pointer_follows_focus = pff;
	pointer_follows_monitor = pfm;
	auto_raise = true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movl 0x4(%rdi), %eax
movl %eax, %ecx
subl 0x1b573(%rip), %ecx     # 0x28e18
cmpl $0x3e9, %ecx            # imm = 0x3E9
jb 0xd8ce
movl %eax, 0x1b565(%rip)     # 0x28e18
movzwl 0x18(%rbx), %eax
movw %ax, 0x1b554(%rip)      # 0x28e12
movzwl 0x1a(%rbx), %eax
movw %ax, 0x1b54b(%rip)      # 0x28e14
jmp 0xd9bc
movswl 0x18(%rbx), %eax
movzwl 0x1b539(%rip), %ecx     # 0x28e12
subl %ecx, %eax
movl %eax, %ecx
negl %ecx
cmovsl %eax, %ecx
movswl 0x1a(%rbx), %eax
movzwl 0x1b527(%rip), %edx     # 0x28e14
subl %edx, %eax
movl %eax, %edx
negl %edx
cmovsl %eax, %edx
addl %ecx, %edx
cmpl $0xa, %edx
jb 0xd9bc
callq 0x1041f
leaq 0xc(%rsp), %r14
andl $0x0, (%r14)
xorl %r15d, %r15d
movq %r14, %rdi
xorl %esi, %esi
callq 0xfb66
leaq 0x1b4d8(%rip), %rax     # 0x28dfb
movb (%rax), %bpl
leaq 0x1b4cf(%rip), %r12     # 0x28dfc
movb (%r12), %r13b
movb %r15b, (%rax)
movb %r15b, (%r12)
leaq 0x1ae2c(%rip), %rax     # 0x2876b
movb %r15b, (%rax)
movq %rax, %r15
movl (%r14), %edi
leaq 0x10(%rsp), %rsi
callq 0x199cc
testb %al, %al
je 0xd981
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
cmpq %rsi, 0x58(%rdi)
jne 0xd9aa
movq 0x20(%rsp), %rdx
leaq 0x1ad9e(%rip), %rax     # 0x28710
movq (%rax), %rax
movq 0x58(%rax), %rax
cmpq 0x38(%rax), %rdx
jne 0xd9a5
jmp 0xd9aa
movl 0x14(%rbx), %edi
callq 0x72fe
testq %rax, %rax
je 0xd9aa
leaq 0x1ad7b(%rip), %rcx     # 0x28710
cmpq (%rcx), %rax
je 0xd9aa
movq 0x58(%rax), %rsi
movq 0x38(%rsi), %rdx
movq %rax, %rdi
callq 0x9cf6
leaq 0x1b44a(%rip), %rax     # 0x28dfb
movb %bpl, (%rax)
movb %r13b, (%r12)
movb $0x1, (%r15)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/events.c
// Function: button_press
void button_press(xcb_generic_event_t *evt)
{
	xcb_button_press_event_t *e = (xcb_button_press_event_t *) evt;
	bool replay = false;
	for (unsigned int i = 0; i < LENGTH(BUTTONS); i++) {
		if (e->detail != BUTTONS[i]) {
			continue;
		}
		if ((click_to_focus == (int8_t) XCB_BUTTON_INDEX_ANY || click_to_focus == (int8_t) BUTTONS[i]) &&
			cleaned_mask(e->state) == XCB_NONE) {
			bool pff = pointer_follows_focus;
			bool pfm = pointer_follows_monitor;
			pointer_follows_focus = false;
			pointer_follows_monitor = false;
			replay = !grab_pointer(ACTION_FOCUS) || !swallow_first_click;
			pointer_follows_focus = pff;
			pointer_follows_monitor = pfm;
		} else {
			grab_pointer(pointer_actions[i]);
		}
	}
	xcb_allow_events(dpy, replay ? XCB_ALLOW_REPLAY_POINTER : XCB_ALLOW_SYNC_POINTER, e->time);
	xcb_flush(dpy);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x11044(%rip), %r15     # 0x1ea24
leaq 0x1b416(%rip), %r12     # 0x28dfd
leaq 0x1b432(%rip), %r14     # 0x28e20
leaq 0x1b42f(%rip), %rbp     # 0x28e24
xorl %r13d, %r13d
movl $0x0, 0x4(%rsp)
cmpq $0xc, %r13
je 0xdac4
movzbl 0x1(%rbx), %eax
cmpl %eax, (%r13,%r15)
jne 0xda57
movb (%r12), %cl
testb %cl, %cl
setne %dl
cmpb %cl, %al
setne %al
testb %al, %dl
jne 0xda47
movzwl 0x1c(%rbx), %eax
movzwl (%rbp), %ecx
movzwl (%r14), %edx
orl %ecx, %edx
leaq 0x1b3e6(%rip), %rcx     # 0x28e22
movzwl (%rcx), %ecx
orl %edx, %ecx
notl %ecx
testl %eax, %ecx
je 0xda5d
leaq 0x1b39a(%rip), %rax     # 0x28de8
movl (%rax,%r13), %edi
callq 0xe629
addq $0x4, %r13
jmp 0xda00
leaq 0x1b397(%rip), %r14     # 0x28dfb
movb (%r14), %bpl
leaq 0x1b38e(%rip), %r12     # 0x28dfc
movb (%r12), %al
movb %al, 0x3(%rsp)
xorl %eax, %eax
movb %al, (%r14)
movb %al, (%r12)
pushq $0x1
popq %rdi
callq 0xe629
leaq 0x1b370(%rip), %rcx     # 0x28dfe
movb (%rcx), %cl
xorb $0x1, %cl
movzbl %cl, %ecx
testb %al, %al
pushq $0x1
popq %rax
cmovel %eax, %ecx
movl %ecx, 0x4(%rsp)
movb %bpl, (%r14)
leaq 0x1b378(%rip), %rbp     # 0x28e24
movb 0x3(%rsp), %al
movb %al, (%r12)
leaq 0x1b342(%rip), %r12     # 0x28dfd
leaq 0x1b35e(%rip), %r14     # 0x28e20
jmp 0xda57
leaq 0x1abfd(%rip), %r15     # 0x286c8
movq (%r15), %rdi
movl 0x4(%rbx), %edx
movzbl 0x4(%rsp), %esi
andl $0x1, %esi
incl %esi
callq 0x4140
movq (%r15), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4660
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/events.c
// Function: focus_in
void focus_in(xcb_generic_event_t *evt)
{
	xcb_focus_in_event_t *e = (xcb_focus_in_event_t *) evt;

	if (e->mode == XCB_NOTIFY_MODE_GRAB || e->mode == XCB_NOTIFY_MODE_UNGRAB
	    || e->detail == XCB_NOTIFY_DETAIL_POINTER || e->detail == XCB_NOTIFY_DETAIL_POINTER_ROOT
	    || e->detail == XCB_NOTIFY_DETAIL_NONE) {
		return;
	}

	if (mon->desk->focus != NULL) {
		if (e->event == mon->desk->focus->id) {
			return;
		}
		if (e->event == root) {
			/* Some clients expect the window manager to refocus the
			   focused window in this case */
			focus_node(mon, mon->desk, mon->desk->focus);
			return;
		}
	}

	coordinates_t loc;
	if (locate_window(e->event, &loc)) {
		// prevent input focus stealing
		update_input_focus();
	}
}

// Assembly:
movb 0x8(%rdi), %al
decb %al
cmpb $0x2, %al
jb 0xdb52
movb 0x1(%rdi), %al
addb $-0x5, %al
cmpb $0x3, %al
jb 0xdb52
leaq 0x1ac01(%rip), %rax     # 0x28710
movq (%rax), %rax
movq 0x58(%rax), %rsi
movq 0x38(%rsi), %rdx
movl 0x4(%rdi), %edi
testq %rdx, %rdx
je 0xdb39
cmpl (%rdx), %edi
je 0xdb52
leaq 0x1ac4b(%rip), %rcx     # 0x28778
cmpl (%rcx), %edi
jne 0xdb39
movq %rax, %rdi
jmp 0x9cf6
subq $0x18, %rsp
movq %rsp, %rsi
callq 0x199cc
testb %al, %al
je 0xdb4e
callq 0x10554
addq $0x18, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/pointer.c
// Function: pointer_init
void pointer_init(void)
{
	num_lock = modfield_from_keysym(XK_Num_Lock);
	caps_lock = modfield_from_keysym(XK_Caps_Lock);
	scroll_lock = modfield_from_keysym(XK_Scroll_Lock);
	if (caps_lock == XCB_NO_SYMBOL) {
		caps_lock = XCB_MOD_MASK_LOCK;
	}
	grabbing = false;
	grabbed_node = NULL;
}

// Assembly:
pushq %rax
movl $0xff7f, %edi           # imm = 0xFF7F
callq 0xe084
movw %ax, 0x1ade2(%rip)      # 0x28e20
movl $0xffe5, %edi           # imm = 0xFFE5
callq 0xe084
movw %ax, 0x1add3(%rip)      # 0x28e22
movl $0xff14, %edi           # imm = 0xFF14
callq 0xe084
movw %ax, 0x1adc4(%rip)      # 0x28e24
cmpw $0x0, 0x1adba(%rip)     # 0x28e22
jne 0xe073
movw $0x2, 0x1adaf(%rip)     # 0x28e22
movb $0x0, 0x1adac(%rip)     # 0x28e26
andq $0x0, 0x1ada6(%rip)     # 0x28e28
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/pointer.c
// Function: modfield_from_keysym
int16_t modfield_from_keysym(xcb_keysym_t keysym)
{
	uint16_t modfield = 0;
	xcb_keycode_t *keycodes = NULL, *mod_keycodes = NULL;
	xcb_get_modifier_mapping_reply_t *reply = NULL;
	xcb_key_symbols_t *symbols = xcb_key_symbols_alloc(dpy);

	if ((keycodes = xcb_key_symbols_get_keycode(symbols, keysym)) == NULL ||
	    (reply = xcb_get_modifier_mapping_reply(dpy, xcb_get_modifier_mapping(dpy), NULL)) == NULL ||
	    reply->keycodes_per_modifier < 1 ||
	    (mod_keycodes = xcb_get_modifier_mapping_keycodes(reply)) == NULL) {
		goto end;
	}

	unsigned int num_mod = xcb_get_modifier_mapping_keycodes_length(reply) / reply->keycodes_per_modifier;
	for (unsigned int i = 0; i < num_mod; i++) {
		for (unsigned int j = 0; j < reply->keycodes_per_modifier; j++) {
			xcb_keycode_t mk = mod_keycodes[i * reply->keycodes_per_modifier + j];
			if (mk == XCB_NO_SYMBOL) {
				continue;
			}
			for (xcb_keycode_t *k = keycodes; *k != XCB_NO_SYMBOL; k++) {
				if (*k == mk) {
					modfield |= (1 << i);
				}
			}
		}
	}

end:
	xcb_key_symbols_free(symbols);
	free(keycodes);
	free(reply);
	return modfield;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edi, %ebp
leaq 0x1a630(%rip), %r15     # 0x286c8
movq (%r15), %rdi
callq 0x4590
movq %rax, %rbx
movq %rax, %rdi
movl %ebp, %esi
callq 0x4040
movq %rax, %r14
testq %rax, %rax
je 0xe164
movq (%r15), %r15
movq %r15, %rdi
callq 0x4a50
xorl %r12d, %r12d
movq %r15, %rdi
movl %eax, %esi
xorl %edx, %edx
callq 0x4880
testq %rax, %rax
je 0xe167
movq %rax, %r15
cmpb $0x0, 0x1(%rax)
je 0xe170
movq %rbx, (%rsp)
movq %r15, %rdi
callq 0x4800
xorl %r13d, %r13d
testq %rax, %rax
je 0xe177
movq %rax, %r12
movq %r15, %rdi
callq 0x4970
movzbl 0x1(%r15), %esi
cltd
idivl %esi
pushq $0x1
popq %rdx
xorl %ebp, %ebp
cmpl %eax, %r13d
je 0xe16b
movl %r13d, %edi
imull %esi, %edi
movl %edx, %r8d
movl %r13d, %ecx
shll %cl, %r8d
xorl %ecx, %ecx
cmpq %rsi, %rcx
je 0xe15f
leal (%rdi,%rcx), %r9d
movb (%r12,%r9), %r9b
testb %r9b, %r9b
je 0xe15a
movq %r14, %r10
movb (%r10), %bl
testb %bl, %bl
je 0xe15a
movl %r8d, %r11d
cmpb %r9b, %bl
je 0xe152
xorl %r11d, %r11d
orl %r11d, %ebp
incq %r10
jmp 0xe140
incq %rcx
jmp 0xe12b
incl %r13d
jmp 0xe115
xorl %r12d, %r12d
xorl %ebp, %ebp
jmp 0xe180
movq %r15, %r12
jmp 0xe17c
xorl %ebp, %ebp
movq %r15, %r12
jmp 0xe180
movq %r15, %r12
xorl %ebp, %ebp
movq (%rsp), %rbx
movq %rbx, %rdi
callq 0x4780
movq %r14, %rdi
callq 0x4460
movq %r12, %rdi
callq 0x4460
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/baskerville[P]bspwm/src/pointer.c
// Function: window_grab_buttons
void window_grab_buttons(xcb_window_t win)
{
	for (unsigned int i = 0; i < LENGTH(BUTTONS); i++) {
		if (click_to_focus == (int8_t) XCB_BUTTON_INDEX_ANY || click_to_focus == (int8_t) BUTTONS[i]) {
			window_grab_button(win, BUTTONS[i], XCB_NONE);
		}
		if (pointer_actions[i] != ACTION_NONE) {
			window_grab_button(win, BUTTONS[i], pointer_modifier);
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edi, %ebx
xorl %r14d, %r14d
leaq 0x1ac3d(%rip), %r15     # 0x28dfd
leaq 0x1088d(%rip), %r12     # 0x1ea54
leaq 0x1ac1a(%rip), %r13     # 0x28de8
cmpq $0xc, %r14
je 0xe21e
movsbl (%r15), %eax
testl %eax, %eax
je 0xe1ea
movl (%r14,%r12), %ebp
movsbl %bpl, %ecx
cmpl %eax, %ecx
je 0xe1ee
jmp 0xe1fb
movl (%r14,%r12), %ebp
movzbl %bpl, %esi
movl %ebx, %edi
xorl %edx, %edx
callq 0xe22d
cmpl $0x0, (%r13,%r14)
je 0xe218
leaq 0x1abd6(%rip), %rax     # 0x28de0
movzwl (%rax), %edx
movzbl %bpl, %esi
movl %ebx, %edi
callq 0xe22d
addq $0x4, %r14
jmp 0xe1ce
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq