// File: /workspace/github_c_makefile_star2_O0/deplinenoise[P]tundra/unittest/googletest/googletest/src/gtest-internal-inl.h
// Function: void testing::internal::ShuffleRange<int>(testing::internal::Random*, int, int, std::vector<int, std::allocator<int>>*)
void ShuffleRange(internal::Random* random, int begin, int end,
                  std::vector<E>* v) {
  const int size = static_cast<int>(v->size());
  GTEST_CHECK_(0 <= begin && begin <= size)
      << "Invalid shuffle range start " << begin << ": must be in range [0, "
      << size << "].";
  GTEST_CHECK_(begin <= end && end <= size)
      << "Invalid shuffle range finish " << end << ": must be in range ["
      << begin << ", " << size << "].";

  // Fisher-Yates shuffle, from
  // http://en.wikipedia.org/wiki/Fisher-Yates_shuffle
  for (int range_width = end - begin; range_width >= 2; range_width--) {
    const int last_in_range = begin + range_width - 1;
    const int selected = begin + random->Generate(range_width);
    std::swap((*v)[selected], (*v)[last_in_range]);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq %rcx, -0x18(%rbp)
movq -0x18(%rbp), %rdi
callq 0x34cb0
movl %eax, -0x1c(%rbp)
xorl %eax, %eax
xorl %ecx, %ecx
cmpl -0xc(%rbp), %ecx
movb %al, -0x3d(%rbp)
jg 0x376dd
movl -0xc(%rbp), %eax
cmpl -0x1c(%rbp), %eax
setle %al
movb %al, -0x3d(%rbp)
movb -0x3d(%rbp), %al
movzbl %al, %edi
andl $0x1, %edi
callq 0x13f80
testb $0x1, %al
jne 0x376f1
jmp 0x376f6
jmp 0x377b9
leaq 0x54464(%rip), %rdx     # 0x8bb61
leaq -0x20(%rbp), %rdi
movq %rdi, -0x50(%rbp)
movl $0x3, %esi
movl $0x13b, %ecx            # imm = 0x13B
callq 0x2dbe0
movq -0x50(%rbp), %rdi
callq 0x305f0
movq %rax, %rdi
leaq 0x54b66(%rip), %rsi     # 0x8c28d
callq 0xe750
movq %rax, -0x48(%rbp)
jmp 0x37732
movq -0x48(%rbp), %rdi
leaq 0x54b7f(%rip), %rsi     # 0x8c2bc
callq 0xe750
movq %rax, -0x58(%rbp)
jmp 0x37748
movq -0x58(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0xee60
movq %rax, -0x60(%rbp)
jmp 0x3775a
movq -0x60(%rbp), %rdi
leaq 0x54b74(%rip), %rsi     # 0x8c2d9
callq 0xe750
movq %rax, -0x68(%rbp)
jmp 0x37770
movq -0x68(%rbp), %rdi
movl -0x1c(%rbp), %esi
callq 0xee60
movq %rax, -0x70(%rbp)
jmp 0x37782
movq -0x70(%rbp), %rdi
leaq 0x54752(%rip), %rsi     # 0x8bedf
callq 0xe750
jmp 0x37794
leaq -0x20(%rbp), %rdi
callq 0x2dd20
jmp 0x377b9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x2dd20
jmp 0x37981
movl -0xc(%rbp), %ecx
xorl %eax, %eax
cmpl -0x10(%rbp), %ecx
movb %al, -0x71(%rbp)
jg 0x377d2
movl -0x10(%rbp), %eax
cmpl -0x1c(%rbp), %eax
setle %al
movb %al, -0x71(%rbp)
movb -0x71(%rbp), %al
movzbl %al, %edi
andl $0x1, %edi
callq 0x13f80
testb $0x1, %al
jne 0x377e6
jmp 0x377eb
jmp 0x37900
leaq 0x5436f(%rip), %rdx     # 0x8bb61
leaq -0x30(%rbp), %rdi
movq %rdi, -0x88(%rbp)
movl $0x3, %esi
movl $0x13e, %ecx            # imm = 0x13E
callq 0x2dbe0
movq -0x88(%rbp), %rdi
callq 0x305f0
movq %rax, %rdi
leaq 0x54acf(%rip), %rsi     # 0x8c2f1
callq 0xe750
movq %rax, -0x80(%rbp)
jmp 0x3782d
movq -0x80(%rbp), %rdi
leaq 0x54ae8(%rip), %rsi     # 0x8c320
callq 0xe750
movq %rax, -0x90(%rbp)
jmp 0x37846
movq -0x90(%rbp), %rdi
movl -0x10(%rbp), %esi
callq 0xee60
movq %rax, -0x98(%rbp)
jmp 0x3785e
movq -0x98(%rbp), %rdi
leaq 0x54ad2(%rip), %rsi     # 0x8c33e
callq 0xe750
movq %rax, -0xa0(%rbp)
jmp 0x3787a
movq -0xa0(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0xee60
movq %rax, -0xa8(%rbp)
jmp 0x37892
movq -0xa8(%rbp), %rdi
leaq 0x54a4e(%rip), %rsi     # 0x8c2ee
callq 0xe750
movq %rax, -0xb0(%rbp)
jmp 0x378ae
movq -0xb0(%rbp), %rdi
movl -0x1c(%rbp), %esi
callq 0xee60
movq %rax, -0xb8(%rbp)
jmp 0x378c6
movq -0xb8(%rbp), %rdi
leaq 0x5460b(%rip), %rsi     # 0x8bedf
callq 0xe750
jmp 0x378db
leaq -0x30(%rbp), %rdi
callq 0x2dd20
jmp 0x37900
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x2dd20
jmp 0x37981
movl -0x10(%rbp), %eax
subl -0xc(%rbp), %eax
movl %eax, -0x34(%rbp)
cmpl $0x2, -0x34(%rbp)
jl 0x37978
movl -0xc(%rbp), %eax
addl -0x34(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x38(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0xc4(%rbp)
movq -0x8(%rbp), %rdi
movl -0x34(%rbp), %esi
callq 0x13d90
movl %eax, %ecx
movl -0xc4(%rbp), %eax
addl %ecx, %eax
movl %eax, -0x3c(%rbp)
movq -0x18(%rbp), %rdi
movslq -0x3c(%rbp), %rsi
callq 0x34ff0
movq %rax, -0xc0(%rbp)
movq -0x18(%rbp), %rdi
movslq -0x38(%rbp), %rsi
callq 0x34ff0
movq -0xc0(%rbp), %rdi
movq %rax, %rsi
callq 0x4d3e0
movl -0x34(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x37909
addq $0xd0, %rsp
popq %rbp
retq
movq -0x28(%rbp), %rdi
callq 0xee80
nopw (%rax,%rax)