// File: /workspace/github_cpp_makefile_star2_O3/splatlab[P]debgr/main.cc
// Function: fastq_to_uint64kmers_prod(flush_object*)
static bool fastq_to_uint64kmers_prod(flush_object* obj) 
{
	file_pointer* fp;

	while (num_files) {
		while (ip_files.pop(fp)) {
			if (fastq_read_parts(fp->mode, fp)) {
				ip_files.push(fp);
				chunk c(fp->part, fp->size);
				reads_to_kmers(c, obj);
			} else {
				/* close the file */
				if (fp->mode == 0)
					fclose(fp->freader->in);
				else if (fp->mode == 1)
					gzclose(fp->freader->in_gzip);
				else if (fp->mode == 2)
					if (fp->freader->in) {
						BZ2_bzReadClose(&(fp->freader->bzerror), fp->freader->in_bzip2);
						fclose(fp->freader->in);
					}
				delete[] fp->part_buffer;
				delete fp;
				num_files--;
			}
		}
	}
	if (obj->count) {
		dump_local_qf_to_main(obj);
		obj->count = 0;
	}

		return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, 0x10(%rsp)
movl 0xe86c(%rip), %eax      # 0x15420
testl %eax, %eax
je 0x6ea8
leaq 0x18(%rsp), %r13
leaq 0xe7c0(%rip), %rdi      # 0x15388
leaq 0x8(%rsp), %rsi
callq 0x8df8
testb %al, %al
je 0x6e91
movq 0x8(%rsp), %rbx
movl 0x18(%rbx), %r15d
movq (%rbx), %r14
movl $0x80ffff, %edi         # imm = 0x80FFFF
callq 0x4480
movq %rax, %rbp
movq 0x10(%rbx), %rsi
movq 0x28(%rbx), %r12
movq %rax, %rdi
movq %r12, %rdx
callq 0x4290
cmpl $0x2, %r15d
je 0x6c68
cmpl $0x1, %r15d
je 0x6c41
testl %r15d, %r15d
jne 0x6c73
movq (%r14), %rdi
callq 0x4540
testl %eax, %eax
jne 0x6c73
movq 0x28(%rbx), %rdi
addq %rbp, %rdi
movq (%r14), %rcx
movl $0x1, %esi
movl $0x800000, %edx         # imm = 0x800000
callq 0x4500
jmp 0x6d26
movq 0x8(%r14), %rdi
callq 0x40f0
testl %eax, %eax
jne 0x6c73
movq 0x8(%r14), %rdi
movq 0x28(%rbx), %rsi
addq %rbp, %rsi
movl $0x800000, %edx         # imm = 0x800000
callq 0x4650
jmp 0x6d24
cmpl $0x4, 0x18(%r14)
jne 0x6d0c
movq 0x8(%rsp), %rax
movl 0x18(%rax), %ecx
cmpl $0x2, %ecx
je 0x6c99
cmpl $0x1, %ecx
je 0x6c8b
testl %ecx, %ecx
je 0x6cb4
jmp 0x6cbf
movq (%rax), %rax
movq 0x8(%rax), %rdi
callq 0x45e0
jmp 0x6cbf
movq (%rax), %rdi
cmpq $0x0, (%rdi)
je 0x6cbf
movq 0x10(%rdi), %rsi
addq $0x18, %rdi
callq 0x4680
movq 0x8(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0x4340
movq 0x8(%rsp), %r12
movq 0x10(%r12), %rdi
testq %rdi, %rdi
je 0x6cdd
callq 0x4450
movq 0x8(%rsp), %r12
testq %r12, %r12
je 0x6cf5
movq (%r12), %rdi
testq %rdi, %rdi
je 0x6ceb
callq 0x4310
movq $0x0, (%r12)
jmp 0x6cf8
xorl %r12d, %r12d
movq %r12, %rdi
callq 0x4310
lock
decl 0xe719(%rip)            # 0x15420
jmp 0x6bc1
leaq 0x18(%r14), %rdi
movq 0x10(%r14), %rsi
addq %rbp, %r12
movq %r12, %rdx
movl $0x800000, %ecx         # imm = 0x800000
callq 0x4580
cltq
movq 0x28(%rbx), %r12
cmpq $0xffff, %r12           # imm = 0xFFFF
jae 0x6ed3
addq %rax, %r12
cmpl $0x2, %r15d
je 0x6d58
cmpl $0x1, %r15d
jne 0x6e0e
movq 0x8(%r14), %rdi
callq 0x40f0
jmp 0x6e16
cmpl $0x4, 0x18(%r14)
je 0x6e1e
leaq -0x7fff(%r12), %rax
movq %rax, 0x18(%rsp)
xorl %r14d, %r14d
movq %rbp, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x4cb9
testb %al, %al
je 0x6e28
movq 0x18(%rsp), %rax
movq %rax, 0x20(%rsp,%r14,8)
incq %r14
cmpq $0x9, %r14
jne 0x6d73
movq %rbp, 0x8(%rbx)
xorl %r14d, %r14d
movq 0x20(%rsp,%r14,8), %rdi
cmpb $0x40, (%rbp,%rdi)
jne 0x6e03
movq 0x30(%rsp,%r14,8), %rax
cmpb $0x2b, (%rbp,%rax)
jne 0x6e03
leaq (%rax,%rbp), %rsi
movzbl 0x1(%rsi), %ecx
cmpl $0xa, %ecx
je 0x6ea1
cmpl $0xd, %ecx
je 0x6ea1
movq 0x28(%rsp,%r14,8), %rdx
movq 0x38(%rsp,%r14,8), %rcx
subq %rdi, %rdx
subq %rax, %rcx
cmpq %rcx, %rdx
jne 0x6e03
addq %rbp, %rdi
incq %rsi
incq %rdi
decq %rdx
callq 0x4380
testl %eax, %eax
je 0x6ea1
incq %r14
cmpq $0x4, %r14
jne 0x6da3
jmp 0x6e2c
movq (%r14), %rdi
callq 0x4540
testl %eax, %eax
je 0x6d63
movq %rbp, 0x8(%rbx)
movq %r12, 0x20(%rbx)
jmp 0x6e57
movq %rbp, 0x8(%rbx)
xorl %eax, %eax
movq %rax, 0x20(%rbx)
movq %r12, %rdx
movq %r12, %rcx
subq %rax, %rdx
je 0x6e50
addq %rax, %rbp
movq 0x10(%rbx), %rdi
movq %rbp, %rsi
callq 0x45b0
movq 0x20(%rbx), %rcx
subq %rcx, %r12
movq %r12, 0x28(%rbx)
leaq 0xe52a(%rip), %rdi      # 0x15388
leaq 0x8(%rsp), %rsi
callq 0x984c
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rcx
movl 0x20(%rax), %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x28(%rsp)
leaq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x511f
jmp 0x6bc1
movl 0xe589(%rip), %eax      # 0x15420
testl %eax, %eax
jne 0x6bc1
jmp 0x6ea8
movq 0x20(%rsp,%r14,8), %rax
jmp 0x6e2e
movq 0x10(%rsp), %rbx
cmpl $0x0, 0x28(%rbx)
je 0x6ec2
movq %rbx, %rdi
callq 0x5796
movl $0x0, 0x28(%rbx)
movb $0x1, %al
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xe0ee(%rip), %rdi      # 0x14fc8
leaq 0x8a7f(%rip), %rsi      # 0xf960
callq 0x4330
movl $0x1, %edi
callq 0x4430