// File: /workspace/github_cpp_makefile_star2_O3/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
movl %esi, %r13d
movq %rdi, %rbx
movsd 0x600(%rdi), %xmm1
movsd 0x200(%rdi), %xmm0
cmpl $0x2, %esi
movsd %xmm1, 0x28(%rsp)
je 0x410032
cmpl $0x3, %r13d
jne 0x4105e8
movsd 0x1ba198(%rip), %xmm2   # 0x5ca1c8
jmp 0x41003a
movsd 0x1ba0e6(%rip), %xmm2   # 0x5ca120
xorps %xmm1, %xmm1
cvtsi2sd %r13d, %xmm1
divsd %xmm1, %xmm2
movsd %xmm2, 0x30(%rsp)
movsd %xmm1, 0x68(%rsp)
callq 0x4ecf40
mulsd 0x30(%rsp), %xmm0
movsd 0x28(%rsp), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, (%rbx)
leaq 0x1ba708(%rip), %rsi    # 0x5ca77a
leaq 0x158(%rsp), %r14
movq %r14, %rdi
callq 0x407a0c
leaq 0x78(%rsp), %rdi
movq %r14, %rsi
callq 0x4109e0
leaq 0x74(%rsp), %rax
movl $0x0, (%rax)
leaq 0x38(%rsp), %rsi
movq %rax, (%rsi)
leaq 0xd36(%rip), %rax       # 0x410ddf
movq %rax, 0x8(%rsi)
leaq 0xd2c(%rip), %rax       # 0x410de0
movq %rax, 0x10(%rsi)
leaq 0x78(%rsp), %rdi
callq 0x40afdc
movq %rsp, %rcx
movq $0x0, (%rcx)
leaq 0x38(%rsp), %rsi
movq %rcx, (%rsi)
leaq -0x1abf(%rip), %rcx     # 0x40e61c
movq %rcx, 0x8(%rsi)
leaq -0x1ac9(%rip), %rcx     # 0x40e61d
movq %rcx, 0x10(%rsi)
movq %rax, %rdi
callq 0x40afdc
leaq 0x200(%rbx), %r14
leaq 0x38(%rsp), %rsi
movq %r14, (%rsi)
leaq -0x3ad3(%rip), %r12     # 0x40c635
movq %r12, 0x8(%rsi)
leaq -0x3add(%rip), %rbp     # 0x40c636
movq %rbp, 0x10(%rsi)
movq %rax, %rdi
callq 0x40afdc
leaq 0x400(%rbx), %rcx
leaq 0x38(%rsp), %rsi
movq %rcx, 0x58(%rsp)
movq %rcx, (%rsi)
movq %r12, 0x8(%rsi)
movq %rbp, 0x10(%rsi)
movq %rax, %rdi
callq 0x40afdc
leaq 0x38(%rsp), %rsi
movq %rbx, (%rsi)
movq %r12, 0x8(%rsi)
movq %rbp, 0x10(%rsi)
movq %rax, %rdi
callq 0x40afdc
leaq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x40c0ac
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq $0x655aa0, %rdi         # imm = 0x655AA0
callq 0x4b0120
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x410199
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x442d20
cmpb $0x1, 0x148(%rsp)
jne 0x4101b8
leaq 0x150(%rsp), %r15
movq %r15, %rdi
callq 0x447100
movb $0x0, -0x8(%r15)
leaq 0x238e21(%rip), %rax    # 0x648fe0
movq %rax, 0xf0(%rsp)
cmpb $0x1, 0x138(%rsp)
jne 0x4101f9
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 0x442d20
leaq 0x128(%rsp), %r15
movb $0x0, 0x10(%r15)
movq $0x0, 0x8(%r15)
xorpd %xmm0, %xmm0
movupd %xmm0, -0x30(%r15)
movupd %xmm0, -0x20(%r15)
movupd %xmm0, -0x10(%r15)
movq $0x64fa38, %rax         # imm = 0x64FA38
addq $0x10, %rax
movq %rax, 0x50(%rsp)
movq %rax, -0x38(%r15)
movq %r15, %rdi
callq 0x447100
movq -0x60(%r15), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x410261
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x442d20
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x4102a6
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x442d20
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 0x407d02
xorl %eax, %eax
cmpl $0x3, %r13d
sete %al
leaq 0x1b9e00(%rip), %rcx    # 0x5ca0c0
movsd (%rcx,%rax,8), %xmm0
movsd %xmm0, 0x60(%rsp)
movl $0x1, (%rsp)
movl $0x1, %eax
leaq 0x8(%rsp), %r13
movq $0x655aa0, %r15         # imm = 0x655AA0
movl %eax, %ecx
movsd 0x200(%rbx,%rcx,8), %xmm0
movsd 0x400(%rbx,%rcx,8), %xmm2
addsd 0x1b8d19(%rip), %xmm2   # 0x5c9018
movsd 0x68(%rsp), %xmm1
subsd %xmm2, %xmm1
movsd %xmm1, 0x28(%rsp)
decl %eax
divsd 0x200(%rbx,%rax,8), %xmm0
callq 0x4ecf40
addsd 0x1b9e11(%rip), %xmm0   # 0x5ca138
movsd %xmm0, 0x30(%rsp)
movl (%rsp), %eax
decl %eax
movsd 0x200(%rbx,%rax,8), %xmm0
movsd 0x28(%rsp), %xmm1
callq 0x4ecf40
mulsd 0x30(%rsp), %xmm0
mulsd 0x60(%rsp), %xmm0
divsd 0x28(%rsp), %xmm0
movl (%rsp), %eax
mulsd 0x600(%rbx,%rax,8), %xmm0
movsd %xmm0, 0x38(%rsp)
movq %rsp, %rax
movq %rax, 0x8(%rsp)
leaq 0xa6e(%rip), %rax       # 0x410de7
movq %rax, 0x10(%rsp)
leaq 0xa63(%rip), %rax       # 0x410de8
movq %rax, 0x18(%rsp)
leaq 0x158(%rsp), %rdi
movq %r13, %rsi
callq 0x40afdc
movl (%rsp), %ecx
decl %ecx
leaq (%r14,%rcx,8), %rcx
movq %rcx, 0x8(%rsp)
movq %r12, 0x10(%rsp)
movq %rbp, 0x18(%rsp)
movq %rax, %rdi
movq %r13, %rsi
callq 0x40afdc
movl (%rsp), %ecx
leaq (%r14,%rcx,8), %rcx
movq %rcx, 0x8(%rsp)
movq %r12, 0x10(%rsp)
movq %rbp, 0x18(%rsp)
movq %rax, %rdi
movq %r13, %rsi
callq 0x40afdc
movl (%rsp), %ecx
movq 0x58(%rsp), %rdx
leaq (%rdx,%rcx,8), %rcx
movq %rcx, 0x8(%rsp)
movq %r12, 0x10(%rsp)
movq %rbp, 0x18(%rsp)
movq %rax, %rdi
movq %r13, %rsi
callq 0x40afdc
leaq 0x38(%rsp), %rcx
movq %rcx, 0x8(%rsp)
movq %r12, 0x10(%rsp)
movq %rbp, 0x18(%rsp)
movq %rax, %rdi
movq %r13, %rsi
callq 0x40afdc
leaq 0x78(%rsp), %rdi
movq %rax, %rsi
callq 0x40c0ac
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
movq %r15, %rdi
callq 0x4b0120
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x410467
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x442d20
movl (%rsp), %eax
leal -0x1(%rax), %ecx
movsd (%rbx,%rcx,8), %xmm0
addsd 0x38(%rsp), %xmm0
movsd %xmm0, (%rbx,%rax,8)
incl %eax
movl %eax, (%rsp)
cmpl $0x40, %eax
jne 0x4102e3
movq $0x655aa0, %rdi         # imm = 0x655AA0
leaq 0x1ba317(%rip), %rsi    # 0x5ca7b0
movl $0x17, %edx
callq 0x4b0120
movsd 0x1f8(%rbx), %xmm0
movq $0x655aa0, %rdi         # imm = 0x655AA0
callq 0x4b1380
leaq 0x78(%rsp), %rsi
movb $0xa, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x4b0120
cmpb $0x1, 0x228(%rsp)
jne 0x4104ea
leaq 0x230(%rsp), %rbx
movq %rbx, %rdi
callq 0x447100
movb $0x0, -0x8(%rbx)
leaq 0x238aef(%rip), %rax    # 0x648fe0
movq %rax, 0x1d0(%rsp)
cmpb $0x1, 0x218(%rsp)
jne 0x41052b
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 0x442d20
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 0x50(%rsp), %rax
movq %rax, -0x38(%rbx)
movq %rbx, %rdi
callq 0x447100
movq -0x60(%rbx), %rdi
leaq 0x1b8(%rsp), %rax
cmpq %rax, %rdi
je 0x410584
movq 0x1b8(%rsp), %rsi
incq %rsi
callq 0x442d20
movq 0x170(%rsp), %rdi
testq %rdi, %rdi
je 0x4105c9
movq 0x190(%rsp), %rsi
subq %rdi, %rsi
callq 0x442d20
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 0x407d02
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x403fd3
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x410616
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x442d20
jmp 0x410616
jmp 0x410613
jmp 0x410649
jmp 0x410649
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x407b82
jmp 0x41064c
movq %rax, %rbx
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x41064c
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x442d20
jmp 0x41064c
movq %rax, %rbx
leaq 0x158(%rsp), %rdi
callq 0x407b82
movq %rbx, %rdi
callq 0x4f63f0
nop