// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImGui::DebugNodeTabBar(ImGuiTabBar*, char const*)
void ImGui::DebugNodeTabBar(ImGuiTabBar* tab_bar, const char* label)
{
    // Standalone tab bars (not associated to docking/windows functionality) currently hold no discernible strings.
    char buf[256];
    char* p = buf;
    const char* buf_end = buf + IM_ARRAYSIZE(buf);
    const bool is_active = (tab_bar->PrevFrameVisible >= GetFrameCount() - 2);
    p += ImFormatString(p, buf_end - p, "%s 0x%08X (%d tabs)%s", label, tab_bar->ID, tab_bar->Tabs.Size, is_active ? "" : " *Inactive*");
    IM_UNUSED(p);
    if (!is_active) { PushStyleColor(ImGuiCol_Text, GetStyleColorVec4(ImGuiCol_TextDisabled)); }
    bool open = TreeNode(tab_bar, "%s", buf);
    if (!is_active) { PopStyleColor(); }
    if (is_active && IsItemHovered())
    {
        ImDrawList* draw_list = GetForegroundDrawList();
        draw_list->AddRect(tab_bar->BarRect.Min, tab_bar->BarRect.Max, IM_COL32(255, 255, 0, 255));
        draw_list->AddLine(ImVec2(tab_bar->ScrollingRectMinX, tab_bar->BarRect.Min.y), ImVec2(tab_bar->ScrollingRectMinX, tab_bar->BarRect.Max.y), IM_COL32(0, 255, 0, 255));
        draw_list->AddLine(ImVec2(tab_bar->ScrollingRectMaxX, tab_bar->BarRect.Min.y), ImVec2(tab_bar->ScrollingRectMaxX, tab_bar->BarRect.Max.y), IM_COL32(0, 255, 0, 255));
    }
    if (open)
    {
        for (int tab_n = 0; tab_n < tab_bar->Tabs.Size; tab_n++)
        {
            const ImGuiTabItem* tab = &tab_bar->Tabs[tab_n];
            PushID(tab);
            if (SmallButton("<")) { TabBarQueueReorder(tab_bar, tab, -1); } SameLine(0, 2);
            if (SmallButton(">")) { TabBarQueueReorder(tab_bar, tab, +1); } SameLine();
            Text("%02d%c Tab 0x%08X '%s' Offset: %.1f, Width: %.1f/%.1f",
                tab_n, (tab->ID == tab_bar->SelectedTabId) ? '*' : ' ', tab->ID, (tab->NameOffset != -1) ? tab_bar->GetTabName(tab) : "", tab->Offset, tab->Width, tab->ContentWidth);
            PopID();
        }
        TreePop();
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rsi, %rcx
movq %rdi, %rbx
movl 0x28(%rdi), %r14d
movq 0xa0237(%rip), %rax     # 0xfbcd0
movl 0x1a68(%rax), %r15d
addl $-0x2, %r15d
cmpl %r15d, %r14d
movl (%rdi), %r9d
movl 0x14(%rdi), %r8d
leaq 0x5d823(%rip), %rax     # 0xb92d8
leaq 0x59461(%rip), %rdx     # 0xb4f1d
cmovgeq %rdx, %rax
movq %rax, (%rsp)
leaq 0x5d7f7(%rip), %rdx     # 0xb92c2
leaq -0x140(%rbp), %rdi
movl $0x100, %esi            # imm = 0x100
xorl %eax, %eax
callq 0x41f22
cmpl %r15d, %r14d
jge 0x5bb20
movl $0x1634, %esi           # imm = 0x1634
addq 0xa01e1(%rip), %rsi     # 0xfbcd0
xorl %edi, %edi
callq 0x43e1b
leaq 0x5d05a(%rip), %rsi     # 0xb8b57
leaq -0x140(%rbp), %rdx
movq %rbx, %rdi
xorl %eax, %eax
callq 0xa086e
movl %eax, %r14d
movl $0x1, %edi
callq 0x43f55
jmp 0x5bc0d
leaq 0x5d030(%rip), %rsi     # 0xb8b57
leaq -0x140(%rbp), %rdx
movq %rbx, %rdi
xorl %eax, %eax
callq 0xa086e
movl %eax, %r14d
xorl %edi, %edi
callq 0x461ed
testb %al, %al
je 0x5bc0d
movl $0x1f38, %r15d          # imm = 0x1F38
addq 0xa0179(%rip), %r15     # 0xfbcd0
leaq 0x2c(%rbx), %rsi
leaq 0x34(%rbx), %rdx
movss 0x5947d(%rip), %xmm1    # 0xb4fe4
xorps %xmm0, %xmm0
movq %r15, %rdi
movl $0xff00ffff, %ecx       # imm = 0xFF00FFFF
movl $0xf, %r8d
callq 0x7851c
movss 0x30(%rbx), %xmm0
movss 0x5c(%rbx), %xmm1
leaq -0x38(%rbp), %r12
movss %xmm1, (%r12)
movss %xmm0, 0x4(%r12)
movss 0x38(%rbx), %xmm0
leaq -0x30(%rbp), %r13
movss %xmm1, (%r13)
movss %xmm0, 0x4(%r13)
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movl $0xff00ff00, %ecx       # imm = 0xFF00FF00
movss 0x59421(%rip), %xmm0    # 0xb4fe4
callq 0x78368
movss 0x30(%rbx), %xmm0
movss 0x60(%rbx), %xmm1
movss %xmm1, (%r12)
movss %xmm0, 0x4(%r12)
movss 0x38(%rbx), %xmm0
movss %xmm1, (%r13)
movss %xmm0, 0x4(%r13)
leaq -0x38(%rbp), %rsi
leaq -0x30(%rbp), %rdx
movq %r15, %rdi
movl $0xff00ff00, %ecx       # imm = 0xFF00FF00
movss 0x593dc(%rip), %xmm0    # 0xb4fe4
callq 0x78368
testb %r14b, %r14b
je 0x5bdc1
cmpl $0x0, (%rbx)
jle 0x5bdbc
xorl %r15d, %r15d
xorl %r13d, %r13d
movq 0x8(%rbx), %r12
leaq (%r12,%r15), %r14
movq %r14, %rdi
callq 0x54d60
leaq 0x775e5(%rip), %rdi     # 0xd3221
callq 0x9142a
testb %al, %al
je 0x5bc55
movq %rbx, %rdi
movq %r14, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xa518d
movq 0xa0074(%rip), %rax     # 0xfbcd0
movq 0x1ae0(%rax), %rax
movb $0x1, 0x90(%rax)
cmpb $0x0, 0x93(%rax)
jne 0x5bcb9
movss 0xe4(%rax), %xmm0
movss 0xe0(%rax), %xmm1
addss 0x59bdd(%rip), %xmm1    # 0xb5868
movss %xmm1, 0xd8(%rax)
movss %xmm0, 0xdc(%rax)
movq 0x108(%rax), %rcx
movq %rcx, 0x100(%rax)
movss 0x114(%rax), %xmm0
movss %xmm0, 0x110(%rax)
leaq 0x77565(%rip), %rdi     # 0xd3225
callq 0x9142a
testb %al, %al
je 0x5bcd9
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0xa518d
movq 0x9fff0(%rip), %rcx     # 0xfbcd0
movq 0x1ae0(%rcx), %rax
movb $0x1, 0x90(%rax)
cmpb $0x0, 0x93(%rax)
jne 0x5bd3d
movss 0x15a8(%rcx), %xmm0
addss 0xe0(%rax), %xmm0
movss %xmm0, 0xd8(%rax)
movss 0xe4(%rax), %xmm0
movss %xmm0, 0xdc(%rax)
movq 0x108(%rax), %rcx
movq %rcx, 0x100(%rax)
movss 0x114(%rax), %xmm0
movss %xmm0, 0x110(%rax)
movl (%r12,%r15), %ecx
cmpl 0x18(%rbx), %ecx
movl $0x20, %edx
movl $0x2a, %eax
cmovel %eax, %edx
movswl 0x1c(%r12,%r15), %eax
leaq 0x591bf(%rip), %r8      # 0xb4f1d
cmpl $-0x1, %eax
je 0x5bd75
cmpl %eax, 0x88(%rbx)
jle 0x5bdd3
movslq %eax, %r8
addq 0x90(%rbx), %r8
xorps %xmm0, %xmm0
cvtss2sd 0x10(%r12,%r15), %xmm0
xorps %xmm1, %xmm1
cvtss2sd 0x14(%r12,%r15), %xmm1
xorps %xmm2, %xmm2
cvtss2sd 0x18(%r12,%r15), %xmm2
leaq 0x5d54a(%rip), %rdi     # 0xb92e4
movl %r13d, %esi
movb $0x3, %al
callq 0x90323
callq 0x55082
incq %r13
movslq (%rbx), %rax
addq $0x24, %r15
cmpq %rax, %r13
jl 0x5bc25
callq 0xa1609
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5e93b(%rip), %rdi     # 0xba715
leaq 0x5d85e(%rip), %rsi     # 0xb963f
leaq 0x5e970(%rip), %rcx     # 0xba758
movl $0x765, %edx            # imm = 0x765
callq 0xc140