// File: /workspace/github_c_makefile_star2_O0/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:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movl 0xa8(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x7fbf
jmp 0x815c
movq -0x8(%rbp), %rax
movl 0xa8(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x803d
movq -0x8(%rbp), %rax
movl 0x64(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x54(%rax)
movq -0x8(%rbp), %rax
movl 0x6c(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x5c(%rax)
leaq 0x126cc(%rip), %rax     # 0x1a6c0
movl 0x54(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x50(%rax)
movq -0x8(%rbp), %rax
movl 0xa8(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x8025
movq -0x8(%rbp), %rax
movl 0x50(%rax), %edx
shll %edx
movq -0x8(%rbp), %rax
movl 0x60(%rax), %ecx
subl %edx, %ecx
movl %ecx, 0x60(%rax)
movq -0x8(%rbp), %rax
movl 0xa8(%rax), %ecx
andl $-0x9, %ecx
movl %ecx, 0xa8(%rax)
jmp 0x8151
movq -0x8(%rbp), %rax
movl 0x54(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x64(%rax)
movq -0x8(%rbp), %rax
movl 0x5c(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x6c(%rax)
movq -0x8(%rbp), %rax
movl 0xa8(%rax), %eax
andl $0xc, %eax
cmpl $0x4, %eax
jne 0x8089
movq -0x8(%rbp), %rax
movl 0x50(%rax), %ecx
shll %ecx
movq -0x8(%rbp), %rax
addl 0x60(%rax), %ecx
movl %ecx, 0x60(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x50(%rax)
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x54(%rax), %esi
movq -0x8(%rbp), %rax
movl 0x5c(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
addl %eax, %esi
movq -0x8(%rbp), %rax
movl 0x58(%rax), %eax
movl %eax, -0x24(%rbp)
movq -0x8(%rbp), %rax
movl 0x60(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl -0x24(%rbp), %edx
addl %eax, %edx
callq 0x6170
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x80eb
movq -0x20(%rbp), %rax
movswl 0x4(%rax), %eax
movl %eax, -0x14(%rbp)
movq -0x20(%rbp), %rax
movswl 0x8(%rax), %eax
movl %eax, -0x18(%rbp)
jmp 0x80ff
movl $0x0, -0x14(%rbp)
movq -0x10(%rbp), %rax
movl 0xac(%rax), %eax
movl %eax, -0x18(%rbp)
movl -0x14(%rbp), %ecx
movq -0x10(%rbp), %rax
addl 0xcc(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x54(%rax)
movl -0x18(%rbp), %ecx
movq -0x8(%rbp), %rax
movl 0x50(%rax), %eax
shll %eax
subl %eax, %ecx
movq -0x10(%rbp), %rax
movl 0xcc(%rax), %eax
movq -0x10(%rbp), %rdx
addl 0xd0(%rdx), %eax
subl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x5c(%rax)
movq -0x8(%rbp), %rax
movl 0xa8(%rax), %ecx
orl $0x8, %ecx
movl %ecx, 0xa8(%rax)
movq -0x8(%rbp), %rdi
xorl %esi, %esi
callq 0x7d20
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)