// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x70, %rsp
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq $0x0, -0x20(%rbp)
movl $0x0, -0x28(%rbp)
leaq -0x60(%rbp), %rdi
leaq 0x3f37(%rip), %rsi      # 0xea80
movl $0x2b, %edx
callq 0x21a0
movl -0x8(%rbp), %edi
movq -0x10(%rbp), %rsi
leaq 0x3a25(%rip), %rdx      # 0xe586
callq 0x2240
movl %eax, -0x24(%rbp)
cmpl $0x0, %eax
jl 0xab9e
movl -0x24(%rbp), %eax
movl %eax, -0x64(%rbp)
subl $0x6b, %eax
je 0xab85
jmp 0xab7b
movl -0x64(%rbp), %eax
subl $0x70, %eax
je 0xab8e
jmp 0xab9c
movl $0x1, -0x28(%rbp)
jmp 0xab9c
movq 0x6443(%rip), %rax      # 0x10fd8
movq (%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0xab53
movq 0x642b(%rip), %rax      # 0x10fd0
movl (%rax), %eax
cmpl -0x8(%rbp), %eax
jne 0xac34
movq 0x6441(%rip), %rax      # 0x10ff8
movq (%rax), %rdi
leaq 0x2b76(%rip), %rsi      # 0xd737
movb $0x0, %al
callq 0x2190
movq 0x6429(%rip), %rax      # 0x10ff8
movq (%rax), %rdi
leaq 0x39b1(%rip), %rsi      # 0xe58a
movb $0x0, %al
callq 0x2190
movq 0x6411(%rip), %rax      # 0x10ff8
movq (%rax), %rdi
leaq 0x39c4(%rip), %rsi      # 0xe5b5
movb $0x0, %al
callq 0x2190
movq 0x63f9(%rip), %rax      # 0x10ff8
movq (%rax), %rdi
leaq 0x39c8(%rip), %rsi      # 0xe5d1
movb $0x0, %al
callq 0x2190
movq 0x63e1(%rip), %rax      # 0x10ff8
movq (%rax), %rdi
leaq 0x2b16(%rip), %rsi      # 0xd737
movb $0x0, %al
callq 0x2190
movl $0x1, -0x4(%rbp)
jmp 0xad44
cmpl $0x1, -0x8(%rbp)
jne 0xac79
movq 0x6387(%rip), %rax      # 0x10fc8
movq (%rax), %rdi
callq 0x21b0
movl %eax, %edi
callq 0x2090
cmpl $0x0, %eax
je 0xac79
movq 0x639c(%rip), %rax      # 0x10ff8
movq (%rax), %rdi
leaq 0x398f(%rip), %rsi      # 0xe5f5
movb $0x0, %al
callq 0x2190
movl $0x1, -0x4(%rbp)
jmp 0xad44
movq -0x10(%rbp), %rax
movq 0x634c(%rip), %rcx      # 0x10fd0
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x3804(%rip), %rsi      # 0xe496
callq 0x2170
cmpl $0x0, %eax
jne 0xacbf
movq 0x6325(%rip), %rax      # 0x10fc8
movq (%rax), %rdi
callq 0x21b0
movl %eax, %edi
leaq 0x25cc(%rip), %rsi      # 0xd280
callq 0x20b0
movq %rax, -0x70(%rbp)
jmp 0xace1
movq -0x10(%rbp), %rax
movq 0x6306(%rip), %rcx      # 0x10fd0
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x25a8(%rip), %rsi      # 0xd280
callq 0x2220
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0xad18
movq 0x6301(%rip), %rax      # 0x10ff8
movq (%rax), %rdi
leaq 0x2778(%rip), %rsi      # 0xd479
leaq 0x390a(%rip), %rdx      # 0xe612
movb $0x0, %al
callq 0x2190
movl $0x1, -0x4(%rbp)
jmp 0xad44
cmpl $0x0, -0x28(%rbp)
jne 0xad34
movq -0x18(%rbp), %rdi
leaq -0x60(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0xa470
movl %eax, -0x4(%rbp)
jmp 0xad44
movq -0x18(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0xa7e0
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax)