// File: /workspace/github_cpp_makefile_star2_O1/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 0x31fe
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 0x5510
movq %r15, %rdi
movq %r12, %rsi
callq 0x5609
movq 0x70(%rbx), %rax
movsd (%rax), %xmm0
cvtsi2sdl 0xb8(%rbx), %xmm1
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
movl %eax, 0xbc(%rbx)
movsd 0xc8(%rbx), %xmm0
movsd 0x38(%rbx), %xmm2
unpcklps 0x2def(%rip), %xmm2     # xmm2 = xmm2[0],mem[0],xmm2[1],mem[1]
subpd 0x2df7(%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 0x50(%rsp), %rdi
movq %r14, %rsi
callq 0x5490
movq 0x38(%rbx), %rax
xorpd %xmm1, %xmm1
xorpd %xmm0, %xmm0
testq %rax, %rax
je 0x32ac
movsd 0xd0(%rbx), %xmm2
movq 0x50(%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 0x328d
xorps %xmm2, %xmm2
cvtsi2sd %rax, %xmm2
divsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jb 0x32c4
sqrtsd %xmm0, %xmm0
jmp 0x32c9
callq 0x20d0
movsd %xmm0, 0xf0(%rbx)
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x32e8
movq 0x60(%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 0x38(%rsp), %rdi
movq %r14, %rsi
callq 0x5490
movq 0x78(%rbx), %rax
subq 0x70(%rbx), %rax
movq %rax, %rcx
sarq $0x3, %rcx
js 0x3333
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
jmp 0x334b
movq %rcx, %rdx
shrq %rdx
andl $0x1, %ecx
orq %rdx, %rcx
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
movq 0x38(%rsp), %rcx
mulss 0x2cb0(%rip), %xmm0     # 0x6008
testb $0x8, %al
jne 0x337d
addss 0x2ca8(%rip), %xmm0     # 0x600c
cvttss2si %xmm0, %eax
cltq
movsd (%rcx,%rax,8), %xmm0
addsd %xmm0, %xmm0
mulsd 0x2c9d(%rip), %xmm0     # 0x6018
jmp 0x3388
cvttss2si %xmm0, %eax
cltq
movsd (%rcx,%rax,8), %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl 0xb8(%rbx), %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, 0xe0(%rbx)
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x33b6
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x2130
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x5490
movq 0x78(%rbx), %rax
subq 0x70(%rbx), %rax
movq %rax, %rcx
sarq $0x3, %rcx
js 0x33de
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
jmp 0x33f6
movq %rcx, %rdx
shrq %rdx
andl $0x1, %ecx
orq %rdx, %rcx
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
movq 0x20(%rsp), %rcx
mulss 0x2c0d(%rip), %xmm0     # 0x6010
testb $0x8, %al
jne 0x3428
addss 0x2bfd(%rip), %xmm0     # 0x600c
cvttss2si %xmm0, %eax
cltq
movsd (%rcx,%rax,8), %xmm0
addsd %xmm0, %xmm0
mulsd 0x2bf2(%rip), %xmm0     # 0x6018
jmp 0x3433
cvttss2si %xmm0, %eax
cltq
movsd (%rcx,%rax,8), %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl 0xb8(%rbx), %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, 0xd8(%rbx)
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x3461
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x2130
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x5490
movq 0x78(%rbx), %rax
subq 0x70(%rbx), %rax
movq %rax, %rcx
sarq $0x3, %rcx
js 0x3489
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
jmp 0x34a1
movq %rcx, %rdx
shrq %rdx
andl $0x1, %ecx
orq %rdx, %rcx
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
movq 0x8(%rsp), %rcx
mulss 0x2b66(%rip), %xmm0     # 0x6014
testb $0x8, %al
jne 0x34d3
addss 0x2b52(%rip), %xmm0     # 0x600c
cvttss2si %xmm0, %eax
cltq
movsd (%rcx,%rax,8), %xmm0
addsd %xmm0, %xmm0
mulsd 0x2b47(%rip), %xmm0     # 0x6018
jmp 0x34de
cvttss2si %xmm0, %eax
cltq
movsd (%rcx,%rax,8), %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl 0xb8(%rbx), %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, 0xe8(%rbx)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x350c
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x2130
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq