// File: /workspace/github_cpp_makefile_star2_O3/BenLangmead[P]bowtie/bowtie_build_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_build((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_build(argc, argv);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x12a8, %rsp           # imm = 0x12A8
cmpl $0x3, %edi
jl 0x2cc63
movq 0x8(%rsi), %rax
cmpb $0x2d, (%rax)
jne 0x2cc63
cmpb $0x41, 0x1(%rax)
jne 0x2cc63
cmpb $0x0, 0x2(%rax)
je 0x2cc79
addq $0x12a8, %rsp           # imm = 0x12A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9203
movq %rsi, 0x90(%rsp)
movq 0x10(%rsi), %rbx
leaq 0x98(%rsp), %r14
movq %r14, %rdi
callq 0x53e0
movq %r14, %rdi
movq %rbx, 0x88(%rsp)
movq %rbx, %rsi
movl $0x8, %edx
callq 0x51d0
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 0x5330
movsbl %al, %ecx
movl $0xfff, %edx            # imm = 0xFFF
movq %r12, %rdi
leaq 0x2a0(%rsp), %rsi
callq 0x5710
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2cf23
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 0x2cada
movq %r15, %rdi
movq %r13, %rsi
callq 0xefb8
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2cd7a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5370
leaq 0x58(%rsp), %rax
movq %rax, 0x48(%rsp)
leaq 0x2a0(%rsp), %r12
movq %r12, %rdi
callq 0x5150
leaq (%rsp,%rax), %rdx
addq $0x2a0, %rdx            # imm = 0x2A0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x10400
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %rdi
leaq 0x438a(%rip), %rsi      # 0x3114a
leaq 0x4385(%rip), %rdx      # 0x3114c
callq 0x10400
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rcx
movq %rbx, %rdi
xorl %edx, %edx
callq 0x5600
movq %rax, %rbp
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rcx
movq %rbx, %rdi
movq %rax, %rdx
callq 0x5540
movq %rax, %r12
andq %rbp, %rax
cmpq $-0x1, %rax
je 0x2ce8b
movq %r12, %rcx
subq %rbp, %rcx
movq %r13, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0x5380
movq %r15, %rdi
movq %r13, %rsi
callq 0xefb8
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2ce43
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5370
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rcx
movq %rbx, %rdi
movq %r12, %rdx
callq 0x5600
movq %rax, %rbp
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rcx
movq %rbx, %rdi
movq %rax, %rdx
callq 0x5540
movq %rax, %r12
cmpq $-0x2, 0x80(%rsp)
cmoveq %r14, %r12
movq %rbp, %rax
andq %r12, %rax
jmp 0x2cdfe
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2cea7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5370
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x2cec3
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5370
movq 0x80(%rsp), %rbp
leaq (,%rbp,8), %rdi
callq 0x5460
movq %rax, %r12
testq %rbp, %rbp
je 0x2cf00
movq 0x70(%rsp), %rax
xorl %ecx, %ecx
movq (%rax), %rdx
movq %rdx, (%r12,%rcx,8)
incq %rcx
addq $0x20, %rax
cmpq %rcx, %rbp
jne 0x2cee7
cmpq $0x1, %rbp
je 0x2cf16
movl %ebp, %edi
movq %r12, %rsi
callq 0x9203
movl %eax, 0x4(%rsp)
movq %r12, %rdi
callq 0x5400
movq %r15, %rdi
callq 0x10906
jmp 0x2cccb
movl 0x4(%rsp), %ebx
cmpl $-0x1, %ebx
jne 0x2cfb8
movq 0xe0b9(%rip), %rbx      # 0x3aff0
leaq 0x420f(%rip), %rsi      # 0x3114d
movl $0x24, %edx
movq %rbx, %rdi
callq 0x53f0
movq 0x88(%rsp), %r14
testq %r14, %r14
je 0x2cf74
movq %r14, %rdi
callq 0x5150
movq 0xe089(%rip), %rdi      # 0x3aff0
movq %r14, %rsi
movq %rax, %rdx
callq 0x53f0
jmp 0x2cf8b
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x5610
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x5330
movsbl %al, %esi
movq 0xe047(%rip), %rdi      # 0x3aff0
callq 0x5040
xorl %ebx, %ebx
movq %rax, %rdi
callq 0x51f0
leaq 0x98(%rsp), %rdi
callq 0x50d0
movl %ebx, %eax
addq $0x12a8, %rsp           # imm = 0x12A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2d004
jmp 0x2d004
jmp 0x2cfe1
jmp 0x2cfe1
movq %rax, %rbx
jmp 0x2d065
movq %rax, %rbx
jmp 0x2d049
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2d065
movq 0x38(%rsp), %rsi
jmp 0x2d05d
movq %rax, %rbx
jmp 0x2d06f
movq %rax, %rbx
jmp 0x2d02d
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2d02d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5370
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2d049
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5370
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x2d065
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5370
leaq 0x68(%rsp), %rdi
callq 0x10906
leaq 0x98(%rsp), %rdi
callq 0x50d0
movq %rbx, %rdi
callq 0x5680