// File: /workspace/github_cpp_makefile_star2_O1/xzebra[P]function-plotter/main.cpp
// Function: main
int main(int argc, char *argv[]) {
    double size = 10;
    double step = 1;
    bool loop = false;

    for(int i = 0; i < argc; i++) {
        std::string arg = argv[i];
        if(arg == "-size") {
            if(checkError(argc, i)) return 1;
            size = std::stod(argv[++i]);
        } else if(arg == "-step") {
            if(checkError(argc, i)) return 1;
            step = std::stod(argv[++i]);
        } else if(arg == "-l" || arg == "-loop") {
            loop = true;
        }
    }
    
    std::string input;
    std::cout << "y = ";
    std::getline(std::cin, input);
    
    Graph graph(size, step);
    if(!loop) graph.Plot(input);
    else graph.Loop(input);

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
testl %edi, %edi
setg %cl
jle 0x2730
movl %edi, %r15d
movb %cl, -0x29(%rbp)
movsd 0x2abf(%rip), %xmm0     # 0x5010
movsd %xmm0, -0x70(%rbp)
movsd 0x2aaa(%rip), %xmm0     # 0x5008
movsd %xmm0, -0x60(%rbp)
xorl %r12d, %r12d
leaq -0x1b8(%rbp), %r14
movl $0x0, -0x54(%rbp)
movl $0x0, -0x30(%rbp)
movq %rsi, -0x78(%rbp)
movl %edi, -0x58(%rbp)
movslq %r12d, %rbx
movq %rsi, %r13
movq (%rsi,%rbx,8), %rsi
movq %r14, %rdi
leaq -0x50(%rbp), %rdx
callq 0x20c0
movq %r14, %rdi
leaq 0x2a81(%rip), %rsi      # 0x5023
callq 0x2080
testl %eax, %eax
je 0x25fa
movq %r14, %rdi
leaq 0x2a74(%rip), %rsi      # 0x5029
callq 0x2080
testl %eax, %eax
je 0x265b
movq %r14, %rdi
leaq 0x2a63(%rip), %rsi      # 0x502f
callq 0x2080
testl %eax, %eax
je 0x25ee
movq %r14, %rdi
leaq 0x2a53(%rip), %rsi      # 0x5032
callq 0x2080
movb $0x1, %bl
testl %eax, %eax
jne 0x26e9
movb $0x1, %al
movl %eax, -0x54(%rbp)
movb $0x1, %bl
jmp 0x26e9
movl %r15d, %edi
movl %r12d, %esi
callq 0x24bc
testb %al, %al
jne 0x266a
movq 0x8(%r13,%rbx,8), %rsi
leaq -0x50(%rbp), %rdi
leaq -0x2a(%rbp), %rdx
callq 0x20c0
movq -0x50(%rbp), %r14
callq 0x2050
movq %rax, %rbx
movl (%rax), %r15d
movl $0x0, (%rax)
movq %r14, %rdi
leaq -0x68(%rbp), %rsi
callq 0x2150
movsd %xmm0, -0x70(%rbp)
cmpq %r14, -0x68(%rbp)
je 0x28fd
movl (%rbx), %eax
testl %eax, %eax
je 0x26c7
cmpl $0x22, %eax
jne 0x26ca
jmp 0x2915
movl %r15d, %edi
movl %r12d, %esi
callq 0x24bc
testb %al, %al
je 0x2675
movl $0x1, -0x30(%rbp)
xorl %ebx, %ebx
jmp 0x26e9
movq 0x8(%r13,%rbx,8), %rsi
leaq -0x50(%rbp), %rdi
leaq -0x2a(%rbp), %rdx
callq 0x20c0
movq -0x50(%rbp), %r14
callq 0x2050
movq %rax, %rbx
movl (%rax), %r15d
movl $0x0, (%rax)
movq %r14, %rdi
leaq -0x68(%rbp), %rsi
callq 0x2150
movsd %xmm0, -0x60(%rbp)
cmpq %r14, -0x68(%rbp)
je 0x2909
movl (%rbx), %eax
testl %eax, %eax
je 0x26c7
cmpl $0x22, %eax
jne 0x26ca
jmp 0x2921
movl %r15d, (%rbx)
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x26dc
callq 0x21a0
incl %r12d
movb $0x1, %bl
movq -0x78(%rbp), %r13
movl -0x58(%rbp), %r15d
movq -0x1b8(%rbp), %rdi
leaq -0x1a8(%rbp), %rax
cmpq %rax, %rdi
je 0x2701
callq 0x21a0
testb %bl, %bl
leaq -0x1b8(%rbp), %r14
je 0x271f
movq %r13, %rsi
incl %r12d
cmpl %r15d, %r12d
setl -0x29(%rbp)
jl 0x2582
cvttsd2si -0x70(%rbp), %ebx
movl -0x54(%rbp), %r14d
movl -0x30(%rbp), %eax
movb -0x29(%rbp), %cl
jmp 0x2747
xorl %eax, %eax
movsd 0x28ce(%rip), %xmm0     # 0x5008
movsd %xmm0, -0x60(%rbp)
movl $0xa, %ebx
xorl %r14d, %r14d
testb $0x1, %cl
jne 0x28eb
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
movq $0x0, -0x48(%rbp)
movb $0x0, -0x40(%rbp)
movq 0x4865(%rip), %rdi      # 0x6fd0
leaq 0x28c6(%rip), %rsi      # 0x5038
movl $0x4, %edx
callq 0x21d0
movq 0x485d(%rip), %rdi      # 0x6fe0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %edx
movq 0x4842(%rip), %rdi      # 0x6fe0
leaq -0x50(%rbp), %rsi
callq 0x22d0
leaq -0x1b8(%rbp), %rdi
movl %ebx, %esi
movsd -0x60(%rbp), %xmm0
callq 0x3386
testb $0x1, %r14b
je 0x27fe
leaq -0x88(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
leaq -0x98(%rbp), %rdi
callq 0x2a62
leaq -0x1b8(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x2ff6
movq -0x98(%rbp), %rdi
jmp 0x283a
leaq -0xa8(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
leaq -0xb8(%rbp), %rdi
callq 0x2a62
leaq -0x1b8(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x2afc
movq -0xb8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x2844
callq 0x21a0
leaq -0xd0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2859
callq 0x21a0
leaq -0xf0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x286e
callq 0x21a0
leaq -0x110(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2883
callq 0x21a0
leaq -0x130(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2898
callq 0x21a0
leaq -0x150(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28ad
callq 0x21a0
leaq -0x170(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28c2
callq 0x21a0
leaq -0x190(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28d7
callq 0x21a0
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x28e9
callq 0x21a0
xorl %eax, %eax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2739(%rip), %rdi      # 0x503d
callq 0x2100
leaq 0x272d(%rip), %rdi      # 0x503d
callq 0x2100
leaq 0x2721(%rip), %rdi      # 0x503d
callq 0x2220
leaq 0x2715(%rip), %rdi      # 0x503d
callq 0x2220
movq %rax, %r14
movq -0xb8(%rbp), %rdi
jmp 0x2943
movq %rax, %r14
movq -0x98(%rbp), %rdi
cmpq %rbx, %rdi
je 0x2952
callq 0x21a0
jmp 0x2952
movq %rax, %r14
leaq -0x1b8(%rbp), %rdi
callq 0x29bc
jmp 0x2967
jmp 0x2964
jmp 0x2994
movq %rax, %r14
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
jmp 0x29a5
jmp 0x2975
jmp 0x2994
movq %rax, %r14
cmpl $0x0, (%rbx)
jne 0x2980
movl %r15d, (%rbx)
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x2997
callq 0x21a0
jmp 0x2997
movq %rax, %r14
movq -0x1b8(%rbp), %rdi
leaq -0x1a8(%rbp), %rax
cmpq %rax, %rdi
je 0x29b4
callq 0x21a0
jmp 0x29b4
movq %rax, %r14
movq %r14, %rdi
callq 0x22b0