// File: 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
subq $0xa0, %rsp
movl 0x18(%rbp), %eax
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movss %xmm0, -0x24(%rbp)
movl %ecx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movq %r9, -0x38(%rbp)
callq 0xeb270
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
testb $0x1, 0x93(%rax)
je 0x14355d
movb $0x0, -0x1(%rbp)
jmp 0x143764
leaq 0xcf9dc(%rip), %rax     # 0x212f40
movq (%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rdi
callq 0xdb440
callq 0xdd220
callq 0xdcdc0
movl $0x2, %edi
callq 0xdcbc0
movl -0x28(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jl 0x14359a
movl $0x80000000, %eax       # imm = 0x80000000
movl %eax, -0x68(%rbp)
jmp 0x1435a0
movl -0x28(%rbp), %eax
movl %eax, -0x68(%rbp)
movl -0x68(%rbp), %eax
movl %eax, -0x4c(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jl 0x1435b9
movq -0x20(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x6c(%rbp)
jmp 0x1435ca
movl -0x2c(%rbp), %edi
movq -0x20(%rbp), %rax
movl (%rax), %esi
callq 0x143780
movl %eax, -0x6c(%rbp)
movl -0x6c(%rbp), %eax
movl %eax, -0x50(%rbp)
movl 0x18(%rbp), %eax
movl -0x4c(%rbp), %esi
movl -0x50(%rbp), %edi
xorl %ecx, %ecx
movl $0x200000, %edx         # imm = 0x200000
cmpl %edi, %esi
cmovel %edx, %ecx
orl %ecx, %eax
movl %eax, -0x54(%rbp)
movq -0x18(%rbp), %rsi
movss -0x24(%rbp), %xmm0
movl -0x4c(%rbp), %edx
movl -0x50(%rbp), %ecx
movq -0x38(%rbp), %r8
movl -0x54(%rbp), %r9d
leaq 0x4b6c3(%rip), %rdi     # 0x18eccb
callq 0x143390
andb $0x1, %al
movb %al, -0x55(%rbp)
callq 0xdcd30
movq -0x48(%rbp), %rax
movss 0x15b0(%rax), %xmm1
xorps %xmm0, %xmm0
callq 0xdc1c0
movl -0x28(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jl 0x14363e
movq -0x18(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x70(%rbp)
jmp 0x14364f
movl -0x28(%rbp), %edi
movq -0x18(%rbp), %rax
movl (%rax), %esi
callq 0x1437b0
movl %eax, -0x70(%rbp)
movl -0x70(%rbp), %eax
movl %eax, -0x5c(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jl 0x143667
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, -0x74(%rbp)
jmp 0x14366d
movl -0x2c(%rbp), %eax
movl %eax, -0x74(%rbp)
movl -0x74(%rbp), %eax
movl %eax, -0x60(%rbp)
movl 0x18(%rbp), %eax
movl -0x5c(%rbp), %esi
movl -0x60(%rbp), %edi
xorl %ecx, %ecx
movl $0x200000, %edx         # imm = 0x200000
cmpl %edi, %esi
cmovel %edx, %ecx
orl %ecx, %eax
movl %eax, -0x64(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x88(%rbp)
movss -0x24(%rbp), %xmm0
movss %xmm0, -0x80(%rbp)
movl -0x5c(%rbp), %eax
movl %eax, -0x7c(%rbp)
movl -0x60(%rbp), %eax
movl %eax, -0x78(%rbp)
cmpq $0x0, 0x10(%rbp)
je 0x1436c2
movq 0x10(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0x1436cd
movq -0x38(%rbp), %rax
movq %rax, -0x90(%rbp)
movl -0x78(%rbp), %ecx
movl -0x7c(%rbp), %edx
movss -0x80(%rbp), %xmm0
movq -0x88(%rbp), %rsi
movq -0x90(%rbp), %r8
movl -0x64(%rbp), %r9d
leaq 0x4b5e0(%rip), %rdi     # 0x18ecd1
callq 0x143390
andb $0x1, %al
movzbl %al, %ecx
movb -0x55(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
orl %ecx, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movb %al, -0x55(%rbp)
callq 0xdcd30
movq -0x48(%rbp), %rax
movss 0x15b0(%rax), %xmm1
xorps %xmm0, %xmm0
callq 0xdc1c0
movq -0x10(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xc8090
movq -0x98(%rbp), %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x138a30
callq 0xdbe80
callq 0xdb640
movb -0x55(%rbp), %al
andb $0x1, %al
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0xa0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)