// File: /workspace/github_c_makefile_star2_O1/lh3[P]pre-pe/pre-meta.c
// Function: main
int main(int argc, char *argv[])
{
	int c;
	lt_global_t g;
	gzFile fp;

	lt_global_init(&g);
	while ((c = getopt(argc, argv, "Tt:b:l:c:q:")) >= 0) {
		if (c == 't') g.opt.n_threads = atoi(optarg);
		else if (c == 'T') g.opt.tab_out = 1;
		else if (c == 'l') g.opt.min_seq_len = atoi(optarg);
		else if (c == 'c') g.opt.bc_cut = atoi(optarg);
		else if (c == 'q') g.opt.qmask = atoi(optarg);
	}
	if (argc - optind < 1) {
		fprintf(stderr, "Usage: seqtk mergepe <read1.fq> <read2.fq> | pre-meta [options] -\n");
		fprintf(stderr, "Options:\n");
		fprintf(stderr, "  -t INT     number of threads [%d]\n", g.opt.n_threads);
		fprintf(stderr, "  -l INT     min read/fragment length to output [%d]\n", g.opt.min_seq_len);
		fprintf(stderr, "  -c INT     cut INT-bp from the 5'-end to derive concatenated BC [%d]\n", g.opt.bc_cut);
		fprintf(stderr, "  -q INT     if both qualities on an overlap base above INT, mask to N [%d]\n", g.opt.qmask);
		fprintf(stderr, "  -T         tabular output for debugging\n");
		return 1;
	}

	fp = strcmp(argv[optind], "-")? gzopen(argv[optind], "r") : gzdopen(fileno(stdin), "r");
	g.ks = kseq_init(fp);

	kt_pipeline(2, worker_pipeline, &g, 3);

	kseq_destroy(g.ks);
	gzclose(fp);
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movl %edi, %ebp
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x30(%rsp)
movabsq $0x98968000000002, %rax # imm = 0x98968000000002
movq %rax, (%rsp)
movabsq $0x3200000028, %rax     # imm = 0x3200000028
movq %rax, 0x8(%rsp)
movaps 0xd43(%rip), %xmm0      # 0x5030
movaps %xmm0, 0x10(%rsp)
movabsq $0xa00000002, %rax      # imm = 0xA00000002
movq %rax, 0x20(%rsp)
movl $0x1, 0x2c(%rsp)
movl $0x14, 0x30(%rsp)
leaq 0xdae(%rip), %rdx       # 0x50c6
callq 0x2210
testl %eax, %eax
js 0x439d
movq 0x2cb0(%rip), %r15      # 0x6fd8
leaq 0xd97(%rip), %r14       # 0x50c6
cmpl $0x6b, %eax
jle 0x4350
cmpl $0x6c, %eax
je 0x4368
cmpl $0x71, %eax
je 0x4376
cmpl $0x74, %eax
jne 0x438c
movq (%r15), %rdi
callq 0x2220
movl %eax, (%rsp)
jmp 0x438c
cmpl $0x54, %eax
je 0x4384
cmpl $0x63, %eax
jne 0x438c
movq (%r15), %rdi
callq 0x2220
movl %eax, 0x2c(%rsp)
jmp 0x438c
movq (%r15), %rdi
callq 0x2220
movl %eax, 0x8(%rsp)
jmp 0x438c
movq (%r15), %rdi
callq 0x2220
movl %eax, 0x30(%rsp)
jmp 0x438c
movl $0x1, 0x28(%rsp)
movl %ebp, %edi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x2210
testl %eax, %eax
jns 0x432f
movq 0x2c2c(%rip), %rax      # 0x6fd0
movslq (%rax), %rax
cmpl %ebp, %eax
jge 0x44c4
movq (%rbx,%rax,8), %rbx
leaq 0xe80(%rip), %rsi       # 0x523a
movq %rbx, %rdi
callq 0x2130
testl %eax, %eax
je 0x43d7
leaq 0xe6f(%rip), %rsi       # 0x523c
movq %rbx, %rdi
callq 0x21f0
jmp 0x43f4
movq 0x2bea(%rip), %rax      # 0x6fc8
movq (%rax), %rdi
callq 0x2170
leaq 0xe4f(%rip), %rsi       # 0x523c
movl %eax, %edi
callq 0x20a0
movq %rax, %rbx
movl $0x1, %edi
movl $0x50, %esi
callq 0x2120
movq %rax, %r14
movl $0x1, %edi
movl $0x20, %esi
callq 0x2120
movq %rax, %r15
movq %rbx, 0x10(%rax)
movl 0x8(%rax), %eax
andl $0x3, %eax
orl $0x10000, %eax          # imm = 0x10000
movl %eax, 0x8(%r15)
movl $0x4000, %edi           # imm = 0x4000
callq 0x21b0
movq %rax, 0x18(%r15)
movq %r15, 0x48(%r14)
movq %rsp, %r15
movq %r14, 0x38(%r15)
leaq 0x94(%rip), %rsi        # 0x44e2
movl $0x2, %edi
movq %r15, %rdx
movl $0x3, %ecx
callq 0x25f7
movq 0x38(%r15), %r14
testq %r14, %r14
je 0x44af
movq 0x8(%r14), %rdi
callq 0x2050
movq 0x18(%r14), %rdi
callq 0x2050
movq 0x28(%r14), %rdi
callq 0x2050
movq 0x38(%r14), %rdi
callq 0x2050
movq 0x48(%r14), %r15
testq %r15, %r15
je 0x44a7
movq 0x18(%r15), %rdi
callq 0x2050
movq %r15, %rdi
callq 0x2050
movq %r14, %rdi
callq 0x2050
movq %rbx, %rdi
callq 0x2040
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x30(%rsp), %rcx
leaq 0x8(%rsp), %rsi
leaq 0x2c(%rsp), %rdx
movq %rsp, %rdi
callq 0x22a0
movl $0x1, %eax
jmp 0x44b9