// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_spacing
NK_API void
nk_spacing(struct nk_context *ctx, int cols)
{
    struct nk_window *win;
    struct nk_panel *layout;
    struct nk_rect none;
    int i, index, rows;

    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    NK_ASSERT(ctx->current->layout);
    if (!ctx || !ctx->current || !ctx->current->layout)
        return;

    /* spacing over row boundaries */
    win = ctx->current;
    layout = win->layout;
    index = (layout->row.index + cols) % layout->row.columns;
    rows = (layout->row.index + cols) / layout->row.columns;
    if (rows) {
        for (i = 0; i < rows; ++i)
            nk_panel_alloc_row(ctx, win);
        cols = index;
    }
    /* non table layout need to allocate space */
    if (layout->row.type != NK_LAYOUT_DYNAMIC_FIXED &&
        layout->row.type != NK_LAYOUT_STATIC_FIXED) {
        for (i = 0; i < cols; ++i)
            nk_panel_alloc_space(&none, ctx);
    } layout->row.index = index;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movl %esi, 0x3c(%rsp)
cmpq $0x0, 0x40(%rsp)
jne 0x65d48
movq 0x5f2d4(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x4b67a(%rip), %rsi     # 0xb13a0
leaq 0x4b691(%rip), %rdx     # 0xb13be
movl $0x5b29, %ecx           # imm = 0x5B29
movb $0x0, %al
callq 0x13ec0
movq 0x5f2b0(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x65d4a
jmp 0x65d4c
movq 0x40(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
jne 0x65d8e
movq 0x5f28e(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x4b634(%rip), %rsi     # 0xb13a0
leaq 0x4b64b(%rip), %rdx     # 0xb13be
movl $0x5b2a, %ecx           # imm = 0x5B2A
movb $0x0, %al
callq 0x13ec0
movq 0x5f26a(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x65d90
jmp 0x65d92
movq 0x40(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x65ddb
movq 0x5f241(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x4b5e7(%rip), %rsi     # 0xb13a0
leaq 0x4b5fe(%rip), %rdx     # 0xb13be
movl $0x5b2b, %ecx           # imm = 0x5B2B
movb $0x0, %al
callq 0x13ec0
movq 0x5f21d(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x65ddd
cmpq $0x0, 0x40(%rsp)
je 0x65e0a
movq 0x40(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
je 0x65e0a
movq 0x40(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x65e0f
jmp 0x65ef8
movq 0x40(%rsp), %rax
movq 0x4780(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq 0xa8(%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movl 0x74(%rax), %eax
addl 0x3c(%rsp), %eax
movq 0x28(%rsp), %rcx
cltd
idivl 0x80(%rcx)
movl %edx, 0x10(%rsp)
movq 0x28(%rsp), %rax
movl 0x74(%rax), %eax
addl 0x3c(%rsp), %eax
movq 0x28(%rsp), %rcx
cltd
idivl 0x80(%rcx)
movl %eax, 0xc(%rsp)
cmpl $0x0, 0xc(%rsp)
je 0x65ea6
movl $0x0, 0x14(%rsp)
movl 0x14(%rsp), %eax
cmpl 0xc(%rsp), %eax
jge 0x65e9e
movq 0x40(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x65f00
movl 0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x65e78
movl 0x10(%rsp), %eax
movl %eax, 0x3c(%rsp)
movq 0x28(%rsp), %rax
cmpl $0x0, 0x70(%rax)
je 0x65eec
movq 0x28(%rsp), %rax
cmpl $0x4, 0x70(%rax)
je 0x65eec
movl $0x0, 0x14(%rsp)
movl 0x14(%rsp), %eax
cmpl 0x3c(%rsp), %eax
jge 0x65eea
movq 0x40(%rsp), %rsi
leaq 0x18(%rsp), %rdi
callq 0x62030
movl 0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x65ec4
jmp 0x65eec
movl 0x10(%rsp), %ecx
movq 0x28(%rsp), %rax
movl %ecx, 0x74(%rax)
addq $0x48, %rsp
retq
nopl (%rax)