// File: /workspace/github_cpp_makefile_star2_O2/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
movq %rsi, -0x40(%rbp)
movl %edi, %r14d
movsd 0x2b31(%rip), %xmm0     # 0x5008
movsd %xmm0, -0x48(%rbp)
movsd 0x2b2c(%rip), %xmm0     # 0x5010
movsd %xmm0, -0x58(%rbp)
movq $0x0, -0x38(%rbp)
leaq -0x1b8(%rbp), %r12
leaq -0x78(%rbp), %rdx
movq $0x0, -0x50(%rbp)
xorl %r15d, %r15d
cmpl %r14d, %r15d
jge 0x2624
movslq %r15d, %r13
movq -0x40(%rbp), %rax
movq (%rax,%r13,8), %rsi
movq %r12, %rdi
movq %rdx, %rbx
callq 0x20b0
movq %r12, %rdi
leaq 0x2af3(%rip), %rsi      # 0x5023
callq 0x275d
testb %al, %al
je 0x2574
movl %r14d, %edi
movl %r15d, %esi
callq 0x247c
testb %al, %al
jne 0x2596
movq -0x40(%rbp), %rax
movq 0x8(%rax,%r13,8), %rsi
movq %rbx, %r13
movq %rbx, %rdi
leaq -0x29(%rbp), %rdx
callq 0x20b0
movq %r13, %rdi
xorl %esi, %esi
callq 0x276d
movsd %xmm0, -0x58(%rbp)
jmp 0x25fa
movq %r12, %rdi
leaq 0x2aab(%rip), %rsi      # 0x5029
callq 0x275d
testb %al, %al
je 0x25a2
movl %r14d, %edi
movl %r15d, %esi
callq 0x247c
testb %al, %al
je 0x25d3
xorl %r13d, %r13d
pushq $0x1
popq %rax
movq %rax, -0x38(%rbp)
jmp 0x2608
movq %r12, %rdi
leaq 0x2a83(%rip), %rsi      # 0x502f
callq 0x275d
testb %al, %al
jne 0x25cb
movq %r12, %rdi
leaq 0x2a73(%rip), %rsi      # 0x5032
callq 0x275d
movb $0x1, %r13b
testb %al, %al
je 0x2608
movb $0x1, %al
movq %rax, -0x50(%rbp)
jmp 0x2605
movq -0x40(%rbp), %rax
movq 0x8(%rax,%r13,8), %rsi
movq %rbx, %r13
movq %rbx, %rdi
leaq -0x29(%rbp), %rdx
callq 0x20b0
movq %r13, %rdi
xorl %esi, %esi
callq 0x276d
movsd %xmm0, -0x48(%rbp)
incl %r15d
movq %r13, %rdi
callq 0x20c0
movb $0x1, %r13b
movq %r12, %rdi
callq 0x20c0
incl %r15d
testb %r13b, %r13b
movq %rbx, %rdx
jne 0x2507
jmp 0x26de
leaq -0x68(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x5995(%rip), %rdi      # 0x7fd0
leaq 0x29f6(%rip), %rsi      # 0x5038
callq 0x2180
movq 0x5992(%rip), %rdi      # 0x7fe0
leaq -0x78(%rbp), %rsi
callq 0x2060
cvttsd2si -0x58(%rbp), %esi
leaq -0x1b8(%rbp), %rdi
movsd -0x48(%rbp), %xmm0
callq 0x2f0e
testb $0x1, -0x50(%rbp)
je 0x2697
leaq -0x98(%rbp), %rbx
leaq -0x78(%rbp), %rsi
movq %rbx, %rdi
callq 0x2200
leaq -0x1b8(%rbp), %rdi
movq %rbx, %rsi
callq 0x2c46
jmp 0x26b9
leaq -0xb8(%rbp), %rbx
leaq -0x78(%rbp), %rsi
movq %rbx, %rdi
callq 0x2200
leaq -0x1b8(%rbp), %rdi
movq %rbx, %rsi
callq 0x28b0
movq %rbx, %rdi
callq 0x20c0
leaq -0x1b8(%rbp), %rdi
callq 0x278c
leaq -0x78(%rbp), %rdi
callq 0x20c0
movq $0x0, -0x38(%rbp)
movq -0x38(%rbp), %rax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0xb8(%rbp), %rdi
jmp 0x270a
movq %rax, %rbx
leaq -0x98(%rbp), %rdi
callq 0x20c0
jmp 0x2714
movq %rax, %rbx
leaq -0x1b8(%rbp), %rdi
callq 0x278c
jmp 0x2727
jmp 0x2724
movq %rax, %rbx
leaq -0x78(%rbp), %rdi
jmp 0x274b
jmp 0x2731
jmp 0x2741
movq %rax, %rbx
leaq -0x78(%rbp), %rdi
callq 0x20c0
jmp 0x2744
jmp 0x2741
movq %rax, %rbx
leaq -0x1b8(%rbp), %rdi
callq 0x20c0
jmp 0x2755
movq %rax, %rbx
movq %rbx, %rdi
callq 0x2290