// File: /workspace/github_cpp_makefile_star2_O3/hzeller[P]FlaschenTaschen-PixelPusher-bridge/composite-flaschen-taschen.cc
// Function: CompositeFlaschenTaschen::CompositeFlaschenTaschen(FlaschenTaschen*, int)
CompositeFlaschenTaschen::CompositeFlaschenTaschen(FlaschenTaschen *delegatee,
                                                   int layers)
    : delegatee_(delegatee),
      width_(delegatee->width()), height_(delegatee->height()),
      current_layer_(0), any_visible_pixel_drawn_(false),
      z_buffer_(new ZBuffer(width_, height_)),
      garbage_collect_(NULL) {
    assert(layers < 32);  // otherwise could getting slow.
    for (int i = 0; i < layers; ++i) {
        screens_.push_back(new ScreenBuffer(delegatee->width(),
                                            delegatee->height()));
        last_layer_update_time_.push_back(INT_MAX);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x4fcf(%rip), %rax      # 0x7c60
movq %rax, (%rdi)
movq %rsi, 0x8(%rdi)
movq (%rsi), %rax
movq %rsi, %rdi
callq *0x10(%rax)
movl %eax, 0x10(%rbx)
movq (%r15), %rax
movq %r15, %rdi
callq *0x18(%rax)
movl %eax, %r13d
movl %eax, 0x14(%rbx)
movl $0x0, 0x18(%rbx)
movb $0x0, 0x1c(%rbx)
leaq 0x28(%rbx), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rbx)
movq $0x0, 0x38(%rbx)
movl $0x10, %edi
callq 0x21d0
movq %rax, %r12
movl 0x10(%rbx), %eax
movl %eax, (%r12)
movl %r13d, 0x4(%r12)
imull %r13d, %eax
cltq
leaq (,%rax,4), %r13
testl %eax, %eax
movq $-0x1, %rdi
cmovnsq %r13, %rdi
callq 0x2040
movq %rax, 0x8(%r12)
movq %rax, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x2100
movq %r12, 0x40(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%rbx)
movups %xmm0, 0x58(%rbx)
cmpl $0x1f, %ebp
jg 0x2e00
testl %ebp, %ebp
jle 0x2df1
leaq 0x48(%rbx), %rax
movq %rax, 0x8(%rsp)
movl $0x10, %edi
callq 0x21d0
movq %rax, %r12
movq (%r15), %rax
movq %r15, %rdi
callq *0x10(%rax)
movl %eax, %r13d
movq (%r15), %rax
movq %r15, %rdi
callq *0x18(%rax)
movl %r13d, (%r12)
movl %eax, 0x4(%r12)
imull %r13d, %eax
cltq
movl $0x3, %ecx
mulq %rcx
movq %rax, %r13
movq %rax, %rdi
movq $-0x1, %rax
cmovoq %rax, %rdi
callq 0x2040
movq %rax, 0x8(%r12)
movq %rax, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x2100
movq %r12, 0x10(%rsp)
movq %r14, %rdi
leaq 0x10(%rsp), %rsi
callq 0x3354
movl $0x7fffffff, 0x4(%rsp)  # imm = 0x7FFFFFFF
movq 0x50(%rbx), %rsi
cmpq 0x58(%rbx), %rsi
je 0x2dda
movl $0x7fffffff, (%rsi)     # imm = 0x7FFFFFFF
addq $0x4, %rsi
movq %rsi, 0x50(%rbx)
jmp 0x2de9
movq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %rdx
callq 0x34c8
decl %ebp
jne 0x2d45
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x248b(%rip), %rdi      # 0x5292
leaq 0x2490(%rip), %rsi      # 0x529e
leaq 0x24a7(%rip), %rcx      # 0x52bc
movl $0x65, %edx
callq 0x2140
movq %rax, %r15
movl $0x10, %esi
movq %r12, %rdi
jmp 0x2e57
jmp 0x2e2e
movq %rax, %r15
jmp 0x2e43
movq %rax, %r15
movl $0x10, %esi
movq %r12, %rdi
callq 0x21e0
movq 0x8(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x2e5c
movq 0x58(%rbx), %rsi
subq %rdi, %rsi
callq 0x21e0
movq (%r14), %rdi
testq %rdi, %rdi
je 0x2e70
movq 0x38(%rbx), %rsi
subq %rdi, %rsi
callq 0x21e0
movq %r15, %rdi
callq 0x2320