// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::DragFloatRange2(char const*, float*, float*, float, float, float, char const*, char const*, int)
bool ImGui::DragFloatRange2(const char* label, float* v_current_min, float* v_current_max, float v_speed, float v_min, float v_max, const char* format, const char* format_max, ImGuiSliderFlags flags)
{
    ImGuiWindow* window = GetCurrentWindow();
    if (window->SkipItems)
        return false;

    ImGuiContext& g = *GImGui;
    PushID(label);
    BeginGroup();
    PushMultiItemsWidths(2, CalcItemWidth());

    float min_min = (v_min >= v_max) ? -FLT_MAX : v_min;
    float min_max = (v_min >= v_max) ? *v_current_max : ImMin(v_max, *v_current_max);
    ImGuiSliderFlags min_flags = flags | ((min_min == min_max) ? ImGuiSliderFlags_ReadOnly : 0);
    bool value_changed = DragScalar("##min", ImGuiDataType_Float, v_current_min, v_speed, &min_min, &min_max, format, min_flags);
    PopItemWidth();
    SameLine(0, g.Style.ItemInnerSpacing.x);

    float max_min = (v_min >= v_max) ? *v_current_min : ImMax(v_min, *v_current_min);
    float max_max = (v_min >= v_max) ? FLT_MAX : v_max;
    ImGuiSliderFlags max_flags = flags | ((max_min == max_max) ? ImGuiSliderFlags_ReadOnly : 0);
    value_changed |= DragScalar("##max", ImGuiDataType_Float, v_current_max, v_speed, &max_min, &max_max, format_max ? format_max : format, max_flags);
    PopItemWidth();
    SameLine(0, g.Style.ItemInnerSpacing.x);

    TextEx(label, FindRenderedTextEnd(label));
    EndGroup();
    PopID();
    return value_changed;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %r9d, -0x30(%rbp)
movss %xmm0, -0x34(%rbp)
leaq 0x6571d(%rip), %rax     # 0xfbcd0
movq (%rax), %r13
movq 0x1ae0(%r13), %rax
movb $0x1, 0x90(%rax)
cmpb $0x0, 0x93(%rax)
je 0x965d5
xorl %r15d, %r15d
jmp 0x96754
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq %r8, -0x40(%rbp)
movss %xmm2, -0x2c(%rbp)
movaps %xmm1, -0x70(%rbp)
callq 0x54b5f
callq 0x56428
callq 0x5614d
movl $0x2, %edi
callq 0x55e21
movaps -0x70(%rbp), %xmm3
movss -0x2c(%rbp), %xmm2
ucomiss %xmm2, %xmm3
movaps %xmm2, %xmm0
cmpless %xmm3, %xmm0
movss 0x1f285(%rip), %xmm1    # 0xb58a8
andps %xmm0, %xmm1
andnps %xmm3, %xmm0
orps %xmm1, %xmm0
movss %xmm0, -0x38(%rbp)
movss (%r15), %xmm1
movq %r15, -0x48(%rbp)
jae 0x96643
minss %xmm1, %xmm2
movaps %xmm2, %xmm1
leaq -0x54(%rbp), %r8
movss %xmm1, (%r8)
cmpeqss %xmm1, %xmm0
movd %xmm0, %eax
andl $0x1, %eax
shll $0x15, %eax
orl -0x30(%rbp), %eax
movl %eax, (%rsp)
leaq 0x3b1fe(%rip), %rdi     # 0xd1866
leaq -0x38(%rbp), %rcx
movl $0x8, %esi
movq %r12, %rdx
movss -0x34(%rbp), %xmm0
movq %r14, %r9
callq 0x95c7f
movl %eax, %r15d
callq 0x560da
movss 0x15b0(%r13), %xmm1
xorps %xmm0, %xmm0
callq 0x5591d
movaps -0x70(%rbp), %xmm3
movss -0x2c(%rbp), %xmm2
ucomiss %xmm2, %xmm3
movss (%r12), %xmm0
jae 0x966c4
movaps %xmm0, %xmm1
cmpless %xmm3, %xmm1
andps %xmm1, %xmm3
andnps %xmm0, %xmm1
orps %xmm3, %xmm1
movaps %xmm1, %xmm0
jmp 0x966cc
movss 0x1f174(%rip), %xmm2    # 0xb5840
leaq -0x50(%rbp), %rcx
movss %xmm0, (%rcx)
leaq -0x4c(%rbp), %r8
movss %xmm2, (%r8)
cmpeqss %xmm2, %xmm0
movd %xmm0, %eax
andl $0x1, %eax
shll $0x15, %eax
orl -0x30(%rbp), %eax
movq -0x40(%rbp), %rdx
testq %rdx, %rdx
cmovneq %rdx, %r14
movl %eax, (%rsp)
leaq 0x3b168(%rip), %rdi     # 0xd186c
movl $0x8, %esi
movq -0x48(%rbp), %rdx
movss -0x34(%rbp), %xmm0
movq %r14, %r9
callq 0x95c7f
orb %al, %r15b
callq 0x560da
movss 0x15b0(%r13), %xmm1
xorps %xmm0, %xmm0
callq 0x5591d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x4443d
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x8fe70
callq 0x55617
callq 0x55082
movl %r15d, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq