// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_option_text_align
NK_API nk_bool
nk_option_text_align(struct nk_context *ctx, const char *text, int len, nk_bool is_active, nk_flags widget_alignment, nk_flags text_alignment)
{
    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, widget_alignment, text_alignment);
    return is_active;
}

// Assembly:
pushq %rbx
subq $0x90, %rsp
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movl %edx, 0x74(%rsp)
movl %ecx, 0x70(%rsp)
movl %r8d, 0x6c(%rsp)
movl %r9d, 0x68(%rsp)
cmpq $0x0, 0x80(%rsp)
jne 0x6c045
movq 0x58fd7(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x4537d(%rip), %rsi     # 0xb13a0
leaq 0x45394(%rip), %rdx     # 0xb13be
movl $0x61fc, %ecx           # imm = 0x61FC
movb $0x0, %al
callq 0x13ec0
movq 0x58fb3(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6c047
jmp 0x6c049
movq 0x80(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
jne 0x6c08e
movq 0x58f8e(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x45334(%rip), %rsi     # 0xb13a0
leaq 0x4534b(%rip), %rdx     # 0xb13be
movl $0x61fd, %ecx           # imm = 0x61FD
movb $0x0, %al
callq 0x13ec0
movq 0x58f6a(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6c090
jmp 0x6c092
movq 0x80(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x6c0de
movq 0x58f3e(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x452e4(%rip), %rsi     # 0xb13a0
leaq 0x452fb(%rip), %rdx     # 0xb13be
movl $0x61fe, %ecx           # imm = 0x61FE
movb $0x0, %al
callq 0x13ec0
movq 0x58f1a(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6c0e0
cmpq $0x0, 0x80(%rsp)
je 0x6c116
movq 0x80(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
je 0x6c116
movq 0x80(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x6c126
movl 0x70(%rsp), %eax
movl %eax, 0x8c(%rsp)
jmp 0x6c249
movq 0x80(%rsp), %rax
movq 0x4780(%rax), %rax
movq %rax, 0x60(%rsp)
movq 0x80(%rsp), %rax
addq $0x168, %rax            # imm = 0x168
movq %rax, 0x48(%rsp)
movq 0x60(%rsp), %rax
movq 0xa8(%rax), %rax
movq %rax, 0x58(%rsp)
movq 0x80(%rsp), %rsi
leaq 0x38(%rsp), %rdi
callq 0x139c0
movl %eax, 0x34(%rsp)
cmpl $0x0, 0x34(%rsp)
jne 0x6c18b
movl 0x34(%rsp), %eax
movl %eax, 0x8c(%rsp)
jmp 0x6c249
cmpl $0x2, 0x34(%rsp)
je 0x6c1ab
cmpl $0x3, 0x34(%rsp)
je 0x6c1ab
movq 0x58(%rsp), %rax
movl 0x4(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
je 0x6c1b4
xorl %eax, %eax
movq %rax, 0x28(%rsp)
jmp 0x6c1c1
movq 0x80(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x80(%rsp), %rdi
addq $0x2598, %rdi           # imm = 0x2598
movq 0x60(%rsp), %rsi
addq $0x68, %rsi
movq 0x78(%rsp), %rcx
movl 0x74(%rsp), %r8d
movq 0x48(%rsp), %rax
movq %rax, %rdx
addq $0x2f0, %rdx            # imm = 0x2F0
movq 0x50(%rsp), %r9
movq (%rax), %r10
movl 0x6c(%rsp), %r11d
movl 0x68(%rsp), %ebx
movsd 0x38(%rsp), %xmm0
movsd 0x40(%rsp), %xmm1
movq %rsp, %rax
movl %ebx, 0x20(%rax)
movl %r11d, 0x18(%rax)
movq %r10, 0x10(%rax)
movq %r9, 0x8(%rax)
movq %rdx, (%rax)
leaq 0x70(%rsp), %rdx
movl $0x1, %r9d
callq 0x6ac10
movl 0x70(%rsp), %eax
movl %eax, 0x8c(%rsp)
movl 0x8c(%rsp), %eax
addq $0x90, %rsp
popq %rbx
retq
nopl (%rax)