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

    ImGuiContext& g = *GImGui;
    const ImGuiStyle& style = g.Style;
    const float w = CalcItemWidth();

    const ImVec2 label_size = CalcTextSize(label, NULL, true);
    const ImRect value_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w, label_size.y + style.FramePadding.y * 2));
    const ImRect total_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w + (label_size.x > 0.0f ? style.ItemInnerSpacing.x : 0.0f), style.FramePadding.y * 2) + label_size);
    ItemSize(total_bb, style.FramePadding.y);
    if (!ItemAdd(total_bb, 0))
        return;

    // Render
    const char* value_text_begin = &g.TempBuffer[0];
    const char* value_text_end = value_text_begin + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args);
    RenderTextClipped(value_bb.Min, value_bb.Max, value_text_begin, value_text_end, NULL, ImVec2(0.0f, 0.5f));
    if (label_size.x > 0.0f)
        RenderText(ImVec2(value_bb.Max.x + style.ItemInnerSpacing.x, value_bb.Min.y + style.FramePadding.y), label);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
callq 0xeb270
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
testb $0x1, 0x93(%rax)
je 0x1397d2
jmp 0x139a9e
leaq 0xd9767(%rip), %rax     # 0x212f40
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
addq $0x1560, %rax           # imm = 0x1560
movq %rax, -0x30(%rbp)
callq 0xdcdc0
movss %xmm0, -0x34(%rbp)
movq -0x8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0x1, %edx
movss 0x38773(%rip), %xmm0    # 0x171f80
callq 0xc87e0
movlpd %xmm0, -0x3c(%rbp)
movq -0x20(%rbp), %rax
addq $0xd8, %rax
movq %rax, -0xc8(%rbp)
movss -0x34(%rbp), %xmm0
movss -0x38(%rbp), %xmm2
movq -0x30(%rbp), %rax
movss 0x3c(%rax), %xmm1
addss %xmm1, %xmm1
addss %xmm2, %xmm1
leaq -0x5c(%rbp), %rdi
movq %rdi, -0xd0(%rbp)
callq 0xbf4c0
movq -0xd0(%rbp), %rsi
movq -0xc8(%rbp), %rdi
callq 0x139090
movq -0xc8(%rbp), %rsi
movlpd %xmm0, -0x54(%rbp)
leaq -0x4c(%rbp), %rdi
leaq -0x54(%rbp), %rdx
callq 0xe8660
movq -0x20(%rbp), %rax
addq $0xd8, %rax
movq %rax, -0xc0(%rbp)
movq -0x20(%rbp), %rax
addq $0xd8, %rax
movq %rax, -0xb8(%rbp)
movss -0x34(%rbp), %xmm0
movss %xmm0, -0xac(%rbp)
movss -0x3c(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x1398ce
movq -0x30(%rbp), %rax
movss 0x50(%rax), %xmm0
movss %xmm0, -0xd4(%rbp)
jmp 0x1398db
xorps %xmm0, %xmm0
movss %xmm0, -0xd4(%rbp)
jmp 0x1398db
movss -0xac(%rbp), %xmm0
movss -0xd4(%rbp), %xmm1
addss %xmm1, %xmm0
movq -0x30(%rbp), %rax
movss 0x3c(%rax), %xmm1
addss %xmm1, %xmm1
leaq -0x84(%rbp), %rdi
movq %rdi, -0xe0(%rbp)
callq 0xbf4c0
movq -0xb8(%rbp), %rdi
movq -0xe0(%rbp), %rsi
callq 0x139090
movlpd %xmm0, -0x7c(%rbp)
leaq -0x7c(%rbp), %rdi
leaq -0x3c(%rbp), %rsi
callq 0x139090
movq -0xc0(%rbp), %rsi
movlpd %xmm0, -0x74(%rbp)
leaq -0x6c(%rbp), %rdi
leaq -0x74(%rbp), %rdx
callq 0xe8660
movq -0x30(%rbp), %rax
movss 0x3c(%rax), %xmm0
leaq -0x6c(%rbp), %rdi
callq 0xdc300
leaq -0x6c(%rbp), %rdi
xorl %esi, %esi
xorl %eax, %eax
movl %eax, %edx
callq 0xd6250
testb $0x1, %al
jne 0x139977
jmp 0x139a9e
movq -0x28(%rbp), %rax
addq $0x3378, %rax           # imm = 0x3378
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x28(%rbp), %rdi
addq $0x3378, %rdi           # imm = 0x3378
movq -0x10(%rbp), %rdx
movq -0x18(%rbp), %rcx
movl $0xc01, %esi            # imm = 0xC01
callq 0xc4e20
movl %eax, %ecx
movq -0x108(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x98(%rbp)
leaq -0x4c(%rbp), %rax
movq %rax, -0x100(%rbp)
leaq -0x4c(%rbp), %rax
addq $0x8, %rax
movq %rax, -0xf8(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0xe8(%rbp)
leaq -0xa0(%rbp), %rdi
xorps %xmm0, %xmm0
movss 0x385c7(%rip), %xmm1    # 0x171fd8
callq 0xbf4c0
movq -0x100(%rbp), %rdi
movq -0xf8(%rbp), %rsi
movq -0xf0(%rbp), %rdx
movq -0xe8(%rbp), %rcx
xorl %eax, %eax
movl %eax, %r8d
leaq -0xa0(%rbp), %r9
movq $0x0, (%rsp)
callq 0xc8900
movss -0x3c(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x139a9e
movss -0x48(%rbp), %xmm1
movss -0x44(%rbp), %xmm0
movq -0x30(%rbp), %rax
movss 0x3c(%rax), %xmm2
movss 0x50(%rax), %xmm3
addss %xmm3, %xmm0
addss %xmm2, %xmm1
leaq -0xa8(%rbp), %rdi
callq 0xbf4c0
movq -0x8(%rbp), %rdi
movsd -0xa8(%rbp), %xmm0
xorl %eax, %eax
movl %eax, %esi
movl $0x1, %edx
callq 0xc8120
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
nopw (%rax,%rax)