// File: /workspace/github_c_makefile_star2_O3/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 0x2b925(%rip), %xmm0    # 0x419f8
subsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
xorps %xmm1, %xmm1
cvtsi2sd %ebx, %xmm1
movsd 0x18(%rsp), %xmm0
callq 0x3790
mulsd 0x2bc77(%rip), %xmm0    # 0x41d70
addsd 0x2bc77(%rip), %xmm0    # 0x41d78
movsd %xmm0, (%r15,%rbx,8)
incq %rbx
cmpq $0x100, %rbx            # imm = 0x100
jne 0x160df
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 0x1616c
cmpl $0x100, %ebx            # imm = 0x100
jne 0x16147
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 0x2bb98(%rip), %xmm0    # 0x41d80
divsd %xmm0, %xmm1
callq 0x3790
movsd %xmm0, 0x18(%rsp)
callq 0x3330
movsd %xmm0, 0x68(%rsp)
movsd 0x2b7ee(%rip), %xmm0    # 0x419f8
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 0x2baed(%rip)           # 0x41d88
fstpl (%rbp)
leaq -0x1(%r14), %rax
addq $-0x8, %rbp
incl %r12d
fldt 0x18(%rsp)
testq %r14, %r14
movq %rax, %r14
jg 0x1623a
fstp %st(0)
incq %r13
movq 0x58(%rsp), %rbp
addq $0x808, %rbp            # imm = 0x808
cmpq $0x100, %r13            # imm = 0x100
jne 0x16226
movq 0x50(%rsp), %rax
incq %rax
movq 0x28(%rsp), %rbp
addq $0x80000, %rbp          # imm = 0x80000
cmpq $0x40, %rax
jne 0x161d2
movl $0x10000, %edi          # imm = 0x10000
movl $0x8, %esi
callq 0x3610
movq 0x40(%rsp), %rbx
movq %rax, 0x10(%rbx)
xorl %ecx, %ecx
movapd 0x2ba4d(%rip), %xmm0    # 0x41d60
movl $0x800, %edx            # imm = 0x800
movq %r15, %rsi
xorps %xmm1, %xmm1
cvtsi2sd %ecx, %xmm1
unpcklpd %xmm1, %xmm1            # xmm1 = xmm1[0,0]
xorl %edi, %edi
movupd (%rsi,%rdi,8), %xmm2
movapd %xmm1, %xmm3
mulpd %xmm0, %xmm3
addpd %xmm2, %xmm3
movupd %xmm3, (%rax,%rdi,8)
addq $0x2, %rdi
cmpq $0x100, %rdi            # imm = 0x100
jne 0x16328
incq %rcx
addq %rdx, %rax
addq %rdx, %rsi
cmpq $0x100, %rcx            # imm = 0x100
jne 0x1631b
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