// File: /workspace/github_cpp_makefile_star2_O3/BenLangmead[P]bowtie/bowtie_main.cpp
// Function: main
int main(int argc, const char **argv) {
	if(argc > 2 && strcmp(argv[1], "-A") == 0) {
		const char *file = argv[2];
		ifstream in;
		in.open(file);
		char buf[4096];
		int lastret = -1;
		while(in.getline(buf, 4095)) {
			EList<string> args;
			args.push_back(string(argv[0]));
			tokenize(buf, " \t", args);
			const char **myargs = (const char**)malloc(sizeof(char*)*args.size());
			for(size_t i = 0; i < args.size(); i++) {
				myargs[i] = args[i].c_str();
			}
			if(args.size() == 1) continue;
			lastret = bowtie((int)args.size(), myargs);
			free(myargs);
		}
		if(lastret == -1) {
			cerr << "Warning: No arg strings parsed from " << file << endl;
			return 0;
		}
		return lastret;
	} else {
		return bowtie(argc, argv);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x12a8, %rsp           # imm = 0x12A8
cmpl $0x3, %edi
jl 0x50e07
movq 0x8(%rsi), %rax
cmpb $0x2d, (%rax)
jne 0x50e07
cmpb $0x41, 0x1(%rax)
jne 0x50e07
cmpb $0x0, 0x2(%rax)
je 0x50e1d
addq $0x12a8, %rsp           # imm = 0x12A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe102
movq %rsi, 0x90(%rsp)
movq 0x10(%rsi), %rbx
leaq 0x98(%rsp), %r14
movq %r14, %rdi
callq 0x9550
movq %r14, %rdi
movq %rbx, 0x88(%rsp)
movq %rbx, %rsi
movl $0x8, %edx
callq 0x92a0
movl $0xffffffff, 0x4(%rsp)  # imm = 0xFFFFFFFF
leaq 0x28(%rsp), %r13
leaq 0x48(%rsp), %rbx
leaq 0x68(%rsp), %r15
movq $-0x1, %r14
movq 0x98(%rsp), %rax
movq -0x18(%rax), %rdi
leaq 0x98(%rsp), %r12
addq %r12, %rdi
movl $0xa, %esi
callq 0x9480
movsbl %al, %ecx
movl $0xfff, %edx            # imm = 0xFFF
movq %r12, %rdi
leaq 0x2a0(%rsp), %rsi
callq 0x9a00
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x510c7
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
movq %rax, 0x68(%rsp)
xorl %eax, %eax
movq %rax, 0x70(%rsp)
movq $0x80, 0x78(%rsp)
movq %rax, 0x80(%rsp)
movq 0x90(%rsp), %rax
movq (%rax), %rsi
movq %r13, %rdi
movq %rbx, %rdx
callq 0x1af66
movq %r15, %rdi
movq %r13, %rsi
callq 0x1c39a
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x50f1e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x94c0
leaq 0x58(%rsp), %rax
movq %rax, 0x48(%rsp)
leaq 0x2a0(%rsp), %r12
movq %r12, %rdi
callq 0x91b0
leaq (%rsp,%rax), %rdx
addq $0x2a0, %rdx            # imm = 0x2A0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1dbaa
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %rdi
leaq 0x66d1(%rip), %rsi      # 0x57635
leaq 0x66cc(%rip), %rdx      # 0x57637
callq 0x1dbaa
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rcx
movq %rbx, %rdi
xorl %edx, %edx
callq 0x98a0
movq %rax, %rbp
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rcx
movq %rbx, %rdi
movq %rax, %rdx
callq 0x9770
movq %rax, %r12
andq %rbp, %rax
cmpq $-0x1, %rax
je 0x5102f
movq %r12, %rcx
subq %rbp, %rcx
movq %r13, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0x94e0
movq %r15, %rdi
movq %r13, %rsi
callq 0x1c39a
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x50fe7
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x94c0
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rcx
movq %rbx, %rdi
movq %r12, %rdx
callq 0x98a0
movq %rax, %rbp
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rcx
movq %rbx, %rdi
movq %rax, %rdx
callq 0x9770
movq %rax, %r12
cmpq $-0x2, 0x80(%rsp)
cmoveq %r14, %r12
movq %rbp, %rax
andq %r12, %rax
jmp 0x50fa2
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x5104b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x94c0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x51067
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x94c0
movq 0x80(%rsp), %rbp
leaq (,%rbp,8), %rdi
callq 0x9600
movq %rax, %r12
testq %rbp, %rbp
je 0x510a4
movq 0x70(%rsp), %rax
xorl %ecx, %ecx
movq (%rax), %rdx
movq %rdx, (%r12,%rcx,8)
incq %rcx
addq $0x20, %rax
cmpq %rcx, %rbp
jne 0x5108b
cmpq $0x1, %rbp
je 0x510ba
movl %ebp, %edi
movq %r12, %rsi
callq 0xe102
movl %eax, 0x4(%rsp)
movq %r12, %rdi
callq 0x9580
movq %r15, %rdi
callq 0x1fc3c
jmp 0x50e6f
movl 0x4(%rsp), %ebx
cmpl $-0x1, %ebx
jne 0x5115c
movq 0x18f15(%rip), %rbx     # 0x69ff0
leaq 0x6574(%rip), %rsi      # 0x57656
movl $0x24, %edx
movq %rbx, %rdi
callq 0x9560
movq 0x88(%rsp), %r14
testq %r14, %r14
je 0x51118
movq %r14, %rdi
callq 0x91b0
movq 0x18ee5(%rip), %rdi     # 0x69ff0
movq %r14, %rsi
movq %rax, %rdx
callq 0x9560
jmp 0x5112f
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x98c0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x9480
movsbl %al, %esi
movq 0x18ea3(%rip), %rdi     # 0x69ff0
callq 0x9050
xorl %ebx, %ebx
movq %rax, %rdi
callq 0x92f0
leaq 0x98(%rsp), %rdi
callq 0x9110
movl %ebx, %eax
addq $0x12a8, %rsp           # imm = 0x12A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x511a8
jmp 0x511a8
jmp 0x51185
jmp 0x51185
movq %rax, %rbx
jmp 0x51209
movq %rax, %rbx
jmp 0x511ed
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x51209
movq 0x38(%rsp), %rsi
jmp 0x51201
movq %rax, %rbx
jmp 0x51213
movq %rax, %rbx
jmp 0x511d1
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x511d1
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x94c0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x511ed
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x94c0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x51209
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x94c0
leaq 0x68(%rsp), %rdi
callq 0x1fc3c
leaq 0x98(%rsp), %rdi
callq 0x9110
movq %rbx, %rdi
callq 0x9930