// File: /workspace/github_cpp_makefile_star2_O1/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 0xe76a(%rip), %eax      # 0x16430
testl %eax, %eax
je 0x7fd9
leaq 0xe6c3(%rip), %rbx      # 0x16398
leaq 0x8(%rsp), %r14
leaq 0x18(%rsp), %r12
movq %rbx, %rdi
movq %r14, %rsi
callq 0x56f2
testb %al, %al
je 0x7d34
movq 0x8(%rsp), %r14
movl 0x18(%r14), %r15d
movq (%r14), %rbx
movl $0x80ffff, %edi         # imm = 0x80FFFF
callq 0x54a0
movq %rax, %rbp
movq 0x10(%r14), %rsi
movq 0x28(%r14), %rdx
movq %rax, %rdi
callq 0x52b0
cmpl $0x2, %r15d
je 0x7d53
cmpl $0x1, %r15d
je 0x7d43
movb $0x1, %al
testl %r15d, %r15d
jne 0x7d5a
movq (%rbx), %rdi
callq 0x5560
jmp 0x7d4c
movl 0xe6f6(%rip), %eax      # 0x16430
testl %eax, %eax
jne 0x7cdf
jmp 0x7fd9
movq 0x8(%rbx), %rdi
callq 0x50f0
testl %eax, %eax
setne %al
jmp 0x7d5a
cmpl $0x4, 0x18(%rbx)
sete %al
testb %al, %al
jne 0x7efa
cmpl $0x2, %r15d
movb %al, 0x7(%rsp)
je 0x7da9
cmpl $0x1, %r15d
je 0x7d92
testl %r15d, %r15d
jne 0x7dc6
movq 0x28(%r14), %rdi
addq %rbp, %rdi
movq (%rbx), %rcx
movl $0x1, %esi
movl $0x800000, %edx         # imm = 0x800000
callq 0x5520
jmp 0x7dc8
movq 0x8(%rbx), %rdi
movq 0x28(%r14), %rsi
addq %rbp, %rsi
movl $0x800000, %edx         # imm = 0x800000
callq 0x5670
jmp 0x7dc2
leaq 0x18(%rbx), %rdi
movq 0x10(%rbx), %rsi
movq 0x28(%r14), %rdx
addq %rbp, %rdx
movl $0x800000, %ecx         # imm = 0x800000
callq 0x55a0
cltq
jmp 0x7dc8
xorl %eax, %eax
movq 0x28(%r14), %r13
cmpq $0xffff, %r13           # imm = 0xFFFF
jae 0x8004
addq %rax, %r13
cmpl $0x2, %r15d
je 0x7e07
cmpl $0x1, %r15d
je 0x7df7
testl %r15d, %r15d
jne 0x7e12
movq (%rbx), %rdi
callq 0x5560
jmp 0x7e00
movq 0x8(%rbx), %rdi
callq 0x50f0
testl %eax, %eax
setne %al
jmp 0x7e0e
cmpl $0x4, 0x18(%rbx)
sete %al
testb %al, %al
je 0x7e1f
movq %rbp, 0x8(%r14)
movq %r13, 0x20(%r14)
jmp 0x7ef3
leaq -0x7fff(%r13), %rax
movq %rax, 0x18(%rsp)
xorl %ebx, %ebx
movq %rbp, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x5e0a
testb %al, %al
je 0x7ecc
movq 0x18(%rsp), %rax
movq %rax, 0x20(%rsp,%rbx,8)
incq %rbx
cmpq $0x9, %rbx
jne 0x7e2d
movq %rbp, 0x8(%r14)
xorl %ebx, %ebx
movq 0x20(%rsp,%rbx,8), %rdi
cmpb $0x40, (%rbp,%rdi)
jne 0x7eb0
movq 0x30(%rsp,%rbx,8), %rax
cmpb $0x2b, (%rbp,%rax)
jne 0x7eb0
leaq (%rax,%rbp), %rsi
movzbl 0x1(%rsi), %ecx
cmpl $0xa, %ecx
je 0x7ebe
cmpl $0xd, %ecx
je 0x7ebe
movq 0x28(%rsp,%rbx,8), %rcx
movq 0x38(%rsp,%rbx,8), %rdx
subq %rdi, %rcx
subq %rax, %rdx
cmpq %rdx, %rcx
jne 0x7eb0
addq %rbp, %rdi
incq %rsi
incq %rdi
decq %rdx
callq 0x53a0
testl %eax, %eax
je 0x7ebe
incq %rbx
cmpq $0x4, %rbx
jne 0x7e5c
movl $0x4, %ebx
cmpl $0x4, %ebx
je 0x7ed0
movl %ebx, %eax
movq 0x20(%rsp,%rax,8), %rsi
jmp 0x7ed2
movq %rbp, 0x8(%r14)
xorl %esi, %esi
movq %rsi, 0x20(%r14)
movq %r13, %rdx
subq %rsi, %rdx
je 0x7eeb
addq 0x8(%r14), %rsi
movq 0x10(%r14), %rdi
callq 0x55d0
subq 0x20(%r14), %r13
movq %r13, 0x28(%r14)
cmpb $0x0, 0x7(%rsp)
je 0x7f12
movq 0x8(%rsp), %rax
movl 0x18(%rax), %ecx
cmpl $0x2, %ecx
je 0x7f60
cmpl $0x1, %ecx
je 0x7f52
testl %ecx, %ecx
je 0x7f7b
jmp 0x7f86
leaq 0xe47f(%rip), %rbx      # 0x16398
movq %rbx, %rdi
leaq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0xa95a
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 0x61c1
jmp 0x7cdf
movq (%rax), %rax
movq 0x8(%rax), %rdi
callq 0x5600
jmp 0x7f86
movq (%rax), %rdi
cmpq $0x0, (%rdi)
je 0x7f86
movq 0x10(%rdi), %rsi
addq $0x18, %rdi
callq 0x56a0
movq 0x8(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0x5360
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rdi
testq %rdi, %rdi
je 0x7f99
callq 0x5470
movq 0x8(%rsp), %r13
testq %r13, %r13
leaq 0xe3f0(%rip), %rbx      # 0x16398
leaq 0x8(%rsp), %r14
je 0x7fcd
movq (%r13), %rdi
testq %rdi, %rdi
je 0x7fbd
callq 0x5330
movq $0x0, (%r13)
movq %r13, %rdi
callq 0x5330
lock
decl 0xe45c(%rip)            # 0x16430
jmp 0x7cdf
movq 0x10(%rsp), %rbx
cmpl $0x0, 0x28(%rbx)
je 0x7ff3
movq %rbx, %rdi
callq 0x689d
movl $0x0, 0x28(%rbx)
movb $0x1, %al
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xdfbd(%rip), %rdi      # 0x15fc8
leaq 0x88f6(%rip), %rsi      # 0x10908
callq 0x5350
movl $0x1, %edi
callq 0x5450
nop