// File: /workspace/github_cpp_makefile_star2_O1/Ciaxur[P]yagb-emu/include/imgui/imgui_draw.cpp
// Function: ImDrawList::CloneOutput() const
ImDrawList* ImDrawList::CloneOutput() const
{
    ImDrawList* dst = IM_NEW(ImDrawList(_Data));
    dst->CmdBuffer = CmdBuffer;
    dst->IdxBuffer = IdxBuffer;
    dst->VtxBuffer = VtxBuffer;
    dst->Flags = Flags;
    return dst;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0xc8, %edi
callq 0x424fb
movq %rax, %r14
movq 0x38(%rbx), %r15
movl $0xc8, %edx
movq %rax, %rdi
xorl %esi, %esi
callq 0xc260
movq %r15, 0x38(%r14)
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0x76b87
xorl %r15d, %r15d
movq %r15, (%r14)
callq 0x425d4
movq %r15, 0x8(%r14)
movl (%rbx), %r13d
movslq %r13d, %r12
movl 0x4(%r14), %eax
cmpl %r12d, %eax
jge 0x76bfc
testl %eax, %eax
je 0x76bac
movl %eax, %r15d
shrl $0x1f, %r15d
addl %eax, %r15d
sarl %r15d
addl %eax, %r15d
jmp 0x76bb2
movl $0x8, %r15d
cmpl %r13d, %r15d
cmovlel %r13d, %r15d
cmpl %r15d, %eax
jge 0x76bfc
movslq %r15d, %rax
imulq $0x38, %rax, %rdi
callq 0x424fb
movq 0x8(%r14), %rsi
testq %rsi, %rsi
je 0x76bf4
movslq (%r14), %rcx
imulq $0x38, %rcx, %rdx
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
callq 0xc080
movq 0x8(%r14), %rdi
callq 0x425d4
movq -0x30(%rbp), %rax
movq %rax, 0x8(%r14)
movl %r15d, 0x4(%r14)
movl %r13d, (%r14)
movq 0x8(%r14), %rdi
movq 0x8(%rbx), %rsi
imulq $0x38, %r12, %rdx
callq 0xc080
movq 0x18(%r14), %rdi
testq %rdi, %rdi
je 0x76c29
xorl %r15d, %r15d
movq %r15, 0x10(%r14)
callq 0x425d4
movq %r15, 0x18(%r14)
movl 0x10(%rbx), %r13d
movslq %r13d, %r15
movl 0x14(%r14), %eax
cmpl %r15d, %eax
jge 0x76c9d
testl %eax, %eax
je 0x76c4f
movl %eax, %r12d
shrl $0x1f, %r12d
addl %eax, %r12d
sarl %r12d
addl %eax, %r12d
jmp 0x76c55
movl $0x8, %r12d
cmpl %r13d, %r12d
cmovlel %r13d, %r12d
cmpl %r12d, %eax
jge 0x76c9d
movslq %r12d, %rdi
addq %rdi, %rdi
callq 0x424fb
movq 0x18(%r14), %rsi
testq %rsi, %rsi
je 0x76c95
movslq 0x10(%r14), %rdx
addq %rdx, %rdx
movq %rax, %rdi
movq %rax, -0x30(%rbp)
callq 0xc080
movq 0x18(%r14), %rdi
callq 0x425d4
movq -0x30(%rbp), %rax
movq %rax, 0x18(%r14)
movl %r12d, 0x14(%r14)
movl %r13d, 0x10(%r14)
movq 0x18(%r14), %rdi
movq 0x18(%rbx), %rsi
addq %r15, %r15
movq %r15, %rdx
callq 0xc080
movq 0x28(%r14), %rdi
testq %rdi, %rdi
je 0x76ccd
xorl %r15d, %r15d
movq %r15, 0x20(%r14)
callq 0x425d4
movq %r15, 0x28(%r14)
movl 0x20(%rbx), %r13d
movslq %r13d, %r12
movl 0x24(%r14), %eax
cmpl %r12d, %eax
jge 0x76d4c
testl %eax, %eax
je 0x76cf3
movl %eax, %r15d
shrl $0x1f, %r15d
addl %eax, %r15d
sarl %r15d
addl %eax, %r15d
jmp 0x76cf9
movl $0x8, %r15d
cmpl %r13d, %r15d
cmovlel %r13d, %r15d
cmpl %r15d, %eax
jge 0x76d4c
movslq %r15d, %rax
shlq $0x2, %rax
leaq (%rax,%rax,4), %rdi
callq 0x424fb
movq 0x28(%r14), %rsi
testq %rsi, %rsi
je 0x76d44
movslq 0x20(%r14), %rcx
shlq $0x2, %rcx
leaq (%rcx,%rcx,4), %rdx
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
callq 0xc080
movq 0x28(%r14), %rdi
callq 0x425d4
movq -0x30(%rbp), %rax
movq %rax, 0x28(%r14)
movl %r15d, 0x24(%r14)
movl %r13d, 0x20(%r14)
movq 0x28(%r14), %rdi
movq 0x28(%rbx), %rsi
shlq $0x2, %r12
leaq (%r12,%r12,4), %rdx
callq 0xc080
movl 0x30(%rbx), %eax
movl %eax, 0x30(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq