#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 */

/* Variables and functions */
int /*<<< orphan*/ MD5(unsigned char *, int, unsigned char *);
int isBigEndian();
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ snprintf(char *, int, char *, char *, char *);
int strlen(char *);
unsigned int swapInt(unsigned int);
void MSN_handle_chl(char *input, char *output) {
  char *productKey = "CFHUR$52U_{VIX5T", *productID = "PROD0101{0RM?UBW",
       *hexChars = "0123456789abcdef", buf[2048];
  unsigned char md5Hash[16], *newHash;
  unsigned int *md5Parts, *chlStringParts, newHashParts[5];
  long long nHigh = 0, nLow = 0;
  int i, bigEndian;
  bigEndian = isBigEndian();
  snprintf(buf, 2048 - 1, "%s%s", input, productKey);
  MD5((unsigned char *)buf, strlen(buf), md5Hash);
  md5Parts = (unsigned int *)md5Hash;
  for (i = 0; i < 4; i++) {
    if (bigEndian)
      md5Parts[i] = swapInt(md5Parts[i]);
    newHashParts[i] = md5Parts[i];
    md5Parts[i] &= 0x7FFFFFFF;
  }
  snprintf(buf, 2048 - 5, "%s%s", input, productID);
  i = strlen(buf);
  memset(&buf[i], '0', 8 - (i % 8));
  buf[i + (8 - (i % 8))] = '\0';
  chlStringParts = (unsigned int *)buf;
  for (i = 0; i < (strlen(buf) / 4) - 1; i += 2) {
    long long temp;
    if (bigEndian) {
      chlStringParts[i] = swapInt(chlStringParts[i]);
      chlStringParts[i + 1] = swapInt(chlStringParts[i + 1]);
    }
    temp = (md5Parts[0] *
                (((0x0E79A9C1 * (long long)chlStringParts[i]) % 0x7FFFFFFF) +
                 nHigh) +
            md5Parts[1]) %
           0x7FFFFFFF;
    nHigh = (md5Parts[2] *
                 (((long long)chlStringParts[i + 1] + temp) % 0x7FFFFFFF) +
             md5Parts[3]) %
            0x7FFFFFFF;
    nLow = nLow + nHigh + temp;
  }
  nHigh = (nHigh + md5Parts[1]) % 0x7FFFFFFF;
  nLow = (nLow + md5Parts[3]) % 0x7FFFFFFF;
  newHashParts[0] ^= nHigh;
  newHashParts[1] ^= nLow;
  newHashParts[2] ^= nHigh;
  newHashParts[3] ^= nLow;
  for (i = 0; i < 4 && bigEndian; i++)
    newHashParts[i] = swapInt(newHashParts[i]);
  newHash = (unsigned char *)newHashParts;
  for (i = 0; i < 16; i++) {
    output[i * 2] = hexChars[(newHash[i] >> 4) & 0xF];
    output[(i * 2) + 1] = hexChars[newHash[i] & 0xF];
  }
  output[32] = '\0';
}


