// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/ewmh.c
// Function: ewmh_wm_state_update
void ewmh_wm_state_update(node_t *n)
{
	client_t *c = n->client;
	size_t count = 0;
	uint32_t values[12];
#define HANDLE_WM_STATE(s)  \
	if (WM_FLAG_##s & c->wm_flags) { \
		values[count++] = ewmh->_NET_WM_STATE_##s; \
	}
	HANDLE_WM_STATE(MODAL)
	HANDLE_WM_STATE(STICKY)
	HANDLE_WM_STATE(MAXIMIZED_VERT)
	HANDLE_WM_STATE(MAXIMIZED_HORZ)
	HANDLE_WM_STATE(SHADED)
	HANDLE_WM_STATE(SKIP_TASKBAR)
	HANDLE_WM_STATE(SKIP_PAGER)
	HANDLE_WM_STATE(HIDDEN)
	HANDLE_WM_STATE(FULLSCREEN)
	HANDLE_WM_STATE(ABOVE)
	HANDLE_WM_STATE(BELOW)
	HANDLE_WM_STATE(DEMANDS_ATTENTION)
#undef HANDLE_WM_STATE
	xcb_ewmh_set_wm_state(ewmh, n->id, count, values);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x10(%rbp)
movq $0x0, -0x18(%rbp)
movq -0x10(%rbp), %rax
movl 0x378(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x2b862
movq 0xa5d7(%rip), %rax      # 0x35e20
movl 0x108(%rax), %ecx
movq -0x18(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x18(%rbp)
movl %ecx, -0x50(%rbp,%rax,4)
movq -0x10(%rbp), %rax
movl 0x378(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x2b894
movq 0xa5a5(%rip), %rax      # 0x35e20
movl 0x10c(%rax), %ecx
movq -0x18(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x18(%rbp)
movl %ecx, -0x50(%rbp,%rax,4)
movq -0x10(%rbp), %rax
movl 0x378(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x2b8c6
movq 0xa573(%rip), %rax      # 0x35e20
movl 0x110(%rax), %ecx
movq -0x18(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x18(%rbp)
movl %ecx, -0x50(%rbp,%rax,4)
movq -0x10(%rbp), %rax
movl 0x378(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x2b8f8
movq 0xa541(%rip), %rax      # 0x35e20
movl 0x114(%rax), %ecx
movq -0x18(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x18(%rbp)
movl %ecx, -0x50(%rbp,%rax,4)
movq -0x10(%rbp), %rax
movl 0x378(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x2b92a
movq 0xa50f(%rip), %rax      # 0x35e20
movl 0x118(%rax), %ecx
movq -0x18(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x18(%rbp)
movl %ecx, -0x50(%rbp,%rax,4)
movq -0x10(%rbp), %rax
movl 0x378(%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x2b95c
movq 0xa4dd(%rip), %rax      # 0x35e20
movl 0x11c(%rax), %ecx
movq -0x18(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x18(%rbp)
movl %ecx, -0x50(%rbp,%rax,4)
movq -0x10(%rbp), %rax
movl 0x378(%rax), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x2b98e
movq 0xa4ab(%rip), %rax      # 0x35e20
movl 0x120(%rax), %ecx
movq -0x18(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x18(%rbp)
movl %ecx, -0x50(%rbp,%rax,4)
movq -0x10(%rbp), %rax
movl 0x378(%rax), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x2b9c2
movq 0xa477(%rip), %rax      # 0x35e20
movl 0x124(%rax), %ecx
movq -0x18(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x18(%rbp)
movl %ecx, -0x50(%rbp,%rax,4)
movq -0x10(%rbp), %rax
movl 0x378(%rax), %eax
andl $0x100, %eax            # imm = 0x100
cmpl $0x0, %eax
je 0x2b9f6
movq 0xa443(%rip), %rax      # 0x35e20
movl 0x128(%rax), %ecx
movq -0x18(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x18(%rbp)
movl %ecx, -0x50(%rbp,%rax,4)
movq -0x10(%rbp), %rax
movl 0x378(%rax), %eax
andl $0x200, %eax            # imm = 0x200
cmpl $0x0, %eax
je 0x2ba2a
movq 0xa40f(%rip), %rax      # 0x35e20
movl 0x12c(%rax), %ecx
movq -0x18(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x18(%rbp)
movl %ecx, -0x50(%rbp,%rax,4)
movq -0x10(%rbp), %rax
movl 0x378(%rax), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
je 0x2ba5e
movq 0xa3db(%rip), %rax      # 0x35e20
movl 0x130(%rax), %ecx
movq -0x18(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x18(%rbp)
movl %ecx, -0x50(%rbp,%rax,4)
movq -0x10(%rbp), %rax
movl 0x378(%rax), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
je 0x2ba92
movq 0xa3a7(%rip), %rax      # 0x35e20
movl 0x134(%rax), %ecx
movq -0x18(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x18(%rbp)
movl %ecx, -0x50(%rbp,%rax,4)
movq 0xa387(%rip), %rdi      # 0x35e20
movq -0x8(%rbp), %rax
movl (%rax), %esi
movq -0x18(%rbp), %rax
movl %eax, %edx
leaq -0x50(%rbp), %rcx
callq 0x4880
movl %eax, -0x54(%rbp)
addq $0x60, %rsp
popq %rbp
retq
nopw (%rax,%rax)