// File: /workspace/github_c_makefile_star2_O1/xiongxu[P]bam2bedGraph2/samtools-0.1.19/errmod.c
// Function: errmod_init
errmod_t *errmod_init(float depcorr)
{
	errmod_t *em;
	em = (errmod_t*)calloc(1, sizeof(errmod_t));
	em->depcorr = depcorr;
	em->coef = cal_coef(depcorr, 0.03);
	return em;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movss %xmm0, 0x18(%rsp)
movl $0x1, %ebx
movl $0x1, %edi
movl $0x10, %esi
callq 0x3610
xorps %xmm0, %xmm0
cvtss2sd 0x18(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
movq %rax, 0x48(%rsp)
movsd %xmm0, (%rax)
movl $0x1, %edi
movl $0x18, %esi
callq 0x3610
movq %rax, %r14
movl $0x100, %edi            # imm = 0x100
movl $0x8, %esi
callq 0x3610
movq %rax, %r15
movq %rax, (%r14)
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, (%r15)
movsd 0x2aba7(%rip), %xmm0    # 0x409b8
subsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
xorps %xmm1, %xmm1
cvtsi2sd %ebx, %xmm1
movsd 0x18(%rsp), %xmm0
callq 0x3790
mulsd 0x2aee9(%rip), %xmm0    # 0x40d20
addsd 0x2aee9(%rip), %xmm0    # 0x40d28
movsd %xmm0, (%r15,%rbx,8)
incq %rbx
cmpq $0x100, %rbx            # imm = 0x100
jne 0x15e1d
movl $0x400000, %edi         # imm = 0x400000
movl $0x8, %esi
callq 0x3610
movq %r14, 0x40(%rsp)
movq %rax, 0x28(%rsp)
movq %rax, 0x8(%r14)
movl $0x10000, %edi          # imm = 0x10000
movl $0x8, %esi
callq 0x3610
movq %rax, %r15
movl $0x1, %ebx
movl %ebx, %r14d
leal 0x1(%r14), %ebx
xorps %xmm0, %xmm0
cvtsi2sd %ebx, %xmm0
callq 0x33d0
movsd %xmm0, 0x30(%rsp)
movl %r14d, %ebp
shll $0x8, %ebp
movl $0x2, %r12d
leal -0x1(%r12), %r13d
orl %ebp, %r13d
xorps %xmm0, %xmm0
cvtsi2sd %r12d, %xmm0
callq 0x33d0
movsd 0x30(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x18(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %r14d, %xmm0
callq 0x33d0
movsd 0x18(%rsp), %xmm1
subsd %xmm0, %xmm1
movslq %r13d, %rax
movsd %xmm1, (%r15,%rax,8)
incl %r12d
decl %r14d
jne 0x15eaa
cmpl $0x100, %ebx            # imm = 0x100
jne 0x15e85
movq 0x28(%rsp), %rbp
addq $0x80808, %rbp          # imm = 0x80808
movl $0x1, %eax
movq %rax, 0x50(%rsp)
negl %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
movsd 0x2ae0a(%rip), %xmm0    # 0x40d30
divsd %xmm0, %xmm1
callq 0x3790
movsd %xmm0, 0x18(%rsp)
callq 0x3330
movsd %xmm0, 0x68(%rsp)
movsd 0x2aa70(%rip), %xmm0    # 0x409b8
subsd 0x18(%rsp), %xmm0
callq 0x3330
movq %rbp, 0x28(%rsp)
movl $0x1, %r13d
movsd %xmm0, 0x60(%rsp)
movq %r13, %rbx
shlq $0x8, %rbx
xorl %r12d, %r12d
movq %rbp, 0x58(%rsp)
movq %r13, %r14
fldz
fstpt 0x30(%rsp)
xorps %xmm2, %xmm2
cvtsi2sd %r14d, %xmm2
movl %r14d, %eax
orl %ebx, %eax
mulsd 0x68(%rsp), %xmm2
addsd (%r15,%rax,8), %xmm2
xorps %xmm1, %xmm1
cvtsi2sd %r12d, %xmm1
mulsd %xmm0, %xmm1
addsd %xmm2, %xmm1
movsd %xmm1, 0x70(%rsp)
fldl 0x70(%rsp)
fstpt (%rsp)
callq 0x32c0
fldt 0x30(%rsp)
fadd %st, %st(1)
fld %st(1)
fstpt 0x18(%rsp)
fdivp %st, %st(1)
fstpt (%rsp)
callq 0x35c0
movsd 0x60(%rsp), %xmm0
fmull 0x2ad5f(%rip)           # 0x40d38
fstpl (%rbp)
leaq -0x1(%r14), %rax
addq $-0x8, %rbp
incl %r12d
fldt 0x18(%rsp)
testq %r14, %r14
movq %rax, %r14
jg 0x15f78
fstp %st(0)
incq %r13
movq 0x58(%rsp), %rbp
addq $0x808, %rbp            # imm = 0x808
cmpq $0x100, %r13            # imm = 0x100
jne 0x15f64
movq 0x50(%rsp), %rax
incq %rax
movq 0x28(%rsp), %rbp
addq $0x80000, %rbp          # imm = 0x80000
cmpq $0x40, %rax
jne 0x15f10
movl $0x10000, %edi          # imm = 0x10000
movl $0x8, %esi
callq 0x3610
movq 0x40(%rsp), %rbx
movq %rax, 0x10(%rbx)
xorl %ecx, %ecx
movsd 0x2acef(%rip), %xmm0    # 0x40d40
movl $0x800, %edx            # imm = 0x800
movq %r15, %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 0x16062
incq %rcx
addq %rdx, %rax
addq %rdx, %rsi
cmpq $0x100, %rcx            # imm = 0x100
jne 0x16059
movq %r15, %rdi
callq 0x3350
movq 0x48(%rsp), %rax
movq %rbx, 0x8(%rax)
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq