// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_check_text
NK_API nk_bool
nk_check_text(struct nk_context *ctx, const char *text, int len, nk_bool 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 || state == NK_WIDGET_DISABLED || 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, NK_WIDGET_LEFT, NK_TEXT_LEFT);
    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)
jne 0x6aa14
movq 0x5a608(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x469ae(%rip), %rsi     # 0xb13a0
leaq 0x469c5(%rip), %rdx     # 0xb13be
movl $0x6155, %ecx           # imm = 0x6155
movb $0x0, %al
callq 0x13ec0
movq 0x5a5e4(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6aa16
jmp 0x6aa18
movq 0x78(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
jne 0x6aa5a
movq 0x5a5c2(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x46968(%rip), %rsi     # 0xb13a0
leaq 0x4697f(%rip), %rdx     # 0xb13be
movl $0x6156, %ecx           # imm = 0x6156
movb $0x0, %al
callq 0x13ec0
movq 0x5a59e(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6aa5c
jmp 0x6aa5e
movq 0x78(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x6aaa7
movq 0x5a575(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x4691b(%rip), %rsi     # 0xb13a0
leaq 0x46932(%rip), %rdx     # 0xb13be
movl $0x6157, %ecx           # imm = 0x6157
movb $0x0, %al
callq 0x13ec0
movq 0x5a551(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6aaa9
cmpq $0x0, 0x78(%rsp)
je 0x6aad6
movq 0x78(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
je 0x6aad6
movq 0x78(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x6aae6
movl 0x68(%rsp), %eax
movl %eax, 0x84(%rsp)
jmp 0x6abf5
movq 0x78(%rsp), %rax
movq 0x4780(%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 0x139c0
movl %eax, 0x34(%rsp)
cmpl $0x0, 0x34(%rsp)
jne 0x6ab42
movl 0x68(%rsp), %eax
movl %eax, 0x84(%rsp)
jmp 0x6abf5
cmpl $0x2, 0x34(%rsp)
je 0x6ab62
cmpl $0x3, 0x34(%rsp)
je 0x6ab62
movq 0x58(%rsp), %rax
movl 0x4(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
je 0x6ab6b
xorl %eax, %eax
movq %rax, 0x28(%rsp)
jmp 0x6ab75
movq 0x78(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x78(%rsp), %rdi
addq $0x2598, %rdi           # imm = 0x2598
movq 0x60(%rsp), %rsi
addq $0x68, %rsi
movq 0x70(%rsp), %rcx
movl 0x6c(%rsp), %r8d
movq 0x48(%rsp), %rax
movq %rax, %rdx
addq $0x410, %rdx            # imm = 0x410
movq 0x50(%rsp), %r9
movq (%rax), %r10
movsd 0x38(%rsp), %xmm0
movsd 0x40(%rsp), %xmm1
movq %rsp, %rax
movq %r10, 0x10(%rax)
movq %r9, 0x8(%rax)
movq %rdx, (%rax)
movl $0x11, 0x20(%rax)
movl $0x11, 0x18(%rax)
leaq 0x68(%rsp), %rdx
xorl %r9d, %r9d
callq 0x6ac10
movl 0x68(%rsp), %eax
movl %eax, 0x84(%rsp)
movl 0x84(%rsp), %eax
addq $0x88, %rsp
retq
nopw %cs:(%rax,%rax)