// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_layout_peek
NK_LIB void
nk_layout_peek(struct nk_rect *bounds, struct nk_context *ctx)
{
    float y;
    int index;
    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) {
        *bounds = nk_rect(0,0,0,0);
        return;
    }

    win = ctx->current;
    layout = win->layout;
    y = layout->at_y;
    index = layout->row.index;
    if (layout->row.index >= layout->row.columns) {
        layout->at_y += layout->row.height;
        layout->row.index = 0;
    }
    nk_layout_widget_space(bounds, ctx, win, nk_false);
    if (!layout->row.index) {
        bounds->x -= layout->row.item_offset;
    }
    layout->at_y = y;
    layout->row.index = index;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
cmpq $0x0, 0x38(%rsp)
jne 0x65159
movq 0x5fec3(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x4c269(%rip), %rsi     # 0xb13a0
leaq 0x4c280(%rip), %rdx     # 0xb13be
movl $0x579b, %ecx           # imm = 0x579B
movb $0x0, %al
callq 0x13ec0
movq 0x5fe9f(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6515b
jmp 0x6515d
movq 0x38(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
jne 0x6519f
movq 0x5fe7d(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x4c223(%rip), %rsi     # 0xb13a0
leaq 0x4c23a(%rip), %rdx     # 0xb13be
movl $0x579c, %ecx           # imm = 0x579C
movb $0x0, %al
callq 0x13ec0
movq 0x5fe59(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x651a1
jmp 0x651a3
movq 0x38(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x651ec
movq 0x5fe30(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x4c1d6(%rip), %rsi     # 0xb13a0
leaq 0x4c1ed(%rip), %rdx     # 0xb13be
movl $0x579d, %ecx           # imm = 0x579D
movb $0x0, %al
callq 0x13ec0
movq 0x5fe0c(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x651ee
cmpq $0x0, 0x38(%rsp)
je 0x6521b
movq 0x38(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
je 0x6521b
movq 0x38(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x6525d
movq 0x40(%rsp), %rax
movq %rax, 0x8(%rsp)
xorps %xmm3, %xmm3
movaps %xmm3, %xmm0
movaps %xmm3, %xmm1
movaps %xmm3, %xmm2
callq 0x151a0
movq 0x8(%rsp), %rax
movlpd %xmm0, 0x10(%rsp)
movlpd %xmm1, 0x18(%rsp)
movq 0x10(%rsp), %rcx
movq %rcx, (%rax)
movq 0x18(%rsp), %rcx
movq %rcx, 0x8(%rax)
jmp 0x65330
movq 0x38(%rsp), %rax
movq 0x4780(%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq 0xa8(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movss 0x2c(%rax), %xmm0
movss %xmm0, 0x34(%rsp)
movq 0x20(%rsp), %rax
movl 0x74(%rax), %eax
movl %eax, 0x30(%rsp)
movq 0x20(%rsp), %rax
movl 0x74(%rax), %eax
movq 0x20(%rsp), %rcx
cmpl 0x80(%rcx), %eax
jl 0x652d5
movq 0x20(%rsp), %rax
movss 0x78(%rax), %xmm0
movq 0x20(%rsp), %rax
addss 0x2c(%rax), %xmm0
movss %xmm0, 0x2c(%rax)
movq 0x20(%rsp), %rax
movl $0x0, 0x74(%rax)
movq 0x40(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x28(%rsp), %rdx
xorl %ecx, %ecx
callq 0x87d90
movq 0x20(%rsp), %rax
cmpl $0x0, 0x74(%rax)
jne 0x65314
movq 0x20(%rsp), %rax
movss 0x98(%rax), %xmm1
movq 0x40(%rsp), %rax
movss (%rax), %xmm0
subss %xmm1, %xmm0
movss %xmm0, (%rax)
movss 0x34(%rsp), %xmm0
movq 0x20(%rsp), %rax
movss %xmm0, 0x2c(%rax)
movl 0x30(%rsp), %ecx
movq 0x20(%rsp), %rax
movl %ecx, 0x74(%rax)
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)