// File: Chrom3D[P]Chrom3D/src/Model.cpp
// Function: Model::addInteractionUpperDistanceConstraint(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, double, double)
void Model::addInteractionUpperDistanceConstraint(string beadId1, string beadId2, double beadPairDesiredDistance, double springConstant /*=1*/) {
  assert(getBead.find(beadId1) != getBead.end()); 
  assert(getBead.find(beadId2) != getBead.end());

  Bead* b1 = getBead[beadId1];
  Bead* b2 = getBead[beadId2];
  this->addConstraint(beadId1, beadId2, b1->getRadius()+b2->getRadius() + beadPairDesiredDistance, INTERACTION_DIST, springConstant, b1->getRadius()+b2->getRadius() + beadPairDesiredDistance);
}

// Assembly:
subq $0x108, %rsp            # imm = 0x108
movq %rsi, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
movq %rdi, 0x100(%rsp)
movq %rsi, 0xf8(%rsp)
movq %rdx, 0xf0(%rsp)
movsd %xmm0, 0xe8(%rsp)
movsd %xmm1, 0xe0(%rsp)
movq 0x100(%rsp), %rdi
movq %rdi, 0x58(%rsp)
addq $0xaa0, %rdi            # imm = 0xAA0
callq 0x280c0
movq 0x58(%rsp), %rdi
movq %rax, 0xd8(%rsp)
addq $0xaa0, %rdi            # imm = 0xAA0
callq 0x280f0
movq %rax, 0xd0(%rsp)
leaq 0xd8(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0x280a0
testb $0x1, %al
jne 0x1c490
jmp 0x1c492
jmp 0x1c4b1
leaq 0x3426a(%rip), %rdi     # 0x50703
leaq 0x3422f(%rip), %rsi     # 0x506cf
movl $0x5c, %edx
leaq 0x3445a(%rip), %rcx     # 0x50906
callq 0x8340
movq 0x58(%rsp), %rdi
movq 0x50(%rsp), %rsi
addq $0xaa0, %rdi            # imm = 0xAA0
callq 0x280c0
movq 0x58(%rsp), %rdi
movq %rax, 0xc8(%rsp)
addq $0xaa0, %rdi            # imm = 0xAA0
callq 0x280f0
movq %rax, 0xc0(%rsp)
leaq 0xc8(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x280a0
testb $0x1, %al
jne 0x1c503
jmp 0x1c505
jmp 0x1c524
leaq 0x34278(%rip), %rdi     # 0x50784
leaq 0x341bc(%rip), %rsi     # 0x506cf
movl $0x5d, %edx
leaq 0x343e7(%rip), %rcx     # 0x50906
callq 0x8340
movq 0x48(%rsp), %rsi
movq 0x58(%rsp), %rdi
addq $0xaa0, %rdi            # imm = 0xAA0
movq %rdi, 0x40(%rsp)
callq 0x28120
movq 0x40(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq (%rax), %rax
movq %rax, 0xb8(%rsp)
callq 0x28120
movq 0x48(%rsp), %rsi
movq (%rax), %rax
movq %rax, 0xb0(%rsp)
leaq 0x90(%rsp), %rdi
callq 0x8230
movq 0x50(%rsp), %rsi
leaq 0x70(%rsp), %rdi
callq 0x8230
jmp 0x1c587
movq 0xb8(%rsp), %rdi
callq 0x14e60
movsd %xmm0, 0x38(%rsp)
jmp 0x1c59c
movq 0xb0(%rsp), %rdi
callq 0x14e60
movsd %xmm0, 0x30(%rsp)
jmp 0x1c5b1
movsd 0x30(%rsp), %xmm1
movsd 0x38(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd 0xe8(%rsp), %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, 0x18(%rsp)
movsd 0xe0(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
movq 0xb8(%rsp), %rdi
callq 0x14e60
movsd %xmm0, 0x28(%rsp)
jmp 0x1c5f8
movq 0xb0(%rsp), %rdi
callq 0x14e60
movsd %xmm0, 0x10(%rsp)
jmp 0x1c60d
movsd 0x10(%rsp), %xmm1
movsd 0x28(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd 0xe8(%rsp), %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
callq 0x28210
movq 0x58(%rsp), %rdi
movsd 0x20(%rsp), %xmm1
movsd 0x8(%rsp), %xmm2
movaps %xmm0, %xmm3
movsd 0x18(%rsp), %xmm0
leaq 0x90(%rsp), %rsi
leaq 0x70(%rsp), %rdx
movl $0x9, %ecx
callq 0x1ba00
jmp 0x1c668
leaq 0x70(%rsp), %rdi
callq 0x8998
leaq 0x90(%rsp), %rdi
callq 0x8998
addq $0x108, %rsp            # imm = 0x108
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
jmp 0x1c6af
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x8998
leaq 0x90(%rsp), %rdi
callq 0x8998
movq 0x68(%rsp), %rdi
callq 0x8870
nopw %cs:(%rax,%rax)