// File: /workspace/github_cpp_makefile_star2_O3/nicoeps[P]NicoGB/src/nicogb.cpp
// Function: NicoGB::NicoGB()
NicoGB::NicoGB() :
    memory(cartridge, joypad, timer),
    ppu(memory),
    cpu(memory, ppu),
    loaded(cartridge.loaded),
    title(cartridge.title),
    framebuffer(ppu.framebuffer) {
        timer = Timer();
        joypad = Joypad();
        cartridge = Cartridge();
        speed = 0;
        epoch = std::chrono::high_resolution_clock::from_time_t(0);
        last = millis();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rdi, %rbx
callq 0x8f58
leaq 0x8(%rbx), %r14
movq %r14, %rdi
callq 0x23cc
leaq 0x80(%rbx), %r13
movq %r13, %rdi
callq 0x5e14
leaq 0x88(%rbx), %r15
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x6b68
leaq 0x140(%rbx), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x7930
leaq 0x200(%rbx), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x2a04
movq $0x0, 0x298(%rbx)
leaq 0x28(%rbx), %rax
movq %rax, 0x2b0(%rbx)
movq %r14, 0x2b8(%rbx)
leaq 0x148(%rbx), %rax
movq %rax, 0x2c0(%rbx)
leaq 0x8(%rsp), %rdi
callq 0x8f58
leaq 0x8(%rsp), %rdi
movl (%rdi), %eax
movl 0x3(%rdi), %ecx
movl %ecx, 0x3(%rbx)
movl %eax, (%rbx)
callq 0x5e14
leaq 0x8(%rsp), %rdi
movl (%rdi), %eax
movl %eax, (%r13)
callq 0x23cc
leaq 0x8(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x21e0
movb 0x20(%r15), %al
movb %al, 0x28(%rbx)
movq 0x28(%r15), %rax
movq $0x0, 0x28(%r15)
movq 0x30(%rbx), %rdi
movq %rax, 0x30(%rbx)
testq %rdi, %rdi
je 0x74c2
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x38(%rbx), %rdi
movq 0x48(%rbx), %rsi
movups 0x38(%rsp), %xmm0
movups %xmm0, 0x38(%rbx)
movq 0x48(%rsp), %rax
movq %rax, 0x48(%rbx)
xorps %xmm1, %xmm1
movups %xmm1, 0x38(%rsp)
movq $0x0, 0x48(%rsp)
testq %rdi, %rdi
je 0x74fd
subq %rdi, %rsi
callq 0x21c0
xorps %xmm1, %xmm1
movq 0x50(%rbx), %rdi
movq 0x60(%rbx), %rsi
movups 0x50(%rsp), %xmm0
movups %xmm0, 0x50(%rbx)
movq 0x60(%rsp), %rax
movq %rax, 0x60(%rbx)
movups %xmm1, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
testq %rdi, %rdi
je 0x755b
subq %rdi, %rsi
callq 0x21c0
movq 0x50(%rsp), %rdi
movl 0x78(%rsp), %eax
movl %eax, 0x78(%rbx)
movups 0x68(%rsp), %xmm0
movups %xmm0, 0x68(%rbx)
testq %rdi, %rdi
je 0x756b
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x21c0
jmp 0x756b
movl 0x78(%rsp), %eax
movl %eax, 0x78(%rbx)
movups 0x68(%rsp), %xmm0
movups %xmm0, 0x68(%rbx)
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x7582
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x21c0
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x7592
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x18(%rsp), %rax
movq $0x0, 0x18(%rax)
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x75b5
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21c0
movb $0x0, 0x2a8(%rbx)
movq $0x0, 0x298(%rbx)
callq 0x2060
subq 0x298(%rbx), %rax
movabsq $0x431bde82d7b634db, %rcx # imm = 0x431BDE82D7B634DB
imulq %rcx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x12, %rdx
addq %rax, %rdx
movq %rdx, 0x2a0(%rbx)
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x760c
jmp 0x760c
jmp 0x760c
movq %rax, %rbx
movq %r12, %rdi
callq 0x78dc
jmp 0x761c
movq %rax, %rbx
movq %r15, %rdi
callq 0x6530
jmp 0x7629
movq %rax, %rbx
movq %r14, %rdi
callq 0x787c
movq %rbx, %rdi
callq 0x2270
nop