// File: /workspace/github_cpp_makefile_star2_O2/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), %r15d
movq 0x9b6a6(%rip), %rax     # 0xe3ce0
movl 0x1a68(%rax), %r12d
addl $-0x2, %r12d
cmpl %r12d, %r15d
movl (%rdi), %r9d
movl 0x14(%rdi), %r8d
leaq 0x57cb2(%rip), %rax     # 0xa0308
leaq 0x538c4(%rip), %rdx     # 0x9bf21
cmovgeq %rdx, %rax
movq %rax, (%rsp)
leaq 0x57c86(%rip), %rdx     # 0xa02f2
leaq -0x140(%rbp), %rdi
movl $0x100, %esi            # imm = 0x100
xorl %eax, %eax
callq 0x3468c
cmpl %r12d, %r15d
jge 0x48697
movl $0x1634, %esi           # imm = 0x1634
addq 0x9b650(%rip), %rsi     # 0xe3ce0
xorl %edi, %edi
callq 0x35e60
leaq 0x574e9(%rip), %rsi     # 0x9fb87
leaq -0x140(%rbp), %rdx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x88935
movl %eax, %r14d
cmpl %r12d, %r15d
jge 0x486c4
pushq $0x1
popq %rdi
callq 0x35eb4
jmp 0x48794
xorl %edi, %edi
callq 0x374fd
testb %al, %al
je 0x48794
movl $0x1f38, %r15d          # imm = 0x1F38
addq 0x9b600(%rip), %r15     # 0xe3ce0
leaq 0x2c(%rbx), %rsi
leaq 0x34(%rbx), %rdx
pushq $0xf
popq %r8
movss 0x53904(%rip), %xmm1    # 0x9bff8
xorps %xmm0, %xmm0
movq %r15, %rdi
movl $0xff00ffff, %ecx       # imm = 0xFF00FFFF
callq 0x63f6c
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 0x538ae(%rip), %xmm0    # 0x9bff8
callq 0x63ec2
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 0x53869(%rip), %xmm0    # 0x9bff8
callq 0x63ec2
testb %r14b, %r14b
je 0x48884
xorl %r14d, %r14d
cmpl (%rbx), %r14d
jge 0x4887f
movq %rbx, %rdi
movl %r14d, %esi
callq 0x4bc4e
movq %rax, %r15
movq %rax, %rdi
callq 0x42f1f
leaq 0x71e07(%rip), %rdi     # 0xba5cd
callq 0x7a657
testb %al, %al
je 0x487dd
movq %rbx, %rdi
movq %r15, %rsi
pushq $-0x1
popq %rdx
callq 0x8cbc5
xorps %xmm0, %xmm0
movss 0x540ac(%rip), %xmm1    # 0x9c894
callq 0x437ec
leaq 0x71ddd(%rip), %rdi     # 0xba5d1
callq 0x7a657
testb %al, %al
je 0x4880b
movq %rbx, %rdi
movq %r15, %rsi
pushq $0x1
popq %rdx
callq 0x8cbc5
xorps %xmm0, %xmm0
movss 0x537da(%rip), %xmm1    # 0x9bff0
callq 0x437ec
movl (%r15), %r13d
pushq $0x2a
popq %r12
cmpl 0x18(%rbx), %r13d
je 0x4882c
pushq $0x20
popq %r12
cmpw $-0x1, 0x1c(%r15)
leaq 0x536e8(%rip), %r8      # 0x9bf21
je 0x48849
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4bc84
movq %rax, %r8
cvtss2sd 0x10(%r15), %xmm0
cvtss2sd 0x14(%r15), %xmm1
cvtss2sd 0x18(%r15), %xmm2
leaq 0x57ab2(%rip), %rdi     # 0xa0314
movl %r14d, %esi
movl %r12d, %edx
movl %r13d, %ecx
movb $0x3, %al
callq 0x795ac
callq 0x42fea
incl %r14d
jmp 0x487a0
callq 0x89637
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq