// File: /workspace/github_cpp_makefile_star2_O2/Cell-veto[P]postlhc/./adap_prober.hpp
// Function: AdaptiveProber::calib_finish(unsigned int)
void calib_finish (unsigned DIM)
    {
        // fill in cumsum_
        cumsum_[0] = binrate_[0] * ball_volume (DIM, binrad_[0]);
        auto stat = format ("adap_prober_stat %4i %10.5f %10.5f || % 5g || %10.5f\n");
        std::cerr << boost::str (format (stat) % 0 % 0. % binrad_[0] % binexp_[0] % cumsum_[0]);

        for (unsigned i = 1; i != N_; ++i)
        {
            double iexpon = DIM - (1.+binexp_[i]);
            double w = pow (binrad_[i]/binrad_[i-1], iexpon);
            double tot = (w - 1) * pow (binrad_[i-1], iexpon);
            tot *= sphere_surface (DIM);
            tot /= iexpon;
            tot *= binrate_[i];

            std::cerr << boost::str (stat % i % binrad_[i-1] % binrad_[i] % binexp_[i] % tot);
            cumsum_[i] = cumsum_[i-1] + tot;
        }

        std::cerr << "adap_prober_stat total " << cumsum_[N_-1] << '\n';
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movl %esi, %ebp
movq %rdi, %rbx
movsd 0x600(%rdi), %xmm0
movsd %xmm0, 0x8(%rsp)
movsd 0x200(%rdi), %xmm0
movl %esi, %edi
callq 0x40d8e5
mulsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rbx)
leaq 0x1b2593(%rip), %rsi    # 0x5bf7b7
leaq 0x128(%rsp), %r14
movq %r14, %rdi
callq 0x40608e
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
callq 0x40d91a
leaq 0x44(%rsp), %rsi
andl $0x0, (%rsi)
leaq 0x48(%rsp), %rdi
callq 0x40dbc5
movq %rsp, %rsi
andq $0x0, (%rsi)
movq %rax, %rdi
callq 0x40baec
leaq 0x200(%rbx), %r14
movq %rax, %rdi
movq %r14, %rsi
callq 0x409df3
leaq 0x400(%rbx), %r15
movq %rax, %rdi
movq %r15, %rsi
callq 0x409df3
movq %rax, %rdi
movq %rbx, %rsi
callq 0x409df3
leaq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0x4099f8
movq $0x64eaa0, %rdi         # imm = 0x64EAA0
leaq 0x10(%rsp), %rsi
callq 0x4b7440
leaq 0x10(%rsp), %rdi
callq 0x4b4bf0
leaq 0x48(%rsp), %r13
movq %r13, %rdi
callq 0x406170
movl %ebp, %eax
cvtsi2sd %rax, %xmm0
movsd %xmm0, 0x30(%rsp)
pushq $0x1
popq %rax
movq $0x64eaa0, %r12         # imm = 0x64EAA0
movl %eax, (%rsp)
cmpl $0x40, %eax
je 0x40d404
movl %eax, %ecx
movsd 0x200(%rbx,%rcx,8), %xmm0
movsd 0x400(%rbx,%rcx,8), %xmm2
addsd 0x1b0d13(%rip), %xmm2   # 0x5be018
movsd 0x30(%rsp), %xmm1
subsd %xmm2, %xmm1
movsd %xmm1, 0x8(%rsp)
decl %eax
divsd 0x200(%rbx,%rax,8), %xmm0
callq 0x4e1d70
addsd 0x1b1e03(%rip), %xmm0   # 0x5bf130
movsd %xmm0, 0x38(%rsp)
movl (%rsp), %eax
decl %eax
movsd 0x200(%rbx,%rax,8), %xmm0
movsd 0x8(%rsp), %xmm1
callq 0x4e1d70
mulsd 0x38(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
movl %ebp, %edi
callq 0x40d9d2
mulsd 0x10(%rsp), %xmm0
divsd 0x8(%rsp), %xmm0
movl (%rsp), %eax
mulsd 0x600(%rbx,%rax,8), %xmm0
movsd %xmm0, 0x10(%rsp)
leaq 0x128(%rsp), %rdi
movq %rsp, %rsi
callq 0x40dbff
movl (%rsp), %ecx
decl %ecx
leaq (%r14,%rcx,8), %rsi
movq %rax, %rdi
callq 0x409df3
movl (%rsp), %ecx
leaq (%r14,%rcx,8), %rsi
movq %rax, %rdi
callq 0x409df3
movl (%rsp), %ecx
leaq (%r15,%rcx,8), %rsi
movq %rax, %rdi
callq 0x409df3
movq %rax, %rdi
leaq 0x10(%rsp), %rsi
callq 0x409df3
movq %r13, %rdi
movq %rax, %rsi
callq 0x4099f8
movq %r12, %rdi
movq %r13, %rsi
callq 0x4b7440
movq %r13, %rdi
callq 0x4b4bf0
movl (%rsp), %eax
leal -0x1(%rax), %ecx
movsd (%rbx,%rcx,8), %xmm0
addsd 0x10(%rsp), %xmm0
movsd %xmm0, (%rbx,%rax,8)
incl %eax
jmp 0x40d2dd
movq $0x64eaa0, %rdi         # imm = 0x64EAA0
leaq 0x1b23db(%rip), %rsi    # 0x5bf7ed
callq 0x4a4910
movsd 0x1f8(%rbx), %xmm0
movq %rax, %rdi
callq 0x4a5640
pushq $0xa
popq %rsi
movq %rax, %rdi
callq 0x4a4840
leaq 0x128(%rsp), %rdi
callq 0x406170
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x4b4bf0
jmp 0x40d469
jmp 0x40d466
jmp 0x40d484
jmp 0x40d484
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x406170
jmp 0x40d487
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x4b4bf0
jmp 0x40d487
movq %rax, %rbx
leaq 0x128(%rsp), %rdi
callq 0x406170
movq %rbx, %rdi
callq 0x4eb220