// File: /workspace/github_cpp_makefile_star2_O1/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 0x5d469
movq %rdi, %rbx
movq 0xa088a(%rip), %rsi     # 0xfdcd0
movb 0x8f(%rdi), %r12b
xorl %r15d, %r15d
cmpq %rdi, 0x1c90(%rsi)
sete %r15b
testb %r12b, %r12b
je 0x5d488
leaq 0x59ab6(%rip), %r9      # 0xb6f1d
jmp 0x5d49d
leaq 0x5deaa(%rip), %rdi     # 0xbb31a
movq %r14, %rsi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x92645
addq $0x1634, %rsi           # imm = 0x1634
xorl %edi, %edi
callq 0x4481b
leaq 0x5de3b(%rip), %r9      # 0xbb2d8
movq (%rbx), %r8
leaq 0x5de7c(%rip), %rdx     # 0xbb323
movq %r14, %rdi
movl %r15d, %esi
movq %r14, %rcx
xorl %eax, %eax
callq 0xa2c29
movl %eax, %r14d
testb %r12b, %r12b
jne 0x5d4c9
movl $0x1, %edi
callq 0x44964
xorl %edi, %edi
callq 0x46d03
andb %r12b, %al
cmpb $0x1, %al
jne 0x5d520
movl $0x1f38, %edi           # imm = 0x1F38
addq 0xa07ed(%rip), %rdi     # 0xfdcd0
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 0x59ad7(%rip), %xmm1    # 0xb6fe4
xorps %xmm0, %xmm0
movl $0xff00ffff, %ecx       # imm = 0xFF00FFFF
movl $0xf, %r8d
callq 0x79c80
testb %r14b, %r14b
je 0x5d882
cmpb $0x1, 0x3e0(%rbx)
jne 0x5d540
leaq 0x5ddf4(%rip), %rdi     # 0xbb32d
xorl %eax, %eax
callq 0x921f2
movl 0xc(%rbx), %r14d
movq 0x2b8(%rbx), %rsi
leaq 0x5d701(%rip), %rdx     # 0xbac53
movq %rbx, %rdi
callq 0x5c5ba
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 0x5ddd3(%rip), %rdi     # 0xbb362
movb $0x8, %al
callq 0x92645
btl $0x18, %r14d
leaq 0x5997b(%rip), %rax     # 0xb6f1d
leaq 0x5de2d(%rip), %rdx     # 0xbb3d6
cmovaeq %rax, %rdx
btl $0x19, %r14d
leaq 0x5de24(%rip), %rcx     # 0xbb3dd
cmovaeq %rax, %rcx
btl $0x1a, %r14d
leaq 0x5de1d(%rip), %r8      # 0xbb3e6
cmovaeq %rax, %r8
btl $0x1b, %r14d
leaq 0x5de14(%rip), %r9      # 0xbb3ed
cmovaeq %rax, %r9
btl $0x1c, %r14d
leaq 0x5de0b(%rip), %r10     # 0xbb3f4
cmovaeq %rax, %r10
btl $0x8, %r14d
leaq 0x5de06(%rip), %r11     # 0xbb3ff
cmovaeq %rax, %r11
btl $0x9, %r14d
leaq 0x5de07(%rip), %r12     # 0xbb410
cmovaeq %rax, %r12
btl $0x12, %r14d
leaq 0x5de05(%rip), %r13     # 0xbb41e
cmovaeq %rax, %r13
testb $0x40, %r14b
leaq 0x5de02(%rip), %r15     # 0xbb42a
cmoveq %rax, %r15
subq $0x8, %rsp
leaq 0x5dd7a(%rip), %rdi     # 0xbb3b1
movl %r14d, %esi
xorl %eax, %eax
pushq %r15
pushq %r13
pushq %r12
pushq %r11
pushq %r10
callq 0x92645
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 0x69501(%rip), %rsi     # 0xc6b7e
leaq 0x59899(%rip), %rax     # 0xb6f1d
cmoveq %rax, %rsi
leaq 0x694fa(%rip), %rdx     # 0xc6b89
cmpb $0x0, 0x8d(%rbx)
cmoveq %rax, %rdx
leaq 0x5dd9a(%rip), %rdi     # 0xbb43b
movb $0x4, %al
callq 0x92645
movzbl 0x8e(%rbx), %esi
movzbl 0x8f(%rbx), %edx
movzbl 0x90(%rbx), %ecx
testl %esi, %esi
jne 0x5d6cb
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
testl %edx, %edx
je 0x5d6d3
movswl 0x9e(%rbx), %r8d
leaq 0x5dd8e(%rip), %rdi     # 0xbb468
xorl %eax, %eax
callq 0x92645
movzbl 0x94(%rbx), %esi
movzbl 0x95(%rbx), %edx
movsbl 0xac(%rbx), %ecx
movsbl 0xad(%rbx), %r8d
movzbl 0x93(%rbx), %r9d
leaq 0x5dd99(%rip), %rdi     # 0xbb4a6
xorl %eax, %eax
callq 0x92645
movl 0x3b0(%rbx), %esi
movl 0x3b4(%rbx), %edx
movl 0x150(%rbx), %ecx
leaq 0x5ddb9(%rip), %rdi     # 0xbb4e6
xorl %eax, %eax
callq 0x92645
movq 0x3a8(%rbx), %rax
testq %rax, %rax
je 0x5d745
movq (%rax), %rsi
jmp 0x5d74c
leaq 0x5dbd2(%rip), %rsi     # 0xbb31e
leaq 0x5ddc5(%rip), %rdi     # 0xbb518
xorl %eax, %eax
callq 0x92645
movss 0x3b8(%rbx), %xmm0
ucomiss 0x3c0(%rbx), %xmm0
ja 0x5d7b1
movss 0x3bc(%rbx), %xmm1
ucomiss 0x3c4(%rbx), %xmm1
ja 0x5d7b1
cvtss2sd %xmm0, %xmm0
xorps %xmm1, %xmm1
cvtss2sd 0x3bc(%rbx), %xmm1
xorps %xmm2, %xmm2
cvtss2sd 0x3c0(%rbx), %xmm2
xorps %xmm3, %xmm3
cvtss2sd 0x3c4(%rbx), %xmm3
leaq 0x5dd8a(%rip), %rdi     # 0xbb532
movb $0x4, %al
callq 0x92645
jmp 0x5d7bf
leaq 0x5dda0(%rip), %rdi     # 0xbb558
xorl %eax, %eax
callq 0x92645
movq 0x390(%rbx), %rdi
cmpq %rbx, %rdi
je 0x5d7d7
leaq 0x5b227(%rip), %rsi     # 0xb89f9
callq 0x5d426
movq 0x388(%rbx), %rdi
testq %rdi, %rdi
je 0x5d7ef
leaq 0x73acc(%rip), %rsi     # 0xd12b6
callq 0x5d426
cmpl $0x0, 0x198(%rbx)
jle 0x5d80b
leaq 0x198(%rbx), %rdi
leaq 0x5dd68(%rip), %rsi     # 0xbb56e
callq 0x5c4fc
movl 0x2a0(%rbx), %edx
testl %edx, %edx
jle 0x5d867
leaq 0x66245(%rip), %rdi     # 0xc3a61
leaq 0x5dd58(%rip), %rsi     # 0xbb57b
xorl %eax, %eax
callq 0xa20b9
testb %al, %al
je 0x5d867
cmpl $0x0, 0x2a0(%rbx)
jle 0x5d862
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x2a8(%rbx), %rdi
addq %r14, %rdi
callq 0x5cfcb
incq %r15
movslq 0x2a0(%rbx), %rax
addq $0x88, %r14
cmpq %rax, %r15
jl 0x5d83d
callq 0xa2f4e
addq $0x290, %rbx            # imm = 0x290
leaq 0x5dd18(%rip), %rsi     # 0xbb58d
movq %rbx, %rdi
callq 0x5d3a6
callq 0xa2f4e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq