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

    this->type_t = value;

    if (Attributes::a::type() == value) {
        logs.done("a attribute type set");

        return (true);
    }
    logs.fail("a attribute type not set");

    return (false);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x70, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x11(%rbp), %rdi
callq 0x244c
addq $0x120, %r14            # imm = 0x120
movq %r14, %rdi
movq %rbx, %rsi
callq 0x20e0
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
callq 0x2190
leaq -0x78(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2ab9
movl %eax, %ebx
movq %r14, %rdi
callq 0x20b0
testb %bl, %bl
je 0x45ce
leaq 0x3d8b(%rip), %rsi      # 0x8339
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x24bc
leaq -0x58(%rbp), %rdi
jmp 0x45f3
leaq 0x3d79(%rip), %rsi      # 0x834e
leaq -0x38(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2508
leaq -0x38(%rbp), %rdi
callq 0x20b0
leaq -0x11(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
jmp 0x461c
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x20b0
jmp 0x462c
jmp 0x4629
jmp 0x4629
jmp 0x4629
movq %rax, %rbx
leaq -0x11(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/Neotoxic-off[P]Zest/src/tag/img.cpp
// Function: Attributes::img::id(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool Attributes::img::id(std::string value)
{
    Logs logs;

    this->id_t = value;

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

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

    return (false);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x70, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x11(%rbp), %rdi
callq 0x244c
movq %r14, %rdi
movq %rbx, %rsi
callq 0x20e0
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
callq 0x2190
leaq -0x78(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2ab9
movl %eax, %ebx
movq %r14, %rdi
callq 0x20b0
testb %bl, %bl
je 0x5ad1
leaq 0x291f(%rip), %rsi      # 0x83d0
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x24bc
leaq -0x58(%rbp), %rdi
jmp 0x5af6
leaq 0x290d(%rip), %rsi      # 0x83e5
leaq -0x38(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2508
leaq -0x38(%rbp), %rdi
callq 0x20b0
leaq -0x11(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
jmp 0x5b1f
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x20b0
jmp 0x5b2f
jmp 0x5b2c
jmp 0x5b2c
jmp 0x5b2c
movq %rax, %rbx
leaq -0x11(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O2/Neotoxic-off[P]Zest/src/tag/img.cpp
// Function: Attributes::img::alt(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool Attributes::img::alt(std::string value)
{
    Logs logs;

    this->alt_t = value;

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

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

    return (false);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x70, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x11(%rbp), %rdi
callq 0x244c
addq $0x20, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x20e0
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
callq 0x2190
leaq -0x78(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2ab9
movl %eax, %ebx
movq %r14, %rdi
callq 0x20b0
testb %bl, %bl
je 0x5bb9
leaq 0x2865(%rip), %rsi      # 0x83fe
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x24bc
leaq -0x58(%rbp), %rdi
jmp 0x5bde
leaq 0x2854(%rip), %rsi      # 0x8414
leaq -0x38(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2508
leaq -0x38(%rbp), %rdi
callq 0x20b0
leaq -0x11(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
jmp 0x5c07
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x20b0
jmp 0x5c17
jmp 0x5c14
jmp 0x5c14
jmp 0x5c14
movq %rax, %rbx
leaq -0x11(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O2/Neotoxic-off[P]Zest/src/tag/img.cpp
// Function: Attributes::img::src(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool Attributes::img::src(std::string value)
{
    Logs logs;

    this->src_t = value;

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

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

    return (false);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x70, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x11(%rbp), %rdi
callq 0x244c
addq $0x40, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x20e0
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
callq 0x2190
leaq -0x78(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2ab9
movl %eax, %ebx
movq %r14, %rdi
callq 0x20b0
testb %bl, %bl
je 0x5ca1
leaq 0x27ad(%rip), %rsi      # 0x842e
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x24bc
leaq -0x58(%rbp), %rdi
jmp 0x5cc6
leaq 0x279c(%rip), %rsi      # 0x8444
leaq -0x38(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2508
leaq -0x38(%rbp), %rdi
callq 0x20b0
leaq -0x11(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
jmp 0x5cef
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x20b0
jmp 0x5cff
jmp 0x5cfc
jmp 0x5cfc
jmp 0x5cfc
movq %rax, %rbx
leaq -0x11(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O2/Neotoxic-off[P]Zest/src/tag/img.cpp
// Function: Attributes::img::crossorigin(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool Attributes::img::crossorigin(std::string value)
{
    Logs logs;

    this->crossorigin_t = value;

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

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

    return (false);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x70, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x11(%rbp), %rdi
callq 0x244c
addq $0x60, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x20e0
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
callq 0x2190
leaq -0x78(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2ab9
movl %eax, %ebx
movq %r14, %rdi
callq 0x20b0
testb %bl, %bl
je 0x5d89
leaq 0x26f5(%rip), %rsi      # 0x845e
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x24bc
leaq -0x58(%rbp), %rdi
jmp 0x5dae
leaq 0x26ec(%rip), %rsi      # 0x847c
leaq -0x38(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2508
leaq -0x38(%rbp), %rdi
callq 0x20b0
leaq -0x11(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
jmp 0x5dd7
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x20b0
jmp 0x5de7
jmp 0x5de4
jmp 0x5de4
jmp 0x5de4
movq %rax, %rbx
leaq -0x11(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
subq $0x70, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x11(%rbp), %rdi
callq 0x244c
subq $-0x80, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x20e0
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
callq 0x2190
leaq -0x78(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2ab9
movl %eax, %ebx
movq %r14, %rdi
callq 0x20b0
testb %bl, %bl
je 0x5e71
leaq 0x264d(%rip), %rsi      # 0x849e
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x24bc
leaq -0x58(%rbp), %rdi
jmp 0x5e96
leaq 0x263f(%rip), %rsi      # 0x84b7
leaq -0x38(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2508
leaq -0x38(%rbp), %rdi
callq 0x20b0
leaq -0x11(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
jmp 0x5ebf
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x20b0
jmp 0x5ecf
jmp 0x5ecc
jmp 0x5ecc
jmp 0x5ecc
movq %rax, %rbx
leaq -0x11(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
subq $0x70, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x11(%rbp), %rdi
callq 0x244c
addq $0xa0, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x20e0
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
callq 0x2190
leaq -0x78(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2ab9
movl %eax, %ebx
movq %r14, %rdi
callq 0x20b0
testb %bl, %bl
je 0x5f5c
leaq 0x2598(%rip), %rsi      # 0x84d4
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x24bc
leaq -0x58(%rbp), %rdi
jmp 0x5f81
leaq 0x2589(%rip), %rsi      # 0x84ec
leaq -0x38(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2508
leaq -0x38(%rbp), %rdi
callq 0x20b0
leaq -0x11(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
jmp 0x5faa
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x20b0
jmp 0x5fba
jmp 0x5fb7
jmp 0x5fb7
jmp 0x5fb7
movq %rax, %rbx
leaq -0x11(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
subq $0x70, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x11(%rbp), %rdi
callq 0x244c
addq $0xc0, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x20e0
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
callq 0x2190
leaq -0x78(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2ab9
movl %eax, %ebx
movq %r14, %rdi
callq 0x20b0
testb %bl, %bl
je 0x6048
leaq 0x24e0(%rip), %rsi      # 0x8508
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x24bc
leaq -0x58(%rbp), %rdi
jmp 0x606d
leaq 0x24d1(%rip), %rsi      # 0x8520
leaq -0x38(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2508
leaq -0x38(%rbp), %rdi
callq 0x20b0
leaq -0x11(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
jmp 0x6096
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x20b0
jmp 0x60a6
jmp 0x60a3
jmp 0x60a3
jmp 0x60a3
movq %rax, %rbx
leaq -0x11(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
subq $0x70, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x11(%rbp), %rdi
callq 0x244c
addq $0xe0, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x20e0
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
callq 0x2190
leaq -0x78(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2ab9
movl %eax, %ebx
movq %r14, %rdi
callq 0x20b0
testb %bl, %bl
je 0x6134
leaq 0x2428(%rip), %rsi      # 0x853c
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x24bc
leaq -0x58(%rbp), %rdi
jmp 0x6159
leaq 0x2419(%rip), %rsi      # 0x8554
leaq -0x38(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2508
leaq -0x38(%rbp), %rdi
callq 0x20b0
leaq -0x11(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
jmp 0x6182
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x20b0
jmp 0x6192
jmp 0x618f
jmp 0x618f
jmp 0x618f
movq %rax, %rbx
leaq -0x11(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
subq $0x70, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x11(%rbp), %rdi
callq 0x244c
addq $0x100, %r14            # imm = 0x100
movq %r14, %rdi
movq %rbx, %rsi
callq 0x20e0
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
callq 0x2190
leaq -0x78(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2ab9
movl %eax, %ebx
movq %r14, %rdi
callq 0x20b0
testb %bl, %bl
je 0x6220
leaq 0x2370(%rip), %rsi      # 0x8570
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x24bc
leaq -0x58(%rbp), %rdi
jmp 0x6245
leaq 0x2363(%rip), %rsi      # 0x858a
leaq -0x38(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2508
leaq -0x38(%rbp), %rdi
callq 0x20b0
leaq -0x11(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
jmp 0x626e
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x20b0
jmp 0x627e
jmp 0x627b
jmp 0x627b
jmp 0x627b
movq %rax, %rbx
leaq -0x11(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
subq $0x70, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x11(%rbp), %rdi
callq 0x244c
addq $0x120, %r14            # imm = 0x120
movq %r14, %rdi
movq %rbx, %rsi
callq 0x20e0
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
callq 0x2190
leaq -0x78(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2ab9
movl %eax, %ebx
movq %r14, %rdi
callq 0x20b0
testb %bl, %bl
je 0x630c
leaq 0x22bc(%rip), %rsi      # 0x85a8
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x24bc
leaq -0x58(%rbp), %rdi
jmp 0x6331
leaq 0x22b0(%rip), %rsi      # 0x85c3
leaq -0x38(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2508
leaq -0x38(%rbp), %rdi
callq 0x20b0
leaq -0x11(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
jmp 0x635a
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x20b0
jmp 0x636a
jmp 0x6367
jmp 0x6367
jmp 0x6367
movq %rax, %rbx
leaq -0x11(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
subq $0x70, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x11(%rbp), %rdi
callq 0x244c
addq $0x140, %r14            # imm = 0x140
movq %r14, %rdi
movq %rbx, %rsi
callq 0x20e0
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
callq 0x2190
leaq -0x78(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2ab9
movl %eax, %ebx
movq %r14, %rdi
callq 0x20b0
testb %bl, %bl
je 0x63f8
leaq 0x220a(%rip), %rsi      # 0x85e2
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x24bc
leaq -0x58(%rbp), %rdi
jmp 0x641d
leaq 0x2204(%rip), %rsi      # 0x8603
leaq -0x38(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2508
leaq -0x38(%rbp), %rdi
callq 0x20b0
leaq -0x11(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
jmp 0x6446
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x20b0
jmp 0x6456
jmp 0x6453
jmp 0x6453
jmp 0x6453
movq %rax, %rbx
leaq -0x11(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
subq $0x70, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x11(%rbp), %rdi
callq 0x244c
addq $0x160, %r14            # imm = 0x160
movq %r14, %rdi
movq %rbx, %rsi
callq 0x20e0
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
callq 0x2190
leaq -0x78(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2ab9
movl %eax, %ebx
movq %r14, %rdi
callq 0x20b0
testb %bl, %bl
je 0x64e4
leaq 0x2164(%rip), %rsi      # 0x8628
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x24bc
leaq -0x58(%rbp), %rdi
jmp 0x6509
leaq 0x2155(%rip), %rsi      # 0x8640
leaq -0x38(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2508
leaq -0x38(%rbp), %rdi
callq 0x20b0
leaq -0x11(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
jmp 0x6532
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x20b0
jmp 0x6542
jmp 0x653f
jmp 0x653f
jmp 0x653f
movq %rax, %rbx
leaq -0x11(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
subq $0x70, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x11(%rbp), %rdi
callq 0x244c
addq $0x180, %r14            # imm = 0x180
movq %r14, %rdi
movq %rbx, %rsi
callq 0x20e0
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
callq 0x2190
leaq -0x78(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2ab9
movl %eax, %ebx
movq %r14, %rdi
callq 0x20b0
testb %bl, %bl
je 0x65d0
leaq 0x20ac(%rip), %rsi      # 0x865c
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x24bc
leaq -0x58(%rbp), %rdi
jmp 0x65f5
leaq 0x209e(%rip), %rsi      # 0x8675
leaq -0x38(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2508
leaq -0x38(%rbp), %rdi
callq 0x20b0
leaq -0x11(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
jmp 0x661e
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x20b0
jmp 0x662e
jmp 0x662b
jmp 0x662b
jmp 0x662b
movq %rax, %rbx
leaq -0x11(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
subq $0x70, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x11(%rbp), %rdi
callq 0x244c
addq $0x1a0, %r14            # imm = 0x1A0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x20e0
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
callq 0x2190
leaq -0x78(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2ab9
movl %eax, %ebx
movq %r14, %rdi
callq 0x20b0
testb %bl, %bl
je 0x66bc
leaq 0x1ff6(%rip), %rsi      # 0x8692
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x24bc
leaq -0x58(%rbp), %rdi
jmp 0x66e1
leaq 0x1fe9(%rip), %rsi      # 0x86ac
leaq -0x38(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2508
leaq -0x38(%rbp), %rdi
callq 0x20b0
leaq -0x11(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
jmp 0x670a
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x20b0
jmp 0x671a
jmp 0x6717
jmp 0x6717
jmp 0x6717
movq %rax, %rbx
leaq -0x11(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
subq $0x70, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x11(%rbp), %rdi
callq 0x244c
addq $0x1c0, %r14            # imm = 0x1C0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x20e0
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
callq 0x2190
leaq -0x78(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2ab9
movl %eax, %ebx
movq %r14, %rdi
callq 0x20b0
testb %bl, %bl
je 0x67a8
leaq 0x1f42(%rip), %rsi      # 0x86ca
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x24bc
leaq -0x58(%rbp), %rdi
jmp 0x67cd
leaq 0x1f33(%rip), %rsi      # 0x86e2
leaq -0x38(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2b2c
leaq -0x11(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2508
leaq -0x38(%rbp), %rdi
callq 0x20b0
leaq -0x11(%rbp), %rdi
callq 0x2452
movl %ebx, %eax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
jmp 0x67f6
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x20b0
jmp 0x6806
jmp 0x6803
jmp 0x6803
jmp 0x6803
movq %rax, %rbx
leaq -0x11(%rbp), %rdi
callq 0x2452
movq %rbx, %rdi
callq 0x21e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
callq 0x7be8
movl %eax, %r15d
movq %rbx, %rsi
callq 0x7be8
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %r15d
jne 0x7c50
movslq %r15d, %rcx
testl %r15d, %r15d
cmovlel %eax, %r15d
cmpq %rax, %r15
je 0x7c4a
movb (%r14,%rax), %dl
leaq 0x1(%rax), %rsi
cmpb (%rbx,%rax), %dl
movq %rsi, %rax
je 0x7c31
xorl %eax, %eax
jmp 0x7c50
cmpq %rcx, %rax
setge %al
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
movb (%rsi), %cl
testb %cl, %cl
je 0x7c77
xorl %edi, %edi
cmpb %dl, %cl
sete %dil
addl %edi, %eax
incq %rsi
jmp 0x7c62
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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
callq 0x7c5c
leal 0x1(%rax), %esi
movq %rbx, %rdi
callq 0x7c7a
movq %r15, %rsi
callq 0x7be8
xorl %ecx, %ecx
testl %eax, %eax
cmovlel %ecx, %eax
cmpq %rcx, %rax
je 0x7d15
leaq 0x1(%rcx), %rdx
cmpb %r14b, (%r15,%rcx)
movq %rdx, %rcx
je 0x7cf8
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x7bbc
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0xa6f9
movzwl %di, %edi
jmp 0xab81
cmpw $0x9fff, %di            # imm = 0x9FFF
jbe 0xa707
cmpw $0xfdff, %di            # imm = 0xFDFF
ja 0xa70f
movzwl %di, %edi
jmp 0xc2d3
cmpw $0xfe9f, %di            # imm = 0xFE9F
ja 0xa724
addl $0x200, %edi            # imm = 0x200
movzwl %di, %edi
jmp 0xecc9
cmpw $0xfeff, %di            # imm = 0xFEFF
jae 0xa72e
xorl %eax, %eax
retq
cmpw $0xff7f, %di            # imm = 0xFF7F
ja 0xa73d
movzwl %di, %edi
jmp 0xb8a6
cmpw $-0x1, %di
jne 0xa707
jmp 0xb272
// File: /workspace/github_cpp_makefile_star2_O2/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 0xa77d
movzwl %di, %edi
movzbl %sil, %esi
jmp 0xab92
cmpw $0x9fff, %di            # imm = 0x9FFF
jbe 0xa78b
cmpw $0xfdff, %di            # imm = 0xFDFF
ja 0xa797
movzwl %di, %edi
movzbl %sil, %esi
jmp 0xc2ed
cmpw $0xfe9f, %di            # imm = 0xFE9F
ja 0xa7b0
addl $0x200, %edi            # imm = 0x200
movzwl %di, %edi
movzbl %sil, %esi
jmp 0xecd6
cmpw $0xfeff, %di            # imm = 0xFEFF
jae 0xa7b8
retq
cmpw $0xff7f, %di            # imm = 0xFF7F
ja 0xa7cb
movzwl %di, %edi
movzbl %sil, %esi
jmp 0xb9bf
cmpw $-0x1, %di
jne 0xa78b
movzbl %sil, %edi
jmp 0xb280
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0xb8c7(%rip), %eax      # 0x164dc
addl $-0x2, %eax
movw %ax, 0xb8bd(%rip)       # 0x164dc
movzwl %ax, %edi
movl %ebx, %esi
callq 0xa748
leaq 0x7(%rsp), %rsi
movb %bl, (%rsi)
leaq 0xb8c1(%rip), %r14      # 0x164f8
movq %r14, %rdi
callq 0xb3fe
movb %bh, 0x6(%rsp)
leaq 0x6(%rsp), %rsi
movq %r14, %rdi
callq 0xb3fe
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0xb840(%rip), %edi      # 0x164dc
callq 0xa6ec
incw 0xb834(%rip)            # 0x164dc
decq 0xb851(%rip)            # 0x16500
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O2/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
pushq %rax
callq 0xb6e8
callq 0xacd2
callq 0xec4c
leaq 0xaebe(%rip), %r14      # 0x164e8
pushq $0x1
popq %rbx
cmpb $0x1, (%r14)
jne 0xb63c
movl %ebx, %edi
callq 0xb648
jmp 0xb62d
callq 0xad0d
callq 0xef3b
jmp 0xb62d
// File: /workspace/github_cpp_makefile_star2_O2/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
cmpl $0xa0, %r14d
je 0xb6d6
leal (%rbx,%r14), %edi
andl %ebp, %edi
callq 0xa6ec
leal 0xfe00(%r14), %edi
andl %ebp, %edi
movzbl %al, %esi
callq 0xa76c
incl %r14d
jmp 0xb6ac
leaq 0xadfb(%rip), %rax      # 0x164d8
andl $0x0, (%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0xae2a(%rip), %rbx      # 0x16528
movq %rbx, %rdi
movq %r14, %rsi
callq 0xbb80
leaq -0xb4(%rip), %rcx       # 0xb65c
movq %rcx, (%rax)
leaq -0xb4(%rip), %rcx       # 0xb666
movq %rcx, 0x8(%rax)
movw $0xff42, (%r14)         # imm = 0xFF42
leaq 0x6(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xbb80
leaq 0x495(%rip), %rcx       # 0xbbd0
movq %rcx, (%rax)
leaq 0x496(%rip), %rcx       # 0xbbdb
movq %rcx, 0x8(%rax)
movw $0xff40, (%r14)         # imm = 0xFF40
leaq 0x6(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xbb80
leaq -0xe0(%rip), %rcx       # 0xb686
movq %rcx, (%rax)
leaq -0xe0(%rip), %rcx       # 0xb690
movq %rcx, 0x8(%rax)
movw $0xff41, (%r14)         # imm = 0xFF41
leaq 0x6(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xbb80
leaq -0x120(%rip), %rcx      # 0xb671
movq %rcx, (%rax)
leaq -0x120(%rip), %rcx      # 0xb67b
movq %rcx, 0x8(%rax)
movw $0xff44, (%r14)         # imm = 0xFF44
leaq 0x6(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xbb80
leaq 0x3506(%rip), %rcx      # 0xecc2
movq %rcx, (%rax)
leaq 0x35a(%rip), %rcx       # 0xbb20
movq %rcx, 0x8(%rax)
movw $0xff46, (%r14)         # imm = 0xFF46
leaq 0x6(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xbb80
leaq -0x102(%rip), %rcx      # 0xb6e5
movq %rcx, (%rax)
leaq -0x156(%rip), %rcx      # 0xb69b
movq %rcx, 0x8(%rax)
movw $0xff45, (%r14)         # imm = 0xFF45
leaq 0x6(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xbb80
leaq 0x310(%rip), %rcx       # 0xbb22
movq %rcx, (%rax)
leaq 0x310(%rip), %rcx       # 0xbb2c
movq %rcx, 0x8(%rax)
movw $0xff47, (%r14)         # imm = 0xFF47
leaq 0x6(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xbb80
leaq 0x2fb(%rip), %rcx       # 0xbb38
movq %rcx, (%rax)
leaq 0x2fb(%rip), %rcx       # 0xbb42
movq %rcx, 0x8(%rax)
movw $0xff48, (%r14)         # imm = 0xFF48
leaq 0x6(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xbb80
leaq 0x2e6(%rip), %rcx       # 0xbb4e
movq %rcx, (%rax)
leaq 0x2e6(%rip), %rcx       # 0xbb58
movq %rcx, 0x8(%rax)
movw $0xff49, (%r14)         # imm = 0xFF49
leaq 0x6(%rsp), %rsi
movq %rbx, %rdi
callq 0xbb80
leaq 0x2d4(%rip), %rcx       # 0xbb64
movq %rcx, (%rax)
leaq 0x2d4(%rip), %rcx       # 0xbb6e
movq %rcx, 0x8(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
cmpb $0x0, 0xa3f7(%rip)      # 0x16571
jne 0xc1b9
movq 0x9e4d(%rip), %rdi      # 0x15fd0
leaq 0x4051(%rip), %rsi      # 0x101db
callq 0x3260
movq %rax, %rdi
callq 0x3130
leaq 0xa11a(%rip), %rax      # 0x162b8
movq (%rax), %rsi
leaq 0xa3d8(%rip), %rdi      # 0x16580
movl $0x8000, %edx           # imm = 0x8000
callq 0x3200
movb $0x1, 0xa3b8(%rip)      # 0x16571
cmpw $0x3fff, %bx            # imm = 0x3FFF
ja 0xc1cf
leaq 0xa0f1(%rip), %rcx      # 0x162b8
movzwl %bx, %eax
addq (%rcx), %rax
jmp 0xc1f1
movslq 0x8(%r14), %rax
leaq 0xa0de(%rip), %rcx      # 0x162b8
movq (%rcx), %rcx
shlq $0xe, %rax
movzwl %bx, %edx
addq %rax, %rdx
leaq (%rcx,%rdx), %rax
addq $-0x4000, %rax          # imm = 0xC000
movb (%rax), %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movq 0x9dc1(%rip), %rdi      # 0x15fd0
leaq 0x3fdc(%rip), %rsi      # 0x101f2
callq 0x3260
movq %rax, %rdi
callq 0x3130
cmpb $0x0, 0xa347(%rip)      # 0x16571
jne 0xc24e
leaq 0xa085(%rip), %rax      # 0x162b8
movq (%rax), %rsi
leaq 0xa343(%rip), %rdi      # 0x16580
movl $0x8000, %edx           # imm = 0x8000
callq 0x3200
movb $0x1, 0xa323(%rip)      # 0x16571
cmpw $0x6000, %r14w          # imm = 0x6000
setae %al
andl $0x6000, %r14d          # imm = 0x6000
cmpw $0x2000, %r14w          # imm = 0x2000
setne %cl
orb %al, %cl
jne 0xc296
andb $0x1f, %bpl
movzbl %bpl, %eax
cmpb $0x2, %al
pushq $0x1
popq %rcx
cmovael %eax, %ecx
movzbl %cl, %eax
movl %eax, 0x8(%rbx)
shll $0xe, %eax
leaq 0xa035(%rip), %rcx      # 0x162c0
movl $0xffffc000, %edx       # imm = 0xFFFFC000
addl (%rcx), %edx
cmpl %edx, %eax
jg 0xc29b
popq %rbx
popq %r14
popq %rbp
retq
movq 0x9d2e(%rip), %rdi      # 0x15fd0
leaq 0x3f37(%rip), %rsi      # 0x101e0
callq 0x3260
movq %rax, %rdi
callq 0x3130
pushq $-0x1
popq %rdi
callq 0x32d0
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %rbx
movl %esi, %ebx
movl %edi, %eax
leaq 0x1a297(%rip), %rcx     # 0x26590
movb %bl, (%rax,%rcx)
cmpl $0xff0f, %edi           # imm = 0xFF0F
je 0xc341
cmpl $0xffff, %edi           # imm = 0xFFFF
jne 0xc368
movq 0x9cbd(%rip), %rdi      # 0x15fd0
leaq 0x3f2b(%rip), %rsi      # 0x10245
callq 0x3260
movzbl %bl, %ebx
movq %rax, %rdi
movl %ebx, %esi
callq 0xaba6
movq %rax, %rdi
callq 0x3130
pushq $0x1
popq %rdx
movl %ebx, %edi
xorl %esi, %esi
popq %rbx
jmp 0xb0ef
movq 0x9c88(%rip), %rdi      # 0x15fd0
leaq 0x3f11(%rip), %rsi      # 0x10260
callq 0x3260
movzbl %bl, %esi
movq %rax, %rdi
callq 0xaba6
movq %rax, %rdi
popq %rbx
jmp 0x3130
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0xc6ff
leaq 0x9e24(%rip), %rax      # 0x164d2
movl %edi, %ecx
leaq 0x3bc5(%rip), %rdx      # 0x1027c
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
leaq 0x9e0d(%rip), %rax      # 0x164d4
jmp 0xc6e1
leaq 0x9e06(%rip), %rax      # 0x164d6
jmp 0xc6e1
leaq 0x9dfb(%rip), %rax      # 0x164d4
retq
leaq 0x9def(%rip), %rax      # 0x164d0
incq %rax
retq
leaq 0x9dea(%rip), %rax      # 0x164d6
retq
leaq 0x9de2(%rip), %rax      # 0x164d6
movzwl (%rax), %eax
addq 0x98ba(%rip), %rax      # 0x15fb8
retq
pushq %rax
movq 0x98c9(%rip), %rdi      # 0x15fd0
leaq 0x3caa(%rip), %rsi      # 0x103b8
callq 0x3260
movq %rax, %rdi
callq 0x3130
pushq $-0x1
popq %rdi
callq 0x32d0
// File: /workspace/github_cpp_makefile_star2_O2/rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp
// Function: dsemu::cpu::getPointer(dsemu::cpu::ParamType, bool)
byte *getPointer(ParamType pt, bool hlAsRam = true) {
    switch(pt) {
        case A: return &regAF.hi;
        case B: return &regBC.hi; 
        case C: return &regBC.lo; 
        case D: return &regDE.hi; 
        case E: return &regDE.lo; 
        case H: return &regHL.hi; 
        case L: return &regHL.lo;
        case AF: return &regAF.lo;
        case BC: return &regBC.lo;
        case DE: return &regDE.lo;
        case SP: return &regSP.lo;
        case N: {
            //byte t = memory::ram[(regPC + 1)];
            //unsigned int i = 
            return &memory::ram[(regPC + 1)]; 
        } case HL: {
            return hlAsRam ? &memory::ram[getReg16Value(regHL)] : &regHL.lo;
        }
        default:
            break;
    }

    cout << "ERROR BAD POINTER" << endl;
    exit(-1);

    return nullptr;
}

// Assembly:
cmpl $0xe, %edi
ja 0xc7b1
leaq 0x9d9d(%rip), %rax      # 0x164d0
movl %edi, %ecx
leaq 0x3b60(%rip), %rdx      # 0x1029c
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
leaq 0x9d86(%rip), %rax      # 0x164d2
retq
leaq 0x9d80(%rip), %rax      # 0x164d4
retq
leaq 0x9d80(%rip), %rax      # 0x164dc
retq
leaq 0x9d7a(%rip), %rax      # 0x164de
movzwl (%rax), %eax
leaq 0x19e22(%rip), %rcx     # 0x26590
addq %rcx, %rax
incq %rax
retq
testb %sil, %sil
je 0xc78c
leaq 0x9d55(%rip), %rax      # 0x164d6
movzwl (%rax), %eax
addq 0x982d(%rip), %rax      # 0x15fb8
retq
leaq 0x9d43(%rip), %rax      # 0x164d6
retq
leaq 0x9d3b(%rip), %rax      # 0x164d6
jmp 0xc7ad
leaq 0x9d30(%rip), %rax      # 0x164d4
jmp 0xc7ad
leaq 0x9d25(%rip), %rax      # 0x164d2
incq %rax
retq
pushq %rax
movq 0x9817(%rip), %rdi      # 0x15fd0
leaq 0x3c05(%rip), %rsi      # 0x103c5
callq 0x3260
movq %rax, %rdi
callq 0x3130
pushq $-0x1
popq %rdi
callq 0x32d0
// File: /workspace/github_cpp_makefile_star2_O2/rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp
// Function: dsemu::cpu::handleLDH(dsemu::cpu::OpCode const&)
int handleLDH(const OpCode &op) {
    bool srcIsA = op.params[1] == A;

    if (srcIsA) {
        byte *p = getPointer(op.params[0]);
        //cout << "READING B: " << Int64((uint64_t)p) << endl;
        //cout << "B: " << Byte(*p) << endl;
        
        bus::write(*p | 0xFF00, regAF.hi);
    } else {
        byte *p = getPointer(op.params[1]);
        regAF.hi = bus::read(*p | 0xFF00);
    }
    return 0;
}

// Assembly:
pushq %rax
movq %rdi, %rax
movl 0x20(%rdi), %edi
testl %edi, %edi
je 0xc807
pushq $0x1
popq %rsi
callq 0xc723
movzbl (%rax), %eax
orl $0xff00, %eax           # imm = 0xFF00
movzwl %ax, %edi
callq 0xa6ec
leaq 0x9cce(%rip), %rcx      # 0x164d0
movb %al, 0x1(%rcx)
jmp 0xc82d
movl 0x1c(%rax), %edi
pushq $0x1
popq %rsi
callq 0xc723
movzbl (%rax), %eax
orl $0xff00, %eax           # imm = 0xFF00
leaq 0x9caf(%rip), %rcx      # 0x164d0
movzbl 0x1(%rcx), %esi
movzwl %ax, %edi
callq 0xa76c
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O2/rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp
// Function: dsemu::cpu::getAddrValue(dsemu::cpu::ParamType, short)
ushort getAddrValue(ParamType op, short srcValue) {
    switch(op) {
        case HL: return getReg16Value(regHL);
        case AF: return getReg16Value(regAF);
        case BC: return getReg16Value(regBC);
        case DE: return getReg16Value(regDE);
        case NN: return srcValue;
        case N: return 0xFF00 | srcValue;
        default: 
            cout << "ERROR BAD ADDR VAL: " << endl;
            exit(-1);
            return 0;
    }
}

// Assembly:
addl $-0x7, %edi
cmpl $0x7, %edi
ja 0xc879
leaq 0x3a98(%rip), %rax      # 0x102d8
movslq (%rax,%rdi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x9c82(%rip), %rax      # 0x164d2
jmp 0xc873
orl $0xff00, %esi           # imm = 0xFF00
jmp 0xc876
leaq 0x9c6f(%rip), %rax      # 0x164d0
jmp 0xc873
leaq 0x9c6a(%rip), %rax      # 0x164d4
jmp 0xc873
leaq 0x9c63(%rip), %rax      # 0x164d6
movzwl (%rax), %esi
movl %esi, %eax
retq
pushq %rax
movq 0x974f(%rip), %rdi      # 0x15fd0
leaq 0x3b4f(%rip), %rsi      # 0x103d7
callq 0x3260
movq %rax, %rdi
callq 0x3130
pushq $-0x1
popq %rdi
callq 0x32d0