// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_check_text_align
NK_API nk_bool
nk_check_text_align(struct nk_context *ctx, const char *text, int len, nk_bool 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 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, widget_alignment, text_alignment);
    return 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 0x6b485
movq 0x59b97(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x45f3d(%rip), %rsi     # 0xb13a0
leaq 0x45f54(%rip), %rdx     # 0xb13be
movl $0x6171, %ecx           # imm = 0x6171
movb $0x0, %al
callq 0x13ec0
movq 0x59b73(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6b487
jmp 0x6b489
movq 0x80(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
jne 0x6b4ce
movq 0x59b4e(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x45ef4(%rip), %rsi     # 0xb13a0
leaq 0x45f0b(%rip), %rdx     # 0xb13be
movl $0x6172, %ecx           # imm = 0x6172
movb $0x0, %al
callq 0x13ec0
movq 0x59b2a(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6b4d0
jmp 0x6b4d2
movq 0x80(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x6b51e
movq 0x59afe(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x45ea4(%rip), %rsi     # 0xb13a0
leaq 0x45ebb(%rip), %rdx     # 0xb13be
movl $0x6173, %ecx           # imm = 0x6173
movb $0x0, %al
callq 0x13ec0
movq 0x59ada(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6b520
cmpq $0x0, 0x80(%rsp)
je 0x6b556
movq 0x80(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
je 0x6b556
movq 0x80(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x6b566
movl 0x70(%rsp), %eax
movl %eax, 0x8c(%rsp)
jmp 0x6b686
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 0x6b5cb
movl 0x70(%rsp), %eax
movl %eax, 0x8c(%rsp)
jmp 0x6b686
cmpl $0x2, 0x34(%rsp)
je 0x6b5eb
cmpl $0x3, 0x34(%rsp)
je 0x6b5eb
movq 0x58(%rsp), %rax
movl 0x4(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
je 0x6b5f4
xorl %eax, %eax
movq %rax, 0x28(%rsp)
jmp 0x6b601
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 $0x410, %rdx            # imm = 0x410
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
xorl %r9d, %r9d
callq 0x6ac10
movl 0x70(%rsp), %eax
movl %eax, 0x8c(%rsp)
movl 0x8c(%rsp), %eax
addq $0x90, %rsp
popq %rbx
retq
nopw %cs:(%rax,%rax)