LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/client.c
// Function: client_setactive
void
client_setactive(struct client_ctx *cc, int fg)
{
	struct screen_ctx	*sc;

	if (cc == NULL)
		cc = _curcc;
	if (cc == NULL)
		return;

	sc = cc->sc;

	if (fg) {
		XInstallColormap(X_Dpy, cc->cmap);
		XSetInputFocus(X_Dpy, cc->win,
		    RevertToPointerRoot, CurrentTime);
		conf_grab_mouse(cc);
		/*
		 * If we're in the middle of alt-tabbing, don't change
		 * the order please.
		 */
		if (!sc->cycling)
			client_mtf(cc);
	} else
		client_leave(cc);

	if (fg && _curcc != cc) {
		client_setactive(NULL, 0);
		_curcc = cc;
		xu_ewmh_net_active_window(sc, cc->win);
	}

	cc->active = fg;
	client_draw_border(cc);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
testq %rdi, %rdi
jne 0x6c25
movq 0xfc5b(%rip), %r14      # 0x16880
testq %r14, %r14
je 0x6c9b
movq 0x30(%r14), %r15
testl %ebx, %ebx
je 0x6ca7
leaq 0xfc0f(%rip), %r12      # 0x16848
movq (%r12), %rdi
movq 0x48(%r14), %rsi
callq 0x5640
movq (%r12), %rdi
movq 0x38(%r14), %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x5570
movq %r14, %rdi
callq 0x9b01
cmpl $0x0, 0xa0(%r15)
jne 0x6c74
movq %r14, %rdi
callq 0x6cd4
cmpq %r14, 0xfc05(%rip)      # 0x16880
je 0x6cba
xorl %edi, %edi
xorl %esi, %esi
callq 0x6c0c
movq %r14, 0xfbf3(%rip)      # 0x16880
movq 0x38(%r14), %rsi
movq %r15, %rdi
callq 0x8fc9
jmp 0x6cba
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x18(%r15), %rdi
movl $0x8000, %esi           # imm = 0x8000
movl $0x1, %edx
callq 0x8804
movl %ebx, 0xb0(%r14)
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x6936
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/client.c
// Function: client_mtf
void
client_mtf(struct client_ctx *cc)
{
	struct screen_ctx	*sc;

	if (cc == NULL)
		cc = _curcc;
	if (cc == NULL)
		return;

	sc = cc->sc;

	/* Move to front. */
	TAILQ_REMOVE(&sc->mruq, cc, mru_entry);
	TAILQ_INSERT_HEAD(&sc->mruq, cc, mru_entry);
}

// Assembly:
testq %rdi, %rdi
jne 0x6ce0
movq 0xfba0(%rip), %rdi      # 0x16880
testq %rdi, %rdi
je 0x6d38
movq 0x30(%rdi), %rax
leaq 0x20(%rdi), %rcx
movq 0x20(%rdi), %rdx
movq 0x28(%rdi), %rsi
leaq 0xe0(%rax), %r8
leaq 0x28(%rdx), %r9
testq %rdx, %rdx
cmoveq %r8, %r9
movq %rsi, (%r9)
movq %rdx, (%rsi)
leaq 0xd8(%rax), %rdx
movq 0xd8(%rax), %rsi
leaq 0x28(%rsi), %r9
testq %rsi, %rsi
cmoveq %r8, %r9
movq %rsi, 0x20(%rdi)
movq %rcx, (%r9)
movq %rdi, 0xd8(%rax)
movq %rdx, 0x28(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/client.c
// Function: client_maximize
void
client_maximize(struct client_ctx *cc)
{
	struct screen_ctx	*sc = cc->sc;
	int			 x_org, y_org, xmax, ymax;
	XineramaScreenInfo	*xine;

	if (cc->flags & CLIENT_FREEZE)
		return;

	if ((cc->flags & CLIENT_MAXFLAGS) == CLIENT_MAXIMIZED) {
		cc->flags &= ~CLIENT_MAXIMIZED;
		cc->geom = cc->savegeom;
		cc->bwidth = Conf.bwidth;
		goto resize;
	}

	if ((cc->flags & CLIENT_VMAXIMIZED) == 0) {
		cc->savegeom.h = cc->geom.h;
		cc->savegeom.y = cc->geom.y;
	}

	if ((cc->flags & CLIENT_HMAXIMIZED) == 0) {
		cc->savegeom.w = cc->geom.w;
		cc->savegeom.x = cc->geom.x;
	}

	/*
	 * pick screen that the middle of the window is on.
	 * that's probably more fair than if just the origin of
	 * a window is poking over a boundary
	 */
	xine = screen_find_xinerama(sc,
	    cc->geom.x + cc->geom.w / 2,
	    cc->geom.y + cc->geom.h / 2);
	if (xine) {
		x_org = xine->x_org;
		y_org = xine->y_org;
		xmax = xine->width;
		ymax = xine->height;
	} else {
		x_org = y_org = 0;
		xmax = sc->view.w;
		ymax = sc->view.h;
	}

	cc->geom.x = x_org + sc->gap.left;
	cc->geom.y = y_org + sc->gap.top;
	cc->geom.h = ymax - (sc->gap.top + sc->gap.bottom);
	cc->geom.w = xmax - (sc->gap.left + sc->gap.right);
	cc->bwidth = 0;
	cc->flags |= CLIENT_MAXIMIZED;

resize:
	client_resize(cc, 0);
}

// Assembly:
movl 0xa8(%rdi), %eax
testb $0x10, %al
jne 0x6d86
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl %eax, %ecx
notl %ecx
testb $0xc, %cl
jne 0x6d87
andl $-0x1d, %eax
movl %eax, 0xa8(%rbx)
movups 0x64(%rbx), %xmm0
movups %xmm0, 0x54(%rbx)
leaq 0xd9e5(%rip), %rax      # 0x14760
movl 0x54(%rax), %eax
movl %eax, 0x50(%rbx)
jmp 0x6e3c
retq
testb $0x4, %al
jne 0x6d97
movl 0x58(%rbx), %ecx
movl 0x60(%rbx), %edx
movl %edx, 0x70(%rbx)
movl %ecx, 0x68(%rbx)
movq 0x30(%rbx), %r14
testb $0x8, %al
jne 0x6dad
movl 0x54(%rbx), %eax
movl 0x5c(%rbx), %ecx
movl %ecx, 0x6c(%rbx)
movl %eax, 0x64(%rbx)
jmp 0x6db3
movl 0x54(%rbx), %eax
movl 0x5c(%rbx), %ecx
movl %ecx, %esi
shrl $0x1f, %esi
addl %ecx, %esi
sarl %esi
addl %eax, %esi
movl 0x60(%rbx), %eax
movl %eax, %edx
shrl $0x1f, %edx
addl %eax, %edx
sarl %edx
addl 0x58(%rbx), %edx
movq %r14, %rdi
callq 0x6055
testq %rax, %rax
je 0x6dec
movswl 0x4(%rax), %esi
movswl 0x6(%rax), %edx
movswl 0x8(%rax), %ecx
movswl 0xa(%rax), %eax
jmp 0x6dfe
movl 0xac(%r14), %ecx
movl 0xb0(%r14), %eax
xorl %edx, %edx
xorl %esi, %esi
movl 0xcc(%r14), %edi
addl %edi, %esi
movl %esi, 0x54(%rbx)
movl 0xc4(%r14), %esi
addl %esi, %edx
movl %edx, 0x58(%rbx)
addl 0xc8(%r14), %esi
subl %esi, %eax
movl %eax, 0x60(%rbx)
addl 0xd0(%r14), %edi
subl %edi, %ecx
movl %ecx, 0x5c(%rbx)
movl $0x0, 0x50(%rbx)
orb $0xc, 0xa8(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x6e4d
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/client.c
// Function: client_resize
void
client_resize(struct client_ctx *cc, int reset)
{
	if (reset) {
		cc->flags &= ~CLIENT_MAXIMIZED;
		cc->bwidth = Conf.bwidth;
	}

	client_draw_border(cc);

	XMoveResizeWindow(X_Dpy, cc->win, cc->geom.x,
	    cc->geom.y, cc->geom.w, cc->geom.h);
	xu_configure(cc);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
testl %esi, %esi
je 0x6e69
andb $-0xd, 0xa8(%rbx)
leaq 0xd8fd(%rip), %rax      # 0x14760
movl 0x54(%rax), %eax
movl %eax, 0x50(%rbx)
movq %rbx, %rdi
callq 0x6936
leaq 0xf9d0(%rip), %rax      # 0x16848
movq (%rax), %rdi
movq 0x38(%rbx), %rsi
movl 0x54(%rbx), %edx
movl 0x58(%rbx), %ecx
movl 0x5c(%rbx), %r8d
movl 0x60(%rbx), %r9d
callq 0x5440
movq %rbx, %rdi
popq %rbx
jmp 0x89fb
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/client.c
// Function: client_vertmaximize
void
client_vertmaximize(struct client_ctx *cc)
{
	struct screen_ctx	*sc = cc->sc;
	int			 y_org, ymax;
	XineramaScreenInfo	*xine;

	if (cc->flags & CLIENT_FREEZE)
		return;

	if (cc->flags & CLIENT_VMAXIMIZED) {
		cc->geom.y = cc->savegeom.y;
		cc->geom.h = cc->savegeom.h;
		cc->bwidth = Conf.bwidth;
		if (cc->flags & CLIENT_HMAXIMIZED)
			cc->geom.w -= cc->bwidth * 2;
		cc->flags &= ~CLIENT_VMAXIMIZED;
		goto resize;
	}

	cc->savegeom.y = cc->geom.y;
	cc->savegeom.h = cc->geom.h;

	/* if this will make us fully maximized then remove boundary */
	if ((cc->flags & CLIENT_MAXFLAGS) == CLIENT_HMAXIMIZED) {
		cc->geom.w += Conf.bwidth * 2;
		cc->bwidth = 0;
	}

	xine = screen_find_xinerama(sc,
	    cc->geom.x + cc->geom.w / 2,
	    cc->geom.y + cc->geom.h / 2);
	if (xine) {
		y_org = xine->y_org;
		ymax = xine->height;
	} else {
		y_org = 0;
		ymax = sc->view.h;
	}

	cc->geom.y = y_org + sc->gap.top;
	cc->geom.h = ymax - (cc->bwidth * 2) - (sc->gap.top +
	    sc->gap.bottom);
	cc->flags |= CLIENT_VMAXIMIZED;

resize:
	client_resize(cc, 0);
}

// Assembly:
movl 0xa8(%rdi), %eax
testb $0x10, %al
jne 0x6ec9
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testb $0x4, %al
jne 0x6eca
movq 0x30(%rbx), %r14
movl 0x58(%rbx), %ecx
movl 0x60(%rbx), %edi
movl %ecx, 0x68(%rbx)
movl %edi, 0x70(%rbx)
testb $0x8, %al
jne 0x6ef1
movl 0x5c(%rbx), %eax
jmp 0x6f0a
retq
movl 0x68(%rbx), %ecx
movl 0x70(%rbx), %edx
movl %ecx, 0x58(%rbx)
movl %edx, 0x60(%rbx)
leaq 0xd883(%rip), %rcx      # 0x14760
movl 0x54(%rcx), %ecx
movl %ecx, 0x50(%rbx)
testb $0x8, %al
je 0x6eec
addl %ecx, %ecx
subl %ecx, 0x5c(%rbx)
andl $-0x15, %eax
jmp 0x6f68
leaq 0xd868(%rip), %rax      # 0x14760
movl 0x54(%rax), %eax
addl %eax, %eax
addl 0x5c(%rbx), %eax
movl %eax, 0x5c(%rbx)
movl $0x0, 0x50(%rbx)
movl %eax, %esi
shrl $0x1f, %esi
addl %eax, %esi
sarl %esi
addl 0x54(%rbx), %esi
movl %edi, %edx
shrl $0x1f, %edx
addl %edi, %edx
sarl %edx
addl %ecx, %edx
movq %r14, %rdi
callq 0x6055
testq %rax, %rax
je 0x6f38
movswl 0x6(%rax), %edx
movswl 0xa(%rax), %ecx
jmp 0x6f41
movl 0xb0(%r14), %ecx
xorl %edx, %edx
movl 0xc4(%r14), %esi
addl %esi, %edx
movl %edx, 0x58(%rbx)
addl 0xc8(%r14), %esi
movl 0x50(%rbx), %edx
movl 0xa8(%rbx), %eax
leal (%rsi,%rdx,2), %edx
subl %edx, %ecx
movl %ecx, 0x60(%rbx)
orl $0x4, %eax
movl %eax, 0xa8(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x6e4d
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/client.c
// Function: client_horizmaximize
void
client_horizmaximize(struct client_ctx *cc)
{
	struct screen_ctx	*sc = cc->sc;
	int			 x_org, xmax;
	XineramaScreenInfo	*xine;

	if (cc->flags & CLIENT_FREEZE)
		return;

	if (cc->flags & CLIENT_HMAXIMIZED) {
		cc->geom.x = cc->savegeom.x;
		cc->geom.w = cc->savegeom.w;
		cc->bwidth = Conf.bwidth;
		if (cc->flags & CLIENT_VMAXIMIZED)
			cc->geom.h -= cc->bwidth * 2;
		cc->flags &= ~CLIENT_HMAXIMIZED;
		goto resize;
	}

	cc->savegeom.x = cc->geom.x;
	cc->savegeom.w = cc->geom.w;

	/* if this will make us fully maximized then remove boundary */
	if ((cc->flags & CLIENT_MAXFLAGS) == CLIENT_VMAXIMIZED) {
		cc->geom.h += cc->bwidth * 2;
		cc->bwidth = 0;
	}

	xine = screen_find_xinerama(sc,
	    cc->geom.x + cc->geom.w / 2,
	    cc->geom.y + cc->geom.h / 2);
	if (xine) {
		x_org = xine->x_org;
		xmax = xine->width;
	} else {
		x_org = 0;
		xmax = sc->view.w;
	}

	cc->geom.x = x_org + sc->gap.left;
	cc->geom.w = xmax - (cc->bwidth * 2) - (sc->gap.left +
	    sc->gap.right);
	cc->flags |= CLIENT_HMAXIMIZED;

resize:
	client_resize(cc, 0);
}

// Assembly:
movl 0xa8(%rdi), %eax
testb $0x10, %al
jne 0x6fad
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testb $0x8, %al
jne 0x6fae
movq 0x30(%rbx), %r14
movl 0x54(%rbx), %ecx
movl 0x5c(%rbx), %edx
movl %ecx, 0x64(%rbx)
movl %edx, 0x6c(%rbx)
testb $0x4, %al
jne 0x6fd5
movl 0x60(%rbx), %eax
jmp 0x6fe7
retq
movl 0x64(%rbx), %ecx
movl 0x6c(%rbx), %edx
movl %ecx, 0x54(%rbx)
movl %edx, 0x5c(%rbx)
leaq 0xd79f(%rip), %rcx      # 0x14760
movl 0x54(%rcx), %ecx
movl %ecx, 0x50(%rbx)
testb $0x4, %al
je 0x6fd0
addl %ecx, %ecx
subl %ecx, 0x60(%rbx)
andl $-0x19, %eax
jmp 0x7045
movl 0x50(%rbx), %eax
addl %eax, %eax
addl 0x60(%rbx), %eax
movl %eax, 0x60(%rbx)
movl $0x0, 0x50(%rbx)
movl %edx, %esi
shrl $0x1f, %esi
addl %edx, %esi
sarl %esi
addl %ecx, %esi
movl %eax, %edx
shrl $0x1f, %edx
addl %eax, %edx
sarl %edx
addl 0x58(%rbx), %edx
movq %r14, %rdi
callq 0x6055
testq %rax, %rax
je 0x7015
movswl 0x4(%rax), %edx
movswl 0x8(%rax), %ecx
jmp 0x701e
movl 0xac(%r14), %ecx
xorl %edx, %edx
movl 0xcc(%r14), %esi
addl %esi, %edx
movl %edx, 0x54(%rbx)
addl 0xd0(%r14), %esi
movl 0x50(%rbx), %edx
movl 0xa8(%rbx), %eax
leal (%rsi,%rdx,2), %edx
subl %edx, %ecx
movl %ecx, 0x5c(%rbx)
orl $0x8, %eax
movl %eax, 0xa8(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x6e4d
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/client.c
// Function: client_ptrwarp
void
client_ptrwarp(struct client_ctx *cc)
{
	int	 x = cc->ptr.x, y = cc->ptr.y;

	if (x == -1 || y == -1) {
		x = cc->geom.w / 2;
		y = cc->geom.h / 2;
	}

	(cc->state == IconicState) ? client_unhide(cc) : client_raise(cc);
	xu_ptr_setpos(cc->win, x, y);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl 0x9c(%rdi), %ebp
movl 0xa0(%rdi), %r14d
cmpl $-0x1, %ebp
sete %al
cmpl $-0x1, %r14d
sete %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x70cc
movl 0x5c(%rbx), %eax
movl 0x60(%rbx), %ecx
movl %eax, %ebp
shrl $0x1f, %ebp
addl %eax, %ebp
sarl %ebp
movl %ecx, %r14d
shrl $0x1f, %r14d
addl %ecx, %r14d
sarl %r14d
cmpl $0x3, 0xac(%rbx)
jne 0x70df
movq %rbx, %rdi
callq 0x6a65
jmp 0x70f2
leaq 0xf762(%rip), %rax      # 0x16848
movq (%rax), %rdi
movq 0x38(%rbx), %rsi
callq 0x51b0
movq 0x38(%rbx), %rdi
movl %ebp, %esi
movl %r14d, %edx
popq %rbx
popq %r14
popq %rbp
jmp 0x8897
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/client.c
// Function: client_ptrsave
void
client_ptrsave(struct client_ctx *cc)
{
	int	 x, y;

	xu_ptr_getpos(cc->win, &x, &y);
	if (client_inbound(cc, x, y)) {
		cc->ptr.x = x;
		cc->ptr.y = y;
	} else {
		cc->ptr.x = -1;
		cc->ptr.y = -1;
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x38(%rdi), %rdi
leaq 0x4(%rsp), %r14
movq %rsp, %rdx
movq %r14, %rsi
callq 0x8854
movl (%r14), %eax
testl %eax, %eax
js 0x7137
cmpl %eax, 0x5c(%rbx)
jle 0x7137
movl (%rsp), %ecx
testl %ecx, %ecx
js 0x7137
cmpl %ecx, 0x60(%rbx)
jg 0x7141
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl %eax, 0x9c(%rbx)
movl %ecx, 0xa0(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/client.c
// Function: client_send_delete
void
client_send_delete(struct client_ctx *cc)
{
	if (cc->xproto & CLIENT_PROTO_DELETE)
		xu_sendmsg(cc->win,
		    cwmh[WM_PROTOCOLS].atom, cwmh[WM_DELETE_WINDOW].atom);
	else
		XKillClient(X_Dpy, cc->win);
}

// Assembly:
testb $0x1, 0xa4(%rdi)
jne 0x7174
leaq 0xf6e3(%rip), %rax      # 0x16848
movq (%rax), %rax
movq 0x38(%rdi), %rsi
movq %rax, %rdi
jmp 0x5890
movq 0x38(%rdi), %rdi
leaq 0xd311(%rip), %rax      # 0x14490
movq 0x18(%rax), %rdx
movq 0x38(%rax), %rsi
jmp 0x8a50
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/client.c
// Function: client_cycle
void
client_cycle(struct screen_ctx *sc, int flags)
{
	struct client_ctx	*oldcc, *newcc;
	int			 again = 1;

	oldcc = client_current();

	/* If no windows then you cant cycle */
	if (TAILQ_EMPTY(&sc->mruq))
		return;

	if (oldcc == NULL)
		oldcc = (flags & CWM_RCYCLE ? 
		    TAILQ_LAST(&sc->mruq, cycle_entry_q) :
		    TAILQ_FIRST(&sc->mruq));

	newcc = oldcc;
	while (again) {
		again = 0;

		newcc = (flags & CWM_RCYCLE ? client_mruprev(newcc) :
		    client_mrunext(newcc));

		/* Only cycle visible and non-ignored windows. */
		if ((newcc->flags & (CLIENT_HIDDEN|CLIENT_IGNORE))
			|| ((flags & CWM_INGROUP) && (newcc->group != oldcc->group)))
			again = 1;

		/* Is oldcc the only non-hidden window? */
		if (newcc == oldcc) {
			if (again)
				return;	/* No windows visible. */

			break;
		}
	}

	/* reset when cycling mod is released. XXX I hate this hack */
	sc->cycling = 1;
	client_ptrsave(oldcc);
	client_ptrwarp(newcc);
}

// Assembly:
pushq %rbx
movq 0xd8(%rdi), %rax
testq %rax, %rax
je 0x7239
movq 0xf6dc(%rip), %r8       # 0x16880
testb $0x2, %sil
sete %cl
testq %r8, %r8
sete %dl
setne %r9b
cmovneq %r8, %rax
orb %cl, %r9b
je 0x71c2
orb %dl, %cl
jmp 0x71d2
movq 0xe0(%rdi), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
xorl %ecx, %ecx
movl $0xd8, %edx
movq %rax, %r8
testb %cl, %cl
je 0x71f0
movq 0x20(%r8), %rbx
testq %rbx, %rbx
jne 0x7212
movq 0x30(%r8), %r8
addq %rdx, %r8
jmp 0x720f
movq 0x28(%r8), %r9
movq 0x8(%r9), %r9
movq (%r9), %rbx
testq %rbx, %rbx
jne 0x7212
movq 0x30(%r8), %r8
movq 0xe0(%r8), %r8
movq 0x8(%r8), %r8
movq (%r8), %rbx
testb $0x3, 0xa8(%rbx)
jne 0x7231
testb $0x4, %sil
je 0x723b
movq 0xf0(%rbx), %r8
cmpq 0xf0(%rax), %r8
je 0x723b
movq %rbx, %r8
cmpq %rax, %rbx
jne 0x71da
popq %rbx
retq
movl $0x1, 0xa0(%rdi)
movq %rax, %rdi
callq 0x7104
movq %rbx, %rdi
popq %rbx
jmp 0x7088
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/client.c
// Function: client_cycle_leave
void
client_cycle_leave(struct screen_ctx *sc, struct client_ctx *cc) 
{
	sc->cycling = 0;

	client_mtf(NULL);
	if (cc) {
		group_sticky_toggle_exit(cc);
		XUngrabKeyboard(X_Dpy, CurrentTime);
	}
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
movl $0x0, 0xa0(%rdi)
xorl %edi, %edi
callq 0x6cd4
testq %rbx, %rbx
je 0x728a
movq %rbx, %rdi
callq 0xa650
leaq 0xf5c9(%rip), %rax      # 0x16848
movq (%rax), %rdi
xorl %esi, %esi
popq %rbx
jmp 0x54d0
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/client.c
// Function: client_applysizehints
void
client_applysizehints(struct client_ctx *cc)
{
	Bool		 baseismin;

	baseismin = (cc->hint.basew == cc->hint.minw) &&
	    (cc->hint.baseh == cc->hint.minh);

	/* temporarily remove base dimensions, ICCCM 4.1.2.3 */
	if (!baseismin) {
		cc->geom.w -= cc->hint.basew;
		cc->geom.h -= cc->hint.baseh;
	}

	/* adjust for aspect limits */
	if (cc->hint.mina > 0 && cc->hint.maxa > 0) {
		if (cc->hint.maxa <
		    (float)cc->geom.w / cc->geom.h)
			cc->geom.w = cc->geom.h * cc->hint.maxa;
		else if (cc->hint.mina <
		    (float)cc->geom.h / cc->geom.w)
			cc->geom.h = cc->geom.w * cc->hint.mina;
	}

	/* remove base dimensions for increment */
	if (baseismin) {
		cc->geom.w -= cc->hint.basew;
		cc->geom.h -= cc->hint.baseh;
	}

	/* adjust for increment value */
	cc->geom.w -= cc->geom.w % cc->hint.incw;
	cc->geom.h -= cc->geom.h % cc->hint.inch;

	/* restore base dimensions */
	cc->geom.w += cc->hint.basew;
	cc->geom.h += cc->hint.baseh;

	/* adjust for min width/height */
	cc->geom.w = MAX(cc->geom.w, cc->hint.minw);
	cc->geom.h = MAX(cc->geom.h, cc->hint.minh);

	/* adjust for max width/height */
	if (cc->hint.maxw)
		cc->geom.w = MIN(cc->geom.w, cc->hint.maxw);
	if (cc->hint.maxh)
		cc->geom.h = MIN(cc->geom.h, cc->hint.maxh);
}

// Assembly:
movl 0x7c(%rdi), %r8d
movq 0x74(%rdi), %r9
movq %r9, %xmm1
pshufd $0x55, %xmm1, %xmm0     # xmm0 = xmm1[1,1,1,1]
cmpl %r8d, %r9d
jne 0x72b1
movd %xmm0, %ecx
movb $0x1, %al
cmpl 0x80(%rdi), %ecx
je 0x72c1
movq 0x5c(%rdi), %xmm2
psubd %xmm1, %xmm2
movq %xmm2, 0x5c(%rdi)
xorl %eax, %eax
movss 0x94(%rdi), %xmm1
xorps %xmm3, %xmm3
ucomiss %xmm3, %xmm1
jbe 0x731d
movss 0x98(%rdi), %xmm2
ucomiss %xmm3, %xmm2
jbe 0x731d
movsd 0x5c(%rdi), %xmm3
cvtdq2ps %xmm3, %xmm3
movaps %xmm3, %xmm4
shufps $0x55, %xmm3, %xmm4     # xmm4 = xmm4[1,1],xmm3[1,1]
movaps %xmm3, %xmm5
divss %xmm4, %xmm5
ucomiss %xmm2, %xmm5
jbe 0x7303
leaq 0x5c(%rdi), %rcx
mulss %xmm4, %xmm2
jmp 0x7317
divss %xmm3, %xmm4
ucomiss %xmm1, %xmm4
jbe 0x731d
leaq 0x60(%rdi), %rcx
mulss %xmm3, %xmm1
movaps %xmm1, %xmm2
cvttss2si %xmm2, %edx
movl %edx, (%rcx)
movl 0x5c(%rdi), %ecx
testb %al, %al
je 0x7332
subl %r9d, %ecx
movl 0x60(%rdi), %esi
movd %xmm0, %eax
subl %eax, %esi
jmp 0x7335
movl 0x60(%rdi), %esi
movl %ecx, %eax
cltd
idivl 0x8c(%rdi)
subl %edx, %ecx
movl %esi, %eax
cltd
idivl 0x90(%rdi)
subl %edx, %esi
addl %r9d, %ecx
movd %xmm0, %eax
addl %esi, %eax
cmpl %r8d, %ecx
cmovlel %r8d, %ecx
movl %ecx, 0x5c(%rdi)
movl 0x80(%rdi), %esi
movl 0x84(%rdi), %edx
cmpl %esi, %eax
cmovlel %esi, %eax
movl %eax, 0x60(%rdi)
testl %edx, %edx
je 0x737e
cmpl %edx, %ecx
cmovll %ecx, %edx
movl %edx, 0x5c(%rdi)
movl 0x88(%rdi), %ecx
testl %ecx, %ecx
je 0x7390
cmpl %ecx, %eax
cmovll %eax, %ecx
movl %ecx, 0x60(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/menu.c
// Function: menu_init
void
menu_init(struct screen_ctx *sc)
{
	XGCValues	 gv;

	sc->menuwin = XCreateSimpleWindow(X_Dpy, sc->rootwin, 0, 0, 1, 1,
	    Conf.bwidth,
	    sc->color[CWM_COLOR_FG_MENU].pixel,
	    sc->color[CWM_COLOR_BG_MENU].pixel);

	gv.foreground =
	    sc->color[CWM_COLOR_FG_MENU].pixel^sc->color[CWM_COLOR_BG_MENU].pixel;
	gv.background = sc->color[CWM_COLOR_BG_MENU].pixel;
	gv.function = GXxor;

	sc->gc = XCreateGC(X_Dpy, sc->menuwin,
	    GCForeground|GCBackground|GCFunction, &gv);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
leaq 0xf454(%rip), %r14      # 0x16848
movq (%r14), %rdi
leaq 0xd362(%rip), %rax      # 0x14760
movl 0x54(%rax), %eax
movq 0x18(%rbx), %rsi
subq $0x8, %rsp
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x1, %r8d
movl $0x1, %r9d
pushq 0x80(%rbx)
pushq 0x70(%rbx)
pushq %rax
callq 0x5270
addq $0x20, %rsp
movq %rax, 0x20(%rbx)
movq 0x80(%rbx), %rdx
movq 0x70(%rbx), %rsi
xorq %rdx, %rsi
leaq 0x8(%rsp), %rcx
movq %rsi, 0x10(%rcx)
movq %rdx, 0x18(%rcx)
movl $0x6, (%rcx)
movq (%r14), %rdi
movl $0xd, %edx
movq %rax, %rsi
callq 0x5540
movq %rax, 0x98(%rbx)
addq $0x88, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/menu.c
// Function: menu_calc_entry
static int
menu_calc_entry(struct screen_ctx *sc, struct menu_ctx *mc, int x, int y)
{
	int	 entry;

	entry = y / font_height(sc);

	/* in bounds? */
	if (x <= 0 || x > mc->width || y <= 0 ||
	    y > font_height(sc) * mc->num || entry < 0 || entry >= mc->num)
		entry = -1;

	if (mc->hasprompt && entry == 0)
		entry = -1;

	return (entry);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %r14d
movl %edx, %r12d
movq %rsi, %rbx
movq %rdi, %r15
callq 0xbf55
movl %eax, %ecx
movl %r14d, %eax
xorl %edx, %edx
divl %ecx
testl %r12d, %r12d
jle 0x8190
testl %r14d, %r14d
jle 0x8190
cmpl %r12d, 0xec(%rbx)
jl 0x8190
movl %eax, %ebp
movq %r15, %rdi
callq 0xbf55
movl 0xf0(%rbx), %ecx
cmpl %ecx, %ebp
jge 0x8190
imull %eax, %ecx
cmpl %r14d, %ecx
jae 0x8195
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
xorl %eax, %eax
cmpl 0xcc(%rbx), %eax
sbbl %eax, %eax
orl %ebp, %eax
testl %ebp, %ebp
cmovnel %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/search.c
// Function: strsubmatch
static int
strsubmatch(char *sub, char *str, int zeroidx)
{
	size_t	 len, sublen;
	u_int	 n, flen;

	if (sub == NULL || str == NULL)
		return (0);

	len = strlen(str);
	sublen = strlen(sub);

	if (sublen > len)
		return (0);

	if (!zeroidx)
		flen = len - sublen;
	else
		flen = 0;

	for (n = 0; n <= flen; n++)
		if (strncasecmp(sub, str + n, sublen) == 0)
			return (1);

	return (0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
xorl %r13d, %r13d
orb %al, %cl
jne 0x83a9
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x5320
movq %rax, %r15
movq %r14, %rdi
callq 0x5320
cmpq %rax, %r15
jb 0x83a9
movq %rax, %r12
subl %r12d, %r15d
xorl %r13d, %r13d
testl %ebp, %ebp
cmovnel %r13d, %r15d
movl %r13d, %esi
addq %rbx, %rsi
movq %r14, %rdi
movq %r12, %rdx
callq 0x55d0
testl %eax, %eax
je 0x83a3
incl %r13d
cmpl %r15d, %r13d
jbe 0x8381
xorl %r13d, %r13d
jmp 0x83a9
movl $0x1, %r13d
movl %r13d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/search.c
// Function: search_print_client
void
search_print_client(struct menu *mi, int list)
{
	struct client_ctx	*cc;
	char			 flag = ' ';

	cc = mi->ctx;

	if (cc == client_current())
		flag = '!';
	else if (cc->flags & CLIENT_HIDDEN)
		flag = '&';

	if (list)
		cc->matchname = cc->name;

	(void)snprintf(mi->print, sizeof(mi->print), "%c%s", flag,
	    cc->matchname);

	if (!list && cc->matchname != cc->name &&
	    strlen(mi->print) < sizeof(mi->print) - 1) {
		const char	*marker = "";
		char		 buf[MENU_MAXENTRY + 1];
		int		 diff;

		diff = sizeof(mi->print) - 1 - strlen(mi->print);

		/* One for the ':' */
		diff -= 1;

		if (strlen(cc->name) > diff) {
			marker = "..";
			diff -= 2;
		} else {
			diff = strlen(cc->name);
		}

		(void)strlcpy(buf, mi->print, sizeof(buf));
		(void)snprintf(mi->print, sizeof(mi->print),
		    "%s:%.*s%s", buf, diff, cc->name, marker);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movq 0x88(%rdi), %r12
callq 0x6d39
cmpq %rax, %r12
je 0x83f5
testb $0x1, 0xa8(%r12)
movl $0x20, %eax
movl $0x26, %ecx
cmovel %eax, %ecx
jmp 0x83fa
movl $0x21, %ecx
testl %ebp, %ebp
je 0x8434
movq 0xd8(%r12), %r8
movq %r8, 0xe8(%r12)
addq $0x53, %rbx
leaq 0x5d40(%rip), %rdx      # 0xe159
movl $0x33, %esi
movq %rbx, %rdi
xorl %eax, %eax
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x50b0
addq $0x53, %rbx
movq 0xe8(%r12), %r8
leaq 0x5d12(%rip), %rdx      # 0xe159
movl $0x33, %esi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x50b0
movq 0xd8(%r12), %r15
cmpq %r15, 0xe8(%r12)
je 0x84e6
movq %rbx, %rdi
callq 0x5320
cmpq $0x31, %rax
ja 0x84e6
movq %rax, %r14
movq %r15, %rdi
callq 0x5320
movl $0x31, %ecx
subq %r14, %rcx
movl $0x2f, %ebp
subl %r14d, %ebp
cmpq %rcx, %rax
leaq 0x5cc3(%rip), %rcx      # 0xe15e
leaq 0x5cd0(%rip), %r15      # 0xe172
cmovaq %rcx, %r15
cmovbel %eax, %ebp
leaq 0x10(%rsp), %r14
movl $0x33, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0xd220
movq 0xd8(%r12), %r9
movq %r15, (%rsp)
leaq 0x5c90(%rip), %rdx      # 0xe161
movl $0x33, %esi
movq %rbx, %rdi
movq %r14, %rcx
movl %ebp, %r8d
xorl %eax, %eax
callq 0x50b0
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/search.c
// Function: search_match_text
void
search_match_text(struct menu_q *menuq, struct menu_q *resultq, char *search)
{
	struct menu	*mi;

	TAILQ_INIT(resultq);

	TAILQ_FOREACH(mi, menuq, entry)
		if (strsubmatch(search, mi->text, 0))
			TAILQ_INSERT_TAIL(resultq, mi, resultentry);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq $0x0, (%rsi)
movq %rsi, 0x8(%rsi)
movq (%rdi), %r15
testq %r15, %r15
je 0x8549
movq %rdx, %rbx
movq %rsi, %r14
movq %rsi, %r12
leaq 0x20(%r15), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x8334
testl %eax, %eax
je 0x8541
movq $0x0, 0x10(%r15)
movq %r12, 0x18(%r15)
movq %r15, (%r12)
leaq 0x10(%r15), %r12
movq %r12, 0x8(%r14)
movq (%r15), %r15
testq %r15, %r15
jne 0x8517
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/search.c
// Function: search_match_exec
void
search_match_exec(struct menu_q *menuq, struct menu_q *resultq, char *search)
{
	struct menu	*mi, *mj;

	TAILQ_INIT(resultq);

	TAILQ_FOREACH(mi, menuq, entry) {
		if (strsubmatch(search, mi->text, 1) == 0 &&
		    fnmatch(search, mi->text, 0) == FNM_NOMATCH)
				continue;
		for (mj = TAILQ_FIRST(resultq); mj != NULL;
		     mj = TAILQ_NEXT(mj, resultentry)) {
			if (strcasecmp(mi->text, mj->text) < 0) {
				TAILQ_INSERT_BEFORE(mj, mi, resultentry);
				break;
			}
		}
		if (mj == NULL)
			TAILQ_INSERT_TAIL(resultq, mi, resultentry);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq $0x0, (%rsi)
movq %rsi, 0x8(%rsi)
movq (%rdi), %r12
testq %r12, %r12
je 0x860b
movq %rdx, %rbx
movq %rsi, %r14
leaq 0x20(%r12), %r15
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x8334
testl %eax, %eax
jne 0x85a6
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x5300
cmpl $0x1, %eax
je 0x85fe
movq (%r14), %r13
testq %r13, %r13
je 0x85c4
leaq 0x20(%r13), %rsi
movq %r15, %rdi
callq 0x51a0
testl %eax, %eax
js 0x85e4
movq 0x10(%r13), %r13
jmp 0x85a9
leaq 0x10(%r12), %rax
movq $0x0, 0x10(%r12)
movq 0x8(%r14), %rcx
movq %rcx, 0x18(%r12)
movq %r12, (%rcx)
movq %rax, 0x8(%r14)
jmp 0x85fe
movq 0x18(%r13), %rax
leaq 0x10(%r12), %rcx
movq %rax, 0x18(%r12)
movq %r13, 0x10(%r12)
movq %r12, (%rax)
movq %rcx, 0x18(%r13)
movq (%r12), %r12
testq %r12, %r12
jne 0x857b
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/util.c
// Function: u_spawn
void
u_spawn(char *argstr)
{
	switch (fork()) {
	case 0:
		u_exec(argstr);
		err(1, "%s", argstr);
		break;
	case -1:
		warn("fork");
	default:
		break;
	}
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x57a0
cmpl $-0x1, %eax
je 0x862c
testl %eax, %eax
je 0x863b
popq %rbx
retq
leaq 0x5b38(%rip), %rdi      # 0xe16b
xorl %eax, %eax
popq %rbx
jmp 0x5870
movq %rbx, %rdi
callq 0x8659
leaq 0x62d5(%rip), %rsi      # 0xe91f
movl $0x1, %edi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x54b0
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/util.c
// Function: u_exec
void
u_exec(char *argstr)
{
	char	*args[MAXARGLEN], **ap = args;
	char	**end = &args[MAXARGLEN - 1], *tmp;

	while (ap < end && (*ap = strsep(&argstr, " \t")) != NULL) {
		if (**ap == '\0')
			continue;
		ap++;
		if (argstr != NULL) {
			/* deal with quoted strings */
			switch(argstr[0]) {
			case '"':
			case '\'':
				if ((tmp = strchr(argstr + 1, argstr[0]))
				    != NULL) {
					*(tmp++) = '\0';
					*(ap++) = ++argstr;
					argstr = tmp;
				}
				break;
			default:
				break;
			}
		}
	}

	*ap = NULL;
	(void)setsid();
	(void)execvp(args[0], args);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb0, %rsp
leaq 0x8(%rsp), %rbx
movq %rdi, (%rbx)
leaq 0x10(%rsp), %r13
xorl %r15d, %r15d
leaq 0x5af0(%rip), %r14      # 0xe170
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5780
movq %rax, (%r13)
testq %rax, %rax
je 0x86f7
cmpb $0x0, (%rax)
je 0x8680
leaq 0x8(%r15), %r12
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x86e3
movzbl (%rdi), %esi
cmpl $0x27, %esi
je 0x86b4
cmpl $0x22, %esi
jne 0x86e3
incq %rdi
callq 0x5520
testq %rax, %rax
je 0x86e3
movq %rax, %rcx
incq %rcx
movb $0x0, (%rax)
movq 0x8(%rsp), %rax
incq %rax
movq %rax, 0x18(%rsp,%r15)
addq $0x10, %r15
movq %rcx, 0x8(%rsp)
movq %r15, %r12
leaq (%rsp,%r12), %r13
addq $0x10, %r13
movq %r12, %r15
cmpq $0x98, %r12
jl 0x8680
movq $0x0, (%r13)
callq 0x50c0
leaq 0x10(%rsp), %rsi
movq (%rsi), %rdi
callq 0x5170
addq $0xb0, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/xutil.c
// Function: xu_key_grab
void
xu_key_grab(Window win, int mask, int keysym)
{
	KeyCode	 code;
	int	 i;

	code = XKeysymToKeycode(X_Dpy, keysym);
	if ((XkbKeycodeToKeysym(X_Dpy, code, 0, 0) != keysym) &&
	    (XkbKeycodeToKeysym(X_Dpy, code, 0, 1) == keysym))
		mask |= ShiftMask;

	for (i = 0; i < nitems(ign_mods); i++)
		XGrabKey(X_Dpy, code, (mask | ign_mods[i]), win,
		    True, GrabModeAsync, GrabModeAsync);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
leaq 0xdf69(%rip), %r12      # 0x16848
movq (%r12), %rdi
movslq %edx, %r15
movq %r15, %rsi
callq 0x56e0
movq (%r12), %rdi
movzbl %al, %ebp
movl %ebp, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x5260
cmpq %r15, %rax
je 0x8921
movq (%r12), %rdi
movl %ebp, %esi
xorl %edx, %edx
movl $0x1, %ecx
callq 0x5260
xorl %ecx, %ecx
cmpq %r15, %rax
sete %cl
orl %ecx, %ebx
xorl %r15d, %r15d
leaq 0x5865(%rip), %r13      # 0xe190
movq (%r12), %rdi
movl (%r15,%r13), %edx
orl %ebx, %edx
movl $0x1, (%rsp)
movl %ebp, %esi
movq %r14, %rcx
movl $0x1, %r8d
movl $0x1, %r9d
callq 0x5760
addq $0x4, %r15
cmpq $0x10, %r15
jne 0x892b
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/xutil.c
// Function: xu_key_ungrab
void
xu_key_ungrab(Window win, int mask, int keysym)
{
	KeyCode	 code;
	int	 i;

	code = XKeysymToKeycode(X_Dpy, keysym);
	if ((XkbKeycodeToKeysym(X_Dpy, code, 0, 0) != keysym) &&
	    (XkbKeycodeToKeysym(X_Dpy, code, 0, 1) == keysym))
		mask |= ShiftMask;

	for (i = 0; i < nitems(ign_mods); i++)
		XUngrabKey(X_Dpy, code, (mask | ign_mods[i]), win);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
leaq 0xdec6(%rip), %r12      # 0x16848
movq (%r12), %rdi
movslq %edx, %r15
movq %r15, %rsi
callq 0x56e0
movq (%r12), %rdi
movzbl %al, %ebp
movl %ebp, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x5260
cmpq %r15, %rax
je 0x89c4
movq (%r12), %rdi
movl %ebp, %esi
xorl %edx, %edx
movl $0x1, %ecx
callq 0x5260
xorl %ecx, %ecx
cmpq %r15, %rax
sete %cl
orl %ecx, %ebx
xorl %r15d, %r15d
leaq 0x57c2(%rip), %r13      # 0xe190
movq (%r12), %rdi
movl (%r15,%r13), %edx
orl %ebx, %edx
movl %ebp, %esi
movq %r14, %rcx
callq 0x5250
addq $0x4, %r15
cmpq $0x10, %r15
jne 0x89ce
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/xutil.c
// Function: xu_configure
void
xu_configure(struct client_ctx *cc)
{
	XConfigureEvent	 ce;

	ce.type = ConfigureNotify;
	ce.event = cc->win;
	ce.window = cc->win;
	ce.x = cc->geom.x;
	ce.y = cc->geom.y;
	ce.width = cc->geom.w;
	ce.height = cc->geom.h;
	ce.border_width = cc->bwidth;
	ce.above = None;
	ce.override_redirect = 0;

	XSendEvent(X_Dpy, cc->win, False, StructureNotifyMask, (XEvent *)&ce);
}

// Assembly:
subq $0x58, %rsp
movq %rsp, %r8
movl $0x16, (%r8)
movq 0x38(%rdi), %rsi
movq %rsi, 0x20(%r8)
movq %rsi, 0x28(%r8)
movups 0x54(%rdi), %xmm0
movups %xmm0, 0x30(%r8)
movl 0x50(%rdi), %eax
movl %eax, 0x40(%r8)
movq $0x0, 0x48(%r8)
movl $0x0, 0x50(%r8)
leaq 0xde0c(%rip), %rax      # 0x16848
movq (%rax), %rdi
movl $0x20000, %ecx          # imm = 0x20000
xorl %edx, %edx
callq 0x55e0
addq $0x58, %rsp
retq
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/xutil.c
// Function: xu_sendmsg
void
xu_sendmsg(Window win, Atom atm, long val)
{
	XEvent	 e;

	(void)memset(&e, 0, sizeof(e));
	e.xclient.type = ClientMessage;
	e.xclient.window = win;
	e.xclient.message_type = atm;
	e.xclient.format = 32;
	e.xclient.data.l[0] = val;
	e.xclient.data.l[1] = CurrentTime;

	XSendEvent(X_Dpy, win, False, 0, &e);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x8(%rsp), %r12
movl $0xc0, %edx
movq %r12, %rdi
xorl %esi, %esi
callq 0x5090
movl $0x21, (%r12)
movq %r15, 0x20(%r12)
movq %r14, 0x28(%r12)
movl $0x20, 0x30(%r12)
movq %rbx, 0x38(%r12)
leaq 0xdda6(%rip), %rax      # 0x16848
movq (%rax), %rdi
movq %r15, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r12, %r8
callq 0x55e0
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/xutil.c
// Function: xu_getprop
int
xu_getprop(Window win, Atom atm, Atom type, long len, u_char **p)
{
	Atom	 realtype;
	u_long	 n, extra;
	int	 format;

	if (XGetWindowProperty(X_Dpy, win, atm, 0L, len, False, type,
	    &realtype, &format, &n, &extra, p) != Success || *p == NULL)
		return (-1);

	if (n == 0)
		XFree(*p);

	return (n);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %r8, %rbx
movq %rcx, %r8
movq %rdx, %rax
movq %rsi, %rdx
movq %rdi, %rsi
leaq 0xdd66(%rip), %rcx      # 0x16848
movq (%rcx), %rdi
leaq 0x10(%rsp), %r10
movq %rsp, %r11
leaq 0xc(%rsp), %r14
leaq 0x18(%rsp), %r15
xorl %ecx, %ecx
xorl %r9d, %r9d
pushq %rbx
pushq %r10
pushq %r11
pushq %r14
pushq %r15
pushq %rax
callq 0x51e0
addq $0x30, %rsp
movl %eax, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %ecx, %ecx
je 0x8b24
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x8b1a
movq (%rsp), %rax
testq %rax, %rax
jne 0x8b1a
callq 0x5060
movq (%rsp), %rax
jmp 0x8b1a
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/xutil.c
// Function: xu_getstrprop
int
xu_getstrprop(Window win, Atom atm, char **text) {
	XTextProperty	 prop;
	char		**list;
	int		 nitems = 0;

	*text = NULL;

	XGetTextProperty(X_Dpy, win, &prop, atm);
	if (!prop.nitems)
		return (0);

	if (Xutf8TextPropertyToTextList(X_Dpy, &prop, &list,
	    &nitems) == Success && nitems > 0 && *list) {
		if (nitems > 1) {
			XTextProperty    prop2;
			if (Xutf8TextListToTextProperty(X_Dpy, list, nitems,
			    XUTF8StringStyle, &prop2) == Success) {
				*text = xstrdup((const char *)prop2.value);
				XFree(prop2.value);
			}
		} else {
			*text = xstrdup(*list);
		}
		XFreeStringList(list);
	}

	XFree(prop.value);

	return (nitems);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rdx, %rbx
movq %rsi, %rcx
movq %rdi, %rsi
movl $0x0, 0x4(%rsp)
movq $0x0, (%rdx)
leaq 0xdce0(%rip), %r15      # 0x16848
movq (%r15), %rdi
leaq 0x30(%rsp), %r14
movq %r14, %rdx
callq 0x5340
cmpq $0x0, 0x18(%r14)
je 0x8bee
movq (%r15), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x8(%rsp), %rdx
leaq 0x4(%rsp), %r14
movq %r14, %rcx
callq 0x5380
testl %eax, %eax
sete %al
movl (%r14), %edx
testl %edx, %edx
setg %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x8c04
movq 0x8(%rsp), %rsi
movq (%rsi), %rdi
testq %rdi, %rdi
je 0x8c04
cmpl $0x2, %edx
jb 0x8bf2
movq (%r15), %rdi
leaq 0x10(%rsp), %r8
movl $0x4, %ecx
callq 0x5480
testl %eax, %eax
jne 0x8bfa
movq 0x10(%rsp), %rdi
callq 0x61bd
movq %rax, (%rbx)
movq 0x10(%rsp), %rdi
callq 0x5060
jmp 0x8bfa
xorl %eax, %eax
jmp 0x8c12
callq 0x61bd
movq %rax, (%rbx)
movq 0x8(%rsp), %rdi
callq 0x5630
movq 0x30(%rsp), %rdi
callq 0x5060
movl 0x4(%rsp), %eax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/xutil.c
// Function: xu_getstate
int
xu_getstate(struct client_ctx *cc, int *state)
{
	long	*p = NULL;

	if (xu_getprop(cc->win, cwmh[WM_STATE].atom, cwmh[WM_STATE].atom, 2L,
	    (u_char **)&p) <= 0)
		return (-1);

	*state = (int)*p;
	XFree((char *)p);

	return (0);
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
leaq 0x8(%rsp), %r8
movq $0x0, (%r8)
movq 0x38(%rdi), %rdi
movq 0xb85d(%rip), %rdx      # 0x14498
movl $0x2, %ecx
movq %rdx, %rsi
callq 0x8ac3
testl %eax, %eax
jle 0x8c5e
movq 0x8(%rsp), %rdi
movl (%rdi), %eax
movl %eax, (%rbx)
callq 0x5060
xorl %eax, %eax
jmp 0x8c63
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/xutil.c
// Function: xu_setstate
void
xu_setstate(struct client_ctx *cc, int state)
{
	long	 dat[2];

	dat[0] = state;
	dat[1] = None;

	cc->state = state;
	XChangeProperty(X_Dpy, cc->win,
	    cwmh[WM_STATE].atom, cwmh[WM_STATE].atom, 32,
	    PropModeReplace, (unsigned char *)dat, 2);
}

// Assembly:
subq $0x18, %rsp
movslq %esi, %rax
movq %rsp, %r10
movq %rax, (%r10)
movq $0x0, 0x8(%r10)
movl %eax, 0xac(%rdi)
leaq 0xdbbd(%rip), %rax      # 0x16848
movq (%rax), %rax
movq 0x38(%rdi), %rsi
movq 0xb7ff(%rip), %rcx      # 0x14498
movq %rax, %rdi
movq %rcx, %rdx
movl $0x20, %r8d
xorl %r9d, %r9d
pushq $0x2
pushq %r10
callq 0x5740
addq $0x28, %rsp
retq
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/xutil.c
// Function: xu_getatoms
void
xu_getatoms(void)
{
	int	 i;

	for (i = 0; i < nitems(cwmh); i++)
		cwmh[i].atom = XInternAtom(X_Dpy, cwmh[i].name, False);
	for (i = 0; i < nitems(ewmh); i++)
		ewmh[i].atom = XInternAtom(X_Dpy, ewmh[i].name, False);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl $0x8, %r14d
leaq 0xdb80(%rip), %rbx      # 0x16848
leaq 0xb7c1(%rip), %r15      # 0x14490
movq (%rbx), %rdi
movq -0x8(%r14,%r15), %rsi
xorl %edx, %edx
callq 0x5690
movq %rax, (%r14,%r15)
addq $0x10, %r14
cmpq $0x68, %r14
jne 0x8ccf
movl $0x8, %r14d
leaq 0xb7f7(%rip), %r15      # 0x144f0
movq (%rbx), %rdi
movq -0x8(%r14,%r15), %rsi
xorl %edx, %edx
callq 0x5690
movq %rax, (%r14,%r15)
addq $0x10, %r14
cmpq $0xe8, %r14
jne 0x8cf9
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/xutil.c
// Function: xu_ewmh_net_supported_wm_check
void
xu_ewmh_net_supported_wm_check(struct screen_ctx *sc)
{
	Window	 w;

	w = XCreateSimpleWindow(X_Dpy, sc->rootwin, -1, -1, 1, 1, 0, 0, 0);
	XChangeProperty(X_Dpy, sc->rootwin, ewmh[_NET_SUPPORTING_WM_CHECK].atom,
	    XA_WINDOW, 32, PropModeReplace, (unsigned char *)&w, 1);
	XChangeProperty(X_Dpy, w, ewmh[_NET_SUPPORTING_WM_CHECK].atom,
	    XA_WINDOW, 32, PropModeReplace, (unsigned char *)&w, 1);
	XChangeProperty(X_Dpy, w, ewmh[_NET_WM_NAME].atom,
	    XA_WM_NAME, 8, PropModeReplace, (unsigned char *)WMNAME, strlen(WMNAME));
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xdabd(%rip), %r14      # 0x16848
movq (%r14), %rdi
movq 0x18(%rbx), %rsi
subq $0x20, %rsp
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rsp)
movl $0x0, (%rsp)
movl $0x1, %r15d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl $0x1, %r8d
movl $0x1, %r9d
callq 0x5270
addq $0x20, %rsp
movq %rsp, %r12
movq %rax, (%r12)
movq (%r14), %rdi
movq 0x18(%rbx), %rsi
movq 0xb729(%rip), %rdx      # 0x14508
movl $0x21, %ecx
movl $0x20, %r8d
xorl %r9d, %r9d
pushq %r15
pushq %r12
callq 0x5740
addq $0x10, %rsp
movq (%r14), %rdi
movq (%r12), %rsi
movq 0xb700(%rip), %rdx      # 0x14508
movl $0x21, %ecx
movl $0x20, %r8d
xorl %r9d, %r9d
pushq %r15
pushq %r12
callq 0x5740
addq $0x10, %rsp
movq (%r14), %rdi
movq (%r12), %rsi
movq 0xb787(%rip), %rdx      # 0x145b8
leaq 0x54c4(%rip), %rax      # 0xe2fc
movl $0x27, %ecx
movl $0x8, %r8d
xorl %r9d, %r9d
pushq $0x3
pushq %rax
callq 0x5740
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/xutil.c
// Function: xu_ewmh_net_client_list
void
xu_ewmh_net_client_list(struct screen_ctx *sc)
{
	struct client_ctx	*cc;
	Window			*winlist;
	int			 i = 0, j = 0;

	TAILQ_FOREACH(cc, &Clientq, entry)
		i++;
	if (i == 0)
		return;

	winlist = xmalloc(i * sizeof(*winlist));
	TAILQ_FOREACH(cc, &Clientq, entry)
		winlist[j++] = cc->win;
	XChangeProperty(X_Dpy, sc->rootwin, ewmh[_NET_CLIENT_LIST].atom,
	    XA_WINDOW, 32, PropModeReplace, (unsigned char *)winlist, i);
	xfree(winlist);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0xb548(%rip), %rax      # 0x14480
movq $-0x8, %rdi
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movq (%rax), %rax
addq $0x8, %rdi
incl %r15d
testq %rax, %rax
jne 0x8f45
testl %r15d, %r15d
je 0x8fc3
callq 0x6178
movq %rax, %r14
leaq 0xb518(%rip), %rax      # 0x14480
movq (%rax), %rax
testq %rax, %rax
je 0x8f86
movq %r14, %rcx
movq 0x38(%rax), %rdx
movq %rdx, (%rcx)
movq (%rax), %rax
addq $0x8, %rcx
testq %rax, %rax
jne 0x8f73
leaq 0xd8bb(%rip), %rax      # 0x16848
movq (%rax), %rdi
movq 0x18(%rbx), %rsi
movq 0xb58d(%rip), %rdx      # 0x14528
movl $0x21, %ecx
movl $0x20, %r8d
xorl %r9d, %r9d
pushq %r15
pushq %r14
callq 0x5740
addq $0x10, %rsp
movq %r14, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x61b8
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/xutil.c
// Function: xu_ewmh_net_wm_desktop
void
xu_ewmh_net_wm_desktop(struct client_ctx *cc)
{
	struct group_ctx	*gc = cc->group;
	long			 no = 0xffffffff;

	if (gc)
		no = gc->shortcut - 1;

	XChangeProperty(X_Dpy, cc->win, ewmh[_NET_WM_DESKTOP].atom,
	    XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&no, 1);
}

// Assembly:
pushq %rax
movq 0xf0(%rdi), %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rcx, (%rsp)
testq %rax, %rax
je 0x917d
movslq 0x20(%rax), %rax
decq %rax
movq %rax, (%rsp)
leaq 0xd6c4(%rip), %rax      # 0x16848
movq (%rax), %rax
movq 0x38(%rdi), %rsi
movq 0xb436(%rip), %rdx      # 0x145c8
movq %rsp, %r10
movl $0x6, %ecx
movq %rax, %rdi
movl $0x20, %r8d
xorl %r9d, %r9d
pushq $0x1
pushq %r10
callq 0x5740
addq $0x10, %rsp
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/conf.c
// Function: conf_cmd_add
void
conf_cmd_add(struct conf *c, char *image, char *label, int flags)
{
	/* "term" and "lock" have special meanings. */

	if (strcmp(label, "term") == 0)
		(void)strlcpy(c->termpath, image, sizeof(c->termpath));
	else if (strcmp(label, "lock") == 0)
		(void)strlcpy(c->lockpath, image, sizeof(c->lockpath));
	else {
		struct cmd *cmd = xmalloc(sizeof(*cmd));
		cmd->flags = flags;
		(void)strlcpy(cmd->image, image, sizeof(cmd->image));
		(void)strlcpy(cmd->label, label, sizeof(cmd->label));
		TAILQ_INSERT_TAIL(&c->cmdq, cmd, entry);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x50fb(%rip), %rsi      # 0xe331
movq %rdx, %rdi
callq 0x5610
testl %eax, %eax
je 0x92ac
leaq 0x50ee(%rip), %rsi      # 0xe337
movq %r15, %rdi
callq 0x5610
testl %eax, %eax
je 0x92b5
movl $0x1118, %edi           # imm = 0x1118
callq 0x6178
movq %rax, %r12
movl %ebp, 0x10(%rax)
leaq 0x14(%rax), %rdi
movl $0x1000, %edx           # imm = 0x1000
movq %r14, %rsi
callq 0xd220
leaq 0x1014(%r12), %rdi
movl $0x100, %edx            # imm = 0x100
movq %r15, %rsi
callq 0xd220
movq $0x0, (%r12)
movq 0x38(%rbx), %rax
movq %rax, 0x8(%r12)
movq %r12, (%rax)
movq %r12, 0x38(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
addq $0xe0, %rbx
jmp 0x92bc
addq $0x10e0, %rbx           # imm = 0x10E0
movl $0x1000, %edx           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xd220
// File: /workspace/github_c_makefile_star2_O3/zenlinux[P]cwm/conf.c
// Function: conf_init
void
conf_init(struct conf *c)
{
	int	i;

	c->flags = 0;
	c->bwidth = CONF_BWIDTH;
	c->mamount = CONF_MAMOUNT;
	c->snapdist = CONF_SNAPDIST;

	TAILQ_INIT(&c->ignoreq);
	TAILQ_INIT(&c->cmdq);
	TAILQ_INIT(&c->keybindingq);
	TAILQ_INIT(&c->autogroupq);
	TAILQ_INIT(&c->mousebindingq);

	for (i = 0; i < nitems(kb_binds); i++)
		conf_bindname(c, kb_binds[i].key, kb_binds[i].func);

	for (i = 0; i < nitems(m_binds); i++)
		conf_mousebind(c, m_binds[i].key, m_binds[i].func);

	for (i = 0; i < nitems(color_binds); i++)
		c->color[i].name = xstrdup(color_binds[i].name);

	/* Default term/lock */
	(void)strlcpy(c->termpath, "xterm", sizeof(c->termpath));
	(void)strlcpy(c->lockpath, "xlock", sizeof(c->lockpath));

	c->font = xstrdup(CONF_FONT);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movaps 0x4fca(%rip), %xmm0     # 0xe320
movups %xmm0, 0x50(%rdi)
leaq 0x20(%rdi), %rax
xorl %ecx, %ecx
movq %rcx, 0x20(%rdi)
movq %rax, 0x28(%rdi)
leaq 0x30(%rdi), %rax
movq %rcx, 0x30(%rdi)
movq %rax, 0x38(%rdi)
movq %rcx, (%rdi)
movq %rdi, 0x8(%rdi)
leaq 0x10(%rdi), %rax
movq %rcx, 0x10(%rdi)
movq %rax, 0x18(%rdi)
leaq 0x40(%rdi), %rax
movq %rcx, 0x40(%rdi)
movq %rax, 0x48(%rdi)
movl $0x8, %r14d
leaq 0x9930(%rip), %r15      # 0x12cd0
movq -0x8(%r14,%r15), %rsi
movq (%r14,%r15), %rdx
movq %rbx, %rdi
callq 0x9447
addq $0x10, %r14
cmpq $0x398, %r14            # imm = 0x398
jne 0x93a0
xorl %r14d, %r14d
leaq 0x9c98(%rip), %r15      # 0x13060
movq (%r14,%r15), %rsi
movq 0x8(%r14,%r15), %rdx
movq %rbx, %rdi
callq 0x9661
addq $0x10, %r14
cmpq $0x80, %r14
jne 0x93c8
xorl %r14d, %r14d
leaq 0x9cf0(%rip), %r15      # 0x130e0
movq (%r14,%r15), %rdi
callq 0x61bd
movq %rax, 0x70(%rbx,%r14)
addq $0x10, %r14
cmpq $0x70, %r14
jne 0x93f0
movw $0x6d, 0xe4(%rbx)
movl $0x72657478, 0xe0(%rbx) # imm = 0x72657478
movl $0x636f6c78, 0x10e0(%rbx) # imm = 0x636F6C78
movw $0x6b, 0x10e4(%rbx)
leaq 0x4f07(%rip), %rdi      # 0xe33c
callq 0x61bd
movq %rax, 0x20e0(%rbx)
popq %rbx
popq %r14
popq %r15
retq