#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
unsigned char *memmove(unsigned char *, unsigned char *, unsigned long long);
unsigned int **
_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIPiEEPT_PKS4_S7_S5_(
    unsigned int **llvm_cbe___first, unsigned int **llvm_cbe___last,
    unsigned int **llvm_cbe___result) {
  unsigned int **llvm_cbe_retval;
  unsigned int **llvm_cbe___first_2e_addr;
  unsigned int **llvm_cbe___last_2e_addr;
  unsigned int **llvm_cbe___result_2e_addr;
  unsigned int **llvm_cbe_tmp;
  unsigned int **llvm_cbe_tmp1;
  unsigned int **llvm_cbe_tmp3;
  unsigned int **llvm_cbe_tmp4;
  unsigned char *llvm_cbe_tmp__46;
  unsigned int **llvm_cbe_tmp5;
  unsigned int **llvm_cbe_tmp6;
  unsigned int **llvm_cbe_tmp7;
  unsigned int **llvm_cbe_tmp__47;
  *(&llvm_cbe___first_2e_addr) = llvm_cbe___first;
  *(&llvm_cbe___last_2e_addr) = llvm_cbe___last;
  *(&llvm_cbe___result_2e_addr) = llvm_cbe___result;
  llvm_cbe_tmp = *(&llvm_cbe___result_2e_addr);
  llvm_cbe_tmp1 = *(&llvm_cbe___first_2e_addr);
  llvm_cbe_tmp3 = *(&llvm_cbe___last_2e_addr);
  llvm_cbe_tmp4 = *(&llvm_cbe___first_2e_addr);
  llvm_cbe_tmp__46 = memmove(
      (((unsigned char *)llvm_cbe_tmp)), (((unsigned char *)llvm_cbe_tmp1)),
      (((unsigned long long)(((unsigned long long)8ull) *
                             ((unsigned long long)(((
                                 signed long long)(((signed long long)(((
                                                       unsigned long long)(((unsigned long long)((
                                                                               (unsigned long long)(unsigned long)
                                                                                   llvm_cbe_tmp3))) -
                                                                           ((unsigned long long)((
                                                                               (unsigned long long)(unsigned long)
                                                                                   llvm_cbe_tmp4))))))) /
                                                   ((signed long long)8ull)))))))));
  llvm_cbe_tmp5 = *(&llvm_cbe___result_2e_addr);
  llvm_cbe_tmp6 = *(&llvm_cbe___last_2e_addr);
  llvm_cbe_tmp7 = *(&llvm_cbe___first_2e_addr);
  *(&llvm_cbe_retval) = ((&llvm_cbe_tmp5[((signed long long)(((
      signed long long)(((signed long long)(((
                            unsigned long long)(((unsigned long long)((
                                                    (unsigned long long)(unsigned long)
                                                        llvm_cbe_tmp6))) -
                                                ((unsigned long long)((
                                                    (unsigned long long)(unsigned long)
                                                        llvm_cbe_tmp7))))))) /
                        ((signed long long)8ull)))))]));
  llvm_cbe_tmp__47 = *(&llvm_cbe_retval);
  return llvm_cbe_tmp__47;
}


