// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_widget_has_mouse_click_down
NK_API nk_bool
nk_widget_has_mouse_click_down(struct nk_context *ctx, enum nk_buttons btn, nk_bool down)
{
    struct nk_rect c, v;
    struct nk_rect bounds;
    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    if (!ctx || !ctx->current || ctx->active != ctx->current)
        return 0;

    c = ctx->current->layout->clip;
    c.x = (float)((int)c.x);
    c.y = (float)((int)c.y);
    c.w = (float)((int)c.w);
    c.h = (float)((int)c.h);

    nk_layout_peek(&bounds, ctx);
    nk_unify(&v, &c, bounds.x, bounds.y, bounds.x + bounds.w, bounds.y + bounds.h);
    if (!NK_INTERSECT(c.x, c.y, c.w, c.h, bounds.x, bounds.y, bounds.w, bounds.h))
        return 0;
    return nk_input_has_mouse_click_down_in_rect(&ctx->input, btn, bounds, down);
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movl %esi, 0x34(%rsp)
movl %edx, 0x30(%rsp)
cmpq $0x0, 0x38(%rsp)
jne 0x65b3c
movq 0x5f4e0(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x4b886(%rip), %rsi     # 0xb13a0
leaq 0x4b89d(%rip), %rdx     # 0xb13be
movl $0x5acd, %ecx           # imm = 0x5ACD
movb $0x0, %al
callq 0x13ec0
movq 0x5f4bc(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x65b3e
jmp 0x65b40
movq 0x38(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
jne 0x65b82
movq 0x5f49a(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x4b840(%rip), %rsi     # 0xb13a0
leaq 0x4b857(%rip), %rdx     # 0xb13be
movl $0x5ace, %ecx           # imm = 0x5ACE
movb $0x0, %al
callq 0x13ec0
movq 0x5f476(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x65b84
cmpq $0x0, 0x38(%rsp)
je 0x65bb5
movq 0x38(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
je 0x65bb5
movq 0x38(%rsp), %rax
movq 0x4778(%rax), %rax
movq 0x38(%rsp), %rcx
cmpq 0x4780(%rcx), %rax
je 0x65bc2
movl $0x0, 0x44(%rsp)
jmp 0x65cea
movq 0x38(%rsp), %rax
movq 0x4780(%rax), %rax
movq 0xa8(%rax), %rax
movq 0x44(%rax), %rcx
movq %rcx, 0x20(%rsp)
movq 0x4c(%rax), %rax
movq %rax, 0x28(%rsp)
cvttss2si 0x20(%rsp), %eax
cvtsi2ss %eax, %xmm0
movss %xmm0, 0x20(%rsp)
cvttss2si 0x24(%rsp), %eax
cvtsi2ss %eax, %xmm0
movss %xmm0, 0x24(%rsp)
cvttss2si 0x28(%rsp), %eax
cvtsi2ss %eax, %xmm0
movss %xmm0, 0x28(%rsp)
cvttss2si 0x2c(%rsp), %eax
cvtsi2ss %eax, %xmm0
movss %xmm0, 0x2c(%rsp)
movq 0x38(%rsp), %rsi
movq %rsp, %rdi
callq 0x65110
movss (%rsp), %xmm0
movss 0x4(%rsp), %xmm1
movss (%rsp), %xmm2
addss 0x8(%rsp), %xmm2
movss 0x4(%rsp), %xmm3
addss 0xc(%rsp), %xmm3
leaq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x63b70
movss (%rsp), %xmm1
movss 0x20(%rsp), %xmm0
addss 0x28(%rsp), %xmm0
ucomiss %xmm1, %xmm0
jbe 0x65cbf
movss 0x20(%rsp), %xmm1
movss (%rsp), %xmm0
addss 0x8(%rsp), %xmm0
ucomiss %xmm1, %xmm0
jbe 0x65cbf
movss 0x4(%rsp), %xmm1
movss 0x24(%rsp), %xmm0
addss 0x2c(%rsp), %xmm0
ucomiss %xmm1, %xmm0
jbe 0x65cbf
movss 0x24(%rsp), %xmm1
movss 0x4(%rsp), %xmm0
addss 0xc(%rsp), %xmm0
ucomiss %xmm1, %xmm0
ja 0x65cc9
movl $0x0, 0x44(%rsp)
jmp 0x65cea
movq 0x38(%rsp), %rdi
movl 0x34(%rsp), %esi
movl 0x30(%rsp), %edx
movsd (%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
callq 0x13780
movl %eax, 0x44(%rsp)
movl 0x44(%rsp), %eax
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)