// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: ImGui::BulletTextV(char const*, __va_list_tag*)
void ImGui::BulletTextV(const char* fmt, va_list args)
{
    ImGuiWindow* window = GetCurrentWindow();
    if (window->SkipItems)
        return;

    ImGuiContext& g = *GImGui;
    const ImGuiStyle& style = g.Style;

    const char* text_begin = g.TempBuffer;
    const char* text_end = text_begin + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args);
    const ImVec2 label_size = CalcTextSize(text_begin, text_end, false);
    const ImVec2 total_size = ImVec2(g.FontSize + (label_size.x > 0.0f ? (label_size.x + style.FramePadding.x * 2) : 0.0f), label_size.y);  // Empty text doesn't add padding
    ImVec2 pos = window->DC.CursorPos;
    pos.y += window->DC.CurrLineTextBaseOffset;
    ItemSize(total_size, 0.0f);
    const ImRect bb(pos, pos + total_size);
    if (!ItemAdd(bb, 0))
        return;

    // Render
    ImU32 text_col = GetColorU32(ImGuiCol_Text);
    RenderBullet(window->DrawList, bb.Min + ImVec2(style.FramePadding.x + g.FontSize * 0.5f, g.FontSize * 0.5f), text_col);
    RenderText(bb.Min + ImVec2(g.FontSize + style.FramePadding.x * 2, 0.0f), text_begin, text_end, false);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
leaq 0x6a09a(%rip), %rax     # 0xe3ce0
movq (%rax), %r12
movq 0x1ae0(%r12), %r13
movb $0x1, 0x90(%r13)
cmpb $0x0, 0x93(%r13)
jne 0x79dcf
movq %rsi, %rcx
movq %rdi, %rdx
leaq 0x3378(%r12), %rbx
movl $0xc01, %esi            # imm = 0xC01
movq %rbx, %rdi
callq 0x34731
cltq
leaq (%r12,%rax), %rsi
addq $0x3378, %rsi           # imm = 0x3378
movss 0x22359(%rip), %xmm0    # 0x9bff0
movq %rbx, %rdi
movq %rsi, -0x48(%rbp)
xorl %edx, %edx
callq 0x365e8
movss 0x1980(%r12), %xmm1
xorps %xmm2, %xmm2
ucomiss %xmm2, %xmm0
jbe 0x79cc9
movss 0x1598(%r12), %xmm2
addss %xmm2, %xmm2
addss %xmm0, %xmm2
addss %xmm2, %xmm1
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
leaq -0x68(%rbp), %r15
movss %xmm1, (%r15)
movss %xmm0, 0x4(%r15)
movl 0xd8(%r13), %r14d
movss 0xdc(%r13), %xmm0
movd %r14d, %xmm1
movdqa %xmm1, -0x60(%rbp)
addss 0x110(%r13), %xmm0
movss %xmm0, -0x2c(%rbp)
xorps %xmm0, %xmm0
movq %r15, %rdi
callq 0x40d3b
movaps -0x60(%rbp), %xmm1
addss (%r15), %xmm1
movss 0x4(%r15), %xmm0
movss -0x2c(%rbp), %xmm2
addss %xmm2, %xmm0
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
leaq -0x3c(%rbp), %rdi
movl %r14d, (%rdi)
movss %xmm2, 0x4(%rdi)
movlps %xmm1, 0x8(%rdi)
xorl %esi, %esi
xorl %edx, %edx
callq 0x40ea5
testb %al, %al
je 0x79dcf
movss 0x222a1(%rip), %xmm0    # 0x9bff8
xorl %edi, %edi
callq 0x35d33
movss 0x1980(%r12), %xmm1
mulss 0x222a8(%rip), %xmm1    # 0x9c018
movss 0x1598(%r12), %xmm0
addss %xmm1, %xmm0
addss -0x3c(%rbp), %xmm0
movq 0x2b8(%r13), %rdi
addss -0x38(%rbp), %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movl %eax, %esi
callq 0x6ba15
movss 0x1598(%r12), %xmm0
addss %xmm0, %xmm0
addss 0x1980(%r12), %xmm0
addss -0x3c(%rbp), %xmm0
xorps %xmm1, %xmm1
addss -0x38(%rbp), %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movq %rbx, %rdi
movq -0x48(%rbp), %rsi
xorl %edx, %edx
callq 0x36156
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq