// File: /workspace/github_c_makefile_star2_O0/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:
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 0x7ddf
jmp 0x7f7f
movq -0x8(%rbp), %rax
movl 0xa8(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x7e5d
movq -0x8(%rbp), %rax
movl 0x68(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x58(%rax)
movq -0x8(%rbp), %rax
movl 0x70(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x60(%rax)
leaq 0x128ac(%rip), %rax     # 0x1a6c0
movl 0x54(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x50(%rax)
movq -0x8(%rbp), %rax
movl 0xa8(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x7e45
movq -0x8(%rbp), %rax
movl 0x50(%rax), %edx
shll %edx
movq -0x8(%rbp), %rax
movl 0x5c(%rax), %ecx
subl %edx, %ecx
movl %ecx, 0x5c(%rax)
movq -0x8(%rbp), %rax
movl 0xa8(%rax), %ecx
andl $-0x5, %ecx
movl %ecx, 0xa8(%rax)
jmp 0x7f74
movq -0x8(%rbp), %rax
movl 0x58(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x68(%rax)
movq -0x8(%rbp), %rax
movl 0x60(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x70(%rax)
movq -0x8(%rbp), %rax
movl 0xa8(%rax), %eax
andl $0xc, %eax
cmpl $0x8, %eax
jne 0x7eac
leaq 0x1282e(%rip), %rax     # 0x1a6c0
movl 0x54(%rax), %ecx
shll %ecx
movq -0x8(%rbp), %rax
addl 0x5c(%rax), %ecx
movl %ecx, 0x5c(%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 0x7f0e
movq -0x20(%rbp), %rax
movswl 0x6(%rax), %eax
movl %eax, -0x14(%rbp)
movq -0x20(%rbp), %rax
movswl 0xa(%rax), %eax
movl %eax, -0x18(%rbp)
jmp 0x7f22
movl $0x0, -0x14(%rbp)
movq -0x10(%rbp), %rax
movl 0xb0(%rax), %eax
movl %eax, -0x18(%rbp)
movl -0x14(%rbp), %ecx
movq -0x10(%rbp), %rax
addl 0xc4(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x58(%rax)
movl -0x18(%rbp), %ecx
movq -0x8(%rbp), %rax
movl 0x50(%rax), %eax
shll %eax
subl %eax, %ecx
movq -0x10(%rbp), %rax
movl 0xc4(%rax), %eax
movq -0x10(%rbp), %rdx
addl 0xc8(%rdx), %eax
subl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x60(%rax)
movq -0x8(%rbp), %rax
movl 0xa8(%rax), %ecx
orl $0x4, %ecx
movl %ecx, 0xa8(%rax)
movq -0x8(%rbp), %rdi
xorl %esi, %esi
callq 0x7d20
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)