// File: /workspace/github_cpp_makefile_star2_O1/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 0x5b192(%rip), %rsi     # 0x63f98
movq %r12, %rdi
callq 0x48e0
testq %rax, %rax
je 0x8e25
movq %rax, %r15
movq %rax, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x42d0
jmp 0x8e28
xorl %r15d, %r15d
movq %r15, 0x8(%r14)
leaq (,%r12,8), %r13
testl %r12d, %r12d
movq $-0x1, %rax
cmovsq %rax, %r13
movq 0x5b14f(%rip), %rsi     # 0x63f98
movq %r13, %rdi
callq 0x48e0
testq %rax, %rax
je 0x8e68
movq %rax, %r15
movq %rax, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x42d0
jmp 0x8e6b
xorl %r15d, %r15d
movq %r12, %rbx
shlq $0x5, %rbx
leaq 0x8(%rbx), %rbp
testl %r12d, %r12d
movq %r15, 0x10(%r14)
movq $-0x1, %rax
cmovsq %rax, %rbp
movq 0x5b109(%rip), %rsi     # 0x63f98
movq %rbp, %rdi
callq 0x48e0
testq %rax, %rax
je 0x8ec7
movq %r12, (%rax)
leaq 0x8(%rax), %rcx
testl %r12d, %r12d
je 0x8ec9
addq $0x18, %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
addq $0x20, %rax
addq $-0x20, %rbx
jne 0x8eac
jmp 0x8ec9
xorl %ecx, %ecx
movq %rcx, 0x18(%r14)
movq 0x5b0c4(%rip), %rsi     # 0x63f98
movq %rbp, %rdi
callq 0x48e0
testq %rax, %rax
je 0x8f10
movq %r12, (%rax)
leaq 0x8(%rax), %rcx
testl %r12d, %r12d
je 0x8f12
addq $0x18, %rax
shlq $0x5, %r12
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
addq $0x20, %rax
addq $-0x20, %r12
jne 0x8ef5
jmp 0x8f12
xorl %ecx, %ecx
movq %rcx, 0x20(%r14)
movq 0x5b07b(%rip), %rsi     # 0x63f98
movq %r13, %rdi
callq 0x48e0
testq %rax, %rax
je 0x8f3c
movq %rax, %r15
movq %rax, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x42d0
jmp 0x8f3f
xorl %r15d, %r15d
movq %r15, 0x28(%r14)
movq 0x8(%rsp), %rax
movq %rax, 0x30(%r14)
cmpl $0x0, (%r14)
jle 0x901a
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 0x9476
movq 0x18(%r14), %rdi
addq %r13, %rdi
movq %r15, %rsi
callq 0x4660
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x8fbc
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 0x5afb8(%rip), %rsi     # 0x63f98
callq 0x48e0
testq %rax, %rax
je 0x8ffc
movq %rax, %r12
movq %rax, %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x42d0
jmp 0x8fff
xorl %r12d, %r12d
movq 0x28(%r14), %rax
movq %r12, (%rax,%rbx,8)
incq %rbx
movslq (%r14), %rax
addq $0x20, %r13
cmpq %rax, %rbx
jl 0x8f60
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop