// File: /workspace/github_cpp_makefile_star2_O3/Luthaf[P]zeopp/channel.cc
// Function: PORE::getSimplifiedPocketInfo(ATOM_NETWORK*, std::vector<double, std::allocator<double>>*)
void PORE::getSimplifiedPocketInfo(ATOM_NETWORK *atmNet, std::vector <double> *pocketInfo){
    
    double maxdi;
    double maxid = 0;
    pocketInfo->clear();
    
    for(unsigned int i=0; i<nodes.size(); i++)
    {
        if(i==0)
        {
            maxdi = nodes.at(i).max_radius;
        }
        else{
            if(nodes.at(i).max_radius > maxdi) 
            {
                maxdi = nodes.at(i).max_radius;
                maxid = i;
            };
        };
    };
    
    maxdi=maxdi*2.0;
    
    pocketInfo->push_back(maxdi);
    
    Point pt = atmNet->xyz_to_abc(nodes.at(maxid).x, nodes.at(maxid).y, nodes.at(maxid).z);
    pt = atmNet->shiftABCInUC(pt);
    pocketInfo->push_back(pt[0]); pocketInfo->push_back(pt[1]); pocketInfo->push_back(pt[2]);
    
    double pocketR; // radii of pocket (sphere that encapsulates all nodes in the pocket)
    
    pocketR = maxdi*0.5;
    for(unsigned int i=0; i<nodes.size(); i++)
    {
        double dist = calcEuclideanDistance(nodes.at(maxid).x, nodes.at(maxid).y, nodes.at(maxid).z, nodes.at(i).x, nodes.at(i).y, nodes.at(i).z);
        dist = dist + nodes.at(i).max_radius;
        
        if(dist > pocketR) pocketR = dist;
        
    };
    
    pocketInfo->push_back(pocketR);
    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r14
movq (%rdx), %rax
movq 0x8(%rdx), %rsi
cmpq %rax, %rsi
je 0x71d06
movq %rax, 0x8(%rbx)
movq %rax, %rsi
movq 0x60(%r14), %rax
movq 0x68(%r14), %rcx
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $-0x71c71c71c71c71c7, %rdi # imm = 0x8E38E38E38E38E39
imulq %rdi, %rdx
xorl %r15d, %r15d
cmpq %rax, %rcx
je 0x71d8d
leaq 0x38(%rax), %rcx
xorpd %xmm1, %xmm1
movsd (%rcx), %xmm2
testl %r15d, %r15d
je 0x71d52
ucomisd %xmm0, %xmm2
jbe 0x71d5c
movl %r15d, %edi
xorps %xmm1, %xmm1
cvtsi2sd %rdi, %xmm1
jmp 0x71d58
movsd %xmm2, 0x28(%rsp)
movapd %xmm2, %xmm0
incl %r15d
addq $0x48, %rcx
cmpq %r15, %rdx
ja 0x71d36
addsd %xmm0, %xmm0
cvttsd2si %xmm1, %rcx
movq %rcx, %rdi
sarq $0x3f, %rdi
subsd 0xe28b8(%rip), %xmm1    # 0x154638
cvttsd2si %xmm1, %r15
andq %rdi, %r15
orq %rcx, %r15
jmp 0x71d95
movsd 0xe289b(%rip), %xmm0    # 0x154630
movsd %xmm0, 0x28(%rsp)
cmpq 0x10(%rbx), %rsi
je 0x71daf
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x71dd9
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x1481e
movq 0x60(%r14), %rax
movq 0x68(%r14), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $-0x71c71c71c71c71c7, %rcx # imm = 0x8E38E38E38E38E39
imulq %rcx, %rdx
movq %rbx, 0x30(%rsp)
cmpq %r15, %rdx
jbe 0x71fec
leaq (%r15,%r15,8), %rbx
movsd 0x8(%rax,%rbx,8), %xmm0
movsd 0x10(%rax,%rbx,8), %xmm1
movsd 0x18(%rax,%rbx,8), %xmm2
leaq 0x50(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x52eec
movq 0x10(%r13), %rax
movq %rax, 0x10(%rsp)
movaps (%r13), %xmm0
movups %xmm0, (%rsp)
leaq 0x38(%rsp), %rbp
movq %rbp, %rdi
movq %r12, %rsi
callq 0x53a92
movq 0x10(%rbp), %rax
movq %rax, 0x10(%r13)
movups (%rbp), %xmm0
movaps %xmm0, (%r13)
movq %r13, %rdi
xorl %esi, %esi
callq 0x83f9a
movq 0x30(%rsp), %r12
movq 0x8(%r12), %rsi
cmpq 0x10(%r12), %rsi
je 0x71e6e
movsd (%rax), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%r12)
jmp 0x71e79
movq %r12, %rdi
movq %rax, %rdx
callq 0x1481e
leaq 0x50(%rsp), %rdi
movl $0x1, %esi
callq 0x83f9a
movq 0x8(%r12), %rsi
cmpq 0x10(%r12), %rsi
je 0x71ea7
movsd (%rax), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%r12)
jmp 0x71eb2
movq %r12, %rdi
movq %rax, %rdx
callq 0x1481e
leaq 0x50(%rsp), %rdi
movl $0x2, %esi
callq 0x83f9a
movq 0x8(%r12), %rsi
cmpq 0x10(%r12), %rsi
je 0x71ee0
movsd (%rax), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%r12)
jmp 0x71eeb
movq %r12, %rdi
movq %rax, %rdx
callq 0x1481e
movsd 0x28(%rsp), %xmm0
mulsd 0xdb13f(%rip), %xmm0    # 0x14d038
movsd %xmm0, 0x20(%rsp)
movsd %xmm0, 0x38(%rsp)
movq 0x60(%r14), %rax
movq 0x68(%r14), %rdx
subq %rax, %rdx
je 0x71fb0
sarq $0x3, %rdx
movabsq $-0x71c71c71c71c71c7, %rcx # imm = 0x8E38E38E38E38E39
imulq %rcx, %rdx
movl $0x1, %ebp
xorl %r12d, %r12d
cmpq %r15, %rdx
jbe 0x71fec
movsd 0x8(%rax,%rbx,8), %xmm0
movsd 0x10(%rax,%rbx,8), %xmm1
movsd 0x18(%rax,%rbx,8), %xmm2
leaq (%r12,%r12,8), %r13
movsd 0x8(%rax,%r13,8), %xmm3
movsd 0x10(%rax,%r13,8), %xmm4
movsd 0x18(%rax,%r13,8), %xmm5
callq 0x84cbb
movq 0x60(%r14), %rax
movq 0x68(%r14), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $-0x71c71c71c71c71c7, %rcx # imm = 0x8E38E38E38E38E39
imulq %rcx, %rdx
cmpq %r12, %rdx
jbe 0x71ff8
addsd 0x38(%rax,%r13,8), %xmm0
ucomisd 0x20(%rsp), %xmm0
jbe 0x71fa6
movsd %xmm0, 0x38(%rsp)
movsd %xmm0, 0x20(%rsp)
movl %ebp, %r12d
incl %ebp
cmpq %r12, %rdx
ja 0x71f30
movq 0x30(%rsp), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x71fd3
movsd 0x20(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x71fdd
leaq 0x38(%rsp), %rdx
callq 0x1481e
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xdb702(%rip), %rdi     # 0x14d6f5
movq %r15, %rsi
jmp 0x72002
leaq 0xdb6f6(%rip), %rdi     # 0x14d6f5
movq %r12, %rsi
xorl %eax, %eax
callq 0x4630
nop