#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 *, unsigned int, unsigned char *);
int create_sign_md5(char *str, unsigned int *sign1, unsigned int *sign2,
                    int len) {
  unsigned int md5res[4];
  MD5((unsigned char *)str, (unsigned int)len, (unsigned char *)md5res);
  *sign1 = md5res[0] + md5res[1];
  *sign2 = md5res[2] + md5res[3];
  return 0;
}


x86 assembly (clang, -O0):
<create_sign_md5>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x1c(%rbp),%esi
lea    -0x30(%rbp),%rdx
call   1030 <MD5@plt>
mov    -0x30(%rbp),%ecx
add    -0x2c(%rbp),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x28(%rbp),%ecx
add    -0x24(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<create_sign_md5>:
push   %r14
push   %rbx
sub    $0x18,%rsp
mov    %rdx,%r14
mov    %rsi,%rbx
mov    %rsp,%rdx
mov    %ecx,%esi
call   1030 <MD5@plt>
mov    0x4(%rsp),%eax
add    (%rsp),%eax
mov    %eax,(%rbx)
mov    0xc(%rsp),%eax
add    0x8(%rsp),%eax
mov    %eax,(%r14)
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @create_sign_md5(i8* %0, i32* %1, i32* %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i32
%9 = alloca [4 x i32]
store i8* %0, i8** %5
store i32* %1, i32** %6
store i32* %2, i32** %7
store i32 %3, i32* %8
%10 = load i8*, i8** %5
%11 = load i32, i32* %8
%12 = getelementptr inbounds [4 x i32], [4 x i32]* %9, i64 0, i64 0
%13 = bitcast i32* %12 to i8*
%14 = call i32 @MD5(i8* %10, i32 %11, i8* %13)
%15 = getelementptr inbounds [4 x i32], [4 x i32]* %9, i64 0, i64 0
%16 = load i32, i32* %15
%17 = getelementptr inbounds [4 x i32], [4 x i32]* %9, i64 0, i64 1
%18 = load i32, i32* %17
%19 = add i32 %16, %18
%20 = load i32*, i32** %6
store i32 %19, i32* %20
%21 = getelementptr inbounds [4 x i32], [4 x i32]* %9, i64 0, i64 2
%22 = load i32, i32* %21
%23 = getelementptr inbounds [4 x i32], [4 x i32]* %9, i64 0, i64 3
%24 = load i32, i32* %23
%25 = add i32 %22, %24
%26 = load i32*, i32** %7
store i32 %25, i32* %26
ret i32 0
}

LLVM IR (-O2):
define i32 @create_sign_md5(i8* %0, i32* nocapture writeonly %1, i32* nocapture writeonly %2, i32 %3) {
%5 = alloca [4 x i32]
%6 = bitcast [4 x i32]* %5 to i8*
%7 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 0
%8 = call i32 @MD5(i8* %0, i32 %3, i8* %6)
%9 = load i32, i32* %7
%10 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 1
%11 = load i32, i32* %10
%12 = add i32 %11, %9
store i32 %12, i32* %1
%13 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 2
%14 = load i32, i32* %13
%15 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 3
%16 = load i32, i32* %15
%17 = add i32 %16, %14
store i32 %17, i32* %2
ret i32 0
}