x86 assembly (clang, -O0):
<MSN_handle_chl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x8c0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe86(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xe8c(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    0xe92(%rip),%rax
mov    %rax,-0x28(%rbp)
movq   $0x0,-0x878(%rbp)
movq   $0x0,-0x880(%rbp)
mov    $0x0,%al
call   1040 <isBigEndian@plt>
mov    %eax,-0x888(%rbp)
lea    -0x830(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    -0x18(%rbp),%r8
mov    $0x7ff,%esi
lea    0xe61(%rip),%rdx
call   1050 <snprintf@plt>
lea    -0x830(%rbp),%rax
mov    %rax,-0x898(%rbp)
lea    -0x830(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x898(%rbp),%rdi
mov    %eax,%esi
lea    -0x840(%rbp),%rdx
call   1070 <MD5@plt>
lea    -0x840(%rbp),%rax
mov    %rax,-0x850(%rbp)
movl   $0x0,-0x884(%rbp)
cmpl   $0x4,-0x884(%rbp)
jge    12ae <MSN_handle_chl+0x14e>
cmpl   $0x0,-0x888(%rbp)
je     1261 <MSN_handle_chl+0x101>
mov    -0x850(%rbp),%rax
movslq -0x884(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
call   1080 <swapInt@plt>
mov    %eax,%edx
mov    -0x850(%rbp),%rax
movslq -0x884(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x850(%rbp),%rax
movslq -0x884(%rbp),%rcx
mov    (%rax,%rcx,4),%ecx
movslq -0x884(%rbp),%rax
mov    %ecx,-0x870(%rbp,%rax,4)
mov    -0x850(%rbp),%rax
movslq -0x884(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
and    $0x7fffffff,%edx
mov    %edx,(%rax,%rcx,4)
mov    -0x884(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x884(%rbp)
jmp    121e <MSN_handle_chl+0xbe>
lea    -0x830(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    -0x20(%rbp),%r8
mov    $0x7fb,%esi
lea    0xd6a(%rip),%rdx
call   1050 <snprintf@plt>
lea    -0x830(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x884(%rbp)
movslq -0x884(%rbp),%rax
lea    -0x830(%rbp),%rdi
add    %rax,%rdi
mov    -0x884(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    %edx,%eax
mov    $0x8,%edx
sub    %eax,%edx
mov    $0x30,%esi
call   1060 <memset@plt>
mov    -0x884(%rbp),%eax
mov    %eax,-0x89c(%rbp)
mov    -0x884(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    -0x89c(%rbp),%eax
mov    $0x8,%ecx
sub    %edx,%ecx
add    %ecx,%eax
cltq
movb   $0x0,-0x830(%rbp,%rax,1)
lea    -0x830(%rbp),%rax
mov    %rax,-0x858(%rbp)
movl   $0x0,-0x884(%rbp)
mov    -0x884(%rbp),%eax
mov    %eax,-0x8a0(%rbp)
lea    -0x830(%rbp),%rdi
call   1030 <strlen@plt>
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x8a0(%rbp),%eax
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    14ec <MSN_handle_chl+0x38c>
cmpl   $0x0,-0x888(%rbp)
je     13f9 <MSN_handle_chl+0x299>
mov    -0x858(%rbp),%rax
movslq -0x884(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
call   1080 <swapInt@plt>
mov    %eax,%edx
mov    -0x858(%rbp),%rax
movslq -0x884(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x858(%rbp),%rax
mov    -0x884(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%edi
call   1080 <swapInt@plt>
mov    %eax,%edx
mov    -0x858(%rbp),%rax
mov    -0x884(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x850(%rbp),%rax
mov    (%rax),%eax
mov    %rax,-0x8b0(%rbp)
mov    -0x858(%rbp),%rax
movslq -0x884(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
imul   $0xe79a9c1,%rax,%rax
mov    $0x7fffffff,%ecx
cqto
idiv   %rcx
mov    -0x8b0(%rbp),%rax
add    -0x878(%rbp),%rdx
imul   %rdx,%rax
mov    -0x850(%rbp),%rcx
mov    0x4(%rcx),%ecx
add    %rcx,%rax
mov    $0x7fffffff,%ecx
cqto
idiv   %rcx
mov    %rdx,-0x890(%rbp)
mov    -0x850(%rbp),%rax
mov    0x8(%rax),%eax
mov    %rax,-0x8a8(%rbp)
mov    -0x858(%rbp),%rax
mov    -0x884(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
add    -0x890(%rbp),%rax
mov    $0x7fffffff,%ecx
cqto
idiv   %rcx
mov    -0x8a8(%rbp),%rax
imul   %rdx,%rax
mov    -0x850(%rbp),%rcx
mov    0xc(%rcx),%ecx
add    %rcx,%rax
mov    $0x7fffffff,%ecx
cqto
idiv   %rcx
mov    %rdx,-0x878(%rbp)
mov    -0x880(%rbp),%rax
add    -0x878(%rbp),%rax
add    -0x890(%rbp),%rax
mov    %rax,-0x880(%rbp)
mov    -0x884(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x884(%rbp)
jmp    135d <MSN_handle_chl+0x1fd>
mov    -0x878(%rbp),%rax
mov    -0x850(%rbp),%rcx
mov    0x4(%rcx),%ecx
add    %rcx,%rax
mov    $0x7fffffff,%ecx
cqto
idiv   %rcx
mov    %rdx,-0x878(%rbp)
mov    -0x880(%rbp),%rax
mov    -0x850(%rbp),%rcx
mov    0xc(%rcx),%ecx
add    %rcx,%rax
mov    $0x7fffffff,%ecx
cqto
idiv   %rcx
mov    %rdx,-0x880(%rbp)
mov    -0x878(%rbp),%rcx
mov    -0x870(%rbp),%eax
xor    %rcx,%rax
mov    %eax,-0x870(%rbp)
mov    -0x880(%rbp),%rcx
mov    -0x86c(%rbp),%eax
xor    %rcx,%rax
mov    %eax,-0x86c(%rbp)
mov    -0x878(%rbp),%rcx
mov    -0x868(%rbp),%eax
xor    %rcx,%rax
mov    %eax,-0x868(%rbp)
mov    -0x880(%rbp),%rcx
mov    -0x864(%rbp),%eax
xor    %rcx,%rax
mov    %eax,-0x864(%rbp)
movl   $0x0,-0x884(%rbp)
xor    %eax,%eax
cmpl   $0x4,-0x884(%rbp)
mov    %al,-0x8b1(%rbp)
jge    15bd <MSN_handle_chl+0x45d>
cmpl   $0x0,-0x888(%rbp)
setne  %al
mov    %al,-0x8b1(%rbp)
mov    -0x8b1(%rbp),%al
test   $0x1,%al
jne    15d0 <MSN_handle_chl+0x470>
jmp    1607 <MSN_handle_chl+0x4a7>
movslq -0x884(%rbp),%rax
mov    -0x870(%rbp,%rax,4),%edi
call   1080 <swapInt@plt>
mov    %eax,%ecx
movslq -0x884(%rbp),%rax
mov    %ecx,-0x870(%rbp,%rax,4)
mov    -0x884(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x884(%rbp)
jmp    1598 <MSN_handle_chl+0x438>
lea    -0x870(%rbp),%rax
mov    %rax,-0x848(%rbp)
movl   $0x0,-0x884(%rbp)
cmpl   $0x10,-0x884(%rbp)
jge    16aa <MSN_handle_chl+0x54a>
mov    -0x28(%rbp),%rax
mov    -0x848(%rbp),%rcx
movslq -0x884(%rbp),%rdx
movzbl (%rcx,%rdx,1),%ecx
sar    $0x4,%ecx
and    $0xf,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%dl
mov    -0x10(%rbp),%rax
mov    -0x884(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x28(%rbp),%rax
mov    -0x848(%rbp),%rcx
movslq -0x884(%rbp),%rdx
movzbl (%rcx,%rdx,1),%ecx
and    $0xf,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%dl
mov    -0x10(%rbp),%rax
mov    -0x884(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x884(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x884(%rbp)
jmp    161f <MSN_handle_chl+0x4bf>
mov    -0x10(%rbp),%rax
movb   $0x0,0x20(%rax)
add    $0x8c0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<MSN_handle_chl>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x848,%rsp
mov    %rsi,%r14
mov    %rdi,%r13
xor    %eax,%eax
call   1040 <isBigEndian@plt>
mov    %eax,%ebx
lea    0xeac(%rip),%rdx
lea    0xe72(%rip),%r8
lea    0x40(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x7ff,%esi
mov    %r13,%rcx
call   1050 <snprintf@plt>
mov    %rbp,%rdi
call   1030 <strlen@plt>
mov    %rsp,%rdx
mov    %rbp,%rdi
mov    %eax,%esi
call   1070 <MD5@plt>
mov    (%rsp),%edi
mov    %ebx,0x38(%rsp)
test   %ebx,%ebx
je     1217 <MSN_handle_chl+0xb7>
call   1080 <swapInt@plt>
mov    %eax,0x10(%rsp)
mov    %eax,0x34(%rsp)
and    $0x7fffffff,%eax
mov    %eax,(%rsp)
mov    0x4(%rsp),%edi
call   1080 <swapInt@plt>
mov    %eax,0x14(%rsp)
mov    %eax,0x30(%rsp)
and    $0x7fffffff,%eax
mov    %eax,0x4(%rsp)
mov    0x8(%rsp),%edi
call   1080 <swapInt@plt>
mov    %eax,0x18(%rsp)
mov    %eax,0x2c(%rsp)
and    $0x7fffffff,%eax
mov    %eax,0x8(%rsp)
mov    0xc(%rsp),%edi
call   1080 <swapInt@plt>
jmp    1259 <MSN_handle_chl+0xf9>
mov    %edi,0x10(%rsp)
mov    %edi,0x34(%rsp)
mov    %edi,%eax
and    $0x7fffffff,%eax
mov    %eax,(%rsp)
mov    0x4(%rsp),%eax
mov    0x8(%rsp),%ecx
mov    %eax,0x14(%rsp)
mov    %eax,0x30(%rsp)
and    $0x7fffffff,%eax
mov    %eax,0x4(%rsp)
mov    %ecx,0x18(%rsp)
mov    %ecx,0x2c(%rsp)
mov    %ecx,%eax
and    $0x7fffffff,%eax
mov    %eax,0x8(%rsp)
mov    0xc(%rsp),%eax
mov    %eax,0x3c(%rsp)
and    $0x7fffffff,%eax
mov    %eax,0xc(%rsp)
lea    0xdc6(%rip),%rdx
lea    0xd9d(%rip),%r8
lea    0x40(%rsp),%r15
mov    %r15,%rdi
mov    $0x7fb,%esi
mov    %r13,%rcx
call   1050 <snprintf@plt>
mov    %r15,%rdi
call   1030 <strlen@plt>
movslq %eax,%rbp
lea    0x7(%rbp),%ebx
test   %ebp,%ebp
cmovns %ebp,%ebx
lea    (%rsp,%rbp,1),%rdi
add    $0x40,%rdi
and    $0xfffffff8,%ebx
sub    %ebp,%ebx
lea    0x8(%rbx),%edx
mov    $0x30,%esi
call   1060 <memset@plt>
lea    (%rbx,%rbp,1),%eax
add    $0x8,%eax
cltq
movb   $0x0,0x40(%rsp,%rax,1)
mov    %r15,%rdi
call   1030 <strlen@plt>
movabs $0x8000000100000003,%rbp
mov    %r14,%rbx
cmp    $0x8,%eax
jl     1426 <MSN_handle_chl+0x2c6>
xor    %r13d,%r13d
xor    %r15d,%r15d
xor    %r14d,%r14d
jmp    1412 <MSN_handle_chl+0x2b2>
nop
mov    0x40(%rsp,%r13,4),%edi
call   1080 <swapInt@plt>
mov    %eax,0x40(%rsp,%r13,4)
mov    %r13,%r12
or     $0x1,%r12
mov    0x44(%rsp,%r13,4),%edi
call   1080 <swapInt@plt>
mov    %eax,0x44(%rsp,%r13,4)
mov    (%rsp),%edi
mov    0x4(%rsp),%esi
mov    0x40(%rsp,%r13,4),%eax
imul   $0xe79a9c1,%rax,%rcx
mov    %rcx,%rax
movabs $0x200000005,%rdx
mul    %rdx
mov    %rcx,%rax
sub    %rdx,%rax
shr    %rax
add    %rdx,%rax
shr    $0x1e,%rax
mov    %rax,%rdx
shl    $0x1f,%rdx
sub    %rdx,%rax
add    %rcx,%rax
add    %r15,%rax
imul   %rdi,%rax
add    %rax,%rsi
mov    %rsi,%rax
imul   %rbp
mov    %rdx,%rcx
add    %rsi,%rcx
mov    %rcx,%rax
shr    $0x3f,%rax
sar    $0x1e,%rcx
add    %rax,%rcx
mov    %rcx,%rax
shl    $0x1f,%rax
sub    %rax,%rcx
add    %rsi,%rcx
mov    0x8(%rsp),%edi
mov    0x40(%rsp,%r12,4),%esi
add    %rcx,%rsi
mov    %rsi,%rax
imul   %rbp
add    %rsi,%rdx
mov    %rdx,%rax
shr    $0x3f,%rax
sar    $0x1e,%rdx
add    %rax,%rdx
mov    %rdx,%rax
shl    $0x1f,%rax
sub    %rax,%rdx
add    %rsi,%rdx
imul   %rdi,%rdx
mov    0xc(%rsp),%esi
add    %rdx,%rsi
mov    %rsi,%rax
imul   %rbp
mov    %rdx,%r15
add    %rsi,%r15
mov    %r15,%rax
shr    $0x3f,%rax
sar    $0x1e,%r15
add    %rax,%r15
mov    %r15,%rax
shl    $0x1f,%rax
sub    %rax,%r15
add    %rsi,%r15
add    %rcx,%r14
add    %r15,%r14
add    $0x2,%r13
lea    0x40(%rsp),%rdi
call   1030 <strlen@plt>
lea    0x3(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
sar    $0x2,%ecx
add    $0xffffffff,%ecx
movslq %ecx,%rax
cmp    %rax,%r13
jge    142c <MSN_handle_chl+0x2cc>
cmpl   $0x0,0x38(%rsp)
jne    12f0 <MSN_handle_chl+0x190>
lea    0x1(%r13),%r12
jmp    1315 <MSN_handle_chl+0x1b5>
xor    %r14d,%r14d
xor    %r15d,%r15d
mov    0x4(%rsp),%esi
mov    0xc(%rsp),%ecx
add    %r15,%rsi
mov    %rsi,%rax
imul   %rbp
add    %rsi,%rdx
mov    %rdx,%rax
shr    $0x3f,%rax
shr    $0x1e,%rdx
add    %eax,%edx
mov    %edx,%eax
shl    $0x1f,%eax
sub    %eax,%edx
add    %edx,%esi
add    %r14,%rcx
mov    %rcx,%rax
imul   %rbp
add    %rcx,%rdx
mov    %rdx,%rax
shr    $0x3f,%rax
shr    $0x1e,%rdx
add    %eax,%edx
mov    %edx,%eax
shl    $0x1f,%eax
sub    %eax,%edx
add    %edx,%ecx
mov    0x34(%rsp),%edi
xor    %esi,%edi
mov    %edi,0x10(%rsp)
mov    0x30(%rsp),%eax
xor    %ecx,%eax
mov    %eax,0x14(%rsp)
mov    0x2c(%rsp),%eax
xor    %esi,%eax
mov    %eax,0x18(%rsp)
mov    0x3c(%rsp),%eax
xor    %ecx,%eax
mov    %eax,0x1c(%rsp)
cmpl   $0x0,0x38(%rsp)
je     14d7 <MSN_handle_chl+0x377>
call   1080 <swapInt@plt>
mov    %eax,0x10(%rsp)
mov    0x14(%rsp),%edi
call   1080 <swapInt@plt>
mov    %eax,0x14(%rsp)
mov    0x18(%rsp),%edi
call   1080 <swapInt@plt>
mov    %eax,0x18(%rsp)
mov    0x1c(%rsp),%edi
call   1080 <swapInt@plt>
mov    %eax,0x1c(%rsp)
xor    %eax,%eax
lea    0xb42(%rip),%rcx
mov    %rbx,%rdi
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movzbl 0x10(%rsp,%rax,1),%edx
mov    %rdx,%rsi
shr    $0x4,%rsi
movzbl (%rsi,%rcx,1),%ebx
mov    %bl,(%rdi,%rax,2)
and    $0xf,%edx
movzbl (%rdx,%rcx,1),%edx
mov    %dl,0x1(%rdi,%rax,2)
add    $0x1,%rax
cmp    $0x10,%rax
jne    14f0 <MSN_handle_chl+0x390>
movb   $0x0,0x20(%rdi)
add    $0x848,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [17 x i8] c"CFHUR$52U_{VIX5T\00"
@.str.1 = [17 x i8] c"PROD0101{0RM?UBW\00"
@.str.2 = [17 x i8] c"0123456789abcdef\00"
@.str.3 = [5 x i8] c"%s%s\00"
define void @MSN_handle_chl(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca [2048 x i8]
%9 = alloca [16 x i8]
%10 = alloca i8*
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca [5 x i32]
%14 = alloca i64
%15 = alloca i64
%16 = alloca i32
%17 = alloca i32
%18 = alloca i64
store i8* %0, i8** %3
store i8* %1, i8** %4
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8** %5
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8** %6
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8** %7
store i64 0, i64* %14
store i64 0, i64* %15
%19 = call i32 (...) @isBigEndian()
store i32 %19, i32* %17
%20 = getelementptr inbounds [2048 x i8], [2048 x i8]* %8, i64 0, i64 0
%21 = load i8*, i8** %3
%22 = load i8*, i8** %5
%23 = call i32 @snprintf(i8* %20, i32 2047, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* %21, i8* %22)
%24 = getelementptr inbounds [2048 x i8], [2048 x i8]* %8, i64 0, i64 0
%25 = getelementptr inbounds [2048 x i8], [2048 x i8]* %8, i64 0, i64 0
%26 = call i32 @strlen(i8* %25)
%27 = getelementptr inbounds [16 x i8], [16 x i8]* %9, i64 0, i64 0
%28 = call i32 @MD5(i8* %24, i32 %26, i8* %27)
%29 = getelementptr inbounds [16 x i8], [16 x i8]* %9, i64 0, i64 0
%30 = bitcast i8* %29 to i32*
store i32* %30, i32** %11
store i32 0, i32* %16
br label %31
31: ; preds = %63, %2
%32 = load i32, i32* %16
%33 = icmp slt i32 %32, 4
br i1 %33, label %34, label %66
34: ; preds = %31
%35 = load i32, i32* %17
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %48
37: ; preds = %34
%38 = load i32*, i32** %11
%39 = load i32, i32* %16
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, i32* %38, i64 %40
%42 = load i32, i32* %41
%43 = call i32 @swapInt(i32 %42)
%44 = load i32*, i32** %11
%45 = load i32, i32* %16
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i32, i32* %44, i64 %46
store i32 %43, i32* %47
br label %48
48: ; preds = %37, %34
%49 = load i32*, i32** %11
%50 = load i32, i32* %16
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i32, i32* %49, i64 %51
%53 = load i32, i32* %52
%54 = load i32, i32* %16
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [5 x i32], [5 x i32]* %13, i64 0, i64 %55
store i32 %53, i32* %56
%57 = load i32*, i32** %11
%58 = load i32, i32* %16
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i32, i32* %57, i64 %59
%61 = load i32, i32* %60
%62 = and i32 %61, 2147483647
store i32 %62, i32* %60
br label %63
63: ; preds = %48
%64 = load i32, i32* %16
%65 = add nsw i32 %64, 1
store i32 %65, i32* %16
br label %31
66: ; preds = %31
%67 = getelementptr inbounds [2048 x i8], [2048 x i8]* %8, i64 0, i64 0
%68 = load i8*, i8** %3
%69 = load i8*, i8** %6
%70 = call i32 @snprintf(i8* %67, i32 2043, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* %68, i8* %69)
%71 = getelementptr inbounds [2048 x i8], [2048 x i8]* %8, i64 0, i64 0
%72 = call i32 @strlen(i8* %71)
store i32 %72, i32* %16
%73 = load i32, i32* %16
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [2048 x i8], [2048 x i8]* %8, i64 0, i64 %74
%76 = load i32, i32* %16
%77 = srem i32 %76, 8
%78 = sub nsw i32 8, %77
%79 = call i32 @memset(i8* %75, i32 48, i32 %78)
%80 = load i32, i32* %16
%81 = load i32, i32* %16
%82 = srem i32 %81, 8
%83 = sub nsw i32 8, %82
%84 = add nsw i32 %80, %83
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [2048 x i8], [2048 x i8]* %8, i64 0, i64 %85
store i8 0, i8* %86
%87 = getelementptr inbounds [2048 x i8], [2048 x i8]* %8, i64 0, i64 0
%88 = bitcast i8* %87 to i32*
store i32* %88, i32** %12
store i32 0, i32* %16
br label %89
89: ; preds = %170, %66
%90 = load i32, i32* %16
%91 = getelementptr inbounds [2048 x i8], [2048 x i8]* %8, i64 0, i64 0
%92 = call i32 @strlen(i8* %91)
%93 = sdiv i32 %92, 4
%94 = sub nsw i32 %93, 1
%95 = icmp slt i32 %90, %94
br i1 %95, label %96, label %173
96: ; preds = %89
%97 = load i32, i32* %17
%98 = icmp ne i32 %97, 0
br i1 %98, label %99, label %122
99: ; preds = %96
%100 = load i32*, i32** %12
%101 = load i32, i32* %16
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i32, i32* %100, i64 %102
%104 = load i32, i32* %103
%105 = call i32 @swapInt(i32 %104)
%106 = load i32*, i32** %12
%107 = load i32, i32* %16
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds i32, i32* %106, i64 %108
store i32 %105, i32* %109
%110 = load i32*, i32** %12
%111 = load i32, i32* %16
%112 = add nsw i32 %111, 1
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds i32, i32* %110, i64 %113
%115 = load i32, i32* %114
%116 = call i32 @swapInt(i32 %115)
%117 = load i32*, i32** %12
%118 = load i32, i32* %16
%119 = add nsw i32 %118, 1
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds i32, i32* %117, i64 %120
store i32 %116, i32* %121
br label %122
122: ; preds = %99, %96
%123 = load i32*, i32** %11
%124 = getelementptr inbounds i32, i32* %123, i64 0
%125 = load i32, i32* %124
%126 = zext i32 %125 to i64
%127 = load i32*, i32** %12
%128 = load i32, i32* %16
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds i32, i32* %127, i64 %129
%131 = load i32, i32* %130
%132 = zext i32 %131 to i64
%133 = mul nsw i64 242854337, %132
%134 = srem i64 %133, 2147483647
%135 = load i64, i64* %14
%136 = add nsw i64 %134, %135
%137 = mul nsw i64 %126, %136
%138 = load i32*, i32** %11
%139 = getelementptr inbounds i32, i32* %138, i64 1
%140 = load i32, i32* %139
%141 = zext i32 %140 to i64
%142 = add nsw i64 %137, %141
%143 = srem i64 %142, 2147483647
store i64 %143, i64* %18
%144 = load i32*, i32** %11
%145 = getelementptr inbounds i32, i32* %144, i64 2
%146 = load i32, i32* %145
%147 = zext i32 %146 to i64
%148 = load i32*, i32** %12
%149 = load i32, i32* %16
%150 = add nsw i32 %149, 1
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds i32, i32* %148, i64 %151
%153 = load i32, i32* %152
%154 = zext i32 %153 to i64
%155 = load i64, i64* %18
%156 = add nsw i64 %154, %155
%157 = srem i64 %156, 2147483647
%158 = mul nsw i64 %147, %157
%159 = load i32*, i32** %11
%160 = getelementptr inbounds i32, i32* %159, i64 3
%161 = load i32, i32* %160
%162 = zext i32 %161 to i64
%163 = add nsw i64 %158, %162
%164 = srem i64 %163, 2147483647
store i64 %164, i64* %14
%165 = load i64, i64* %15
%166 = load i64, i64* %14
%167 = add nsw i64 %165, %166
%168 = load i64, i64* %18
%169 = add nsw i64 %167, %168
store i64 %169, i64* %15
br label %170
170: ; preds = %122
%171 = load i32, i32* %16
%172 = add nsw i32 %171, 2
store i32 %172, i32* %16
br label %89
173: ; preds = %89
%174 = load i64, i64* %14
%175 = load i32*, i32** %11
%176 = getelementptr inbounds i32, i32* %175, i64 1
%177 = load i32, i32* %176
%178 = zext i32 %177 to i64
%179 = add nsw i64 %174, %178
%180 = srem i64 %179, 2147483647
store i64 %180, i64* %14
%181 = load i64, i64* %15
%182 = load i32*, i32** %11
%183 = getelementptr inbounds i32, i32* %182, i64 3
%184 = load i32, i32* %183
%185 = zext i32 %184 to i64
%186 = add nsw i64 %181, %185
%187 = srem i64 %186, 2147483647
store i64 %187, i64* %15
%188 = load i64, i64* %14
%189 = getelementptr inbounds [5 x i32], [5 x i32]* %13, i64 0, i64 0
%190 = load i32, i32* %189
%191 = zext i32 %190 to i64
%192 = xor i64 %191, %188
%193 = trunc i64 %192 to i32
store i32 %193, i32* %189
%194 = load i64, i64* %15
%195 = getelementptr inbounds [5 x i32], [5 x i32]* %13, i64 0, i64 1
%196 = load i32, i32* %195
%197 = zext i32 %196 to i64
%198 = xor i64 %197, %194
%199 = trunc i64 %198 to i32
store i32 %199, i32* %195
%200 = load i64, i64* %14
%201 = getelementptr inbounds [5 x i32], [5 x i32]* %13, i64 0, i64 2
%202 = load i32, i32* %201
%203 = zext i32 %202 to i64
%204 = xor i64 %203, %200
%205 = trunc i64 %204 to i32
store i32 %205, i32* %201
%206 = load i64, i64* %15
%207 = getelementptr inbounds [5 x i32], [5 x i32]* %13, i64 0, i64 3
%208 = load i32, i32* %207
%209 = zext i32 %208 to i64
%210 = xor i64 %209, %206
%211 = trunc i64 %210 to i32
store i32 %211, i32* %207
store i32 0, i32* %16
br label %212
212: ; preds = %229, %173
%213 = load i32, i32* %16
%214 = icmp slt i32 %213, 4
br i1 %214, label %215, label %218
215: ; preds = %212
%216 = load i32, i32* %17
%217 = icmp ne i32 %216, 0
br label %218
218: ; preds = %215, %212
%219 = phi i1 [ false, %212 ], [ %217, %215 ]
br i1 %219, label %220, label %232
220: ; preds = %218
%221 = load i32, i32* %16
%222 = sext i32 %221 to i64
%223 = getelementptr inbounds [5 x i32], [5 x i32]* %13, i64 0, i64 %222
%224 = load i32, i32* %223
%225 = call i32 @swapInt(i32 %224)
%226 = load i32, i32* %16
%227 = sext i32 %226 to i64
%228 = getelementptr inbounds [5 x i32], [5 x i32]* %13, i64 0, i64 %227
store i32 %225, i32* %228
br label %229
229: ; preds = %220
%230 = load i32, i32* %16
%231 = add nsw i32 %230, 1
store i32 %231, i32* %16
br label %212
232: ; preds = %218
%233 = getelementptr inbounds [5 x i32], [5 x i32]* %13, i64 0, i64 0
%234 = bitcast i32* %233 to i8*
store i8* %234, i8** %10
store i32 0, i32* %16
br label %235
235: ; preds = %273, %232
%236 = load i32, i32* %16
%237 = icmp slt i32 %236, 16
br i1 %237, label %238, label %276
238: ; preds = %235
%239 = load i8*, i8** %7
%240 = load i8*, i8** %10
%241 = load i32, i32* %16
%242 = sext i32 %241 to i64
%243 = getelementptr inbounds i8, i8* %240, i64 %242
%244 = load i8, i8* %243
%245 = zext i8 %244 to i32
%246 = ashr i32 %245, 4
%247 = and i32 %246, 15
%248 = sext i32 %247 to i64
%249 = getelementptr inbounds i8, i8* %239, i64 %248
%250 = load i8, i8* %249
%251 = load i8*, i8** %4
%252 = load i32, i32* %16
%253 = mul nsw i32 %252, 2
%254 = sext i32 %253 to i64
%255 = getelementptr inbounds i8, i8* %251, i64 %254
store i8 %250, i8* %255
%256 = load i8*, i8** %7
%257 = load i8*, i8** %10
%258 = load i32, i32* %16
%259 = sext i32 %258 to i64
%260 = getelementptr inbounds i8, i8* %257, i64 %259
%261 = load i8, i8* %260
%262 = zext i8 %261 to i32
%263 = and i32 %262, 15
%264 = sext i32 %263 to i64
%265 = getelementptr inbounds i8, i8* %256, i64 %264
%266 = load i8, i8* %265
%267 = load i8*, i8** %4
%268 = load i32, i32* %16
%269 = mul nsw i32 %268, 2
%270 = add nsw i32 %269, 1
%271 = sext i32 %270 to i64
%272 = getelementptr inbounds i8, i8* %267, i64 %271
store i8 %266, i8* %272
br label %273
273: ; preds = %238
%274 = load i32, i32* %16
%275 = add nsw i32 %274, 1
store i32 %275, i32* %16
br label %235
276: ; preds = %235
%277 = load i8*, i8** %4
%278 = getelementptr inbounds i8, i8* %277, i64 32
store i8 0, i8* %278
ret void
}

LLVM IR (-O2):
@.str = [17 x i8] c"CFHUR$52U_{VIX5T\00"
@.str.1 = [17 x i8] c"PROD0101{0RM?UBW\00"
@.str.2 = [17 x i8] c"0123456789abcdef\00"
@.str.3 = [5 x i8] c"%s%s\00"
define void @MSN_handle_chl(i8* %0, i8* nocapture writeonly %1) {
%3 = alloca [2048 x i8]
%4 = alloca [16 x i8]
%5 = alloca [5 x i32]
%6 = getelementptr inbounds [2048 x i8], [2048 x i8]* %3, i64 0, i64 0
%7 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 0
%8 = bitcast [5 x i32]* %5 to i8*
%9 = tail call i32 (...) @isBigEndian()
%10 = call i32 @snprintf(i8* %6, i32 2047, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* %0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%11 = call i32 @strlen(i8* %6)
%12 = call i32 @MD5(i8* %6, i32 %11, i8* %7)
%13 = bitcast [16 x i8]* %4 to i32*
%14 = icmp eq i32 %9, 0
%15 = load i32, i32* %13
br i1 %14, label %16, label %36
16: ; preds = %2
%17 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 0
store i32 %15, i32* %17
%18 = and i32 %15, 2147483647
store i32 %18, i32* %13
%19 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 4
%20 = bitcast i8* %19 to i32*
%21 = load i32, i32* %20
%22 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 4
%23 = bitcast i8* %22 to i32*
%24 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 1
store i32 %21, i32* %24
%25 = and i32 %21, 2147483647
store i32 %25, i32* %23
%26 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 8
%27 = bitcast i8* %26 to i32*
%28 = load i32, i32* %27
%29 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 8
%30 = bitcast i8* %29 to i32*
%31 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 2
store i32 %28, i32* %31
%32 = and i32 %28, 2147483647
store i32 %32, i32* %30
%33 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 12
%34 = bitcast i8* %33 to i32*
%35 = load i32, i32* %34
br label %60
36: ; preds = %2
%37 = call i32 @swapInt(i32 %15)
%38 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 0
store i32 %37, i32* %38
%39 = and i32 %37, 2147483647
store i32 %39, i32* %13
%40 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 4
%41 = bitcast i8* %40 to i32*
%42 = load i32, i32* %41
%43 = call i32 @swapInt(i32 %42)
%44 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 4
%45 = bitcast i8* %44 to i32*
%46 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 1
store i32 %43, i32* %46
%47 = and i32 %43, 2147483647
store i32 %47, i32* %45
%48 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 8
%49 = bitcast i8* %48 to i32*
%50 = load i32, i32* %49
%51 = call i32 @swapInt(i32 %50)
%52 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 8
%53 = bitcast i8* %52 to i32*
%54 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 2
store i32 %51, i32* %54
%55 = and i32 %51, 2147483647
store i32 %55, i32* %53
%56 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 12
%57 = bitcast i8* %56 to i32*
%58 = load i32, i32* %57
%59 = call i32 @swapInt(i32 %58)
br label %60
60: ; preds = %16, %36
%61 = phi i32* [ %31, %16 ], [ %54, %36 ]
%62 = phi i32 [ %28, %16 ], [ %51, %36 ]
%63 = phi i32 [ %15, %16 ], [ %37, %36 ]
%64 = phi i32 [ %21, %16 ], [ %43, %36 ]
%65 = phi i32* [ %24, %16 ], [ %46, %36 ]
%66 = phi i32 [ %35, %16 ], [ %59, %36 ]
%67 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 0
%68 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 12
%69 = bitcast i8* %68 to i32*
%70 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 3
%71 = and i32 %66, 2147483647
store i32 %71, i32* %69
%72 = call i32 @snprintf(i8* %6, i32 2043, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* %0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%73 = call i32 @strlen(i8* %6)
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [2048 x i8], [2048 x i8]* %3, i64 0, i64 %74
%76 = srem i32 %73, 8
%77 = sub nsw i32 8, %76
%78 = call i32 @memset(i8* %75, i32 48, i32 %77)
%79 = add nsw i32 %77, %73
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [2048 x i8], [2048 x i8]* %3, i64 0, i64 %80
store i8 0, i8* %81
%82 = bitcast [2048 x i8]* %3 to i32*
%83 = call i32 @strlen(i8* %6)
%84 = icmp sgt i32 %83, 7
br i1 %84, label %85, label %141
85: ; preds = %60
%86 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 4
%87 = bitcast i8* %86 to i32*
%88 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 8
%89 = bitcast i8* %88 to i32*
%90 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 12
%91 = bitcast i8* %90 to i32*
br label %92
92: ; preds = %85, %106
%93 = phi i64 [ 0, %85 ], [ %135, %106 ]
%94 = phi i64 [ 0, %85 ], [ %132, %106 ]
%95 = phi i64 [ 0, %85 ], [ %134, %106 ]
br i1 %14, label %96, label %98
96: ; preds = %92
%97 = or i64 %93, 1
br label %106
98: ; preds = %92
%99 = getelementptr inbounds i32, i32* %82, i64 %93
%100 = load i32, i32* %99
%101 = call i32 @swapInt(i32 %100)
store i32 %101, i32* %99
%102 = or i64 %93, 1
%103 = getelementptr inbounds i32, i32* %82, i64 %102
%104 = load i32, i32* %103
%105 = call i32 @swapInt(i32 %104)
store i32 %105, i32* %103
br label %106
106: ; preds = %96, %98
%107 = phi i64 [ %97, %96 ], [ %102, %98 ]
%108 = load i32, i32* %13
%109 = zext i32 %108 to i64
%110 = getelementptr inbounds i32, i32* %82, i64 %93
%111 = load i32, i32* %110
%112 = zext i32 %111 to i64
%113 = mul nuw nsw i64 %112, 242854337
%114 = urem i64 %113, 2147483647
%115 = add nsw i64 %114, %94
%116 = mul nsw i64 %115, %109
%117 = load i32, i32* %87
%118 = zext i32 %117 to i64
%119 = add nsw i64 %116, %118
%120 = srem i64 %119, 2147483647
%121 = load i32, i32* %89
%122 = zext i32 %121 to i64
%123 = getelementptr inbounds i32, i32* %82, i64 %107
%124 = load i32, i32* %123
%125 = zext i32 %124 to i64
%126 = add nsw i64 %120, %125
%127 = srem i64 %126, 2147483647
%128 = mul nsw i64 %127, %122
%129 = load i32, i32* %91
%130 = zext i32 %129 to i64
%131 = add nsw i64 %128, %130
%132 = srem i64 %131, 2147483647
%133 = add i64 %120, %95
%134 = add i64 %133, %132
%135 = add nuw nsw i64 %93, 2
%136 = call i32 @strlen(i8* %6)
%137 = sdiv i32 %136, 4
%138 = add nsw i32 %137, -1
%139 = sext i32 %138 to i64
%140 = icmp slt i64 %135, %139
br i1 %140, label %92, label %141
141: ; preds = %106, %60
%142 = phi i64 [ 0, %60 ], [ %134, %106 ]
%143 = phi i64 [ 0, %60 ], [ %132, %106 ]
%144 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 4
%145 = bitcast i8* %144 to i32*
%146 = load i32, i32* %145
%147 = zext i32 %146 to i64
%148 = add nsw i64 %143, %147
%149 = srem i64 %148, 2147483647
%150 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 12
%151 = bitcast i8* %150 to i32*
%152 = load i32, i32* %151
%153 = zext i32 %152 to i64
%154 = add nsw i64 %142, %153
%155 = srem i64 %154, 2147483647
%156 = trunc i64 %149 to i32
%157 = xor i32 %63, %156
store i32 %157, i32* %67
%158 = trunc i64 %155 to i32
%159 = xor i32 %64, %158
store i32 %159, i32* %65
%160 = xor i32 %62, %156
store i32 %160, i32* %61
%161 = xor i32 %66, %158
store i32 %161, i32* %70
%162 = icmp eq i32 %9, 0
br i1 %162, label %178, label %163
163: ; preds = %141
%164 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 0
%165 = call i32 @swapInt(i32 %157)
store i32 %165, i32* %164
%166 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 1
%167 = load i32, i32* %166
%168 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 1
%169 = call i32 @swapInt(i32 %167)
store i32 %169, i32* %168
%170 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 2
%171 = load i32, i32* %170
%172 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 2
%173 = call i32 @swapInt(i32 %171)
store i32 %173, i32* %172
%174 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 3
%175 = load i32, i32* %174
%176 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 3
%177 = call i32 @swapInt(i32 %175)
store i32 %177, i32* %176
br label %178
178: ; preds = %163, %141
br label %179
179: ; preds = %178, %179
%180 = phi i64 [ %195, %179 ], [ 0, %178 ]
%181 = getelementptr inbounds i8, i8* %8, i64 %180
%182 = load i8, i8* %181
%183 = lshr i8 %182, 4
%184 = zext i8 %183 to i64
%185 = getelementptr inbounds [17 x i8], [17 x i8]* @.str.2, i64 0, i64 %184
%186 = load i8, i8* %185
%187 = shl nuw nsw i64 %180, 1
%188 = getelementptr inbounds i8, i8* %1, i64 %187
store i8 %186, i8* %188
%189 = and i8 %182, 15
%190 = zext i8 %189 to i64
%191 = getelementptr inbounds [17 x i8], [17 x i8]* @.str.2, i64 0, i64 %190
%192 = load i8, i8* %191
%193 = or i64 %187, 1
%194 = getelementptr inbounds i8, i8* %1, i64 %193
store i8 %192, i8* %194
%195 = add nuw nsw i64 %180, 1
%196 = icmp eq i64 %195, 16
br i1 %196, label %197, label %179
197: ; preds = %179
%198 = getelementptr inbounds i8, i8* %1, i64 32
store i8 0, i8* %198
ret void
}