#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 */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  int A;
  int B;
  int C;
  int D;
};
typedef TYPE_1__ MD5_CTX;

/* Variables and functions */
void tls1_md5_final_raw(void *ctx, unsigned char *md_out) {
  MD5_CTX *md5 = ctx;
  (*((md_out)++) = (unsigned char)(md5->A),
   *((md_out)++) = (unsigned char)(md5->A >> 8),
   *((md_out)++) = (unsigned char)(md5->A >> 16),
   *((md_out)++) = (unsigned char)(md5->A >> 24));
  (*((md_out)++) = (unsigned char)(md5->B),
   *((md_out)++) = (unsigned char)(md5->B >> 8),
   *((md_out)++) = (unsigned char)(md5->B >> 16),
   *((md_out)++) = (unsigned char)(md5->B >> 24));
  (*((md_out)++) = (unsigned char)(md5->C),
   *((md_out)++) = (unsigned char)(md5->C >> 8),
   *((md_out)++) = (unsigned char)(md5->C >> 16),
   *((md_out)++) = (unsigned char)(md5->C >> 24));
  (*((md_out)++) = (unsigned char)(md5->D),
   *((md_out)++) = (unsigned char)(md5->D >> 8),
   *((md_out)++) = (unsigned char)(md5->D >> 16),
   *((md_out)++) = (unsigned char)(md5->D >> 24));
}


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

x86 assembly (clang, -O2):
<tls1_md5_final_raw>:
mov    (%rdi),%al
mov    %al,(%rsi)
mov    0x1(%rdi),%al
mov    %al,0x1(%rsi)
mov    0x2(%rdi),%al
mov    %al,0x2(%rsi)
mov    0x3(%rdi),%al
mov    %al,0x3(%rsi)
mov    0x4(%rdi),%al
mov    %al,0x4(%rsi)
mov    0x5(%rdi),%al
mov    %al,0x5(%rsi)
mov    0x6(%rdi),%al
mov    %al,0x6(%rsi)
mov    0x7(%rdi),%al
mov    %al,0x7(%rsi)
mov    0x8(%rdi),%al
mov    %al,0x8(%rsi)
mov    0x9(%rdi),%al
mov    %al,0x9(%rsi)
mov    0xa(%rdi),%al
mov    %al,0xa(%rsi)
mov    0xb(%rdi),%al
mov    %al,0xb(%rsi)
mov    0xc(%rdi),%al
mov    %al,0xc(%rsi)
mov    0xd(%rdi),%al
mov    %al,0xd(%rsi)
mov    0xe(%rdi),%al
mov    %al,0xe(%rsi)
mov    0xf(%rdi),%al
mov    %al,0xf(%rsi)
ret

