// File: /workspace/github_c_makefile_star2_O0/kaugm[P]mmwm/mmwm.c
// Function: configurerequest
void configurerequest(xcb_generic_event_t *e)
{
    xcb_configure_request_event_t *ev = (xcb_configure_request_event_t *)e;
    client *c = wintoclient(ev->window);

    DEBUG("xcb: configure request");

    if (c && c->ismaximized) {
        setmaximize(c, true);
    } else {
        unsigned int v[7];
        unsigned int i = 0;
        int borders = c ? client_borders(c) : 0;
        if (ev->value_mask & XCB_CONFIG_WINDOW_X)
            v[i++] = ev->x;
        if (ev->value_mask & XCB_CONFIG_WINDOW_Y) {
            int y = ev->y;
            if (c && c->type == ewmh->_NET_WM_WINDOW_TYPE_NORMAL) {
#ifndef EWMH_TASKBAR
                if (M_SHOWPANEL && TOP_PANEL && y < PANEL_HEIGHT)
#else
                if (y < M_WY)
#endif /* EWMH_TASKBAR */
                     y = PANEL_HEIGHT;
            }
            v[i++] = y;
        }
        if (ev->value_mask & XCB_CONFIG_WINDOW_WIDTH)
            v[i++] = (ev->width < M_WW - borders) ? ev->width : M_WW + borders;
        if (ev->value_mask & XCB_CONFIG_WINDOW_HEIGHT)
            v[i++] = (ev->height < M_WH - borders) ? ev->height : M_WH + borders;
        if (ev->value_mask & XCB_CONFIG_WINDOW_BORDER_WIDTH)
            v[i++] = ev->border_width;
        if (ev->value_mask & XCB_CONFIG_WINDOW_SIBLING)
            v[i++] = ev->sibling;
        if (ev->value_mask & XCB_CONFIG_WINDOW_STACK_MODE)
            v[i++] = ev->stack_mode;
        xcb_configure_window(dis, ev->window, ev->value_mask, v);
    }
    tile();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movl 0x8(%rax), %edi
callq 0x88d0
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x6b18
movq -0x18(%rbp), %rax
testb $0x1, 0x1c(%rax)
je 0x6b18
movq -0x18(%rbp), %rdi
movl $0x1, %esi
callq 0x8320
jmp 0x6d2d
movl $0x0, -0x44(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x6b34
movq -0x18(%rbp), %rdi
callq 0x57c0
movl %eax, -0x54(%rbp)
jmp 0x6b3b
xorl %eax, %eax
movl %eax, -0x54(%rbp)
jmp 0x6b3b
movl -0x54(%rbp), %eax
movl %eax, -0x48(%rbp)
movq -0x10(%rbp), %rax
movzwl 0x1a(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x6b6a
movq -0x10(%rbp), %rax
movswl 0x10(%rax), %ecx
movl -0x44(%rbp), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, -0x44(%rbp)
movl %eax, %eax
movl %ecx, -0x40(%rbp,%rax,4)
movq -0x10(%rbp), %rax
movzwl 0x1a(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x6bda
movq -0x10(%rbp), %rax
movswl 0x12(%rax), %eax
movl %eax, -0x4c(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x6bc6
movq -0x18(%rbp), %rax
movl 0x24(%rax), %eax
movq 0x6c1e(%rip), %rcx      # 0xd7b8
cmpl 0x104(%rcx), %eax
jne 0x6bc6
movq 0x6c27(%rip), %rax      # 0xd7d0
testb $0x1, 0x68(%rax)
je 0x6bc4
xorl %eax, %eax
testb $0x1, %al
jne 0x6bb7
jmp 0x6bc4
cmpl $0x0, -0x4c(%rbp)
jge 0x6bc4
movl $0x0, -0x4c(%rbp)
jmp 0x6bc6
movl -0x4c(%rbp), %ecx
movl -0x44(%rbp), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, -0x44(%rbp)
movl %eax, %eax
movl %ecx, -0x40(%rbp,%rax,4)
movq -0x10(%rbp), %rax
movzwl 0x1a(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x6c34
movq -0x10(%rbp), %rax
movzwl 0x14(%rax), %eax
movq 0x6bdf(%rip), %rcx      # 0xd7d8
movl 0x34(%rcx), %ecx
subl -0x48(%rbp), %ecx
cmpl %ecx, %eax
jge 0x6c10
movq -0x10(%rbp), %rax
movzwl 0x14(%rax), %eax
movl %eax, -0x58(%rbp)
jmp 0x6c20
movq 0x6bc1(%rip), %rax      # 0xd7d8
movl 0x34(%rax), %eax
addl -0x48(%rbp), %eax
movl %eax, -0x58(%rbp)
movl -0x58(%rbp), %ecx
movl -0x44(%rbp), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, -0x44(%rbp)
movl %eax, %eax
movl %ecx, -0x40(%rbp,%rax,4)
movq -0x10(%rbp), %rax
movzwl 0x1a(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x6c8e
movq -0x10(%rbp), %rax
movzwl 0x16(%rax), %eax
movq 0x6b85(%rip), %rcx      # 0xd7d8
movl 0x38(%rcx), %ecx
subl -0x48(%rbp), %ecx
cmpl %ecx, %eax
jge 0x6c6a
movq -0x10(%rbp), %rax
movzwl 0x16(%rax), %eax
movl %eax, -0x5c(%rbp)
jmp 0x6c7a
movq 0x6b67(%rip), %rax      # 0xd7d8
movl 0x38(%rax), %eax
addl -0x48(%rbp), %eax
movl %eax, -0x5c(%rbp)
movl -0x5c(%rbp), %ecx
movl -0x44(%rbp), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, -0x44(%rbp)
movl %eax, %eax
movl %ecx, -0x40(%rbp,%rax,4)
movq -0x10(%rbp), %rax
movzwl 0x1a(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x6cb7
movq -0x10(%rbp), %rax
movzwl 0x18(%rax), %ecx
movl -0x44(%rbp), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, -0x44(%rbp)
movl %eax, %eax
movl %ecx, -0x40(%rbp,%rax,4)
movq -0x10(%rbp), %rax
movzwl 0x1a(%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x6cdf
movq -0x10(%rbp), %rax
movl 0xc(%rax), %ecx
movl -0x44(%rbp), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, -0x44(%rbp)
movl %eax, %eax
movl %ecx, -0x40(%rbp,%rax,4)
movq -0x10(%rbp), %rax
movzwl 0x1a(%rax), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x6d08
movq -0x10(%rbp), %rax
movzbl 0x1(%rax), %ecx
movl -0x44(%rbp), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, -0x44(%rbp)
movl %eax, %eax
movl %ecx, -0x40(%rbp,%rax,4)
movq 0x6a91(%rip), %rdi      # 0xd7a0
movq -0x10(%rbp), %rax
movl 0x8(%rax), %esi
movq -0x10(%rbp), %rax
movw 0x1a(%rax), %ax
leaq -0x40(%rbp), %rcx
movzwl %ax, %edx
callq 0x32c0
movl %eax, -0x50(%rbp)
callq 0x57f0
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax,%rax)