// File: /workspace/github_cpp_makefile_star2_O3/donfreiday[P]gb/./imgui/imgui.cpp
// Function: ImGui::VSliderFloat(char const*, ImVec2 const&, float*, float, float, char const*, float)
bool ImGui::VSliderFloat(const char* label, const ImVec2& size, float* v, float v_min, float v_max, const char* display_format, float power)
{
    ImGuiWindow* window = GetCurrentWindow();
    if (window->SkipItems)
        return false;

    ImGuiState& g = *GImGui;
    const ImGuiStyle& style = g.Style;
    const ImGuiID id = window->GetID(label);

    const ImVec2 label_size = CalcTextSize(label, NULL, true);
    const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + size);
    const ImRect bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f));

    ItemSize(bb, style.FramePadding.y);
    if (!ItemAdd(frame_bb, &id))
        return false;

    const bool hovered = IsHovered(frame_bb, id);
    if (hovered)
        g.HoveredId = id;

    if (!display_format)
        display_format = "%.3f";
    int decimal_precision = ParseFormatPrecision(display_format, 3);

    if (hovered && g.IO.MouseClicked[0])
    {
        SetActiveID(id, window);
        FocusWindow(window);
    }

    // Actual slider behavior + render grab
    bool value_changed = SliderBehavior(frame_bb, id, v, v_min, v_max, power, decimal_precision, false);

    // Display value using user-provided display format so user can add prefix/suffix/decorations to the value.
    // For the vertical slider we allow centered text to overlap the frame padding
    char value_buf[64];
    char* value_buf_end = value_buf + ImFormatString(value_buf, IM_ARRAYSIZE(value_buf), display_format, *v);
    RenderTextClipped(ImVec2(frame_bb.Min.x, frame_bb.Min.y + style.FramePadding.y), frame_bb.Max, value_buf, value_buf_end, NULL, ImGuiAlign_Center);

    if (label_size.x > 0.0f)
        RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label);

    return value_changed;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq 0x3a3b7(%rip), %rbx     # 0x55480
movq 0x1758(%rbx), %r15
movb $0x1, 0x72(%r15)
cmpb $0x0, 0x74(%r15)
jne 0x1b243
movq %rsi, %r14
movq %rdi, %r13
movq %rcx, -0x40(%rbp)
movss %xmm0, -0x2c(%rbp)
movss %xmm1, -0x30(%rbp)
movss %xmm2, -0x34(%rbp)
movq %rdx, -0x60(%rbp)
movq %r15, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0xa766
movl %eax, -0x38(%rbp)
movss 0x22287(%rip), %xmm0    # 0x3d39c
movq %r13, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0xe505
movss 0xa8(%r15), %xmm4
addss (%r14), %xmm4
movss 0xac(%r15), %xmm1
addss 0x4(%r14), %xmm1
movaps %xmm4, %xmm2
unpcklps %xmm1, %xmm2            # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1]
movq 0xa8(%r15), %r12
movq %r12, -0x50(%rbp)
movq %r12, %rax
shrq $0x20, %rax
xorps %xmm5, %xmm5
ucomiss %xmm5, %xmm0
movlps %xmm2, -0x48(%rbp)
movd %r12d, %xmm3
movd %eax, %xmm6
xorps %xmm2, %xmm2
jbe 0x1b17d
movss 0x141c(%rbx), %xmm2
addss %xmm0, %xmm2
movaps %xmm0, -0x90(%rbp)
movaps %xmm4, -0x80(%rbp)
addss %xmm4, %xmm2
addss %xmm5, %xmm1
movss 0x140c(%rbx), %xmm0
subss %xmm3, %xmm2
movdqa %xmm6, -0x70(%rbp)
subss %xmm6, %xmm1
unpcklps %xmm1, %xmm2            # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1]
leaq -0xe0(%rbp), %rdi
movlps %xmm2, (%rdi)
callq 0xa99d
leaq -0x50(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0xaaef
testb %al, %al
je 0x1b243
movq %r13, -0x58(%rbp)
movl -0x38(%rbp), %r14d
leaq -0x50(%rbp), %rdi
movl %r14d, %esi
xorl %edx, %edx
callq 0xad1f
testb %al, %al
je 0x1b25b
movl %r14d, 0x1788(%rbx)
movq -0x40(%rbp), %rax
testq %rax, %rax
leaq 0x236cf(%rip), %r13     # 0x3e8c6
cmovneq %rax, %r13
movq %r13, %rdi
movl $0x3, %esi
callq 0x1a5c4
cmpb $0x1, 0x354(%rbx)
jne 0x1b27a
movl %eax, -0x40(%rbp)
movq 0x3a265(%rip), %rax     # 0x55480
movl %r14d, 0x1790(%rax)
movw $0x1, 0x1799(%rax)
movq %r15, 0x17a0(%rax)
movq %r15, %rdi
callq 0xce68
movl -0x40(%rbp), %eax
movl -0x38(%rbp), %r14d
jmp 0x1b27a
xorl %r15d, %r15d
movl %r15d, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x40(%rbp), %rax
testq %rax, %rax
leaq 0x2365d(%rip), %r13     # 0x3e8c6
cmovneq %rax, %r13
movq %r13, %rdi
movl $0x3, %esi
callq 0x1a5c4
movss -0x34(%rbp), %xmm2
movss -0x30(%rbp), %xmm1
movss -0x2c(%rbp), %xmm0
leaq -0x50(%rbp), %rdi
movl %r14d, %esi
movq -0x60(%rbp), %r14
movq %r14, %rdx
movl %eax, %ecx
xorl %r8d, %r8d
callq 0x1a6c9
movl %eax, %r15d
xorps %xmm0, %xmm0
cvtss2sd (%r14), %xmm0
leaq -0xe0(%rbp), %r14
movq %r14, %rdi
movl $0x40, %esi
movq %r13, %rdx
movb $0x1, %al
callq 0x8678
cltq
leaq (%rax,%rbp), %rcx
addq $-0xe0, %rcx
movss 0x140c(%rbx), %xmm0
addss -0x70(%rbp), %xmm0
leaq -0x98(%rbp), %rdi
movl %r12d, (%rdi)
movss %xmm0, 0x4(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
leaq -0x48(%rbp), %rsi
movq %r14, %rdx
xorl %r8d, %r8d
movl $0x2, %r9d
callq 0xe23a
xorps %xmm0, %xmm0
movaps -0x90(%rbp), %xmm1
ucomiss %xmm0, %xmm1
jbe 0x1b246
movaps -0x80(%rbp), %xmm0
addss 0x141c(%rbx), %xmm0
movaps -0x70(%rbp), %xmm1
addss 0x140c(%rbx), %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movq -0x58(%rbp), %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0xdecf
jmp 0x1b246