LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/restore.c
// Function: restore_padding
void restore_padding(padding_t *p, jsmntok_t **t, char *json)
{
	int s = (*t)->size;
	(*t)++;

	for (int i = 0; i < s; i++) {
		if (keyeq("top", *t, json)) {
			(*t)++;
			sscanf(json + (*t)->start, "%i", &p->top);
		} else if (keyeq("right", *t, json)) {
			(*t)++;
			sscanf(json + (*t)->start, "%i", &p->right);
		} else if (keyeq("bottom", *t, json)) {
			(*t)++;
			sscanf(json + (*t)->start, "%i", &p->bottom);
		} else if (keyeq("left", *t, json)) {
			(*t)++;
			sscanf(json + (*t)->start, "%i", &p->left);
		}
		(*t)++;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0xc(%rax), %eax
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x10, %rcx
movq %rcx, (%rax)
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x27c58
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x18(%rbp), %rdx
leaq 0x5c0b(%rip), %rdi      # 0x2d6ff
callq 0x27330
testb $0x1, %al
jne 0x27aff
jmp 0x27b36
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x10, %rcx
movq %rcx, (%rax)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq 0x4(%rax), %rax
addq %rax, %rdi
movq -0x8(%rbp), %rdx
leaq 0x77af(%rip), %rsi      # 0x2f2d9
movb $0x0, %al
callq 0x41c0
jmp 0x27c3c
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x18(%rbp), %rdx
leaq 0x70c1(%rip), %rdi      # 0x2ec09
callq 0x27330
testb $0x1, %al
jne 0x27b53
jmp 0x27b8e
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x10, %rcx
movq %rcx, (%rax)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq 0x4(%rax), %rax
addq %rax, %rdi
movq -0x8(%rbp), %rdx
addq $0x4, %rdx
leaq 0x7757(%rip), %rsi      # 0x2f2d9
movb $0x0, %al
callq 0x41c0
jmp 0x27c3a
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x18(%rbp), %rdx
leaq 0x7048(%rip), %rdi      # 0x2ebe8
callq 0x27330
testb $0x1, %al
jne 0x27bab
jmp 0x27be3
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x10, %rcx
movq %rcx, (%rax)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq 0x4(%rax), %rax
addq %rax, %rdi
movq -0x8(%rbp), %rdx
addq $0x8, %rdx
leaq 0x76ff(%rip), %rsi      # 0x2f2d9
movb $0x0, %al
callq 0x41c0
jmp 0x27c38
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x18(%rbp), %rdx
leaq 0x7021(%rip), %rdi      # 0x2ec16
callq 0x27330
testb $0x1, %al
jne 0x27c00
jmp 0x27c36
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x10, %rcx
movq %rcx, (%rax)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq 0x4(%rax), %rax
addq %rax, %rdi
movq -0x8(%rbp), %rdx
addq $0xc, %rdx
leaq 0x76aa(%rip), %rsi      # 0x2f2d9
movb $0x0, %al
callq 0x41c0
jmp 0x27c38
jmp 0x27c3a
jmp 0x27c3c
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x10, %rcx
movq %rcx, (%rax)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x27ad6
addq $0x20, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/restore.c
// Function: restore_rectangle
void restore_rectangle(xcb_rectangle_t *r, jsmntok_t **t, char *json)
{
	int s = (*t)->size;
	(*t)++;

	for (int i = 0; i < s; i++) {
		if (keyeq("x", *t, json)) {
			(*t)++;
			sscanf(json + (*t)->start, "%hi", &r->x);
		} else if (keyeq("y", *t, json)) {
			(*t)++;
			sscanf(json + (*t)->start, "%hi", &r->y);
		} else if (keyeq("width", *t, json)) {
			(*t)++;
			sscanf(json + (*t)->start, "%hu", &r->width);
		} else if (keyeq("height", *t, json)) {
			(*t)++;
			sscanf(json + (*t)->start, "%hu", &r->height);
		}
		(*t)++;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0xc(%rax), %eax
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x10, %rcx
movq %rcx, (%rax)
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x27e18
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x18(%rbp), %rdx
leaq 0x56ce(%rip), %rdi      # 0x2d382
callq 0x27330
testb $0x1, %al
jne 0x27cbf
jmp 0x27cf6
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x10, %rcx
movq %rcx, (%rax)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq 0x4(%rax), %rax
addq %rax, %rdi
movq -0x8(%rbp), %rdx
leaq 0x6fad(%rip), %rsi      # 0x2ec97
movb $0x0, %al
callq 0x41c0
jmp 0x27dfc
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x18(%rbp), %rdx
leaq 0x635a(%rip), %rdi      # 0x2e062
callq 0x27330
testb $0x1, %al
jne 0x27d13
jmp 0x27d4e
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x10, %rcx
movq %rcx, (%rax)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq 0x4(%rax), %rax
addq %rax, %rdi
movq -0x8(%rbp), %rdx
addq $0x2, %rdx
leaq 0x6f55(%rip), %rsi      # 0x2ec97
movb $0x0, %al
callq 0x41c0
jmp 0x27dfa
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x18(%rbp), %rdx
leaq 0x7964(%rip), %rdi      # 0x2f6c4
callq 0x27330
testb $0x1, %al
jne 0x27d6b
jmp 0x27da3
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x10, %rcx
movq %rcx, (%rax)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq 0x4(%rax), %rax
addq %rax, %rdi
movq -0x8(%rbp), %rdx
addq $0x4, %rdx
leaq 0x6eed(%rip), %rsi      # 0x2ec87
movb $0x0, %al
callq 0x41c0
jmp 0x27df8
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x18(%rbp), %rdx
leaq 0x7919(%rip), %rdi      # 0x2f6ce
callq 0x27330
testb $0x1, %al
jne 0x27dc0
jmp 0x27df6
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x10, %rcx
movq %rcx, (%rax)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq 0x4(%rax), %rax
addq %rax, %rdi
movq -0x8(%rbp), %rdx
addq $0x6, %rdx
leaq 0x6e98(%rip), %rsi      # 0x2ec87
movb $0x0, %al
callq 0x41c0
jmp 0x27df8
jmp 0x27dfa
jmp 0x27dfc
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x10, %rcx
movq %rcx, (%rax)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x27c96
addq $0x20, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/restore.c
// Function: restore_constraints
void restore_constraints(constraints_t *c, jsmntok_t **t, char *json)
{
	int s = (*t)->size;
	(*t)++;

	for (int i = 0; i < s; i++) {
		if (keyeq("min_width", *t, json)) {
			(*t)++;
			sscanf(json + (*t)->start, "%hu", &c->min_width);
		} else if (keyeq("min_height", *t, json)) {
			(*t)++;
			sscanf(json + (*t)->start, "%hu", &c->min_height);
		}
		(*t)++;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0xc(%rax), %eax
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x10, %rcx
movq %rcx, (%rax)
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x28bc4
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x18(%rbp), %rdx
leaq 0x6bac(%rip), %rdi      # 0x2f6c0
callq 0x27330
testb $0x1, %al
jne 0x28b1f
jmp 0x28b53
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x10, %rcx
movq %rcx, (%rax)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq 0x4(%rax), %rax
addq %rax, %rdi
movq -0x8(%rbp), %rdx
leaq 0x613d(%rip), %rsi      # 0x2ec87
movb $0x0, %al
callq 0x41c0
jmp 0x28ba8
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x18(%rbp), %rdx
leaq 0x6b65(%rip), %rdi      # 0x2f6ca
callq 0x27330
testb $0x1, %al
jne 0x28b70
jmp 0x28ba6
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x10, %rcx
movq %rcx, (%rax)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq 0x4(%rax), %rax
addq %rax, %rdi
movq -0x8(%rbp), %rdx
addq $0x2, %rdx
leaq 0x60e8(%rip), %rsi      # 0x2ec87
movb $0x0, %al
callq 0x41c0
jmp 0x28ba8
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x10, %rcx
movq %rcx, (%rax)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x28af6
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/restore.c
// Function: restore_coordinates
void restore_coordinates(coordinates_t *loc, jsmntok_t **t, char *json)
{
	int s = (*t)->size;
	(*t)++;
	uint32_t id = 0;

	for (int i = 0; i < s; i++) {
		if (keyeq("monitorId", *t, json)) {
			(*t)++;
			sscanf(json + (*t)->start, "%u", &id);
			loc->monitor = find_monitor(id);
		} else if (keyeq("desktopId", *t, json)) {
			(*t)++;
			sscanf(json + (*t)->start, "%u", &id);
			loc->desktop = find_desktop_in(id, loc->monitor);
		} else if (keyeq("nodeId", *t, json)) {
			(*t)++;
			sscanf(json + (*t)->start, "%u", &id);
			loc->node = find_by_id_in(loc->desktop != NULL ? loc->desktop->root : NULL, id);
		}
		(*t)++;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0xc(%rax), %eax
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x10, %rcx
movq %rcx, (%rax)
movl $0x0, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x29358
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x18(%rbp), %rdx
leaq 0x6508(%rip), %rdi      # 0x2f6f3
callq 0x27330
testb $0x1, %al
jne 0x291f6
jmp 0x2923f
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x10, %rcx
movq %rcx, (%rax)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq 0x4(%rax), %rax
addq %rax, %rdi
leaq 0x558e(%rip), %rsi      # 0x2e7ab
leaq -0x20(%rbp), %rdx
movb $0x0, %al
callq 0x41c0
movl -0x20(%rbp), %edi
callq 0x8a00
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
jmp 0x2933c
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x18(%rbp), %rdx
leaq 0x64ac(%rip), %rdi      # 0x2f6fd
callq 0x27330
testb $0x1, %al
jne 0x2925c
jmp 0x292ad
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x10, %rcx
movq %rcx, (%rax)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq 0x4(%rax), %rax
addq %rax, %rdi
leaq 0x5528(%rip), %rsi      # 0x2e7ab
leaq -0x20(%rbp), %rdx
movb $0x0, %al
callq 0x41c0
movl -0x20(%rbp), %edi
movq -0x8(%rbp), %rax
movq (%rax), %rsi
callq 0xa6a0
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x8(%rax)
jmp 0x2933a
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x18(%rbp), %rdx
leaq 0x6448(%rip), %rdi      # 0x2f707
callq 0x27330
testb $0x1, %al
jne 0x292ca
jmp 0x29338
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x10, %rcx
movq %rcx, (%rax)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq 0x4(%rax), %rax
addq %rax, %rdi
leaq 0x54ba(%rip), %rsi      # 0x2e7ab
leaq -0x20(%rbp), %rdx
movb $0x0, %al
callq 0x41c0
movq -0x8(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x29319
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x30(%rax), %rax
movq %rax, -0x30(%rbp)
jmp 0x29321
xorl %eax, %eax
movq %rax, -0x30(%rbp)
jmp 0x29321
movq -0x30(%rbp), %rdi
movl -0x20(%rbp), %esi
callq 0xebf0
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x10(%rax)
jmp 0x2933a
jmp 0x2933c
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x10, %rcx
movq %rcx, (%rax)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x291cd
addq $0x30, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/rule.c
// Function: make_rule
rule_t *make_rule(void)
{
	rule_t *r = calloc(1, sizeof(rule_t));
	r->class_name[0] = r->instance_name[0] = r->name[0] = r->effect[0] = '\0';
	r->next = r->prev = NULL;
	r->one_shot = false;
	return r;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl $0x1, %edi
movl $0x418, %esi            # imm = 0x418
callq 0x4890
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movb $0x0, 0x300(%rax)
movq -0x8(%rbp), %rax
movb $0x0, 0x200(%rax)
movq -0x8(%rbp), %rax
movb $0x0, 0x100(%rax)
movq -0x8(%rbp), %rax
movb $0x0, (%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x408(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x410(%rax)
movq -0x8(%rbp), %rax
movb $0x0, 0x400(%rax)
movq -0x8(%rbp), %rax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/rule.c
// Function: add_rule
void add_rule(rule_t *r)
 {
	if (rule_head == NULL) {
		rule_head = rule_tail = r;
	} else {
		rule_tail->next = r;
		r->prev = rule_tail;
		rule_tail = r;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
leaq 0xc139(%rip), %rax      # 0x35728
cmpq $0x0, (%rax)
jne 0x2960f
movq -0x8(%rbp), %rcx
leaq 0xc120(%rip), %rax      # 0x35720
movq %rcx, (%rax)
leaq 0xc11e(%rip), %rax      # 0x35728
movq %rcx, (%rax)
jmp 0x29647
movq -0x8(%rbp), %rcx
leaq 0xc106(%rip), %rax      # 0x35720
movq (%rax), %rax
movq %rcx, 0x410(%rax)
leaq 0xc0f5(%rip), %rax      # 0x35720
movq (%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x408(%rax)
movq -0x8(%rbp), %rcx
leaq 0xc0dc(%rip), %rax      # 0x35720
movq %rcx, (%rax)
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/rule.c
// Function: remove_rule
void remove_rule(rule_t *r)
{
	if (r == NULL) {
		return;
	}
	rule_t *prev = r->prev;
	rule_t *next = r->next;
	if (prev != NULL) {
		prev->next = next;
	}
	if (next != NULL) {
		next->prev = prev;
	}
	if (r == rule_head) {
		rule_head = next;
	}
	if (r == rule_tail) {
		rule_tail = prev;
	}
	free(r);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x29668
jmp 0x296f7
movq -0x8(%rbp), %rax
movq 0x408(%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x410(%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x2969c
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x410(%rax)
cmpq $0x0, -0x18(%rbp)
je 0x296b2
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x408(%rax)
movq -0x8(%rbp), %rax
leaq 0xc06b(%rip), %rcx      # 0x35728
cmpq (%rcx), %rax
jne 0x296d0
movq -0x18(%rbp), %rcx
leaq 0xc05b(%rip), %rax      # 0x35728
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
leaq 0xc045(%rip), %rcx      # 0x35720
cmpq (%rcx), %rax
jne 0x296ee
movq -0x10(%rbp), %rcx
leaq 0xc035(%rip), %rax      # 0x35720
movq %rcx, (%rax)
movq -0x8(%rbp), %rdi
callq 0x4450
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/rule.c
// Function: remove_rule_by_cause
void remove_rule_by_cause(char *cause)
{
	rule_t *r = rule_head;
	struct tokenize_state state;
	char *class_name = tokenize_with_escape(&state, cause, COL_TOK[0]);
	char *instance_name = tokenize_with_escape(&state, NULL, COL_TOK[0]);
	char *name = tokenize_with_escape(&state, NULL, COL_TOK[0]);
	if (!class_name || !instance_name || !name) {
		free(class_name);
		free(instance_name);
		free(name);
		return;
	}

	while (r != NULL) {
		rule_t *next = r->next;
		if ((class_name != NULL && (streq(class_name, MATCH_ANY) || streq(r->class_name, class_name))) &&
		    (instance_name == NULL || streq(instance_name, MATCH_ANY) || streq(r->instance_name, instance_name)) &&
		    (name == NULL || streq(name, MATCH_ANY) || streq(r->name, name))) {
			remove_rule(r);
		}
		r = next;
	}
	free(class_name);
	free(instance_name);
	free(name);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
leaq 0xc015(%rip), %rax      # 0x35728
movq (%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rsi
leaq -0x28(%rbp), %rdi
movsbl 0x5a27(%rip), %edx      # 0x2f150
callq 0x6ab0
movq %rax, -0x30(%rbp)
leaq -0x28(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movsbl 0x5a0f(%rip), %edx      # 0x2f150
callq 0x6ab0
movq %rax, -0x38(%rbp)
leaq -0x28(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movsbl 0x59f7(%rip), %edx      # 0x2f150
callq 0x6ab0
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x29777
cmpq $0x0, -0x38(%rbp)
je 0x29777
cmpq $0x0, -0x40(%rbp)
jne 0x29797
movq -0x30(%rbp), %rdi
callq 0x4450
movq -0x38(%rbp), %rdi
callq 0x4450
movq -0x40(%rbp), %rdi
callq 0x4450
jmp 0x29880
jmp 0x29799
cmpq $0x0, -0x10(%rbp)
je 0x29865
movq -0x10(%rbp), %rax
movq 0x410(%rax), %rax
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x29858
movq -0x30(%rbp), %rdi
leaq 0x4d3a(%rip), %rsi      # 0x2e503
callq 0x4800
cmpl $0x0, %eax
je 0x297e5
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x4800
cmpl $0x0, %eax
jne 0x29858
cmpq $0x0, -0x38(%rbp)
je 0x2981a
movq -0x38(%rbp), %rdi
leaq 0x4d0c(%rip), %rsi      # 0x2e503
callq 0x4800
cmpl $0x0, %eax
je 0x2981a
movq -0x10(%rbp), %rdi
addq $0x100, %rdi            # imm = 0x100
movq -0x38(%rbp), %rsi
callq 0x4800
cmpl $0x0, %eax
jne 0x29858
cmpq $0x0, -0x40(%rbp)
je 0x2984f
movq -0x40(%rbp), %rdi
leaq 0x4cd7(%rip), %rsi      # 0x2e503
callq 0x4800
cmpl $0x0, %eax
je 0x2984f
movq -0x10(%rbp), %rdi
addq $0x200, %rdi            # imm = 0x200
movq -0x40(%rbp), %rsi
callq 0x4800
cmpl $0x0, %eax
jne 0x29858
movq -0x10(%rbp), %rdi
callq 0x29650
movq -0x48(%rbp), %rax
movq %rax, -0x10(%rbp)
jmp 0x29799
movq -0x30(%rbp), %rdi
callq 0x4450
movq -0x38(%rbp), %rdi
callq 0x4450
movq -0x40(%rbp), %rdi
callq 0x4450
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/rule.c
// Function: remove_rule_by_index
bool remove_rule_by_index(int idx)
{
	for (rule_t *r = rule_head; r != NULL; r = r->next, idx--) {
		if (idx == 0) {
			remove_rule(r);
			return true;
		}
	}
	return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x8(%rbp)
leaq 0xbe86(%rip), %rax      # 0x35728
movq (%rax), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x298e1
cmpl $0x0, -0x8(%rbp)
jne 0x298c5
movq -0x10(%rbp), %rdi
callq 0x29650
movb $0x1, -0x1(%rbp)
jmp 0x298e5
jmp 0x298c7
movq -0x10(%rbp), %rax
movq 0x410(%rax), %rax
movq %rax, -0x10(%rbp)
movl -0x8(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x298a9
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x10, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/rule.c
// Function: make_rule_consequence
rule_consequence_t *make_rule_consequence(void)
{
	rule_consequence_t *rc = calloc(1, sizeof(rule_consequence_t));
	rc->manage = rc->focus = rc->border = true;
	rc->layer = NULL;
	rc->state = NULL;
	rc->rect = NULL;
	rc->honor_size_hints = HONOR_SIZE_HINTS_DEFAULT;
	return rc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl $0x1, %edi
movl $0x638, %esi            # imm = 0x638
callq 0x4890
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movb $0x1, 0x62d(%rax)
movq -0x8(%rbp), %rax
movb $0x1, 0x62c(%rax)
movq -0x8(%rbp), %rax
movb $0x1, 0x62b(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x610(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x618(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x630(%rax)
movq -0x8(%rbp), %rax
movl $0x4, 0x620(%rax)
movq -0x8(%rbp), %rax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/rule.c
// Function: make_pending_rule
pending_rule_t *make_pending_rule(int fd, xcb_window_t win, rule_consequence_t *csq)
{
	pending_rule_t *pr = calloc(1, sizeof(pending_rule_t));
	pr->prev = pr->next = NULL;
	pr->event_head = pr->event_tail = NULL;
	pr->fd = fd;
	pr->win = win;
	pr->csq = csq;
	return pr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movq %rdx, -0x10(%rbp)
movl $0x1, %edi
movl $0x30, %esi
callq 0x4890
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq $0x0, 0x28(%rax)
movq -0x18(%rbp), %rax
movq $0x0, 0x20(%rax)
movq -0x18(%rbp), %rax
movq $0x0, 0x18(%rax)
movq -0x18(%rbp), %rax
movq $0x0, 0x10(%rax)
movl -0x4(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movl -0x8(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/rule.c
// Function: add_pending_rule
void add_pending_rule(pending_rule_t *pr)
{
	if (pr == NULL) {
		return;
	}
	if (pending_rule_head == NULL) {
		pending_rule_head = pending_rule_tail = pr;
	} else {
		pending_rule_tail->next = pr;
		pr->prev = pending_rule_tail;
		pending_rule_tail = pr;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x29a11
jmp 0x29a6a
leaq 0xbcb0(%rip), %rax      # 0x356c8
cmpq $0x0, (%rax)
jne 0x29a38
movq -0x8(%rbp), %rcx
leaq 0xbd27(%rip), %rax      # 0x35750
movq %rcx, (%rax)
leaq 0xbc95(%rip), %rax      # 0x356c8
movq %rcx, (%rax)
jmp 0x29a6a
movq -0x8(%rbp), %rcx
leaq 0xbd0d(%rip), %rax      # 0x35750
movq (%rax), %rax
movq %rcx, 0x28(%rax)
leaq 0xbcff(%rip), %rax      # 0x35750
movq (%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x8(%rbp), %rcx
leaq 0xbce9(%rip), %rax      # 0x35750
movq %rcx, (%rax)
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/rule.c
// Function: remove_pending_rule
void remove_pending_rule(pending_rule_t *pr)
{
	if (pr == NULL) {
		return;
	}
	pending_rule_t *a = pr->prev;
	pending_rule_t *b = pr->next;
	if (a != NULL) {
		a->next = b;
	}
	if (b != NULL) {
		b->prev = a;
	}
	if (pr == pending_rule_head) {
		pending_rule_head = b;
	}
	if (pr == pending_rule_tail) {
		pending_rule_tail = a;
	}
	close(pr->fd);
	free(pr->csq);
	event_queue_t *eq = pr->event_head;
	while (eq != NULL) {
		event_queue_t *next = eq->next;
		free(eq);
		eq = next;
	}
	free(pr);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x29a88
jmp 0x29b55
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x29ab3
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x28(%rax)
cmpq $0x0, -0x18(%rbp)
je 0x29ac6
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x8(%rbp), %rax
leaq 0xbbf7(%rip), %rcx      # 0x356c8
cmpq (%rcx), %rax
jne 0x29ae4
movq -0x18(%rbp), %rcx
leaq 0xbbe7(%rip), %rax      # 0x356c8
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
leaq 0xbc61(%rip), %rcx      # 0x35750
cmpq (%rcx), %rax
jne 0x29b02
movq -0x10(%rbp), %rcx
leaq 0xbc51(%rip), %rax      # 0x35750
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
movl (%rax), %edi
callq 0x4160
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x4450
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x29b4c
movq -0x20(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rdi
callq 0x4450
movq -0x28(%rbp), %rax
movq %rax, -0x20(%rbp)
jmp 0x29b26
movq -0x8(%rbp), %rdi
callq 0x4450
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/rule.c
// Function: postpone_event
void postpone_event(pending_rule_t *pr, xcb_generic_event_t *evt)
{
	event_queue_t *eq = make_event_queue(evt);
	if (pr->event_tail == NULL) {
		pr->event_head = pr->event_tail = eq;
	} else {
		pr->event_tail->next = eq;
		eq->prev = pr->event_tail;
		pr->event_tail = eq;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x29bd0
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x18(%rax)
jne 0x29b9e
movq -0x18(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x8(%rbp), %rax
movq %rcx, 0x10(%rax)
jmp 0x29bca
movq -0x18(%rbp), %rcx
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq %rcx, 0x30(%rax)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x18(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x18(%rax)
addq $0x20, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/rule.c
// Function: make_event_queue
event_queue_t *make_event_queue(xcb_generic_event_t *evt)
{
	event_queue_t *eq = calloc(1, sizeof(event_queue_t));
	eq->prev = eq->next = NULL;
	eq->event = *evt;
	return eq;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl $0x1, %edi
movl $0x38, %esi
callq 0x4890
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq $0x0, 0x30(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x28(%rax)
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rsi
movl $0x24, %edx
callq 0x4a70
movq -0x10(%rbp), %rax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/rule.c
// Function: apply_window_type
void _apply_window_type(xcb_window_t win, rule_consequence_t *csq)
{
	xcb_ewmh_get_atoms_reply_t win_type;
	if (xcb_ewmh_get_wm_window_type_reply(ewmh, xcb_ewmh_get_wm_window_type(ewmh, win), &win_type, NULL) == 1) {
		for (unsigned int i = 0; i < win_type.atoms_len; i++) {
			xcb_atom_t a = win_type.atoms[i];
			if (a == ewmh->_NET_WM_WINDOW_TYPE_TOOLBAR ||
			    a == ewmh->_NET_WM_WINDOW_TYPE_UTILITY) {
				csq->focus = false;
			} else if (a == ewmh->_NET_WM_WINDOW_TYPE_DIALOG) {
				SET_CSQ_STATE(STATE_FLOATING);
				csq->center = true;
			} else if (a == ewmh->_NET_WM_WINDOW_TYPE_DOCK ||
			           a == ewmh->_NET_WM_WINDOW_TYPE_DESKTOP ||
			           a == ewmh->_NET_WM_WINDOW_TYPE_NOTIFICATION) {
				csq->manage = false;
				if (a == ewmh->_NET_WM_WINDOW_TYPE_DESKTOP) {
					window_lower(win);
				}
			}
		}
		xcb_ewmh_get_atoms_reply_wipe(&win_type);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
leaq 0xc1da(%rip), %rax      # 0x35e20
movq (%rax), %rax
movq %rax, -0x40(%rbp)
leaq 0xc1cc(%rip), %rax      # 0x35e20
movq (%rax), %rdi
movl -0x4(%rbp), %esi
callq 0x40e0
movq -0x40(%rbp), %rdi
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %esi
leaq -0x28(%rbp), %rdx
xorl %eax, %eax
movl %eax, %ecx
callq 0x41a0
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x29dc2
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x28(%rbp), %eax
jae 0x29db9
movq -0x20(%rbp), %rax
movl -0x30(%rbp), %ecx
movl (%rax,%rcx,4), %eax
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
leaq 0xc174(%rip), %rcx      # 0x35e20
movq (%rcx), %rcx
cmpl 0xd8(%rcx), %eax
je 0x29ccc
movl -0x34(%rbp), %eax
leaq 0xc15f(%rip), %rcx      # 0x35e20
movq (%rcx), %rcx
cmpl 0xe0(%rcx), %eax
jne 0x29cdc
movq -0x10(%rbp), %rax
movb $0x0, 0x62c(%rax)
jmp 0x29da9
movl -0x34(%rbp), %eax
leaq 0xc13a(%rip), %rcx      # 0x35e20
movq (%rcx), %rcx
cmpl 0xe8(%rcx), %eax
jne 0x29d3c
jmp 0x29cf3
movq -0x10(%rbp), %rax
cmpq $0x0, 0x618(%rax)
jne 0x29d1e
movl $0x1, %edi
movl $0x4, %esi
callq 0x4890
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x618(%rax)
movq -0x10(%rbp), %rax
movq 0x618(%rax), %rax
movl $0x2, (%rax)
movq -0x10(%rbp), %rax
movb $0x1, 0x629(%rax)
jmp 0x29da7
movl -0x34(%rbp), %eax
leaq 0xc0da(%rip), %rcx      # 0x35e20
movq (%rcx), %rcx
cmpl 0xd4(%rcx), %eax
je 0x29d7b
movl -0x34(%rbp), %eax
leaq 0xc0c5(%rip), %rcx      # 0x35e20
movq (%rcx), %rcx
cmpl 0xd0(%rcx), %eax
je 0x29d7b
movl -0x34(%rbp), %eax
leaq 0xc0b0(%rip), %rcx      # 0x35e20
movq (%rcx), %rcx
cmpl 0xf8(%rcx), %eax
jne 0x29da5
movq -0x10(%rbp), %rax
movb $0x0, 0x62b(%rax)
movl -0x34(%rbp), %eax
leaq 0xc090(%rip), %rcx      # 0x35e20
movq (%rcx), %rcx
cmpl 0xd0(%rcx), %eax
jne 0x29da3
movl -0x4(%rbp), %edi
callq 0x18790
jmp 0x29da5
jmp 0x29da7
jmp 0x29da9
jmp 0x29dab
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x29c89
leaq -0x28(%rbp), %rdi
callq 0x4af0
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/rule.c
// Function: apply_window_state
void _apply_window_state(xcb_window_t win, rule_consequence_t *csq)
{
	xcb_ewmh_get_atoms_reply_t win_state;
	if (xcb_ewmh_get_wm_state_reply(ewmh, xcb_ewmh_get_wm_state(ewmh, win), &win_state, NULL) == 1) {
		for (unsigned int i = 0; i < win_state.atoms_len; i++) {
			xcb_atom_t a = win_state.atoms[i];
			if (a == ewmh->_NET_WM_STATE_FULLSCREEN) {
				SET_CSQ_STATE(STATE_FULLSCREEN);
			} else if (a == ewmh->_NET_WM_STATE_BELOW) {
				SET_CSQ_LAYER(LAYER_BELOW);
			} else if (a == ewmh->_NET_WM_STATE_ABOVE) {
				SET_CSQ_LAYER(LAYER_ABOVE);
			} else if (a == ewmh->_NET_WM_STATE_STICKY) {
				csq->sticky = true;
			}
		}
		xcb_ewmh_get_atoms_reply_wipe(&win_state);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
leaq 0xc03a(%rip), %rax      # 0x35e20
movq (%rax), %rax
movq %rax, -0x40(%rbp)
leaq 0xc02c(%rip), %rax      # 0x35e20
movq (%rax), %rdi
movl -0x4(%rbp), %esi
callq 0x43b0
movq -0x40(%rbp), %rdi
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %esi
leaq -0x28(%rbp), %rdx
xorl %eax, %eax
movl %eax, %ecx
callq 0x40c0
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x29f83
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x28(%rbp), %eax
jae 0x29f7a
movq -0x20(%rbp), %rax
movl -0x30(%rbp), %ecx
movl (%rax,%rcx,4), %eax
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
leaq 0xbfd4(%rip), %rcx      # 0x35e20
movq (%rcx), %rcx
cmpl 0x128(%rcx), %eax
jne 0x29e9a
jmp 0x29e59
movq -0x10(%rbp), %rax
cmpq $0x0, 0x618(%rax)
jne 0x29e84
movl $0x1, %edi
movl $0x4, %esi
callq 0x4890
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x618(%rax)
movq -0x10(%rbp), %rax
movq 0x618(%rax), %rax
movl $0x3, (%rax)
jmp 0x29f6a
movl -0x34(%rbp), %eax
leaq 0xbf7c(%rip), %rcx      # 0x35e20
movq (%rcx), %rcx
cmpl 0x130(%rcx), %eax
jne 0x29eef
jmp 0x29eb1
movq -0x10(%rbp), %rax
cmpq $0x0, 0x610(%rax)
jne 0x29edc
movl $0x1, %edi
movl $0x4, %esi
callq 0x4890
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x610(%rax)
movq -0x10(%rbp), %rax
movq 0x610(%rax), %rax
movl $0x0, (%rax)
jmp 0x29f68
movl -0x34(%rbp), %eax
leaq 0xbf27(%rip), %rcx      # 0x35e20
movq (%rcx), %rcx
cmpl 0x12c(%rcx), %eax
jne 0x29f44
jmp 0x29f06
movq -0x10(%rbp), %rax
cmpq $0x0, 0x610(%rax)
jne 0x29f31
movl $0x1, %edi
movl $0x4, %esi
callq 0x4890
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x610(%rax)
movq -0x10(%rbp), %rax
movq 0x610(%rax), %rax
movl $0x2, (%rax)
jmp 0x29f66
movl -0x34(%rbp), %eax
leaq 0xbed2(%rip), %rcx      # 0x35e20
movq (%rcx), %rcx
cmpl 0x10c(%rcx), %eax
jne 0x29f64
movq -0x10(%rbp), %rax
movb $0x1, 0x625(%rax)
jmp 0x29f66
jmp 0x29f68
jmp 0x29f6a
jmp 0x29f6c
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x29e29
leaq -0x28(%rbp), %rdi
callq 0x4af0
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/rule.c
// Function: apply_transient
void _apply_transient(xcb_window_t win, rule_consequence_t *csq)
{
	xcb_window_t transient_for = XCB_NONE;
	xcb_icccm_get_wm_transient_for_reply(dpy, xcb_icccm_get_wm_transient_for(dpy, win), &transient_for, NULL);
	if (transient_for != XCB_NONE) {
		SET_CSQ_STATE(STATE_FLOATING);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
leaq 0xb70b(%rip), %rax      # 0x356b8
movq (%rax), %rax
movq %rax, -0x20(%rbp)
leaq 0xb6fd(%rip), %rax      # 0x356b8
movq (%rax), %rdi
movl -0x4(%rbp), %esi
callq 0x4710
movq -0x20(%rbp), %rdi
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %esi
leaq -0x14(%rbp), %rdx
xorl %eax, %eax
movl %eax, %ecx
callq 0x4610
movl -0x14(%rbp), %eax
cmpq $0x0, %rax
je 0x2a026
jmp 0x29fe8
movq -0x10(%rbp), %rax
cmpq $0x0, 0x618(%rax)
jne 0x2a013
movl $0x1, %edi
movl $0x4, %esi
callq 0x4890
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x618(%rax)
movq -0x10(%rbp), %rax
movq 0x618(%rax), %rax
movl $0x2, (%rax)
jmp 0x2a026
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/rule.c
// Function: apply_hints
void _apply_hints(xcb_window_t win, rule_consequence_t *csq)
{
	xcb_size_hints_t size_hints;
	if (xcb_icccm_get_wm_normal_hints_reply(dpy, xcb_icccm_get_wm_normal_hints(dpy, win), &size_hints, NULL) == 1) {
		if ((size_hints.flags & (XCB_ICCCM_SIZE_HINT_P_MIN_SIZE | XCB_ICCCM_SIZE_HINT_P_MAX_SIZE)) &&
		    size_hints.min_width == size_hints.max_width && size_hints.min_height == size_hints.max_height) {
			SET_CSQ_STATE(STATE_FLOATING);
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
leaq 0xb672(%rip), %rax      # 0x356b8
movq (%rax), %rax
movq %rax, -0x68(%rbp)
leaq 0xb664(%rip), %rax      # 0x356b8
movq (%rax), %rdi
movl -0x4(%rbp), %esi
callq 0x4980
movq -0x68(%rbp), %rdi
movl %eax, -0x5c(%rbp)
movl -0x5c(%rbp), %esi
leaq -0x58(%rbp), %rdx
xorl %eax, %eax
movl %eax, %ecx
callq 0x4b00
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x2a0db
movl -0x58(%rbp), %eax
andl $0x30, %eax
cmpl $0x0, %eax
je 0x2a0d9
movl -0x44(%rbp), %eax
cmpl -0x3c(%rbp), %eax
jne 0x2a0d9
movl -0x40(%rbp), %eax
cmpl -0x38(%rbp), %eax
jne 0x2a0d9
jmp 0x2a09b
movq -0x10(%rbp), %rax
cmpq $0x0, 0x618(%rax)
jne 0x2a0c6
movl $0x1, %edi
movl $0x4, %esi
callq 0x4890
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x618(%rax)
movq -0x10(%rbp), %rax
movq 0x618(%rax), %rax
movl $0x2, (%rax)
jmp 0x2a0d9
jmp 0x2a0db
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/rule.c
// Function: apply_class
void _apply_class(xcb_window_t win, rule_consequence_t *csq)
{
	xcb_icccm_get_wm_class_reply_t reply;
	if (xcb_icccm_get_wm_class_reply(dpy, xcb_icccm_get_wm_class(dpy, win), &reply, NULL) == 1) {
		snprintf(csq->class_name, sizeof(csq->class_name), "%s", reply.class_name);
		snprintf(csq->instance_name, sizeof(csq->instance_name), "%s", reply.instance_name);
		xcb_icccm_get_wm_class_reply_wipe(&reply);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
leaq 0xb5b2(%rip), %rax      # 0x356b8
movq (%rax), %rax
movq %rax, -0x38(%rbp)
leaq 0xb5a4(%rip), %rax      # 0x356b8
movq (%rax), %rdi
movl -0x4(%rbp), %esi
callq 0x4920
movq -0x38(%rbp), %rdi
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %esi
leaq -0x28(%rbp), %rdx
xorl %eax, %eax
movl %eax, %ecx
callq 0x49f0
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x2a184
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rcx
movl $0x100, %esi            # imm = 0x100
leaq 0x2f9e(%rip), %rdx      # 0x2d0f0
movb $0x0, %al
callq 0x4120
movq -0x10(%rbp), %rdi
addq $0x100, %rdi            # imm = 0x100
movq -0x28(%rbp), %rcx
movl $0x100, %esi            # imm = 0x100
leaq 0x2f7c(%rip), %rdx      # 0x2d0f0
movb $0x0, %al
callq 0x4120
leaq -0x28(%rbp), %rdi
callq 0x4470
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/rule.c
// Function: parse_keys_values
void parse_keys_values(char *buf, rule_consequence_t *csq)
{
	char *key = strtok(buf, CSQ_BLK);
	char *value = strtok(NULL, CSQ_BLK);
	while (key != NULL && value != NULL) {
		parse_key_value(key, value, csq);
		key = strtok(NULL, CSQ_BLK);
		value = strtok(NULL, CSQ_BLK);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
leaq 0x54e3(%rip), %rsi      # 0x2f70e
callq 0x4830
movq %rax, -0x18(%rbp)
xorl %eax, %eax
movl %eax, %edi
leaq 0x54cf(%rip), %rsi      # 0x2f70e
callq 0x4830
movq %rax, -0x20(%rbp)
xorl %eax, %eax
cmpq $0x0, -0x18(%rbp)
movb %al, -0x21(%rbp)
je 0x2a25f
cmpq $0x0, -0x20(%rbp)
setne %al
movb %al, -0x21(%rbp)
movb -0x21(%rbp), %al
testb $0x1, %al
jne 0x2a268
jmp 0x2a2a3
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x10(%rbp), %rdx
callq 0x2a2b0
xorl %eax, %eax
movl %eax, %edi
leaq 0x548a(%rip), %rsi      # 0x2f70e
callq 0x4830
movq %rax, -0x18(%rbp)
xorl %eax, %eax
movl %eax, %edi
leaq 0x5476(%rip), %rsi      # 0x2f70e
callq 0x4830
movq %rax, -0x20(%rbp)
jmp 0x2a248
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/rule.c
// Function: apply_rules
void apply_rules(xcb_window_t win, rule_consequence_t *csq)
{
	_apply_window_type(win, csq);
	_apply_window_state(win, csq);
	_apply_transient(win, csq);
	_apply_hints(win, csq);
	_apply_class(win, csq);
	_apply_name(win, csq);

	rule_t *rule = rule_head;
	while (rule != NULL) {
		rule_t *next = rule->next;
		if ((streq(rule->class_name, MATCH_ANY) || streq(rule->class_name, csq->class_name)) &&
		    (streq(rule->instance_name, MATCH_ANY) || streq(rule->instance_name, csq->instance_name)) &&
		    (streq(rule->name, MATCH_ANY) || streq(rule->name, csq->name))) {
			char effect[MAXLEN];
			snprintf(effect, sizeof(effect), "%s", rule->effect);
			parse_keys_values(effect, csq);
			if (rule->one_shot) {
				remove_rule(rule);
				break;
			}
		}
		rule = next;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x29c30
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x29dd0
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x29f90
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x2a030
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x2a0f0
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x2a190
leaq 0xaf07(%rip), %rax      # 0x35728
movq (%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x2a945
movq -0x18(%rbp), %rax
movq 0x410(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
leaq 0x3cb6(%rip), %rsi      # 0x2e503
callq 0x4800
cmpl $0x0, %eax
je 0x2a86d
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x4800
cmpl $0x0, %eax
jne 0x2a938
movq -0x18(%rbp), %rdi
addq $0x100, %rdi            # imm = 0x100
leaq 0x3c84(%rip), %rsi      # 0x2e503
callq 0x4800
cmpl $0x0, %eax
je 0x2a8ad
movq -0x18(%rbp), %rdi
addq $0x100, %rdi            # imm = 0x100
movq -0x10(%rbp), %rsi
addq $0x100, %rsi            # imm = 0x100
callq 0x4800
cmpl $0x0, %eax
jne 0x2a938
movq -0x18(%rbp), %rdi
addq $0x200, %rdi            # imm = 0x200
leaq 0x3c44(%rip), %rsi      # 0x2e503
callq 0x4800
cmpl $0x0, %eax
je 0x2a8e9
movq -0x18(%rbp), %rdi
addq $0x200, %rdi            # imm = 0x200
movq -0x10(%rbp), %rsi
addq $0x200, %rsi            # imm = 0x200
callq 0x4800
cmpl $0x0, %eax
jne 0x2a938
leaq -0x120(%rbp), %rdi
movq -0x18(%rbp), %rcx
addq $0x300, %rcx            # imm = 0x300
movl $0x100, %esi            # imm = 0x100
leaq 0x27e9(%rip), %rdx      # 0x2d0f0
movb $0x0, %al
callq 0x4120
leaq -0x120(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x2a210
movq -0x18(%rbp), %rax
testb $0x1, 0x400(%rax)
je 0x2a936
movq -0x18(%rbp), %rdi
callq 0x29650
jmp 0x2a945
jmp 0x2a938
movq -0x20(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0x2a828
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/rule.c
// Function: schedule_rules
bool schedule_rules(xcb_window_t win, rule_consequence_t *csq)
{
	if (external_rules_command[0] == '\0') {
		return false;
	}
	resolve_rule_consequence(csq);
	int fds[2];
	if (pipe(fds) == -1) {
		return false;
	}
	pid_t pid = fork();
	if (pid == 0) {
		if (dpy != NULL) {
			close(xcb_get_file_descriptor(dpy));
		}
		dup2(fds[1], 1);
		close(fds[0]);
		char wid[SMALEN];
		char *csq_buf;
		print_rule_consequence(&csq_buf, csq);
		snprintf(wid, sizeof(wid), "%i", win);
		setsid();
		execl(external_rules_command, external_rules_command, wid, csq->class_name, csq->instance_name, csq_buf, NULL);
		free(csq_buf);
		err("Couldn't spawn rule command.\n");
	} else if (pid > 0) {
		close(fds[1]);
		pending_rule_t *pr = make_pending_rule(fds[0], win, csq);
		add_pending_rule(pr);
	}
	return (pid != -1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq 0xae2a(%rip), %rax      # 0x35790
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x2a977
movb $0x0, -0x1(%rbp)
jmp 0x2aa90
movq -0x10(%rbp), %rdi
callq 0x24a70
leaq -0x18(%rbp), %rdi
callq 0x4590
cmpl $-0x1, %eax
jne 0x2a997
movb $0x0, -0x1(%rbp)
jmp 0x2aa90
callq 0x4990
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
jne 0x2aa58
leaq 0xad08(%rip), %rax      # 0x356b8
cmpq $0x0, (%rax)
je 0x2a9cc
leaq 0xacfb(%rip), %rax      # 0x356b8
movq (%rax), %rdi
callq 0x4390
movl %eax, %edi
callq 0x4160
movl -0x14(%rbp), %edi
movl $0x1, %esi
callq 0x4080
movl -0x18(%rbp), %edi
callq 0x4160
movq -0x10(%rbp), %rsi
leaq -0x48(%rbp), %rdi
callq 0x25fd0
leaq -0x40(%rbp), %rdi
movl -0x8(%rbp), %ecx
movl $0x20, %esi
leaq 0x48d8(%rip), %rdx      # 0x2f2d9
movb $0x0, %al
callq 0x4120
callq 0x4130
leaq -0x40(%rbp), %rdx
movq -0x10(%rbp), %rcx
movq -0x10(%rbp), %r8
addq $0x100, %r8             # imm = 0x100
movq -0x48(%rbp), %r9
leaq 0xad65(%rip), %rsi      # 0x35790
xorl %eax, %eax
movq %rsi, %rdi
movq $0x0, (%rsp)
movb $0x0, %al
callq 0x4240
movq -0x48(%rbp), %rdi
callq 0x4450
leaq 0x4cc4(%rip), %rdi      # 0x2f713
movb $0x0, %al
callq 0x64b0
jmp 0x2aa84
cmpl $0x0, -0x1c(%rbp)
jle 0x2aa82
movl -0x14(%rbp), %edi
callq 0x4160
movl -0x18(%rbp), %edi
movl -0x8(%rbp), %esi
movq -0x10(%rbp), %rdx
callq 0x29980
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rdi
callq 0x29a00
jmp 0x2aa84
cmpl $-0x1, -0x1c(%rbp)
setne %al
andb $0x1, %al
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/rule.c
// Function: parse_rule_consequence
void parse_rule_consequence(int fd, rule_consequence_t *csq)
{
	if (fd == -1) {
		return;
	}
	char data[BUFSIZ];
	int nb;
	while ((nb = read(fd, data, sizeof(data))) > 0) {
		int end = MIN(nb, (int) sizeof(data) - 1);
		data[end] = '\0';
		parse_keys_values(data, csq);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2020, %rsp           # imm = 0x2020
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
cmpl $-0x1, -0x4(%rbp)
jne 0x2aaba
jmp 0x2ab2f
jmp 0x2aabc
movl -0x4(%rbp), %edi
leaq -0x2010(%rbp), %rsi
movl $0x2000, %edx           # imm = 0x2000
callq 0x4280
movl %eax, -0x2014(%rbp)
cmpl $0x0, %eax
jle 0x2ab2f
cmpl $0x1fff, -0x2014(%rbp)  # imm = 0x1FFF
jge 0x2aaf5
movl -0x2014(%rbp), %eax
movl %eax, -0x201c(%rbp)
jmp 0x2ab02
movl $0x1fff, %eax           # imm = 0x1FFF
movl %eax, -0x201c(%rbp)
jmp 0x2ab02
movl -0x201c(%rbp), %eax
movl %eax, -0x2018(%rbp)
movslq -0x2018(%rbp), %rax
movb $0x0, -0x2010(%rbp,%rax)
leaq -0x2010(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x2a210
jmp 0x2aabc
addq $0x2020, %rsp           # imm = 0x2020
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/ewmh.c
// Function: ewmh_update_number_of_desktops
void ewmh_update_number_of_desktops(void)
{
	uint32_t desktops_count = 0;

	for (monitor_t *m = mon_head; m != NULL; m = m->next) {
		for (desktop_t *d = m->desk_head; d != NULL; d = d->next) {
			desktops_count++;
		}
	}

	xcb_ewmh_set_number_of_desktops(ewmh, default_screen, desktops_count);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl $0x0, -0x4(%rbp)
leaq 0xaa22(%rip), %rax      # 0x356f8
movq (%rax), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x2ad1e
movq -0x10(%rbp), %rax
movq 0x60(%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x2ad0e
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
movq -0x18(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x2acf0
jmp 0x2ad10
movq -0x10(%rbp), %rax
movq 0x78(%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0x2acdd
movq 0xb0fb(%rip), %rdi      # 0x35e20
leaq 0xa984(%rip), %rax      # 0x356b0
movl (%rax), %esi
movl -0x4(%rbp), %edx
callq 0x40d0
movl %eax, -0x1c(%rbp)
addq $0x20, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/ewmh.c
// Function: ewmh_get_desktop_index
uint32_t ewmh_get_desktop_index(desktop_t *d)
{
	uint32_t i = 0;
	for (monitor_t *m = mon_head; m != NULL; m = m->next) {
		for (desktop_t *cd = m->desk_head; cd != NULL; cd = cd->next, i++) {
			if (d == cd) {
				return i;
			}
		}
	}
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
leaq 0xa9a2(%rip), %rax      # 0x356f8
movq (%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x2adb2
movq -0x20(%rbp), %rax
movq 0x60(%rax), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x2ada2
movq -0x10(%rbp), %rax
cmpq -0x28(%rbp), %rax
jne 0x2ad89
movl -0x14(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x2adb9
jmp 0x2ad8b
movq -0x28(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x28(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x2ad70
jmp 0x2ada4
movq -0x20(%rbp), %rax
movq 0x78(%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0x2ad5d
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/ewmh.c
// Function: ewmh_locate_desktop
bool ewmh_locate_desktop(uint32_t i, coordinates_t *loc)
{
	for (monitor_t *m = mon_head; m != NULL; m = m->next) {
		for (desktop_t *d = m->desk_head; d != NULL; d = d->next, i--) {
			if (i == 0) {
				loc->monitor = m;
				loc->desktop = d;
				loc->node = NULL;
				return true;
			}
		}
	}
	return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq 0xa926(%rip), %rax      # 0x356f8
movq (%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x2ae4b
movq -0x18(%rbp), %rax
movq 0x60(%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x2ae3b
cmpl $0x0, -0x8(%rbp)
jne 0x2ae22
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x10(%rax)
movb $0x1, -0x1(%rbp)
jmp 0x2ae4f
jmp 0x2ae24
movq -0x20(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x20(%rbp)
movl -0x8(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x2adec
jmp 0x2ae3d
movq -0x18(%rbp), %rax
movq 0x78(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x2add9
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/ewmh.c
// Function: ewmh_update_current_desktop
void ewmh_update_current_desktop(void)
{
	if (mon == NULL) {
		return;
	}
	uint32_t i = ewmh_get_desktop_index(mon->desk);
	xcb_ewmh_set_current_desktop(ewmh, default_screen, i);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
leaq 0xa891(%rip), %rax      # 0x35700
cmpq $0x0, (%rax)
jne 0x2ae77
jmp 0x2aea8
leaq 0xa882(%rip), %rax      # 0x35700
movq (%rax), %rax
movq 0x58(%rax), %rdi
callq 0x2ad40
movl %eax, -0x4(%rbp)
movq 0xaf8c(%rip), %rdi      # 0x35e20
leaq 0xa815(%rip), %rax      # 0x356b0
movl (%rax), %esi
movl -0x4(%rbp), %edx
callq 0x48d0
movl %eax, -0x8(%rbp)
addq $0x10, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/ewmh.c
// Function: ewmh_set_wm_desktop
void ewmh_set_wm_desktop(node_t *n, desktop_t *d)
{
	uint32_t i = ewmh_get_desktop_index(d);
	for (node_t *f = first_extrema(n); f != NULL; f = next_leaf(f, n)) {
		if (f->client == NULL) {
			continue;
		}
		xcb_ewmh_set_wm_desktop(ewmh, f->id, i);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x2ad40
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rdi
callq 0xbe70
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x2af18
movq -0x20(%rbp), %rax
cmpq $0x0, 0x48(%rax)
jne 0x2aeed
jmp 0x2af05
movq 0xaf2c(%rip), %rdi      # 0x35e20
movq -0x20(%rbp), %rax
movl (%rax), %esi
movl -0x14(%rbp), %edx
callq 0x46d0
movl %eax, -0x24(%rbp)
movq -0x20(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0xbf80
movq %rax, -0x20(%rbp)
jmp 0x2aed9
addq $0x30, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/ewmh.c
// Function: ewmh_update_wm_desktops
void ewmh_update_wm_desktops(void)
{
	for (monitor_t *m = mon_head; m != NULL; m = m->next) {
		for (desktop_t *d = m->desk_head; d != NULL; d = d->next) {
			uint32_t i = ewmh_get_desktop_index(d);
			for (node_t *n = first_extrema(d->root); n != NULL; n = next_leaf(n, d->root)) {
				if (n->client == NULL) {
					continue;
				}
				xcb_ewmh_set_wm_desktop(ewmh, n->id, i);
			}
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
leaq 0xa7c9(%rip), %rax      # 0x356f8
movq (%rax), %rax
movq %rax, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x2afd7
movq -0x8(%rbp), %rax
movq 0x60(%rax), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x2afc4
movq -0x10(%rbp), %rdi
callq 0x2ad40
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0xbe70
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x2afb4
movq -0x20(%rbp), %rax
cmpq $0x0, 0x48(%rax)
jne 0x2af85
jmp 0x2af9d
movq 0xae94(%rip), %rdi      # 0x35e20
movq -0x20(%rbp), %rax
movl (%rax), %esi
movl -0x14(%rbp), %edx
callq 0x46d0
movl %eax, -0x24(%rbp)
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rsi
callq 0xbf80
movq %rax, -0x20(%rbp)
jmp 0x2af71
jmp 0x2afb6
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0x2af4d
jmp 0x2afc6
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0x2af36
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)