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

    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;

    /* remove padding */
    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;

    /* update button */
    if (nk_button_behavior(state, touch, in, NK_BUTTON_DEFAULT))
        *value = !(*value);

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

// Assembly:
pushq %rbp
pushq %rbx
subq $0x88, %rsp
movq 0xb0(%rsp), %rax
movq 0xa8(%rsp), %rax
movq 0xa0(%rsp), %rax
movlpd %xmm0, 0x74(%rsp)
movlpd %xmm1, 0x7c(%rsp)
movq %rdi, 0x68(%rsp)
movq %rsi, 0x60(%rsp)
movq %rdx, 0x58(%rsp)
movl %ecx, 0x54(%rsp)
movl %r8d, 0x50(%rsp)
movq %r9, 0x48(%rsp)
cmpq $0x0, 0x68(%rsp)
jne 0x6c965
movq 0x586b7(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x44a5d(%rip), %rsi     # 0xb13a0
leaq 0x44a74(%rip), %rdx     # 0xb13be
movl $0x6287, %ecx           # imm = 0x6287
movb $0x0, %al
callq 0x13ec0
movq 0x58693(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6c967
jmp 0x6c969
cmpq $0x0, 0x60(%rsp)
jne 0x6c9a4
movq 0x58678(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x44a1e(%rip), %rsi     # 0xb13a0
leaq 0x44a35(%rip), %rdx     # 0xb13be
movl $0x6288, %ecx           # imm = 0x6288
movb $0x0, %al
callq 0x13ec0
movq 0x58654(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6c9a6
jmp 0x6c9a8
cmpq $0x0, 0x58(%rsp)
jne 0x6c9e3
movq 0x58639(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x449df(%rip), %rsi     # 0xb13a0
leaq 0x449f6(%rip), %rdx     # 0xb13be
movl $0x6289, %ecx           # imm = 0x6289
movb $0x0, %al
callq 0x13ec0
movq 0x58615(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6c9e5
jmp 0x6c9e7
cmpl $0x0, 0x54(%rsp)
jne 0x6ca21
movq 0x585fb(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x449a1(%rip), %rsi     # 0xb13a0
leaq 0x449b8(%rip), %rdx     # 0xb13be
movl $0x628a, %ecx           # imm = 0x628A
movb $0x0, %al
callq 0x13ec0
movq 0x585d7(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6ca23
jmp 0x6ca25
cmpq $0x0, 0x48(%rsp)
jne 0x6ca60
movq 0x585bc(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x44962(%rip), %rsi     # 0xb13a0
leaq 0x44979(%rip), %rdx     # 0xb13be
movl $0x628b, %ecx           # imm = 0x628B
movb $0x0, %al
callq 0x13ec0
movq 0x58598(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6ca62
jmp 0x6ca64
cmpq $0x0, 0xa0(%rsp)
jne 0x6caa2
movq 0x5857a(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x44920(%rip), %rsi     # 0xb13a0
leaq 0x44937(%rip), %rdx     # 0xb13be
movl $0x628c, %ecx           # imm = 0x628C
movb $0x0, %al
callq 0x13ec0
movq 0x58556(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6caa4
jmp 0x6caa6
cmpq $0x0, 0xb0(%rsp)
jne 0x6cae4
movq 0x58538(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x448de(%rip), %rsi     # 0xb13a0
leaq 0x448f5(%rip), %rdx     # 0xb13be
movl $0x628d, %ecx           # imm = 0x628D
movb $0x0, %al
callq 0x13ec0
movq 0x58514(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6cae6
cmpq $0x0, 0x68(%rsp)
je 0x6cb23
cmpq $0x0, 0x60(%rsp)
je 0x6cb23
cmpq $0x0, 0x58(%rsp)
je 0x6cb23
cmpl $0x0, 0x54(%rsp)
je 0x6cb23
cmpq $0x0, 0x48(%rsp)
je 0x6cb23
cmpq $0x0, 0xa0(%rsp)
je 0x6cb23
cmpq $0x0, 0xb0(%rsp)
jne 0x6cb33
movl $0x0, 0x84(%rsp)
jmp 0x6ccf4
movq 0x48(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x44(%rsp)
movss 0x74(%rsp), %xmm0
movq 0xa0(%rsp), %rax
movss 0x11c(%rax), %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x34(%rsp)
movss 0x78(%rsp), %xmm0
movq 0xa0(%rsp), %rax
movss 0x120(%rax), %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x38(%rsp)
movss 0x7c(%rsp), %xmm1
movq 0xa0(%rsp), %rax
movss 0x11c(%rax), %xmm0
addss %xmm0, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x3c(%rsp)
movss 0x80(%rsp), %xmm1
movq 0xa0(%rsp), %rax
movss 0x120(%rax), %xmm0
addss %xmm0, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x40(%rsp)
movq 0x68(%rsp), %rdi
movq 0xa8(%rsp), %rsi
movsd 0x34(%rsp), %xmm0
movsd 0x3c(%rsp), %xmm1
xorl %edx, %edx
callq 0x78060
cmpl $0x0, %eax
je 0x6cc07
movq 0x48(%rsp), %rax
cmpl $0x0, (%rax)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %ecx
movq 0x48(%rsp), %rax
movl %ecx, (%rax)
movq 0xa0(%rsp), %rax
cmpq $0x0, 0x140(%rax)
je 0x6cc3e
movq 0xa0(%rsp), %rax
movq 0x140(%rax), %rax
movq 0x60(%rsp), %rdi
movq 0xa0(%rsp), %rcx
movq 0x138(%rcx), %rsi
callq *%rax
movq 0x60(%rsp), %rdi
movq 0x68(%rsp), %rax
movl (%rax), %esi
movq 0xa0(%rsp), %rdx
movq 0x48(%rsp), %rax
movl (%rax), %ecx
movq 0x58(%rsp), %rbx
movl 0x54(%rsp), %r11d
movl 0x50(%rsp), %r10d
movq 0xb0(%rsp), %rax
leaq 0x74(%rsp), %r8
xorl %r9d, %r9d
xorl %ebp, %ebp
movq $0x0, (%rsp)
movl $0x0, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
movl %r11d, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movq %rax, 0x28(%rsp)
callq 0x8a1b0
movq 0xa0(%rsp), %rax
cmpq $0x0, 0x148(%rax)
je 0x6ccda
movq 0xa0(%rsp), %rax
movq 0x148(%rax), %rax
movq 0x60(%rsp), %rdi
movq 0xa0(%rsp), %rcx
movq 0x138(%rcx), %rsi
callq *%rax
movl 0x44(%rsp), %eax
movq 0x48(%rsp), %rcx
cmpl (%rcx), %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, 0x84(%rsp)
movl 0x84(%rsp), %eax
addq $0x88, %rsp
popq %rbx
popq %rbp
retq
nopw %cs:(%rax,%rax)