// File: /workspace/github_cpp_makefile_star2_O3/rpetit3[P]fastq-scan/fastq-scan.cpp
// Function: Stats::qual_stats()
void qual_stats(void) {
            sort(per_read_qual.begin(), per_read_qual.end());
            qual_min = per_read_qual.front() - phred;
            qual_mean = (qual_sum / read_total) - phred;
            qual_std = get_std(per_read_qual, qual_mean);
            qual_max = per_read_qual.back() - phred;
            qual_25th = get_percentile(per_read_qual, per_read_qual.size(), 0.25) - phred;
            qual_median = get_percentile(per_read_qual, per_read_qual.size(), 0.50) - phred;
            qual_75th = get_percentile(per_read_qual, per_read_qual.size(), 0.75) - phred;
        }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
leaq 0x70(%rdi), %r14
movq 0x70(%rdi), %r15
movq 0x78(%rdi), %r12
cmpq %r12, %r15
je 0x31ef
movq %r12, %rax
subq %r15, %rax
sarq $0x3, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r15, %rdi
movq %r12, %rsi
callq 0x54ca
movq %r15, %rdi
movq %r12, %rsi
callq 0x55c3
movq (%r14), %r15
movsd (%r15), %xmm0
cvtsi2sdl 0xb8(%rbx), %xmm1
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
movl %eax, 0xbc(%rbx)
movsd 0xc8(%rbx), %xmm0
movsd 0x38(%rbx), %xmm2
unpcklps 0x2e01(%rip), %xmm2     # xmm2 = xmm2[0],mem[0],xmm2[1],mem[1]
subpd 0x2e09(%rip), %xmm2     # 0x6030
movapd %xmm2, %xmm3
unpckhpd %xmm2, %xmm3            # xmm3 = xmm3[1],xmm2[1]
addsd %xmm2, %xmm3
divsd %xmm3, %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0xd0(%rbx)
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x544a
movq 0x38(%rbx), %rax
xorpd %xmm1, %xmm1
xorpd %xmm0, %xmm0
testq %rax, %rax
je 0x329a
movsd 0xd0(%rbx), %xmm2
movq 0x8(%rsp), %rcx
xorps %xmm3, %xmm3
cvtsi2sdl 0xb8(%rbx), %xmm3
xorl %edx, %edx
movsd (%rcx,%rdx,8), %xmm4
subsd %xmm3, %xmm4
subsd %xmm2, %xmm4
mulsd %xmm4, %xmm4
addsd %xmm4, %xmm0
incq %rdx
movl %edx, %esi
cmpq %rsi, %rax
ja 0x327b
xorps %xmm2, %xmm2
cvtsi2sd %rax, %xmm2
divsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jb 0x32b2
sqrtsd %xmm0, %xmm0
jmp 0x32b7
callq 0x20d0
movsd %xmm0, 0xf0(%rbx)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x32d6
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x2130
movq 0x78(%rbx), %rax
movsd -0x8(%rax), %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl 0xb8(%rbx), %xmm1
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
movl %eax, 0xc0(%rbx)
leaq 0x50(%rsp), %rdi
movq %r14, %rsi
callq 0x544a
movq 0x78(%rbx), %rax
subq 0x70(%rbx), %rax
movq %rax, %rcx
sarq $0x3, %rcx
js 0x3321
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
jmp 0x3339
movq %rcx, %rdx
shrq %rdx
andl $0x1, %ecx
orq %rdx, %rcx
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
movq 0x50(%rsp), %rdi
mulss 0x2cc2(%rip), %xmm0     # 0x6008
testb $0x8, %al
jne 0x336b
addss 0x2cba(%rip), %xmm0     # 0x600c
cvttss2si %xmm0, %eax
cltq
movsd (%rdi,%rax,8), %xmm0
addsd %xmm0, %xmm0
mulsd 0x2caf(%rip), %xmm0     # 0x6018
jmp 0x3376
cvttss2si %xmm0, %eax
cltq
movsd (%rdi,%rax,8), %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl 0xb8(%rbx), %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, 0xe0(%rbx)
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x2130
leaq 0x38(%rsp), %rdi
movq %r14, %rsi
callq 0x544a
movq 0x78(%rbx), %rax
subq 0x70(%rbx), %rax
movq %rax, %rcx
sarq $0x3, %rcx
js 0x33c2
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
jmp 0x33da
movq %rcx, %rdx
shrq %rdx
andl $0x1, %ecx
orq %rdx, %rcx
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
movq 0x38(%rsp), %rdi
mulss 0x2c29(%rip), %xmm0     # 0x6010
testb $0x8, %al
jne 0x340c
addss 0x2c19(%rip), %xmm0     # 0x600c
cvttss2si %xmm0, %eax
cltq
movsd (%rdi,%rax,8), %xmm0
addsd %xmm0, %xmm0
mulsd 0x2c0e(%rip), %xmm0     # 0x6018
jmp 0x3417
cvttss2si %xmm0, %eax
cltq
movsd (%rdi,%rax,8), %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl 0xb8(%rbx), %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, 0xd8(%rbx)
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x2130
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x544a
movq 0x78(%rbx), %rax
subq 0x70(%rbx), %rax
movq %rax, %rcx
sarq $0x3, %rcx
js 0x3463
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
jmp 0x347b
movq %rcx, %rdx
shrq %rdx
andl $0x1, %ecx
orq %rdx, %rcx
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
movq 0x20(%rsp), %rdi
mulss 0x2b8c(%rip), %xmm0     # 0x6014
testb $0x8, %al
jne 0x34ad
addss 0x2b78(%rip), %xmm0     # 0x600c
cvttss2si %xmm0, %eax
cltq
movsd (%rdi,%rax,8), %xmm0
addsd %xmm0, %xmm0
mulsd 0x2b6d(%rip), %xmm0     # 0x6018
jmp 0x34b8
cvttss2si %xmm0, %eax
cltq
movsd (%rdi,%rax,8), %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl 0xb8(%rbx), %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, 0xe8(%rbx)
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x2130
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq