// File: Chrom3D[P]Chrom3D/src/Chromosome.cpp
// Function: Chromosome::getBeadCoordinates(unsigned int, unsigned int)
CoordinateMatrix Chromosome::getBeadCoordinates(uint startPos, uint endPos) {
  assert(startPos <= endPos);
  assert(endPos < beadList.size());
  CoordinateMatrix mat((endPos-startPos)+1,3);
  uint i=0;
  for(boost::container::static_vector<Bead,MAXSIZE>::iterator it = beadList.begin() + startPos; it != beadList.begin() + endPos+1; it++) {
    mat(i,0) = it->getX();
    mat(i,1) = it->getY();
    mat(i,2) = it->getZ();
    i++;
  }
  return mat;
}

// Assembly:
subq $0xb8, %rsp
movq %rdi, 0x40(%rsp)
movq %rdi, %rax
movq %rax, 0x48(%rsp)
movq %rdi, 0xb0(%rsp)
movq %rsi, 0xa8(%rsp)
movl %edx, 0xa4(%rsp)
movl %ecx, 0xa0(%rsp)
movq 0xa8(%rsp), %rax
movq %rax, 0x50(%rsp)
movl 0xa4(%rsp), %eax
cmpl 0xa0(%rsp), %eax
ja 0x155f1
jmp 0x15610
leaq 0x3a25f(%rip), %rdi     # 0x4f857
leaq 0x3a201(%rip), %rsi     # 0x4f800
movl $0x3b, %edx
leaq 0x3a25f(%rip), %rcx     # 0x4f86a
callq 0x8340
movq 0x50(%rsp), %rdi
movl 0xa0(%rsp), %eax
movq %rax, 0x38(%rsp)
addq $0x28, %rdi
callq 0x16bf0
movq %rax, %rcx
movq 0x38(%rsp), %rax
cmpq %rcx, %rax
jae 0x15639
jmp 0x15658
leaq 0x3a266(%rip), %rdi     # 0x4f8a6
leaq 0x3a1b9(%rip), %rsi     # 0x4f800
movl $0x3c, %edx
leaq 0x3a217(%rip), %rcx     # 0x4f86a
callq 0x8340
movq 0x40(%rsp), %rdi
movb $0x0, 0x9f(%rsp)
movl 0xa0(%rsp), %eax
subl 0xa4(%rsp), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
movl $0x3, %edx
callq 0xb1a0
movq 0x50(%rsp), %rsi
movl $0x0, 0x98(%rsp)
addq $0x28, %rsi
leaq 0x88(%rsp), %rdi
callq 0x16930
movl 0xa4(%rsp), %eax
movl %eax, %edx
leaq 0x90(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x16c10
movq 0x50(%rsp), %rsi
addq $0x28, %rsi
leaq 0x70(%rsp), %rdi
callq 0x16930
movl 0xa0(%rsp), %eax
movl %eax, %edx
leaq 0x78(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x16c10
leaq 0x80(%rsp), %rdi
leaq 0x78(%rsp), %rsi
movl $0x1, %edx
callq 0x16c10
leaq 0x90(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x16b40
testb $0x1, %al
jne 0x15723
jmp 0x15847
leaq 0x90(%rsp), %rdi
callq 0x16ca0
movq %rax, %rdi
callq 0x14e30
movsd %xmm0, 0x30(%rsp)
jmp 0x15740
movq 0x40(%rsp), %rdi
movl 0x98(%rsp), %eax
movl %eax, %esi
xorl %eax, %eax
movl %eax, %edx
callq 0xb2a0
movq %rax, 0x28(%rsp)
jmp 0x1575e
movq 0x28(%rsp), %rax
movsd 0x30(%rsp), %xmm0
movsd %xmm0, (%rax)
leaq 0x90(%rsp), %rdi
callq 0x16ca0
movq %rax, %rdi
callq 0x14e40
movsd %xmm0, 0x20(%rsp)
jmp 0x1578a
movq 0x40(%rsp), %rdi
movl 0x98(%rsp), %eax
movl %eax, %esi
movl $0x1, %edx
callq 0xb2a0
movq %rax, 0x18(%rsp)
jmp 0x157a9
movq 0x18(%rsp), %rax
movsd 0x20(%rsp), %xmm0
movsd %xmm0, (%rax)
leaq 0x90(%rsp), %rdi
callq 0x16ca0
movq %rax, %rdi
callq 0x14e50
movsd %xmm0, 0x10(%rsp)
jmp 0x157d5
movq 0x40(%rsp), %rdi
movl 0x98(%rsp), %eax
movl %eax, %esi
movl $0x2, %edx
callq 0xb2a0
movq %rax, 0x8(%rsp)
jmp 0x157f4
movq 0x8(%rsp), %rax
movsd 0x10(%rsp), %xmm0
movsd %xmm0, (%rax)
movl 0x98(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x98(%rsp)
leaq 0x58(%rsp), %rdi
leaq 0x90(%rsp), %rsi
xorl %edx, %edx
callq 0x16b60
jmp 0x156c3
movq 0x40(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
callq 0xb2d0
jmp 0x15870
movb $0x1, 0x9f(%rsp)
testb $0x1, 0x9f(%rsp)
jne 0x15863
movq 0x40(%rsp), %rdi
callq 0xb2d0
movq 0x48(%rsp), %rax
addq $0xb8, %rsp
retq
movq 0x68(%rsp), %rdi
callq 0x8870
nopw (%rax,%rax)