// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImGui::DebugNodeWindow(ImGuiWindow*, char const*)
void ImGui::DebugNodeWindow(ImGuiWindow* window, const char* label)
{
    if (window == NULL)
    {
        BulletText("%s: NULL", label);
        return;
    }

    ImGuiContext& g = *GImGui;
    const bool is_active = window->WasActive;
    ImGuiTreeNodeFlags tree_node_flags = (window == g.NavWindow) ? ImGuiTreeNodeFlags_Selected : ImGuiTreeNodeFlags_None;
    if (!is_active) { PushStyleColor(ImGuiCol_Text, GetStyleColorVec4(ImGuiCol_TextDisabled)); }
    const bool open = TreeNodeEx(label, tree_node_flags, "%s '%s'%s", label, window->Name, is_active ? "" : " *Inactive*");
    if (!is_active) { PopStyleColor(); }
    if (IsItemHovered() && is_active)
        GetForegroundDrawList(window)->AddRect(window->Pos, window->Pos + window->Size, IM_COL32(255, 255, 0, 255));
    if (!open)
        return;

    if (window->MemoryCompacted)
        TextDisabled("Note: some memory buffers have been compacted/freed.");

    ImGuiWindowFlags flags = window->Flags;
    DebugNodeDrawList(window, window->DrawList, "DrawList");
    BulletText("Pos: (%.1f,%.1f), Size: (%.1f,%.1f), ContentSize (%.1f,%.1f) Ideal (%.1f,%.1f)", window->Pos.x, window->Pos.y, window->Size.x, window->Size.y, window->ContentSize.x, window->ContentSize.y, window->ContentSizeIdeal.x, window->ContentSizeIdeal.y);
    BulletText("Flags: 0x%08X (%s%s%s%s%s%s%s%s%s..)", flags,
        (flags & ImGuiWindowFlags_ChildWindow)  ? "Child " : "",      (flags & ImGuiWindowFlags_Tooltip)     ? "Tooltip "   : "",  (flags & ImGuiWindowFlags_Popup) ? "Popup " : "",
        (flags & ImGuiWindowFlags_Modal)        ? "Modal " : "",      (flags & ImGuiWindowFlags_ChildMenu)   ? "ChildMenu " : "",  (flags & ImGuiWindowFlags_NoSavedSettings) ? "NoSavedSettings " : "",
        (flags & ImGuiWindowFlags_NoMouseInputs)? "NoMouseInputs":"", (flags & ImGuiWindowFlags_NoNavInputs) ? "NoNavInputs" : "", (flags & ImGuiWindowFlags_AlwaysAutoResize) ? "AlwaysAutoResize" : "");
    BulletText("Scroll: (%.2f/%.2f,%.2f/%.2f) Scrollbar:%s%s", window->Scroll.x, window->ScrollMax.x, window->Scroll.y, window->ScrollMax.y, window->ScrollbarX ? "X" : "", window->ScrollbarY ? "Y" : "");
    BulletText("Active: %d/%d, WriteAccessed: %d, BeginOrderWithinContext: %d", window->Active, window->WasActive, window->WriteAccessed, (window->Active || window->WasActive) ? window->BeginOrderWithinContext : -1);
    BulletText("Appearing: %d, Hidden: %d (CanSkip %d Cannot %d), SkipItems: %d", window->Appearing, window->Hidden, window->HiddenFramesCanSkipItems, window->HiddenFramesCannotSkipItems, window->SkipItems);
    BulletText("NavLastIds: 0x%08X,0x%08X, NavLayerActiveMask: %X", window->NavLastIds[0], window->NavLastIds[1], window->DC.NavLayerActiveMask);
    BulletText("NavLastChildNavWindow: %s", window->NavLastChildNavWindow ? window->NavLastChildNavWindow->Name : "NULL");
    if (!window->NavRectRel[0].IsInverted())
        BulletText("NavRectRel[0]: (%.1f,%.1f)(%.1f,%.1f)", window->NavRectRel[0].Min.x, window->NavRectRel[0].Min.y, window->NavRectRel[0].Max.x, window->NavRectRel[0].Max.y);
    else
        BulletText("NavRectRel[0]: <None>");
    if (window->RootWindow != window)       { DebugNodeWindow(window->RootWindow, "RootWindow"); }
    if (window->ParentWindow != NULL)       { DebugNodeWindow(window->ParentWindow, "ParentWindow"); }
    if (window->DC.ChildWindows.Size > 0)   { DebugNodeWindowsList(&window->DC.ChildWindows, "ChildWindows"); }
    if (window->ColumnsStorage.Size > 0 && TreeNode("Columns", "Columns sets (%d)", window->ColumnsStorage.Size))
    {
        for (int n = 0; n < window->ColumnsStorage.Size; n++)
            DebugNodeColumns(&window->ColumnsStorage[n]);
        TreePop();
    }
    DebugNodeStorage(&window->StateStorage, "Storage");
    TreePop();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
testq %rdi, %rdi
je 0x5c33e
movq %rdi, %rbx
movq 0x9fa31(%rip), %rsi     # 0xfbcd0
movb 0x8f(%rdi), %r12b
xorl %r15d, %r15d
cmpq %rdi, 0x1c90(%rsi)
sete %r15b
testb %r12b, %r12b
je 0x5c35d
movq (%rbx), %r8
leaq 0x5d05c(%rip), %rdx     # 0xb9323
leaq 0x58c4f(%rip), %r9      # 0xb4f1d
movq %r14, %rdi
movl %r15d, %esi
movq %r14, %rcx
xorl %eax, %eax
callq 0xa12e6
movl %eax, %r14d
xorl %edi, %edi
callq 0x461ed
andb %r12b, %al
cmpb $0x1, %al
jne 0x5c3a0
movl $0x1f38, %edi           # imm = 0x1F38
addq 0x9f9d1(%rip), %rdi     # 0xfbcd0
movss 0x10(%rbx), %xmm0
movss 0x14(%rbx), %xmm1
addss 0x18(%rbx), %xmm0
addss 0x1c(%rbx), %xmm1
leaq 0x10(%rbx), %rsi
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
leaq -0x30(%rbp), %rdx
movlps %xmm0, (%rdx)
movss 0x58cbb(%rip), %xmm1    # 0xb4fe4
xorps %xmm0, %xmm0
movl $0xff00ffff, %ecx       # imm = 0xFF00FFFF
movl $0xf, %r8d
callq 0x7851c
jmp 0x5c3a0
leaq 0x5cfd5(%rip), %rdi     # 0xb931a
movq %r14, %rsi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x90944
addq $0x1634, %rsi           # imm = 0x1634
xorl %edi, %edi
callq 0x43e1b
movq (%rbx), %r8
leaq 0x5cfae(%rip), %rdx     # 0xb9323
leaq 0x5cf5c(%rip), %r9      # 0xb92d8
movq %r14, %rdi
movl %r15d, %esi
movq %r14, %rcx
xorl %eax, %eax
callq 0xa12e6
movl %eax, %r14d
movl $0x1, %edi
callq 0x43f55
xorl %edi, %edi
callq 0x461ed
testb %r14b, %r14b
je 0x5c6f5
cmpb $0x1, 0x3e0(%rbx)
jne 0x5c3c0
leaq 0x5cf74(%rip), %rdi     # 0xb932d
xorl %eax, %eax
callq 0x904f1
movl 0xc(%rbx), %r14d
movq 0x2b8(%rbx), %rsi
leaq 0x5c881(%rip), %rdx     # 0xb8c53
movq %rbx, %rdi
callq 0x5b40e
xorps %xmm0, %xmm0
cvtss2sd 0x10(%rbx), %xmm0
xorps %xmm1, %xmm1
cvtss2sd 0x14(%rbx), %xmm1
cvtss2sd 0x18(%rbx), %xmm2
cvtss2sd 0x1c(%rbx), %xmm3
cvtss2sd 0x28(%rbx), %xmm4
cvtss2sd 0x2c(%rbx), %xmm5
cvtss2sd 0x30(%rbx), %xmm6
cvtss2sd 0x34(%rbx), %xmm7
leaq 0x5cf53(%rip), %rdi     # 0xb9362
movb $0x8, %al
callq 0x90944
btl $0x18, %r14d
leaq 0x58afb(%rip), %rax     # 0xb4f1d
leaq 0x5cfad(%rip), %rdx     # 0xb93d6
cmovaeq %rax, %rdx
btl $0x19, %r14d
leaq 0x5cfa4(%rip), %rcx     # 0xb93dd
cmovaeq %rax, %rcx
btl $0x1a, %r14d
leaq 0x5cf9d(%rip), %r8      # 0xb93e6
cmovaeq %rax, %r8
btl $0x1b, %r14d
leaq 0x5cf94(%rip), %r9      # 0xb93ed
cmovaeq %rax, %r9
btl $0x1c, %r14d
leaq 0x5cf8b(%rip), %r10     # 0xb93f4
cmovaeq %rax, %r10
btl $0x8, %r14d
leaq 0x5cf86(%rip), %r11     # 0xb93ff
cmovaeq %rax, %r11
btl $0x9, %r14d
leaq 0x5cf87(%rip), %r12     # 0xb9410
cmovaeq %rax, %r12
btl $0x12, %r14d
leaq 0x5cf85(%rip), %r13     # 0xb941e
cmovaeq %rax, %r13
testb $0x40, %r14b
leaq 0x5cf82(%rip), %r15     # 0xb942a
cmoveq %rax, %r15
subq $0x8, %rsp
leaq 0x5cefa(%rip), %rdi     # 0xb93b1
movl %r14d, %esi
xorl %eax, %eax
pushq %r15
pushq %r13
pushq %r12
pushq %r11
pushq %r10
callq 0x90944
addq $0x30, %rsp
xorps %xmm0, %xmm0
cvtss2sd 0x5c(%rbx), %xmm0
xorps %xmm1, %xmm1
cvtss2sd 0x64(%rbx), %xmm1
xorps %xmm2, %xmm2
cvtss2sd 0x60(%rbx), %xmm2
xorps %xmm3, %xmm3
cvtss2sd 0x68(%rbx), %xmm3
cmpb $0x0, 0x8c(%rbx)
leaq 0x68651(%rip), %rsi     # 0xc4b4e
leaq 0x58a19(%rip), %rax     # 0xb4f1d
cmoveq %rax, %rsi
leaq 0x6864a(%rip), %rdx     # 0xc4b59
cmpb $0x0, 0x8d(%rbx)
cmoveq %rax, %rdx
leaq 0x5cf1a(%rip), %rdi     # 0xb943b
movb $0x4, %al
callq 0x90944
movzbl 0x8e(%rbx), %esi
movzbl 0x8f(%rbx), %edx
movzbl 0x90(%rbx), %ecx
testl %esi, %esi
jne 0x5c54b
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
testl %edx, %edx
je 0x5c553
movswl 0x9e(%rbx), %r8d
leaq 0x5cf0e(%rip), %rdi     # 0xb9468
xorl %eax, %eax
callq 0x90944
movzbl 0x94(%rbx), %esi
movzbl 0x95(%rbx), %edx
movsbl 0xac(%rbx), %ecx
movsbl 0xad(%rbx), %r8d
movzbl 0x93(%rbx), %r9d
leaq 0x5cf19(%rip), %rdi     # 0xb94a6
xorl %eax, %eax
callq 0x90944
movl 0x3b0(%rbx), %esi
movl 0x3b4(%rbx), %edx
movl 0x150(%rbx), %ecx
leaq 0x5cf39(%rip), %rdi     # 0xb94e6
xorl %eax, %eax
callq 0x90944
movq 0x3a8(%rbx), %rax
testq %rax, %rax
je 0x5c5c5
movq (%rax), %rsi
jmp 0x5c5cc
leaq 0x5cd52(%rip), %rsi     # 0xb931e
leaq 0x5cf45(%rip), %rdi     # 0xb9518
xorl %eax, %eax
callq 0x90944
movss 0x3b8(%rbx), %xmm0
movss 0x3c0(%rbx), %xmm2
ucomiss %xmm2, %xmm0
ja 0x5c624
movss 0x3bc(%rbx), %xmm1
movss 0x3c4(%rbx), %xmm3
ucomiss %xmm3, %xmm1
ja 0x5c624
cvtss2sd %xmm0, %xmm0
cvtss2sd %xmm1, %xmm1
cvtss2sd %xmm2, %xmm2
cvtss2sd %xmm3, %xmm3
leaq 0x5cf17(%rip), %rdi     # 0xb9532
movb $0x4, %al
callq 0x90944
jmp 0x5c632
leaq 0x5cf2d(%rip), %rdi     # 0xb9558
xorl %eax, %eax
callq 0x90944
movq 0x390(%rbx), %rdi
cmpq %rbx, %rdi
je 0x5c64a
leaq 0x5a3b4(%rip), %rsi     # 0xb69f9
callq 0x5c27b
movq 0x388(%rbx), %rdi
testq %rdi, %rdi
je 0x5c662
leaq 0x72c29(%rip), %rsi     # 0xcf286
callq 0x5c27b
cmpl $0x0, 0x198(%rbx)
jle 0x5c67e
leaq 0x198(%rbx), %rdi
leaq 0x5cef5(%rip), %rsi     # 0xb956e
callq 0x5b350
movl 0x2a0(%rbx), %edx
testl %edx, %edx
jle 0x5c6da
leaq 0x653a2(%rip), %rdi     # 0xc1a31
leaq 0x5cee5(%rip), %rsi     # 0xb957b
xorl %eax, %eax
callq 0xa075e
testb %al, %al
je 0x5c6da
cmpl $0x0, 0x2a0(%rbx)
jle 0x5c6d5
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x2a8(%rbx), %rdi
addq %r14, %rdi
callq 0x5be2c
incq %r15
movslq 0x2a0(%rbx), %rax
addq $0x88, %r14
cmpq %rax, %r15
jl 0x5c6b0
callq 0xa1609
addq $0x290, %rbx            # imm = 0x290
leaq 0x5cea5(%rip), %rsi     # 0xb958d
movq %rbx, %rdi
callq 0x5c1fb
callq 0xa1609
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq