// File: /workspace/github_c_makefile_star2_O1/samtools[P]htslib/errmod.c
// Function: errmod_init
errmod_t *errmod_init(double depcorr)
{
    errmod_t *em;
    em = (errmod_t*)calloc(1, sizeof(errmod_t));
    if (!em) return NULL;
    em->depcorr = depcorr;
    cal_coef(em, depcorr, 0.03);
    return em;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movsd %xmm0, 0x8(%rsp)
movl $0x1, %edi
movl $0x20, %esi
callq 0x15ea0
testq %rax, %rax
je 0x214c8
movq %rax, %r15
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rax)
movl $0x100, %edi            # imm = 0x100
movl $0x8, %esi
callq 0x15ea0
movq %rax, 0x8(%r15)
testq %rax, %rax
je 0x216ab
movq %rax, %r14
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, (%r14)
movsd 0xaacaf(%rip), %xmm0    # 0xcc060
subsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movl $0x1, %ebx
xorps %xmm1, %xmm1
cvtsi2sd %ebx, %xmm1
movsd 0x8(%rsp), %xmm0
callq 0x16480
mulsd 0xabc94(%rip), %xmm0    # 0xcd070
addsd 0xabc94(%rip), %xmm0    # 0xcd078
movsd %xmm0, (%r14,%rbx,8)
incq %rbx
cmpq $0x100, %rbx            # imm = 0x100
jne 0x213c2
movl $0x400000, %edi         # imm = 0x400000
movl $0x8, %esi
callq 0x15ea0
movq %rax, 0x10(%r15)
movq %rax, 0x28(%rsp)
testq %rax, %rax
je 0x216ab
movq %r15, 0x20(%rsp)
movl $0x10000, %edi          # imm = 0x10000
movl $0x8, %esi
callq 0x15ea0
testq %rax, %rax
je 0x214d0
movq %rax, %r14
movl $0x1, %eax
movl $0x2, %ebx
movl %eax, %r15d
leal 0x1(%r15), %eax
movl %eax, 0x18(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
callq 0x14f70
movsd %xmm0, 0x10(%rsp)
movl %r15d, %r12d
shll $0x8, %r12d
movl $0x2, %r13d
leal -0x1(%r13), %ebp
orl %r12d, %ebp
xorps %xmm0, %xmm0
cvtsi2sd %r13d, %xmm0
callq 0x14f70
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %r15d, %xmm0
callq 0x14f70
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, (%r14,%rbp,8)
incl %r13d
decl %r15d
jne 0x2146b
incl %ebx
cmpl $0x101, %ebx            # imm = 0x101
movl 0x18(%rsp), %eax
jne 0x21441
jmp 0x214d3
xorl %r15d, %r15d
jmp 0x216ab
xorl %r14d, %r14d
testq %r14, %r14
je 0x216a6
movl $0x1, %ebx
movl %ebx, %eax
negl %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
movsd 0xaacb4(%rip), %xmm0    # 0xcc1a8
divsd %xmm0, %xmm1
callq 0x16480
movsd %xmm0, 0x8(%rsp)
callq 0x14d80
movsd %xmm0, 0x10(%rsp)
movsd 0xaab4a(%rip), %xmm0    # 0xcc060
subsd 0x8(%rsp), %xmm0
callq 0x14d80
movsd 0x10(%rsp), %xmm2
movapd %xmm0, %xmm3
movq %rbx, 0x30(%rsp)
shlq $0x13, %rbx
addq 0x28(%rsp), %rbx
movq %rbx, 0x38(%rsp)
xorl %ebx, %ebx
movl $0x1, %r13d
movsd %xmm0, 0x18(%rsp)
movq %r13, %r15
shlq $0x8, %r15
movq %r13, %r12
shlq $0xb, %r12
movq %r15, %rax
xorps %xmm4, %xmm4
cvtsi2sd %r13d, %xmm4
orq %r13, %rax
mulsd %xmm2, %xmm4
addsd (%r14,%rax,8), %xmm4
addq 0x38(%rsp), %r12
movabsq $0x7ff0000000000000, %rax # imm = 0x7FF0000000000000
movq %rax, (%r12,%r13,8)
movl $0x1, %ebp
movq %rbx, 0x40(%rsp)
movsd %xmm4, 0x8(%rsp)
movl %ebx, %eax
orl %r15d, %eax
cltq
xorps %xmm1, %xmm1
cvtsi2sd %ebx, %xmm1
mulsd %xmm2, %xmm1
addsd (%r14,%rax,8), %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %ebp, %xmm0
mulsd %xmm3, %xmm0
addsd %xmm1, %xmm0
subsd %xmm4, %xmm0
callq 0x14420
callq 0x145a0
movsd 0x18(%rsp), %xmm3
movsd 0x10(%rsp), %xmm2
movsd 0x8(%rsp), %xmm1
addsd %xmm1, %xmm0
subsd %xmm0, %xmm1
mulsd 0xaba94(%rip), %xmm1    # 0xcd080
movl %ebx, %eax
movsd %xmm1, (%r12,%rax,8)
leaq -0x1(%rbx), %rax
incq %rbx
incl %ebp
movapd %xmm0, %xmm4
cmpq $0x1, %rbx
movq %rax, %rbx
jg 0x2158f
incq %r13
movq 0x40(%rsp), %rbx
incq %rbx
cmpq $0x100, %r13            # imm = 0x100
jne 0x2154c
movq 0x30(%rsp), %rbx
incq %rbx
cmpq $0x40, %rbx
jne 0x214e1
movl $0x10000, %edi          # imm = 0x10000
movl $0x8, %esi
callq 0x15ea0
movq 0x20(%rsp), %r15
movq %rax, 0x18(%r15)
testq %rax, %rax
je 0x2169c
xorl %ecx, %ecx
movsd 0xaba2d(%rip), %xmm0    # 0xcd088
movl $0x800, %edx            # imm = 0x800
movq %r14, %rsi
xorps %xmm1, %xmm1
cvtsi2sd %ecx, %xmm1
xorl %edi, %edi
movapd %xmm1, %xmm2
mulsd %xmm0, %xmm2
addsd (%rsi,%rdi,8), %xmm2
movsd %xmm2, (%rax,%rdi,8)
incq %rdi
cmpq $0x100, %rdi            # imm = 0x100
jne 0x2166c
incq %rcx
addq %rdx, %rax
addq %rdx, %rsi
cmpq $0x100, %rcx            # imm = 0x100
jne 0x21663
movq %r14, %rdi
callq 0x14dd0
jmp 0x216ab
movq 0x20(%rsp), %r15
movq %r15, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq