// File: Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::InputScalarN(char const*, int, void*, int, void const*, void const*, char const*, int)
bool ImGui::InputScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_step, const void* p_step_fast, const char* format, ImGuiInputTextFlags flags)
{
    ImGuiWindow* window = GetCurrentWindow();
    if (window->SkipItems)
        return false;

    ImGuiContext& g = *GImGui;
    bool value_changed = false;
    BeginGroup();
    PushID(label);
    PushMultiItemsWidths(components, CalcItemWidth());
    size_t type_size = GDataTypeInfo[data_type].Size;
    for (int i = 0; i < components; i++)
    {
        PushID(i);
        if (i > 0)
            SameLine(0, g.Style.ItemInnerSpacing.x);
        value_changed |= InputScalar("", data_type, p_data, p_step, p_step_fast, format, flags);
        PopID();
        PopItemWidth();
        p_data = (void*)((char*)p_data + type_size);
    }
    PopID();

    const char* label_end = FindRenderedTextEnd(label);
    if (label != label_end)
    {
        SameLine(0.0f, g.Style.ItemInnerSpacing.x);
        TextEx(label, label_end);
    }

    EndGroup();
    return value_changed;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movl 0x18(%rbp), %eax
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
callq 0xeb270
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
testb $0x1, 0x93(%rax)
je 0x149dc7
movb $0x0, -0x1(%rbp)
jmp 0x149efb
leaq 0xc9172(%rip), %rax     # 0x212f40
movq (%rax), %rax
movq %rax, -0x48(%rbp)
movb $0x0, -0x49(%rbp)
callq 0xdd220
movq -0x10(%rbp), %rdi
callq 0xdb440
movl -0x24(%rbp), %eax
movl %eax, -0x6c(%rbp)
callq 0xdcdc0
movl -0x6c(%rbp), %edi
callq 0xdcbc0
movslq -0x14(%rbp), %rcx
leaq 0xc3cfb(%rip), %rax     # 0x20db00
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, -0x58(%rbp)
movl $0x0, -0x5c(%rbp)
movl -0x5c(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x149eab
movl -0x5c(%rbp), %edi
callq 0xdb550
cmpl $0x0, -0x5c(%rbp)
jle 0x149e48
movq -0x48(%rbp), %rax
movss 0x15b0(%rax), %xmm1
xorps %xmm0, %xmm0
callq 0xdc1c0
movl -0x14(%rbp), %esi
movq -0x20(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq -0x38(%rbp), %r8
movq 0x10(%rbp), %r9
movl 0x18(%rbp), %eax
leaq 0x280a4(%rip), %rdi     # 0x171f09
movl %eax, (%rsp)
callq 0x1498a0
andb $0x1, %al
movzbl %al, %ecx
movb -0x49(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
orl %ecx, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movb %al, -0x49(%rbp)
callq 0xdb640
callq 0xdcd30
movq -0x20(%rbp), %rax
addq -0x58(%rbp), %rax
movq %rax, -0x20(%rbp)
movl -0x5c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5c(%rbp)
jmp 0x149e1a
callq 0xdb640
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xc8090
movq %rax, -0x68(%rbp)
movq -0x10(%rbp), %rax
cmpq -0x68(%rbp), %rax
je 0x149eee
movq -0x48(%rbp), %rax
movss 0x15b0(%rax), %xmm1
xorps %xmm0, %xmm0
callq 0xdc1c0
movq -0x10(%rbp), %rdi
movq -0x68(%rbp), %rsi
xorl %edx, %edx
callq 0x138a30
callq 0xdbe80
movb -0x49(%rbp), %al
andb $0x1, %al
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax)