// File: /workspace/github_cpp_makefile_star2_O3/karel-brinda[P]ococo/src/stats.h
// Function: ococo::stats_t<unsigned short, 3, 4>::stats_t(ococo::params_t*, bam_hdr_t&)
stats_t<T, counter_size, refbase_size>::stats_t(ococo::params_t *params,
                                                bam_hdr_t &h)
    : n_seqs(h.n_targets),
      seq_active(new (std::nothrow) bool[n_seqs]()),
      seq_len(new (std::nothrow) int64_t[n_seqs]()),
      seq_name(new (std::nothrow) std::string[n_seqs]()),
      seq_comment(new (std::nothrow) std::string[n_seqs]()),
      seq_stats(new (std::nothrow) T *[n_seqs]()),
      params(params) {
    for (int seqid = 0; seqid < n_seqs; seqid++) {
        seq_len[seqid]    = h.target_len[seqid];
        seq_active[seqid] = true;
        seq_name[seqid]   = std::string(h.target_name[seqid]);

        seq_stats[seqid] = new (std::nothrow) T[seq_len[seqid]]();
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, 0x8(%rsp)
movq %rdi, %r14
movq %rdx, 0x10(%rsp)
movslq (%rdx), %r12
movl %r12d, (%rdi)
movq 0x5925e(%rip), %rsi     # 0x61f98
movq %r12, %rdi
callq 0x48e0
movq %rax, %r15
testq %rax, %rax
je 0x8d57
movq %r15, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x42d0
movq %r15, 0x8(%r14)
leaq (,%r12,8), %r13
testl %r12d, %r12d
movq $-0x1, %rax
cmovsq %rax, %r13
movq 0x59220(%rip), %rsi     # 0x61f98
movq %r13, %rdi
callq 0x48e0
movq %rax, %r15
testq %rax, %rax
je 0x8d95
movq %r15, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x42d0
movq %r12, %rbx
shlq $0x5, %rbx
leaq 0x8(%rbx), %rbp
testl %r12d, %r12d
movq %r15, 0x10(%r14)
movq $-0x1, %rax
cmovsq %rax, %rbp
movq 0x591df(%rip), %rsi     # 0x61f98
movq %rbp, %rdi
callq 0x48e0
testq %rax, %rax
je 0x8df1
movq %r12, (%rax)
leaq 0x8(%rax), %rcx
testl %r12d, %r12d
je 0x8df3
addq $0x18, %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
addq $0x20, %rax
addq $-0x20, %rbx
jne 0x8dd6
jmp 0x8df3
xorl %ecx, %ecx
movq %rcx, 0x18(%r14)
movq 0x5919a(%rip), %rsi     # 0x61f98
movq %rbp, %rdi
callq 0x48e0
testq %rax, %rax
je 0x8e3d
movq %r12, (%rax)
leaq 0x8(%rax), %rcx
testl %r12d, %r12d
je 0x8e3f
addq $0x18, %rax
movq %r12, %rdx
shlq $0x5, %rdx
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
addq $0x20, %rax
addq $-0x20, %rdx
jne 0x8e22
jmp 0x8e3f
xorl %ecx, %ecx
movq %rcx, 0x20(%r14)
movq 0x5914e(%rip), %rsi     # 0x61f98
movq %r13, %rdi
callq 0x48e0
movq %rax, %r15
testq %rax, %rax
je 0x8e67
movq %r15, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x42d0
movq %r15, 0x28(%r14)
movq 0x8(%rsp), %rax
movq %rax, 0x30(%r14)
testl %r12d, %r12d
jle 0x8f3c
xorl %r13d, %r13d
leaq 0x18(%rsp), %r15
xorl %ebx, %ebx
movq 0x10(%rsp), %rdx
movq 0x10(%rdx), %rax
movl (%rax,%rbx,4), %eax
movq 0x10(%r14), %rcx
movq %rax, (%rcx,%rbx,8)
movq 0x8(%r14), %rax
movb $0x1, (%rax,%rbx)
movq 0x20(%rdx), %rax
movq (%rax,%rbx,8), %rsi
movq %r15, %rdi
leaq 0x7(%rsp), %rdx
callq 0x93aa
movq 0x18(%r14), %rdi
addq %r13, %rdi
movq %r15, %rsi
callq 0x4660
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x8ee3
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x4540
movq 0x10(%r14), %rax
movq (%rax,%rbx,8), %rax
leaq (%rax,%rax), %rbp
testq %rax, %rax
movq $-0x1, %rax
cmovsq %rax, %rbp
movq %rbp, %rdi
movq 0x59091(%rip), %rsi     # 0x61f98
callq 0x48e0
movq %rax, %r12
testq %rax, %rax
je 0x8f21
movq %r12, %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x42d0
movq 0x28(%r14), %rax
movq %r12, (%rax,%rbx,8)
incq %rbx
movslq (%r14), %rax
addq $0x20, %r13
cmpq %rax, %rbx
jl 0x8e87
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop