// File: /workspace/github_c_makefile_star2_O0/yugecin[P]evilwm/screen.c
// Function: recalculate_sweep
static void recalculate_sweep(Client *c, int mode, int minx, int miny, int maxx, int maxy, unsigned force) {
	int d;

	if (maxx > minx && (force || c->oldw == 0)) {
		c->oldw = 0;
		c->x = minx;
		c->width = abs(minx - maxx);
		d = (c->width - c->base_width) % c->width_inc;
		c->width -= d;
		if (mode & 1) {
			c->x += d;
		}
		if (c->min_width && c->width < c->min_width)
			c->width = c->min_width;
		if (c->max_width && c->width > c->max_width)
			c->width = c->max_width;
	}
	if (maxy > miny && (force || c->oldh == 0))  {
		c->oldh = 0;
		c->y = miny;
		c->height = abs(miny - maxy);
		d = (c->height - c->base_height) % c->height_inc;
		c->height -= d;
		if (mode & 2) {
			c->y += d;
		}
		if (c->min_height && c->height < c->min_height)
			c->height = c->min_height;
		if (c->max_height && c->height > c->max_height)
			c->height = c->max_height;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movl %r8d, -0x18(%rbp)
movl %r9d, -0x1c(%rbp)
movl -0x18(%rbp), %eax
cmpl -0x10(%rbp), %eax
jle 0x9807
cmpl $0x0, 0x10(%rbp)
jne 0x974c
movq -0x8(%rbp), %rax
cmpl $0x0, 0x44(%rax)
jne 0x9807
movq -0x8(%rbp), %rax
movl $0x0, 0x44(%rax)
movl -0x10(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x24(%rax)
movl -0x10(%rbp), %ecx
subl -0x18(%rbp), %ecx
movl %ecx, %eax
negl %eax
cmovnsl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x2c(%rax)
movq -0x8(%rbp), %rax
movl 0x2c(%rax), %eax
movq -0x8(%rbp), %rcx
subl 0x64(%rcx), %eax
movq -0x8(%rbp), %rcx
cltd
idivl 0x5c(%rcx)
movl %edx, -0x20(%rbp)
movl -0x20(%rbp), %edx
movq -0x8(%rbp), %rax
movl 0x2c(%rax), %ecx
subl %edx, %ecx
movl %ecx, 0x2c(%rax)
movl -0xc(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x97b5
movl -0x20(%rbp), %ecx
movq -0x8(%rbp), %rax
addl 0x24(%rax), %ecx
movl %ecx, 0x24(%rax)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x4c(%rax)
je 0x97dd
movq -0x8(%rbp), %rax
movl 0x2c(%rax), %eax
movq -0x8(%rbp), %rcx
cmpl 0x4c(%rcx), %eax
jge 0x97dd
movq -0x8(%rbp), %rax
movl 0x4c(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x2c(%rax)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x54(%rax)
je 0x9805
movq -0x8(%rbp), %rax
movl 0x2c(%rax), %eax
movq -0x8(%rbp), %rcx
cmpl 0x54(%rcx), %eax
jle 0x9805
movq -0x8(%rbp), %rax
movl 0x54(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x2c(%rax)
jmp 0x9807
movl -0x1c(%rbp), %eax
cmpl -0x14(%rbp), %eax
jle 0x98e2
cmpl $0x0, 0x10(%rbp)
jne 0x9827
movq -0x8(%rbp), %rax
cmpl $0x0, 0x48(%rax)
jne 0x98e2
movq -0x8(%rbp), %rax
movl $0x0, 0x48(%rax)
movl -0x14(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x28(%rax)
movl -0x14(%rbp), %ecx
subl -0x1c(%rbp), %ecx
movl %ecx, %eax
negl %eax
cmovnsl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x30(%rax)
movq -0x8(%rbp), %rax
movl 0x30(%rax), %eax
movq -0x8(%rbp), %rcx
subl 0x68(%rcx), %eax
movq -0x8(%rbp), %rcx
cltd
idivl 0x60(%rcx)
movl %edx, -0x20(%rbp)
movl -0x20(%rbp), %edx
movq -0x8(%rbp), %rax
movl 0x30(%rax), %ecx
subl %edx, %ecx
movl %ecx, 0x30(%rax)
movl -0xc(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x9890
movl -0x20(%rbp), %ecx
movq -0x8(%rbp), %rax
addl 0x28(%rax), %ecx
movl %ecx, 0x28(%rax)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x50(%rax)
je 0x98b8
movq -0x8(%rbp), %rax
movl 0x30(%rax), %eax
movq -0x8(%rbp), %rcx
cmpl 0x50(%rcx), %eax
jge 0x98b8
movq -0x8(%rbp), %rax
movl 0x50(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x30(%rax)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x58(%rax)
je 0x98e0
movq -0x8(%rbp), %rax
movl 0x30(%rax), %eax
movq -0x8(%rbp), %rcx
cmpl 0x58(%rcx), %eax
jle 0x98e0
movq -0x8(%rbp), %rax
movl 0x58(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x30(%rax)
jmp 0x98e2
popq %rbp
retq
nopw %cs:(%rax,%rax)