// File: Ciaxur[P]yagb-emu/include/imgui/imgui_tables.cpp
// Function: ImGui::DebugNodeTableSettings(ImGuiTableSettings*)
void ImGui::DebugNodeTableSettings(ImGuiTableSettings* settings)
{
    if (!TreeNode((void*)(intptr_t)settings->ID, "Settings 0x%08X (%d columns)", settings->ID, settings->ColumnsCount))
        return;
    BulletText("SaveFlags: 0x%08X", settings->SaveFlags);
    BulletText("ColumnsCount: %d (max %d)", settings->ColumnsCount, settings->ColumnsCountMax);
    for (int n = 0; n < settings->ColumnsCount; n++)
    {
        ImGuiTableColumnSettings* column_settings = &settings->GetColumnSettings()[n];
        ImGuiSortDirection sort_dir = (column_settings->SortOrder != -1) ? (ImGuiSortDirection)column_settings->SortDirection : ImGuiSortDirection_None;
        BulletText("Column %d Order %d SortOrder %d %s Vis %d %s %7.3f UserID 0x%08X",
            n, column_settings->DisplayOrder, column_settings->SortOrder,
            (sort_dir == ImGuiSortDirection_Ascending) ? "Asc" : (sort_dir == ImGuiSortDirection_Descending) ? "Des" : "---",
            column_settings->IsEnabled, column_settings->IsStretch ? "Weight" : "Width ", column_settings->WidthOrWeight, column_settings->UserID);
    }
    TreePop();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl (%rax), %eax
movl %eax, %edi
movq -0x8(%rbp), %rax
movl (%rax), %edx
movq -0x8(%rbp), %rax
movsbl 0xc(%rax), %ecx
leaq 0x5876b(%rip), %rsi     # 0x18d844
movb $0x0, %al
callq 0x150f40
testb $0x1, %al
jne 0x1350e9
jmp 0x135265
movq -0x8(%rbp), %rax
movl 0x4(%rax), %esi
leaq 0x5876a(%rip), %rdi     # 0x18d861
movb $0x0, %al
callq 0x139ab0
movq -0x8(%rbp), %rax
movsbl 0xc(%rax), %esi
movq -0x8(%rbp), %rax
movsbl 0xd(%rax), %edx
leaq 0x5875e(%rip), %rdi     # 0x18d873
movb $0x0, %al
callq 0x139ab0
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
movsbl 0xc(%rcx), %ecx
cmpl %ecx, %eax
jge 0x135260
movq -0x8(%rbp), %rdi
callq 0x137910
movslq -0xc(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movsbl 0xa(%rax), %eax
cmpl $-0x1, %eax
je 0x13516c
movq -0x18(%rbp), %rax
movb 0xb(%rax), %al
andb $0x3, %al
movzbl %al, %eax
movl %eax, -0x20(%rbp)
jmp 0x135173
xorl %eax, %eax
movl %eax, -0x20(%rbp)
jmp 0x135173
movl -0x20(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x2c(%rbp)
movq -0x18(%rbp), %rax
movsbl 0x9(%rax), %eax
movl %eax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movsbl 0xa(%rax), %eax
movl %eax, -0x24(%rbp)
cmpl $0x1, -0x1c(%rbp)
jne 0x1351a8
leaq 0x5872c(%rip), %rax     # 0x18d8ce
movq %rax, -0x38(%rbp)
jmp 0x1351d0
cmpl $0x2, -0x1c(%rbp)
jne 0x1351bb
leaq 0x5871d(%rip), %rax     # 0x18d8d2
movq %rax, -0x40(%rbp)
jmp 0x1351c8
leaq 0x59543(%rip), %rax     # 0x18e705
movq %rax, -0x40(%rbp)
jmp 0x1351c8
movq -0x40(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x18(%rbp), %rax
movb 0xb(%rax), %al
shrb $0x2, %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x44(%rbp)
movq -0x18(%rbp), %rax
movb 0xb(%rax), %al
shrb $0x3, %al
andb $0x1, %al
cmpb $0x0, %al
je 0x135207
leaq 0x586d5(%rip), %rax     # 0x18d8d6
movq %rax, -0x58(%rbp)
jmp 0x135214
leaq 0x586cf(%rip), %rax     # 0x18d8dd
movq %rax, -0x58(%rbp)
jmp 0x135214
movl -0x44(%rbp), %r9d
movq -0x50(%rbp), %r8
movl -0x24(%rbp), %ecx
movl -0x28(%rbp), %edx
movl -0x2c(%rbp), %esi
movq -0x58(%rbp), %r10
movq -0x18(%rbp), %rax
movss (%rax), %xmm0
cvtss2sd %xmm0, %xmm0
movq -0x18(%rbp), %rax
movl 0x4(%rax), %eax
leaq 0x5864a(%rip), %rdi     # 0x18d88d
movq %r10, (%rsp)
movl %eax, 0x8(%rsp)
movb $0x1, %al
callq 0x139ab0
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x135123
callq 0x1523d0
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax,%rax)