// File: /workspace/github_c_makefile_star2_O2/aokad[P]sequeeze/seqtk.c
// Function: stk_squeeze
int stk_squeeze(int argc, char *argv[])
{
	gzFile fp;
	//kseq_t *seq, last;
	char *prefix = 0;
	//uint64_t n = 1;

	int c, keep_read_name = 0;
	//char *bin_quality = 0;
	char bin_quality[] = "!!''''''''000000000077777<<<<<BBBBBFFFFFII";
	
	while ((c = getopt(argc, argv, "p:k")) >= 0) {
		switch (c) {
			case 'k': keep_read_name = 1; break;
			case 'p': prefix = optarg; break;
		}
	}

	if (optind == argc) {
		fprintf(stderr, "\n");
		fprintf(stderr, "Usage:   seqtk sequeeze [options] <in.fq>\n");
		fprintf(stderr, "Options: -p CHAR    prefix\n");
		fprintf(stderr, "Options: -k         keep read name\n");
		fprintf(stderr, "\n");
		return 1;
	}

	if (argc == 1 && isatty(fileno(stdin))) {
		fprintf(stderr, "Usage: seqtk rename <in.fq>\n");
		return 1;
	}
	
	fp = (strcmp(argv[optind], "-") == 0)? gzdopen(fileno(stdin), "r") : gzopen(argv[optind], "r");
	if (fp == 0) {
		fprintf(stderr, "[E::%s] failed to open the input file/stream.\n", __func__);
		return 1;
	}
	
	if (keep_read_name == 0) {
		return sequeeze(fp, bin_quality, prefix);
	} else {
		return binning(fp, bin_quality);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movl %edi, %ebp
movq $0x0, (%rsp)
leaq 0x2573(%rip), %r15      # 0xa4ae
movq 0x6096(%rip), %r13      # 0xdfd8
pushq $0x1
popq %rbx
xorl %r12d, %r12d
movl %ebp, %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2240
testl %eax, %eax
js 0x7f72
cmpl $0x70, %eax
je 0x7f68
cmpl $0x6b, %eax
jne 0x7f48
movl %ebx, %r12d
jmp 0x7f48
movq (%r13), %rax
movq %rax, (%rsp)
jmp 0x7f48
movq 0x6057(%rip), %rbx      # 0xdfd0
movl (%rbx), %eax
cmpl %ebp, %eax
je 0x801d
cmpl $0x1, %ebp
jne 0x7fa8
movq 0x6039(%rip), %rax      # 0xdfc8
movq (%rax), %rdi
callq 0x21b0
movl %eax, %edi
callq 0x2090
testl %eax, %eax
jne 0x80a1
movl (%rbx), %eax
cltq
movq (%r14,%rax,8), %rdi
cmpb $0x2d, (%rdi)
jne 0x7fb9
cmpb $0x0, 0x1(%rdi)
je 0x7ffe
leaq 0x11e8(%rip), %rsi      # 0x91a8
callq 0x2220
testq %rax, %rax
je 0x8080
leaq 0x29cb(%rip), %rsi      # 0xa9a0
movq %rax, %rdi
testl %r12d, %r12d
je 0x7fe4
callq 0x7d6f
jmp 0x7fed
movq (%rsp), %rdx
callq 0x7b7f
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x5fc3(%rip), %rax      # 0xdfc8
movq (%rax), %rdi
callq 0x21b0
leaq 0x1194(%rip), %rsi      # 0x91a8
movl %eax, %edi
callq 0x20b0
jmp 0x7fc5
movq 0x5fd4(%rip), %r15      # 0xdff8
movq (%r15), %rsi
pushq $0xa
popq %rbx
movl %ebx, %edi
callq 0x2140
movq (%r15), %rcx
leaq 0x2477(%rip), %rdi      # 0xa4b2
pushq $0x2a
popq %rsi
pushq $0x1
popq %r14
movq %r14, %rdx
callq 0x2260
movq (%r15), %rcx
leaq 0x2489(%rip), %rdi      # 0xa4dd
pushq $0x1b
popq %rsi
movq %r14, %rdx
callq 0x2260
movq (%r15), %rcx
leaq 0x2490(%rip), %rdi      # 0xa4f9
pushq $0x23
popq %rsi
movq %r14, %rdx
callq 0x2260
movq (%r15), %rsi
movl %ebx, %edi
callq 0x2140
jmp 0x80bd
movq 0x5f71(%rip), %rax      # 0xdff8
movq (%rax), %rdi
leaq 0x1310(%rip), %rsi      # 0x93a1
leaq 0x24a2(%rip), %rdx      # 0xa53a
xorl %eax, %eax
callq 0x2190
jmp 0x80bd
movq 0x5f50(%rip), %rax      # 0xdff8
movq (%rax), %rcx
leaq 0x246b(%rip), %rdi      # 0xa51d
pushq $0x1c
popq %rsi
pushq $0x1
popq %rdx
callq 0x2260
pushq $0x1
popq %rax
jmp 0x7fef