// File: /workspace/github_c_makefile_star2_O2/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)
pushq $0x1
popq %r14
pushq $0x20
popq %rsi
movq %r14, %rdi
callq 0x15f40
testq %rax, %rax
je 0x1f6fa
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rax)
pushq $0x8
popq %rsi
movl $0x100, %edi            # imm = 0x100
movq %rax, 0x10(%rsp)
callq 0x15f40
movq %rax, %r15
movq 0x10(%rsp), %rax
movq %r15, 0x8(%rax)
testq %r15, %r15
je 0x1f6fa
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, (%r15)
movsd 0x81c82(%rip), %xmm0    # 0xa10b0
subsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
cmpq $0x100, %r14            # imm = 0x100
je 0x1f46e
cvtsi2sd %r14d, %xmm1
movsd 0x8(%rsp), %xmm0
callq 0x16530
mulsd 0x82c35(%rip), %xmm0    # 0xa2090
addsd 0x82c35(%rip), %xmm0    # 0xa2098
movsd %xmm0, (%r15,%r14,8)
incq %r14
jmp 0x1f43a
pushq $0x8
popq %rsi
movl $0x400000, %edi         # imm = 0x400000
callq 0x15f40
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x10(%rax)
movq %rcx, 0x30(%rsp)
testq %rcx, %rcx
je 0x1f6fa
pushq $0x8
popq %rsi
movl $0x10000, %edi          # imm = 0x10000
callq 0x15f40
movq %rax, %r14
movq 0x10(%rsp), %rax
testq %r14, %r14
je 0x1f6fa
pushq $0x1
popq %rax
pushq $0x2
popq %rcx
movl %eax, %r12d
cmpl $0x101, %ecx            # imm = 0x101
je 0x1f54a
movl %ecx, 0x28(%rsp)
leal 0x1(%r12), %eax
movl %eax, 0x20(%rsp)
cvtsi2sd %eax, %xmm0
callq 0x14fd0
movsd %xmm0, 0x18(%rsp)
movl %r12d, %r13d
shll $0x8, %r13d
pushq $0x1
popq %rax
movl %eax, %ebp
movl %r12d, %ebx
subl $0x1, %ebx
jb 0x1f53b
leal 0x1(%rbp), %r15d
cvtsi2sd %r15d, %xmm0
callq 0x14fd0
movsd 0x18(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
cvtsi2sd %r12d, %xmm0
callq 0x14fd0
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
orl %r13d, %ebp
movsd %xmm1, (%r14,%rbp,8)
movl %ebx, %r12d
movl %r15d, %ebp
jmp 0x1f4f3
movl 0x28(%rsp), %ecx
incl %ecx
movl 0x20(%rsp), %eax
jmp 0x1f4b9
pushq $0x1
popq %rbx
cmpq $0x40, %rbx
je 0x1f686
movl %ebx, %eax
negl %eax
cvtsi2sd %eax, %xmm1
movsd 0x81c71(%rip), %xmm0    # 0xa11d8
divsd %xmm0, %xmm1
callq 0x16530
movsd %xmm0, 0x8(%rsp)
callq 0x14dd0
movsd %xmm0, 0x18(%rsp)
movsd 0x81b27(%rip), %xmm0    # 0xa10b0
subsd 0x8(%rsp), %xmm0
callq 0x14dd0
movsd %xmm0, 0x28(%rsp)
movq %rbx, 0x38(%rsp)
shlq $0x13, %rbx
addq 0x30(%rsp), %rbx
movq %rbx, 0x40(%rsp)
xorl %ebx, %ebx
pushq $0x1
popq %rbp
cmpq $0x100, %rbp            # imm = 0x100
je 0x1f679
movq %rbp, %r15
shlq $0x8, %r15
movq %rbp, %r12
shlq $0xb, %r12
addq 0x40(%rsp), %r12
movq %r15, %rax
cvtsi2sd %ebp, %xmm2
orq %rbp, %rax
mulsd 0x18(%rsp), %xmm2
addsd (%r14,%rax,8), %xmm2
pushq $0x1
popq %r13
movq %rbx, 0x20(%rsp)
movq %rbp, %rax
movsd 0x82aa4(%rip), %xmm1    # 0xa20a0
leaq 0x1(%rbx), %rcx
movsd %xmm1, (%r12,%rax,8)
testq %rcx, %rcx
jle 0x1f669
movl %ebx, %eax
orl %r15d, %eax
cltq
cvtsi2sd %ebx, %xmm1
mulsd 0x18(%rsp), %xmm1
addsd (%r14,%rax,8), %xmm1
cvtsi2sd %r13d, %xmm0
mulsd 0x28(%rsp), %xmm0
addsd %xmm1, %xmm0
subsd %xmm2, %xmm0
movsd %xmm2, 0x8(%rsp)
callq 0x14450
callq 0x145d0
movsd 0x8(%rsp), %xmm1
addsd %xmm1, %xmm0
subsd %xmm0, %xmm1
mulsd 0x82a4d(%rip), %xmm1    # 0xa20a8
movl %ebx, %eax
decq %rbx
incl %r13d
movapd %xmm0, %xmm2
jmp 0x1f5fc
incq %rbp
movq 0x20(%rsp), %rbx
incq %rbx
jmp 0x1f5b2
movq 0x38(%rsp), %rbx
incq %rbx
jmp 0x1f54d
pushq $0x8
popq %rsi
movl $0x10000, %edi          # imm = 0x10000
callq 0x15f40
movq 0x10(%rsp), %rcx
movq %rax, 0x18(%rcx)
testq %rax, %rax
je 0x1f6ed
xorl %ecx, %ecx
movl $0x800, %edx            # imm = 0x800
movsd 0x82a00(%rip), %xmm0    # 0xa20b0
movq %r14, %rsi
cmpq $0x100, %rcx            # imm = 0x100
je 0x1f6ed
cvtsi2sd %ecx, %xmm1
xorl %edi, %edi
cmpq $0x100, %rdi            # imm = 0x100
je 0x1f6e2
movapd %xmm1, %xmm2
mulsd %xmm0, %xmm2
addsd (%rsi,%rdi,8), %xmm2
movsd %xmm2, (%rax,%rdi,8)
incq %rdi
jmp 0x1f6c2
incq %rcx
addq %rdx, %rsi
addq %rdx, %rax
jmp 0x1f6b3
movq %r14, %rdi
callq 0x14e30
movq 0x10(%rsp), %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq