// File: /workspace/github_c_makefile_star2_O3/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 0x58ca
andb $-0x21, 0x58(%rbx)
testq %rax, %rax
je 0x3a18
movq %rax, %r14
movq %rax, %rdi
movl $0x1, %esi
xorl %eax, %eax
callq 0x4962
movq 0x58(%rbx), %rax
testb $0x1, %al
je 0x393d
movl 0x30(%rbx), %ecx
movl %ecx, 0x28(%r14)
testb $0x2, %al
je 0x3948
movl 0x34(%rbx), %ecx
movl %ecx, 0x2c(%r14)
testb $0x4, %al
je 0x3953
movl 0x38(%rbx), %ecx
movl %ecx, 0x30(%r14)
testb $0x8, %al
je 0x395e
movl 0x3c(%rbx), %ecx
movl %ecx, 0x34(%r14)
testb $0x10, %al
je 0x3969
movl 0x40(%rbx), %eax
movl %eax, 0x38(%r14)
movq %r14, %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x4962
movq 0x8(%r14), %rsi
movq 0xf8(%r14), %rax
cmpq 0x8(%rax), %rsi
je 0x39fe
movq (%r14), %rax
cmpq 0x28(%rbx), %rax
jne 0x39fe
leaq 0x799a(%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)
movq $0x0, 0x18(%rcx)
movl 0x50(%rbx), %eax
movl %eax, 0x20(%rcx)
leaq 0x7f9f(%rip), %rax      # 0xb988
movq (%rax), %rdi
movl 0x58(%rbx), %edx
callq 0x2030
movq %r14, %rdi
xorl %eax, %eax
callq 0x34ad
cmpl $0x0, 0x9c(%r14)
je 0x3a18
leaq 0x7921(%rip), %rax      # 0xb330
movl (%rax), %eax
decl %eax
movl %eax, (%rsp)
jmp 0x3a21
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)
xorl %eax, %eax
movl %eax, 0x10(%rcx)
movq $0x0, 0x18(%rcx)
movl %eax, 0x20(%rcx)
movq 0x28(%rbx), %rsi
movq 0x58(%rbx), %rdx
andq $-0x51, %rdx
orq $0x10, %rdx
movq %rdx, 0x58(%rbx)
leaq 0x7f2e(%rip), %rax      # 0xb988
movq (%rax), %rdi
callq 0x2030
addq $0x28, %rsp
popq %rbx
popq %r14
retq