// File: /workspace/github_cpp_makefile_star2_O1/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 $0x78, %rsp
movq %rdx, -0x38(%rbp)
movq 0x35fc6(%rip), %rbx     # 0x55490
movq 0x1758(%rbx), %r15
movb $0x1, 0x72(%r15)
cmpb $0x0, 0x74(%r15)
je 0x1f4e5
xorl %r13d, %r13d
jmp 0x1f85c
movq %r9, %r14
movq %rcx, %r12
movq %rdi, %r13
movq %r8, -0x50(%rbp)
movl %esi, -0x2c(%rbp)
callq 0x14bda
movss %xmm0, -0x44(%rbp)
movss 0x1de85(%rip), %xmm0    # 0x3d38c
movq %r13, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0xe720
movlps %xmm0, -0x58(%rbp)
callq 0x1b900
movq %r13, -0x60(%rbp)
movq %r13, %rdi
callq 0x173b3
movss 0x1718(%rbx), %xmm0
movss 0x1408(%rbx), %xmm1
movss 0x140c(%rbx), %xmm2
addss %xmm1, %xmm1
addss %xmm2, %xmm2
addss %xmm0, %xmm1
addss %xmm0, %xmm2
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movlps %xmm1, -0x40(%rbp)
testq %r12, %r12
je 0x1f58a
movss -0x40(%rbp), %xmm0
addss 0x141c(%rbx), %xmm0
addss %xmm0, %xmm0
movss -0x44(%rbp), %xmm1
subss %xmm0, %xmm1
movss 0x1ddff(%rip), %xmm0    # 0x3d380
maxss %xmm1, %xmm0
callq 0x9d0e
movl 0x10(%rbp), %r13d
movl -0x2c(%rbp), %eax
cmpl $0x1, %eax
je 0x1f5b8
testl %eax, %eax
jne 0x1f5d9
movq -0x38(%rbp), %rax
movl (%rax), %ecx
leaq -0xa0(%rbp), %rdi
movl $0x40, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x86d8
jmp 0x1f5d9
movq -0x38(%rbp), %rax
xorps %xmm0, %xmm0
cvtss2sd (%rax), %xmm0
leaq -0xa0(%rbp), %rdi
movl $0x40, %esi
movq %r14, %rdx
movb $0x1, %al
callq 0x86d8
xorl %ecx, %ecx
testb $0x2, %r13b
sete %cl
orl %r13d, %ecx
orl $0x10, %ecx
leaq 0x21eca(%rip), %rdi     # 0x414b9
xorl %r13d, %r13d
leaq -0xa0(%rbp), %rsi
movl $0x40, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x9e18
testb %al, %al
je 0x1f634
movq 0x35e7c(%rip), %rax     # 0x55490
movq 0x1ad0(%rax), %rsi
leaq -0xa0(%rbp), %rdi
movl -0x2c(%rbp), %edx
movq -0x38(%rbp), %rcx
movq %r14, %r8
callq 0x1a74c
movb $0x1, %r13b
testq %r12, %r12
je 0x1f7ac
callq 0x9e68
movss 0x141c(%rbx), %xmm0
movq 0x35e3f(%rip), %rcx     # 0x55490
movq 0x1758(%rcx), %rax
movb $0x1, 0x72(%rax)
cmpb $0x0, 0x74(%rax)
jne 0x1f69c
xorps %xmm1, %xmm1
ucomiss %xmm0, %xmm1
jbe 0x1f672
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 0x1f11a(%rip), %rdi     # 0x3e7bd
leaq -0x40(%rbp), %rsi
movl $0x11, %edx
callq 0x166bc
testb %al, %al
je 0x1f6f7
cmpb $0x0, 0x105(%rbx)
movq %r12, %rax
movq -0x50(%rbp), %rcx
cmovneq %rcx, %rax
testq %rcx, %rcx
cmoveq %r12, %rax
movb $0x1, %r13b
movl -0x2c(%rbp), %ecx
cmpl $0x1, %ecx
je 0x1f6e7
testl %ecx, %ecx
jne 0x1f6f7
movl (%rax), %eax
movq -0x38(%rbp), %rcx
subl %eax, (%rcx)
jmp 0x1f6f7
movq -0x38(%rbp), %rcx
movss (%rcx), %xmm0
subss (%rax), %xmm0
movss %xmm0, (%rcx)
movss 0x141c(%rbx), %xmm0
movq 0x35d8a(%rip), %rcx     # 0x55490
movq 0x1758(%rcx), %rax
movb $0x1, 0x72(%rax)
cmpb $0x0, 0x74(%rax)
jne 0x1f751
xorps %xmm1, %xmm1
ucomiss %xmm0, %xmm1
jbe 0x1f727
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 0x1eef1(%rip), %rdi     # 0x3e649
leaq -0x40(%rbp), %rsi
movl $0x11, %edx
callq 0x166bc
testb %al, %al
je 0x1f7ac
cmpb $0x0, 0x105(%rbx)
movq %r12, %rax
movq -0x50(%rbp), %rcx
cmovneq %rcx, %rax
testq %rcx, %rcx
cmoveq %r12, %rax
movb $0x1, %r13b
movl -0x2c(%rbp), %ecx
cmpl $0x1, %ecx
je 0x1f79c
testl %ecx, %ecx
jne 0x1f7ac
movl (%rax), %eax
movq -0x38(%rbp), %rcx
addl %eax, (%rcx)
jmp 0x1f7ac
movq -0x38(%rbp), %rcx
movss (%rcx), %xmm0
addss (%rax), %xmm0
movss %xmm0, (%rcx)
callq 0x16fc0
movss -0x58(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x1f857
movss 0x141c(%rbx), %xmm0
movq 0x35cbf(%rip), %rcx     # 0x55490
movq 0x1758(%rcx), %rax
movb $0x1, 0x72(%rax)
cmpb $0x0, 0x74(%rax)
jne 0x1f819
ucomiss %xmm0, %xmm1
jbe 0x1f7ef
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 -0x60(%rbp), %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0xe0f3
movss 0x140c(%rbx), %xmm0
leaq -0x58(%rbp), %rdi
callq 0xaab7
callq 0x1bd59
movl %r13d, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq