#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 **
_ZNSt20__copy_move_backwardILb0ELb1ESt26random_access_iterator_tagE13__copy_move_bIPiEEPT_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 long long llvm_cbe__Num;
  unsigned int **llvm_cbe_tmp;
  unsigned int **llvm_cbe_tmp1;
  unsigned int **llvm_cbe_tmp2;
  unsigned long long llvm_cbe_tmp3;
  unsigned int **llvm_cbe_tmp4;
  unsigned long long llvm_cbe_tmp6;
  unsigned char *llvm_cbe_tmp__57;
  unsigned int **llvm_cbe_tmp7;
  unsigned long long llvm_cbe_tmp8;
  unsigned int **llvm_cbe_tmp__58;
  *(&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___last_2e_addr);
  llvm_cbe_tmp1 = *(&llvm_cbe___first_2e_addr);
  *(&llvm_cbe__Num) = (((
      signed long long)(((signed long long)(((
                            unsigned long long)(((unsigned long long)((
                                                    (unsigned long long)(unsigned long)
                                                        llvm_cbe_tmp))) -
                                                ((unsigned long long)((
                                                    (unsigned long long)(unsigned long)
                                                        llvm_cbe_tmp1))))))) /
                        ((signed long long)8ull))));
  llvm_cbe_tmp2 = *(&llvm_cbe___result_2e_addr);
  llvm_cbe_tmp3 = *(&llvm_cbe__Num);
  llvm_cbe_tmp4 = *(&llvm_cbe___first_2e_addr);
  llvm_cbe_tmp6 = *(&llvm_cbe__Num);
  llvm_cbe_tmp__57 =
      memmove((((unsigned char *)((
                  &llvm_cbe_tmp2[((signed long long)(-(llvm_cbe_tmp3)))])))),
              (((unsigned char *)llvm_cbe_tmp4)),
              (((unsigned long long)(((unsigned long long)8ull) *
                                     ((unsigned long long)llvm_cbe_tmp6)))));
  llvm_cbe_tmp7 = *(&llvm_cbe___result_2e_addr);
  llvm_cbe_tmp8 = *(&llvm_cbe__Num);
  *(&llvm_cbe_retval) =
      ((&llvm_cbe_tmp7[((signed long long)(-(llvm_cbe_tmp8)))]));
  llvm_cbe_tmp__58 = *(&llvm_cbe_retval);
  return llvm_cbe_tmp__58;
}


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

x86 assembly (clang, -O2):
<_ZNSt20__copy_move_backwardILb0ELb1ESt26random_access_iterator_tagE13__copy_move_bIPiEEPT_PKS4_S7_S5_>:
mov    %rdx,%rcx
mov    %rdi,%rax
sub    %rdi,%rsi
lea    0x7(%rsi),%rdx
test   %rsi,%rsi
cmovns %rsi,%rdx
and    $0xfffffffffffffff8,%rdx
sub    %rdx,%rcx
mov    %rcx,%rdi
mov    %rax,%rsi
jmp    1030 <memmove@plt>

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

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