// File: /workspace/github_cpp_makefile_star2_O3/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
xorl %r15d, %r15d
testl %edi, %edi
jle 0x271f
movq %rsi, %r12
movl %edi, %r14d
movsd 0x2abf(%rip), %xmm0     # 0x5010
movsd %xmm0, -0x70(%rbp)
movsd 0x2aaa(%rip), %xmm0     # 0x5008
movsd %xmm0, -0x60(%rbp)
leaq -0x1b8(%rbp), %r13
movl $0x0, -0x54(%rbp)
movl $0x0, -0x30(%rbp)
movq %rsi, -0x78(%rbp)
movslq %r15d, %rbx
movq (%r12,%rbx,8), %rsi
movq %r13, %rdi
leaq -0x50(%rbp), %rdx
callq 0x20c0
movq %r13, %rdi
leaq 0x2a8a(%rip), %rsi      # 0x5023
callq 0x2080
testl %eax, %eax
je 0x25f1
movq %r13, %rdi
leaq 0x2a7d(%rip), %rsi      # 0x5029
callq 0x2080
testl %eax, %eax
je 0x2654
movq %r13, %rdi
leaq 0x2a6c(%rip), %rsi      # 0x502f
callq 0x2080
testl %eax, %eax
je 0x25e5
movq %r13, %rdi
leaq 0x2a5c(%rip), %rsi      # 0x5032
callq 0x2080
movb $0x1, %bl
testl %eax, %eax
jne 0x26e8
movb $0x1, %al
movl %eax, -0x54(%rbp)
movb $0x1, %bl
jmp 0x26e8
movl %r14d, %edi
movl %r15d, %esi
callq 0x24bc
testb %al, %al
jne 0x2663
movq 0x8(%r12,%rbx,8), %rsi
leaq -0x50(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x20c0
movq -0x50(%rbp), %rbx
callq 0x2050
movq %rax, %r13
movl (%rax), %r12d
movl $0x0, (%rax)
movq %rbx, %rdi
leaq -0x68(%rbp), %rsi
callq 0x2150
movsd %xmm0, -0x70(%rbp)
cmpq %rbx, -0x68(%rbp)
je 0x28e6
movl (%r13), %eax
testl %eax, %eax
je 0x26c2
cmpl $0x22, %eax
jne 0x26c6
jmp 0x28fe
movl %r14d, %edi
movl %r15d, %esi
callq 0x24bc
testb %al, %al
je 0x266e
movl $0x1, -0x30(%rbp)
xorl %ebx, %ebx
jmp 0x26e8
movq 0x8(%r12,%rbx,8), %rsi
leaq -0x50(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x20c0
movq -0x50(%rbp), %rbx
callq 0x2050
movq %rax, %r13
movl (%rax), %r12d
movl $0x0, (%rax)
movq %rbx, %rdi
leaq -0x68(%rbp), %rsi
callq 0x2150
movsd %xmm0, -0x60(%rbp)
cmpq %rbx, -0x68(%rbp)
je 0x28f2
movl (%r13), %eax
testl %eax, %eax
je 0x26c2
cmpl $0x22, %eax
jne 0x26c6
jmp 0x290a
movl %r12d, (%r13)
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x26d8
callq 0x21a0
incl %r15d
movb $0x1, %bl
movq -0x78(%rbp), %r12
leaq -0x1b8(%rbp), %r13
movq -0x1b8(%rbp), %rdi
leaq -0x1a8(%rbp), %rax
cmpq %rax, %rdi
je 0x2700
callq 0x21a0
testb %bl, %bl
je 0x28d1
incl %r15d
cmpl %r14d, %r15d
jl 0x257c
cvttsd2si -0x70(%rbp), %ebx
movl -0x54(%rbp), %r14d
jmp 0x2734
movsd 0x28e1(%rip), %xmm0     # 0x5008
movsd %xmm0, -0x60(%rbp)
movl $0xa, %ebx
xorl %r14d, %r14d
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
movq $0x0, -0x48(%rbp)
movb $0x0, -0x40(%rbp)
movq 0x4881(%rip), %rdi      # 0x6fd0
leaq 0x28e2(%rip), %rsi      # 0x5038
movl $0x4, %edx
callq 0x21d0
movq 0x4879(%rip), %rdi      # 0x6fe0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %edx
movq 0x485e(%rip), %rdi      # 0x6fe0
leaq -0x50(%rbp), %rsi
callq 0x22d0
leaq -0x1b8(%rbp), %rdi
movl %ebx, %esi
movsd -0x60(%rbp), %xmm0
callq 0x3484
testb $0x1, %r14b
je 0x27e2
leaq -0x88(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
leaq -0x98(%rbp), %rdi
callq 0x2a4e
leaq -0x1b8(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x30f4
movq -0x98(%rbp), %rdi
jmp 0x281e
leaq -0xa8(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
leaq -0xb8(%rbp), %rdi
callq 0x2a4e
leaq -0x1b8(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x2aec
movq -0xb8(%rbp), %rdi
cmpq %r14, %rdi
je 0x2828
callq 0x21a0
leaq -0xd0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x283d
callq 0x21a0
leaq -0xf0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2852
callq 0x21a0
leaq -0x110(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2867
callq 0x21a0
leaq -0x130(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x287c
callq 0x21a0
leaq -0x150(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2891
callq 0x21a0
leaq -0x170(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28a6
callq 0x21a0
leaq -0x190(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28bb
callq 0x21a0
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x28cd
callq 0x21a0
xorl %eax, %eax
jmp 0x28d4
movl -0x30(%rbp), %eax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2750(%rip), %rdi      # 0x503d
callq 0x2100
leaq 0x2744(%rip), %rdi      # 0x503d
callq 0x2100
leaq 0x2738(%rip), %rdi      # 0x503d
callq 0x2220
leaq 0x272c(%rip), %rdi      # 0x503d
callq 0x2220
movq %rax, %rbx
movq -0xb8(%rbp), %rdi
jmp 0x292c
movq %rax, %rbx
movq -0x98(%rbp), %rdi
cmpq %r14, %rdi
je 0x293b
callq 0x21a0
jmp 0x293b
movq %rax, %rbx
leaq -0x1b8(%rbp), %rdi
callq 0x29a8
jmp 0x2954
jmp 0x2951
jmp 0x2980
jmp 0x295e
jmp 0x2980
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
jmp 0x2991
movq %rax, %rbx
cmpl $0x0, (%r13)
jne 0x296c
movl %r12d, (%r13)
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x2983
callq 0x21a0
jmp 0x2983
movq %rax, %rbx
movq -0x1b8(%rbp), %rdi
leaq -0x1a8(%rbp), %rax
cmpq %rax, %rdi
je 0x29a0
callq 0x21a0
jmp 0x29a0
movq %rax, %rbx
movq %rbx, %rdi
callq 0x22b0