// File: /workspace/github_cpp_makefile_star2_O1/Neotoxic-off[P]Abstrakt/src/abstract/scan/scan_header.cpp
// Function: abstrakt::scan_header()
bool abstrakt::scan_header()
{
    std::size_t size = this->current_line.length();
    std::array<std::string, 6> header = {
        "/*",
        "** EPITECH PROJECT, ",
        "** ",
        "** File description:",
        "** ",
        "*/"
    };

    if (size > 0) {
        if (this->line_number <= header.size()) {
            if (this->current_line.find(header[this->line_number]) == std::string::npos) {
                abstrakt::report_error(
                    this->logs.map[0x04]
                );
                return (true);
            }
        }
    }

    return (false);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rdi, %rbx
movq 0x138(%rdi), %r13
leaq -0x100(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x4373(%rip), %rsi      # 0x702f
leaq 0x436e(%rip), %rdx      # 0x7031
leaq -0x110(%rbp), %r15
movq %r15, %rdi
callq 0x2ef8
leaq -0xf0(%rbp), %r14
leaq -0xe0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x4347(%rip), %rsi      # 0x7032
leaq 0x4354(%rip), %rdx      # 0x7046
movq %r14, %rdi
callq 0x2ef8
leaq -0xd0(%rbp), %r14
leaq -0xc0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x4334(%rip), %rsi      # 0x7047
leaq 0x4330(%rip), %rdx      # 0x704a
movq %r14, %rdi
callq 0x2ef8
leaq -0xb0(%rbp), %r14
leaq -0xa0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x4310(%rip), %rsi      # 0x704b
leaq 0x431d(%rip), %rdx      # 0x705f
movq %r14, %rdi
callq 0x2ef8
leaq -0x90(%rbp), %r14
leaq -0x80(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x42e7(%rip), %rsi      # 0x7047
leaq 0x42e3(%rip), %rdx      # 0x704a
movq %r14, %rdi
callq 0x2ef8
leaq -0x70(%rbp), %r14
leaq -0x60(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x42dd(%rip), %rsi      # 0x7060
leaq 0x42d8(%rip), %rdx      # 0x7062
movq %r14, %rdi
callq 0x2ef8
testq %r13, %r13
je 0x2da4
movq 0x120(%rbx), %rax
cmpq $0x6, %rax
jbe 0x2da9
xorl %r14d, %r14d
jmp 0x2e25
leaq 0x130(%rbx), %rdi
shlq $0x5, %rax
movq -0x110(%rbp,%rax), %rsi
movq -0x108(%rbp,%rax), %rcx
xorl %r14d, %r14d
xorl %edx, %edx
callq 0x2260
cmpq $-0x1, %rax
jne 0x2e25
leaq -0x2c(%rbp), %rsi
movl $0x4, (%rsi)
movq %rbx, %rdi
callq 0x27a4
leaq -0x40(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0x50(%rbp), %rdi
callq 0x281a
leaq -0x50(%rbp), %rsi
movq %rbx, %rdi
callq 0x4f0c
movq -0x50(%rbp), %rdi
cmpq %r14, %rdi
je 0x2e22
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2190
movb $0x1, %r14b
movq $-0xc0, %rbx
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0x2e42
movq (%r12), %rsi
incq %rsi
callq 0x2190
addq $-0x20, %r12
addq $0x20, %rbx
jne 0x2e2c
movl %r14d, %eax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x50(%rbp), %rdi
cmpq %r14, %rdi
je 0x2e7e
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2190
jmp 0x2e7e
movq %rax, %rbx
xorl %r14d, %r14d
movq -0x70(%rbp,%r14), %rdi
leaq (%r12,%r14), %rax
cmpq %rdi, %rax
je 0x2e9a
movq (%rax), %rsi
incq %rsi
callq 0x2190
addq $-0x20, %r14
cmpq $-0xc0, %r14
jne 0x2e81
jmp 0x2ee8
jmp 0x2eb1
jmp 0x2eb1
jmp 0x2eb1
jmp 0x2eb1
movq %rax, %rbx
cmpq %r14, %r15
je 0x2ee8
addq $-0x10, %r14
leaq -0x110(%rbp), %r15
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x2ed8
movq (%r14), %rsi
incq %rsi
callq 0x2190
leaq -0x20(%r14), %rax
addq $-0x10, %r14
cmpq %r15, %r14
movq %rax, %r14
jne 0x2ec4
movq %rbx, %rdi
callq 0x2270
movq %rax, %rbx
movq %r15, %r14
jmp 0x2eb4