x86 assembly (clang, -O0):
<_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIPiEEPT_PKS4_S7_S5_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x40(%rbp),%rdi
mov    -0x48(%rbp),%rsi
mov    -0x50(%rbp),%rax
mov    -0x58(%rbp),%rcx
sub    %rcx,%rax
mov    $0x8,%ecx
cqto
idiv   %rcx
mov    %rax,%rdx
shl    $0x3,%rdx
call   1030 <memmove@plt>
mov    %rax,-0x60(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x68(%rbp),%rax
mov    %rax,-0x88(%rbp)
mov    -0x70(%rbp),%rax
mov    -0x78(%rbp),%rcx
sub    %rcx,%rax
mov    $0x8,%ecx
cqto
idiv   %rcx
mov    %rax,%rcx
mov    -0x88(%rbp),%rax
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x80(%rbp),%rax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIPiEEPT_PKS4_S7_S5_>:
push   %r14
push   %rbx
push   %rax
mov    %rdx,%r14
mov    %rdi,%rax
sub    %rdi,%rsi
lea    0x7(%rsi),%rbx
test   %rsi,%rsi
cmovns %rsi,%rbx
and    $0xfffffffffffffff8,%rbx
mov    %rdx,%rdi
mov    %rax,%rsi
mov    %rbx,%rdx
call   1030 <memmove@plt>
add    %r14,%rbx
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32** @_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIPiEEPT_PKS4_S7_S5_(i32** %0, i32** %1, i32** %2) {
%4 = alloca i32**
%5 = alloca i32**
%6 = alloca i32**
%7 = alloca i32**
%8 = alloca i32**
%9 = alloca i32**
%10 = alloca i32**
%11 = alloca i32**
%12 = alloca i32**
%13 = alloca i32**
%14 = alloca i32**
%15 = alloca i8*
%16 = alloca i32**
%17 = alloca i32**
%18 = alloca i32**
%19 = alloca i32**
store i32** %0, i32*** %4
store i32** %1, i32*** %5
store i32** %2, i32*** %6
%20 = load i32**, i32*** %4
store i32** %20, i32*** %8
%21 = load i32**, i32*** %5
store i32** %21, i32*** %9
%22 = load i32**, i32*** %6
store i32** %22, i32*** %10
%23 = load i32**, i32*** %10
store i32** %23, i32*** %11
%24 = load i32**, i32*** %8
store i32** %24, i32*** %12
%25 = load i32**, i32*** %9
store i32** %25, i32*** %13
%26 = load i32**, i32*** %8
store i32** %26, i32*** %14
%27 = load i32**, i32*** %11
%28 = bitcast i32** %27 to i8*
%29 = load i32**, i32*** %12
%30 = bitcast i32** %29 to i8*
%31 = load i32**, i32*** %13
%32 = ptrtoint i32** %31 to i64
%33 = load i32**, i32*** %14
%34 = ptrtoint i32** %33 to i64
%35 = sub i64 %32, %34
%36 = sdiv i64 %35, 8
%37 = mul i64 8, %36
%38 = call i8* @memmove(i8* %28, i8* %30, i64 %37)
store i8* %38, i8** %15
%39 = load i32**, i32*** %10
store i32** %39, i32*** %16
%40 = load i32**, i32*** %9
store i32** %40, i32*** %17
%41 = load i32**, i32*** %8
store i32** %41, i32*** %18
%42 = load i32**, i32*** %16
%43 = load i32**, i32*** %17
%44 = ptrtoint i32** %43 to i64
%45 = load i32**, i32*** %18
%46 = ptrtoint i32** %45 to i64
%47 = sub i64 %44, %46
%48 = sdiv i64 %47, 8
%49 = getelementptr inbounds i32*, i32** %42, i64 %48
store i32** %49, i32*** %7
%50 = load i32**, i32*** %7
store i32** %50, i32*** %19
%51 = load i32**, i32*** %19
ret i32** %51
}

LLVM IR (-O2):
define i32** @_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIPiEEPT_PKS4_S7_S5_(i32** %0, i32** %1, i32** writeonly %2) {
%4 = bitcast i32** %2 to i8*
%5 = bitcast i32** %0 to i8*
%6 = ptrtoint i32** %1 to i64
%7 = ptrtoint i32** %0 to i64
%8 = sub i64 %6, %7
%9 = sdiv i64 %8, 8
%10 = shl nsw i64 %9, 3
tail call void @llvm.memmove.p0i8.p0i8.i64(i8* align 1 %4, i8* align 1 %5, i64 %10, i1 false)
%11 = getelementptr inbounds i32*, i32** %2, i64 %9
ret i32** %11
}