// File: /workspace/github_cpp_makefile_star2_O2/donfreiday[P]gb/./imgui/imgui.cpp
// Function: ImGui::InputScalarEx(char const*, ImGuiDataType, void*, void*, void*, char const*, int)
bool ImGui::InputScalarEx(const char* label, ImGuiDataType data_type, void* data_ptr, void* step_ptr, void* step_fast_ptr, const char* scalar_format, ImGuiInputTextFlags extra_flags)
{
    ImGuiWindow* window = GetCurrentWindow();
    if (window->SkipItems)
        return false;

    ImGuiState& g = *GImGui;
    const ImGuiStyle& style = g.Style;
    const float w = CalcItemWidth();
    const ImVec2 label_size = ImGui::CalcTextSize(label, NULL, true);
    const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w, label_size.y) + style.FramePadding*2.0f);

    ImGui::BeginGroup();
    ImGui::PushID(label);
    const ImVec2 button_sz = ImVec2(g.FontSize, g.FontSize) + style.FramePadding * 2;
    if (step_ptr)
        ImGui::PushItemWidth(ImMax(1.0f, w - (button_sz.x + style.ItemInnerSpacing.x)*2));

    char buf[64];
    DataTypeFormatString(data_type, data_ptr, scalar_format, buf, IM_ARRAYSIZE(buf));

    bool value_changed = false;
    if (!(extra_flags & ImGuiInputTextFlags_CharsHexadecimal))
        extra_flags |= ImGuiInputTextFlags_CharsDecimal;
    extra_flags |= ImGuiInputTextFlags_AutoSelectAll;
    if (ImGui::InputText("", buf, IM_ARRAYSIZE(buf), extra_flags))
    {
        DataTypeApplyOpFromText(buf, GImGui->InputTextState.InitialText.begin(), data_type, data_ptr, scalar_format);
        value_changed = true;
    }

    // Step buttons
    if (step_ptr)
    {
        ImGui::PopItemWidth();
        ImGui::SameLine(0, style.ItemInnerSpacing.x);
        if (ButtonEx("-", button_sz, ImGuiButtonFlags_Repeat | ImGuiButtonFlags_DontClosePopups))
        {
            DataTypeApplyOp(data_type, '-', data_ptr, g.IO.KeyCtrl && step_fast_ptr ? step_fast_ptr : step_ptr);
            value_changed = true;
        }
        ImGui::SameLine(0, style.ItemInnerSpacing.x);
        if (ButtonEx("+", button_sz, ImGuiButtonFlags_Repeat | ImGuiButtonFlags_DontClosePopups))
        {
            DataTypeApplyOp(data_type, '+', data_ptr, g.IO.KeyCtrl && step_fast_ptr ? step_fast_ptr : step_ptr);
            value_changed = true;
        }
    }
    ImGui::PopID();

    if (label_size.x > 0)
    {
        ImGui::SameLine(0, style.ItemInnerSpacing.x);
        RenderText(ImVec2(window->DC.CursorPos.x, window->DC.CursorPos.y + style.FramePadding.y), label);
        ItemSize(label_size, style.FramePadding.y);
    }
    ImGui::EndGroup();

    return value_changed;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, -0x30(%rbp)
