// File: /workspace/github_cpp_makefile_star2_O3/millanek[P]evo/./process_vcf_stats_utils.h
// Function: double jackknive_std_err<std::vector<double, std::allocator<double>>>(std::vector<double, std::allocator<double>>&)
double jackknive_std_err(T& vector) {
    std::vector<double> jackkniveAverages;
    std::vector<double> JregionDs; JregionDs.resize(vector.size()-1);
    for (std::vector<double>::size_type i = 0; i != vector.size(); i++) {
        // std::cerr << "copying " << i << std::endl;
        copy_except(i, vector, JregionDs);
        jackkniveAverages.push_back(vector_average(JregionDs));
        JregionDs.clear(); JregionDs.resize(vector.size()-1);
    }
    double jackkniveOverallMean = vector_average(jackkniveAverages);
    double sum = 0;
    for (int i = 0; i < jackkniveAverages.size(); i++) {
        sum += pow((jackkniveAverages[i] - jackkniveOverallMean), 2.0);
    }
    double var = ((double)(jackkniveAverages.size()-1)/(double)jackkniveAverages.size()) * sum;
    double Dstd_err = sqrt(var);
    return Dstd_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
xorpd %xmm0, %xmm0
movapd %xmm0, 0x10(%rsp)
xorl %eax, %eax
movq %rax, 0x20(%rsp)
leaq 0x30(%rsp), %rdi
movq %rax, 0x10(%rdi)
movapd %xmm0, (%rdi)
movq 0x8(%rbx), %rsi
subq (%rbx), %rsi
sarq $0x3, %rsi
decq %rsi
callq 0x37946
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
cmpq %rsi, %rdx
je 0x3778c
xorl %ebp, %ebp
leaq 0x50(%rsp), %r14
leaq 0x30(%rsp), %r15
leaq 0x10(%rsp), %r12
leaq 0x68(%rsp), %r13
testl %ebp, %ebp
je 0x37693
movq %rbp, %rdx
shlq $0x20, %rdx
sarq $0x1d, %rdx
movq 0x30(%rsp), %rdi
callq 0x8750
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movslq %ebp, %rdi
leaq (%rsi,%rdi,8), %rsi
addq $0x8, %rsi
subq %rsi, %rdx
je 0x376b1
shlq $0x3, %rdi
addq 0x30(%rsp), %rdi
callq 0x8750
movq %r14, %rdi
movq %r15, %rsi
callq 0x37978
movq 0x50(%rsp), %rdi
movq 0x58(%rsp), %rcx
movq %rcx, %rax
subq %rdi, %rax
sarq $0x3, %rax
cmpq %rdi, %rcx
je 0x376f5
cmpq $0x1, %rax
movq %rax, %rcx
adcq $0x0, %rcx
xorpd %xmm0, %xmm0
xorl %edx, %edx
addsd (%rdi,%rdx,8), %xmm0
incq %rdx
cmpq %rdx, %rcx
jne 0x376e6
jmp 0x376f9
xorpd %xmm0, %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x68(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x37726
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x37736
movq %r12, %rdi
movq %r13, %rdx
callq 0x311fc
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x37748
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x30(%rsp), %rax
cmpq %rax, 0x38(%rsp)
je 0x37759
movq %rax, 0x38(%rsp)
movq 0x8(%rbx), %rsi
subq (%rbx), %rsi
sarq $0x3, %rsi
decq %rsi
movq %r15, %rdi
callq 0x37946
incq %rbp
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %rdx, %rax
subq %rsi, %rax
sarq $0x3, %rax
cmpq %rax, %rbp
jne 0x37673
leaq 0x70(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x37978
movq 0x70(%rsp), %rdi
movq 0x78(%rsp), %rcx
movq %rcx, %rax
subq %rdi, %rax
sarq $0x3, %rax
cmpq %rdi, %rcx
je 0x377e0
cmpq $0x1, %rax
movq %rax, %rcx
adcq $0x0, %rcx
xorpd %xmm3, %xmm3
xorl %edx, %edx
addsd (%rdi,%rdx,8), %xmm3
incq %rdx
cmpq %rdx, %rcx
jne 0x377c5
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd %xmm0, %xmm3
jmp 0x377f5
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
xorpd %xmm3, %xmm3
divsd %xmm0, %xmm3
testq %rcx, %rcx
je 0x37811
movsd %xmm3, 0x8(%rsp)
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movsd 0x8(%rsp), %xmm3
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %rdx
movq %rdx, %rax
subq %rcx, %rax
sarq $0x3, %rax
xorpd %xmm1, %xmm1
xorpd %xmm2, %xmm2
cmpq %rcx, %rdx
je 0x37858
cmpq $0x1, %rax
movq %rax, %rdx
adcq $0x0, %rdx
xorl %esi, %esi
movsd (%rcx,%rsi,8), %xmm0
subsd %xmm3, %xmm0
mulsd %xmm0, %xmm0
addsd %xmm0, %xmm2
incq %rsi
cmpq %rsi, %rdx
jne 0x3783f
leaq -0x1(%rax), %rcx
movq %rcx, %xmm3
punpckldq 0x91847(%rip), %xmm3 # xmm3 = xmm3[0],mem[0],xmm3[1],mem[1]
subpd 0x9184f(%rip), %xmm3    # 0xc90c0
movapd %xmm3, %xmm0
unpckhpd %xmm3, %xmm0            # xmm0 = xmm0[1],xmm3[1]
addsd %xmm3, %xmm0
xorps %xmm3, %xmm3
cvtsi2sd %rax, %xmm3
divsd %xmm3, %xmm0
mulsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jb 0x37899
sqrtsd %xmm0, %xmm0
jmp 0x3789e
callq 0x83a0
movsd %xmm0, 0x8(%rsp)
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x378bb
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x378d2
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movsd 0x8(%rsp), %xmm0
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3790c
jmp 0x3790c
movq %rax, %rbx
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x3790f
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
jmp 0x3790f
jmp 0x3790c
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x37926
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x3793d
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq %rbx, %rdi
callq 0x8840
nop