// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/pointer.c
// Function: window_grab_button
void window_grab_button(xcb_window_t win, uint8_t button, uint16_t modifier)
{
#define GRAB(b, m) \
	xcb_grab_button(dpy, false, win, XCB_EVENT_MASK_BUTTON_PRESS, \
	                XCB_GRAB_MODE_SYNC, XCB_GRAB_MODE_ASYNC, XCB_NONE, XCB_NONE, b, m)
		GRAB(button, modifier);
		if (num_lock != XCB_NO_SYMBOL && caps_lock != XCB_NO_SYMBOL && scroll_lock != XCB_NO_SYMBOL) {
			GRAB(button, modifier | num_lock | caps_lock | scroll_lock);
		}
		if (num_lock != XCB_NO_SYMBOL && caps_lock != XCB_NO_SYMBOL) {
			GRAB(button, modifier | num_lock | caps_lock);
		}
		if (caps_lock != XCB_NO_SYMBOL && scroll_lock != XCB_NO_SYMBOL) {
			GRAB(button, modifier | caps_lock | scroll_lock);
		}
		if (num_lock != XCB_NO_SYMBOL && scroll_lock != XCB_NO_SYMBOL) {
			GRAB(button, modifier | num_lock | scroll_lock);
		}
		if (num_lock != XCB_NO_SYMBOL) {
			GRAB(button, modifier | num_lock);
		}
		if (caps_lock != XCB_NO_SYMBOL) {
			GRAB(button, modifier | caps_lock);
		}
		if (scroll_lock != XCB_NO_SYMBOL) {
			GRAB(button, modifier | scroll_lock);
		}
#undef GRAB
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movw %dx, %ax
movb %sil, %cl
movl %edi, -0x4(%rbp)
movb %cl, -0x5(%rbp)
movw %ax, -0x8(%rbp)
leaq 0x208f9(%rip), %rax     # 0x356b8
movq (%rax), %rdi
movl -0x4(%rbp), %edx
movb -0x5(%rbp), %al
xorl %r8d, %r8d
movl $0x4, %ecx
movl $0x1, %r9d
movl %r8d, %esi
movl $0x0, (%rsp)
movl $0x0, 0x8(%rsp)
movzbl %al, %eax
movl %eax, 0x10(%rsp)
movzwl -0x8(%rbp), %eax
movl %eax, 0x18(%rsp)
callq 0x4520
movl %eax, -0xc(%rbp)
movzwl 0x2100a(%rip), %eax     # 0x35e10
cmpq $0x0, %rax
je 0x14e92
movzwl 0x20ffb(%rip), %eax     # 0x35e12
cmpq $0x0, %rax
je 0x14e92
movzwl 0x20ff0(%rip), %eax     # 0x35e14
cmpq $0x0, %rax
je 0x14e92
leaq 0x20887(%rip), %rax     # 0x356b8
movq (%rax), %rdi
movl -0x4(%rbp), %edx
movb -0x5(%rbp), %r10b
movzwl -0x8(%rbp), %eax
movzwl 0x20fca(%rip), %ecx     # 0x35e10
orl %ecx, %eax
movzwl 0x20fc3(%rip), %ecx     # 0x35e12
orl %ecx, %eax
movzwl 0x20fbc(%rip), %ecx     # 0x35e14
orl %ecx, %eax
xorl %r8d, %r8d
movl $0x4, %ecx
movl $0x1, %r9d
movl %r8d, %esi
movl $0x0, (%rsp)
movl $0x0, 0x8(%rsp)
movzbl %r10b, %r10d
movl %r10d, 0x10(%rsp)
movzwl %ax, %eax
movl %eax, 0x18(%rsp)
callq 0x4520
movl %eax, -0x10(%rbp)
movzwl 0x20f77(%rip), %eax     # 0x35e10
cmpq $0x0, %rax
je 0x14f0b
movzwl 0x20f6c(%rip), %eax     # 0x35e12
cmpq $0x0, %rax
je 0x14f0b
leaq 0x20805(%rip), %rax     # 0x356b8
movq (%rax), %rdi
movl -0x4(%rbp), %edx
movb -0x5(%rbp), %r10b
movzwl -0x8(%rbp), %eax
movzwl 0x20f48(%rip), %ecx     # 0x35e10
orl %ecx, %eax
movzwl 0x20f41(%rip), %ecx     # 0x35e12
orl %ecx, %eax
xorl %r8d, %r8d
movl $0x4, %ecx
movl $0x1, %r9d
movl %r8d, %esi
movl $0x0, (%rsp)
movl $0x0, 0x8(%rsp)
movzbl %r10b, %r10d
movl %r10d, 0x10(%rsp)
movzwl %ax, %eax
movl %eax, 0x18(%rsp)
callq 0x4520
movl %eax, -0x14(%rbp)
movzwl 0x20f00(%rip), %eax     # 0x35e12
cmpq $0x0, %rax
je 0x14f84
movzwl 0x20ef5(%rip), %eax     # 0x35e14
cmpq $0x0, %rax
je 0x14f84
leaq 0x2078c(%rip), %rax     # 0x356b8
movq (%rax), %rdi
movl -0x4(%rbp), %edx
movb -0x5(%rbp), %r10b
movzwl -0x8(%rbp), %eax
movzwl 0x20ed1(%rip), %ecx     # 0x35e12
orl %ecx, %eax
movzwl 0x20eca(%rip), %ecx     # 0x35e14
orl %ecx, %eax
xorl %r8d, %r8d
movl $0x4, %ecx
movl $0x1, %r9d
movl %r8d, %esi
movl $0x0, (%rsp)
movl $0x0, 0x8(%rsp)
movzbl %r10b, %r10d
movl %r10d, 0x10(%rsp)
movzwl %ax, %eax
movl %eax, 0x18(%rsp)
callq 0x4520
movl %eax, -0x18(%rbp)
movzwl 0x20e85(%rip), %eax     # 0x35e10
cmpq $0x0, %rax
je 0x14ffd
movzwl 0x20e7c(%rip), %eax     # 0x35e14
cmpq $0x0, %rax
je 0x14ffd
leaq 0x20713(%rip), %rax     # 0x356b8
movq (%rax), %rdi
movl -0x4(%rbp), %edx
movb -0x5(%rbp), %r10b
movzwl -0x8(%rbp), %eax
movzwl 0x20e56(%rip), %ecx     # 0x35e10
orl %ecx, %eax
movzwl 0x20e51(%rip), %ecx     # 0x35e14
orl %ecx, %eax
xorl %r8d, %r8d
movl $0x4, %ecx
movl $0x1, %r9d
movl %r8d, %esi
movl $0x0, (%rsp)
movl $0x0, 0x8(%rsp)
movzbl %r10b, %r10d
movl %r10d, 0x10(%rsp)
movzwl %ax, %eax
movl %eax, 0x18(%rsp)
callq 0x4520
movl %eax, -0x1c(%rbp)
movzwl 0x20e0c(%rip), %eax     # 0x35e10
cmpq $0x0, %rax
je 0x15060
leaq 0x206a7(%rip), %rax     # 0x356b8
movq (%rax), %rdi
movl -0x4(%rbp), %edx
movb -0x5(%rbp), %r10b
movzwl -0x8(%rbp), %eax
movzwl 0x20dea(%rip), %ecx     # 0x35e10
orl %ecx, %eax
xorl %r8d, %r8d
movl $0x4, %ecx
movl $0x1, %r9d
movl %r8d, %esi
movl $0x0, (%rsp)
movl $0x0, 0x8(%rsp)
movzbl %r10b, %r10d
movl %r10d, 0x10(%rsp)
movzwl %ax, %eax
movl %eax, 0x18(%rsp)
callq 0x4520
movl %eax, -0x20(%rbp)
movzwl 0x20dab(%rip), %eax     # 0x35e12
cmpq $0x0, %rax
je 0x150c3
leaq 0x20644(%rip), %rax     # 0x356b8
movq (%rax), %rdi
movl -0x4(%rbp), %edx
movb -0x5(%rbp), %r10b
movzwl -0x8(%rbp), %eax
movzwl 0x20d89(%rip), %ecx     # 0x35e12
orl %ecx, %eax
xorl %r8d, %r8d
movl $0x4, %ecx
movl $0x1, %r9d
movl %r8d, %esi
movl $0x0, (%rsp)
movl $0x0, 0x8(%rsp)
movzbl %r10b, %r10d
movl %r10d, 0x10(%rsp)
movzwl %ax, %eax
movl %eax, 0x18(%rsp)
callq 0x4520
movl %eax, -0x24(%rbp)
movzwl 0x20d4a(%rip), %eax     # 0x35e14
cmpq $0x0, %rax
je 0x15126
leaq 0x205e1(%rip), %rax     # 0x356b8
movq (%rax), %rdi
movl -0x4(%rbp), %edx
movb -0x5(%rbp), %r10b
movzwl -0x8(%rbp), %eax
movzwl 0x20d28(%rip), %ecx     # 0x35e14
orl %ecx, %eax
xorl %r8d, %r8d
movl $0x4, %ecx
movl $0x1, %r9d
movl %r8d, %esi
movl $0x0, (%rsp)
movl $0x0, 0x8(%rsp)
movzbl %r10b, %r10d
movl %r10d, 0x10(%rsp)
movzwl %ax, %eax
movl %eax, 0x18(%rsp)
callq 0x4520
movl %eax, -0x28(%rbp)
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)