// File: /workspace/github_cpp_makefile_star2_O3/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
pushq %rax
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %rbx
leaq 0xc8(%rdi), %rax
movq %rax, -0x30(%rbp)
leaq 0x2c0(%rdi), %r14
movl $0x3e8, %edx            # imm = 0x3E8
xorl %esi, %esi
callq 0xc260
movq %r13, %rdi
callq 0x41c1a
movq %rax, (%rbx)
movq %r13, %rdi
callq 0xc350
incl %eax
movl %eax, 0x50(%rbx)
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x42033
movl %eax, 0x8(%rbx)
movl 0xc8(%rbx), %ecx
cmpl 0xcc(%rbx), %ecx
jne 0x45561
leal 0x1(%rcx), %r12d
testl %ecx, %ecx
je 0x4556d
movl %ecx, %eax
shrl $0x1f, %eax
addl %ecx, %eax
sarl %eax
addl %ecx, %eax
jmp 0x45572
movq 0xd0(%rbx), %r13
jmp 0x45603
movl $0x8, %eax
cmpl %r12d, %eax
cmovgl %eax, %r12d
movslq %r12d, %rdi
shlq $0x2, %rdi
movq 0xb6749(%rip), %rax     # 0xfbcd0
testq %rax, %rax
je 0x45592
incl 0x3b4(%rax)
movq 0xb6747(%rip), %rsi     # 0xfbce0
callq *0xb1f71(%rip)          # 0xf7510
movq %rax, %r13
movq 0xd0(%rbx), %rsi
testq %rsi, %rsi
je 0x455ec
movslq 0xc8(%rbx), %rdx
shlq $0x2, %rdx
movq %r13, %rdi
callq 0xc080
movq 0xd0(%rbx), %rdi
testq %rdi, %rdi
je 0x455df
movq 0xb66fc(%rip), %rax     # 0xfbcd0
testq %rax, %rax
je 0x455df
decl 0x3b4(%rax)
movq 0xb66fa(%rip), %rsi     # 0xfbce0
callq *0xb1f2c(%rip)          # 0xf7518
movq %r13, 0xd0(%rbx)
movl %r12d, 0xcc(%rbx)
movl 0x8(%rbx), %eax
movl 0xc8(%rbx), %ecx
movslq %ecx, %rcx
movl %eax, (%r13,%rcx,4)
incl 0xc8(%rbx)
leaq 0x71235(%rip), %rsi     # 0xb684d
movq %rbx, %rdi
xorl %edx, %edx
callq 0x4570a
movl %eax, 0x54(%rbx)
movaps 0x701b4(%rip), %xmm0    # 0xb57e0
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 %r14, 0x2b8(%rbx)
addq $0x1988, %r15           # imm = 0x1988
movq %r15, 0x2f8(%rbx)
movq (%rbx), %rax
movq %rax, 0x300(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r12
leaq 0x2a0(%rbx), %r13
leaq 0x290(%rbx), %r15
addq $0xd8, %rbx
movq %r14, %rdi
callq 0x5d162
movq %r13, %rdi
callq 0x5d2ba
movq %r15, %rdi
callq 0x5d2f0
movq %rbx, %rdi
callq 0x5d326
movq -0x30(%rbp), %rdi
callq 0x5d3c4
movq %r12, %rdi
callq 0xc560
nop