LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/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 %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x19(%rbp), %rdi
callq 0x245c
leaq 0x40(%r14), %rdi
movq %rbx, %rsi
callq 0x20c0
leaq -0x70(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x40(%r14), %rsi
movq 0x48(%r14), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x2f28
movq -0x78(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x7e78
testq %rdx, %rdx
je 0x7e7c
movq (%rbx), %rsi
movq -0x80(%rbp), %rdi
callq 0x2150
testl %eax, %eax
sete %bl
jmp 0x7e7e
xorl %ebx, %ebx
jmp 0x7e7e
movb $0x1, %bl
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0x7e93
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x2140
testb %bl, %bl
je 0x7ec9
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x4588(%rip), %rsi      # 0xc42e
leaq 0x4596(%rip), %rdx      # 0xc443
leaq -0x60(%rbp), %rdi
callq 0x3288
leaq -0x19(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x24f2
movq -0x60(%rbp), %rdi
jmp 0x7ef9
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x456c(%rip), %rsi      # 0xc444
leaq 0x457e(%rip), %rdx      # 0xc45d
leaq -0x40(%rbp), %rdi
callq 0x3288
leaq -0x19(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x255e
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x7f09
movq (%r14), %rsi
incq %rsi
callq 0x2140
leaq -0x19(%rbp), %rdi
callq 0x2462
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 0x7f54
movq -0x30(%rbp), %rsi
jmp 0x7f41
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x7f54
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x7f54
jmp 0x7f51
jmp 0x7f51
jmp 0x7f51
movq %rax, %rbx
leaq -0x19(%rbp), %rdi
callq 0x2462
movq %rbx, %rdi
callq 0x21e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x19(%rbp), %rdi
callq 0x245c
leaq 0x60(%r14), %rdi
movq %rbx, %rsi
callq 0x20c0
leaq -0x70(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x60(%r14), %rsi
movq 0x68(%r14), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x2f28
movq -0x78(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x7fcc
testq %rdx, %rdx
je 0x7fd0
movq (%rbx), %rsi
movq -0x80(%rbp), %rdi
callq 0x2150
testl %eax, %eax
sete %bl
jmp 0x7fd2
xorl %ebx, %ebx
jmp 0x7fd2
movb $0x1, %bl
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0x7fe7
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x2140
testb %bl, %bl
je 0x801d
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x4464(%rip), %rsi      # 0xc45e
leaq 0x447a(%rip), %rdx      # 0xc47b
leaq -0x60(%rbp), %rdi
callq 0x3288
leaq -0x19(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x24f2
movq -0x60(%rbp), %rdi
jmp 0x804d
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x4450(%rip), %rsi      # 0xc47c
leaq 0x446a(%rip), %rdx      # 0xc49d
leaq -0x40(%rbp), %rdi
callq 0x3288
leaq -0x19(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x255e
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x805d
movq (%r14), %rsi
incq %rsi
callq 0x2140
leaq -0x19(%rbp), %rdi
callq 0x2462
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 0x80a8
movq -0x30(%rbp), %rsi
jmp 0x8095
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x80a8
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x80a8
jmp 0x80a5
jmp 0x80a5
jmp 0x80a5
movq %rax, %rbx
leaq -0x19(%rbp), %rdi
callq 0x2462
movq %rbx, %rdi
callq 0x21e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x245c
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 0x2f28
movq -0x78(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x8129
testq %rdx, %rdx
je 0x812d
movq (%rbx), %rsi
movq -0x80(%rbp), %rdi
callq 0x2150
testl %eax, %eax
sete %bl
jmp 0x812f
xorl %ebx, %ebx
jmp 0x812f
movb $0x1, %bl
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0x8144
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x2140
testb %bl, %bl
je 0x817a
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x4347(%rip), %rsi      # 0xc49e
leaq 0x4358(%rip), %rdx      # 0xc4b6
leaq -0x60(%rbp), %rdi
callq 0x3288
leaq -0x19(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x24f2
movq -0x60(%rbp), %rdi
jmp 0x81aa
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x432e(%rip), %rsi      # 0xc4b7
leaq 0x4343(%rip), %rdx      # 0xc4d3
leaq -0x40(%rbp), %rdi
callq 0x3288
leaq -0x19(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x255e
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x81ba
movq (%r14), %rsi
incq %rsi
callq 0x2140
leaq -0x19(%rbp), %rdi
callq 0x2462
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 0x8205
movq -0x30(%rbp), %rsi
jmp 0x81f2
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x8205
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x8205
jmp 0x8202
jmp 0x8202
jmp 0x8202
movq %rax, %rbx
leaq -0x19(%rbp), %rdi
callq 0x2462
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x245c
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 0x2f28
movq -0x78(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x8285
testq %rdx, %rdx
je 0x8289
movq (%rbx), %rsi
movq -0x80(%rbp), %rdi
callq 0x2150
testl %eax, %eax
sete %bl
jmp 0x828b
xorl %ebx, %ebx
jmp 0x828b
movb $0x1, %bl
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0x82a0
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x2140
testb %bl, %bl
je 0x82d6
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x4221(%rip), %rsi      # 0xc4d4
leaq 0x4231(%rip), %rdx      # 0xc4eb
leaq -0x60(%rbp), %rdi
callq 0x3288
leaq -0x19(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x24f2
movq -0x60(%rbp), %rdi
jmp 0x8306
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x4207(%rip), %rsi      # 0xc4ec
leaq 0x421b(%rip), %rdx      # 0xc507
leaq -0x40(%rbp), %rdi
callq 0x3288
leaq -0x19(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x255e
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x8316
movq (%r14), %rsi
incq %rsi
callq 0x2140
leaq -0x19(%rbp), %rdi
callq 0x2462
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 0x8361
movq -0x30(%rbp), %rsi
jmp 0x834e
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x8361
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x8361
jmp 0x835e
jmp 0x835e
jmp 0x835e
movq %rax, %rbx
leaq -0x19(%rbp), %rdi
callq 0x2462
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x245c
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 0x2f28
movq -0x78(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x83e1
testq %rdx, %rdx
je 0x83e5
movq (%rbx), %rsi
movq -0x80(%rbp), %rdi
callq 0x2150
testl %eax, %eax
sete %bl
jmp 0x83e7
xorl %ebx, %ebx
jmp 0x83e7
movb $0x1, %bl
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0x83fc
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x2140
testb %bl, %bl
je 0x8432
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x40f9(%rip), %rsi      # 0xc508
leaq 0x4109(%rip), %rdx      # 0xc51f
leaq -0x60(%rbp), %rdi
callq 0x3288
leaq -0x19(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x24f2
movq -0x60(%rbp), %rdi
jmp 0x8462
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x40df(%rip), %rsi      # 0xc520
leaq 0x40f3(%rip), %rdx      # 0xc53b
leaq -0x40(%rbp), %rdi
callq 0x3288
leaq -0x19(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x255e
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x8472
movq (%r14), %rsi
incq %rsi
callq 0x2140
leaq -0x19(%rbp), %rdi
callq 0x2462
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 0x84bd
movq -0x30(%rbp), %rsi
jmp 0x84aa
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x84bd
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x84bd
jmp 0x84ba
jmp 0x84ba
jmp 0x84ba
movq %rax, %rbx
leaq -0x19(%rbp), %rdi
callq 0x2462
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x245c
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 0x2f28
movq -0x78(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x853d
testq %rdx, %rdx
je 0x8541
movq (%rbx), %rsi
movq -0x80(%rbp), %rdi
callq 0x2150
testl %eax, %eax
sete %bl
jmp 0x8543
xorl %ebx, %ebx
jmp 0x8543
movb $0x1, %bl
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0x8558
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x2140
testb %bl, %bl
je 0x858e
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3fd1(%rip), %rsi      # 0xc53c
leaq 0x3fe1(%rip), %rdx      # 0xc553
leaq -0x60(%rbp), %rdi
callq 0x3288
leaq -0x19(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x24f2
movq -0x60(%rbp), %rdi
jmp 0x85be
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3fb7(%rip), %rsi      # 0xc554
leaq 0x3fcb(%rip), %rdx      # 0xc56f
leaq -0x40(%rbp), %rdi
callq 0x3288
leaq -0x19(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x255e
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x85ce
movq (%r14), %rsi
incq %rsi
callq 0x2140
leaq -0x19(%rbp), %rdi
callq 0x2462
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 0x8619
movq -0x30(%rbp), %rsi
jmp 0x8606
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x8619
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x8619
jmp 0x8616
jmp 0x8616
jmp 0x8616
movq %rax, %rbx
leaq -0x19(%rbp), %rdi
callq 0x2462
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x245c
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 0x2f28
movq -0x78(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x8699
testq %rdx, %rdx
je 0x869d
movq (%rbx), %rsi
movq -0x80(%rbp), %rdi
callq 0x2150
testl %eax, %eax
sete %bl
jmp 0x869f
xorl %ebx, %ebx
jmp 0x869f
movb $0x1, %bl
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0x86b4
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x2140
testb %bl, %bl
je 0x86ea
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3ea9(%rip), %rsi      # 0xc570
leaq 0x3ebb(%rip), %rdx      # 0xc589
leaq -0x60(%rbp), %rdi
callq 0x3288
leaq -0x19(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x24f2
movq -0x60(%rbp), %rdi
jmp 0x871a
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3e91(%rip), %rsi      # 0xc58a
leaq 0x3ea7(%rip), %rdx      # 0xc5a7
leaq -0x40(%rbp), %rdi
callq 0x3288
leaq -0x19(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x255e
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x872a
movq (%r14), %rsi
incq %rsi
callq 0x2140
leaq -0x19(%rbp), %rdi
callq 0x2462
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 0x8775
movq -0x30(%rbp), %rsi
jmp 0x8762
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x8775
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x8775
jmp 0x8772
jmp 0x8772
jmp 0x8772
movq %rax, %rbx
leaq -0x19(%rbp), %rdi
callq 0x2462
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x245c
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 0x2f28
movq -0x78(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x87f5
testq %rdx, %rdx
je 0x87f9
movq (%rbx), %rsi
movq -0x80(%rbp), %rdi
callq 0x2150
testl %eax, %eax
sete %bl
jmp 0x87fb
xorl %ebx, %ebx
jmp 0x87fb
movb $0x1, %bl
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0x8810
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x2140
testb %bl, %bl
je 0x8846
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3d85(%rip), %rsi      # 0xc5a8
leaq 0x3d98(%rip), %rdx      # 0xc5c2
leaq -0x60(%rbp), %rdi
callq 0x3288
leaq -0x19(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x24f2
movq -0x60(%rbp), %rdi
jmp 0x8876
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3d6e(%rip), %rsi      # 0xc5c3
leaq 0x3d85(%rip), %rdx      # 0xc5e1
leaq -0x40(%rbp), %rdi
callq 0x3288
leaq -0x19(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x255e
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x8886
movq (%r14), %rsi
incq %rsi
callq 0x2140
leaq -0x19(%rbp), %rdi
callq 0x2462
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 0x88d1
movq -0x30(%rbp), %rsi
jmp 0x88be
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x88d1
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x88d1
jmp 0x88ce
jmp 0x88ce
jmp 0x88ce
movq %rax, %rbx
leaq -0x19(%rbp), %rdi
callq 0x2462
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x245c
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 0x2f28
movq -0x78(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x8951
testq %rdx, %rdx
je 0x8955
movq (%rbx), %rsi
movq -0x80(%rbp), %rdi
callq 0x2150
testl %eax, %eax
sete %bl
jmp 0x8957
xorl %ebx, %ebx
jmp 0x8957
movb $0x1, %bl
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0x896c
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x2140
testb %bl, %bl
je 0x89a2
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3c63(%rip), %rsi      # 0xc5e2
leaq 0x3c7c(%rip), %rdx      # 0xc602
leaq -0x60(%rbp), %rdi
callq 0x3288
leaq -0x19(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x24f2
movq -0x60(%rbp), %rdi
jmp 0x89d2
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3c52(%rip), %rsi      # 0xc603
leaq 0x3c6f(%rip), %rdx      # 0xc627
leaq -0x40(%rbp), %rdi
callq 0x3288
leaq -0x19(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x255e
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x89e2
movq (%r14), %rsi
incq %rsi
callq 0x2140
leaq -0x19(%rbp), %rdi
callq 0x2462
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 0x8a2d
movq -0x30(%rbp), %rsi
jmp 0x8a1a
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x8a2d
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x8a2d
jmp 0x8a2a
jmp 0x8a2a
jmp 0x8a2a
movq %rax, %rbx
leaq -0x19(%rbp), %rdi
callq 0x2462
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x245c
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 0x2f28
movq -0x78(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x8aad
testq %rdx, %rdx
je 0x8ab1
movq (%rbx), %rsi
movq -0x80(%rbp), %rdi
callq 0x2150
testl %eax, %eax
sete %bl
jmp 0x8ab3
xorl %ebx, %ebx
jmp 0x8ab3
movb $0x1, %bl
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0x8ac8
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x2140
testb %bl, %bl
je 0x8afe
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3b4d(%rip), %rsi      # 0xc628
leaq 0x3b5d(%rip), %rdx      # 0xc63f
leaq -0x60(%rbp), %rdi
callq 0x3288
leaq -0x19(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x24f2
movq -0x60(%rbp), %rdi
jmp 0x8b2e
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3b33(%rip), %rsi      # 0xc640
leaq 0x3b47(%rip), %rdx      # 0xc65b
leaq -0x40(%rbp), %rdi
callq 0x3288
leaq -0x19(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x255e
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x8b3e
movq (%r14), %rsi
incq %rsi
callq 0x2140
leaq -0x19(%rbp), %rdi
callq 0x2462
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 0x8b89
movq -0x30(%rbp), %rsi
jmp 0x8b76
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x8b89
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x8b89
jmp 0x8b86
jmp 0x8b86
jmp 0x8b86
movq %rax, %rbx
leaq -0x19(%rbp), %rdi
callq 0x2462
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x245c
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 0x2f28
movq -0x78(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x8c09
testq %rdx, %rdx
je 0x8c0d
movq (%rbx), %rsi
movq -0x80(%rbp), %rdi
callq 0x2150
testl %eax, %eax
sete %bl
jmp 0x8c0f
xorl %ebx, %ebx
jmp 0x8c0f
movb $0x1, %bl
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0x8c24
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x2140
testb %bl, %bl
je 0x8c5a
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3a25(%rip), %rsi      # 0xc65c
leaq 0x3a36(%rip), %rdx      # 0xc674
leaq -0x60(%rbp), %rdi
callq 0x3288
leaq -0x19(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x24f2
movq -0x60(%rbp), %rdi
jmp 0x8c8a
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3a0c(%rip), %rsi      # 0xc675
leaq 0x3a21(%rip), %rdx      # 0xc691
leaq -0x40(%rbp), %rdi
callq 0x3288
leaq -0x19(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x255e
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x8c9a
movq (%r14), %rsi
incq %rsi
callq 0x2140
leaq -0x19(%rbp), %rdi
callq 0x2462
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 0x8ce5
movq -0x30(%rbp), %rsi
jmp 0x8cd2
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x8ce5
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x8ce5
jmp 0x8ce2
jmp 0x8ce2
jmp 0x8ce2
movq %rax, %rbx
leaq -0x19(%rbp), %rdi
callq 0x2462
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x245c
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 0x2f28
movq -0x78(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x8d65
testq %rdx, %rdx
je 0x8d69
movq (%rbx), %rsi
movq -0x80(%rbp), %rdi
callq 0x2150
testl %eax, %eax
sete %bl
jmp 0x8d6b
xorl %ebx, %ebx
jmp 0x8d6b
movb $0x1, %bl
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0x8d80
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x2140
testb %bl, %bl
je 0x8db6
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x38ff(%rip), %rsi      # 0xc692
leaq 0x3911(%rip), %rdx      # 0xc6ab
leaq -0x60(%rbp), %rdi
callq 0x3288
leaq -0x19(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x24f2
movq -0x60(%rbp), %rdi
jmp 0x8de6
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x38e7(%rip), %rsi      # 0xc6ac
leaq 0x38fd(%rip), %rdx      # 0xc6c9
leaq -0x40(%rbp), %rdi
callq 0x3288
leaq -0x19(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x255e
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x8df6
movq (%r14), %rsi
incq %rsi
callq 0x2140
leaq -0x19(%rbp), %rdi
callq 0x2462
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 0x8e41
movq -0x30(%rbp), %rsi
jmp 0x8e2e
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x8e41
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x8e41
jmp 0x8e3e
jmp 0x8e3e
jmp 0x8e3e
movq %rax, %rbx
leaq -0x19(%rbp), %rdi
callq 0x2462
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x245c
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 0x2f28
movq -0x78(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x8ec1
testq %rdx, %rdx
je 0x8ec5
movq (%rbx), %rsi
movq -0x80(%rbp), %rdi
callq 0x2150
testl %eax, %eax
sete %bl
jmp 0x8ec7
xorl %ebx, %ebx
jmp 0x8ec7
movb $0x1, %bl
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0x8edc
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x2140
testb %bl, %bl
je 0x8f12
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x37db(%rip), %rsi      # 0xc6ca
leaq 0x37eb(%rip), %rdx      # 0xc6e1
leaq -0x60(%rbp), %rdi
callq 0x3288
leaq -0x19(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x24f2
movq -0x60(%rbp), %rdi
jmp 0x8f42
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x37c1(%rip), %rsi      # 0xc6e2
leaq 0x37d5(%rip), %rdx      # 0xc6fd
leaq -0x40(%rbp), %rdi
callq 0x3288
leaq -0x19(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x255e
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x8f52
movq (%r14), %rsi
incq %rsi
callq 0x2140
leaq -0x19(%rbp), %rdi
callq 0x2462
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 0x8f9d
movq -0x30(%rbp), %rsi
jmp 0x8f8a
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x8f9d
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x8f9d
jmp 0x8f9a
jmp 0x8f9a
jmp 0x8f9a
movq %rax, %rbx
leaq -0x19(%rbp), %rdi
callq 0x2462
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O1/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, %rdi
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
movabsq $0x100000000, %rax      # imm = 0x100000000
addq %rax, %rcx
cmpb $0x0, 0x1(%rsi,%rdi)
leaq 0x1(%rdi), %rdi
jne 0xb3fd
movq $-0x1, %rax
cmpb $0x0, 0x1(%rdx,%rax)
leaq 0x1(%rax), %rax
jne 0xb412
cmpq %rax, %rdi
jne 0xb465
testq %rdi, %rdi
sete %al
je 0xb467
movb (%rsi), %r8b
cmpb (%rdx), %r8b
jne 0xb467
sarq $0x20, %rcx
cmpl $0x2, %edi
movl $0x1, %eax
cmovgel %edi, %eax
movl $0x1, %r8d
movq %r8, %rdi
cmpq %r8, %rax
je 0xb45d
movb (%rsi,%rdi), %r9b
leaq 0x1(%rdi), %r8
cmpb (%rdx,%rdi), %r9b
je 0xb447
cmpq %rcx, %rdi
setge %al
jmp 0xb467
xorl %eax, %eax
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0xb48e
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 0xb479
popq %rbp
retq
xorl %eax, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0xb50d
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 0xb4f7
jmp 0xb50f
xorl %eax, %eax
leal 0x10(,%rax,8), %esi
movq %rbx, %rdi
callq 0xb3a4
xorl %edi, %edi
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
movabsq $0x100000000, %rcx      # imm = 0x100000000
movq %r15, %rsi
movq %rax, %rdx
addq %rcx, %rdx
cmpb $0x0, (%rsi)
leaq 0x1(%rsi), %rsi
jne 0xb53a
sarq $0x20, %rdx
cmpq %rdx, %rdi
jge 0xb55a
cmpb %r14b, (%r15,%rdi)
jne 0xb565
incq %rdi
jmp 0xb534
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rsi
callq 0x2234
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0xc4bc
movzwl %di, %eax
cmpl $0x9fff, %eax           # imm = 0x9FFF
jbe 0xb96a
cmpl $0xfdff, %eax           # imm = 0xFDFF
ja 0xb971
movl %eax, %edi
jmp 0xe4b5
cmpl $0xfe9f, %eax           # imm = 0xFE9F
ja 0xb986
addl $0x200, %edi            # imm = 0x200
movzwl %di, %edi
jmp 0x116a7
cmpl $0xfeff, %eax           # imm = 0xFEFF
jae 0xb990
xorl %eax, %eax
retq
cmpl $0xff7f, %eax           # imm = 0xFF7F
ja 0xb99e
movl %eax, %edi
jmp 0xd76b
cmpw $-0x1, %di
jne 0xb96a
jmp 0xd273
// File: /workspace/github_cpp_makefile_star2_O1/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 0xc4cd
movzwl %di, %eax
cmpl $0x9fff, %eax           # imm = 0x9FFF
jbe 0xb9ef
cmpl $0xfdff, %eax           # imm = 0xFDFF
ja 0xb9fa
movzbl %sil, %esi
movl %eax, %edi
jmp 0xe4cf
cmpl $0xfe9f, %eax           # imm = 0xFE9F
ja 0xba13
addl $0x200, %edi            # imm = 0x200
movzwl %di, %edi
movzbl %sil, %esi
jmp 0x116b4
cmpl $0xfeff, %eax           # imm = 0xFEFF
jae 0xba1b
retq
cmpl $0xff7f, %eax           # imm = 0xFF7F
ja 0xba2d
movzbl %sil, %esi
movl %eax, %edi
jmp 0xd978
cmpw $-0x1, %di
jne 0xb9ef
movzbl %sil, %edi
jmp 0xd281
// File: /workspace/github_cpp_makefile_star2_O1/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 0xc00b(%rip), %eax      # 0x184fc
addl $-0x2, %eax
movw %ax, 0xc001(%rip)       # 0x184fc
movzwl %ax, %edi
movl %ebx, %esi
callq 0xb9a9
leaq 0x7(%rsp), %rsi
movb %bl, (%rsi)
leaq 0xc005(%rip), %r14      # 0x18518
movq %r14, %rdi
callq 0xd2aa
movb %bh, 0x6(%rsp)
leaq 0x6(%rsp), %rsi
movq %r14, %rdi
callq 0xd2aa
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0xbf6e(%rip), %edi      # 0x184fc
callq 0xb94c
incw 0xbf62(%rip)            # 0x184fc
decq 0xbf7f(%rip)            # 0x18520
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0xd5ad
callq 0xc5f3
callq 0x11584
leaq 0xb02f(%rip), %r14      # 0x18508
leaq 0x8(%rsp), %rbx
cmpb $0x1, (%r14)
jne 0xd512
movq $0x0, 0x8(%rsp)
movq $0xf4240, 0x10(%rsp)    # imm = 0xF4240
movq %rbx, %rdi
movq %rbx, %rsi
callq 0x30d0
cmpl $-0x1, %eax
jne 0xd4de
callq 0x3050
cmpl $0x4, (%rax)
je 0xd4f6
jmp 0xd4de
callq 0xc62e
callq 0x1199b
jmp 0xd4de
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0xd570
leaq 0xaf59(%rip), %rax      # 0x184f8
movl $0x0, (%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0xaf85(%rip), %rbx      # 0x18548
movq %rbx, %rdi
movq %r14, %rsi
callq 0xdc82
leaq -0xb5(%rip), %rcx       # 0xd520
movq %rcx, (%rax)
leaq -0xb5(%rip), %rcx       # 0xd52a
movq %rcx, 0x8(%rax)
movw $0xff42, (%r14)         # imm = 0xFF42
leaq 0x6(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xdc82
leaq 0x6ea(%rip), %rcx       # 0xdcea
movq %rcx, (%rax)
leaq 0x6eb(%rip), %rcx       # 0xdcf5
movq %rcx, 0x8(%rax)
movw $0xff40, (%r14)         # imm = 0xFF40
leaq 0x6(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xdc82
leaq -0xe1(%rip), %rcx       # 0xd54a
movq %rcx, (%rax)
leaq -0xe1(%rip), %rcx       # 0xd554
movq %rcx, 0x8(%rax)
movw $0xff41, (%r14)         # imm = 0xFF41
leaq 0x6(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xdc82
leaq -0x121(%rip), %rcx      # 0xd535
movq %rcx, (%rax)
leaq -0x121(%rip), %rcx      # 0xd53f
movq %rcx, 0x8(%rax)
movw $0xff44, (%r14)         # imm = 0xFF44
leaq 0x6(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xdc82
leaq 0x401f(%rip), %rcx      # 0x116a0
movq %rcx, (%rax)
leaq 0x597(%rip), %rcx       # 0xdc22
movq %rcx, 0x8(%rax)
movw $0xff46, (%r14)         # imm = 0xFF46
leaq 0x6(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xdc82
leaq -0x102(%rip), %rcx      # 0xd5aa
movq %rcx, (%rax)
leaq -0x157(%rip), %rcx      # 0xd55f
movq %rcx, 0x8(%rax)
movw $0xff45, (%r14)         # imm = 0xFF45
leaq 0x6(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xdc82
leaq 0x54d(%rip), %rcx       # 0xdc24
movq %rcx, (%rax)
leaq 0x54d(%rip), %rcx       # 0xdc2e
movq %rcx, 0x8(%rax)
movw $0xff47, (%r14)         # imm = 0xFF47
leaq 0x6(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xdc82
leaq 0x538(%rip), %rcx       # 0xdc3a
movq %rcx, (%rax)
leaq 0x538(%rip), %rcx       # 0xdc44
movq %rcx, 0x8(%rax)
movw $0xff48, (%r14)         # imm = 0xFF48
leaq 0x6(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xdc82
leaq 0x523(%rip), %rcx       # 0xdc50
movq %rcx, (%rax)
leaq 0x523(%rip), %rcx       # 0xdc5a
movq %rcx, 0x8(%rax)
movw $0xff49, (%r14)         # imm = 0xFF49
leaq 0x6(%rsp), %rsi
movq %rbx, %rdi
callq 0xdc82
leaq 0x511(%rip), %rcx       # 0xdc66
movq %rcx, (%rax)
leaq 0x511(%rip), %rcx       # 0xdc70
movq %rcx, 0x8(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0xa04e(%rip), %r14      # 0x17fd0
leaq 0x51dd(%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 0x1a5ec(%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 0xe0c4
leaq 0x10(%rsp), %rdi
callq 0xba3c
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xe008
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32b0
leaq 0xa2c9(%rip), %rax      # 0x182d8
movq (%rax), %rsi
leaq 0x1a597(%rip), %rdi     # 0x285b0
movl $0x8000, %edx           # imm = 0x8000
callq 0x3230
callq 0x11da8
leaq -0xb73(%rip), %rsi      # 0xd4bc
leaq 0x8(%rsp), %rdi
callq 0xe102
xorl %ebp, %ebp
leaq 0x10(%rsp), %rbx
leaq 0x2f631(%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 0xe073
callq 0x3050
cmpl $0x4, (%rax)
je 0xe059
callq 0x121cd
cmpl (%r14), %ebp
je 0xe082
callq 0x120e4
movl (%r14), %ebp
jmp 0xe047
jmp 0xe089
movq %rax, %rbx
cmpq $0x0, 0x8(%rsp)
je 0xe0bc
callq 0x30c0
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xe0bc
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32b0
jmp 0xe0bc
movq %rax, %rbx
movq %rbx, %rdi
callq 0x3440
// File: /workspace/github_cpp_makefile_star2_O1/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, 0xa305(%rip)      # 0x18591
jne 0xe2f2
movq 0x9d3b(%rip), %r14      # 0x17fd0
leaq 0x4f3f(%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 0xa001(%rip), %rax      # 0x182d8
movq (%rax), %rsi
leaq 0xa2bf(%rip), %rdi      # 0x185a0
movl $0x8000, %edx           # imm = 0x8000
callq 0x3230
movb $0x1, 0xa29f(%rip)      # 0x18591
movzwl %bp, %eax
cmpl $0x3fff, %eax           # imm = 0x3FFF
ja 0xe308
leaq 0x9fd5(%rip), %rcx      # 0x182d8
addq (%rcx), %rax
jmp 0xe326
movslq 0x8(%rbx), %rcx
leaq 0x9fc5(%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_O1/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 0x9c8c(%rip), %r15      # 0x17fd0
leaq 0x4ea7(%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, 0xa20b(%rip)      # 0x18591
jne 0xe3aa
leaq 0x9f49(%rip), %rax      # 0x182d8
movq (%rax), %rsi
leaq 0xa207(%rip), %rdi      # 0x185a0
movl $0x8000, %edx           # imm = 0x8000
callq 0x3230
movb $0x1, 0xa1e7(%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 0xe3f3
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 0x9ef8(%rip), %rcx      # 0x182e0
movl $0xffffc000, %edx       # imm = 0xFFFFC000
addl (%rcx), %edx
cmpl %edx, %eax
jg 0xe3fe
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x9bcb(%rip), %rdi      # 0x17fd0
leaq 0x4dd4(%rip), %rsi      # 0x131e0
callq 0x3290
movq %rax, %rdi
callq 0x3150
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x3310
nop