// File: /workspace/github_cpp_makefile_star2_O1/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 $0x238, %rsp            # imm = 0x238
movq %rdi, %rbx
movsd 0x600(%rdi), %xmm1
movsd 0x200(%rdi), %xmm0
cmpl $0x2, %esi
movsd %xmm1, 0x30(%rsp)
je 0x41007e
cmpl $0x3, %esi
jne 0x41063f
movsd 0x1bb00c(%rip), %xmm2   # 0x5cb088
jmp 0x410086
movsd 0x1baf5a(%rip), %xmm2   # 0x5cafe0
movl %esi, 0x44(%rsp)
movl %esi, %eax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
divsd %xmm1, %xmm2
movsd %xmm2, 0x38(%rsp)
movsd %xmm1, 0x68(%rsp)
callq 0x4ee2f0
mulsd 0x38(%rsp), %xmm0
movsd 0x30(%rsp), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, (%rbx)
leaq 0x1bb5c6(%rip), %rsi    # 0x5cb68a
leaq 0x158(%rsp), %r14
movq %r14, %rdi
callq 0x407aac
leaq 0x78(%rsp), %rdi
movq %r14, %rsi
callq 0x410a54
leaq 0x74(%rsp), %rax
movl $0x0, (%rax)
leaq 0x48(%rsp), %rsi
movq %rax, (%rsi)
leaq 0xd5e(%rip), %rax       # 0x410e59
movq %rax, 0x8(%rsi)
leaq 0xd54(%rip), %rax       # 0x410e5a
movq %rax, 0x10(%rsi)
leaq 0x78(%rsp), %rdi
callq 0x40aeb6
leaq 0x8(%rsp), %rcx
movq $0x0, (%rcx)
leaq 0x48(%rsp), %rsi
movq %rcx, (%rsi)
leaq -0x1b47(%rip), %rcx     # 0x40e5e8
movq %rcx, 0x8(%rsi)
leaq -0x1b51(%rip), %rcx     # 0x40e5e9
movq %rcx, 0x10(%rsi)
movq %rax, %rdi
callq 0x40aeb6
leaq 0x200(%rbx), %r15
leaq 0x48(%rsp), %rsi
movq %r15, (%rsi)
leaq -0x3c4f(%rip), %r12     # 0x40c50d
movq %r12, 0x8(%rsi)
leaq -0x3c59(%rip), %rbp     # 0x40c50e
movq %rbp, 0x10(%rsi)
movq %rax, %rdi
callq 0x40aeb6
leaq 0x400(%rbx), %r14
leaq 0x48(%rsp), %rsi
movq %r14, (%rsi)
movq %r12, 0x8(%rsi)
movq %rbp, 0x10(%rsi)
movq %rax, %rdi
callq 0x40aeb6
leaq 0x48(%rsp), %rsi
movq %rbx, (%rsi)
movq %r12, 0x8(%rsi)
movq %rbp, 0x10(%rsi)
movq %rax, %rdi
callq 0x40aeb6
leaq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0x40bf84
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq $0x656aa0, %rdi         # imm = 0x656AA0
callq 0x4b14d0
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4101e8
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4440d0
cmpb $0x1, 0x148(%rsp)
jne 0x410207
leaq 0x150(%rsp), %r13
movq %r13, %rdi
callq 0x4484b0
movb $0x0, -0x8(%r13)
leaq 0x239cb2(%rip), %rax    # 0x649ec0
movq %rax, 0xf0(%rsp)
cmpb $0x1, 0x138(%rsp)
jne 0x410248
leaq 0x108(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq $0x0, 0x10(%rax)
leaq 0x120(%rsp), %rcx
cmoveq %rax, %rcx
movq (%rcx), %rsi
subq %rdi, %rsi
callq 0x4440d0
leaq 0x128(%rsp), %r13
movb $0x0, 0x10(%r13)
movq $0x0, 0x8(%r13)
xorpd %xmm0, %xmm0
movupd %xmm0, -0x30(%r13)
movupd %xmm0, -0x20(%r13)
movupd %xmm0, -0x10(%r13)
movq $0x650a38, %rax         # imm = 0x650A38
addq $0x10, %rax
movq %rax, 0x60(%rsp)
movq %rax, -0x38(%r13)
movq %r13, %rdi
callq 0x4484b0
movq -0x60(%r13), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x4102b0
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x4440d0
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x4102f5
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4440d0
xorl %eax, %eax
movq %rax, 0x90(%rsp)
movl %eax, 0x98(%rsp)
movq %rax, 0xa0(%rsp)
movl %eax, 0xa8(%rsp)
movq %rax, 0xb0(%rsp)
leaq 0x78(%rsp), %rdi
callq 0x407da2
movl $0x1, 0x8(%rsp)
movl $0x1, %eax
leaq 0x10(%rsp), %r13
movl %eax, %ecx
movsd (%r14,%rcx,8), %xmm0
addsd 0x1b9cf7(%rip), %xmm0   # 0x5ca018
movsd 0x68(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x30(%rsp)
movsd (%r15,%rcx,8), %xmm0
decl %eax
divsd (%r15,%rax,8), %xmm0
callq 0x4ee2f0
addsd 0x1bacac(%rip), %xmm0   # 0x5caff8
movsd %xmm0, 0x38(%rsp)
movl 0x8(%rsp), %eax
decl %eax
movsd (%r15,%rax,8), %xmm0
movsd 0x30(%rsp), %xmm1
callq 0x4ee2f0
mulsd 0x38(%rsp), %xmm0
movsd %xmm0, 0x48(%rsp)
movl 0x44(%rsp), %eax
cmpl $0x2, %eax
je 0x410390
movsd 0x1bad02(%rip), %xmm1   # 0x5cb088
cmpl $0x3, %eax
je 0x410398
jmp 0x41063f
movsd 0x1bac48(%rip), %xmm1   # 0x5cafe0
mulsd %xmm1, %xmm0
divsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x48(%rsp)
movl 0x8(%rsp), %eax
mulsd 0x600(%rbx,%rax,8), %xmm0
movsd %xmm0, 0x48(%rsp)
leaq 0x8(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0xa95(%rip), %rax       # 0x410e61
movq %rax, 0x18(%rsp)
leaq 0xa8a(%rip), %rax       # 0x410e62
movq %rax, 0x20(%rsp)
leaq 0x158(%rsp), %rdi
movq %r13, %rsi
callq 0x40aeb6
movl 0x8(%rsp), %ecx
decl %ecx
leaq (%r15,%rcx,8), %rcx
movq %rcx, 0x10(%rsp)
movq %r12, 0x18(%rsp)
movq %rbp, 0x20(%rsp)
movq %rax, %rdi
movq %r13, %rsi
callq 0x40aeb6
movl 0x8(%rsp), %ecx
leaq (%r15,%rcx,8), %rcx
movq %rcx, 0x10(%rsp)
movq %r12, 0x18(%rsp)
movq %rbp, 0x20(%rsp)
movq %rax, %rdi
movq %r13, %rsi
callq 0x40aeb6
movl 0x8(%rsp), %ecx
leaq (%r14,%rcx,8), %rcx
movq %rcx, 0x10(%rsp)
movq %r12, 0x18(%rsp)
movq %rbp, 0x20(%rsp)
movq %rax, %rdi
movq %r13, %rsi
callq 0x40aeb6
leaq 0x48(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movq %r12, 0x18(%rsp)
movq %rbp, 0x20(%rsp)
movq %rax, %rdi
movq %r13, %rsi
callq 0x40aeb6
leaq 0x78(%rsp), %rdi
movq %rax, %rsi
callq 0x40bf84
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
movq $0x656aa0, %rdi         # imm = 0x656AA0
callq 0x4b14d0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x4104bc
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x4440d0
movl 0x8(%rsp), %eax
leal -0x1(%rax), %ecx
movsd (%rbx,%rcx,8), %xmm0
addsd 0x48(%rsp), %xmm0
movsd %xmm0, (%rbx,%rax,8)
incl %eax
movl %eax, 0x8(%rsp)
cmpl $0x40, %eax
jne 0x410311
movq $0x656aa0, %rdi         # imm = 0x656AA0
leaq 0x1bb1d0(%rip), %rsi    # 0x5cb6c0
movl $0x17, %edx
callq 0x4b14d0
movsd 0x1f8(%rbx), %xmm0
movq $0x656aa0, %rdi         # imm = 0x656AA0
callq 0x4b2730
leaq 0x78(%rsp), %rsi
movb $0xa, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x4b14d0
cmpb $0x1, 0x228(%rsp)
jne 0x410541
leaq 0x230(%rsp), %rbx
movq %rbx, %rdi
callq 0x4484b0
movb $0x0, -0x8(%rbx)
leaq 0x239978(%rip), %rax    # 0x649ec0
movq %rax, 0x1d0(%rsp)
cmpb $0x1, 0x218(%rsp)
jne 0x410582
leaq 0x1e8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq $0x0, 0x10(%rax)
leaq 0x200(%rsp), %rcx
cmoveq %rax, %rcx
movq (%rcx), %rsi
subq %rdi, %rsi
callq 0x4440d0
leaq 0x208(%rsp), %rbx
movb $0x0, 0x10(%rbx)
movq $0x0, 0x8(%rbx)
xorpd %xmm0, %xmm0
movupd %xmm0, -0x30(%rbx)
movupd %xmm0, -0x20(%rbx)
movupd %xmm0, -0x10(%rbx)
movq 0x60(%rsp), %rax
movq %rax, -0x38(%rbx)
movq %rbx, %rdi
callq 0x4484b0
movq -0x60(%rbx), %rdi
leaq 0x1b8(%rsp), %rax
cmpq %rax, %rdi
je 0x4105db
movq 0x1b8(%rsp), %rsi
incq %rsi
callq 0x4440d0
movq 0x170(%rsp), %rdi
testq %rdi, %rdi
je 0x410620
movq 0x190(%rsp), %rsi
subq %rdi, %rsi
callq 0x4440d0
xorl %eax, %eax
movq %rax, 0x170(%rsp)
movl %eax, 0x178(%rsp)
movq %rax, 0x180(%rsp)
movl %eax, 0x188(%rsp)
movq %rax, 0x190(%rsp)
leaq 0x158(%rsp), %rdi
callq 0x407da2
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x403fdf
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x41066d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4440d0
jmp 0x41066d
jmp 0x41066a
jmp 0x4106a0
jmp 0x4106a0
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x407c22
jmp 0x4106a3
movq %rax, %rbx
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x4106a3
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x4440d0
jmp 0x4106a3
movq %rax, %rbx
leaq 0x158(%rsp), %rdi
callq 0x407c22
movq %rbx, %rdi
callq 0x4f77a0