// File: Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImGui::BeginGroup()
void ImGui::BeginGroup()
{
    ImGuiContext& g = *GImGui;
    ImGuiWindow* window = g.CurrentWindow;

    g.GroupStack.resize(g.GroupStack.Size + 1);
    ImGuiGroupData& group_data = g.GroupStack.back();
    group_data.WindowID = window->ID;
    group_data.BackupCursorPos = window->DC.CursorPos;
    group_data.BackupCursorMaxPos = window->DC.CursorMaxPos;
    group_data.BackupIndent = window->DC.Indent;
    group_data.BackupGroupOffset = window->DC.GroupOffset;
    group_data.BackupCurrLineSize = window->DC.CurrLineSize;
    group_data.BackupCurrLineTextBaseOffset = window->DC.CurrLineTextBaseOffset;
    group_data.BackupActiveIdIsAlive = g.ActiveIdIsAlive;
    group_data.BackupActiveIdPreviousFrameIsAlive = g.ActiveIdPreviousFrameIsAlive;
    group_data.EmitItem = true;

    window->DC.GroupOffset.x = window->DC.CursorPos.x - window->Pos.x - window->DC.ColumnsOffset.x;
    window->DC.Indent = window->DC.GroupOffset;
    window->DC.CursorMaxPos = window->DC.CursorPos;
    window->DC.CurrLineSize = ImVec2(0.0f, 0.0f);
    if (g.LogEnabled)
        g.LogLinePosY = -FLT_MAX; // To enforce Log carriage return
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq 0x135d11(%rip), %rax    # 0x212f40
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x1ae0(%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
addq $0x1c60, %rdi           # imm = 0x1C60
movq -0x8(%rbp), %rax
movl 0x1c60(%rax), %esi
addl $0x1, %esi
callq 0xeab50
movq -0x8(%rbp), %rdi
addq $0x1c60, %rdi           # imm = 0x1C60
callq 0xebf90
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movl 0x8(%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rax
movq 0xd8(%rcx), %rcx
movq %rcx, 0x4(%rax)
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rax
movq 0xf0(%rcx), %rcx
movq %rcx, 0xc(%rax)
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rax
movl 0x118(%rcx), %ecx
movl %ecx, 0x14(%rax)
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rax
movl 0x120(%rcx), %ecx
movl %ecx, 0x18(%rax)
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rax
movq 0x100(%rcx), %rcx
movq %rcx, 0x1c(%rax)
movq -0x10(%rbp), %rax
movss 0x110(%rax), %xmm0
movq -0x18(%rbp), %rax
movss %xmm0, 0x24(%rax)
movq -0x8(%rbp), %rax
movl 0x1b34(%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x28(%rax)
movq -0x8(%rbp), %rax
movb 0x1b74(%rax), %cl
movq -0x18(%rbp), %rax
andb $0x1, %cl
movb %cl, 0x2c(%rax)
movq -0x18(%rbp), %rax
movb $0x1, 0x2d(%rax)
movq -0x10(%rbp), %rax
movss 0xd8(%rax), %xmm0
movq -0x10(%rbp), %rax
subss 0x10(%rax), %xmm0
movq -0x10(%rbp), %rax
subss 0x11c(%rax), %xmm0
movq -0x10(%rbp), %rax
movss %xmm0, 0x120(%rax)
movq -0x10(%rbp), %rcx
movq -0x10(%rbp), %rax
movl 0x120(%rcx), %ecx
movl %ecx, 0x118(%rax)
movq -0x10(%rbp), %rcx
movq -0x10(%rbp), %rax
movq 0xd8(%rcx), %rcx
movq %rcx, 0xf0(%rax)
leaq -0x20(%rbp), %rdi
xorps %xmm1, %xmm1
movaps %xmm1, %xmm0
callq 0xbf4c0
movq -0x10(%rbp), %rax
movq -0x20(%rbp), %rcx
movq %rcx, 0x100(%rax)
movq -0x8(%rbp), %rax
testb $0x1, 0x3138(%rax)
je 0xdd3b3
movq -0x8(%rbp), %rax
movss 0x953ad(%rip), %xmm0    # 0x172758
movss %xmm0, 0x3158(%rax)
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)