// File: /workspace/github_c_makefile_star2_O0/tkln[P]mcwm/mcwm.c
// Function: resizestep
int resizestep(struct client *client, const union cb_arg arg)
{
    int step_x = MOVE_STEP;
    int step_y = MOVE_STEP;
    
    if (NULL == client)
    {
        return 0;
    }

    if (client->maxed)
    {
        /* Can't resize a fully maximized window. */
        return 0;
    }
    
    raisewindow(client->id);
    
    if (client->width_inc > 1)
    {
        step_x = client->width_inc;
    }
    else
    {
        step_x = MOVE_STEP;
    }

    if (client->height_inc > 1)
    {
        step_y = client->height_inc;
    }
    else
    {
        step_y = MOVE_STEP;        
    }

    switch (arg.c)
    {
    case 'h':
        client->width = client->width - step_x;
        break;

    case 'j':
        client->height = client->height + step_y;
        break;

    case 'k':
        client->height = client->height - step_y;
        break;

    case 'l':
        client->width = client->width + step_x;
        break;

    default:
        PDEBUG("resizestep in unknown direction.\n");
        break;
    } /* switch direction */
    
    resizelim(client);
    
    /* If this window was vertically maximized, remember that it isn't now. */
    if (client->vertmaxed)
    {
        client->vertmaxed = false;
    }

    xcb_warp_pointer(conn, XCB_NONE, client->id, 0, 0, 0, 0,
                     client->width / 2, client->height / 2);
    xcb_flush(conn);
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rsi, -0x10(%rbp)
movq %rdi, -0x18(%rbp)
movl $0x20, -0x1c(%rbp)
movl $0x20, -0x20(%rbp)
xorl %eax, %eax
cmpq -0x18(%rbp), %rax
jne 0x3892
movl $0x0, -0x4(%rbp)
jmp 0x3a03
movq -0x18(%rbp), %rax
testb $0x1, 0x31(%rax)
je 0x38a8
movl $0x0, -0x4(%rbp)
jmp 0x3a03
movq -0x18(%rbp), %rax
movl (%rax), %edi
callq 0x6f50
movq -0x18(%rbp), %rax
cmpl $0x1, 0x20(%rax)
jle 0x38c9
movq -0x18(%rbp), %rax
movl 0x20(%rax), %eax
movl %eax, -0x1c(%rbp)
jmp 0x38d0
movl $0x20, -0x1c(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x1, 0x24(%rax)
jle 0x38e6
movq -0x18(%rbp), %rax
movl 0x24(%rax), %eax
movl %eax, -0x20(%rbp)
jmp 0x38ed
movl $0x20, -0x20(%rbp)
movsbl -0x10(%rbp), %eax
addl $-0x68, %eax
movl %eax, %ecx
movq %rcx, -0x30(%rbp)
subl $0x4, %eax
ja 0x3973
movq -0x30(%rbp), %rax
leaq 0x670e(%rip), %rcx      # 0xa018
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x18(%rbp), %rax
movzwl 0xa(%rax), %eax
subl -0x1c(%rbp), %eax
movw %ax, %cx
movq -0x18(%rbp), %rax
movw %cx, 0xa(%rax)
jmp 0x3975
movq -0x18(%rbp), %rax
movzwl 0xc(%rax), %eax
addl -0x20(%rbp), %eax
movw %ax, %cx
movq -0x18(%rbp), %rax
movw %cx, 0xc(%rax)
jmp 0x3975
movq -0x18(%rbp), %rax
movzwl 0xc(%rax), %eax
subl -0x20(%rbp), %eax
movw %ax, %cx
movq -0x18(%rbp), %rax
movw %cx, 0xc(%rax)
jmp 0x3975
movq -0x18(%rbp), %rax
movzwl 0xa(%rax), %eax
addl -0x1c(%rbp), %eax
movw %ax, %cx
movq -0x18(%rbp), %rax
movw %cx, 0xa(%rax)
jmp 0x3975
jmp 0x3975
movq -0x18(%rbp), %rdi
callq 0x7380
movq -0x18(%rbp), %rax
testb $0x1, 0x30(%rax)
je 0x3990
movq -0x18(%rbp), %rax
movb $0x0, 0x30(%rax)
movq 0x9fe1(%rip), %rdi      # 0xd978
movq -0x18(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x34(%rbp)
movq -0x18(%rbp), %rax
movzwl 0xa(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movw %ax, %r10w
movq -0x18(%rbp), %rax
movzwl 0xc(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl -0x34(%rbp), %edx
xorl %r9d, %r9d
movl %r9d, %esi
movl %r9d, %ecx
movl %r9d, %r8d
movl $0x0, (%rsp)
movswl %r10w, %r10d
movl %r10d, 0x8(%rsp)
cwtl
movl %eax, 0x10(%rsp)
callq 0x3050
movl %eax, -0x24(%rbp)
movq 0x9f81(%rip), %rdi      # 0xd978
callq 0x3140
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)