// File: /workspace/github_cpp_makefile_star2_O2/Manuel123cool[P]smiley/main.cpp
// Function: main
int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        std::cerr << "No command line argument" << std::endl;
        return 1;
    }

    std::ifstream inf{ argv[1] };
 
    if (!inf)
    {
        std::cerr << "Uh oh, Sample.dat could not be opened for reading!\n";
        return 1;
    }
    Instruction instruction;

    while (inf)
    {
        std::string strInput;
        std::getline(inf, strInput);
        
        std::string clearedStr{ strInput };
        while (clearedStr != MyRegex::processComments(clearedStr))
        {
            clearedStr = MyRegex::processComments(clearedStr);
        }
        clearedStr = MyRegex::deleteInessentialSpaces(clearedStr);

        instruction.add(clearedStr);
    } 
    instruction.run();
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x328, %rsp            # imm = 0x328
cmpl $0x2, %edi
jne 0x24c5
movq 0x8(%rsi), %rsi
leaq 0x120(%rsp), %rbx
pushq $0x8
popq %rdx
movq %rbx, %rdi
callq 0x2270
movq (%rbx), %rax
movq -0x18(%rax), %rcx
testb $0x5, 0x140(%rsp,%rcx)
je 0x24e8
movq 0xbb3f(%rip), %rdi      # 0xdff0
leaq 0x7b65(%rip), %rsi      # 0xa01d
callq 0x2180
pushq $0x1
popq %rbx
jmp 0x266a
movq 0xbb24(%rip), %rdi      # 0xdff0
leaq 0x7b31(%rip), %rsi      # 0xa004
callq 0x2180
movq %rax, %rdi
callq 0x20d0
pushq $0x1
popq %rbx
jmp 0x2677
xorps %xmm0, %xmm0
leaq 0x70(%rsp), %rcx
movaps %xmm0, 0x20(%rcx)
movaps %xmm0, 0x10(%rcx)
movaps %xmm0, (%rcx)
leaq 0x10(%rsp), %rbx
leaq 0xe0(%rsp), %r12
leaq 0x50(%rsp), %r13
leaq 0x100(%rsp), %rbp
leaq 0xc0(%rsp), %r14
leaq 0xa0(%rsp), %r15
movq -0x18(%rax), %rax
testb $0x5, 0x140(%rsp,%rax)
jne 0x2654
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
andq $0x0, 0x18(%rsp)
movb $0x0, 0x20(%rsp)
leaq 0x120(%rsp), %rdi
movq %rbx, %rsi
callq 0x2040
movq %r12, %rdi
movq %rbx, %rsi
callq 0x21e0
movq %r13, %rdi
movq %r12, %rsi
callq 0x21e0
movq %rbp, %rdi
movq %r13, %rsi
callq 0x606f
movq %r12, %rdi
movq %rbp, %rsi
callq 0x270e
movq %rbp, %rdi
movb %al, 0xf(%rsp)
callq 0x20c0
movq %r13, %rdi
callq 0x20c0
cmpb $0x0, 0xf(%rsp)
je 0x25db
movq %r14, %rdi
movq %r12, %rsi
callq 0x21e0
movq %rbp, %rdi
movq %r14, %rsi
callq 0x606f
movq %r12, %rdi
movq %rbp, %rsi
callq 0x21c0
movq %rbp, %rdi
callq 0x20c0
movq %r14, %rdi
callq 0x20c0
leaq 0x50(%rsp), %r13
jmp 0x2567
movq %r15, %rdi
movq %r12, %rsi
callq 0x21e0
movq %rbp, %rdi
movq %r15, %rsi
callq 0x61f4
leaq 0x50(%rsp), %r13
movq %r12, %rdi
movq %rbp, %rsi
callq 0x21c0
movq %rbp, %rdi
callq 0x20c0
movq %r15, %rdi
callq 0x20c0
leaq 0x30(%rsp), %rdi
movq %r12, %rsi
callq 0x21e0
leaq 0x70(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x7fc4
leaq 0x30(%rsp), %rdi
callq 0x20c0
movq %r12, %rdi
callq 0x20c0
movq %rbx, %rdi
callq 0x20c0
movq 0x120(%rsp), %rax
jmp 0x2525
leaq 0x70(%rsp), %rdi
callq 0x7fd6
leaq 0x70(%rsp), %rdi
callq 0x2718
xorl %ebx, %ebx
leaq 0x120(%rsp), %rdi
callq 0x2050
movl %ebx, %eax
addq $0x328, %rsp            # imm = 0x328
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x26ef
movq %rax, %rbx
jmp 0x26f9
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
jmp 0x26ce
jmp 0x26d5
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
jmp 0x26ce
jmp 0x26d5
jmp 0x26b2
movq %rax, %rbx
jmp 0x26e5
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
jmp 0x26ce
jmp 0x26d5
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x20c0
jmp 0x26d8
movq %rax, %rbx
leaq 0xe0(%rsp), %rdi
callq 0x20c0
leaq 0x10(%rsp), %rdi
callq 0x20c0
leaq 0x70(%rsp), %rdi
callq 0x2718
leaq 0x120(%rsp), %rdi
callq 0x2050
movq %rbx, %rdi
callq 0x2250