#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 */
int /*<<< orphan*/ store32(int /*<<< orphan*/ *, int /*<<< orphan*/);
__attribute__((always_)) void store_cv_words(uint8_t bytes_out[32],
                                             uint32_t cv_words[8]) {
  store32(&bytes_out[0 * 4], cv_words[0]);
  store32(&bytes_out[1 * 4], cv_words[1]);
  store32(&bytes_out[2 * 4], cv_words[2]);
  store32(&bytes_out[3 * 4], cv_words[3]);
  store32(&bytes_out[4 * 4], cv_words[4]);
  store32(&bytes_out[5 * 4], cv_words[5]);
  store32(&bytes_out[6 * 4], cv_words[6]);
  store32(&bytes_out[7 * 4], cv_words[7]);
}


x86 assembly (clang, -O0):
<store_cv_words>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
call   1030 <store32@plt>
mov    -0x8(%rbp),%rdi
add    $0x10,%rdi
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%esi
call   1030 <store32@plt>
mov    -0x8(%rbp),%rdi
add    $0x20,%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%esi
call   1030 <store32@plt>
mov    -0x8(%rbp),%rdi
add    $0x30,%rdi
mov    -0x10(%rbp),%rax
mov    0xc(%rax),%esi
call   1030 <store32@plt>
mov    -0x8(%rbp),%rdi
add    $0x40,%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%esi
call   1030 <store32@plt>
mov    -0x8(%rbp),%rdi
add    $0x50,%rdi
mov    -0x10(%rbp),%rax
mov    0x14(%rax),%esi
call   1030 <store32@plt>
mov    -0x8(%rbp),%rdi
add    $0x60,%rdi
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%esi
call   1030 <store32@plt>
mov    -0x8(%rbp),%rdi
add    $0x70,%rdi
mov    -0x10(%rbp),%rax
mov    0x1c(%rax),%esi
call   1030 <store32@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<store_cv_words>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
mov    (%rsi),%esi
call   1030 <store32@plt>
lea    0x10(%rbx),%rdi
mov    0x4(%r14),%esi
call   1030 <store32@plt>
lea    0x20(%rbx),%rdi
mov    0x8(%r14),%esi
call   1030 <store32@plt>
lea    0x30(%rbx),%rdi
mov    0xc(%r14),%esi
call   1030 <store32@plt>
lea    0x40(%rbx),%rdi
mov    0x10(%r14),%esi
call   1030 <store32@plt>
lea    0x50(%rbx),%rdi
mov    0x14(%r14),%esi
call   1030 <store32@plt>
lea    0x60(%rbx),%rdi
mov    0x18(%r14),%esi
call   1030 <store32@plt>
add    $0x70,%rbx
mov    0x1c(%r14),%esi
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <store32@plt>

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

LLVM IR (-O2):
define void @store_cv_words(i32* %0, i32* nocapture %1) {
%3 = load i32, i32* %1
%4 = tail call i32 @store32(i32* %0, i32 %3)
%5 = getelementptr inbounds i32, i32* %0, i64 4
%6 = getelementptr inbounds i32, i32* %1, i64 1
%7 = load i32, i32* %6
%8 = tail call i32 @store32(i32* %5, i32 %7)
%9 = getelementptr inbounds i32, i32* %0, i64 8
%10 = getelementptr inbounds i32, i32* %1, i64 2
%11 = load i32, i32* %10
%12 = tail call i32 @store32(i32* %9, i32 %11)
%13 = getelementptr inbounds i32, i32* %0, i64 12
%14 = getelementptr inbounds i32, i32* %1, i64 3
%15 = load i32, i32* %14
%16 = tail call i32 @store32(i32* %13, i32 %15)
%17 = getelementptr inbounds i32, i32* %0, i64 16
%18 = getelementptr inbounds i32, i32* %1, i64 4
%19 = load i32, i32* %18
%20 = tail call i32 @store32(i32* %17, i32 %19)
%21 = getelementptr inbounds i32, i32* %0, i64 20
%22 = getelementptr inbounds i32, i32* %1, i64 5
%23 = load i32, i32* %22
%24 = tail call i32 @store32(i32* %21, i32 %23)
%25 = getelementptr inbounds i32, i32* %0, i64 24
%26 = getelementptr inbounds i32, i32* %1, i64 6
%27 = load i32, i32* %26
%28 = tail call i32 @store32(i32* %25, i32 %27)
%29 = getelementptr inbounds i32, i32* %0, i64 28
%30 = getelementptr inbounds i32, i32* %1, i64 7
%31 = load i32, i32* %30
%32 = tail call i32 @store32(i32* %29, i32 %31)
ret void
}