// File: /workspace/github_cpp_makefile_star2_O1/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImGuiWindow::ImGuiWindow(ImGuiContext*, char const*)
ImGuiWindow::ImGuiWindow(ImGuiContext* context, const char* name) : DrawListInst(NULL)
{
    memset(this, 0, sizeof(*this));
    Name = ImStrdup(name);
    NameBufLen = (int)strlen(name) + 1;
    ID = ImHashStr(name);
    IDStack.push_back(ID);
    MoveId = GetID("#MOVE");
    ScrollTarget = ImVec2(FLT_MAX, FLT_MAX);
    ScrollTargetCenterRatio = ImVec2(0.5f, 0.5f);
    AutoFitFramesX = AutoFitFramesY = -1;
    AutoPosLastDirection = ImGuiDir_None;
    SetWindowPosAllowFlags = SetWindowSizeAllowFlags = SetWindowCollapsedAllowFlags = ImGuiCond_Always | ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing;
    SetWindowPosVal = SetWindowPosPivot = ImVec2(FLT_MAX, FLT_MAX);
    LastFrameActive = -1;
    LastTimeActive = -1.0f;
    FontWindowScale = 1.0f;
    SettingsOffset = -1;
    DrawList = &DrawListInst;
    DrawList->_Data = &context->DrawListSharedData;
    DrawList->_OwnerName = Name;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xc8(%rdi), %rax
movq %rax, -0x38(%rbp)
xorl %eax, %eax
movq %rax, 0x118(%rdi)
movl $0x0, 0x120(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x198(%rdi)
movups %xmm0, 0x12c(%rdi)
movups %xmm0, 0x13c(%rdi)
movups %xmm0, 0x160(%rdi)
movups %xmm0, 0x170(%rdi)
movups %xmm0, 0x17c(%rdi)
movups %xmm0, 0x1d8(%rdi)
movups %xmm0, 0x1e8(%rdi)
movups %xmm0, 0x1f6(%rdi)
leaq 0x290(%rdi), %rcx
movq %rcx, -0x30(%rbp)
leaq 0x2c0(%rdi), %r15
movups %xmm0, 0x3b8(%rdi)
movups %xmm0, 0x3c8(%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x30(%rdi)
movq %rax, 0x40(%rdi)
movups %xmm0, 0x7c(%rdi)
movups %xmm0, 0x6c(%rdi)
movups %xmm0, 0x5c(%rdi)
movups %xmm0, 0xb4(%rdi)
movq %rax, 0x108(%rdi)
movups %xmm0, 0xf8(%rdi)
movups %xmm0, 0xe8(%rdi)
movups %xmm0, 0xd8(%rdi)
movups %xmm0, 0xc8(%rdi)
movq %rax, 0x278(%rdi)
movups %xmm0, 0x268(%rdi)
movups %xmm0, 0x258(%rdi)
movups %xmm0, 0x248(%rdi)
movups %xmm0, 0x238(%rdi)
movups %xmm0, 0x228(%rdi)
movups %xmm0, 0x218(%rdi)
movups %xmm0, 0x208(%rdi)
movups %xmm0, 0x2a0(%rdi)
movups %xmm0, 0x290(%rdi)
movl $0xc8, %edx
movq %r15, %rdi
xorl %esi, %esi
callq 0xc260
movl $0x3e8, %edx            # imm = 0x3E8
movq %rbx, %rdi
xorl %esi, %esi
callq 0xc260
movq %r12, %rdi
callq 0x424b2
movq %rax, (%rbx)
movq %r12, %rdi
callq 0xc350
incl %eax
movl %eax, 0x50(%rbx)
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x428dc
movl %eax, 0x8(%rbx)
movl 0xc8(%rbx), %r13d
movl 0xcc(%rbx), %eax
cmpl %eax, %r13d
jne 0x4614b
incl %r13d
testl %eax, %eax
je 0x460b5
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
addl %eax, %ecx
jmp 0x460ba
movl $0x8, %ecx
cmpl %r13d, %ecx
cmovgl %ecx, %r13d
cmpl %r13d, %eax
jge 0x4614b
movslq %r13d, %rdi
shlq $0x2, %rdi
movq 0xb7bf8(%rip), %rax     # 0xfdcd0
testq %rax, %rax
je 0x460e3
incl 0x3b4(%rax)
movq 0xb7bf6(%rip), %rsi     # 0xfdce0
callq *0xb3420(%rip)          # 0xf9510
movq %rax, %r12
movq 0xd0(%rbx), %rsi
testq %rsi, %rsi
je 0x4613d
movslq 0xc8(%rbx), %rdx
shlq $0x2, %rdx
movq %r12, %rdi
callq 0xc080
movq 0xd0(%rbx), %rdi
testq %rdi, %rdi
je 0x46130
movq 0xb7bab(%rip), %rax     # 0xfdcd0
testq %rax, %rax
je 0x46130
decl 0x3b4(%rax)
movq 0xb7ba9(%rip), %rsi     # 0xfdce0
callq *0xb33db(%rip)          # 0xf9518
movq %r12, 0xd0(%rbx)
movl %r13d, 0xcc(%rbx)
movq 0xd0(%rbx), %rax
movslq 0xc8(%rbx), %rcx
movl 0x8(%rbx), %edx
movl %edx, (%rax,%rcx,4)
incl 0xc8(%rbx)
leaq 0x726e1(%rip), %rsi     # 0xb884d
movq %rbx, %rdi
xorl %edx, %edx
callq 0x46258
movl %eax, 0x54(%rbx)
movaps 0x71660(%rip), %xmm0    # 0xb77e0
movups %xmm0, 0x6c(%rbx)
movw $0xffff, 0xa4(%rbx)     # imm = 0xFFFF
movl $0xffffffff, 0xa8(%rbx) # imm = 0xFFFFFFFF
movzbl 0xb2(%rbx), %eax
shll $0x18, %eax
orl $0xf0f0f, %eax          # imm = 0xF0F0F
movl %eax, 0xaf(%rbx)
movabsq $0x7f7fffff7f7fffff, %rax # imm = 0x7F7FFFFF7F7FFFFF
movq %rax, 0xbc(%rbx)
movq %rax, 0xb4(%rbx)
movabsq $-0x407fffff00000001, %rax # imm = 0xBF800000FFFFFFFF
movq %rax, 0x280(%rbx)
movabsq $-0xc0800000, %rax      # imm = 0xFFFFFFFF3F800000
movq %rax, 0x2b0(%rbx)
movq %r15, 0x2b8(%rbx)
addq $0x1988, %r14           # imm = 0x1988
movq %r14, 0x2f8(%rbx)
movq (%rbx), %rax
movq %rax, 0x300(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x2a0(%rbx), %r12
addq $0xd8, %rbx
movq %r15, %rdi
callq 0x5e342
movq %r12, %rdi
callq 0x5e49a
movq -0x30(%rbp), %rdi
callq 0x5e4d0
movq %rbx, %rdi
callq 0x5e506
movq -0x38(%rbp), %rdi
callq 0x5e5a4
movq %r14, %rdi
callq 0xc560
nop