// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_option_text
NK_API nk_bool
nk_option_text(struct nk_context *ctx, const char *text, int len, nk_bool is_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 is_active;

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

    state = nk_widget(&bounds, ctx);
    if (!state) return (int)state;
    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, &is_active,
        text, len, NK_TOGGLE_OPTION, &style->option, in, style->font, NK_WIDGET_LEFT, NK_TEXT_LEFT);
    return is_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 0x6bde4
movq 0x59238(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x455de(%rip), %rsi     # 0xb13a0
leaq 0x455f5(%rip), %rdx     # 0xb13be
movl $0x61e0, %ecx           # imm = 0x61E0
movb $0x0, %al
callq 0x13ec0
movq 0x59214(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6bde6
jmp 0x6bde8
movq 0x78(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
jne 0x6be2a
movq 0x591f2(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x45598(%rip), %rsi     # 0xb13a0
leaq 0x455af(%rip), %rdx     # 0xb13be
movl $0x61e1, %ecx           # imm = 0x61E1
movb $0x0, %al
callq 0x13ec0
movq 0x591ce(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6be2c
jmp 0x6be2e
movq 0x78(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x6be77
movq 0x591a5(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x4554b(%rip), %rsi     # 0xb13a0
leaq 0x45562(%rip), %rdx     # 0xb13be
movl $0x61e2, %ecx           # imm = 0x61E2
movb $0x0, %al
callq 0x13ec0
movq 0x59181(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6be79
cmpq $0x0, 0x78(%rsp)
je 0x6bea6
movq 0x78(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
je 0x6bea6
movq 0x78(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x6beb6
movl 0x68(%rsp), %eax
movl %eax, 0x84(%rsp)
jmp 0x6bfc8
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 0x6bf12
movl 0x34(%rsp), %eax
movl %eax, 0x84(%rsp)
jmp 0x6bfc8
cmpl $0x2, 0x34(%rsp)
je 0x6bf32
cmpl $0x3, 0x34(%rsp)
je 0x6bf32
movq 0x58(%rsp), %rax
movl 0x4(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
je 0x6bf3b
xorl %eax, %eax
movq %rax, 0x28(%rsp)
jmp 0x6bf45
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 $0x2f0, %rdx            # imm = 0x2F0
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
movl $0x1, %r9d
callq 0x6ac10
movl 0x68(%rsp), %eax
movl %eax, 0x84(%rsp)
movl 0x84(%rsp), %eax
addq $0x88, %rsp
retq
nopw (%rax,%rax)