void unscrun(outof, into) register unsigned int *outof;
register unsigned char *into;
{
  *into++ = (*outof >> 24) & 0xff;
  *into++ = (*outof >> 16) & 0xff;
  *into++ = (*outof >> 8) & 0xff;
  *into++ = *outof++ & 0xff;
  *into++ = (*outof >> 24) & 0xff;
  *into++ = (*outof >> 16) & 0xff;
  *into++ = (*outof >> 8) & 0xff;
  *into = *outof & 0xff;
  return;
}


x86 assembly (clang, -O0):
<unscrun>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
shr    $0x18,%eax
and    $0xff,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
shr    $0x10,%eax
and    $0xff,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
shr    $0x8,%eax
and    $0xff,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x8(%rbp)
mov    (%rax),%eax
and    $0xff,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
shr    $0x18,%eax
and    $0xff,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
shr    $0x10,%eax
and    $0xff,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
shr    $0x8,%eax
and    $0xff,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
and    $0xff,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<unscrun>:
mov    0x3(%rdi),%al
mov    %al,(%rsi)
mov    0x2(%rdi),%al
mov    %al,0x1(%rsi)
mov    0x1(%rdi),%al
mov    %al,0x2(%rsi)
mov    (%rdi),%al
mov    %al,0x3(%rsi)
mov    0x7(%rdi),%al
mov    %al,0x4(%rsi)
mov    0x6(%rdi),%al
mov    %al,0x5(%rsi)
mov    0x5(%rdi),%al
mov    %al,0x6(%rsi)
mov    0x4(%rdi),%al
mov    %al,0x7(%rsi)
ret

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

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