// File: /workspace/github_cpp_makefile_star2_O2/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 0x48cac
movq %rdi, %rbx
movq 0x9b057(%rip), %rsi     # 0xe3ce0
movb 0x8f(%rdi), %r12b
xorl %r15d, %r15d
cmpq %rdi, 0x1c90(%rsi)
sete %r15b
testb %r12b, %r12b
je 0x48ccb
leaq 0x53277(%rip), %r9      # 0x9bf21
jmp 0x48ce0
leaq 0x57697(%rip), %rdi     # 0xa034a
movq %r14, %rsi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x79bb3
addq $0x1634, %rsi           # imm = 0x1634
xorl %edi, %edi
callq 0x35e60
leaq 0x57628(%rip), %r9      # 0xa0308
movq (%rbx), %r8
leaq 0x57669(%rip), %rdx     # 0xa0353
movq %r14, %rdi
movl %r15d, %esi
movq %r14, %rcx
xorl %eax, %eax
callq 0x89398
movl %eax, %r14d
testb %r12b, %r12b
jne 0x48d0a
pushq $0x1
popq %rdi
callq 0x35eb4
xorl %edi, %edi
callq 0x374fd
andb %r12b, %al
cmpb $0x1, %al
jne 0x48d5f
movl $0x1f38, %edi           # imm = 0x1F38
addq 0x9afbc(%rip), %rdi     # 0xe3ce0
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)
pushq $0xf
popq %r8
movss 0x532a6(%rip), %xmm1    # 0x9bff8
xorps %xmm0, %xmm0
movl $0xff00ffff, %ecx       # imm = 0xFF00FFFF
callq 0x63f6c
testb %r14b, %r14b
je 0x49095
cmpb $0x1, 0x3e0(%rbx)
jne 0x48d7f
leaq 0x575e5(%rip), %rdi     # 0xa035d
xorl %eax, %eax
callq 0x79774
movl 0xc(%rbx), %r14d
movq 0x2b8(%rbx), %rsi
leaq 0x56ef2(%rip), %rdx     # 0x9fc83
movq %rbx, %rdi
callq 0x48084
cvtss2sd 0x10(%rbx), %xmm0
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 0x575ca(%rip), %rdi     # 0xa0392
movb $0x8, %al
callq 0x79bb3
btl $0x18, %r14d
leaq 0x53146(%rip), %rax     # 0x9bf21
leaq 0x57624(%rip), %rdx     # 0xa0406
cmovaeq %rax, %rdx
btl $0x19, %r14d
leaq 0x5761b(%rip), %rcx     # 0xa040d
cmovaeq %rax, %rcx
btl $0x1a, %r14d
leaq 0x57614(%rip), %r8      # 0xa0416
cmovaeq %rax, %r8
btl $0x1b, %r14d
leaq 0x5760b(%rip), %r9      # 0xa041d
cmovaeq %rax, %r9
btl $0x1c, %r14d
leaq 0x57602(%rip), %r10     # 0xa0424
cmovaeq %rax, %r10
btl $0x8, %r14d
leaq 0x575fd(%rip), %r11     # 0xa042f
cmovaeq %rax, %r11
btl $0x9, %r14d
leaq 0x575fe(%rip), %r12     # 0xa0440
cmovaeq %rax, %r12
btl $0x12, %r14d
leaq 0x575fc(%rip), %r13     # 0xa044e
cmovaeq %rax, %r13
testb $0x40, %r14b
leaq 0x575f9(%rip), %r15     # 0xa045a
cmoveq %rax, %r15
subq $0x8, %rsp
leaq 0x57571(%rip), %rdi     # 0xa03e1
movl %r14d, %esi
xorl %eax, %eax
pushq %r15
pushq %r13
pushq %r12
pushq %r11
pushq %r10
callq 0x79bb3
addq $0x30, %rsp
cvtss2sd 0x5c(%rbx), %xmm0
cvtss2sd 0x64(%rbx), %xmm1
cvtss2sd 0x60(%rbx), %xmm2
cvtss2sd 0x68(%rbx), %xmm3
cmpb $0x0, 0x8c(%rbx)
leaq 0x62fd4(%rip), %rsi     # 0xabe7e
leaq 0x53070(%rip), %rax     # 0x9bf21
cmoveq %rax, %rsi
leaq 0x62fcd(%rip), %rdx     # 0xabe89
cmpb $0x0, 0x8d(%rbx)
cmoveq %rax, %rdx
leaq 0x5759d(%rip), %rdi     # 0xa046b
movb $0x4, %al
callq 0x79bb3
movzbl 0x8e(%rbx), %esi
movzbl 0x8f(%rbx), %edx
movzbl 0x90(%rbx), %ecx
testl %esi, %esi
jne 0x48ef2
testl %edx, %edx
je 0x48efc
movswl 0x9e(%rbx), %r8d
jmp 0x48f00
pushq $-0x1
popq %r8
leaq 0x57591(%rip), %rdi     # 0xa0498
xorl %eax, %eax
callq 0x79bb3
movzbl 0x94(%rbx), %esi
movzbl 0x95(%rbx), %edx
movsbl 0xac(%rbx), %ecx
movsbl 0xad(%rbx), %r8d
movzbl 0x93(%rbx), %r9d
leaq 0x5759c(%rip), %rdi     # 0xa04d6
xorl %eax, %eax
callq 0x79bb3
movl 0x3b0(%rbx), %esi
movl 0x3b4(%rbx), %edx
movl 0x150(%rbx), %ecx
leaq 0x575bc(%rip), %rdi     # 0xa0516
xorl %eax, %eax
callq 0x79bb3
movq 0x3a8(%rbx), %rax
testq %rax, %rax
je 0x48f72
movq (%rax), %rsi
jmp 0x48f79
leaq 0x573d5(%rip), %rsi     # 0xa034e
leaq 0x575c8(%rip), %rdi     # 0xa0548
xorl %eax, %eax
callq 0x79bb3
movss 0x3b8(%rbx), %xmm0
movss 0x3c0(%rbx), %xmm2
ucomiss %xmm2, %xmm0
ja 0x48fd1
movss 0x3bc(%rbx), %xmm1
movss 0x3c4(%rbx), %xmm3
ucomiss %xmm3, %xmm1
ja 0x48fd1
cvtss2sd %xmm0, %xmm0
cvtss2sd %xmm1, %xmm1
cvtss2sd %xmm2, %xmm2
cvtss2sd %xmm3, %xmm3
leaq 0x5759a(%rip), %rdi     # 0xa0562
movb $0x4, %al
callq 0x79bb3
jmp 0x48fdf
leaq 0x575b0(%rip), %rdi     # 0xa0588
xorl %eax, %eax
callq 0x79bb3
movq 0x390(%rbx), %rdi
cmpq %rbx, %rdi
je 0x48ff7
leaq 0x54a37(%rip), %rsi     # 0x9da29
callq 0x48c69
movq 0x388(%rbx), %rdi
testq %rdi, %rdi
je 0x4900f
leaq 0x6d4f8(%rip), %rsi     # 0xb6502
callq 0x48c69
cmpl $0x0, 0x198(%rbx)
jle 0x4902b
leaq 0x198(%rbx), %rdi
leaq 0x57578(%rip), %rsi     # 0xa059e
callq 0x47ff3
movl 0x2a0(%rbx), %edx
testl %edx, %edx
jle 0x4907a
leaq 0x5fd25(%rip), %rdi     # 0xa8d61
leaq 0x57568(%rip), %rsi     # 0xa05ab
xorl %r14d, %r14d
xorl %eax, %eax
callq 0x88825
testb %al, %al
je 0x4907a
leaq 0x2a0(%rbx), %r15
cmpl (%r15), %r14d
jge 0x49075
movq %r15, %rdi
movl %r14d, %esi
callq 0x4a0ea
movq %rax, %rdi
callq 0x488ce
incl %r14d
jmp 0x49058
callq 0x89637
addq $0x290, %rbx            # imm = 0x290
leaq 0x57535(%rip), %rsi     # 0xa05bd
movq %rbx, %rdi
callq 0x48bf3
callq 0x89637
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq