#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 */
typedef void *int64_t;

/* Variables and functions */
void aligned_block_fill(int64_t *__restrict dst_, int64_t *__restrict src,
                        int size) {
  volatile int64_t *dst = dst_;
  int64_t data = *src;
  while ((size -= 64) >= 0) {
    *dst++ = data;
    *dst++ = data;
    *dst++ = data;
    *dst++ = data;
    *dst++ = data;
    *dst++ = data;
    *dst++ = data;
    *dst++ = data;
  }
}


x86 assembly (clang, -O0):
<aligned_block_fill>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x14(%rbp),%eax
sub    $0x40,%eax
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
jl     11e9 <aligned_block_fill+0xe9>
mov    -0x28(%rbp),%rcx
mov    -0x20(%rbp),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,-0x20(%rbp)
mov    %rcx,(%rax)
mov    -0x28(%rbp),%rcx
mov    -0x20(%rbp),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,-0x20(%rbp)
mov    %rcx,(%rax)
mov    -0x28(%rbp),%rcx
mov    -0x20(%rbp),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,-0x20(%rbp)
mov    %rcx,(%rax)
mov    -0x28(%rbp),%rcx
mov    -0x20(%rbp),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,-0x20(%rbp)
mov    %rcx,(%rax)
mov    -0x28(%rbp),%rcx
mov    -0x20(%rbp),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,-0x20(%rbp)
mov    %rcx,(%rax)
mov    -0x28(%rbp),%rcx
mov    -0x20(%rbp),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,-0x20(%rbp)
mov    %rcx,(%rax)
mov    -0x28(%rbp),%rcx
mov    -0x20(%rbp),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,-0x20(%rbp)
mov    %rcx,(%rax)
mov    -0x28(%rbp),%rcx
mov    -0x20(%rbp),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,-0x20(%rbp)
mov    %rcx,(%rax)
jmp    1122 <aligned_block_fill+0x22>
pop    %rbp
ret

x86 assembly (clang, -O2):
<aligned_block_fill>:
cmp    $0x40,%edx
jl     113b <aligned_block_fill+0x3b>
mov    (%rsi),%rax
add    $0x40,%edx
nopl   0x0(%rax,%rax,1)
mov    %rax,(%rdi)
mov    %rax,0x8(%rdi)
mov    %rax,0x10(%rdi)
mov    %rax,0x18(%rdi)
mov    %rax,0x20(%rdi)
mov    %rax,0x28(%rdi)
mov    %rax,0x30(%rdi)
mov    %rax,0x38(%rdi)
add    $0xffffffc0,%edx
add    $0x40,%rdi
cmp    $0x7f,%edx
ja     1110 <aligned_block_fill+0x10>
ret

LLVM IR (-O0):
define void @aligned_block_fill(i8** noalias %0, i8** noalias %1, i32 %2) {
%4 = alloca i8**
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i8**
%8 = alloca i8*
store i8** %0, i8*** %4
store i8** %1, i8*** %5
store i32 %2, i32* %6
%9 = load i8**, i8*** %4
store i8** %9, i8*** %7
%10 = load i8**, i8*** %5
%11 = load i8*, i8** %10
store i8* %11, i8** %8
br label %12
12: ; preds = %16, %3
%13 = load i32, i32* %6
%14 = sub nsw i32 %13, 64
store i32 %14, i32* %6
%15 = icmp sge i32 %14, 0
br i1 %15, label %16, label %41
16: ; preds = %12
%17 = load i8*, i8** %8
%18 = load i8**, i8*** %7
%19 = getelementptr inbounds i8*, i8** %18, i32 1
store i8** %19, i8*** %7
store volatile i8* %17, i8** %18
%20 = load i8*, i8** %8
%21 = load i8**, i8*** %7
%22 = getelementptr inbounds i8*, i8** %21, i32 1
store i8** %22, i8*** %7
store volatile i8* %20, i8** %21
%23 = load i8*, i8** %8
%24 = load i8**, i8*** %7
%25 = getelementptr inbounds i8*, i8** %24, i32 1
store i8** %25, i8*** %7
store volatile i8* %23, i8** %24
%26 = load i8*, i8** %8
%27 = load i8**, i8*** %7
%28 = getelementptr inbounds i8*, i8** %27, i32 1
store i8** %28, i8*** %7
store volatile i8* %26, i8** %27
%29 = load i8*, i8** %8
%30 = load i8**, i8*** %7
%31 = getelementptr inbounds i8*, i8** %30, i32 1
store i8** %31, i8*** %7
store volatile i8* %29, i8** %30
%32 = load i8*, i8** %8
%33 = load i8**, i8*** %7
%34 = getelementptr inbounds i8*, i8** %33, i32 1
store i8** %34, i8*** %7
store volatile i8* %32, i8** %33
%35 = load i8*, i8** %8
%36 = load i8**, i8*** %7
%37 = getelementptr inbounds i8*, i8** %36, i32 1
store i8** %37, i8*** %7
store volatile i8* %35, i8** %36
%38 = load i8*, i8** %8
%39 = load i8**, i8*** %7
%40 = getelementptr inbounds i8*, i8** %39, i32 1
store i8** %40, i8*** %7
store volatile i8* %38, i8** %39
br label %12
41: ; preds = %12
ret void
}

LLVM IR (-O2):
define void @aligned_block_fill(i8** noalias %0, i8** noalias nocapture %1, i32 %2) {
%4 = load i8*, i8** %1
%5 = icmp sgt i32 %2, 63
br i1 %5, label %6, label %19
6: ; preds = %3, %6
%7 = phi i32 [ %9, %6 ], [ %2, %3 ]
%8 = phi i8** [ %17, %6 ], [ %0, %3 ]
%9 = add nsw i32 %7, -64
%10 = getelementptr inbounds i8*, i8** %8, i64 1
store volatile i8* %4, i8** %8
%11 = getelementptr inbounds i8*, i8** %8, i64 2
store volatile i8* %4, i8** %10
%12 = getelementptr inbounds i8*, i8** %8, i64 3
store volatile i8* %4, i8** %11
%13 = getelementptr inbounds i8*, i8** %8, i64 4
store volatile i8* %4, i8** %12
%14 = getelementptr inbounds i8*, i8** %8, i64 5
store volatile i8* %4, i8** %13
%15 = getelementptr inbounds i8*, i8** %8, i64 6
store volatile i8* %4, i8** %14
%16 = getelementptr inbounds i8*, i8** %8, i64 7
store volatile i8* %4, i8** %15
%17 = getelementptr inbounds i8*, i8** %8, i64 8
store volatile i8* %4, i8** %16
%18 = icmp ugt i32 %7, 127
br i1 %18, label %6, label %19
19: ; preds = %6, %3
ret void
}