// File: /workspace/github_c_makefile_star2_O2/9wm[P]9wm/event.c
// Function: configurereq
void
configurereq(XConfigureRequestEvent * e)
{
	XWindowChanges wc;
	Client *c;

	/*
	 * we don't set curtime as nothing here uses it 
	 */
	c = getclient(e->window, 0);
	trace("configurereq", c, e);

	e->value_mask &= ~CWSibling;

	if (c) {
		gravitate(c, 1);
		if (e->value_mask & CWX)
			c->x = e->x;
		if (e->value_mask & CWY)
			c->y = e->y;
		if (e->value_mask & CWWidth)
			c->dx = e->width;
		if (e->value_mask & CWHeight)
			c->dy = e->height;
		if (e->value_mask & CWBorderWidth)
			c->border = e->border_width;
		gravitate(c, 0);
		if (e->value_mask & CWStackMode) {
			if (wc.stack_mode == Above)
				top(c);
			else
				e->value_mask &= ~CWStackMode;
		}
		if (c->parent != c->screen->root && c->window == e->window) {
			wc.x = c->x - BORDER;
			wc.y = c->y - BORDER;
			wc.width = c->dx + 2 * (BORDER - 1);
			wc.height = c->dy + 2 * (BORDER - 1);
			wc.border_width = 1;
			wc.sibling = None;
			wc.stack_mode = e->detail;
			XConfigureWindow(dpy, c->parent, e->value_mask, &wc);
			sendconfig(c);
		}
	}

	if (c && c->init) {
		wc.x = BORDER - 1;
		wc.y = BORDER - 1;
	} else {
		wc.x = e->x;
		wc.y = e->y;
	}
	wc.width = e->width;
	wc.height = e->height;
	wc.border_width = 0;
	wc.sibling = None;
	wc.stack_mode = Above;
	e->value_mask &= ~CWStackMode;
	e->value_mask |= CWBorderWidth;

	XConfigureWindow(dpy, e->window, e->value_mask, &wc);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x28(%rdi), %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x5576
andb $-0x21, 0x58(%rbx)
testq %rax, %rax
je 0x36a9
movq %rax, %r14
pushq $0x1
popq %rsi
movq %rax, %rdi
xorl %eax, %eax
callq 0x45d3
movq 0x58(%rbx), %rax
testb $0x1, %al
je 0x35d1
movl 0x30(%rbx), %ecx
movl %ecx, 0x28(%r14)
testb $0x2, %al
je 0x35dc
movl 0x34(%rbx), %ecx
movl %ecx, 0x2c(%r14)
testb $0x4, %al
je 0x35e7
movl 0x38(%rbx), %ecx
movl %ecx, 0x30(%r14)
testb $0x8, %al
je 0x35f2
movl 0x3c(%rbx), %ecx
movl %ecx, 0x34(%r14)
testb $0x10, %al
je 0x35fd
movl 0x40(%rbx), %eax
movl %eax, 0x38(%r14)
movq %r14, %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x45d3
movq 0x8(%r14), %rsi
movq 0xf8(%r14), %rax
cmpq 0x8(%rax), %rsi
je 0x368f
movq (%r14), %rax
cmpq 0x28(%rbx), %rax
jne 0x368f
leaq 0x7d06(%rip), %rax      # 0xb330
movl (%rax), %eax
leal -0x2(,%rax,2), %ecx
movdqu 0x28(%r14), %xmm0
movd %ecx, %xmm1
movd %eax, %xmm2
punpckldq %xmm1, %xmm2    # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1]
pshufd $0x50, %xmm2, %xmm1     # xmm1 = xmm2[0,0,1,1]
movdqa %xmm0, %xmm2
psubd %xmm1, %xmm2
paddd %xmm1, %xmm0
movsd %xmm2, %xmm0            # xmm0 = xmm2[0],xmm0[1]
movq %rsp, %rcx
movapd %xmm0, (%rcx)
movl $0x1, 0x10(%rcx)
andq $0x0, 0x18(%rcx)
movl 0x50(%rbx), %eax
movl %eax, 0x20(%rcx)
leaq 0x830e(%rip), %rax      # 0xb988
movq (%rax), %rdi
movl 0x58(%rbx), %edx
callq 0x2030
movq %r14, %rdi
xorl %eax, %eax
callq 0x3189
cmpl $0x0, 0x9c(%r14)
je 0x36a9
leaq 0x7c90(%rip), %rax      # 0xb330
movl (%rax), %eax
decl %eax
movl %eax, (%rsp)
jmp 0x36b2
movl 0x30(%rbx), %eax
movl %eax, (%rsp)
movl 0x34(%rbx), %eax
movq %rsp, %rcx
movl %eax, 0x4(%rcx)
movq 0x38(%rbx), %rax
movq %rax, 0x8(%rcx)
andl $0x0, 0x10(%rcx)
andq $0x0, 0x18(%rcx)
andl $0x0, 0x20(%rcx)
movq 0x28(%rbx), %rsi
movq 0x58(%rbx), %rdx
andq $-0x51, %rdx
orq $0x10, %rdx
movq %rdx, 0x58(%rbx)
leaq 0x82a0(%rip), %rax      # 0xb988
movq (%rax), %rdi
callq 0x2030
addq $0x28, %rsp
popq %rbx
popq %r14
retq