// File: /workspace/github_cpp_makefile_star2_O2/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
andq $0x0, 0x20(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x10(%rsp)
leaq 0x30(%rsp), %rdi
movapd %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
movq 0x8(%rbx), %rsi
subq (%rbx), %rsi
sarq $0x3, %rsi
decq %rsi
callq 0x2f764
xorl %r14d, %r14d
leaq 0x30(%rsp), %r15
leaq 0x70(%rsp), %r12
leaq 0x10(%rsp), %r13
leaq 0x50(%rsp), %rbp
movq 0x8(%rbx), %rax
subq (%rbx), %rax
sarq $0x3, %rax
cmpq %rax, %r14
je 0x2f4b5
movl %r14d, %edi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x2f795
movq %r12, %rdi
movq %r15, %rsi
callq 0x2f816
movq %r12, %rdi
callq 0x2f7e9
movsd %xmm0, 0x50(%rsp)
movq %r13, %rdi
movq %rbp, %rsi
callq 0x2af10
movq %r12, %rdi
callq 0x2b43c
movq 0x30(%rsp), %rax
cmpq %rax, 0x38(%rsp)
je 0x2f49a
movq %rax, 0x38(%rsp)
movq 0x8(%rbx), %rsi
subq (%rbx), %rsi
sarq $0x3, %rsi
decq %rsi
movq %r15, %rdi
callq 0x2f764
incq %r14
jmp 0x2f43f
leaq 0x58(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x2f816
leaq 0x58(%rsp), %rbx
movq %rbx, %rdi
callq 0x2f7e9
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
callq 0x2b43c
movsd 0x8(%rsp), %xmm2
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %rax
subq %rcx, %rax
sarq $0x3, %rax
xorpd %xmm0, %xmm0
xorl %edx, %edx
cmpq %rdx, %rax
je 0x2f517
movsd (%rcx,%rdx,8), %xmm1
subsd %xmm2, %xmm1
mulsd %xmm1, %xmm1
addsd %xmm1, %xmm0
incq %rdx
jmp 0x2f4fc
leaq -0x1(%rax), %rcx
movq %rcx, %xmm1
punpckldq 0x62d18(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x62d20(%rip), %xmm1    # 0x92250
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
cvtsi2sd %rax, %xmm1
divsd %xmm1, %xmm2
mulsd %xmm2, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x2f559
sqrtsd %xmm0, %xmm0
jmp 0x2f55e
callq 0x83d0
movsd %xmm0, 0x8(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x2b43c
leaq 0x10(%rsp), %rdi
callq 0x2b43c
movsd 0x8(%rsp), %xmm0
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2f5a5
jmp 0x2f5a5
jmp 0x2f5a5
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x2b43c
jmp 0x2f5a8
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x2b43c
leaq 0x10(%rsp), %rdi
callq 0x2b43c
movq %rbx, %rdi
callq 0x8870