// File: /workspace/github_cpp_makefile_star2_O1/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 0xa1082(%rip), %rax     # 0xfdcd0
movl 0x1a68(%rax), %r12d
addl $-0x2, %r12d
cmpl %r12d, %r15d
movl (%rdi), %r9d
movl 0x14(%rdi), %r8d
leaq 0x5e66e(%rip), %rax     # 0xbb2d8
leaq 0x5a2ac(%rip), %rdx     # 0xb6f1d
cmovgeq %rdx, %rax
movq %rax, (%rsp)
leaq 0x5e642(%rip), %rdx     # 0xbb2c2
leaq -0x140(%rbp), %rdi
movl $0x100, %esi            # imm = 0x100
xorl %eax, %eax
callq 0x427cb
cmpl %r12d, %r15d
jge 0x5ccab
movl $0x1634, %esi           # imm = 0x1634
addq 0xa102c(%rip), %rsi     # 0xfdcd0
xorl %edi, %edi
callq 0x4481b
leaq 0x5dea5(%rip), %rsi     # 0xbab57
leaq -0x140(%rbp), %rdx
movq %rbx, %rdi
xorl %eax, %eax
callq 0xa21c9
movl %eax, %r14d
cmpl %r12d, %r15d
jge 0x5ccda
movl $0x1, %edi
callq 0x44964
jmp 0x5cdac
xorl %edi, %edi
callq 0x46d03
testb %al, %al
je 0x5cdac
movl $0x1f38, %r15d          # imm = 0x1F38
addq 0xa0fda(%rip), %r15     # 0xfdcd0
leaq 0x2c(%rbx), %rsi
leaq 0x34(%rbx), %rdx
movss 0x5a2de(%rip), %xmm1    # 0xb6fe4
xorps %xmm0, %xmm0
movq %r15, %rdi
movl $0xff00ffff, %ecx       # imm = 0xFF00FFFF
movl $0xf, %r8d
callq 0x79c80
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 0x5a282(%rip), %xmm0    # 0xb6fe4
callq 0x79abc
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 0x5a23d(%rip), %xmm0    # 0xb6fe4
callq 0x79abc
testb %r14b, %r14b
je 0x5cf60
cmpl $0x0, (%rbx)
jle 0x5cf5b
xorl %r15d, %r15d
xorl %r13d, %r13d
movq 0x8(%rbx), %r12
leaq (%r12,%r15), %r14
movq %r14, %rdi
callq 0x55e4b
leaq 0x78599(%rip), %rdi     # 0xd5374
callq 0x93134
testb %al, %al
je 0x5cdf4
movq %rbx, %rdi
movq %r14, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xa6c1d
movq 0xa0ed5(%rip), %rax     # 0xfdcd0
movq 0x1ae0(%rax), %rax
movb $0x1, 0x90(%rax)
cmpb $0x0, 0x93(%rax)
jne 0x5ce58
movss 0xe4(%rax), %xmm0
movss 0xe0(%rax), %xmm1
addss 0x5aa3e(%rip), %xmm1    # 0xb7868
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 0x78519(%rip), %rdi     # 0xd5378
callq 0x93134
testb %al, %al
je 0x5ce78
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0xa6c1d
movq 0xa0e51(%rip), %rcx     # 0xfdcd0
movq 0x1ae0(%rcx), %rax
movb $0x1, 0x90(%rax)
cmpb $0x0, 0x93(%rax)
jne 0x5cedc
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 0x5a020(%rip), %r8      # 0xb6f1d
cmpl $-0x1, %eax
je 0x5cf14
cmpl %eax, 0x88(%rbx)
jle 0x5cf72
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 0x5e3ab(%rip), %rdi     # 0xbb2e4
movl %r13d, %esi
movb $0x3, %al
callq 0x92024
callq 0x56188
incq %r13
movslq (%rbx), %rax
addq $0x24, %r15
cmpq %rax, %r13
jl 0x5cdc4
callq 0xa2f4e
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5f79c(%rip), %rdi     # 0xbc715
leaq 0x5e6bf(%rip), %rsi     # 0xbb63f
leaq 0x5f7d1(%rip), %rcx     # 0xbc758
movl $0x765, %edx            # imm = 0x765
callq 0xc140