#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 int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
void predict_16x16_dc_128(uint8_t *src, int i_stride) {
  int i;
  for (i = 0; i < 16; i++) {
    uint32_t *p = (uint32_t *)src;
    *p++ = 0x80808080;
    *p++ = 0x80808080;
    *p++ = 0x80808080;
    *p++ = 0x80808080;
    src += i_stride;
  }
}


x86 assembly (clang, -O0):
<predict_16x16_dc_128>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x10,-0x10(%rbp)
jge    119b <predict_16x16_dc_128+0x9b>
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x18(%rbp)
movl   $0x80808080,(%rax)
mov    -0x18(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x18(%rbp)
movl   $0x80808080,(%rax)
mov    -0x18(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x18(%rbp)
movl   $0x80808080,(%rax)
mov    -0x18(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x18(%rbp)
movl   $0x80808080,(%rax)
mov    -0xc(%rbp),%ecx
mov    -0x8(%rbp),%rax
movslq %ecx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x8(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1112 <predict_16x16_dc_128+0x12>
pop    %rbp
ret

x86 assembly (clang, -O2):
<predict_16x16_dc_128>:
movslq %esi,%rax
lea    (%rdi,%rax,4),%rcx
movaps 0xef2(%rip),%xmm0
movups %xmm0,(%rdi)
lea    (%rcx,%rax,4),%rdx
movups %xmm0,(%rdi,%rax,4)
lea    (%rdx,%rax,4),%rsi
movups %xmm0,(%rcx,%rax,4)
lea    (%rsi,%rax,4),%rcx
movups %xmm0,(%rdx,%rax,4)
lea    (%rcx,%rax,4),%rdx
movups %xmm0,(%rsi,%rax,4)
lea    (%rdx,%rax,4),%rsi
movups %xmm0,(%rcx,%rax,4)
lea    (%rsi,%rax,4),%rcx
movups %xmm0,(%rdx,%rax,4)
lea    (%rcx,%rax,4),%rdx
movups %xmm0,(%rsi,%rax,4)
lea    (%rdx,%rax,4),%rsi
movups %xmm0,(%rcx,%rax,4)
lea    (%rsi,%rax,4),%rcx
movups %xmm0,(%rdx,%rax,4)
lea    (%rcx,%rax,4),%rdx
movups %xmm0,(%rsi,%rax,4)
lea    (%rdx,%rax,4),%rsi
movups %xmm0,(%rcx,%rax,4)
lea    (%rsi,%rax,4),%rcx
movups %xmm0,(%rdx,%rax,4)
lea    (%rcx,%rax,4),%rdx
movups %xmm0,(%rsi,%rax,4)
movups %xmm0,(%rcx,%rax,4)
movups %xmm0,(%rdx,%rax,4)
ret

LLVM IR (-O0):
define void @predict_16x16_dc_128(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32*
store i32* %0, i32** %3
store i32 %1, i32* %4
store i32 0, i32* %5
br label %7
7: ; preds = %24, %2
%8 = load i32, i32* %5
%9 = icmp slt i32 %8, 16
br i1 %9, label %10, label %27
10: ; preds = %7
%11 = load i32*, i32** %3
store i32* %11, i32** %6
%12 = load i32*, i32** %6
%13 = getelementptr inbounds i32, i32* %12, i32 1
store i32* %13, i32** %6
store i32 -2139062144, i32* %12
%14 = load i32*, i32** %6
%15 = getelementptr inbounds i32, i32* %14, i32 1
store i32* %15, i32** %6
store i32 -2139062144, i32* %14
%16 = load i32*, i32** %6
%17 = getelementptr inbounds i32, i32* %16, i32 1
store i32* %17, i32** %6
store i32 -2139062144, i32* %16
%18 = load i32*, i32** %6
%19 = getelementptr inbounds i32, i32* %18, i32 1
store i32* %19, i32** %6
store i32 -2139062144, i32* %18
%20 = load i32, i32* %4
%21 = load i32*, i32** %3
%22 = sext i32 %20 to i64
%23 = getelementptr inbounds i32, i32* %21, i64 %22
store i32* %23, i32** %3
br label %24
24: ; preds = %10
%25 = load i32, i32* %5
%26 = add nsw i32 %25, 1
store i32 %26, i32* %5
br label %7
27: ; preds = %7
ret void
}

LLVM IR (-O2):
define void @predict_16x16_dc_128(i32* nocapture writeonly %0, i32 %1) {
%3 = sext i32 %1 to i64
%4 = getelementptr inbounds i32, i32* %0, i64 %3
%5 = bitcast i32* %0 to i8*
%6 = getelementptr inbounds i32, i32* %4, i64 %3
%7 = bitcast i32* %4 to i8*
%8 = getelementptr inbounds i32, i32* %6, i64 %3
%9 = bitcast i32* %6 to i8*
%10 = getelementptr inbounds i32, i32* %8, i64 %3
%11 = bitcast i32* %8 to i8*
%12 = getelementptr inbounds i32, i32* %10, i64 %3
%13 = bitcast i32* %10 to i8*
%14 = getelementptr inbounds i32, i32* %12, i64 %3
%15 = bitcast i32* %12 to i8*
%16 = getelementptr inbounds i32, i32* %14, i64 %3
%17 = bitcast i32* %14 to i8*
%18 = getelementptr inbounds i32, i32* %16, i64 %3
%19 = bitcast i32* %16 to i8*
%20 = getelementptr inbounds i32, i32* %18, i64 %3
%21 = bitcast i32* %18 to i8*
%22 = getelementptr inbounds i32, i32* %20, i64 %3
%23 = bitcast i32* %20 to i8*
%24 = getelementptr inbounds i32, i32* %22, i64 %3
%25 = bitcast i32* %22 to i8*
%26 = getelementptr inbounds i32, i32* %24, i64 %3
%27 = bitcast i32* %24 to i8*
%28 = getelementptr inbounds i32, i32* %26, i64 %3
%29 = bitcast i32* %26 to i8*
%30 = getelementptr inbounds i32, i32* %28, i64 %3
%31 = bitcast i32* %28 to i8*
%32 = getelementptr inbounds i32, i32* %30, i64 %3
%33 = bitcast i32* %30 to i8*
%34 = bitcast i32* %32 to i8*
ret void
}