// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movl %esi, 0x4c(%rsp)
movss %xmm0, 0x48(%rsp)
movl %edx, 0x44(%rsp)
movq %rcx, 0x38(%rsp)
movl $0x0, 0x30(%rsp)
cmpq $0x0, 0x50(%rsp)
jne 0x6025f
movq 0x64dbd(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x51163(%rip), %rsi     # 0xb13a0
leaq 0x5117a(%rip), %rdx     # 0xb13be
movl $0x55a4, %ecx           # imm = 0x55A4
movb $0x0, %al
callq 0x13ec0
movq 0x64d99(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x60261
jmp 0x60263
movq 0x50(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
jne 0x602a5
movq 0x64d77(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x5111d(%rip), %rsi     # 0xb13a0
leaq 0x51134(%rip), %rdx     # 0xb13be
movl $0x55a5, %ecx           # imm = 0x55A5
movb $0x0, %al
callq 0x13ec0
movq 0x64d53(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x602a7
jmp 0x602a9
movq 0x50(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x602f2
movq 0x64d2a(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x510d0(%rip), %rsi     # 0xb13a0
leaq 0x510e7(%rip), %rdx     # 0xb13be
movl $0x55a6, %ecx           # imm = 0x55A6
movb $0x0, %al
callq 0x13ec0
movq 0x64d06(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x602f4
cmpq $0x0, 0x50(%rsp)
je 0x60321
movq 0x50(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
je 0x60321
movq 0x50(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x60326
jmp 0x60549
movq 0x50(%rsp), %rax
movq 0x4780(%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq 0xa8(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x50(%rsp), %rdi
movq 0x28(%rsp), %rsi
movss 0x48(%rsp), %xmm0
movl 0x44(%rsp), %edx
callq 0x5fa00
cmpl $0x0, 0x4c(%rsp)
jne 0x604ec
xorps %xmm0, %xmm0
movss %xmm0, 0x1c(%rsp)
movq 0x38(%rsp), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x88(%rax)
movl $0x0, 0x34(%rsp)
movl 0x34(%rsp), %eax
cmpl 0x44(%rsp), %eax
jge 0x603e2
movq 0x38(%rsp), %rax
movslq 0x34(%rsp), %rcx
xorps %xmm0, %xmm0
ucomiss (%rax,%rcx,4), %xmm0
jbe 0x603b8
movl 0x30(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x30(%rsp)
jmp 0x603d3
movq 0x38(%rsp), %rax
movslq 0x34(%rsp), %rcx
movss (%rax,%rcx,4), %xmm0
addss 0x1c(%rsp), %xmm0
movss %xmm0, 0x1c(%rsp)
jmp 0x603d5
movl 0x34(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x34(%rsp)
jmp 0x6038e
movss 0x4d0fe(%rip), %xmm0    # 0xad4e8
subss 0x1c(%rsp), %xmm0
movss 0x4d0f0(%rip), %xmm1    # 0xad4e8
ucomiss %xmm1, %xmm0
jbe 0x6040d
movss 0x4d0e3(%rip), %xmm0    # 0xad4e8
movss %xmm0, 0x18(%rsp)
jmp 0x60421
movss 0x4d0d3(%rip), %xmm0    # 0xad4e8
subss 0x1c(%rsp), %xmm0
movss %xmm0, 0x18(%rsp)
movss 0x18(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x6047c
movss 0x4d0b1(%rip), %xmm0    # 0xad4e8
subss 0x1c(%rsp), %xmm0
movss 0x4d0a3(%rip), %xmm1    # 0xad4e8
ucomiss %xmm1, %xmm0
jbe 0x6045a
movss 0x4d096(%rip), %xmm0    # 0xad4e8
movss %xmm0, 0x14(%rsp)
jmp 0x6046e
movss 0x4d086(%rip), %xmm0    # 0xad4e8
subss 0x1c(%rsp), %xmm0
movss %xmm0, 0x14(%rsp)
movss 0x14(%rsp), %xmm0
movss %xmm0, 0x10(%rsp)
jmp 0x60487
xorps %xmm0, %xmm0
movss %xmm0, 0x10(%rsp)
jmp 0x60487
movss 0x10(%rsp), %xmm0
movss %xmm0, 0x1c(%rsp)
movq 0x20(%rsp), %rax
movl $0x3, 0x70(%rax)
movss 0x1c(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x604cc
cmpl $0x0, 0x30(%rsp)
jle 0x604cc
movss 0x1c(%rsp), %xmm0
cvtsi2ssl 0x30(%rsp), %xmm1
divss %xmm1, %xmm0
movss %xmm0, 0xc(%rsp)
jmp 0x604d7
xorps %xmm0, %xmm0
movss %xmm0, 0xc(%rsp)
jmp 0x604d7
movss 0xc(%rsp), %xmm0
movq 0x20(%rsp), %rax
movss %xmm0, 0x90(%rax)
jmp 0x60529
movq 0x38(%rsp), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x88(%rax)
movq 0x20(%rsp), %rax
movl $0x7, 0x70(%rax)
movq 0x20(%rsp), %rax
xorps %xmm0, %xmm0
movss %xmm0, 0x90(%rax)
movq 0x20(%rsp), %rax
xorps %xmm0, %xmm0
movss %xmm0, 0x98(%rax)
movq 0x20(%rsp), %rax
xorps %xmm0, %xmm0
movss %xmm0, 0x98(%rax)
movq 0x20(%rsp), %rax
xorps %xmm0, %xmm0
movss %xmm0, 0x9c(%rax)
addq $0x58, %rsp
retq
nop