#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 uint64_t;
typedef int uint32_t;

/* Variables and functions */
int /*<<< orphan*/ sprintf(char *, char *, int, int, int, int);
void md5_calculate(char *result, const char *bytes, unsigned count) {
  static const uint32_t SIN[64] = {
      0xd76aa478, 0xe8c7b756, 0x242070db, 0xc1bdceee, 0xf57c0faf, 0x4787c62a,
      0xa8304613, 0xfd469501, 0x698098d8, 0x8b44f7af, 0xffff5bb1, 0x895cd7be,
      0x6b901122, 0xfd987193, 0xa679438e, 0x49b40821, 0xf61e2562, 0xc040b340,
      0x265e5a51, 0xe9b6c7aa, 0xd62f105d, 0x2441453,  0xd8a1e681, 0xe7d3fbc8,
      0x21e1cde6, 0xc33707d6, 0xf4d50d87, 0x455a14ed, 0xa9e3e905, 0xfcefa3f8,
      0x676f02d9, 0x8d2a4c8a, 0xfffa3942, 0x8771f681, 0x6d9d6122, 0xfde5380c,
      0xa4beea44, 0x4bdecfa9, 0xf6bb4b60, 0xbebfbc70, 0x289b7ec6, 0xeaa127fa,
      0xd4ef3085, 0x4881d05,  0xd9d4d039, 0xe6db99e5, 0x1fa27cf8, 0xc4ac5665,
      0xf4292244, 0x432aff97, 0xab9423a7, 0xfc93a039, 0x655b59c3, 0x8f0ccc92,
      0xffeff47d, 0x85845dd1, 0x6fa87e4f, 0xfe2ce6e0, 0xa3014314, 0x4e0811a1,
      0xf7537e82, 0xbd3af235, 0x2ad7d2bb, 0xeb86d391};
  static const int Shift[4][4] = {
      {7, 12, 17, 22}, {5, 9, 14, 20}, {4, 11, 16, 23}, {6, 10, 15, 21}};
  uint32_t Q[4] = {0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476};
  uint32_t A, B, C, D, X[16];
  uint64_t bits = 8 * count;
  unsigned i;
  while (bytes || count) {
    for (i = 0; i < 16; ++i)
      X[i] = 0;
    if (bytes) {
      for (i = 0; i < (count > 64 ? 64 : count); ++i)
        X[i / 4] |= (unsigned char)bytes[i] << 8 * (i % 4);
      if (count >= 64) {
        bytes += 64;
        count -= 64;
      } else {
        X[count / 4] |= 0x80 << 8 * (count % 4);
        ++count;
        bytes = NULL;
      }
    } else
      count = 0;
    if (bytes == NULL && count <= 56) {
      X[14] = bits;
      X[15] = bits >> 32;
      count = 0;
    }
    A = Q[0];
    B = Q[1];
    C = Q[2];
    D = Q[3];
    for (i = 0; i < 64; ++i) {
      uint32_t rol = ((i < 16)   ? ((B & C) | (~B & D)) + X[i]
                      : (i < 32) ? ((D & B) | (~D & C)) + X[(5 * i + 1) & 0xf]
                      : (i < 48) ? (B ^ C ^ D) + X[(3 * i + 5) & 0xf]
                                 : (C ^ (B | ~D)) + X[(7 * i) & 0xf]) +
                     A + SIN[i];
      A = D;
      D = C;
      C = B;
      B += rol << Shift[i / 16][i % 4] | rol >> (32 - Shift[i / 16][i % 4]);
    }
    Q[0] += A;
    Q[1] += B;
    Q[2] += C;
    Q[3] += D;
  }
  for (i = 0; i < 4; ++i)
    sprintf(result + 8 * i, "%02x%02x%02x%02x", Q[i] & 0xff, Q[i] >> 8 & 0xff,
            Q[i] >> 16 & 0xff, Q[i] >> 24 & 0xff);
}


