// File: Chrom3D[P]Chrom3D/src/Model.cpp
// Function: Model::addInteractionConstraint(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, ConstraintType)
void Model::addInteractionConstraint(string beadId1, string beadId2, double springConstant /*=1*/, ConstraintType interactionType/*= INTERACTION*/) {
  assert(getBead.find(beadId1) != getBead.end()); 
  assert(getBead.find(beadId2) != getBead.end());
  assert(interactionType == INTERACTION || interactionType == INTERACTION_INTRA || interactionType == INTERACTION_INTER);

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

// 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)
movl %ecx, 0xd4(%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 0x1bc8e
jmp 0x1bc90
jmp 0x1bcaf
leaq 0x34a6c(%rip), %rdi     # 0x50703
leaq 0x34a31(%rip), %rsi     # 0x506cf
movl $0x3f, %edx
leaq 0x34b01(%rip), %rcx     # 0x507ab
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 0x1bd01
jmp 0x1bd03
jmp 0x1bd22
leaq 0x34a7a(%rip), %rdi     # 0x50784
leaq 0x349be(%rip), %rsi     # 0x506cf
movl $0x40, %edx
leaq 0x34a8e(%rip), %rcx     # 0x507ab
callq 0x8340
movb $0x1, %al
cmpl $0x1, 0xd4(%rsp)
movb %al, 0x37(%rsp)
je 0x1bd51
movb $0x1, %al
cmpl $0x7, 0xd4(%rsp)
movb %al, 0x37(%rsp)
je 0x1bd51
cmpl $0x8, 0xd4(%rsp)
sete %al
movb %al, 0x37(%rsp)
movb 0x37(%rsp), %al
testb $0x1, %al
jne 0x1bd5b
jmp 0x1bd5d
jmp 0x1bd7c
leaq 0x34a94(%rip), %rdi     # 0x507f8
leaq 0x34964(%rip), %rsi     # 0x506cf
movl $0x41, %edx
leaq 0x34a34(%rip), %rcx     # 0x507ab
callq 0x8340
movq 0x38(%rsp), %rsi
movq 0x48(%rsp), %rdi
addq $0xaa0, %rdi            # imm = 0xAA0
movq %rdi, 0x28(%rsp)
callq 0x28120
movq 0x28(%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 0x1bddf
movq 0xa8(%rsp), %rdi
callq 0x14e60
movsd %xmm0, 0x20(%rsp)
jmp 0x1bdf4
movq 0xa0(%rsp), %rdi
callq 0x14e60
movsd %xmm0, 0x18(%rsp)
jmp 0x1be09
movsd 0x18(%rsp), %xmm1
movsd 0x20(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x10(%rsp)
movl 0xd4(%rsp), %eax
movl %eax, 0x4(%rsp)
movsd 0xd8(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
callq 0x28210
movq 0x48(%rsp), %rdi
movl 0x4(%rsp), %ecx
movsd 0x8(%rsp), %xmm1
movaps %xmm0, %xmm3
movsd 0x10(%rsp), %xmm0
leaq 0x80(%rsp), %rsi
leaq 0x60(%rsp), %rdx
xorps %xmm2, %xmm2
callq 0x1ba00
jmp 0x1be6d
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 0x1beb4
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
nopl (%rax,%rax)