// File: /workspace/github_cpp_makefile_star2_O1/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 0x3a832
movq (%rbx), %rsi
cmpq %rsi, 0x8(%rbx)
je 0x3a64f
xorl %ebp, %ebp
leaq 0x50(%rsp), %r14
leaq 0x30(%rsp), %r15
leaq 0x10(%rsp), %r12
leaq 0x68(%rsp), %r13
testl %ebp, %ebp
je 0x3a539
movq %rbp, %rdx
shlq $0x20, %rdx
sarq $0x1d, %rdx
movq 0x30(%rsp), %rdi
callq 0x8750
movslq %ebp, %rdi
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
leaq (%rax,%rdi,8), %rsi
addq $0x8, %rsi
subq %rsi, %rdx
je 0x3a55e
shlq $0x3, %rdi
addq 0x30(%rsp), %rdi
callq 0x8750
movq %r14, %rdi
movq %r15, %rsi
callq 0x3a864
movq 0x50(%rsp), %rcx
movq 0x58(%rsp), %rdx
movq %rdx, %rax
subq %rcx, %rax
sarq $0x3, %rax
cmpq %rcx, %rdx
je 0x3a5a2
cmpq $0x1, %rax
movq %rax, %rdx
adcq $0x0, %rdx
xorpd %xmm0, %xmm0
xorl %esi, %esi
addsd (%rcx,%rsi,8), %xmm0
incq %rsi
cmpq %rsi, %rdx
jne 0x3a593
jmp 0x3a5a6
xorpd %xmm0, %xmm0
movq %rax, %xmm1
punpckldq 0x8fbed(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x8fbf5(%rip), %xmm1    # 0xca1b0
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movsd %xmm0, 0x68(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x3a5ec
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x3a5f7
movq %r12, %rdi
movq %r13, %rdx
callq 0x33c70
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x3a60e
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x30(%rsp), %rax
cmpq %rax, 0x38(%rsp)
je 0x3a61f
movq %rax, 0x38(%rsp)
movq 0x8(%rbx), %rsi
subq (%rbx), %rsi
sarq $0x3, %rsi
decq %rsi
movq %r15, %rdi
callq 0x3a832
incq %rbp
movq (%rbx), %rsi
movq 0x8(%rbx), %rax
subq %rsi, %rax
sarq $0x3, %rax
cmpq %rax, %rbp
jne 0x3a520
leaq 0x70(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x3a864
movq 0x70(%rsp), %rdi
movq 0x78(%rsp), %rax
movq %rax, %rbx
subq %rdi, %rbx
sarq $0x3, %rbx
cmpq %rdi, %rax
je 0x3a697
cmpq $0x1, %rbx
movq %rbx, %rax
adcq $0x0, %rax
xorpd %xmm3, %xmm3
xorl %ecx, %ecx
addsd (%rdi,%rcx,8), %xmm3
incq %rcx
cmpq %rcx, %rax
jne 0x3a688
jmp 0x3a69b
xorpd %xmm3, %xmm3
testq %rdi, %rdi
je 0x3a6bc
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
movsd %xmm3, 0x8(%rsp)
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 0x3a72c
movq %rbx, %xmm0
punpckldq 0x8fab6(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x8fabe(%rip), %xmm0    # 0xca1b0
movapd %xmm0, %xmm2
unpckhpd %xmm0, %xmm2            # xmm2 = xmm2[1],xmm0[1]
addsd %xmm0, %xmm2
divsd %xmm2, %xmm3
cmpq $0x1, %rax
movq %rax, %rdx
adcq $0x0, %rdx
xorpd %xmm2, %xmm2
xorl %esi, %esi
movsd (%rcx,%rsi,8), %xmm0
subsd %xmm3, %xmm0
mulsd %xmm0, %xmm0
addsd %xmm0, %xmm2
incq %rsi
cmpq %rsi, %rdx
jne 0x3a713
leaq -0x1(%rax), %rcx
movq %rcx, %xmm3
movq 0x8fa63(%rip), %xmm4    # 0xca1a0
punpckldq %xmm4, %xmm3    # xmm3 = xmm3[0],xmm4[0],xmm3[1],xmm4[1]
movapd 0x8fa67(%rip), %xmm5    # 0xca1b0
subpd %xmm5, %xmm3
movapd %xmm3, %xmm0
unpckhpd %xmm3, %xmm0            # xmm0 = xmm0[1],xmm3[1]
addsd %xmm3, %xmm0
movq %rax, %xmm3
punpckldq %xmm4, %xmm3    # xmm3 = xmm3[0],xmm4[0],xmm3[1],xmm4[1]
subpd %xmm5, %xmm3
movapd %xmm3, %xmm4
unpckhpd %xmm3, %xmm4            # xmm4 = xmm4[1],xmm3[1]
addsd %xmm3, %xmm4
divsd %xmm4, %xmm0
mulsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jb 0x3a786
sqrtsd %xmm0, %xmm0
jmp 0x3a78b
callq 0x83a0
movsd %xmm0, 0x8(%rsp)
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x3a7a8
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x3a7bf
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 0x3a7f9
jmp 0x3a7f9
movq %rax, %rbx
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x3a7fc
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
jmp 0x3a7fc
jmp 0x3a7f9
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x3a813
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x3a82a
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq %rbx, %rdi
callq 0x8840