void ECRYPT_ivsetup(unsigned int *arg1, unsigned int *arg2, void *arg3,
                    void *arg4, void *arg5) {
  register unsigned int *c;
  register unsigned int *iv;
  register unsigned int x0;
  register unsigned int x1;
  register unsigned int x2;
  register unsigned int x3;
  c = arg1;
  iv = arg2;
  x0 = iv[0];
  x1 = iv[1];
  x2 = iv[2];
  x3 = iv[3];
  c[14] = x0;
  c[15] = x1;
  c[16] = x2;
  c[17] = x3;
  return;
}


x86 assembly (clang, -O0):
<ECRYPT_ivsetup>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x38(%rbp),%rax
mov    0x4(%rax),%eax
mov    %eax,-0x40(%rbp)
mov    -0x38(%rbp),%rax
mov    0x8(%rax),%eax
mov    %eax,-0x44(%rbp)
mov    -0x38(%rbp),%rax
mov    0xc(%rax),%eax
mov    %eax,-0x48(%rbp)
mov    -0x3c(%rbp),%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,0x38(%rax)
mov    -0x40(%rbp),%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,0x3c(%rax)
mov    -0x44(%rbp),%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,0x40(%rax)
mov    -0x48(%rbp),%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,0x44(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<ECRYPT_ivsetup>:
movups (%rsi),%xmm0
movups %xmm0,0x38(%rdi)
ret

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

LLVM IR (-O2):
define void @ECRYPT_ivsetup(i32* nocapture writeonly %0, i32* nocapture %1, i8* nocapture readnone %2, i8* nocapture readnone %3, i8* nocapture readnone %4) {
%6 = bitcast i32* %1 to <4 x i32>*
%7 = load <4 x i32>, <4 x i32>* %6
%8 = getelementptr inbounds i32, i32* %0, i64 14
%9 = bitcast i32* %8 to <4 x i32>*
store <4 x i32> %7, <4 x i32>* %9
ret void
}