// File: /workspace/github_cpp_makefile_star2_O2/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 0x45fa3
movq 0x8(%rsi), %rax
cmpb $0x2d, (%rax)
jne 0x45fa3
cmpb $0x41, 0x1(%rax)
jne 0x45fa3
cmpb $0x0, 0x2(%rax)
je 0x45fb9
addq $0x12a8, %rsp           # imm = 0x12A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xcfe5
movq %rsi, 0x30(%rsp)
movq 0x10(%rsi), %r14
leaq 0x98(%rsp), %rbx
movq %rbx, %rdi
callq 0x9580
pushq $0x8
popq %rdx
movq %rbx, %rdi
movq %r14, 0x28(%rsp)
movq %r14, %rsi
callq 0x92d0
pushq $-0x1
popq %rax
movl %eax, 0x4(%rsp)
leaq 0x38(%rsp), %r13
leaq 0x78(%rsp), %rbx
leaq 0x8(%rsp), %r15
leaq 0x58(%rsp), %r12
movl $0xfff, %edx            # imm = 0xFFF
leaq 0x98(%rsp), %rdi
leaq 0x2a0(%rsp), %rsi
callq 0x9170
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x4618e
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
movq %rax, 0x8(%rsp)
andq $0x0, 0x10(%rsp)
movq $0x80, 0x18(%rsp)
andq $0x0, 0x20(%rsp)
movq 0x30(%rsp), %rax
movq (%rax), %rsi
movq %r13, %rdi
movq %rbx, %rdx
callq 0x15df2
movq %r15, %rdi
movq %r13, %rsi
callq 0x16afe
movq %r13, %rdi
callq 0x9a68
movq %rbx, %rdi
leaq 0x2a0(%rsp), %rsi
leaq 0x3(%rsp), %rdx
callq 0x15df2
movq %r12, %rdi
leaq 0x64de(%rip), %rsi      # 0x4c573
leaq 0x2(%rsp), %rdx
callq 0x15df2
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x9430
movq %rax, %r14
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x9470
movq %rax, %rbp
movq %r14, %rax
andq %rbp, %rax
cmpq $-0x1, %rax
je 0x46124
movq %rbp, %rcx
subq %r14, %rcx
movq %r13, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x9520
movq %r15, %rdi
movq %r13, %rsi
callq 0x16afe
movq %r13, %rdi
callq 0x9a68
movq %rbx, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x9430
movq %rax, %r14
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x9470
movq %rax, %rbp
cmpq $-0x2, 0x20(%rsp)
pushq $-0x1
popq %rax
cmoveq %rax, %rbp
jmp 0x460c0
movq %r12, %rdi
callq 0x9a68
movq %rbx, %rdi
callq 0x9a68
movq 0x20(%rsp), %rbp
leaq (,%rbp,8), %rdi
callq 0x9640
movq %rax, %r14
movq 0x10(%rsp), %rax
xorl %ecx, %ecx
cmpq %rcx, %rbp
je 0x46165
movq (%rax), %rdx
movq %rdx, (%r14,%rcx,8)
incq %rcx
addq $0x20, %rax
jmp 0x46150
cmpq $0x1, %rbp
je 0x46181
movl %ebp, %edi
movq %r14, %rsi
callq 0xcfe5
movl %eax, 0x4(%rsp)
movq %r14, %rdi
callq 0x95b0
movq %r15, %rdi
callq 0x197f0
jmp 0x46000
movl 0x4(%rsp), %ebx
cmpl $-0x1, %ebx
jne 0x461c1
movq 0x1be52(%rip), %rdi     # 0x61ff0
leaq 0x63ef(%rip), %rsi      # 0x4c594
callq 0x94e0
movq %rax, %rdi
movq 0x28(%rsp), %rsi
callq 0x94e0
xorl %ebx, %ebx
movq %rax, %rdi
callq 0x9210
leaq 0x98(%rsp), %rdi
callq 0x9120
movl %ebx, %eax
addq $0x12a8, %rsp           # imm = 0x12A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x461fe
jmp 0x461fe
jmp 0x461f4
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
jmp 0x46224
jmp 0x461f4
movq %rax, %rbx
jmp 0x46229
movq %rax, %rbx
jmp 0x4621f
movq %rax, %rbx
jmp 0x46233
movq %rax, %rbx
jmp 0x46215
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x9a68
leaq 0x58(%rsp), %rdi
callq 0x9a68
leaq 0x78(%rsp), %rdi
callq 0x9a68
leaq 0x8(%rsp), %rdi
callq 0x197f0
leaq 0x98(%rsp), %rdi
callq 0x9120
movq %rbx, %rdi
callq 0x9950