// File: /workspace/github_cpp_makefile_star2_O2/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, %r12
leaq 0xd431(%rip), %rbx      # 0x14398
leaq 0x8(%rsp), %r14
movq %rdi, 0x18(%rsp)
movl 0xd4b9(%rip), %eax      # 0x14430
testl %eax, %eax
je 0x7233
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8cc6
testb %al, %al
je 0x6f71
movq %r14, %r13
movq 0x8(%rsp), %r15
movl 0x18(%r15), %ebx
movq (%r15), %r14
movl $0x80ffff, %edi         # imm = 0x80FFFF
callq 0x5470
movq %rax, %rbp
movq 0x10(%r15), %rsi
movq 0x28(%r15), %rdx
movq %rax, %rdi
callq 0x5280
movq %r14, %rdi
movl %ebx, %esi
callq 0x8f0b
testb %al, %al
je 0x6fe6
movq 0x8(%rsp), %rax
movl 0x18(%rax), %ecx
cmpl $0x2, %ecx
je 0x703d
cmpl $0x1, %ecx
movq %r13, %r14
je 0x7018
testl %ecx, %ecx
je 0x705b
jmp 0x7066
cmpl $0x2, %ebx
je 0x7094
cmpl $0x1, %ebx
je 0x7026
testl %ebx, %ebx
jne 0x70b1
movq 0x28(%r15), %rdi
addq %rbp, %rdi
movq (%r14), %rcx
movl $0x800000, %edx         # imm = 0x800000
pushq $0x1
popq %rsi
callq 0x5500
jmp 0x70b3
movq (%rax), %rax
movq 0x8(%rax), %rdi
callq 0x55e0
jmp 0x7066
movq 0x8(%r14), %rdi
movq 0x28(%r15), %rsi
addq %rbp, %rsi
movl $0x800000, %edx         # imm = 0x800000
callq 0x5650
jmp 0x70ad
movq (%rax), %rdi
cmpq $0x0, (%rdi)
movq %r13, %r14
je 0x7066
movq 0x10(%rdi), %rsi
addq $0x18, %rdi
callq 0x5690
movq 0x8(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0x5330
movq 0x8(%rsp), %rbx
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x7087
callq 0x5430
movq 0x8(%rsp), %rbx
testq %rbx, %rbx
je 0x720c
movq %rbx, %rdi
callq 0x8f40
jmp 0x720e
leaq 0x18(%r14), %rdi
movq 0x10(%r14), %rsi
movq 0x28(%r15), %rdx
addq %rbp, %rdx
movl $0x800000, %ecx         # imm = 0x800000
callq 0x5570
cltq
jmp 0x70b3
xorl %eax, %eax
movq 0x28(%r15), %r12
cmpq $0xffff, %r12           # imm = 0xFFFF
jae 0x725a
addq %rax, %r12
movq %r14, %rdi
movl %ebx, %esi
callq 0x8f0b
testb %al, %al
je 0x70ec
movq %rbp, 0x8(%r15)
movq %r12, 0x20(%r15)
leaq 0xd2b4(%rip), %rbx      # 0x14398
movq %r13, %r14
jmp 0x71d5
leaq -0x7fff(%r12), %rax
movq %rax, 0x10(%rsp)
xorl %ebx, %ebx
movq %r13, %r14
leaq 0x10(%rsp), %r13
cmpq $0x9, %rbx
je 0x712e
movq %rbp, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x5af6
testb %al, %al
je 0x719f
movq 0x10(%rsp), %rax
movq %rax, 0x20(%rsp,%rbx,8)
incq %rbx
jmp 0x7103
movq %rbp, 0x8(%r15)
xorl %ebx, %ebx
cmpq $0x4, %rbx
je 0x71a3
movq 0x20(%rsp,%rbx,8), %rdi
cmpb $0x40, (%rbp,%rdi)
jne 0x719a
movq 0x30(%rsp,%rbx,8), %rax
cmpb $0x2b, (%rbp,%rax)
jne 0x719a
leaq (%rax,%rbp), %rsi
movzbl 0x1(%rsi), %ecx
cmpl $0xa, %ecx
je 0x7229
cmpl $0xd, %ecx
je 0x7229
movq 0x28(%rsp,%rbx,8), %rdx
movq 0x38(%rsp,%rbx,8), %rcx
subq %rdi, %rdx
subq %rax, %rcx
cmpq %rcx, %rdx
jne 0x719a
addq %rbp, %rdi
incq %rsi
incq %rdi
decq %rdx
callq 0x5370
testl %eax, %eax
je 0x7229
incq %rbx
jmp 0x7134
movq %rbp, 0x8(%r15)
xorl %eax, %eax
movq %rax, 0x20(%r15)
movq %r12, %rdx
movq %r12, %rcx
subq %rax, %rdx
leaq 0xd1df(%rip), %rbx      # 0x14398
je 0x71ce
addq %rax, %rbp
movq 0x10(%r15), %rdi
movq %rbp, %rsi
callq 0x55b0
movq 0x20(%r15), %rcx
subq %rcx, %r12
movq %r12, 0x28(%r15)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x97c8
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 0x18(%rsp), %r12
movq %r12, %rsi
callq 0x5d40
jmp 0x6f7f
xorl %ebx, %ebx
movq %rbx, %rdi
callq 0x5310
lock
decl 0xd213(%rip)            # 0x14430
leaq 0xd174(%rip), %rbx      # 0x14398
jmp 0x6f7f
movq 0x20(%rsp,%rbx,8), %rax
jmp 0x71a5
cmpl $0x0, 0x28(%r12)
je 0x7249
movq %r12, %rdi
callq 0x61fb
andl $0x0, 0x28(%r12)
movb $0x1, %al
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xcd67(%rip), %rdi      # 0x13fc8
leaq 0x66c8(%rip), %rsi      # 0xd930
callq 0x5320
pushq $0x1
popq %rdi
callq 0x5410
nop