// File: /workspace/github_cpp_makefile_star2_O1/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 $0x38, %rsp
leaq 0x65783(%rip), %rax     # 0xfdcd0
movq (%rax), %r15
movq 0x1ae0(%r15), %rax
movb $0x1, 0x90(%rax)
cmpb $0x0, 0x93(%rax)
je 0x9856e
xorl %ebx, %ebx
jmp 0x986be
movl %r8d, %r13d
movl %ecx, %r14d
movq %rsi, %rbx
movq %rdi, -0x50(%rbp)
movss %xmm0, -0x30(%rbp)
movq %rdx, %r12
movq %rdx, -0x48(%rbp)
movq %r9, -0x40(%rbp)
callq 0x55c36
callq 0x5752d
callq 0x57252
movl $0x2, %edi
callq 0x56ef3
movl (%r12), %eax
cmpl %eax, %r13d
movl %eax, %edi
cmovll %r13d, %edi
cmpl %r13d, %r14d
movl $0x80000000, %edx       # imm = 0x80000000
cmovll %r14d, %edx
cmovgel %eax, %edi
xorl %eax, %eax
cmpl %edi, %edx
sete %al
shll $0x15, %eax
orl 0x18(%rbp), %eax
leaq -0x38(%rbp), %rsi
movl %edx, (%rsi)
movq %rsi, %rcx
leaq -0x34(%rbp), %rdx
movl %edi, (%rdx)
movq %rdx, %r8
movl %eax, (%rsp)
leaq 0x3b3ad(%rip), %rdi     # 0xd3996
movl $0x4, %esi
movq %rbx, %rdx
movss -0x30(%rbp), %xmm0
movq -0x40(%rbp), %r12
movq %r12, %r9
callq 0x978bf
movb %al, -0x29(%rbp)
callq 0x571b8
movss 0x15b0(%r15), %xmm1
xorps %xmm0, %xmm0
callq 0x569e1
movl (%rbx), %eax
cmpl %eax, %r14d
movl %eax, %ecx
cmovgl %r14d, %ecx
cmpl %r13d, %r14d
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
cmovll %r13d, %edx
cmovgel %eax, %ecx
xorl %eax, %eax
cmpl %edx, %ecx
sete %al
shll $0x15, %eax
orl 0x18(%rbp), %eax
movq 0x10(%rbp), %r9
testq %r9, %r9
cmoveq %r12, %r9
leaq -0x38(%rbp), %rsi
movl %ecx, (%rsi)
leaq -0x34(%rbp), %rcx
movl %edx, (%rcx)
movl %eax, (%rsp)
leaq 0x3b339(%rip), %rdi     # 0xd399c
leaq -0x38(%rbp), %rcx
leaq -0x34(%rbp), %r8
movl $0x4, %esi
movq -0x48(%rbp), %rdx
movss -0x30(%rbp), %xmm0
callq 0x978bf
movl %eax, %ebx
orb -0x29(%rbp), %bl
callq 0x571b8
movss 0x15b0(%r15), %xmm1
xorps %xmm0, %xmm0
callq 0x569e1
movq -0x50(%rbp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x44e8b
movq %r14, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x91b8c
callq 0x56723
callq 0x56188
movl %ebx, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq