// File: /workspace/github_cpp_makefile_star2_O1/BlinfoldKing[P]lisval/src/main.cpp
// Function: main
int main(int argc, char **argv) {
	if (argc > 1)	{
		string input = "";
		string line;
		ifstream myfile(argv[1]);
		if (myfile.is_open())
		{
			while (getline(myfile, line))
			{
				input += line + '\n';
			}
			myfile.close();
		}

		else
			cout << "Unable to open file\n";

		Parser p(input);
		Token* t = p.parse();
		if (t) {
			Evaluator e;
			e.eval(t);
		} else {
			cout << "invalid pattern: " << input << '\n';
		}

		return 0;
	}

	Repl r;
	r.run();
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2b8, %rsp            # imm = 0x2B8
cmpl $0x2, %edi
jl 0x36a9
movq %rsi, %rbx
leaq -0x38(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0xc035(%rip), %rdx      # 0xf5e0
leaq -0x48(%rbp), %rdi
movq %rdx, %rsi
callq 0x3ba8
leaq -0x90(%rbp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
movq 0x8(%rbx), %rsi
leaq -0x2e0(%rbp), %rbx
movq %rbx, %rdi
movl $0x8, %edx
callq 0x3300
leaq -0x268(%rbp), %rdi
callq 0x3080
testb %al, %al
je 0x3706
leaq -0x70(%rbp), %r13
leaq -0xa0(%rbp), %r14
leaq -0x80(%rbp), %r15
leaq -0x48(%rbp), %r12
movq -0x2e0(%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31a0
movsbl %al, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3310
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x3720
movq %r13, -0x80(%rbp)
movq -0xa0(%rbp), %rsi
movq -0x98(%rbp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x3a18
movq -0x78(%rbp), %rsi
movl $0x1, %ecx
movq %r15, %rdi
xorl %edx, %edx
movl $0xa, %r8d
callq 0x3320
movq -0x80(%rbp), %rsi
movq -0x78(%rbp), %rdx
movq %r12, %rdi
callq 0x30c0
movq -0x80(%rbp), %rdi
cmpq %r13, %rdi
je 0x360d
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x31c0
jmp 0x360d
leaq -0x2e0(%rbp), %rbx
movq %rbx, %rdi
callq 0x68a0
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%rbx)
movq $0x0, 0x48(%rbx)
movq %rbx, %rdi
callq 0xe254
leaq -0x2a8(%rbp), %rdi
callq 0x3b3e
leaq -0x2c0(%rbp), %rbx
movq %rbx, %rdi
callq 0x3ac0
movq -0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x3846
movq -0x2c8(%rbp), %rsi
subq %rdi, %rsi
jmp 0x3841
movq 0x118c3(%rip), %rdi     # 0x14fd0
leaq 0xb8f0(%rip), %rsi      # 0xf004
movl $0x14, %edx
callq 0x3200
jmp 0x3737
leaq -0x2e0(%rbp), %rdi
leaq -0x38(%rbp), %r14
leaq -0x90(%rbp), %r15
callq 0x3070
leaq -0x80(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x390a
leaq -0x80(%rbp), %rdi
callq 0xb798
movq %rax, %rbx
testq %rax, %rax
je 0x3799
leaq -0xd8(%rbp), %rdi
callq 0x68a0
leaq -0xd8(%rbp), %rdi
movq %rbx, %rsi
callq 0x48b2
leaq -0xb8(%rbp), %rbx
movq %rbx, %rdi
callq 0x3ac0
movq -0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x37dc
movq -0xc0(%rbp), %rsi
subq %rdi, %rsi
callq 0x31c0
jmp 0x37dc
movq 0x11830(%rip), %rdi     # 0x14fd0
leaq 0xb872(%rip), %rsi      # 0xf019
movl $0x11, %edx
callq 0x3200
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq 0x11810(%rip), %rdi     # 0x14fd0
callq 0x3200
leaq -0xd8(%rbp), %rsi
movb $0xa, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x3200
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x37f5
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x31c0
movq -0x80(%rbp), %rdi
testq %rdi, %rdi
je 0x380a
movq -0x70(%rbp), %rsi
subq %rdi, %rsi
callq 0x31c0
leaq -0x2e0(%rbp), %rdi
callq 0x3090
movq -0xa0(%rbp), %rdi
cmpq %r15, %rdi
je 0x3831
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x31c0
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x3846
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x31c0
xorl %eax, %eax
addq $0x2b8, %rsp            # imm = 0x2B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0xd8(%rbp), %rdi
callq 0x3964
jmp 0x388f
jmp 0x388c
jmp 0x38b8
jmp 0x38b8
movq %rax, %rbx
jmp 0x38c7
movq %rax, %rbx
leaq -0x2e0(%rbp), %rdi
callq 0x39da
jmp 0x3902
movq %rax, %rbx
jmp 0x3902
movq %rax, %rbx
leaq -0x80(%rbp), %rdi
callq 0x3998
jmp 0x38bb
jmp 0x389c
movq %rax, %rbx
movq -0x80(%rbp), %rdi
cmpq %r13, %rdi
je 0x38bb
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x31c0
jmp 0x38bb
jmp 0x38b8
movq %rax, %rbx
leaq -0x2e0(%rbp), %rdi
callq 0x3090
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x38e9
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x31c0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x3902
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x31c0
movq %rbx, %rdi
callq 0x32e0