// File: Chrom3D[P]Chrom3D/src/Model.cpp
// Function: Model::addInteractionLowerDistanceConstraint(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::addInteractionLowerDistanceConstraint(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, 0, b1->getRadius()+b2->getRadius() + beadPairDesiredDistance);
}

// Assembly:
subq $0xf8, %rsp
movq %rsi, 0x38(%rsp)
movq %rdx, 0x40(%rsp)
movq %rdi, 0xf0(%rsp)
movq %rsi, 0xe8(%rsp)
movq %rdx, 0xe0(%rsp)
movsd %xmm0, 0xd8(%rsp)
movsd %xmm1, 0xd0(%rsp)
movq 0xf0(%rsp), %rdi
movq %rdi, 0x48(%rsp)
addq $0xaa0, %rdi            # imm = 0xAA0
callq 0x280c0
movq 0x48(%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 0x1c1d0
jmp 0x1c1d2
jmp 0x1c1f1
leaq 0x3452a(%rip), %rdi     # 0x50703
leaq 0x344ef(%rip), %rsi     # 0x506cf
movl $0x53, %edx
leaq 0x346c8(%rip), %rcx     # 0x508b4
callq 0x8340
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
addq $0xaa0, %rdi            # imm = 0xAA0
callq 0x280c0
movq 0x48(%rsp), %rdi
movq %rax, 0xb8(%rsp)
addq $0xaa0, %rdi            # imm = 0xAA0
callq 0x280f0
movq %rax, 0xb0(%rsp)
leaq 0xb8(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x280a0
testb $0x1, %al
jne 0x1c243
jmp 0x1c245
jmp 0x1c264
leaq 0x34538(%rip), %rdi     # 0x50784
leaq 0x3447c(%rip), %rsi     # 0x506cf
movl $0x54, %edx
leaq 0x34655(%rip), %rcx     # 0x508b4
callq 0x8340
movq 0x38(%rsp), %rsi
movq 0x48(%rsp), %rdi
addq $0xaa0, %rdi            # imm = 0xAA0
movq %rdi, 0x30(%rsp)
callq 0x28120
movq 0x30(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq (%rax), %rax
movq %rax, 0xa8(%rsp)
callq 0x28120
movq 0x38(%rsp), %rsi
movq (%rax), %rax
movq %rax, 0xa0(%rsp)
leaq 0x80(%rsp), %rdi
callq 0x8230
movq 0x40(%rsp), %rsi
leaq 0x60(%rsp), %rdi
callq 0x8230
jmp 0x1c2c7
movq 0xa8(%rsp), %rdi
callq 0x14e60
movsd %xmm0, 0x28(%rsp)
jmp 0x1c2dc
movq 0xa0(%rsp), %rdi
callq 0x14e60
movsd %xmm0, 0x20(%rsp)
jmp 0x1c2f1
movsd 0x20(%rsp), %xmm1
movsd 0x28(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd 0xd8(%rsp), %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
movsd 0xd0(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
movq 0xa8(%rsp), %rdi
callq 0x14e60
movsd %xmm0, 0x18(%rsp)
jmp 0x1c338
movq 0xa0(%rsp), %rdi
callq 0x14e60
movsd %xmm0, (%rsp)
jmp 0x1c34c
movsd 0x10(%rsp), %xmm1
movsd 0x8(%rsp), %xmm0
movq 0x48(%rsp), %rdi
movsd (%rsp), %xmm2
movsd 0x18(%rsp), %xmm3
addsd %xmm2, %xmm3
movsd 0xd8(%rsp), %xmm2
addsd %xmm2, %xmm3
leaq 0x80(%rsp), %rsi
leaq 0x60(%rsp), %rdx
movl $0x9, %ecx
xorps %xmm2, %xmm2
callq 0x1ba00
jmp 0x1c395
leaq 0x60(%rsp), %rdi
callq 0x8998
leaq 0x80(%rsp), %rdi
callq 0x8998
addq $0xf8, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x58(%rsp)
movl %eax, 0x54(%rsp)
jmp 0x1c3dc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x58(%rsp)
movl %eax, 0x54(%rsp)
leaq 0x60(%rsp), %rdi
callq 0x8998
leaq 0x80(%rsp), %rdi
callq 0x8998
movq 0x58(%rsp), %rdi
callq 0x8870
nopw %cs:(%rax,%rax)