LLVM IR (-O0):
%struct.TYPE_2__ = type { i32, i32, i32, i32 }
define void @tls1_md5_final_raw(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca %struct.TYPE_2__*
store i8* %0, i8** %3
store i8* %1, i8** %4
%6 = load i8*, i8** %3
%7 = bitcast i8* %6 to %struct.TYPE_2__*
store %struct.TYPE_2__* %7, %struct.TYPE_2__** %5
%8 = load %struct.TYPE_2__*, %struct.TYPE_2__** %5
%9 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %8, i32 0, i32 0
%10 = load i32, i32* %9
%11 = trunc i32 %10 to i8
%12 = load i8*, i8** %4
%13 = getelementptr inbounds i8, i8* %12, i32 1
store i8* %13, i8** %4
store i8 %11, i8* %12
%14 = load %struct.TYPE_2__*, %struct.TYPE_2__** %5
%15 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %14, i32 0, i32 0
%16 = load i32, i32* %15
%17 = ashr i32 %16, 8
%18 = trunc i32 %17 to i8
%19 = load i8*, i8** %4
%20 = getelementptr inbounds i8, i8* %19, i32 1
store i8* %20, i8** %4
store i8 %18, i8* %19
%21 = load %struct.TYPE_2__*, %struct.TYPE_2__** %5
%22 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %21, i32 0, i32 0
%23 = load i32, i32* %22
%24 = ashr i32 %23, 16
%25 = trunc i32 %24 to i8
%26 = load i8*, i8** %4
%27 = getelementptr inbounds i8, i8* %26, i32 1
store i8* %27, i8** %4
store i8 %25, i8* %26
%28 = load %struct.TYPE_2__*, %struct.TYPE_2__** %5
%29 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %28, i32 0, i32 0
%30 = load i32, i32* %29
%31 = ashr i32 %30, 24
%32 = trunc i32 %31 to i8
%33 = load i8*, i8** %4
%34 = getelementptr inbounds i8, i8* %33, i32 1
store i8* %34, i8** %4
store i8 %32, i8* %33
%35 = load %struct.TYPE_2__*, %struct.TYPE_2__** %5
%36 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %35, i32 0, i32 1
%37 = load i32, i32* %36
%38 = trunc i32 %37 to i8
%39 = load i8*, i8** %4
%40 = getelementptr inbounds i8, i8* %39, i32 1
store i8* %40, i8** %4
store i8 %38, i8* %39
%41 = load %struct.TYPE_2__*, %struct.TYPE_2__** %5
%42 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %41, i32 0, i32 1
%43 = load i32, i32* %42
%44 = ashr i32 %43, 8
%45 = trunc i32 %44 to i8
%46 = load i8*, i8** %4
%47 = getelementptr inbounds i8, i8* %46, i32 1
store i8* %47, i8** %4
store i8 %45, i8* %46
%48 = load %struct.TYPE_2__*, %struct.TYPE_2__** %5
%49 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %48, i32 0, i32 1
%50 = load i32, i32* %49
%51 = ashr i32 %50, 16
%52 = trunc i32 %51 to i8
%53 = load i8*, i8** %4
%54 = getelementptr inbounds i8, i8* %53, i32 1
store i8* %54, i8** %4
store i8 %52, i8* %53
%55 = load %struct.TYPE_2__*, %struct.TYPE_2__** %5
%56 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %55, i32 0, i32 1
%57 = load i32, i32* %56
%58 = ashr i32 %57, 24
%59 = trunc i32 %58 to i8
%60 = load i8*, i8** %4
%61 = getelementptr inbounds i8, i8* %60, i32 1
store i8* %61, i8** %4
store i8 %59, i8* %60
%62 = load %struct.TYPE_2__*, %struct.TYPE_2__** %5
%63 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %62, i32 0, i32 2
%64 = load i32, i32* %63
%65 = trunc i32 %64 to i8
%66 = load i8*, i8** %4
%67 = getelementptr inbounds i8, i8* %66, i32 1
store i8* %67, i8** %4
store i8 %65, i8* %66
%68 = load %struct.TYPE_2__*, %struct.TYPE_2__** %5
%69 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %68, i32 0, i32 2
%70 = load i32, i32* %69
%71 = ashr i32 %70, 8
%72 = trunc i32 %71 to i8
%73 = load i8*, i8** %4
%74 = getelementptr inbounds i8, i8* %73, i32 1
store i8* %74, i8** %4
store i8 %72, i8* %73
%75 = load %struct.TYPE_2__*, %struct.TYPE_2__** %5
%76 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %75, i32 0, i32 2
%77 = load i32, i32* %76
%78 = ashr i32 %77, 16
%79 = trunc i32 %78 to i8
%80 = load i8*, i8** %4
%81 = getelementptr inbounds i8, i8* %80, i32 1
store i8* %81, i8** %4
store i8 %79, i8* %80
%82 = load %struct.TYPE_2__*, %struct.TYPE_2__** %5
%83 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %82, i32 0, i32 2
%84 = load i32, i32* %83
%85 = ashr i32 %84, 24
%86 = trunc i32 %85 to i8
%87 = load i8*, i8** %4
%88 = getelementptr inbounds i8, i8* %87, i32 1
store i8* %88, i8** %4
store i8 %86, i8* %87
%89 = load %struct.TYPE_2__*, %struct.TYPE_2__** %5
%90 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %89, i32 0, i32 3
%91 = load i32, i32* %90
%92 = trunc i32 %91 to i8
%93 = load i8*, i8** %4
%94 = getelementptr inbounds i8, i8* %93, i32 1
store i8* %94, i8** %4
store i8 %92, i8* %93
%95 = load %struct.TYPE_2__*, %struct.TYPE_2__** %5
%96 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %95, i32 0, i32 3
%97 = load i32, i32* %96
%98 = ashr i32 %97, 8
%99 = trunc i32 %98 to i8
%100 = load i8*, i8** %4
%101 = getelementptr inbounds i8, i8* %100, i32 1
store i8* %101, i8** %4
store i8 %99, i8* %100
%102 = load %struct.TYPE_2__*, %struct.TYPE_2__** %5
%103 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %102, i32 0, i32 3
%104 = load i32, i32* %103
%105 = ashr i32 %104, 16
%106 = trunc i32 %105 to i8
%107 = load i8*, i8** %4
%108 = getelementptr inbounds i8, i8* %107, i32 1
store i8* %108, i8** %4
store i8 %106, i8* %107
%109 = load %struct.TYPE_2__*, %struct.TYPE_2__** %5
%110 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %109, i32 0, i32 3
%111 = load i32, i32* %110
%112 = ashr i32 %111, 24
%113 = trunc i32 %112 to i8
%114 = load i8*, i8** %4
%115 = getelementptr inbounds i8, i8* %114, i32 1
store i8* %115, i8** %4
store i8 %113, i8* %114
ret void
}

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