movq 0x365f7(%rip), %rbx     # 0x50480
movq 0x1758(%rbx), %r13
movb $0x1, 0x72(%r13)
cmpb $0x0, 0x74(%r13)
je 0x19ea4
xorl %r14d, %r14d
jmp 0x1a0fb
movq %rcx, %r12
movl %esi, %r15d
movq %rdi, %r14
movq %r9, -0x38(%rbp)
movq %r8, -0x48(%rbp)
callq 0x1137a
movss %xmm0, -0x3c(%rbp)
pushq $0x1
popq %rdx
movss 0x1c4d2(%rip), %xmm0    # 0x3639c
movq %r14, %rdi
xorl %esi, %esi
callq 0xc6e3
movaps %xmm0, -0x70(%rbp)
movlps %xmm0, -0x60(%rbp)
callq 0x16ed0
movq %r14, -0x58(%rbp)
movq %r14, %rdi
callq 0x13116
movss 0x1718(%rbx), %xmm1
movss 0x1408(%rbx), %xmm0
movss 0x140c(%rbx), %xmm2
addss %xmm0, %xmm0
addss %xmm2, %xmm2
addss %xmm1, %xmm0
addss %xmm1, %xmm2
movaps %xmm0, %xmm1
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movlps %xmm1, -0x50(%rbp)
testq %r12, %r12
je 0x19f4a
addss 0x141c(%rbx), %xmm0
addss %xmm0, %xmm0
movss -0x3c(%rbp), %xmm1
subss %xmm0, %xmm1
movss 0x1c44f(%rip), %xmm0    # 0x36390
maxss %xmm1, %xmm0
callq 0x91e1
movl 0x10(%rbp), %r14d
cmpl $0x1, %r15d
je 0x19f76
testl %r15d, %r15d
jne 0x19f93
movq -0x30(%rbp), %rax
movl (%rax), %ecx
leaq -0xb0(%rbp), %rdi
pushq $0x40
popq %rsi
movq -0x38(%rbp), %rdx
xorl %eax, %eax
callq 0x83b1
jmp 0x19f93
movq -0x30(%rbp), %rax
cvtss2sd (%rax), %xmm0
leaq -0xb0(%rbp), %rdi
pushq $0x40
popq %rsi
movq -0x38(%rbp), %rdx
movb $0x1, %al
callq 0x83b1
xorl %ecx, %ecx
testb $0x2, %r14b
sete %cl
orl %r14d, %ecx
orl $0x10, %ecx
leaq 0x20680(%rip), %rdi     # 0x3a629
leaq -0xb0(%rbp), %rsi
pushq $0x40
popq %rdx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x9225
movl %eax, %r14d
testb %al, %al
je 0x19fea
movq 0x364b4(%rip), %rax     # 0x50480
movq 0x1ad0(%rax), %rsi
leaq -0xb0(%rbp), %rdi
movl %r15d, %edx
movq -0x30(%rbp), %rcx
movq -0x38(%rbp), %r8
callq 0x15e60
testq %r12, %r12
je 0x1a09c
callq 0x9272
movss 0x141c(%rbx), %xmm1
xorps %xmm0, %xmm0
callq 0x1254d
leaq 0x1d796(%rip), %rdi     # 0x377a5
leaq -0x50(%rbp), %rsi
pushq $0x11
popq %rdx
callq 0x127e2
testb %al, %al
je 0x1a04a
cmpb $0x0, 0x105(%rbx)
movq %r12, %rcx
movq -0x48(%rbp), %rax
cmovneq %rax, %rcx
testq %rax, %rax
cmoveq %r12, %rcx
pushq $0x2d
popq %rsi
movl %r15d, %edi
movq -0x30(%rbp), %rdx
callq 0x1a110
movb $0x1, %r14b
movss 0x141c(%rbx), %xmm1
xorps %xmm0, %xmm0
callq 0x1254d
leaq 0x1d5d0(%rip), %rdi     # 0x37631
leaq -0x50(%rbp), %rsi
pushq $0x11
popq %rdx
callq 0x127e2
testb %al, %al
je 0x1a09c
cmpb $0x0, 0x105(%rbx)
movq %r12, %rcx
movq -0x48(%rbp), %rax
cmovneq %rax, %rcx
testq %rax, %rax
cmoveq %r12, %rcx
pushq $0x2b
popq %rsi
movl %r15d, %edi
movq -0x30(%rbp), %rdx
callq 0x1a110
movb $0x1, %r14b
callq 0x12ea2
xorps %xmm0, %xmm0
movaps -0x70(%rbp), %xmm1
ucomiss %xmm0, %xmm1
jbe 0x1a0f6
movss 0x141c(%rbx), %xmm1
callq 0x1254d
movss 0xac(%r13), %xmm1
addss 0x140c(%rbx), %xmm1
movss 0xa8(%r13), %xmm0
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
pushq $0x1
popq %rdx
movq -0x58(%rbp), %rdi
xorl %esi, %esi
callq 0xc16e
movss 0x140c(%rbx), %xmm0
leaq -0x60(%rbp), %rdi
callq 0x99d9
callq 0x170a4
movl %r14d, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq