// File: /workspace/github_cpp_makefile_star2_O3/Chrom3D[P]Chrom3D/src/Randomizer.cpp
// Function: TranslateRandomizer::randomize(Chromosome&, boost::random::mersenne_twister_engine<unsigned int, 32ul, 624ul, 397ul, 31ul, 2567483615u, 11ul, 4294967295u, 7ul, 2636928640u, 15ul, 4022730752u, 18ul, 1812433253u>&)
Move TranslateRandomizer::randomize(Chromosome &chr, ENG &eng) {
   
  CoordinateVector tvec(3);
  tvec(0) = util::unif_int(-this->maxmove, this->maxmove, eng);
  tvec(1) = util::unif_int(-this->maxmove, this->maxmove, eng);
  tvec(2) = util::unif_int(-this->maxmove, this->maxmove, eng);

  CoordinateMatrix mat = chr.translate(tvec);
  Move mov(chr);
  mov.start = 0;
  mov.stop = chr.size()-1;
  mov.mat = mat;
  return mov;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x60, %rsp
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
movq $0x3, 0x8(%rsp)
movl $0x18, %edi
callq 0x6300
movq %rax, 0x10(%rsp)
movsd 0x8(%r12), %xmm0
movapd 0x1bfbd(%rip), %xmm1    # 0x29040
xorpd %xmm0, %xmm1
cvttsd2si %xmm1, %rdi
cvttsd2si %xmm0, %rsi
movq %r15, %rdx
callq 0x72ee
movl %eax, %ebp
movq %rsp, %rdi
xorl %esi, %esi
callq 0x8fe2
xorps %xmm0, %xmm0
cvtsi2sd %ebp, %xmm0
movsd %xmm0, (%rax)
movsd 0x8(%r12), %xmm0
movapd 0x1bf81(%rip), %xmm1    # 0x29040
xorpd %xmm0, %xmm1
cvttsd2si %xmm1, %rdi
cvttsd2si %xmm0, %rsi
movq %r15, %rdx
callq 0x72ee
movl %eax, %ebp
movq %rsp, %rdi
movl $0x1, %esi
callq 0x8fe2
xorps %xmm0, %xmm0
cvtsi2sd %ebp, %xmm0
movsd %xmm0, (%rax)
movsd 0x8(%r12), %xmm0
movapd 0x1bf42(%rip), %xmm1    # 0x29040
xorpd %xmm0, %xmm1
cvttsd2si %xmm1, %rdi
cvttsd2si %xmm0, %rsi
movq %r15, %rdx
callq 0x72ee
movl %eax, %ebp
movq %rsp, %rdi
movl $0x2, %esi
callq 0x8fe2
xorps %xmm0, %xmm0
cvtsi2sd %ebp, %xmm0
movsd %xmm0, (%rax)
leaq 0x18(%rsp), %rdi
movq %rsp, %rsi
callq 0x9478
leaq 0x30(%rsp), %rdi
leaq 0x18(%rsp), %rdx
movq %r14, %rsi
callq 0xbebe
movq 0x20(%rsp), %rsi
testq %rsi, %rsi
je 0xd165
movq 0x28(%rsp), %rdi
shlq $0x3, %rsi
callq 0x6310
movq %r14, (%rbx)
leaq 0x28(%rbx), %r15
xorpd %xmm0, %xmm0
movupd %xmm0, 0x28(%rbx)
movupd %xmm0, 0x10(%rbx)
movl $0x0, 0x8(%rbx)
movq %r14, %rdi
callq 0xb138
decl %eax
movl %eax, 0xc(%rbx)
leaq 0x40(%rsp), %rax
movapd -0x10(%rax), %xmm0
movupd %xmm0, 0x10(%rbx)
leaq 0x20(%rbx), %rdi
cmpq %rax, %rdi
je 0xd1d2
movq 0x48(%rsp), %rsi
xorpd %xmm0, %xmm0
xorl %edx, %edx
callq 0xcbba
movq 0x48(%rsp), %rdx
testq %rdx, %rdx
je 0xd1d2
movq 0x50(%rsp), %rsi
shlq $0x3, %rdx
movq 0x30(%rbx), %rdi
callq 0x64e0
movq 0x48(%rsp), %rsi
testq %rsi, %rsi
je 0xd1ea
movq 0x50(%rsp), %rdi
shlq $0x3, %rsi
callq 0x6310
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0xd202
movq 0x10(%rsp), %rdi
shlq $0x3, %rsi
callq 0x6310
movq %rbx, %rax
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x20(%rsp), %rsi
testq %rsi, %rsi
je 0xd25d
movq 0x28(%rsp), %rdi
jmp 0xd24f
jmp 0xd25a
movq %rax, %r14
movq (%r15), %rsi
testq %rsi, %rsi
je 0xd240
movq 0x30(%rbx), %rdi
shlq $0x3, %rsi
callq 0x6310
movq 0x48(%rsp), %rsi
testq %rsi, %rsi
je 0xd25d
movq 0x50(%rsp), %rdi
shlq $0x3, %rsi
callq 0x6310
jmp 0xd25d
movq %rax, %r14
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0xd275
movq 0x10(%rsp), %rdi
shlq $0x3, %rsi
callq 0x6310
movq %r14, %rdi
callq 0x65b0
nop