x86 assembly (clang, -O0):
<md5_calculate>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    0x1013(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0x1010(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    -0x14(%rbp),%eax
shl    $0x3,%eax
mov    %eax,-0x84(%rbp)
mov    $0x1,%al
cmpq   $0x0,-0x10(%rbp)
mov    %al,-0x8d(%rbp)
jne    1168 <md5_calculate+0x58>
cmpl   $0x0,-0x14(%rbp)
setne  %al
mov    %al,-0x8d(%rbp)
mov    -0x8d(%rbp),%al
test   $0x1,%al
jne    117b <md5_calculate+0x6b>
jmp    14da <md5_calculate+0x3ca>
movl   $0x0,-0x88(%rbp)
cmpl   $0x10,-0x88(%rbp)
jae    11b4 <md5_calculate+0xa4>
mov    -0x88(%rbp),%eax
movl   $0x0,-0x80(%rbp,%rax,4)
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    1185 <md5_calculate+0x75>
cmpq   $0x0,-0x10(%rbp)
je     12ad <md5_calculate+0x19d>
movl   $0x0,-0x88(%rbp)
mov    -0x88(%rbp),%eax
mov    %eax,-0x94(%rbp)
cmpl   $0x40,-0x14(%rbp)
jbe    11ef <md5_calculate+0xdf>
mov    $0x40,%eax
mov    %eax,-0x98(%rbp)
jmp    11f8 <md5_calculate+0xe8>
mov    -0x14(%rbp),%eax
mov    %eax,-0x98(%rbp)
mov    -0x94(%rbp),%eax
mov    -0x98(%rbp),%ecx
cmp    %ecx,%eax
jae    1251 <md5_calculate+0x141>
mov    -0x10(%rbp),%rax
mov    -0x88(%rbp),%ecx
movzbl (%rax,%rcx,1),%eax
mov    -0x88(%rbp),%ecx
and    $0x3,%ecx
shl    $0x3,%ecx
shl    %cl,%eax
mov    %eax,%ecx
mov    -0x88(%rbp),%eax
shr    $0x2,%eax
mov    %eax,%eax
or     -0x80(%rbp,%rax,4),%ecx
mov    %ecx,-0x80(%rbp,%rax,4)
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    11c9 <md5_calculate+0xb9>
cmpl   $0x40,-0x14(%rbp)
jb     1275 <md5_calculate+0x165>
mov    -0x10(%rbp),%rax
add    $0x40,%rax
mov    %rax,-0x10(%rbp)
mov    -0x14(%rbp),%eax
sub    $0x40,%eax
mov    %eax,-0x14(%rbp)
jmp    12a8 <md5_calculate+0x198>
mov    -0x14(%rbp),%ecx
and    $0x3,%ecx
shl    $0x3,%ecx
mov    $0x80,%eax
shl    %cl,%eax
mov    %eax,%ecx
mov    -0x14(%rbp),%eax
shr    $0x2,%eax
mov    %eax,%eax
or     -0x80(%rbp,%rax,4),%ecx
mov    %ecx,-0x80(%rbp,%rax,4)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
movq   $0x0,-0x10(%rbp)
jmp    12b4 <md5_calculate+0x1a4>
movl   $0x0,-0x14(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    12e9 <md5_calculate+0x1d9>
cmpl   $0x38,-0x14(%rbp)
ja     12e9 <md5_calculate+0x1d9>
mov    -0x84(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x84(%rbp),%eax
mov    $0x20,%ecx
sar    %cl,%eax
mov    %eax,-0x44(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x40(%rbp)
movl   $0x0,-0x88(%rbp)
cmpl   $0x40,-0x88(%rbp)
jae    14b1 <md5_calculate+0x3a1>
cmpl   $0x10,-0x88(%rbp)
jae    134b <md5_calculate+0x23b>
mov    -0x38(%rbp),%eax
and    -0x3c(%rbp),%eax
mov    -0x38(%rbp),%ecx
xor    $0xffffffff,%ecx
and    -0x40(%rbp),%ecx
or     %ecx,%eax
mov    -0x88(%rbp),%ecx
add    -0x80(%rbp,%rcx,4),%eax
mov    %eax,-0x9c(%rbp)
jmp    13f9 <md5_calculate+0x2e9>
cmpl   $0x20,-0x88(%rbp)
jae    1387 <md5_calculate+0x277>
mov    -0x40(%rbp),%eax
and    -0x38(%rbp),%eax
mov    -0x40(%rbp),%ecx
xor    $0xffffffff,%ecx
and    -0x3c(%rbp),%ecx
or     %ecx,%eax
imul   $0x5,-0x88(%rbp),%ecx
add    $0x1,%ecx
and    $0xf,%ecx
mov    %ecx,%ecx
add    -0x80(%rbp,%rcx,4),%eax
mov    %eax,-0xa0(%rbp)
jmp    13ed <md5_calculate+0x2dd>
cmpl   $0x30,-0x88(%rbp)
jae    13bb <md5_calculate+0x2ab>
mov    -0x38(%rbp),%eax
xor    -0x3c(%rbp),%eax
xor    -0x40(%rbp),%eax
imul   $0x3,-0x88(%rbp),%ecx
add    $0x5,%ecx
and    $0xf,%ecx
mov    %ecx,%ecx
add    -0x80(%rbp,%rcx,4),%eax
mov    %eax,-0xa4(%rbp)
jmp    13e1 <md5_calculate+0x2d1>
mov    -0x3c(%rbp),%eax
mov    -0x38(%rbp),%ecx
mov    -0x40(%rbp),%edx
xor    $0xffffffff,%edx
or     %edx,%ecx
xor    %ecx,%eax
imul   $0x7,-0x88(%rbp),%ecx
and    $0xf,%ecx
mov    %ecx,%ecx
add    -0x80(%rbp,%rcx,4),%eax
mov    %eax,-0xa4(%rbp)
mov    -0xa4(%rbp),%eax
mov    %eax,-0xa0(%rbp)
mov    -0xa0(%rbp),%eax
mov    %eax,-0x9c(%rbp)
mov    -0x9c(%rbp),%eax
add    -0x34(%rbp),%eax
mov    -0x88(%rbp),%ecx
mov    %ecx,%edx
lea    0xbef(%rip),%rcx
add    (%rcx,%rdx,4),%eax
mov    %eax,-0x8c(%rbp)
mov    -0x40(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x38(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x8c(%rbp),%eax
mov    -0x88(%rbp),%ecx
shr    $0x4,%ecx
mov    %ecx,%ecx
mov    %ecx,%edx
lea    0xcba(%rip),%rcx
shl    $0x4,%rdx
add    %rdx,%rcx
mov    -0x88(%rbp),%edx
and    $0x3,%edx
mov    %edx,%edx
mov    (%rcx,%rdx,4),%ecx
shl    %cl,%eax
mov    -0x8c(%rbp),%edx
mov    -0x88(%rbp),%ecx
shr    $0x4,%ecx
mov    %ecx,%ecx
lea    0xc8b(%rip),%rsi
shl    $0x4,%rcx
add    %rcx,%rsi
mov    -0x88(%rbp),%ecx
and    $0x3,%ecx
mov    %ecx,%ecx
mov    %ecx,%edi
mov    $0x20,%ecx
sub    (%rsi,%rdi,4),%ecx
sar    %cl,%edx
mov    %edx,%ecx
or     %ecx,%eax
add    -0x38(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    130b <md5_calculate+0x1fb>
mov    -0x34(%rbp),%eax
add    -0x30(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x38(%rbp),%eax
add    -0x2c(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x3c(%rbp),%eax
add    -0x28(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x40(%rbp),%eax
add    -0x24(%rbp),%eax
mov    %eax,-0x24(%rbp)
jmp    1148 <md5_calculate+0x38>
movl   $0x0,-0x88(%rbp)
cmpl   $0x4,-0x88(%rbp)
jae    1572 <md5_calculate+0x462>
mov    -0x8(%rbp),%rdi
mov    -0x88(%rbp),%eax
shl    $0x3,%eax
mov    %eax,%eax
add    %rax,%rdi
mov    -0x88(%rbp),%eax
mov    -0x30(%rbp,%rax,4),%edx
and    $0xff,%edx
mov    -0x88(%rbp),%eax
mov    -0x30(%rbp,%rax,4),%ecx
sar    $0x8,%ecx
and    $0xff,%ecx
mov    -0x88(%rbp),%eax
mov    -0x30(%rbp,%rax,4),%r8d
sar    $0x10,%r8d
and    $0xff,%r8d
mov    -0x88(%rbp),%eax
mov    -0x30(%rbp,%rax,4),%r9d
sar    $0x18,%r9d
and    $0xff,%r9d
lea    0xbf7(%rip),%rsi
call   1030 <sprintf@plt>
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    14e4 <md5_calculate+0x3d4>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<md5_calculate>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %rdi,0x28(%rsp)
test   %rsi,%rsi
setne  %cl
jne    11f3 <md5_calculate+0xe3>
test   %edx,%edx
jne    11f3 <md5_calculate+0xe3>
mov    $0x67452301,%eax
mov    $0xefcdab89,%ebx
mov    $0x98badcfe,%ebp
mov    $0x10325476,%r14d
movzbl %al,%edx
movzbl %ah,%ecx
mov    %eax,%r9d
shr    $0x10,%eax
movzbl %al,%r8d
shr    $0x18,%r9d
lea    0xfd9(%rip),%r15
mov    0x28(%rsp),%r12
mov    %r12,%rdi
mov    %r15,%rsi
call   1030 <sprintf@plt>
lea    0x8(%r12),%rdi
movzbl %bl,%edx
movzbl %bh,%ecx
mov    %ebx,%eax
shr    $0x10,%eax
movzbl %al,%r8d
shr    $0x18,%ebx
mov    %r15,%rsi
mov    %ebx,%r9d
call   1030 <sprintf@plt>
lea    0x10(%r12),%rdi
mov    %ebp,%ebx
movzbl %bl,%edx
movzbl %bh,%ecx
mov    %ebp,%eax
shr    $0x10,%eax
movzbl %al,%r8d
shr    $0x18,%ebx
mov    %r15,%rsi
mov    %ebx,%r9d
call   1030 <sprintf@plt>
add    $0x18,%r12
mov    %r14d,%ebx
movzbl %bl,%edx
movzbl %bh,%ecx
mov    %r14d,%eax
shr    $0x10,%eax
movzbl %al,%r8d
shr    $0x18,%ebx
mov    %r12,%rdi
mov    %r15,%rsi
mov    %ebx,%r9d
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <sprintf@plt>
lea    0x0(,%rdx,8),%eax
mov    %eax,0x1c(%rsp)
mov    $0x67452301,%r11d
mov    $0xefcdab89,%r15d
mov    $0x98badcfe,%r12d
movl   $0x10325476,0xc(%rsp)
10
xorps  %xmm0,%xmm0
lea    0xede(%rip),%r13
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
test   $0x1,%cl
je     1310 <md5_calculate+0x200>
cmp    $0x40,%edx
mov    $0x40,%eax
cmovb  %edx,%eax
test   %eax,%eax
je     12d4 <md5_calculate+0x1c4>
mov    %eax,%r8d
cmp    $0x1,%eax
jne    1268 <md5_calculate+0x158>
xor    %ebp,%ebp
jmp    12ba <md5_calculate+0x1aa>
mov    %r8d,%r9d
and    $0x7e,%r9d
mov    $0x8,%r10d
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
movzbl (%rsi,%rbp,1),%ebx
lea    -0x8(%r10),%ecx
and    $0x10,%cl
shl    %cl,%ebx
mov    %ebp,%eax
and    $0xfffffffc,%eax
or     0x30(%rsp,%rax,1),%ebx
mov    %ebx,0x30(%rsp,%rax,1)
movzbl 0x1(%rsi,%rbp,1),%edi
mov    %r10d,%ecx
and    $0x18,%cl
shl    %cl,%edi
or     %ebx,%edi
mov    %edi,0x30(%rsp,%rax,1)
add    $0x2,%rbp
add    $0x10,%r10d
cmp    %rbp,%r9
jne    1280 <md5_calculate+0x170>
test   $0x1,%r8b
je     12d4 <md5_calculate+0x1c4>
movzbl (%rsi,%rbp,1),%eax
lea    0x0(,%rbp,8),%ecx
shl    %cl,%eax
and    $0xfffffffc,%ebp
or     %eax,0x30(%rsp,%rbp,1)
cmp    $0x40,%edx
jb     12f0 <md5_calculate+0x1e0>
add    $0x40,%rsi
add    $0xffffffc0,%edx
mov    %rdx,0x10(%rsp)
jmp    1321 <md5_calculate+0x211>
nopw   0x0(%rax,%rax,1)
lea    0x0(,%rdx,8),%ecx
mov    $0x80,%eax
shl    %cl,%eax
mov    %edx,%ecx
and    $0xfffffffc,%ecx
or     %eax,0x30(%rsp,%rcx,1)
cmp    $0x37,%edx
ja     1485 <md5_calculate+0x375>
mov    0x1c(%rsp),%eax
mov    %eax,0x68(%rsp)
xor    %esi,%esi
xor    %eax,%eax
mov    %rax,0x10(%rsp)
mov    $0x1,%ebp
mov    $0x5,%edi
lea    0xcce(%rip),%r8
xor    %r14d,%r14d
xor    %r9d,%r9d
mov    0xc(%rsp),%eax
mov    %r12d,0x24(%rsp)
mov    %r12d,%edx
mov    %r15d,0x20(%rsp)
mov    %r15d,%ebx
mov    %r11d,%r12d
jmp    13c0 <md5_calculate+0x2b0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %edx,%r10d
xor    %eax,%r10d
and    %ebx,%r10d
mov    %eax,%r12d
xor    %eax,%r10d
mov    %ebx,%r15d
mov    0x30(%rsp,%r9,4),%ebx
add    %r10d,%ebx
add    %ecx,%ebx
add    (%r8),%ebx
mov    %r9d,%eax
and    $0x3,%eax
mov    %r9d,%ecx
and    $0xfffffff0,%ecx
add    %r13,%rcx
movzbl (%rcx,%rax,4),%ecx
mov    %ebx,%eax
shl    %cl,%eax
neg    %cl
sar    %cl,%ebx
or     %eax,%ebx
add    %r15d,%ebx
add    $0x1,%r9
add    $0x5,%rbp
add    $0x3,%rdi
add    $0x7,%r14
add    $0x4,%r8
mov    %edx,%eax
mov    %edx,%ecx
mov    %r15d,%edx
cmp    $0x40,%r9
je     1430 <md5_calculate+0x320>
mov    %r12d,%ecx
cmp    $0xf,%r9
jbe    1360 <md5_calculate+0x250>
cmp    $0x1f,%r9
ja     13f0 <md5_calculate+0x2e0>
mov    %ebx,%r10d
xor    %edx,%r10d
mov    %eax,%r12d
and    %eax,%r10d
xor    %edx,%r10d
mov    %ebp,%eax
and    $0xf,%eax
mov    %ebx,%r15d
mov    0x30(%rsp,%rax,4),%ebx
jmp    1377 <md5_calculate+0x267>
nopl   0x0(%rax)
mov    %eax,%r12d
mov    %ebx,%eax
cmp    $0x2f,%r9
ja     140c <md5_calculate+0x2fc>
mov    %edx,%ebx
mov    %eax,%r15d
xor    %eax,%ebx
mov    %r12d,%eax
xor    %r12d,%ebx
mov    %edi,%eax
jmp    141b <md5_calculate+0x30b>
mov    %r12d,%ebx
not    %ebx
mov    %eax,%r15d
or     %eax,%ebx
xor    %edx,%ebx
mov    %r14d,%eax
and    $0xf,%eax
mov    0x30(%rsp,%rax,4),%r10d
jmp    1377 <md5_calculate+0x267>
nopl   0x0(%rax,%rax,1)
mov    %r12d,%eax
add    %r11d,%eax
add    0x20(%rsp),%ebx
add    0x24(%rsp),%r15d
add    0xc(%rsp),%ecx
mov    %ecx,%r14d
mov    %ecx,0xc(%rsp)
mov    %r15d,%ebp
mov    %r15d,%r12d
mov    %ebx,%r15d
mov    %eax,%r11d
test   %rsi,%rsi
setne  %cl
mov    0x10(%rsp),%rdx
jne    1230 <md5_calculate+0x120>
mov    %r14d,%edi
mov    %r14d,0xc(%rsp)
mov    %ebp,%r12d
mov    %ebx,%r15d
mov    %eax,%r11d
test   %edx,%edx
jne    1230 <md5_calculate+0x120>
jmp    114c <md5_calculate+0x3c>
add    $0x1,%edx
mov    %rdx,0x10(%rsp)
xor    %esi,%esi
jmp    1321 <md5_calculate+0x211>

LLVM IR (-O0):
@md5_calculate.SIN = internal constant [64 x i32] [i32 -680876936, i32 -389564586, i32 606105819, i32 -1044525330, i32 -176418897, i32 1200080426, i32 -1473231341, i32 -45705983, i32 1770035416, i32 -1958414417, i32 -42063, i32 -1990404162, i32 1804603682, i32 -40341101, i32 -1502002290, i32 1236535329, i32 -165796510, i32 -1069501632, i32 643717713, i32 -373897302, i32 -701558691, i32 38016083, i32 -660478335, i32 -405537848, i32 568446438, i32 -1019803690, i32 -187363961, i32 1163531501, i32 -1444681467, i32 -51403784, i32 1735328473, i32 -1926607734, i32 -378558, i32 -2022574463, i32 1839030562, i32 -35309556, i32 -1530992060, i32 1272893353, i32 -155497632, i32 -1094730640, i32 681279174, i32 -358537222, i32 -722521979, i32 76029189, i32 -640364487, i32 -421815835, i32 530742520, i32 -995338651, i32 -198630844, i32 1126891415, i32 -1416354905, i32 -57434055, i32 1700485571, i32 -1894986606, i32 -1051523, i32 -2054922799, i32 1873313359, i32 -30611744, i32 -1560198380, i32 1309151649, i32 -145523070, i32 -1120210379, i32 718787259, i32 -343485551]
@md5_calculate.Shift = internal constant [4 x [4 x i32]] [[4 x i32] [i32 7, i32 12, i32 17, i32 22], [4 x i32] [i32 5, i32 9, i32 14, i32 20], [4 x i32] [i32 4, i32 11, i32 16, i32 23], [4 x i32] [i32 6, i32 10, i32 15, i32 21]]
@__const.md5_calculate.Q = [4 x i32] [i32 1732584193, i32 -271733879, i32 -1732584194, i32 271733878]
@.str = [17 x i8] c"%02x%02x%02x%02x\00"
define void @md5_calculate(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca [4 x i32]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca [16 x i32]
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%16 = bitcast [4 x i32]* %7 to i8*
%17 = load i32, i32* %6
%18 = mul i32 8, %17
store i32 %18, i32* %13
br label %19
19: ; preds = %232, %3
%20 = load i8*, i8** %5
%21 = icmp ne i8* %20, null
br i1 %21, label %25, label %22
22: ; preds = %19
%23 = load i32, i32* %6
%24 = icmp ne i32 %23, 0
br label %25
25: ; preds = %22, %19
%26 = phi i1 [ true, %19 ], [ %24, %22 ]
br i1 %26, label %27, label %249
27: ; preds = %25
store i32 0, i32* %14
br label %28
28: ; preds = %35, %27
%29 = load i32, i32* %14
%30 = icmp ult i32 %29, 16
br i1 %30, label %31, label %38
31: ; preds = %28
%32 = load i32, i32* %14
%33 = zext i32 %32 to i64
%34 = getelementptr inbounds [16 x i32], [16 x i32]* %12, i64 0, i64 %33
store i32 0, i32* %34
br label %35
35: ; preds = %31
%36 = load i32, i32* %14
%37 = add i32 %36, 1
store i32 %37, i32* %14
br label %28
38: ; preds = %28
%39 = load i8*, i8** %5
%40 = icmp ne i8* %39, null
br i1 %40, label %41, label %94
41: ; preds = %38
store i32 0, i32* %14
br label %42
42: ; preds = %69, %41
%43 = load i32, i32* %14
%44 = load i32, i32* %6
%45 = icmp ugt i32 %44, 64
br i1 %45, label %46, label %47
46: ; preds = %42
br label %49
47: ; preds = %42
%48 = load i32, i32* %6
br label %49
49: ; preds = %47, %46
%50 = phi i32 [ 64, %46 ], [ %48, %47 ]
%51 = icmp ult i32 %43, %50
br i1 %51, label %52, label %72
52: ; preds = %49
%53 = load i8*, i8** %5
%54 = load i32, i32* %14
%55 = zext i32 %54 to i64
%56 = getelementptr inbounds i8, i8* %53, i64 %55
%57 = load i8, i8* %56
%58 = zext i8 %57 to i32
%59 = load i32, i32* %14
%60 = urem i32 %59, 4
%61 = mul i32 8, %60
%62 = shl i32 %58, %61
%63 = load i32, i32* %14
%64 = udiv i32 %63, 4
%65 = zext i32 %64 to i64
%66 = getelementptr inbounds [16 x i32], [16 x i32]* %12, i64 0, i64 %65
%67 = load i32, i32* %66
%68 = or i32 %67, %62
store i32 %68, i32* %66
br label %69
69: ; preds = %52
%70 = load i32, i32* %14
%71 = add i32 %70, 1
store i32 %71, i32* %14
br label %42
72: ; preds = %49
%73 = load i32, i32* %6
%74 = icmp uge i32 %73, 64
br i1 %74, label %75, label %80
75: ; preds = %72
%76 = load i8*, i8** %5
%77 = getelementptr inbounds i8, i8* %76, i64 64
store i8* %77, i8** %5
%78 = load i32, i32* %6
%79 = sub i32 %78, 64
store i32 %79, i32* %6
br label %93
80: ; preds = %72
%81 = load i32, i32* %6
%82 = urem i32 %81, 4
%83 = mul i32 8, %82
%84 = shl i32 128, %83
%85 = load i32, i32* %6
%86 = udiv i32 %85, 4
%87 = zext i32 %86 to i64
%88 = getelementptr inbounds [16 x i32], [16 x i32]* %12, i64 0, i64 %87
%89 = load i32, i32* %88
%90 = or i32 %89, %84
store i32 %90, i32* %88
%91 = load i32, i32* %6
%92 = add i32 %91, 1
store i32 %92, i32* %6
store i8* null, i8** %5
br label %93
93: ; preds = %80, %75
br label %95
94: ; preds = %38
store i32 0, i32* %6
br label %95
95: ; preds = %94, %93
%96 = load i8*, i8** %5
%97 = icmp eq i8* %96, null
br i1 %97, label %98, label %107
98: ; preds = %95
%99 = load i32, i32* %6
%100 = icmp ule i32 %99, 56
br i1 %100, label %101, label %107
101: ; preds = %98
%102 = load i32, i32* %13
%103 = getelementptr inbounds [16 x i32], [16 x i32]* %12, i64 0, i64 14
store i32 %102, i32* %103
%104 = load i32, i32* %13
%105 = ashr i32 %104, 32
%106 = getelementptr inbounds [16 x i32], [16 x i32]* %12, i64 0, i64 15
store i32 %105, i32* %106
store i32 0, i32* %6
br label %107
107: ; preds = %101, %98, %95
%108 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 0
%109 = load i32, i32* %108
store i32 %109, i32* %8
%110 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 1
%111 = load i32, i32* %110
store i32 %111, i32* %9
%112 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 2
%113 = load i32, i32* %112
store i32 %113, i32* %10
%114 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 3
%115 = load i32, i32* %114
store i32 %115, i32* %11
store i32 0, i32* %14
br label %116
116: ; preds = %229, %107
%117 = load i32, i32* %14
%118 = icmp ult i32 %117, 64
br i1 %118, label %119, label %232
119: ; preds = %116
%120 = load i32, i32* %14
%121 = icmp ult i32 %120, 16
br i1 %121, label %122, label %136
122: ; preds = %119
%123 = load i32, i32* %9
%124 = load i32, i32* %10
%125 = and i32 %123, %124
%126 = load i32, i32* %9
%127 = xor i32 %126, -1
%128 = load i32, i32* %11
%129 = and i32 %127, %128
%130 = or i32 %125, %129
%131 = load i32, i32* %14
%132 = zext i32 %131 to i64
%133 = getelementptr inbounds [16 x i32], [16 x i32]* %12, i64 0, i64 %132
%134 = load i32, i32* %133
%135 = add nsw i32 %130, %134
br label %191
136: ; preds = %119
%137 = load i32, i32* %14
%138 = icmp ult i32 %137, 32
br i1 %138, label %139, label %156
139: ; preds = %136
%140 = load i32, i32* %11
%141 = load i32, i32* %9
%142 = and i32 %140, %141
%143 = load i32, i32* %11
%144 = xor i32 %143, -1
%145 = load i32, i32* %10
%146 = and i32 %144, %145
%147 = or i32 %142, %146
%148 = load i32, i32* %14
%149 = mul i32 5, %148
%150 = add i32 %149, 1
%151 = and i32 %150, 15
%152 = zext i32 %151 to i64
%153 = getelementptr inbounds [16 x i32], [16 x i32]* %12, i64 0, i64 %152
%154 = load i32, i32* %153
%155 = add nsw i32 %147, %154
br label %189
156: ; preds = %136
%157 = load i32, i32* %14
%158 = icmp ult i32 %157, 48
br i1 %158, label %159, label %173
159: ; preds = %156
%160 = load i32, i32* %9
%161 = load i32, i32* %10
%162 = xor i32 %160, %161
%163 = load i32, i32* %11
%164 = xor i32 %162, %163
%165 = load i32, i32* %14
%166 = mul i32 3, %165
%167 = add i32 %166, 5
%168 = and i32 %167, 15
%169 = zext i32 %168 to i64
%170 = getelementptr inbounds [16 x i32], [16 x i32]* %12, i64 0, i64 %169
%171 = load i32, i32* %170
%172 = add nsw i32 %164, %171
br label %187
173: ; preds = %156
%174 = load i32, i32* %10
%175 = load i32, i32* %9
%176 = load i32, i32* %11
%177 = xor i32 %176, -1
%178 = or i32 %175, %177
%179 = xor i32 %174, %178
%180 = load i32, i32* %14
%181 = mul i32 7, %180
%182 = and i32 %181, 15
%183 = zext i32 %182 to i64
%184 = getelementptr inbounds [16 x i32], [16 x i32]* %12, i64 0, i64 %183
%185 = load i32, i32* %184
%186 = add nsw i32 %179, %185
br label %187
187: ; preds = %173, %159
%188 = phi i32 [ %172, %159 ], [ %186, %173 ]
br label %189
189: ; preds = %187, %139
%190 = phi i32 [ %155, %139 ], [ %188, %187 ]
br label %191
191: ; preds = %189, %122
%192 = phi i32 [ %135, %122 ], [ %190, %189 ]
%193 = load i32, i32* %8
%194 = add nsw i32 %192, %193
%195 = load i32, i32* %14
%196 = zext i32 %195 to i64
%197 = getelementptr inbounds [64 x i32], [64 x i32]* @md5_calculate.SIN, i64 0, i64 %196
%198 = load i32, i32* %197
%199 = add nsw i32 %194, %198
store i32 %199, i32* %15
%200 = load i32, i32* %11
store i32 %200, i32* %8
%201 = load i32, i32* %10
store i32 %201, i32* %11
%202 = load i32, i32* %9
store i32 %202, i32* %10
%203 = load i32, i32* %15
%204 = load i32, i32* %14
%205 = udiv i32 %204, 16
%206 = zext i32 %205 to i64
%207 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* @md5_calculate.Shift, i64 0, i64 %206
%208 = load i32, i32* %14
%209 = urem i32 %208, 4
%210 = zext i32 %209 to i64
%211 = getelementptr inbounds [4 x i32], [4 x i32]* %207, i64 0, i64 %210
%212 = load i32, i32* %211
%213 = shl i32 %203, %212
%214 = load i32, i32* %15
%215 = load i32, i32* %14
%216 = udiv i32 %215, 16
%217 = zext i32 %216 to i64
%218 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* @md5_calculate.Shift, i64 0, i64 %217
%219 = load i32, i32* %14
%220 = urem i32 %219, 4
%221 = zext i32 %220 to i64
%222 = getelementptr inbounds [4 x i32], [4 x i32]* %218, i64 0, i64 %221
%223 = load i32, i32* %222
%224 = sub nsw i32 32, %223
%225 = ashr i32 %214, %224
%226 = or i32 %213, %225
%227 = load i32, i32* %9
%228 = add nsw i32 %227, %226
store i32 %228, i32* %9
br label %229
229: ; preds = %191
%230 = load i32, i32* %14
%231 = add i32 %230, 1
store i32 %231, i32* %14
br label %116
232: ; preds = %116
%233 = load i32, i32* %8
%234 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 0
%235 = load i32, i32* %234
%236 = add nsw i32 %235, %233
store i32 %236, i32* %234
%237 = load i32, i32* %9
%238 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 1
%239 = load i32, i32* %238
%240 = add nsw i32 %239, %237
store i32 %240, i32* %238
%241 = load i32, i32* %10
%242 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 2
%243 = load i32, i32* %242
%244 = add nsw i32 %243, %241
store i32 %244, i32* %242
%245 = load i32, i32* %11
%246 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 3
%247 = load i32, i32* %246
%248 = add nsw i32 %247, %245
store i32 %248, i32* %246
br label %19
249: ; preds = %25
store i32 0, i32* %14
br label %250
250: ; preds = %283, %249
%251 = load i32, i32* %14
%252 = icmp ult i32 %251, 4
br i1 %252, label %253, label %286
253: ; preds = %250
%254 = load i8*, i8** %4
%255 = load i32, i32* %14
%256 = mul i32 8, %255
%257 = zext i32 %256 to i64
%258 = getelementptr inbounds i8, i8* %254, i64 %257
%259 = load i32, i32* %14
%260 = zext i32 %259 to i64
%261 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 %260
%262 = load i32, i32* %261
%263 = and i32 %262, 255
%264 = load i32, i32* %14
%265 = zext i32 %264 to i64
%266 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 %265
%267 = load i32, i32* %266
%268 = ashr i32 %267, 8
%269 = and i32 %268, 255
%270 = load i32, i32* %14
%271 = zext i32 %270 to i64
%272 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 %271
%273 = load i32, i32* %272
%274 = ashr i32 %273, 16
%275 = and i32 %274, 255
%276 = load i32, i32* %14
%277 = zext i32 %276 to i64
%278 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 %277
%279 = load i32, i32* %278
%280 = ashr i32 %279, 24
%281 = and i32 %280, 255
%282 = call i32 @sprintf(i8* %258, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %263, i32 %269, i32 %275, i32 %281)
br label %283
283: ; preds = %253
%284 = load i32, i32* %14
%285 = add i32 %284, 1
store i32 %285, i32* %14
br label %250
286: ; preds = %250
ret void
}

LLVM IR (-O2):
@md5_calculate.SIN = internal unnamed_addr constant [64 x i32] [i32 -680876936, i32 -389564586, i32 606105819, i32 -1044525330, i32 -176418897, i32 1200080426, i32 -1473231341, i32 -45705983, i32 1770035416, i32 -1958414417, i32 -42063, i32 -1990404162, i32 1804603682, i32 -40341101, i32 -1502002290, i32 1236535329, i32 -165796510, i32 -1069501632, i32 643717713, i32 -373897302, i32 -701558691, i32 38016083, i32 -660478335, i32 -405537848, i32 568446438, i32 -1019803690, i32 -187363961, i32 1163531501, i32 -1444681467, i32 -51403784, i32 1735328473, i32 -1926607734, i32 -378558, i32 -2022574463, i32 1839030562, i32 -35309556, i32 -1530992060, i32 1272893353, i32 -155497632, i32 -1094730640, i32 681279174, i32 -358537222, i32 -722521979, i32 76029189, i32 -640364487, i32 -421815835, i32 530742520, i32 -995338651, i32 -198630844, i32 1126891415, i32 -1416354905, i32 -57434055, i32 1700485571, i32 -1894986606, i32 -1051523, i32 -2054922799, i32 1873313359, i32 -30611744, i32 -1560198380, i32 1309151649, i32 -145523070, i32 -1120210379, i32 718787259, i32 -343485551]
@md5_calculate.Shift = internal unnamed_addr constant [4 x [4 x i32]] [[4 x i32] [i32 7, i32 12, i32 17, i32 22], [4 x i32] [i32 5, i32 9, i32 14, i32 20], [4 x i32] [i32 4, i32 11, i32 16, i32 23], [4 x i32] [i32 6, i32 10, i32 15, i32 21]]
@.str = [17 x i8] c"%02x%02x%02x%02x\00"
define void @md5_calculate(i8* nocapture writeonly %0, i8* %1, i32 %2) {
%4 = alloca [16 x i32]
%5 = bitcast [16 x i32]* %4 to i8*
%6 = shl i32 %2, 3
%7 = icmp ne i8* %1, null
%8 = icmp ne i32 %2, 0
%9 = or i1 %7, %8
br i1 %9, label %10, label %20
10: ; preds = %3
%11 = getelementptr inbounds [16 x i32], [16 x i32]* %4, i64 0, i64 14
br label %12
12: ; preds = %10, %197
%13 = phi i32 [ 271733878, %10 ], [ %201, %197 ]
%14 = phi i32 [ -1732584194, %10 ], [ %200, %197 ]
%15 = phi i32 [ -271733879, %10 ], [ %199, %197 ]
%16 = phi i32 [ 1732584193, %10 ], [ %198, %197 ]
%17 = phi i1 [ %7, %10 ], [ %202, %197 ]
%18 = phi i8* [ %1, %10 ], [ %131, %197 ]
%19 = phi i32 [ %2, %10 ], [ %132, %197 ]
br i1 %17, label %56, label %129
20: ; preds = %197, %3
%21 = phi i32 [ 271733878, %3 ], [ %201, %197 ]
%22 = phi i32 [ -1732584194, %3 ], [ %200, %197 ]
%23 = phi i32 [ -271733879, %3 ], [ %199, %197 ]
%24 = phi i32 [ 1732584193, %3 ], [ %198, %197 ]
%25 = and i32 %24, 255
%26 = lshr i32 %24, 8
%27 = and i32 %26, 255
%28 = lshr i32 %24, 16
%29 = and i32 %28, 255
%30 = lshr i32 %24, 24
%31 = tail call i32 @sprintf(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %25, i32 %27, i32 %29, i32 %30)
%32 = getelementptr inbounds i8, i8* %0, i64 8
%33 = and i32 %23, 255
%34 = lshr i32 %23, 8
%35 = and i32 %34, 255
%36 = lshr i32 %23, 16
%37 = and i32 %36, 255
%38 = lshr i32 %23, 24
%39 = tail call i32 @sprintf(i8* dereferenceable(1) %32, i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %33, i32 %35, i32 %37, i32 %38)
%40 = getelementptr inbounds i8, i8* %0, i64 16
%41 = and i32 %22, 255
%42 = lshr i32 %22, 8
%43 = and i32 %42, 255
%44 = lshr i32 %22, 16
%45 = and i32 %44, 255
%46 = lshr i32 %22, 24
%47 = tail call i32 @sprintf(i8* dereferenceable(1) %40, i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %41, i32 %43, i32 %45, i32 %46)
%48 = getelementptr inbounds i8, i8* %0, i64 24
%49 = and i32 %21, 255
%50 = lshr i32 %21, 8
%51 = and i32 %50, 255
%52 = lshr i32 %21, 16
%53 = and i32 %52, 255
%54 = lshr i32 %21, 24
%55 = tail call i32 @sprintf(i8* dereferenceable(1) %48, i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %49, i32 %51, i32 %53, i32 %54)
ret void
56: ; preds = %12
%57 = icmp ult i32 %19, 64
%58 = select i1 %57, i32 %19, i32 64
%59 = icmp eq i32 %58, 0
br i1 %59, label %113, label %60
60: ; preds = %56
%61 = zext i32 %58 to i64
%62 = and i64 %61, 1
%63 = icmp eq i32 %58, 1
br i1 %63, label %97, label %64
64: ; preds = %60
%65 = and i64 %61, 126
br label %66
66: ; preds = %66, %64
%67 = phi i64 [ 0, %64 ], [ %94, %66 ]
%68 = phi i64 [ 0, %64 ], [ %95, %66 ]
%69 = getelementptr inbounds i8, i8* %18, i64 %67
%70 = load i8, i8* %69
%71 = zext i8 %70 to i32
%72 = trunc i64 %67 to i32
%73 = shl i32 %72, 3
%74 = and i32 %73, 16
%75 = shl nuw i32 %71, %74
%76 = lshr i64 %67, 2
%77 = and i64 %76, 1073741823
%78 = getelementptr inbounds [16 x i32], [16 x i32]* %4, i64 0, i64 %77
%79 = load i32, i32* %78
%80 = or i32 %75, %79
store i32 %80, i32* %78
%81 = or i64 %67, 1
%82 = getelementptr inbounds i8, i8* %18, i64 %81
%83 = load i8, i8* %82
%84 = zext i8 %83 to i32
%85 = trunc i64 %81 to i32
%86 = shl i32 %85, 3
%87 = and i32 %86, 24
%88 = shl nuw i32 %84, %87
%89 = lshr i64 %67, 2
%90 = and i64 %89, 1073741823
%91 = getelementptr inbounds [16 x i32], [16 x i32]* %4, i64 0, i64 %90
%92 = load i32, i32* %91
%93 = or i32 %88, %92
store i32 %93, i32* %91
%94 = add nuw nsw i64 %67, 2
%95 = add i64 %68, 2
%96 = icmp eq i64 %95, %65
br i1 %96, label %97, label %66
97: ; preds = %66, %60
%98 = phi i64 [ 0, %60 ], [ %94, %66 ]
%99 = icmp eq i64 %62, 0
br i1 %99, label %113, label %100
100: ; preds = %97
%101 = getelementptr inbounds i8, i8* %18, i64 %98
%102 = load i8, i8* %101
%103 = zext i8 %102 to i32
%104 = trunc i64 %98 to i32
%105 = shl i32 %104, 3
%106 = and i32 %105, 24
%107 = shl nuw i32 %103, %106
%108 = lshr i64 %98, 2
%109 = and i64 %108, 1073741823
%110 = getelementptr inbounds [16 x i32], [16 x i32]* %4, i64 0, i64 %109
%111 = load i32, i32* %110
%112 = or i32 %107, %111
store i32 %112, i32* %110
br label %113
113: ; preds = %100, %97, %56
%114 = icmp ugt i32 %19, 63
br i1 %114, label %115, label %118
115: ; preds = %113
%116 = getelementptr inbounds i8, i8* %18, i64 64
%117 = add i32 %19, -64
br label %130
118: ; preds = %113
%119 = shl nuw nsw i32 %19, 3
%120 = and i32 %119, 24
%121 = shl nuw i32 128, %120
%122 = lshr i32 %19, 2
%123 = zext i32 %122 to i64
%124 = getelementptr inbounds [16 x i32], [16 x i32]* %4, i64 0, i64 %123
%125 = load i32, i32* %124
%126 = or i32 %125, %121
store i32 %126, i32* %124
%127 = add nuw nsw i32 %19, 1
%128 = icmp ult i32 %19, 56
br i1 %128, label %129, label %130
129: ; preds = %12, %118
store i32 %6, i32* %11
br label %130
130: ; preds = %115, %129, %118
%131 = phi i8* [ null, %129 ], [ null, %118 ], [ %116, %115 ]
%132 = phi i32 [ 0, %129 ], [ %127, %118 ], [ %117, %115 ]
br label %133
133: ; preds = %130, %177
%134 = phi i64 [ 0, %130 ], [ %195, %177 ]
%135 = phi i32 [ %13, %130 ], [ %136, %177 ]
%136 = phi i32 [ %14, %130 ], [ %137, %177 ]
%137 = phi i32 [ %15, %130 ], [ %194, %177 ]
%138 = phi i32 [ %16, %130 ], [ %135, %177 ]
%139 = icmp ult i64 %134, 16
br i1 %139, label %140, label %147
140: ; preds = %133
%141 = and i32 %136, %137
%142 = xor i32 %137, -1
%143 = and i32 %135, %142
%144 = or i32 %143, %141
%145 = getelementptr inbounds [16 x i32], [16 x i32]* %4, i64 0, i64 %134
%146 = load i32, i32* %145
br label %177
147: ; preds = %133
%148 = icmp ult i64 %134, 32
br i1 %148, label %149, label %159
149: ; preds = %147
%150 = and i32 %135, %137
%151 = xor i32 %135, -1
%152 = and i32 %136, %151
%153 = or i32 %150, %152
%154 = mul nuw nsw i64 %134, 5
%155 = add nuw nsw i64 %154, 1
%156 = and i64 %155, 15
%157 = getelementptr inbounds [16 x i32], [16 x i32]* %4, i64 0, i64 %156
%158 = load i32, i32* %157
br label %177
159: ; preds = %147
%160 = icmp ult i64 %134, 48
br i1 %160, label %161, label %169
161: ; preds = %159
%162 = xor i32 %136, %137
%163 = xor i32 %162, %135
%164 = mul nuw nsw i64 %134, 3
%165 = add nuw nsw i64 %164, 5
%166 = and i64 %165, 15
%167 = getelementptr inbounds [16 x i32], [16 x i32]* %4, i64 0, i64 %166
%168 = load i32, i32* %167
br label %177
169: ; preds = %159
%170 = xor i32 %135, -1
%171 = or i32 %137, %170
%172 = xor i32 %171, %136
%173 = mul i64 %134, 7
%174 = and i64 %173, 15
%175 = getelementptr inbounds [16 x i32], [16 x i32]* %4, i64 0, i64 %174
%176 = load i32, i32* %175
br label %177
177: ; preds = %149, %169, %161, %140
%178 = phi i32 [ %158, %149 ], [ %172, %169 ], [ %163, %161 ], [ %146, %140 ]
%179 = phi i32 [ %153, %149 ], [ %176, %169 ], [ %168, %161 ], [ %144, %140 ]
%180 = add nsw i32 %179, %178
%181 = add nsw i32 %180, %138
%182 = getelementptr inbounds [64 x i32], [64 x i32]* @md5_calculate.SIN, i64 0, i64 %134
%183 = load i32, i32* %182
%184 = add nsw i32 %181, %183
%185 = lshr i64 %134, 4
%186 = and i64 %185, 268435455
%187 = and i64 %134, 3
%188 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* @md5_calculate.Shift, i64 0, i64 %186, i64 %187
%189 = load i32, i32* %188
%190 = shl i32 %184, %189
%191 = sub nsw i32 32, %189
%192 = ashr i32 %184, %191
%193 = or i32 %192, %190
%194 = add nsw i32 %193, %137
%195 = add nuw nsw i64 %134, 1
%196 = icmp eq i64 %195, 64
br i1 %196, label %197, label %133
197: ; preds = %177
%198 = add nsw i32 %135, %16
%199 = add nsw i32 %194, %15
%200 = add nsw i32 %137, %14
%201 = add nsw i32 %136, %13
%202 = icmp ne i8* %131, null
%203 = icmp ne i32 %132, 0
%204 = select i1 %202, i1 true, i1 %203
br i1 %204, label %12, label %20
}