// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rdi
xorl %esi, %esi
movb $0x0, %al
callq 0x6e90
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rcx
andq $-0x21, %rcx
movq %rcx, 0x58(%rax)
cmpq $0x0, -0x38(%rbp)
je 0x3d87
movq -0x38(%rbp), %rdi
movl $0x1, %esi
movb $0x0, %al
callq 0x5520
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x3bec
movq -0x8(%rbp), %rax
movl 0x30(%rax), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x28(%rax)
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
andq $0x2, %rax
cmpq $0x0, %rax
je 0x3c0c
movq -0x8(%rbp), %rax
movl 0x34(%rax), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x2c(%rax)
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
andq $0x4, %rax
cmpq $0x0, %rax
je 0x3c2c
movq -0x8(%rbp), %rax
movl 0x38(%rax), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x30(%rax)
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
andq $0x8, %rax
cmpq $0x0, %rax
je 0x3c4c
movq -0x8(%rbp), %rax
movl 0x3c(%rax), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x34(%rax)
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
andq $0x10, %rax
cmpq $0x0, %rax
je 0x3c6c
movq -0x8(%rbp), %rax
movl 0x40(%rax), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x38(%rax)
movq -0x38(%rbp), %rdi
xorl %esi, %esi
movb $0x0, %al
callq 0x5520
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
andq $0x40, %rax
cmpq $0x0, %rax
je 0x3cb0
cmpl $0x0, -0x10(%rbp)
jne 0x3c9e
movq -0x38(%rbp), %rdi
movb $0x0, %al
callq 0x6df0
jmp 0x3cae
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rcx
andq $-0x41, %rcx
movq %rcx, 0x58(%rax)
jmp 0x3cb0
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x38(%rbp), %rcx
movq 0xf8(%rcx), %rcx
cmpq 0x8(%rcx), %rax
je 0x3d85
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rbp), %rcx
cmpq 0x28(%rcx), %rax
jne 0x3d85
movq -0x38(%rbp), %rax
movl 0x28(%rax), %eax
leaq 0x8630(%rip), %rcx      # 0xc320
subl (%rcx), %eax
movl %eax, -0x30(%rbp)
movq -0x38(%rbp), %rax
movl 0x2c(%rax), %eax
leaq 0x861d(%rip), %rcx      # 0xc320
subl (%rcx), %eax
movl %eax, -0x2c(%rbp)
movq -0x38(%rbp), %rax
movl 0x30(%rax), %eax
leaq 0x860a(%rip), %rcx      # 0xc320
movl (%rcx), %ecx
subl $0x1, %ecx
shll %ecx
addl %ecx, %eax
movl %eax, -0x28(%rbp)
movq -0x38(%rbp), %rax
movl 0x34(%rax), %eax
leaq 0x85f0(%rip), %rcx      # 0xc320
movl (%rcx), %ecx
subl $0x1, %ecx
shll %ecx
addl %ecx, %eax
movl %eax, -0x24(%rbp)
movl $0x1, -0x20(%rbp)
movq $0x0, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl 0x50(%rax), %eax
movl %eax, -0x10(%rbp)
leaq 0x8c1c(%rip), %rax      # 0xc978
movq (%rax), %rdi
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rsi
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movl %eax, %edx
leaq -0x30(%rbp), %rcx
callq 0x2030
movq -0x38(%rbp), %rdi
movb $0x0, %al
callq 0x3540
jmp 0x3d87
cmpq $0x0, -0x38(%rbp)
je 0x3dbb
movq -0x38(%rbp), %rax
cmpl $0x0, 0x9c(%rax)
je 0x3dbb
leaq 0x857e(%rip), %rax      # 0xc320
movl (%rax), %eax
subl $0x1, %eax
movl %eax, -0x30(%rbp)
leaq 0x856f(%rip), %rax      # 0xc320
movl (%rax), %eax
subl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x3dcf
movq -0x8(%rbp), %rax
movl 0x30(%rax), %eax
movl %eax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movl 0x34(%rax), %eax
movl %eax, -0x2c(%rbp)
movq -0x8(%rbp), %rax
movl 0x38(%rax), %eax
movl %eax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movl 0x3c(%rax), %eax
movl %eax, -0x24(%rbp)
movl $0x0, -0x20(%rbp)
movq $0x0, -0x18(%rbp)
movl $0x0, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rcx
andq $-0x41, %rcx
movq %rcx, 0x58(%rax)
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rcx
orq $0x10, %rcx
movq %rcx, 0x58(%rax)
leaq 0x8b58(%rip), %rax      # 0xc978
movq (%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rsi
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movl %eax, %edx
leaq -0x30(%rbp), %rcx
callq 0x2030
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)