// File: /workspace/github_c_makefile_star2_O0/zenlinux[P]cwm/mousefunc.c
// Function: mousefunc_sweep_draw
static void
mousefunc_sweep_draw(struct client_ctx *cc)
{
	struct screen_ctx	*sc = cc->sc;
	char			 asize[10]; /* fits "nnnnxnnnn\0" */
	int			 width, width_size, width_name;

	(void)snprintf(asize, sizeof(asize), "%dx%d",
	    (cc->geom.w - cc->hint.basew) / cc->hint.incw,
	    (cc->geom.h - cc->hint.baseh) / cc->hint.inch);
	width_size = font_width(sc, asize, strlen(asize)) + 4;
	width_name = font_width(sc, cc->name, strlen(cc->name)) + 4;
	width = MAX(width_size, width_name);

	XReparentWindow(X_Dpy, sc->menuwin, cc->win, 0, 0);
	XMoveResizeWindow(X_Dpy, sc->menuwin, 0, 0, width, font_height(sc) * 2);
	XMapWindow(X_Dpy, sc->menuwin);
	XClearWindow(X_Dpy, sc->menuwin);
	font_draw(sc, cc->name, strlen(cc->name), sc->menuwin,
	    2, font_ascent(sc) + 1);
	font_draw(sc, asize, strlen(asize), sc->menuwin,
	    width / 2 - width_size / 2, font_height(sc) + font_ascent(sc) + 1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x10(%rbp)
leaq -0x1a(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x5c(%rax), %eax
movq -0x8(%rbp), %rcx
subl 0x74(%rcx), %eax
movq -0x8(%rbp), %rcx
cltd
idivl 0x8c(%rcx)
movl %eax, %ecx
movq -0x8(%rbp), %rax
movl 0x60(%rax), %eax
movq -0x8(%rbp), %rdx
subl 0x78(%rdx), %eax
movq -0x8(%rbp), %rsi
cltd
idivl 0x90(%rsi)
movl %eax, %r8d
movl $0xa, %esi
leaq 0x4ae9(%rip), %rdx      # 0x14b1b
movb $0x0, %al
callq 0x50b0
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq -0x1a(%rbp), %rax
movq %rax, -0x40(%rbp)
leaq -0x1a(%rbp), %rdi
callq 0x5320
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %rsi
movl %eax, %edx
callq 0x10af0
addl $0x4, %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movq 0xd8(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq 0xd8(%rax), %rdi
callq 0x5320
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl %eax, %edx
callq 0x10af0
addl $0x4, %eax
movl %eax, -0x28(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x28(%rbp), %eax
jle 0x100b3
movl -0x24(%rbp), %eax
movl %eax, -0x4c(%rbp)
jmp 0x100b9
movl -0x28(%rbp), %eax
movl %eax, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
movl %eax, -0x20(%rbp)
leaq 0xc6e2(%rip), %rax      # 0x1c7a8
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rsi
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rdx
xorl %r8d, %r8d
movl %r8d, %ecx
callq 0x57f0
leaq 0xc6bd(%rip), %rax      # 0x1c7a8
movq (%rax), %rax
movq %rax, -0xb0(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0xa8(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0x9c(%rbp)
movq -0x10(%rbp), %rdi
callq 0x109b0
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
movl -0x9c(%rbp), %r8d
movl %eax, %r9d
shll %r9d
xorl %ecx, %ecx
movl %ecx, %edx
callq 0x5440
leaq 0xc667(%rip), %rax      # 0x1c7a8
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rsi
callq 0x54c0
leaq 0xc650(%rip), %rax      # 0x1c7a8
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rsi
callq 0x50a0
movq -0x10(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x8(%rbp), %rax
movq 0xd8(%rax), %rax
movq %rax, -0x90(%rbp)
movq -0x8(%rbp), %rax
movq 0xd8(%rax), %rdi
callq 0x5320
movl %eax, -0x84(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x80(%rbp)
movq -0x10(%rbp), %rdi
callq 0x10970
movq -0x98(%rbp), %rdi
movq -0x90(%rbp), %rsi
movl -0x84(%rbp), %edx
movq -0x80(%rbp), %rcx
movl %eax, %r9d
addl $0x1, %r9d
movl $0x2, %r8d
callq 0x10b40
movq -0x10(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq -0x1a(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq -0x1a(%rbp), %rdi
callq 0x5320
movl %eax, -0x5c(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x58(%rbp)
movl -0x20(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, -0x78(%rbp)
movl -0x24(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x78(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x50(%rbp)
movq -0x10(%rbp), %rdi
callq 0x109b0
movl %eax, -0x74(%rbp)
movq -0x10(%rbp), %rdi
callq 0x10970
movl -0x74(%rbp), %r9d
movq -0x70(%rbp), %rdi
movq -0x68(%rbp), %rsi
movl -0x5c(%rbp), %edx
movq -0x58(%rbp), %rcx
movl -0x50(%rbp), %r8d
addl %eax, %r9d
addl $0x1, %r9d
callq 0x10b40
addq $0xb0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)