// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_do_selectable_symbol
NK_LIB nk_bool
nk_do_selectable_symbol(nk_flags *state, struct nk_command_buffer *out,
    struct nk_rect bounds, const char *str, int len, nk_flags align, nk_bool *value,
    enum nk_symbol_type sym, const struct nk_style_selectable *style,
    const struct nk_input *in, const struct nk_user_font *font)
{
    int old_value;
    struct nk_rect touch;
    struct nk_rect icon;

    NK_ASSERT(state);
    NK_ASSERT(out);
    NK_ASSERT(str);
    NK_ASSERT(len);
    NK_ASSERT(value);
    NK_ASSERT(style);
    NK_ASSERT(font);

    if (!state || !out || !str || !len || !value || !style || !font) return 0;
    old_value = *value;

    /* toggle behavior */
    touch.x = bounds.x - style->touch_padding.x;
    touch.y = bounds.y - style->touch_padding.y;
    touch.w = bounds.w + style->touch_padding.x * 2;
    touch.h = bounds.h + style->touch_padding.y * 2;
    if (nk_button_behavior(state, touch, in, NK_BUTTON_DEFAULT))
        *value = !(*value);

    icon.y = bounds.y + style->padding.y;
    icon.w = icon.h = bounds.h - 2 * style->padding.y;
    if (align & NK_TEXT_ALIGN_LEFT) {
        icon.x = (bounds.x + bounds.w) - (2 * style->padding.x + icon.w);
        icon.x = NK_MAX(icon.x, 0);
    } else icon.x = bounds.x + 2 * style->padding.x;

    icon.x += style->image_padding.x;
    icon.y += style->image_padding.y;
    icon.w -= 2 * style->image_padding.x;
    icon.h -= 2 * style->image_padding.y;

    /* draw selectable */
    if (style->draw_begin) style->draw_begin(out, style->userdata);
    nk_draw_selectable(out, *state, style, *value, &bounds, &icon, 0, sym, str, len, align, font);
    if (style->draw_end) style->draw_end(out, style->userdata);
    return old_value != *value;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0xa0, %rsp
movq 0xd8(%rsp), %rax
movq 0xd0(%rsp), %rax
movq 0xc8(%rsp), %rax
movl 0xc0(%rsp), %eax
movlpd %xmm0, 0x8c(%rsp)
movlpd %xmm1, 0x94(%rsp)
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movq %rdx, 0x70(%rsp)
movl %ecx, 0x6c(%rsp)
movl %r8d, 0x68(%rsp)
movq %r9, 0x60(%rsp)
cmpq $0x0, 0x80(%rsp)
jne 0x6d8fa
movq 0x57722(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x43ac8(%rip), %rsi     # 0xb13a0
leaq 0x43adf(%rip), %rdx     # 0xb13be
movl $0x62db, %ecx           # imm = 0x62DB
movb $0x0, %al
callq 0x13ec0
movq 0x576fe(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6d8fc
jmp 0x6d8fe
cmpq $0x0, 0x78(%rsp)
jne 0x6d939
movq 0x576e3(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x43a89(%rip), %rsi     # 0xb13a0
leaq 0x43aa0(%rip), %rdx     # 0xb13be
movl $0x62dc, %ecx           # imm = 0x62DC
movb $0x0, %al
callq 0x13ec0
movq 0x576bf(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6d93b
jmp 0x6d93d
cmpq $0x0, 0x70(%rsp)
jne 0x6d978
movq 0x576a4(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x43a4a(%rip), %rsi     # 0xb13a0
leaq 0x43a61(%rip), %rdx     # 0xb13be
movl $0x62dd, %ecx           # imm = 0x62DD
movb $0x0, %al
callq 0x13ec0
movq 0x57680(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6d97a
jmp 0x6d97c
cmpl $0x0, 0x6c(%rsp)
jne 0x6d9b6
movq 0x57666(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x43a0c(%rip), %rsi     # 0xb13a0
leaq 0x43a23(%rip), %rdx     # 0xb13be
movl $0x62de, %ecx           # imm = 0x62DE
movb $0x0, %al
callq 0x13ec0
movq 0x57642(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6d9b8
jmp 0x6d9ba
cmpq $0x0, 0x60(%rsp)
jne 0x6d9f5
movq 0x57627(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x439cd(%rip), %rsi     # 0xb13a0
leaq 0x439e4(%rip), %rdx     # 0xb13be
movl $0x62df, %ecx           # imm = 0x62DF
movb $0x0, %al
callq 0x13ec0
movq 0x57603(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6d9f7
jmp 0x6d9f9
cmpq $0x0, 0xc8(%rsp)
jne 0x6da37
movq 0x575e5(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x4398b(%rip), %rsi     # 0xb13a0
leaq 0x439a2(%rip), %rdx     # 0xb13be
movl $0x62e0, %ecx           # imm = 0x62E0
movb $0x0, %al
callq 0x13ec0
movq 0x575c1(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6da39
jmp 0x6da3b
cmpq $0x0, 0xd8(%rsp)
jne 0x6da79
movq 0x575a3(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x43949(%rip), %rsi     # 0xb13a0
leaq 0x43960(%rip), %rdx     # 0xb13be
movl $0x62e1, %ecx           # imm = 0x62E1
movb $0x0, %al
callq 0x13ec0
movq 0x5757f(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6da7b
cmpq $0x0, 0x80(%rsp)
je 0x6dabb
cmpq $0x0, 0x78(%rsp)
je 0x6dabb
cmpq $0x0, 0x70(%rsp)
je 0x6dabb
cmpl $0x0, 0x6c(%rsp)
je 0x6dabb
cmpq $0x0, 0x60(%rsp)
je 0x6dabb
cmpq $0x0, 0xc8(%rsp)
je 0x6dabb
cmpq $0x0, 0xd8(%rsp)
jne 0x6dacb
movl $0x0, 0x9c(%rsp)
jmp 0x6de0c
movq 0x60(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x5c(%rsp)
movss 0x8c(%rsp), %xmm0
movq 0xc8(%rsp), %rax
movss 0x11c(%rax), %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x4c(%rsp)
movss 0x90(%rsp), %xmm0
movq 0xc8(%rsp), %rax
movss 0x120(%rax), %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x50(%rsp)
movss 0x94(%rsp), %xmm1
movq 0xc8(%rsp), %rax
movss 0x11c(%rax), %xmm0
addss %xmm0, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x54(%rsp)
movss 0x98(%rsp), %xmm1
movq 0xc8(%rsp), %rax
movss 0x120(%rax), %xmm0
addss %xmm0, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x58(%rsp)
movq 0x80(%rsp), %rdi
movq 0xd0(%rsp), %rsi
movsd 0x4c(%rsp), %xmm0
movsd 0x54(%rsp), %xmm1
xorl %edx, %edx
callq 0x78060
cmpl $0x0, %eax
je 0x6dbab
movq 0x60(%rsp), %rax
cmpl $0x0, (%rax)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %ecx
movq 0x60(%rsp), %rax
movl %ecx, (%rax)
movss 0x90(%rsp), %xmm0
movq 0xc8(%rsp), %rax
addss 0x118(%rax), %xmm0
movss %xmm0, 0x40(%rsp)
movss 0x98(%rsp), %xmm0
movq 0xc8(%rsp), %rax
movss 0x118(%rax), %xmm1
addss %xmm1, %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x48(%rsp)
movss %xmm0, 0x44(%rsp)
movl 0x68(%rsp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x6dc6c
movss 0x8c(%rsp), %xmm0
addss 0x94(%rsp), %xmm0
movq 0xc8(%rsp), %rax
movss 0x114(%rax), %xmm1
movss 0x44(%rsp), %xmm2
addss %xmm1, %xmm1
addss %xmm2, %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x3c(%rsp)
xorps %xmm0, %xmm0
ucomiss 0x3c(%rsp), %xmm0
jbe 0x6dc52
xorps %xmm0, %xmm0
movss %xmm0, 0x38(%rsp)
jmp 0x6dc5e
movss 0x3c(%rsp), %xmm0
movss %xmm0, 0x38(%rsp)
movss 0x38(%rsp), %xmm0
movss %xmm0, 0x3c(%rsp)
jmp 0x6dc93
movss 0x8c(%rsp), %xmm1
movq 0xc8(%rsp), %rax
movss 0x114(%rax), %xmm0
addss %xmm0, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x3c(%rsp)
movq 0xc8(%rsp), %rax
movss 0x124(%rax), %xmm0
addss 0x3c(%rsp), %xmm0
movss %xmm0, 0x3c(%rsp)
movq 0xc8(%rsp), %rax
movss 0x128(%rax), %xmm0
addss 0x40(%rsp), %xmm0
movss %xmm0, 0x40(%rsp)
movq 0xc8(%rsp), %rax
movss 0x124(%rax), %xmm1
movss 0x44(%rsp), %xmm0
addss %xmm1, %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x44(%rsp)
movq 0xc8(%rsp), %rax
movss 0x128(%rax), %xmm1
movss 0x48(%rsp), %xmm0
addss %xmm1, %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x48(%rsp)
movq 0xc8(%rsp), %rax
cmpq $0x0, 0x140(%rax)
je 0x6dd4a
movq 0xc8(%rsp), %rax
movq 0x140(%rax), %rax
movq 0x78(%rsp), %rdi
movq 0xc8(%rsp), %rcx
movq 0x138(%rcx), %rsi
callq *%rax
movq 0x78(%rsp), %rdi
movq 0x80(%rsp), %rax
movl (%rax), %esi
movq 0xc8(%rsp), %rdx
movq 0x60(%rsp), %rax
movl (%rax), %ecx
movl 0xc0(%rsp), %ebp
movq 0x70(%rsp), %rbx
movl 0x6c(%rsp), %r11d
movl 0x68(%rsp), %r10d
movq 0xd8(%rsp), %rax
leaq 0x8c(%rsp), %r8
leaq 0x3c(%rsp), %r9
xorl %r14d, %r14d
movq $0x0, (%rsp)
movl %ebp, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
movl %r11d, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movq %rax, 0x28(%rsp)
callq 0x8a1b0
movq 0xc8(%rsp), %rax
cmpq $0x0, 0x148(%rax)
je 0x6ddf2
movq 0xc8(%rsp), %rax
movq 0x148(%rax), %rax
movq 0x78(%rsp), %rdi
movq 0xc8(%rsp), %rcx
movq 0x138(%rcx), %rsi
callq *%rax
movl 0x5c(%rsp), %eax
movq 0x60(%rsp), %rcx
cmpl (%rcx), %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, 0x9c(%rsp)
movl 0x9c(%rsp), %eax
addq $0xa0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop