// File: /workspace/github_cpp_makefile_star2_O3/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, -0x38(%rbp)
movq 0x36283(%rip), %rbx     # 0x55480
movq 0x1758(%rbx), %r15
movb $0x1, 0x72(%r15)
cmpb $0x0, 0x74(%r15)
je 0x1f218
xorl %r13d, %r13d
jmp 0x1f590
movq %r9, %r14
movq %rcx, %r12
movq %rdi, %r13
movq %r8, -0x48(%rbp)
movl %esi, -0x2c(%rbp)
callq 0x14877
movss %xmm0, -0x3c(%rbp)
movss 0x1e162(%rip), %xmm0    # 0x3d39c
movq %r13, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0xe505
movaps %xmm0, -0x70(%rbp)
movlps %xmm0, -0x60(%rbp)
callq 0x1b560
movq %r13, -0x58(%rbp)
movq %r13, %rdi
callq 0x16f0c
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 0x1f2bf
addss 0x141c(%rbx), %xmm0
addss %xmm0, %xmm0
movss -0x3c(%rbp), %xmm1
subss %xmm0, %xmm1
movss 0x1e0da(%rip), %xmm0    # 0x3d390
maxss %xmm1, %xmm0
callq 0x9c64
movl 0x10(%rbp), %r13d
movl -0x2c(%rbp), %eax
cmpl $0x1, %eax
je 0x1f2ed
testl %eax, %eax
jne 0x1f30e
movq -0x38(%rbp), %rax
movl (%rax), %ecx
leaq -0xb0(%rbp), %rdi
movl $0x40, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x8678
jmp 0x1f30e
movq -0x38(%rbp), %rax
xorps %xmm0, %xmm0
cvtss2sd (%rax), %xmm0
leaq -0xb0(%rbp), %rdi
movl $0x40, %esi
movq %r14, %rdx
movb $0x1, %al
callq 0x8678
xorl %ecx, %ecx
testb $0x2, %r13b
sete %cl
orl %r13d, %ecx
orl $0x10, %ecx
leaq 0x22115(%rip), %rdi     # 0x41439
leaq -0xb0(%rbp), %rsi
movl $0x40, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x9d61
movl %eax, %r13d
testb %al, %al
je 0x1f366
movq 0x36137(%rip), %rax     # 0x55480
movq 0x1ad0(%rax), %rsi
leaq -0xb0(%rbp), %rdi
movl -0x2c(%rbp), %edx
movq -0x38(%rbp), %rcx
movq %r14, %r8
callq 0x1a381
testq %r12, %r12
je 0x1f4de
callq 0x9db1
movss 0x141c(%rbx), %xmm0
movq 0x360fd(%rip), %rcx     # 0x55480
movq 0x1758(%rcx), %rax
movb $0x1, 0x72(%rax)
cmpb $0x0, 0x74(%rax)
jne 0x1f3ce
xorps %xmm1, %xmm1
ucomiss %xmm0, %xmm1
jbe 0x1f3a4
movss 0x1414(%rcx), %xmm0
addss 0xb0(%rax), %xmm0
movl 0xb4(%rax), %ecx
movq 0xd0(%rax), %rdx
movq %rdx, 0xc8(%rax)
movss %xmm0, 0xa8(%rax)
movl %ecx, 0xac(%rax)
leaq 0x1f418(%rip), %rdi     # 0x3e7ed
leaq -0x50(%rbp), %rsi
movl $0x11, %edx
callq 0x1621f
testb %al, %al
je 0x1f429
cmpb $0x0, 0x105(%rbx)
movq %r12, %rax
movq -0x48(%rbp), %rcx
cmovneq %rcx, %rax
testq %rcx, %rcx
cmoveq %r12, %rax
movb $0x1, %r13b
movl -0x2c(%rbp), %ecx
cmpl $0x1, %ecx
je 0x1f419
testl %ecx, %ecx
jne 0x1f429
movl (%rax), %eax
movq -0x38(%rbp), %rcx
subl %eax, (%rcx)
jmp 0x1f429
movq -0x38(%rbp), %rcx
movss (%rcx), %xmm0
subss (%rax), %xmm0
movss %xmm0, (%rcx)
movss 0x141c(%rbx), %xmm0
movq 0x36048(%rip), %rcx     # 0x55480
movq 0x1758(%rcx), %rax
movb $0x1, 0x72(%rax)
cmpb $0x0, 0x74(%rax)
jne 0x1f483
xorps %xmm1, %xmm1
ucomiss %xmm0, %xmm1
jbe 0x1f459
movss 0x1414(%rcx), %xmm0
addss 0xb0(%rax), %xmm0
movl 0xb4(%rax), %ecx
movq 0xd0(%rax), %rdx
movq %rdx, 0xc8(%rax)
movss %xmm0, 0xa8(%rax)
movl %ecx, 0xac(%rax)
leaq 0x1f1ef(%rip), %rdi     # 0x3e679
leaq -0x50(%rbp), %rsi
movl $0x11, %edx
callq 0x1621f
testb %al, %al
je 0x1f4de
cmpb $0x0, 0x105(%rbx)
movq %r12, %rax
movq -0x48(%rbp), %rcx
cmovneq %rcx, %rax
testq %rcx, %rcx
cmoveq %r12, %rax
movb $0x1, %r13b
movl -0x2c(%rbp), %ecx
cmpl $0x1, %ecx
je 0x1f4ce
testl %ecx, %ecx
jne 0x1f4de
movl (%rax), %eax
movq -0x38(%rbp), %rcx
addl %eax, (%rcx)
jmp 0x1f4de
movq -0x38(%rbp), %rcx
movss (%rcx), %xmm0
addss (%rax), %xmm0
movss %xmm0, (%rcx)
callq 0x16b19
xorps %xmm0, %xmm0
movaps -0x70(%rbp), %xmm1
ucomiss %xmm0, %xmm1
jbe 0x1f58b
movss 0x141c(%rbx), %xmm0
movq 0x35f7e(%rip), %rcx     # 0x55480
movq 0x1758(%rcx), %rax
movb $0x1, 0x72(%rax)
cmpb $0x0, 0x74(%rax)
jne 0x1f54d
xorps %xmm1, %xmm1
ucomiss %xmm0, %xmm1
jbe 0x1f523
movss 0x1414(%rcx), %xmm0
addss 0xb0(%rax), %xmm0
movl 0xb4(%rax), %ecx
movq 0xd0(%rax), %rdx
movq %rdx, 0xc8(%rax)
movss %xmm0, 0xa8(%rax)
movl %ecx, 0xac(%rax)
movss 0xac(%r15), %xmm1
addss 0x140c(%rbx), %xmm1
movss 0xa8(%r15), %xmm0
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movq -0x58(%rbp), %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0xdecf
movss 0x140c(%rbx), %xmm0
leaq -0x60(%rbp), %rdi
callq 0xa99d
callq 0x1b97c
movl %r13d, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq