// File: /workspace/github_c_makefile_star2_O0/mchackorg[P]mcwm/mcwm.c
// Function: botright
void botright(void)
{
    int16_t pointx;
    int16_t pointy;
    int16_t mon_x;
    int16_t mon_y;
    uint16_t mon_width;
    uint16_t mon_height;

    if (NULL == focuswin)
    {
        return;
    }

    if (NULL == focuswin->monitor)
    {
        mon_x = 0;
        mon_y = 0;
        mon_width = screen->width_in_pixels;;
        mon_height = screen->height_in_pixels;
    }
    else
    {
        mon_x = focuswin->monitor->x;
        mon_y = focuswin->monitor->y;
        mon_width = focuswin->monitor->width;
        mon_height = focuswin->monitor->height;
    }

    raisewindow(focuswin->id);

    if (!getpointer(focuswin->id, &pointx, &pointy))
    {
        return;
    }

    focuswin->x = mon_x + mon_width - (focuswin->width + conf.borderwidth * 2);
    focuswin->y =  mon_y + mon_height - (focuswin->height + conf.borderwidth
                                         * 2);
    movewindow(focuswin->id, focuswin->x, focuswin->y);
    xcb_warp_pointer(conn, XCB_NONE, focuswin->id, 0, 0, 0, 0,
                     pointx, pointy);
    xcb_flush(conn);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
xorl %eax, %eax
cmpq 0x4a2f(%rip), %rax      # 0xc4c0
jne 0x7a98
jmp 0x7c19
movq 0x4a21(%rip), %rcx      # 0xc4c0
xorl %eax, %eax
cmpq 0x38(%rcx), %rax
jne 0x7ad3
movw $0x0, -0x6(%rbp)
movw $0x0, -0x8(%rbp)
movq 0x49de(%rip), %rax      # 0xc498
movw 0x14(%rax), %ax
movw %ax, -0xa(%rbp)
movq 0x49cf(%rip), %rax      # 0xc498
movw 0x16(%rax), %ax
movw %ax, -0xc(%rbp)
jmp 0x7b1f
movq 0x49e6(%rip), %rax      # 0xc4c0
movq 0x38(%rax), %rax
movw 0x10(%rax), %ax
movw %ax, -0x6(%rbp)
movq 0x49d3(%rip), %rax      # 0xc4c0
movq 0x38(%rax), %rax
movw 0x12(%rax), %ax
movw %ax, -0x8(%rbp)
movq 0x49c0(%rip), %rax      # 0xc4c0
movq 0x38(%rax), %rax
movw 0x14(%rax), %ax
movw %ax, -0xa(%rbp)
movq 0x49ad(%rip), %rax      # 0xc4c0
movq 0x38(%rax), %rax
movw 0x16(%rax), %ax
movw %ax, -0xc(%rbp)
movq 0x499a(%rip), %rax      # 0xc4c0
movl (%rax), %edi
callq 0x5460
movq 0x498c(%rip), %rax      # 0xc4c0
movl (%rax), %edi
leaq -0x2(%rbp), %rsi
leaq -0x4(%rbp), %rdx
callq 0x5af0
testb $0x1, %al
jne 0x7b4c
jmp 0x7c19
movswl -0x6(%rbp), %eax
movzwl -0xa(%rbp), %ecx
addl %ecx, %eax
movq 0x4963(%rip), %rcx      # 0xc4c0
movzwl 0xa(%rcx), %ecx
movl 0x4909(%rip), %edx      # 0xc470
shll %edx
addl %edx, %ecx
subl %ecx, %eax
movw %ax, %cx
movq 0x4949(%rip), %rax      # 0xc4c0
movw %cx, 0x6(%rax)
movswl -0x8(%rbp), %eax
movzwl -0xc(%rbp), %ecx
addl %ecx, %eax
movq 0x4934(%rip), %rcx      # 0xc4c0
movzwl 0xc(%rcx), %ecx
movl 0x48da(%rip), %edx      # 0xc470
shll %edx
addl %edx, %ecx
subl %ecx, %eax
movw %ax, %cx
movq 0x491a(%rip), %rax      # 0xc4c0
movw %cx, 0x8(%rax)
movq 0x490f(%rip), %rax      # 0xc4c0
movl (%rax), %edi
movq 0x4906(%rip), %rax      # 0xc4c0
movw 0x6(%rax), %cx
movq 0x48fb(%rip), %rax      # 0xc4c0
movzwl %cx, %esi
movzwl 0x8(%rax), %edx
callq 0x42a0
movq 0x48b8(%rip), %rdi      # 0xc490
movq 0x48e1(%rip), %rax      # 0xc4c0
movl (%rax), %edx
movw -0x2(%rbp), %ax
xorl %r9d, %r9d
movl %r9d, %esi
movl %r9d, %ecx
movl %r9d, %r8d
movl $0x0, (%rsp)
cwtl
movl %eax, 0x8(%rsp)
movswl -0x4(%rbp), %eax
movl %eax, 0x10(%rsp)
callq 0x2050
movl %eax, -0x10(%rbp)
movq 0x487c(%rip), %rdi      # 0xc490
callq 0x2140
addq $0x30, %rsp
popq %rbp
retq
nop