// File: /workspace/github_cpp_makefile_star2_O1/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 0x1bf3d(%rip), %xmm1    # 0x29040
xorpd %xmm0, %xmm1
cvttsd2si %xmm1, %rdi
cvttsd2si %xmm0, %rsi
movq %r15, %rdx
callq 0x72ce
movl %eax, %ebp
movq %rsp, %rdi
xorl %esi, %esi
callq 0x901a
xorps %xmm0, %xmm0
cvtsi2sd %ebp, %xmm0
movsd %xmm0, (%rax)
movsd 0x8(%r12), %xmm0
movapd 0x1bf01(%rip), %xmm1    # 0x29040
xorpd %xmm0, %xmm1
cvttsd2si %xmm1, %rdi
cvttsd2si %xmm0, %rsi
movq %r15, %rdx
callq 0x72ce
movl %eax, %ebp
movq %rsp, %rdi
movl $0x1, %esi
callq 0x901a
xorps %xmm0, %xmm0
cvtsi2sd %ebp, %xmm0
movsd %xmm0, (%rax)
movsd 0x8(%r12), %xmm0
movapd 0x1bec2(%rip), %xmm1    # 0x29040
xorpd %xmm0, %xmm1
cvttsd2si %xmm1, %rdi
cvttsd2si %xmm0, %rsi
movq %r15, %rdx
callq 0x72ce
movl %eax, %ebp
movq %rsp, %rdi
movl $0x2, %esi
callq 0x901a
xorps %xmm0, %xmm0
cvtsi2sd %ebp, %xmm0
movsd %xmm0, (%rax)
leaq 0x18(%rsp), %rdi
movq %rsp, %rsi
callq 0x94b0
leaq 0x30(%rsp), %rdi
leaq 0x18(%rsp), %rdx
movq %r14, %rsi
callq 0xbf62
movq 0x20(%rsp), %rsi
testq %rsi, %rsi
je 0xd1e5
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 0xb1dc
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 0xd252
movq 0x48(%rsp), %rsi
xorpd %xmm0, %xmm0
xorl %edx, %edx
callq 0xcc46
movq 0x48(%rsp), %rdx
testq %rdx, %rdx
je 0xd252
movq 0x50(%rsp), %rsi
shlq $0x3, %rdx
movq 0x30(%rbx), %rdi
callq 0x64e0
movq 0x48(%rsp), %rsi
testq %rsi, %rsi
je 0xd26a
movq 0x50(%rsp), %rdi
shlq $0x3, %rsi
callq 0x6310
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0xd282
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 0xd2dd
movq 0x28(%rsp), %rdi
jmp 0xd2cf
jmp 0xd2da
movq %rax, %r14
movq (%r15), %rsi
testq %rsi, %rsi
je 0xd2c0
movq 0x30(%rbx), %rdi
shlq $0x3, %rsi
callq 0x6310
movq 0x48(%rsp), %rsi
testq %rsi, %rsi
je 0xd2dd
movq 0x50(%rsp), %rdi
shlq $0x3, %rsi
callq 0x6310
jmp 0xd2dd
movq %rax, %r14
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0xd2f5
movq 0x10(%rsp), %rdi
shlq $0x3, %rsi
callq 0x6310
movq %r14, %rdi
callq 0x65b0
nop