#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 */
void fill(unsigned char dest[64 * 3]) {
  size_t i;
  for (i = 0; i < 64 * 3; i++)
    dest[i] = (10 + i) % 64;
}


x86 assembly (clang, -O0):
<fill>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
cmpq   $0xc0,-0x10(%rbp)
jae    1148 <fill+0x48>
mov    -0x10(%rbp),%rax
add    $0xa,%rax
and    $0x3f,%rax
mov    %al,%dl
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1110 <fill+0x10>
pop    %rbp
ret

x86 assembly (clang, -O2):
<fill>:
movaps 0xef9(%rip),%xmm0
movups %xmm0,(%rdi)
movaps 0xeff(%rip),%xmm1
movups %xmm1,0x10(%rdi)
movaps 0xf04(%rip),%xmm2
movups %xmm2,0x20(%rdi)
movaps 0xf09(%rip),%xmm3
movups %xmm3,0x30(%rdi)
movups %xmm0,0x40(%rdi)
movups %xmm1,0x50(%rdi)
movups %xmm2,0x60(%rdi)
movups %xmm3,0x70(%rdi)
movups %xmm0,0x80(%rdi)
movups %xmm1,0x90(%rdi)
movups %xmm2,0xa0(%rdi)
movups %xmm3,0xb0(%rdi)
ret

LLVM IR (-O0):
define void @fill(i8* %0) {
%2 = alloca i8*
%3 = alloca i64
store i8* %0, i8** %2
store i64 0, i64* %3
br label %4
4: ; preds = %15, %1
%5 = load i64, i64* %3
%6 = icmp ult i64 %5, 192
br i1 %6, label %7, label %18
7: ; preds = %4
%8 = load i64, i64* %3
%9 = add i64 10, %8
%10 = urem i64 %9, 64
%11 = trunc i64 %10 to i8
%12 = load i8*, i8** %2
%13 = load i64, i64* %3
%14 = getelementptr inbounds i8, i8* %12, i64 %13
store i8 %11, i8* %14
br label %15
15: ; preds = %7
%16 = load i64, i64* %3
%17 = add i64 %16, 1
store i64 %17, i64* %3
br label %4
18: ; preds = %4
ret void
}

LLVM IR (-O2):
define void @fill(i8* nocapture writeonly %0) {
%2 = bitcast i8* %0 to <16 x i8>*
store <16 x i8> <i8 10, i8 11, i8 12, i8 13, i8 14, i8 15, i8 16, i8 17, i8 18, i8 19, i8 20, i8 21, i8 22, i8 23, i8 24, i8 25>, <16 x i8>* %2
%3 = getelementptr inbounds i8, i8* %0, i64 16
%4 = bitcast i8* %3 to <16 x i8>*
store <16 x i8> <i8 26, i8 27, i8 28, i8 29, i8 30, i8 31, i8 32, i8 33, i8 34, i8 35, i8 36, i8 37, i8 38, i8 39, i8 40, i8 41>, <16 x i8>* %4
%5 = getelementptr inbounds i8, i8* %0, i64 32
%6 = bitcast i8* %5 to <16 x i8>*
store <16 x i8> <i8 42, i8 43, i8 44, i8 45, i8 46, i8 47, i8 48, i8 49, i8 50, i8 51, i8 52, i8 53, i8 54, i8 55, i8 56, i8 57>, <16 x i8>* %6
%7 = getelementptr inbounds i8, i8* %0, i64 48
%8 = bitcast i8* %7 to <16 x i8>*
store <16 x i8> <i8 58, i8 59, i8 60, i8 61, i8 62, i8 63, i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9>, <16 x i8>* %8
%9 = getelementptr inbounds i8, i8* %0, i64 64
%10 = bitcast i8* %9 to <16 x i8>*
store <16 x i8> <i8 10, i8 11, i8 12, i8 13, i8 14, i8 15, i8 16, i8 17, i8 18, i8 19, i8 20, i8 21, i8 22, i8 23, i8 24, i8 25>, <16 x i8>* %10
%11 = getelementptr inbounds i8, i8* %0, i64 80
%12 = bitcast i8* %11 to <16 x i8>*
store <16 x i8> <i8 26, i8 27, i8 28, i8 29, i8 30, i8 31, i8 32, i8 33, i8 34, i8 35, i8 36, i8 37, i8 38, i8 39, i8 40, i8 41>, <16 x i8>* %12
%13 = getelementptr inbounds i8, i8* %0, i64 96
%14 = bitcast i8* %13 to <16 x i8>*
store <16 x i8> <i8 42, i8 43, i8 44, i8 45, i8 46, i8 47, i8 48, i8 49, i8 50, i8 51, i8 52, i8 53, i8 54, i8 55, i8 56, i8 57>, <16 x i8>* %14
%15 = getelementptr inbounds i8, i8* %0, i64 112
%16 = bitcast i8* %15 to <16 x i8>*
store <16 x i8> <i8 58, i8 59, i8 60, i8 61, i8 62, i8 63, i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9>, <16 x i8>* %16
%17 = getelementptr inbounds i8, i8* %0, i64 128
%18 = bitcast i8* %17 to <16 x i8>*
store <16 x i8> <i8 10, i8 11, i8 12, i8 13, i8 14, i8 15, i8 16, i8 17, i8 18, i8 19, i8 20, i8 21, i8 22, i8 23, i8 24, i8 25>, <16 x i8>* %18
%19 = getelementptr inbounds i8, i8* %0, i64 144
%20 = bitcast i8* %19 to <16 x i8>*
store <16 x i8> <i8 26, i8 27, i8 28, i8 29, i8 30, i8 31, i8 32, i8 33, i8 34, i8 35, i8 36, i8 37, i8 38, i8 39, i8 40, i8 41>, <16 x i8>* %20
%21 = getelementptr inbounds i8, i8* %0, i64 160
%22 = bitcast i8* %21 to <16 x i8>*
store <16 x i8> <i8 42, i8 43, i8 44, i8 45, i8 46, i8 47, i8 48, i8 49, i8 50, i8 51, i8 52, i8 53, i8 54, i8 55, i8 56, i8 57>, <16 x i8>* %22
%23 = getelementptr inbounds i8, i8* %0, i64 176
%24 = bitcast i8* %23 to <16 x i8>*
store <16 x i8> <i8 58, i8 59, i8 60, i8 61, i8 62, i8 63, i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9>, <16 x i8>* %24
ret void
}