// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_layout_row
NK_API void
nk_layout_row(struct nk_context *ctx, enum nk_layout_format fmt,
    float height, int cols, const float *ratio)
{
    int i;
    int n_undef = 0;
    struct nk_window *win;
    struct nk_panel *layout;

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

    win = ctx->current;
    layout = win->layout;
    nk_panel_layout(ctx, win, height, cols);
    if (fmt == NK_DYNAMIC) {
        /* calculate width of undefined widget ratios */
        float r = 0;
        layout->row.ratio = ratio;
        for (i = 0; i < cols; ++i) {
            if (ratio[i] < 0.0f)
                n_undef++;
            else r += ratio[i];
        }
        r = NK_SATURATE(1.0f - r);
        layout->row.type = NK_LAYOUT_DYNAMIC;
        layout->row.item_width = (r > 0 && n_undef > 0) ? (r / (float)n_undef):0;
    } else {
        layout->row.ratio = ratio;
        layout->row.type = NK_LAYOUT_STATIC;
        layout->row.item_width = 0;
        layout->row.item_offset = 0;
    }
    layout->row.item_offset = 0;
    layout->row.filled = 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rcx, %rbx
movl %edx, %r14d
movss %xmm0, 0xc(%rsp)
movl %esi, %ebp
movq %rdi, %r15
testq %rdi, %rdi
jne 0x3d7ea
movq 0x4782d(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x2c53e(%rip), %rsi     # 0x69d0c
leaq 0x2c555(%rip), %rdx     # 0x69d2a
movl $0x55a4, %ecx           # imm = 0x55A4
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
movq 0x4780(%r15), %rsi
testq %rsi, %rsi
jne 0x3d82b
movq 0x477f3(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x2c504(%rip), %rsi     # 0x69d0c
leaq 0x2c51b(%rip), %rdx     # 0x69d2a
movl $0x55a5, %ecx           # imm = 0x55A5
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
movq 0x4780(%r15), %rsi
cmpq $0x0, 0xa8(%rsi)
jne 0x3d873
movq 0x477b4(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x2c4c5(%rip), %rsi     # 0x69d0c
leaq 0x2c4dc(%rip), %rdx     # 0x69d2a
movl $0x55a6, %ecx           # imm = 0x55A6
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
movq 0x4780(%r15), %rsi
testq %rsi, %rsi
je 0x3d93a
movq 0xa8(%rsi), %r12
testq %r12, %r12
je 0x3d93a
movq %r15, %rdi
movss 0xc(%rsp), %xmm0
movl %r14d, %edx
callq 0x3d2d6
testl %ebp, %ebp
je 0x3d8ae
movq %rbx, 0x88(%r12)
movl $0x7, 0x70(%r12)
xorps %xmm0, %xmm0
jmp 0x3d927
xorl %ecx, %ecx
testl %r14d, %r14d
cmovlel %ecx, %r14d
movq %rbx, 0x88(%r12)
xorps %xmm0, %xmm0
xorl %eax, %eax
xorps %xmm1, %xmm1
cmpq %rcx, %r14
je 0x3d8ea
movss (%rbx,%rcx,4), %xmm2
xorl %edx, %edx
ucomiss %xmm2, %xmm0
seta %sil
ja 0x3d8e0
addss %xmm2, %xmm1
movb %sil, %dl
addl %edx, %eax
incq %rcx
jmp 0x3d8c7
movss 0x28f42(%rip), %xmm2    # 0x66834
movaps %xmm2, %xmm0
subss %xmm1, %xmm0
minss %xmm0, %xmm2
xorps %xmm1, %xmm1
movl $0x3, 0x70(%r12)
xorps %xmm0, %xmm0
cmpltss %xmm2, %xmm0
testl %eax, %eax
je 0x3d924
cvtsi2ss %eax, %xmm3
maxss %xmm1, %xmm2
divss %xmm3, %xmm2
movaps %xmm2, %xmm1
andps %xmm1, %xmm0
movss %xmm0, 0x90(%r12)
andq $0x0, 0x98(%r12)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq