// File: /workspace/github_c_makefile_star2_O0/space222[P]silo/./nuklear.h
// Function: nk_option_text
NK_API int
nk_option_text(struct nk_context *ctx, const char *text, int len, int 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 || 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);
    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)
je 0x282e3
jmp 0x28302
leaq 0x20235(%rip), %rdi     # 0x4851f
leaq 0x1d0c2(%rip), %rsi     # 0x453b3
movl $0x508f, %edx           # imm = 0x508F
leaq 0x20d5a(%rip), %rcx     # 0x49057
callq 0x20a0
movq 0x78(%rsp), %rax
cmpq $0x0, 0x3fe8(%rax)
je 0x28313
jmp 0x28332
leaq 0x1ebdf(%rip), %rdi     # 0x46ef9
leaq 0x1d092(%rip), %rsi     # 0x453b3
movl $0x5090, %edx           # imm = 0x5090
leaq 0x20d2a(%rip), %rcx     # 0x49057
callq 0x20a0
movq 0x78(%rsp), %rax
movq 0x3fe8(%rax), %rax
cmpq $0x0, 0xa8(%rax)
je 0x2834a
jmp 0x28369
leaq 0x1ed24(%rip), %rdi     # 0x47075
leaq 0x1d05b(%rip), %rsi     # 0x453b3
movl $0x5091, %edx           # imm = 0x5091
leaq 0x20cf3(%rip), %rcx     # 0x49057
callq 0x20a0
cmpq $0x0, 0x78(%rsp)
je 0x28396
movq 0x78(%rsp), %rax
cmpq $0x0, 0x3fe8(%rax)
je 0x28396
movq 0x78(%rsp), %rax
movq 0x3fe8(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x283a6
movl 0x68(%rsp), %eax
movl %eax, 0x84(%rsp)
jmp 0x284ad
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 0x28402
movl 0x34(%rsp), %eax
movl %eax, 0x84(%rsp)
jmp 0x284ad
cmpl $0x2, 0x34(%rsp)
je 0x2841b
movq 0x58(%rsp), %rax
movl 0x4(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
je 0x28424
xorl %eax, %eax
movq %rax, 0x18(%rsp)
jmp 0x2842e
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 $0x270, %rdx            # imm = 0x270
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
movl $0x1, %r9d
callq 0x277b0
movl 0x68(%rsp), %eax
movl %eax, 0x84(%rsp)
movl 0x84(%rsp), %eax
addq $0x88, %rsp
retq
nopl (%rax)