LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/Neotoxic-off[P]Zest/src/tag/img.cpp
// Function: Attributes::img::height(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool Attributes::img::height(std::string value)
{
    Logs logs;

    this->height_t = value;

    if (Attributes::img::height() == value) {
        logs.done("img attribute height set");

        return (true);
    }
    logs.fail("img attribute height not set");

    return (false);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x19(%rbp), %rdi
callq 0x244c
leaq 0x80(%r14), %rdi
movq %rbx, %rsi
callq 0x20c0
leaq -0x70(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x80(%r14), %rsi
movq 0x88(%r14), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x2f12
movq -0x78(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x814c
movq -0x80(%rbp), %r14
testq %rdx, %rdx
je 0x8154
movq (%rbx), %rsi
movq %r14, %rdi
callq 0x2150
testl %eax, %eax
sete %bl
jmp 0x8156
movq -0x80(%rbp), %r14
xorl %ebx, %ebx
jmp 0x8156
movb $0x1, %bl
cmpq %r15, %r14
je 0x816a
movq -0x70(%rbp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x2140
testb %bl, %bl
je 0x81a0
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x4321(%rip), %rsi      # 0xc49e
leaq 0x4332(%rip), %rdx      # 0xc4b6
leaq -0x60(%rbp), %rdi
callq 0x3252
leaq -0x19(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x24e2
movq -0x60(%rbp), %rdi
jmp 0x81d0
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x4308(%rip), %rsi      # 0xc4b7
leaq 0x431d(%rip), %rdx      # 0xc4d3
leaq -0x40(%rbp), %rdi
callq 0x3252
leaq -0x19(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x254e
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x81e0
movq (%r14), %rsi
incq %rsi
callq 0x2140
leaq -0x19(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x822b
movq -0x30(%rbp), %rsi
jmp 0x8218
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x822b
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x822b
jmp 0x8228
jmp 0x8228
jmp 0x8228
movq %rax, %rbx
leaq -0x19(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O3/Neotoxic-off[P]Zest/src/tag/img.cpp
// Function: Attributes::img::width(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool Attributes::img::width(std::string value)
{
    Logs logs;

    this->width_t = value;

    if (Attributes::img::width() == value) {
        logs.done("img attribute width set");

        return (true);
    }
    logs.fail("img attribute width not set");

    return (false);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x19(%rbp), %rdi
callq 0x244c
leaq 0xa0(%r14), %rdi
movq %rbx, %rsi
callq 0x20c0
leaq -0x70(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0xa0(%r14), %rsi
movq 0xa8(%r14), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x2f12
movq -0x78(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x82ae
movq -0x80(%rbp), %r14
testq %rdx, %rdx
je 0x82b6
movq (%rbx), %rsi
movq %r14, %rdi
callq 0x2150
testl %eax, %eax
sete %bl
jmp 0x82b8
movq -0x80(%rbp), %r14
xorl %ebx, %ebx
jmp 0x82b8
movb $0x1, %bl
cmpq %r15, %r14
je 0x82cc
movq -0x70(%rbp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x2140
testb %bl, %bl
je 0x8302
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x41f5(%rip), %rsi      # 0xc4d4
leaq 0x4205(%rip), %rdx      # 0xc4eb
leaq -0x60(%rbp), %rdi
callq 0x3252
leaq -0x19(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x24e2
movq -0x60(%rbp), %rdi
jmp 0x8332
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x41db(%rip), %rsi      # 0xc4ec
leaq 0x41ef(%rip), %rdx      # 0xc507
leaq -0x40(%rbp), %rdi
callq 0x3252
leaq -0x19(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x254e
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x8342
movq (%r14), %rsi
incq %rsi
callq 0x2140
leaq -0x19(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x838d
movq -0x30(%rbp), %rsi
jmp 0x837a
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x838d
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x838d
jmp 0x838a
jmp 0x838a
jmp 0x838a
movq %rax, %rbx
leaq -0x19(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O3/Neotoxic-off[P]Zest/src/tag/img.cpp
// Function: Attributes::img::jsmap(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool Attributes::img::jsmap(std::string value)
{
    Logs logs;

    this->jsmap_t = value;

    if (Attributes::img::jsmap() == value) {
        logs.done("img attribute jsmap set");

        return (true);
    }
    logs.fail("img attribute jsmap not set");

    return (false);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x19(%rbp), %rdi
callq 0x244c
leaq 0xc0(%r14), %rdi
movq %rbx, %rsi
callq 0x20c0
leaq -0x70(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0xc0(%r14), %rsi
movq 0xc8(%r14), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x2f12
movq -0x78(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x8410
movq -0x80(%rbp), %r14
testq %rdx, %rdx
je 0x8418
movq (%rbx), %rsi
movq %r14, %rdi
callq 0x2150
testl %eax, %eax
sete %bl
jmp 0x841a
movq -0x80(%rbp), %r14
xorl %ebx, %ebx
jmp 0x841a
movb $0x1, %bl
cmpq %r15, %r14
je 0x842e
movq -0x70(%rbp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x2140
testb %bl, %bl
je 0x8464
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x40c7(%rip), %rsi      # 0xc508
leaq 0x40d7(%rip), %rdx      # 0xc51f
leaq -0x60(%rbp), %rdi
callq 0x3252
leaq -0x19(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x24e2
movq -0x60(%rbp), %rdi
jmp 0x8494
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x40ad(%rip), %rsi      # 0xc520
leaq 0x40c1(%rip), %rdx      # 0xc53b
leaq -0x40(%rbp), %rdi
callq 0x3252
leaq -0x19(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x254e
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x84a4
movq (%r14), %rsi
incq %rsi
callq 0x2140
leaq -0x19(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x84ef
movq -0x30(%rbp), %rsi
jmp 0x84dc
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x84ef
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x84ef
jmp 0x84ec
jmp 0x84ec
jmp 0x84ec
movq %rax, %rbx
leaq -0x19(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O3/Neotoxic-off[P]Zest/src/tag/img.cpp
// Function: Attributes::img::ismap(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool Attributes::img::ismap(std::string value)
{
    Logs logs;

    this->ismap_t = value;

    if (Attributes::img::ismap() == value) {
        logs.done("img attribute ismap set");

        return (true);
    }
    logs.fail("img attribute ismap not set");

    return (false);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x19(%rbp), %rdi
callq 0x244c
leaq 0xe0(%r14), %rdi
movq %rbx, %rsi
callq 0x20c0
leaq -0x70(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0xe0(%r14), %rsi
movq 0xe8(%r14), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x2f12
movq -0x78(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x8572
movq -0x80(%rbp), %r14
testq %rdx, %rdx
je 0x857a
movq (%rbx), %rsi
movq %r14, %rdi
callq 0x2150
testl %eax, %eax
sete %bl
jmp 0x857c
movq -0x80(%rbp), %r14
xorl %ebx, %ebx
jmp 0x857c
movb $0x1, %bl
cmpq %r15, %r14
je 0x8590
movq -0x70(%rbp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x2140
testb %bl, %bl
je 0x85c6
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3f99(%rip), %rsi      # 0xc53c
leaq 0x3fa9(%rip), %rdx      # 0xc553
leaq -0x60(%rbp), %rdi
callq 0x3252
leaq -0x19(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x24e2
movq -0x60(%rbp), %rdi
jmp 0x85f6
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3f7f(%rip), %rsi      # 0xc554
leaq 0x3f93(%rip), %rdx      # 0xc56f
leaq -0x40(%rbp), %rdi
callq 0x3252
leaq -0x19(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x254e
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x8606
movq (%r14), %rsi
incq %rsi
callq 0x2140
leaq -0x19(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x8651
movq -0x30(%rbp), %rsi
jmp 0x863e
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x8651
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x8651
jmp 0x864e
jmp 0x864e
jmp 0x864e
movq %rax, %rbx
leaq -0x19(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O3/Neotoxic-off[P]Zest/src/tag/img.cpp
// Function: Attributes::img::loading(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool Attributes::img::loading(std::string value)
{
    Logs logs;

    this->loading_t = value;

    if (Attributes::img::loading() == value) {
        logs.done("img attribute loading set");

        return (true);
    }
    logs.fail("img attribute loading not set");

    return (false);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x19(%rbp), %rdi
callq 0x244c
leaq 0x100(%r14), %rdi
movq %rbx, %rsi
callq 0x20c0
leaq -0x70(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x100(%r14), %rsi
movq 0x108(%r14), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x2f12
movq -0x78(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x86d4
movq -0x80(%rbp), %r14
testq %rdx, %rdx
je 0x86dc
movq (%rbx), %rsi
movq %r14, %rdi
callq 0x2150
testl %eax, %eax
sete %bl
jmp 0x86de
movq -0x80(%rbp), %r14
xorl %ebx, %ebx
jmp 0x86de
movb $0x1, %bl
cmpq %r15, %r14
je 0x86f2
movq -0x70(%rbp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x2140
testb %bl, %bl
je 0x8728
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3e6b(%rip), %rsi      # 0xc570
leaq 0x3e7d(%rip), %rdx      # 0xc589
leaq -0x60(%rbp), %rdi
callq 0x3252
leaq -0x19(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x24e2
movq -0x60(%rbp), %rdi
jmp 0x8758
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3e53(%rip), %rsi      # 0xc58a
leaq 0x3e69(%rip), %rdx      # 0xc5a7
leaq -0x40(%rbp), %rdi
callq 0x3252
leaq -0x19(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x254e
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x8768
movq (%r14), %rsi
incq %rsi
callq 0x2140
leaq -0x19(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x87b3
movq -0x30(%rbp), %rsi
jmp 0x87a0
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x87b3
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x87b3
jmp 0x87b0
jmp 0x87b0
jmp 0x87b0
movq %rax, %rbx
leaq -0x19(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O3/Neotoxic-off[P]Zest/src/tag/img.cpp
// Function: Attributes::img::longdesc(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool Attributes::img::longdesc(std::string value)
{
    Logs logs;

    this->longdesc_t = value;

    if (Attributes::img::longdesc() == value) {
        logs.done("img attribute longdesc set");

        return (true);
    }
    logs.fail("img attribute longdesc not set");

    return (false);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x19(%rbp), %rdi
callq 0x244c
leaq 0x120(%r14), %rdi
movq %rbx, %rsi
callq 0x20c0
leaq -0x70(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x120(%r14), %rsi
movq 0x128(%r14), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x2f12
movq -0x78(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x8836
movq -0x80(%rbp), %r14
testq %rdx, %rdx
je 0x883e
movq (%rbx), %rsi
movq %r14, %rdi
callq 0x2150
testl %eax, %eax
sete %bl
jmp 0x8840
movq -0x80(%rbp), %r14
xorl %ebx, %ebx
jmp 0x8840
movb $0x1, %bl
cmpq %r15, %r14
je 0x8854
movq -0x70(%rbp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x2140
testb %bl, %bl
je 0x888a
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3d41(%rip), %rsi      # 0xc5a8
leaq 0x3d54(%rip), %rdx      # 0xc5c2
leaq -0x60(%rbp), %rdi
callq 0x3252
leaq -0x19(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x24e2
movq -0x60(%rbp), %rdi
jmp 0x88ba
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3d2a(%rip), %rsi      # 0xc5c3
leaq 0x3d41(%rip), %rdx      # 0xc5e1
leaq -0x40(%rbp), %rdi
callq 0x3252
leaq -0x19(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x254e
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x88ca
movq (%r14), %rsi
incq %rsi
callq 0x2140
leaq -0x19(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x8915
movq -0x30(%rbp), %rsi
jmp 0x8902
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x8915
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x8915
jmp 0x8912
jmp 0x8912
jmp 0x8912
movq %rax, %rbx
leaq -0x19(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O3/Neotoxic-off[P]Zest/src/tag/img.cpp
// Function: Attributes::img::referrerpolicy(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool Attributes::img::referrerpolicy(std::string value)
{
    Logs logs;

    this->referrerpolicy_t = value;

    if (Attributes::img::referrerpolicy() == value) {
        logs.done("img attribute referrerpolicy set");

        return (true);
    }
    logs.fail("img attribute referrerpolicy not set");

    return (false);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x19(%rbp), %rdi
callq 0x244c
leaq 0x140(%r14), %rdi
movq %rbx, %rsi
callq 0x20c0
leaq -0x70(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x140(%r14), %rsi
movq 0x148(%r14), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x2f12
movq -0x78(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x8998
movq -0x80(%rbp), %r14
testq %rdx, %rdx
je 0x89a0
movq (%rbx), %rsi
movq %r14, %rdi
callq 0x2150
testl %eax, %eax
sete %bl
jmp 0x89a2
movq -0x80(%rbp), %r14
xorl %ebx, %ebx
jmp 0x89a2
movb $0x1, %bl
cmpq %r15, %r14
je 0x89b6
movq -0x70(%rbp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x2140
testb %bl, %bl
je 0x89ec
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3c19(%rip), %rsi      # 0xc5e2
leaq 0x3c32(%rip), %rdx      # 0xc602
leaq -0x60(%rbp), %rdi
callq 0x3252
leaq -0x19(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x24e2
movq -0x60(%rbp), %rdi
jmp 0x8a1c
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3c08(%rip), %rsi      # 0xc603
leaq 0x3c25(%rip), %rdx      # 0xc627
leaq -0x40(%rbp), %rdi
callq 0x3252
leaq -0x19(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x254e
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x8a2c
movq (%r14), %rsi
incq %rsi
callq 0x2140
leaq -0x19(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x8a77
movq -0x30(%rbp), %rsi
jmp 0x8a64
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x8a77
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x8a77
jmp 0x8a74
jmp 0x8a74
jmp 0x8a74
movq %rax, %rbx
leaq -0x19(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O3/Neotoxic-off[P]Zest/src/tag/img.cpp
// Function: Attributes::img::sizes(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool Attributes::img::sizes(std::string value)
{
    Logs logs;

    this->sizes_t = value;

    if (Attributes::img::sizes() == value) {
        logs.done("img attribute sizes set");

        return (true);
    }
    logs.fail("img attribute sizes not set");

    return (false);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x19(%rbp), %rdi
callq 0x244c
leaq 0x160(%r14), %rdi
movq %rbx, %rsi
callq 0x20c0
leaq -0x70(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x160(%r14), %rsi
movq 0x168(%r14), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x2f12
movq -0x78(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x8afa
movq -0x80(%rbp), %r14
testq %rdx, %rdx
je 0x8b02
movq (%rbx), %rsi
movq %r14, %rdi
callq 0x2150
testl %eax, %eax
sete %bl
jmp 0x8b04
movq -0x80(%rbp), %r14
xorl %ebx, %ebx
jmp 0x8b04
movb $0x1, %bl
cmpq %r15, %r14
je 0x8b18
movq -0x70(%rbp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x2140
testb %bl, %bl
je 0x8b4e
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3afd(%rip), %rsi      # 0xc628
leaq 0x3b0d(%rip), %rdx      # 0xc63f
leaq -0x60(%rbp), %rdi
callq 0x3252
leaq -0x19(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x24e2
movq -0x60(%rbp), %rdi
jmp 0x8b7e
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3ae3(%rip), %rsi      # 0xc640
leaq 0x3af7(%rip), %rdx      # 0xc65b
leaq -0x40(%rbp), %rdi
callq 0x3252
leaq -0x19(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x254e
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x8b8e
movq (%r14), %rsi
incq %rsi
callq 0x2140
leaq -0x19(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x8bd9
movq -0x30(%rbp), %rsi
jmp 0x8bc6
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x8bd9
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x8bd9
jmp 0x8bd6
jmp 0x8bd6
jmp 0x8bd6
movq %rax, %rbx
leaq -0x19(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O3/Neotoxic-off[P]Zest/src/tag/img.cpp
// Function: Attributes::img::srcset(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool Attributes::img::srcset(std::string value)
{
    Logs logs;

    this->srcset_t = value;

    if (Attributes::img::srcset() == value) {
        logs.done("img attribute srcset set");

        return (true);
    }
    logs.fail("img attribute srcset not set");

    return (false);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x19(%rbp), %rdi
callq 0x244c
leaq 0x180(%r14), %rdi
movq %rbx, %rsi
callq 0x20c0
leaq -0x70(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x180(%r14), %rsi
movq 0x188(%r14), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x2f12
movq -0x78(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x8c5c
movq -0x80(%rbp), %r14
testq %rdx, %rdx
je 0x8c64
movq (%rbx), %rsi
movq %r14, %rdi
callq 0x2150
testl %eax, %eax
sete %bl
jmp 0x8c66
movq -0x80(%rbp), %r14
xorl %ebx, %ebx
jmp 0x8c66
movb $0x1, %bl
cmpq %r15, %r14
je 0x8c7a
movq -0x70(%rbp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x2140
testb %bl, %bl
je 0x8cb0
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x39cf(%rip), %rsi      # 0xc65c
leaq 0x39e0(%rip), %rdx      # 0xc674
leaq -0x60(%rbp), %rdi
callq 0x3252
leaq -0x19(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x24e2
movq -0x60(%rbp), %rdi
jmp 0x8ce0
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x39b6(%rip), %rsi      # 0xc675
leaq 0x39cb(%rip), %rdx      # 0xc691
leaq -0x40(%rbp), %rdi
callq 0x3252
leaq -0x19(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x254e
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x8cf0
movq (%r14), %rsi
incq %rsi
callq 0x2140
leaq -0x19(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x8d3b
movq -0x30(%rbp), %rsi
jmp 0x8d28
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x8d3b
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x8d3b
jmp 0x8d38
jmp 0x8d38
jmp 0x8d38
movq %rax, %rbx
leaq -0x19(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O3/Neotoxic-off[P]Zest/src/tag/img.cpp
// Function: Attributes::img::usermap(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool Attributes::img::usermap(std::string value)
{
    Logs logs;

    this->usermap_t = value;

    if (Attributes::img::usermap() == value) {
        logs.done("img attribute usermap set");

        return (true);
    }
    logs.fail("img attribute usermap not set");

    return (false);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x19(%rbp), %rdi
callq 0x244c
leaq 0x1a0(%r14), %rdi
movq %rbx, %rsi
callq 0x20c0
leaq -0x70(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x1a0(%r14), %rsi
movq 0x1a8(%r14), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x2f12
movq -0x78(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x8dbe
movq -0x80(%rbp), %r14
testq %rdx, %rdx
je 0x8dc6
movq (%rbx), %rsi
movq %r14, %rdi
callq 0x2150
testl %eax, %eax
sete %bl
jmp 0x8dc8
movq -0x80(%rbp), %r14
xorl %ebx, %ebx
jmp 0x8dc8
movb $0x1, %bl
cmpq %r15, %r14
je 0x8ddc
movq -0x70(%rbp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x2140
testb %bl, %bl
je 0x8e12
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x38a3(%rip), %rsi      # 0xc692
leaq 0x38b5(%rip), %rdx      # 0xc6ab
leaq -0x60(%rbp), %rdi
callq 0x3252
leaq -0x19(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x24e2
movq -0x60(%rbp), %rdi
jmp 0x8e42
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x388b(%rip), %rsi      # 0xc6ac
leaq 0x38a1(%rip), %rdx      # 0xc6c9
leaq -0x40(%rbp), %rdi
callq 0x3252
leaq -0x19(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x254e
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x8e52
movq (%r14), %rsi
incq %rsi
callq 0x2140
leaq -0x19(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x8e9d
movq -0x30(%rbp), %rsi
jmp 0x8e8a
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x8e9d
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x8e9d
jmp 0x8e9a
jmp 0x8e9a
jmp 0x8e9a
movq %rax, %rbx
leaq -0x19(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O3/Neotoxic-off[P]Zest/src/tag/img.cpp
// Function: Attributes::img::style(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool Attributes::img::style(std::string value)
{
    Logs logs;

    this->style_t = value;

    if (Attributes::img::style() == value) {
        logs.done("img attribute style set");

        return (true);
    }
    logs.fail("img attribute style not set");

    return (false);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x19(%rbp), %rdi
callq 0x244c
leaq 0x1c0(%r14), %rdi
movq %rbx, %rsi
callq 0x20c0
leaq -0x70(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x1c0(%r14), %rsi
movq 0x1c8(%r14), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x2f12
movq -0x78(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x8f20
movq -0x80(%rbp), %r14
testq %rdx, %rdx
je 0x8f28
movq (%rbx), %rsi
movq %r14, %rdi
callq 0x2150
testl %eax, %eax
sete %bl
jmp 0x8f2a
movq -0x80(%rbp), %r14
xorl %ebx, %ebx
jmp 0x8f2a
movb $0x1, %bl
cmpq %r15, %r14
je 0x8f3e
movq -0x70(%rbp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x2140
testb %bl, %bl
je 0x8f74
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3779(%rip), %rsi      # 0xc6ca
leaq 0x3789(%rip), %rdx      # 0xc6e1
leaq -0x60(%rbp), %rdi
callq 0x3252
leaq -0x19(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x24e2
movq -0x60(%rbp), %rdi
jmp 0x8fa4
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x375f(%rip), %rsi      # 0xc6e2
leaq 0x3773(%rip), %rdx      # 0xc6fd
leaq -0x40(%rbp), %rdi
callq 0x3252
leaq -0x19(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x254e
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x8fb4
movq (%r14), %rsi
incq %rsi
callq 0x2140
leaq -0x19(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x8fff
movq -0x30(%rbp), %rsi
jmp 0x8fec
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x8fff
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x8fff
jmp 0x8ffc
jmp 0x8ffc
jmp 0x8ffc
movq %rax, %rbx
leaq -0x19(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O3/Neotoxic-off[P]Zest/src/Tools.cpp
// Function: Tools::equal(char*, char*)
bool Tools::equal(char *to_compare, char *compared_to)
{
    int compare_size = length(to_compare);
    int compared_size = length(compared_to);

    if (compare_size == compared_size) {
        for (int i = 0; i < compare_size; i++) {
            if (to_compare[i] != compared_to[i])
                return (false);
        }
        return (true);
    }

    return (false);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq $-0x1, %rcx
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
movabsq $0x100000000, %rdi      # imm = 0x100000000
addq %rdi, %rax
cmpb $0x0, 0x1(%rsi,%rcx)
leaq 0x1(%rcx), %rcx
jne 0xb461
movq $-0x1, %rdi
cmpb $0x0, 0x1(%rdx,%rdi)
leaq 0x1(%rdi), %rdi
jne 0xb476
cmpq %rdi, %rcx
jne 0xb4b6
testq %rcx, %rcx
je 0xb4ba
sarq $0x20, %rax
cmpl $0x2, %ecx
movl $0x1, %edi
cmovgel %ecx, %edi
xorl %ecx, %ecx
movb (%rsi,%rcx), %r8b
cmpb (%rdx,%rcx), %r8b
jne 0xb4b6
incq %rcx
cmpq %rcx, %rdi
jne 0xb49c
cmpq %rax, %rcx
setge %al
jmp 0xb4bc
xorl %eax, %eax
jmp 0xb4bc
movb $0x1, %al
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Neotoxic-off[P]Zest/src/Tools.cpp
// Function: Tools::count(char*, char)
int Tools::count(char *str, char c)
{
    int count = 0;

    for (int i = 0; str[i] != '\0'; i++)
        if (str[i] == c)
            count++;

    return (count);
}

// Assembly:
movb (%rsi), %cl
testb %cl, %cl
je 0xb4e2
pushq %rbp
movq %rsp, %rbp
incq %rsi
xorl %eax, %eax
xorl %edi, %edi
cmpb %dl, %cl
sete %dil
addl %edi, %eax
movb (%rsi), %cl
incq %rsi
testb %cl, %cl
jne 0xb4cd
popq %rbp
retq
xorl %eax, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Neotoxic-off[P]Zest/src/Tools.cpp
// Function: Tools::split(char*, char)
char **Tools::split(char *array, char sep)
{
    char **split = mmalloc(count(array, sep) + 1);
    int floor = 0;
    int previous = 0;
    char *append = NULL;

    for (int i = 0; i < Tools::length(array); i++) {
        if (array[i] == sep) {
            floor++;
        } else {
            if (i == 0 || previous < floor) {
                split[floor] = Tools::malloc(1);
                previous = floor;
            }
            append = Tools::insert(split[floor], array[i]);
            Tools::cnf(split[floor]);
            split[floor] = append;
        }
    }
    return (split);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %rbx
movb (%rsi), %dl
testb %dl, %dl
je 0xb561
leaq 0x1(%r15), %rcx
xorl %eax, %eax
xorl %esi, %esi
cmpb %r14b, %dl
sete %sil
addl %esi, %eax
movb (%rcx), %dl
incq %rcx
testb %dl, %dl
jne 0xb54b
jmp 0xb563
xorl %eax, %eax
leal 0x10(,%rax,8), %esi
movq %rbx, %rdi
callq 0xb408
xorl %eax, %eax
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
movabsq $0x100000000, %rdx      # imm = 0x100000000
movq %r15, %rdi
movq %rcx, %rsi
addq %rdx, %rsi
cmpb $0x0, (%rdi)
leaq 0x1(%rdi), %rdi
jne 0xb58e
sarq $0x20, %rsi
cmpq %rsi, %rax
jge 0xb5bd
leaq 0x1(%rax), %rsi
cmpb %r14b, (%r15,%rax)
movq %rsi, %rax
je 0xb588
movq %rbx, %rdi
movl $0x1, %esi
callq 0xb408
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/rockytriton[P]dreamsys_emu_gb/src/bus.cpp
// Function: dsemu::bus::read(unsigned short)
byte read(ushort address) {
        if (address < 0x8000) {
            return cart::read(address); // memory::read(address);
        } else if (address < 0xA000) {
            return memory::read(address);
        } else if (address < 0xFE00) {
            return memory::read(address);
        } else if (address < 0xFEA0) {
            return ppu::readOAM(address - 0xFE00);
        } else if (address < 0xFEFF) {
            return 0;
        } else if (address < 0xFF80) {
            return io::read(address);
        } else if (address < 0xFFFF) {
            return memory::read(address);
        } else {
            return cpu::getInterruptsEnableFlag();
        }
    }

// Assembly:
testw %di, %di
js 0xb959
movzwl %di, %edi
jmp 0xc468
movzwl %di, %eax
cmpl $0x9fff, %eax           # imm = 0x9FFF
jbe 0xb96a
cmpl $0xfdff, %eax           # imm = 0xFDFF
ja 0xb971
movl %eax, %edi
jmp 0xe36f
cmpl $0xfe9f, %eax           # imm = 0xFE9F
ja 0xb986
addl $0x200, %edi            # imm = 0x200
movzwl %di, %edi
jmp 0x11480
cmpl $0xfeff, %eax           # imm = 0xFEFF
jae 0xb990
xorl %eax, %eax
retq
cmpl $0xff7f, %eax           # imm = 0xFF7F
ja 0xb99e
movl %eax, %edi
jmp 0xd6af
cmpw $-0x1, %di
jne 0xb96a
jmp 0xd1b1
// File: /workspace/github_cpp_makefile_star2_O3/rockytriton[P]dreamsys_emu_gb/src/bus.cpp
// Function: dsemu::bus::write(unsigned short, unsigned char)
void write(ushort address, byte b) {

        if (address < 0x8000) {
            cart::control(address, b);
        } else if (address < 0xA000) {
            if (address == 0xDD00 || address == 0xDD01) {
                cout << "WRITING TO " << Short(address) << " = " << Byte(b) << endl;
                sleep(2);
            }
            memory::write(address, b);
        } 
        else if (address < 0xFE00) {
            memory::write(address, b);
        } else if (address < 0xFEA0) {
            ppu::writeOAM(address - 0xFE00, b);

        } else if (address < 0xFEFF) {
        } else if (address < 0xFF80) {
            io::write(address, b);
        } else if (address < 0xFFFF) {
            memory::write(address, b);
        } else {
            cpu::setInterruptsEnableFlag(b);
        }
    }

// Assembly:
testw %di, %di
js 0xb9de
movzwl %di, %edi
movzbl %sil, %esi
jmp 0xc479
movzwl %di, %eax
cmpl $0x9fff, %eax           # imm = 0x9FFF
jbe 0xb9ef
cmpl $0xfdff, %eax           # imm = 0xFDFF
ja 0xb9fa
movzbl %sil, %esi
movl %eax, %edi
jmp 0xe389
cmpl $0xfe9f, %eax           # imm = 0xFE9F
ja 0xba13
addl $0x200, %edi            # imm = 0x200
movzwl %di, %edi
movzbl %sil, %esi
jmp 0x1148d
cmpl $0xfeff, %eax           # imm = 0xFEFF
jae 0xba1b
retq
cmpl $0xff7f, %eax           # imm = 0xFF7F
ja 0xba2d
movzbl %sil, %esi
movl %eax, %edi
jmp 0xd8a0
cmpw $-0x1, %di
jne 0xb9ef
movzbl %sil, %edi
jmp 0xd1bf
// File: /workspace/github_cpp_makefile_star2_O3/rockytriton[P]dreamsys_emu_gb/src/cpu.cpp
// Function: dsemu::cpu::push(unsigned short)
void push(ushort s) {
    setReg16Value(regSP, getReg16Value(regSP) - 2);
    bus::write(getReg16Value(regSP), s);
    THESTACK.push_back(s & 0xFF);
    THESTACK.push_back((s >> 8) & 0xFF);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
movzwl 0xc05f(%rip), %eax      # 0x184fc
addl $-0x2, %eax
movw %ax, 0xc055(%rip)       # 0x184fc
movzwl %ax, %edi
movl %ebx, %esi
callq 0xb9a9
leaq 0x7(%rsp), %rsi
movb %bl, (%rsi)
leaq 0xc059(%rip), %r14      # 0x18518
movq %r14, %rdi
callq 0xd1e8
movb %bh, 0x6(%rsp)
leaq 0x6(%rsp), %rsi
movq %r14, %rdi
callq 0xd1e8
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/rockytriton[P]dreamsys_emu_gb/src/cpu.cpp
// Function: dsemu::cpu::pop()
byte pop() {
    byte lo = bus::read(getReg16Value(regSP));
    setReg16Value(regSP, getReg16Value(regSP) + 1);
    THESTACK.pop_back();
    
    return lo;
}

// Assembly:
pushq %rax
movzwl 0xbfbd(%rip), %edi      # 0x184fc
callq 0xb94c
incw 0xbfb1(%rip)            # 0x184fc
decq 0xbfce(%rip)            # 0x18520
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O3/rockytriton[P]dreamsys_emu_gb/src/emu.cpp
// Function: dsemu::run()
void run() {
    io::init();
    cpu::init();
    ppu::init();

    while(true) {
        if (cpu::paused) {
            sleepMs(1); //500);
            continue;
        }

        cpu::tick();
        ppu::tick();
    }
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
callq 0xd4f1
callq 0xc5a4
callq 0x11364
leaq 0xb0eb(%rip), %r14      # 0x18508
leaq 0x8(%rsp), %rbx
cmpb $0x1, (%r14)
jne 0xd456
movq $0x0, 0x8(%rsp)
movq $0xf4240, 0x10(%rsp)    # imm = 0xF4240
movq %rbx, %rdi
movq %rbx, %rsi
callq 0x30d0
cmpl $-0x1, %eax
jne 0xd422
callq 0x3050
cmpl $0x4, (%rax)
je 0xd43a
jmp 0xd422
callq 0xc5df
callq 0x11770
jmp 0xd422
nop
// File: /workspace/github_cpp_makefile_star2_O3/rockytriton[P]dreamsys_emu_gb/src/io.cpp
// Function: dsemu::io::writeDMA(unsigned char)
void writeDMA(byte b) {
    for (int i=0; i<0xA0; i++) {
        byte d = bus::read((b * 0x100) + i);
        bus::write(0xFE00 + i, d);
    }

    cpu::extraCycles = 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edi, %ebx
shll $0x8, %ebx
xorl %r14d, %r14d
movl $0xffff, %ebp           # imm = 0xFFFF
leal (%rbx,%r14), %edi
andl %ebp, %edi
callq 0xb94c
leal 0xfe00(%r14), %edi
andl %ebp, %edi
movzbl %al, %esi
callq 0xb9cd
incl %r14d
cmpl $0xa0, %r14d
jne 0xd4b4
leaq 0xb015(%rip), %rax      # 0x184f8
movl $0x0, (%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/rockytriton[P]dreamsys_emu_gb/src/io.cpp
// Function: dsemu::io::init()
void init() {
    IO_WRITE_HANDLER noWrite = [](byte b) -> void { };

    handlerMap[0xFF43] = std::make_pair(readScrollX, writeScrollX);
    handlerMap[0xFF42] = std::make_pair(ppu::getYScroll, ppu::setYScroll);
    handlerMap[0xFF40] = std::make_pair(readLCDControl, writeLCDControl);
    handlerMap[0xFF41] = std::make_pair(readLCDStats, writeLCDStats);
    handlerMap[0xFF44] = std::make_pair(ppu::getCurrentLine, noWrite);
    handlerMap[0xFF46] = std::make_pair(readDMS, writeDMA);

    ADD_MEMORY_HANDLER(0xFF45);
    ADD_MEMORY_HANDLER(0xFF47);
    ADD_MEMORY_HANDLER(0xFF48);
    ADD_MEMORY_HANDLER(0xFF49);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
leaq 0x6(%rsp), %r14
movw $0xff43, (%r14)         # imm = 0xFF43
leaq 0xb041(%rip), %rbx      # 0x18548
movq %rbx, %rdi
movq %r14, %rsi
callq 0xdbc0
leaq -0xb5(%rip), %rcx       # 0xd464
movq %rcx, (%rax)
leaq -0xb5(%rip), %rcx       # 0xd46e
movq %rcx, 0x8(%rax)
movw $0xff42, (%r14)         # imm = 0xFF42
leaq 0x6(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xdbc0
leaq 0x6e4(%rip), %rcx       # 0xdc28
movq %rcx, (%rax)
leaq 0x6e5(%rip), %rcx       # 0xdc33
movq %rcx, 0x8(%rax)
movw $0xff40, (%r14)         # imm = 0xFF40
leaq 0x6(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xdbc0
leaq -0xe1(%rip), %rcx       # 0xd48e
movq %rcx, (%rax)
leaq -0xe1(%rip), %rcx       # 0xd498
movq %rcx, 0x8(%rax)
movw $0xff41, (%r14)         # imm = 0xFF41
leaq 0x6(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xdbc0
leaq -0x121(%rip), %rcx      # 0xd479
movq %rcx, (%rax)
leaq -0x121(%rip), %rcx      # 0xd483
movq %rcx, 0x8(%rax)
movw $0xff44, (%r14)         # imm = 0xFF44
leaq 0x6(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xdbc0
leaq 0x3eb4(%rip), %rcx      # 0x11479
movq %rcx, (%rax)
leaq 0x591(%rip), %rcx       # 0xdb60
movq %rcx, 0x8(%rax)
movw $0xff46, (%r14)         # imm = 0xFF46
leaq 0x6(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xdbc0
leaq -0x102(%rip), %rcx      # 0xd4ee
movq %rcx, (%rax)
leaq -0x157(%rip), %rcx      # 0xd4a3
movq %rcx, 0x8(%rax)
movw $0xff45, (%r14)         # imm = 0xFF45
leaq 0x6(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xdbc0
leaq 0x547(%rip), %rcx       # 0xdb62
movq %rcx, (%rax)
leaq 0x547(%rip), %rcx       # 0xdb6c
movq %rcx, 0x8(%rax)
movw $0xff47, (%r14)         # imm = 0xFF47
leaq 0x6(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xdbc0
leaq 0x532(%rip), %rcx       # 0xdb78
movq %rcx, (%rax)
leaq 0x532(%rip), %rcx       # 0xdb82
movq %rcx, 0x8(%rax)
movw $0xff48, (%r14)         # imm = 0xFF48
leaq 0x6(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xdbc0
leaq 0x51d(%rip), %rcx       # 0xdb8e
movq %rcx, (%rax)
leaq 0x51d(%rip), %rcx       # 0xdb98
movq %rcx, 0x8(%rax)
movw $0xff49, (%r14)         # imm = 0xFF49
leaq 0x6(%rsp), %rsi
movq %rbx, %rdi
callq 0xdbc0
leaq 0x50b(%rip), %rcx       # 0xdba4
movq %rcx, (%rax)
leaq 0x50b(%rip), %rcx       # 0xdbae
movq %rcx, 0x8(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/rockytriton[P]dreamsys_emu_gb/src/main.cpp
// Function: main
int main(int argc, char **argv) {
    cout << "Starting main.." << endl;

    std::memset(ram, 0, 0xFFFF);

    dsemu::cart::load((const char *)argv[1]);

    std::memcpy(ram, dsemu::cart::g_romData, 0x8000);

    ui::init();

    std::thread t(dsemu::run);

    int prevFrame = 0;

    while(true) {
        sleepMs(1);
        ui::handleEvents();

        if (prevFrame != ppu::currentFrame) {
            ui::update();
        }

        prevFrame = ppu::currentFrame;
    }

/*
    ram[0] = 0x01;
    ram[1] = 0xC0;
    ram[2] = 0xDE;
    ram[3] = 0x3E;
    ram[4] = 0x55;
    ram[5] = 0x02;
    ram[6] = 0x3E;
    ram[7] = 0x99;
    ram[8] = 0x02;
    ram[9] = 0xFF;
*/
    //cout << endl << "BEFORE RUN, C0DE = " << std::hex << std::setfill('0') << std::setw(2) << (int)ram[0xC0DE] << endl << endl;

    

    //cout << endl << "AFTER RUN, C0DE  = " << std::hex << std::setfill('0') << std::setw(2) << (int)ram[0xC0DE] << endl << endl;


/*

    for (int i=0xC0DE; i<0xCFFF; i++) {
        if ((i % 64) == 0) {
            cout << endl;
            cout << std::hex << std::setfill('0') << std::setw(4) << i << " - ";
        }

        cout << std::hex << std::setfill('0') << std::setw(2) << (int)ram[i] << " ";
    }

    Register reg;
    reg.hi = 0xC0;
    reg.lo = 0xDE;

    ushort *p = (ushort *)&reg;

    regAF.lo = 1;

    cout << "Reg: " << endl 
         << "Hi: " << std::hex << (int)reg.hi << " Lo:" << (int)reg.lo << " = " << (*p) << endl;
*/
    return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movq 0xa10e(%rip), %r14      # 0x17fd0
leaq 0x529d(%rip), %rsi      # 0x13166
movl $0xf, %edx
movq %r14, %rdi
callq 0x3300
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31a0
leaq 0x1a6ac(%rip), %rdi     # 0x285b0
movl $0xffff, %edx           # imm = 0xFFFF
xorl %esi, %esi
callq 0x3170
movq 0x8(%rbx), %rsi
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xe006
leaq 0x10(%rsp), %rdi
callq 0xba3c
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xdf48
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32b0
leaq 0xa389(%rip), %rax      # 0x182d8
movq (%rax), %rsi
leaq 0x1a657(%rip), %rdi     # 0x285b0
movl $0x8000, %edx           # imm = 0x8000
callq 0x3230
callq 0x11b88
leaq -0xb6f(%rip), %rsi      # 0xd400
leaq 0x8(%rsp), %rdi
callq 0xe044
xorl %ebp, %ebp
leaq 0x10(%rsp), %rbx
leaq 0x2f6f1(%rip), %r14     # 0x3d678
movq $0x0, 0x10(%rsp)
movq $0xf4240, 0x18(%rsp)    # imm = 0xF4240
movq %rbx, %rdi
movq %rbx, %rsi
callq 0x30d0
cmpl $-0x1, %eax
jne 0xdfb3
callq 0x3050
cmpl $0x4, (%rax)
je 0xdf99
callq 0x11fa5
cmpl (%r14), %ebp
je 0xdf87
callq 0x11ebc
movl (%r14), %ebp
jmp 0xdf87
jmp 0xdfcb
jmp 0xdfcb
movq %rax, %rbx
cmpq $0x0, 0x8(%rsp)
je 0xdffe
callq 0x30c0
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xdffe
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32b0
jmp 0xdffe
movq %rax, %rbx
movq %rbx, %rdi
callq 0x3440
// File: /workspace/github_cpp_makefile_star2_O3/rockytriton[P]dreamsys_emu_gb/src/mappers.cpp
// Function: dsemu::mappers::MPC1::read(unsigned short)
byte MPC1::read(ushort address) {
    if (!init) {
        cout << "INIT" << endl;
        memcpy(data, cart::g_romData, 0x8000);
        init = true;
    }
/*
    if (init) {
        //cout << "READ: " << Short(address) << endl;

        if (switched && address >= 0x4000 && bank > 1) {
            cout << "READ: " << Short(address) << " to " << std::hex << (int)(address + (bank * 0x4000))<< endl;
            sleepMs(500);
        } else if (bank > 1) {
            cout << "BANK0READ: " << Short(address) << endl;
        }

        //return memory::ram[address];
        //return data[address];
    }
*/
    if (address < 0x4000) {
        return cart::g_romData[address];
    }

    if (bank > 1) {
        //cout << "BANK READ: " << (int)bank << " - " << Short(address) << " to " << std::hex << (int)(address + (bank * 0x4000)) << endl;
        //sleepMs(200);
    }

    return cart::g_romData[address + (bank * 0x4000) - 0x4000];
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
cmpb $0x0, 0xa3cd(%rip)      # 0x18591
jne 0xe22a
movq 0x9e03(%rip), %r14      # 0x17fd0
leaq 0x5007(%rip), %rsi      # 0x131db
movl $0x4, %edx
movq %r14, %rdi
callq 0x3300
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31a0
leaq 0xa0c9(%rip), %rax      # 0x182d8
movq (%rax), %rsi
leaq 0xa387(%rip), %rdi      # 0x185a0
movl $0x8000, %edx           # imm = 0x8000
callq 0x3230
movb $0x1, 0xa367(%rip)      # 0x18591
movzwl %bp, %eax
cmpl $0x3fff, %eax           # imm = 0x3FFF
ja 0xe240
leaq 0xa09d(%rip), %rcx      # 0x182d8
addq (%rcx), %rax
jmp 0xe25e
movslq 0x8(%rbx), %rcx
leaq 0xa08d(%rip), %rdx      # 0x182d8
movq (%rdx), %rdx
shlq $0xe, %rcx
addq %rcx, %rax
addq %rdx, %rax
addq $-0x4000, %rax          # imm = 0xC000
movb (%rax), %al
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/rockytriton[P]dreamsys_emu_gb/src/mappers.cpp
// Function: dsemu::mappers::MPC1::control(unsigned short, unsigned char)
void MPC1::control(ushort address, byte b) {
    cout << "CONTROL" << endl;

    if (!init) {
        memcpy(data, cart::g_romData, 0x8000);
        init = true;
    }
/*
    if (init) {
        if (address >= 0x2000 && address <= 0x3FFF) {
            bank = b & 0x1F;
            if(bank == 0 || bank == 0x20 || bank == 0x40 || bank == 0x60)
                bank++;

            switched = true;

            cout << "SWITCHING BANK: " << (int) bank << endl;
            sleepMs(200);

            memcpy(&data[0x4000], cart::g_romData + (bank * 0x4000), 0x4000);
        }
        return;
    }
*/
    if (address >= 0x6000) {
        //TODO: Memory model select...
    } else if (address >= 0x2000 && address <= 0x3FFF) {
        bank = b & 0x1F;

        if (bank == 0 || bank == 0x20 || bank == 0x40 || bank == 0x60) {
            bank++;
        }

        if (bank * 0x4000 > cart::g_romSize - 0x4000) {
            cout << "FAILURE IN MAPPER CONTROL" << endl;
            exit(-1);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movq 0x9d54(%rip), %r15      # 0x17fd0
leaq 0x4f6f(%rip), %rsi      # 0x131f2
movl $0x7, %edx
movq %r15, %rdi
callq 0x3300
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31a0
cmpb $0x0, 0xa2d3(%rip)      # 0x18591
jne 0xe2e2
leaq 0xa011(%rip), %rax      # 0x182d8
movq (%rax), %rsi
leaq 0xa2cf(%rip), %rdi      # 0x185a0
movl $0x8000, %edx           # imm = 0x8000
callq 0x3230
movb $0x1, 0xa2af(%rip)      # 0x18591
movzwl %r14w, %eax
movl $0x6000, %ecx           # imm = 0x6000
cmpl %ecx, %eax
setae %dl
andl %ecx, %eax
cmpl $0x2000, %eax           # imm = 0x2000
setne %al
orb %dl, %al
jne 0xe32b
andb $0x1f, %bpl
movzbl %bpl, %eax
cmpb $0x2, %al
movl $0x1, %ecx
cmovael %eax, %ecx
movzbl %cl, %eax
movl %eax, 0x8(%rbx)
shll $0xe, %eax
leaq 0x9fc0(%rip), %rcx      # 0x182e0
movl $0xffffc000, %edx       # imm = 0xFFFFC000
addl (%rcx), %edx
cmpl %edx, %eax
jg 0xe336
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x9c93(%rip), %rdi      # 0x17fd0
leaq 0x4e9c(%rip), %rsi      # 0x131e0
callq 0x3290
movq %rax, %rdi
callq 0x3150
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x3310
nop
// File: /workspace/github_cpp_makefile_star2_O3/rockytriton[P]dreamsys_emu_gb/src/memory.cpp
// Function: dsemu::memory::write(unsigned short, unsigned char)
void write(ushort address, byte value) {
        ram[address] = value;

        if (address == 0xFFFF) {
            cout << "\t - IE EN REGISTER WRITE: " << Byte(value) << endl;
            cpu::handleInterrupt(value, false);
        } else if (address == 0xFF0F) {
            cout << "\t - IE FL REGISTER WRITE: " << Byte(value) << endl;
            
            //cpu::handleInterrupt(value, true);
        }
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %ebx
movl %edi, %eax
leaq 0x1a217(%rip), %rcx     # 0x285b0
movb %bl, (%rax,%rcx)
cmpl $0xff0f, %edi           # imm = 0xFF0F
je 0xe482
cmpl $0xffff, %edi           # imm = 0xFFFF
jne 0xe540
movq 0x9c15(%rip), %r14      # 0x17fd0
leaq 0x4e83(%rip), %rsi      # 0x13245
movl $0x1a, %edx
movq %r14, %rdi
callq 0x3300
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl $-0x4b, %edx
orl $0x8, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rcx
leaq (%r14,%rcx), %r15
cmpb $0x0, 0xe1(%r14,%rcx)
jne 0xe411
movq %r15, %rdi
movl $0x20, %esi
callq 0x3280
movb $0x1, 0xe1(%r15)
movq (%r14), %rax
movb $0x30, 0xe0(%r15)
movq -0x18(%rax), %rax
movq $0x2, 0x10(%r14,%rax)
movzbl %bl, %ebx
movq %r14, %rdi
movl %ebx, %esi
callq 0x3420
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31a0
movl %ebx, %edi
xorl %esi, %esi
movl $0x1, %edx
popq %rbx
popq %r14
popq %r15
jmp 0xcf99
movq 0x9b47(%rip), %r14      # 0x17fd0
leaq 0x4dd0(%rip), %rsi      # 0x13260
movl $0x1a, %edx
movq %r14, %rdi
callq 0x3300
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl $-0x4b, %edx
orl $0x8, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rcx
leaq (%r14,%rcx), %r15
cmpb $0x0, 0xe1(%r14,%rcx)
jne 0xe4df
movq %r15, %rdi
movl $0x20, %esi
callq 0x3280
movb $0x1, 0xe1(%r15)
movq (%r14), %rax
movb $0x30, 0xe0(%r15)
movq -0x18(%rax), %rax
movq $0x2, 0x10(%r14,%rax)
movzbl %bl, %esi
movq %r14, %rdi
callq 0x3420
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x31a0
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp
// Function: dsemu::cpu::regFromBits(unsigned char)
byte *regFromBits(byte reg) {
    byte *pReg = nullptr;

    switch(reg) {
        case 0: pReg = &regBC.hi; break; //cout << "GOT B" << endl; break;
        case 1: pReg = &regBC.lo; break; // cout << "GOT C" << endl; break;
        case 2: pReg = &regDE.hi; break; // cout << "GOT D" << endl; break;
        case 3: pReg = &regDE.lo; break; // cout << "GOT E" << endl; break;
        case 4: pReg = &regHL.hi; break; // cout << "GOT H" << endl; break;
        case 5: pReg = &regHL.lo; break; // cout << "GOT L" << endl; break;
        case 6: pReg = &memory::ram[toShort(regHL.lo, regHL.hi)]; break;
        case 7: pReg = &regAF.hi; break;
            default:
                cout << "INVALID REG " << endl;
                exit(-1);
    }

    return pReg;
}

// Assembly:
cmpl $0x7, %edi
ja 0xe8ea
leaq 0x9c59(%rip), %rax      # 0x184f2
movl %edi, %ecx
leaq 0x49da(%rip), %rdx      # 0x1327c
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
leaq 0x9c42(%rip), %rax      # 0x184f4
jmp 0xe8cc
leaq 0x9c3b(%rip), %rax      # 0x184f6
jmp 0xe8cc
leaq 0x9c30(%rip), %rax      # 0x184f4
retq
leaq 0x9c24(%rip), %rax      # 0x184f0
incq %rax
retq
leaq 0x9c1f(%rip), %rax      # 0x184f6
retq
leaq 0x9c17(%rip), %rax      # 0x184f6
movzwl (%rax), %eax
addq 0x96cf(%rip), %rax      # 0x17fb8
retq
pushq %rax
movq 0x96de(%rip), %rdi      # 0x17fd0
leaq 0x4abf(%rip), %rsi      # 0x133b8
callq 0x3290
movq %rax, %rdi
callq 0x3150
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x3310