// File: /workspace/github_cpp_makefile_star2_O2/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 0x233bb
movq 0x8(%rsi), %rax
cmpb $0x2d, (%rax)
jne 0x233bb
cmpb $0x41, 0x1(%rax)
jne 0x233bb
cmpb $0x0, 0x2(%rax)
je 0x233d1
addq $0x12a8, %rsp           # imm = 0x12A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x81b2
movq %rsi, 0x30(%rsp)
movq 0x10(%rsi), %r14
leaq 0x98(%rsp), %rbx
movq %rbx, %rdi
callq 0x53e0
pushq $0x8
popq %rdx
movq %rbx, %rdi
movq %r14, 0x28(%rsp)
movq %r14, %rsi
callq 0x51d0
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 0x5130
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x235a6
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 0xb4e4
movq %r15, %rdi
movq %r13, %rsi
callq 0xc1f0
movq %r13, %rdi
callq 0x5778
movq %rbx, %rdi
leaq 0x2a0(%rsp), %rsi
leaq 0x3(%rsp), %rdx
callq 0xb4e4
movq %r12, %rdi
leaq 0x3c2b(%rip), %rsi      # 0x270d8
leaq 0x2(%rsp), %rdx
callq 0xb4e4
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x5290
movq %rax, %r14
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x52e0
movq %rax, %rbp
movq %r14, %rax
andq %rbp, %rax
cmpq $-0x1, %rax
je 0x2353c
movq %rbp, %rcx
subq %r14, %rcx
movq %r13, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x5390
movq %r15, %rdi
movq %r13, %rsi
callq 0xc1f0
movq %r13, %rdi
callq 0x5778
movq %rbx, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x5290
movq %rax, %r14
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x52e0
movq %rax, %rbp
cmpq $-0x2, 0x20(%rsp)
pushq $-0x1
popq %rax
cmoveq %rax, %rbp
jmp 0x234d8
movq %r12, %rdi
callq 0x5778
movq %rbx, %rdi
callq 0x5778
movq 0x20(%rsp), %rbp
leaq (,%rbp,8), %rdi
callq 0x5470
movq %rax, %r14
movq 0x10(%rsp), %rax
xorl %ecx, %ecx
cmpq %rcx, %rbp
je 0x2357d
movq (%rax), %rdx
movq %rdx, (%r14,%rcx,8)
incq %rcx
addq $0x20, %rax
jmp 0x23568
cmpq $0x1, %rbp
je 0x23599
movl %ebp, %edi
movq %r14, %rsi
callq 0x81b2
movl %eax, 0x4(%rsp)
movq %r14, %rdi
callq 0x5400
movq %r15, %rdi
callq 0xd182
jmp 0x23418
movl 0x4(%rsp), %ebx
cmpl $-0x1, %ebx
jne 0x235d9
movq 0xea3a(%rip), %rdi      # 0x31ff0
leaq 0x3b1e(%rip), %rsi      # 0x270db
callq 0x5350
movq %rax, %rdi
movq 0x28(%rsp), %rsi
callq 0x5350
xorl %ebx, %ebx
movq %rax, %rdi
callq 0x5180
leaq 0x98(%rsp), %rdi
callq 0x50f0
movl %ebx, %eax
addq $0x12a8, %rsp           # imm = 0x12A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x23616
jmp 0x23616
jmp 0x2360c
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
jmp 0x2363c
jmp 0x2360c
movq %rax, %rbx
jmp 0x23641
movq %rax, %rbx
jmp 0x23637
movq %rax, %rbx
jmp 0x2364b
movq %rax, %rbx
jmp 0x2362d
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x5778
leaq 0x58(%rsp), %rdi
callq 0x5778
leaq 0x78(%rsp), %rdi
callq 0x5778
leaq 0x8(%rsp), %rdi
callq 0xd182
leaq 0x98(%rsp), %rdi
callq 0x50f0
movq %rbx, %rdi
callq 0x5680