// File: /workspace/github_c_makefile_star2_O0/mchackorg[P]mcwm/mcwm.c
// Function: movestep
void movestep(struct client *client, char direction)
{
    int16_t start_x;
    int16_t start_y;

    if (NULL == client)
    {
        return;
    }

    if (client->maxed)
    {
        /* We can't move a fully maximized window. */
        return;
    }

    /* Save pointer position so we can warp pointer here later. */
    if (!getpointer(client->id, &start_x, &start_y))
    {
        return;
    }

    raisewindow(client->id);
    switch (direction)
    {
    case 'h':
        client->x = client->x - MOVE_STEP;
        break;

    case 'j':
        client->y = client->y + MOVE_STEP;
        break;

    case 'k':
        client->y = client->y - MOVE_STEP;
        break;

    case 'l':
        client->x = client->x + MOVE_STEP;
        break;

    default:
        PDEBUG("movestep: Moving in unknown direction.\n");
        break;
    } /* switch direction */

    movelim(client);

    /*
     * If the pointer was inside the window to begin with, move
     * pointer back to where it was, relative to the window.
     */
    if (start_x > 0 - conf.borderwidth && start_x < client->width
        + conf.borderwidth && start_y > 0 - conf.borderwidth && start_y
        < client->height + conf.borderwidth)
    {
        xcb_warp_pointer(conn, XCB_NONE, client->id, 0, 0, 0, 0,
                         start_x, start_y);
        xcb_flush(conn);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movb %sil, %al
movq %rdi, -0x8(%rbp)
movb %al, -0x9(%rbp)
xorl %eax, %eax
cmpq -0x8(%rbp), %rax
jne 0x71ff
jmp 0x735b
movq -0x8(%rbp), %rax
testb $0x1, 0x31(%rax)
je 0x720e
jmp 0x735b
movq -0x8(%rbp), %rax
movl (%rax), %edi
leaq -0xc(%rbp), %rsi
leaq -0xe(%rbp), %rdx
callq 0x5af0
testb $0x1, %al
jne 0x722a
jmp 0x735b
movq -0x8(%rbp), %rax
movl (%rax), %edi
callq 0x5460
movsbl -0x9(%rbp), %eax
addl $-0x68, %eax
movl %eax, %ecx
movq %rcx, -0x20(%rbp)
subl $0x4, %eax
ja 0x72bb
movq -0x20(%rbp), %rax
leaq 0x1f46(%rip), %rcx      # 0x9198
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x8(%rbp), %rax
movswl 0x6(%rax), %eax
subl $0x20, %eax
movw %ax, %cx
movq -0x8(%rbp), %rax
movw %cx, 0x6(%rax)
jmp 0x72bd
movq -0x8(%rbp), %rax
movswl 0x8(%rax), %eax
addl $0x20, %eax
movw %ax, %cx
movq -0x8(%rbp), %rax
movw %cx, 0x8(%rax)
jmp 0x72bd
movq -0x8(%rbp), %rax
movswl 0x8(%rax), %eax
subl $0x20, %eax
movw %ax, %cx
movq -0x8(%rbp), %rax
movw %cx, 0x8(%rax)
jmp 0x72bd
movq -0x8(%rbp), %rax
movswl 0x6(%rax), %eax
addl $0x20, %eax
movw %ax, %cx
movq -0x8(%rbp), %rax
movw %cx, 0x6(%rax)
jmp 0x72bd
jmp 0x72bd
movq -0x8(%rbp), %rdi
callq 0x6a70
movswl -0xc(%rbp), %eax
xorl %ecx, %ecx
subl 0x519e(%rip), %ecx      # 0xc470
cmpl %ecx, %eax
jle 0x735b
movswl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
movzwl 0xa(%rcx), %ecx
addl 0x5184(%rip), %ecx      # 0xc470
cmpl %ecx, %eax
jge 0x735b
movswl -0xe(%rbp), %eax
xorl %ecx, %ecx
subl 0x5174(%rip), %ecx      # 0xc470
cmpl %ecx, %eax
jle 0x735b
movswl -0xe(%rbp), %eax
movq -0x8(%rbp), %rcx
movzwl 0xc(%rcx), %ecx
addl 0x515e(%rip), %ecx      # 0xc470
cmpl %ecx, %eax
jge 0x735b
movq 0x5173(%rip), %rdi      # 0xc490
movq -0x8(%rbp), %rax
movl (%rax), %edx
movw -0xc(%rbp), %ax
xorl %r9d, %r9d
movl %r9d, %esi
movl %r9d, %ecx
movl %r9d, %r8d
movl $0x0, (%rsp)
cwtl
movl %eax, 0x8(%rsp)
movswl -0xe(%rbp), %eax
movl %eax, 0x10(%rsp)
callq 0x2050
movl %eax, -0x14(%rbp)
movq 0x513a(%rip), %rdi      # 0xc490
callq 0x2140
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)