// File: /workspace/github_c_makefile_star2_O0/kek[P]evilwm/screen.c
// Function: sweep
void sweep(Client *c) {
	XEvent ev;
	int old_cx = c->x;
	int old_cy = c->y;

	if (!grab_pointer(c->screen->root, MouseMask, resize_curs)) return;

	client_raise(c);
#ifdef INFOBANNER_MOVERESIZE
	create_info_window(c);
#endif
	XGrabServer(dpy);
	draw_outline(c);

	setmouse(c->window, c->width, c->height);
	for (;;) {
		XMaskEvent(dpy, MouseMask, &ev);
		switch (ev.type) {
			case MotionNotify:
				if (ev.xmotion.root != c->screen->root)
					break;
				draw_outline(c); /* clear */
				XUngrabServer(dpy);
				recalculate_sweep(c, old_cx, old_cy, ev.xmotion.x, ev.xmotion.y, ev.xmotion.state & altmask);
#ifdef INFOBANNER_MOVERESIZE
				update_info_window(c);
#endif
				XSync(dpy, False);
				XGrabServer(dpy);
				draw_outline(c);
				break;
			case ButtonRelease:
				draw_outline(c); /* clear */
				XUngrabServer(dpy);
#ifdef INFOBANNER_MOVERESIZE
				remove_info_window();
#endif
				XUngrabPointer(dpy, CurrentTime);
				moveresize(c);
				/* In case maximise state has changed: */
				ewmh_set_net_wm_state(c);
				return;
			default: break;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl 0x24(%rax), %eax
movl %eax, -0xcc(%rbp)
movq -0x8(%rbp), %rax
movl 0x28(%rax), %eax
movl %eax, -0xd0(%rbp)
leaq 0x6920(%rip), %rax      # 0xf980
movq (%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rsi
leaq 0x6932(%rip), %rax      # 0xf9a8
movq (%rax), %rax
xorl %edx, %edx
movl $0x4c, %ecx
movl $0x1, %r9d
xorl %r8d, %r8d
movl %r9d, %r8d
movq $0x0, (%rsp)
movq %rax, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
callq 0x32c0
cmpl $0x0, %eax
je 0x90b1
jmp 0x922a
movq -0x8(%rbp), %rdi
callq 0x39f0
leaq 0x68bf(%rip), %rax      # 0xf980
movq (%rax), %rdi
callq 0x34d0
movq -0x8(%rbp), %rdi
callq 0x9240
leaq 0x68a7(%rip), %rax      # 0xf980
movq (%rax), %rdi
movq -0x8(%rbp), %rax
movq (%rax), %rdx
movq -0x8(%rbp), %rax
movl 0x2c(%rax), %r10d
movq -0x8(%rbp), %rax
movl 0x30(%rax), %eax
xorl %ecx, %ecx
movl %ecx, %esi
xorl %r9d, %r9d
movl %r9d, %ecx
movl %r9d, %r8d
movl $0x0, (%rsp)
movl %r10d, 0x8(%rsp)
movl %eax, 0x10(%rsp)
callq 0x32e0
leaq 0x6865(%rip), %rax      # 0xf980
movq (%rax), %rdi
movl $0x4c, %esi
leaq -0xc8(%rbp), %rdx
callq 0x3740
movl -0xc8(%rbp), %eax
movl %eax, -0xd4(%rbp)
subl $0x5, %eax
je 0x91e4
jmp 0x9146
movl -0xd4(%rbp), %eax
subl $0x6, %eax
jne 0x9223
jmp 0x9157
movq -0xa0(%rbp), %rax
movq -0x8(%rbp), %rcx
movq 0x10(%rcx), %rcx
cmpq 0x8(%rcx), %rax
je 0x9171
jmp 0x9225
movq -0x8(%rbp), %rdi
callq 0x9240
leaq 0x67ff(%rip), %rax      # 0xf980
movq (%rax), %rdi
callq 0x3410
movq -0x8(%rbp), %rdi
movl -0xcc(%rbp), %esi
movl -0xd0(%rbp), %edx
movl -0x88(%rbp), %ecx
movl -0x84(%rbp), %r8d
movl -0x78(%rbp), %r9d
leaq 0x6227(%rip), %rax      # 0xf3d8
andl (%rax), %r9d
callq 0x9400
leaq 0x67c0(%rip), %rax      # 0xf980
movq (%rax), %rdi
xorl %esi, %esi
callq 0x34b0
leaq 0x67af(%rip), %rax      # 0xf980
movq (%rax), %rdi
callq 0x34d0
movq -0x8(%rbp), %rdi
callq 0x9240
jmp 0x9225
movq -0x8(%rbp), %rdi
callq 0x9240
leaq 0x678c(%rip), %rax      # 0xf980
movq (%rax), %rdi
callq 0x3410
leaq 0x677d(%rip), %rax      # 0xf980
movq (%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x33e0
movq -0x8(%rbp), %rdi
callq 0x95c0
movq -0x8(%rbp), %rdi
callq 0x6ad0
jmp 0x922a
jmp 0x9225
jmp 0x9114
addq $0xf0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)