// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::DragIntRange2(char const*, int*, int*, float, int, int, char const*, char const*, int)
bool ImGui::DragIntRange2(const char* label, int* v_current_min, int* v_current_max, float v_speed, int v_min, int 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());

    int min_min = (v_min >= v_max) ? INT_MIN : v_min;
    int 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 = DragInt("##min", v_current_min, v_speed, min_min, min_max, format, min_flags);
    PopItemWidth();
    SameLine(0, g.Style.ItemInnerSpacing.x);

    int max_min = (v_min >= v_max) ? *v_current_min : ImMax(v_min, *v_current_min);
    int max_max = (v_min >= v_max) ? INT_MAX : v_max;
    ImGuiSliderFlags max_flags = flags | ((max_min == max_max) ? ImGuiSliderFlags_ReadOnly : 0);
    value_changed |= DragInt("##max", 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 $0x28, %rsp
leaq 0x64417(%rip), %rax     # 0xe3ce0
movq (%rax), %rbx
movq 0x1ae0(%rbx), %rax
movb $0x1, 0x90(%rax)
cmpb $0x0, 0x93(%rax)
je 0x7f8eb
xorl %r14d, %r14d
jmp 0x7fa0c
movl %r8d, %r13d
movl %ecx, %r14d
movq %rdi, -0x48(%rbp)
movss %xmm0, -0x30(%rbp)
movq %rdx, %r15
movq %rdx, -0x40(%rbp)
movq %r9, -0x38(%rbp)
movq %rsi, %r12
callq 0x42ea4
callq 0x43ff2
callq 0x43d17
pushq $0x2
popq %rdi
callq 0x43bdb
movl (%r15), %eax
cmpl %eax, %r13d
movl %eax, %ecx
cmovll %r13d, %ecx
cmpl %r13d, %r14d
movl $0x80000000, %edx       # imm = 0x80000000
cmovll %r14d, %edx
cmovgel %eax, %ecx
xorl %r9d, %r9d
cmpl %ecx, %edx
sete %r9b
shll $0x15, %r9d
orl 0x18(%rbp), %r9d
leaq 0x39284(%rip), %rdi     # 0xb8bd6
movq %r12, %rsi
movss -0x30(%rbp), %xmm0
movq -0x38(%rbp), %r15
movq %r15, %r8
callq 0x7f7d3
movb %al, -0x29(%rbp)
callq 0x43cbe
movss 0x15b0(%rbx), %xmm1
xorps %xmm0, %xmm0
callq 0x437ec
movl (%r12), %eax
cmpl %eax, %r14d
movl %eax, %edx
cmovgl %r14d, %edx
cmpl %r13d, %r14d
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmovll %r13d, %ecx
cmovgel %eax, %edx
xorl %r9d, %r9d
cmpl %ecx, %edx
sete %r9b
shll $0x15, %r9d
orl 0x18(%rbp), %r9d
movq 0x10(%rbp), %r8
testq %r8, %r8
cmoveq %r15, %r8
leaq 0x3921f(%rip), %rdi     # 0xb8bdc
movq -0x40(%rbp), %rsi
movss -0x30(%rbp), %xmm0
callq 0x7f7d3
movl %eax, %r14d
orb -0x29(%rbp), %r14b
callq 0x43cbe
movss 0x15b0(%rbx), %xmm1
xorps %xmm0, %xmm0
callq 0x437ec
movq -0x48(%rbp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x36123
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x7911c
callq 0x4352b
callq 0x42fea
movl %r14d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq