// File: /workspace/github_c_makefile_star2_O0/space222[P]silo/./nuklear.h
// Function: nk_check_text
NK_API int
nk_check_text(struct nk_context *ctx, const char *text, int len, int active)
{
    struct nk_window *win;
    struct nk_panel *layout;
    const struct nk_input *in;
    const struct nk_style *style;

    struct nk_rect bounds;
    enum nk_widget_layout_states state;

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

    win = ctx->current;
    style = &ctx->style;
    layout = win->layout;

    state = nk_widget(&bounds, ctx);
    if (!state) return active;
    in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
    nk_do_toggle(&ctx->last_widget_state, &win->buffer, bounds, &active,
        text, len, NK_TOGGLE_CHECK, &style->checkbox, in, style->font);
    return active;
}

// Assembly:
subq $0x88, %rsp
movq %rdi, 0x78(%rsp)
movq %rsi, 0x70(%rsp)
movl %edx, 0x6c(%rsp)
movl %ecx, 0x68(%rsp)
cmpq $0x0, 0x78(%rsp)
je 0x275d3
jmp 0x275f2
leaq 0x20f45(%rip), %rdi     # 0x4851f
leaq 0x1ddd2(%rip), %rsi     # 0x453b3
movl $0x5030, %edx           # imm = 0x5030
leaq 0x21914(%rip), %rcx     # 0x48f01
callq 0x20a0
movq 0x78(%rsp), %rax
cmpq $0x0, 0x3fe8(%rax)
je 0x27603
jmp 0x27622
leaq 0x1f8ef(%rip), %rdi     # 0x46ef9
leaq 0x1dda2(%rip), %rsi     # 0x453b3
movl $0x5031, %edx           # imm = 0x5031
leaq 0x218e4(%rip), %rcx     # 0x48f01
callq 0x20a0
movq 0x78(%rsp), %rax
movq 0x3fe8(%rax), %rax
cmpq $0x0, 0xa8(%rax)
je 0x2763a
jmp 0x27659
leaq 0x1fa34(%rip), %rdi     # 0x47075
leaq 0x1dd6b(%rip), %rsi     # 0x453b3
movl $0x5032, %edx           # imm = 0x5032
leaq 0x218ad(%rip), %rcx     # 0x48f01
callq 0x20a0
cmpq $0x0, 0x78(%rsp)
je 0x27686
movq 0x78(%rsp), %rax
cmpq $0x0, 0x3fe8(%rax)
je 0x27686
movq 0x78(%rsp), %rax
movq 0x3fe8(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x27696
movl 0x68(%rsp), %eax
movl %eax, 0x84(%rsp)
jmp 0x2779a
movq 0x78(%rsp), %rax
movq 0x3fe8(%rax), %rax
movq %rax, 0x60(%rsp)
movq 0x78(%rsp), %rax
addq $0x168, %rax            # imm = 0x168
movq %rax, 0x48(%rsp)
movq 0x60(%rsp), %rax
movq 0xa8(%rax), %rax
movq %rax, 0x58(%rsp)
movq 0x78(%rsp), %rsi
leaq 0x38(%rsp), %rdi
callq 0x1cd90
movl %eax, 0x34(%rsp)
cmpl $0x0, 0x34(%rsp)
jne 0x276f2
movl 0x68(%rsp), %eax
movl %eax, 0x84(%rsp)
jmp 0x2779a
cmpl $0x2, 0x34(%rsp)
je 0x2770b
movq 0x58(%rsp), %rax
movl 0x4(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
je 0x27714
xorl %eax, %eax
movq %rax, 0x18(%rsp)
jmp 0x2771e
movq 0x78(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x78(%rsp), %rdi
addq $0x1f70, %rdi           # imm = 0x1F70
movq 0x60(%rsp), %rsi
addq $0x68, %rsi
movups 0x38(%rsp), %xmm0
movaps %xmm0, 0x20(%rsp)
movq 0x70(%rsp), %rcx
movl 0x6c(%rsp), %r8d
movq 0x48(%rsp), %rax
movq %rax, %rdx
addq $0x360, %rdx            # imm = 0x360
movq 0x50(%rsp), %r9
movq (%rax), %r10
movsd 0x20(%rsp), %xmm0
movsd 0x28(%rsp), %xmm1
movq %rsp, %rax
movq %r10, 0x10(%rax)
movq %r9, 0x8(%rax)
movq %rdx, (%rax)
leaq 0x68(%rsp), %rdx
xorl %r9d, %r9d
callq 0x277b0
movl 0x68(%rsp), %eax
movl %eax, 0x84(%rsp)
movl 0x84(%rsp), %eax
addq $0x88, %rsp
retq
nopl (%rax)