#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 /*<<< orphan*/ EVP_MD_CTX;
typedef int /*<<< orphan*/ EVP_MD;

/* Variables and functions */
int /*<<< orphan*/ EVP_DigestFinal_ex(int /*<<< orphan*/ *, unsigned char *,
                                      int *);
int /*<<< orphan*/ EVP_DigestInit_ex(int /*<<< orphan*/ *,
                                     int /*<<< orphan*/ const *,
                                     int /*<<< orphan*/ *);
int /*<<< orphan*/ EVP_DigestUpdate(int /*<<< orphan*/ *, char const *, int);
int EVP_MAX_MD_SIZE;
int /*<<< orphan*/ *EVP_MD_CTX_create();
int /*<<< orphan*/ EVP_MD_CTX_destroy(int /*<<< orphan*/ *);
int /*<<< orphan*/ EVP_cleanup();
int /*<<< orphan*/ *EVP_sha256();
int /*<<< orphan*/ HMAC(int /*<<< orphan*/ *, ...);
int /*<<< orphan*/ OpenSSL_add_all_digests();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
int strlen(char const *);
int main() {
  const char message[] = "";
  EVP_MD_CTX *mdctx;
  const EVP_MD *md;
  unsigned char md_value[EVP_MAX_MD_SIZE];
  int md_len, i;
  OpenSSL_add_all_digests();
  md = EVP_sha256();
  mdctx = EVP_MD_CTX_create();
  EVP_DigestInit_ex(mdctx, md, NULL);
  EVP_DigestUpdate(mdctx, message, strlen(message));
  EVP_DigestFinal_ex(mdctx, md_value, &md_len);
  EVP_MD_CTX_destroy(mdctx);
  for (i = 0; i < md_len; i++) {
    fprintf(stderr, "%02x", md_value[i]);
  }
  fprintf(stderr, "\n");
  EVP_cleanup();
  HMAC(EVP_sha256(), "AWS4wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY",
       strlen("AWS4wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY"), "20110909", 8,
       md_value, &md_len);
  HMAC(EVP_sha256(), md_value, md_len, "us-east-1", strlen("us-east-1"),
       md_value, &md_len);
  HMAC(EVP_sha256(), md_value, md_len, "iam", 3, md_value, &md_len);
  HMAC(EVP_sha256(), md_value, md_len, "aws4_request", strlen("aws4_request"),
       md_value, &md_len);
  for (i = 0; i < md_len; i++) {
    fprintf(stderr, "%d ", md_value[i]);
  }
  fprintf(stderr, "\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x0,-0x5(%rbp)
mov    0x2e1e(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rcx
mov    %rcx,-0x20(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x38(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x28(%rbp)
mov    $0x0,%al
call   1060 <OpenSSL_add_all_digests@plt>
mov    $0x0,%al
call   10c0 <EVP_sha256@plt>
mov    %rax,-0x18(%rbp)
mov    $0x0,%al
call   10d0 <EVP_MD_CTX_create@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1050 <EVP_DigestInit_ex@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x48(%rbp)
lea    -0x5(%rbp),%rax
mov    %rax,-0x40(%rbp)
lea    -0x5(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x48(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    %eax,%edx
call   1090 <EVP_DigestUpdate@plt>
mov    -0x38(%rbp),%rsi
mov    -0x10(%rbp),%rdi
lea    -0x2c(%rbp),%rdx
call   1030 <EVP_DigestFinal_ex@plt>
mov    -0x10(%rbp),%rdi
call   10b0 <EVP_MD_CTX_destroy@plt>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    12a3 <main+0xf3>
mov    -0x38(%rbp),%rax
mov    0x2d5b(%rip),%rcx
mov    (%rcx),%edi
movslq -0x30(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
lea    0xd72(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1266 <main+0xb6>
mov    0x2d2e(%rip),%rax
mov    (%rax),%edi
lea    0xd52(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0x0,%al
call   1080 <EVP_cleanup@plt>
mov    $0x0,%al
call   10c0 <EVP_sha256@plt>
mov    %rax,-0x70(%rbp)
lea    0xd34(%rip),%rdi
call   1040 <strlen@plt>
mov    -0x70(%rbp),%rdi
mov    -0x38(%rbp),%r9
mov    %eax,%edx
lea    0xd1e(%rip),%rsi
lea    0xd44(%rip),%rcx
mov    $0x8,%r8d
lea    -0x2c(%rbp),%rax
sub    $0x10,%rsp
mov    %rax,(%rsp)
mov    $0x0,%al
call   10a0 <HMAC@plt>
add    $0x10,%rsp
mov    $0x0,%al
call   10c0 <EVP_sha256@plt>
mov    %rax,-0x68(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x5c(%rbp)
lea    0xd18(%rip),%rdi
call   1040 <strlen@plt>
mov    -0x68(%rbp),%rdi
mov    -0x5c(%rbp),%edx
mov    -0x38(%rbp),%r9
mov    %eax,%r8d
lea    0xcfe(%rip),%rcx
lea    -0x2c(%rbp),%rax
sub    $0x10,%rsp
mov    %r9,%rsi
mov    %rax,(%rsp)
mov    $0x0,%al
call   10a0 <HMAC@plt>
add    $0x10,%rsp
mov    $0x0,%al
call   10c0 <EVP_sha256@plt>
mov    -0x38(%rbp),%r9
mov    %rax,%rdi
mov    -0x2c(%rbp),%edx
lea    0xcd6(%rip),%rcx
mov    $0x3,%r8d
lea    -0x2c(%rbp),%rax
sub    $0x10,%rsp
mov    %r9,%rsi
mov    %rax,(%rsp)
mov    $0x0,%al
call   10a0 <HMAC@plt>
add    $0x10,%rsp
mov    $0x0,%al
call   10c0 <EVP_sha256@plt>
mov    %rax,-0x58(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x4c(%rbp)
lea    0xca2(%rip),%rdi
call   1040 <strlen@plt>
mov    -0x58(%rbp),%rdi
mov    -0x4c(%rbp),%edx
mov    -0x38(%rbp),%r9
mov    %eax,%r8d
lea    0xc88(%rip),%rcx
lea    -0x2c(%rbp),%rax
sub    $0x10,%rsp
mov    %r9,%rsi
mov    %rax,(%rsp)
mov    $0x0,%al
call   10a0 <HMAC@plt>
add    $0x10,%rsp
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    1421 <main+0x271>
mov    -0x38(%rbp),%rax
mov    0x2bdd(%rip),%rcx
mov    (%rcx),%edi
movslq -0x30(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
lea    0xc4c(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    13e4 <main+0x234>
mov    0x2bb0(%rip),%rax
mov    (%rax),%edi
lea    0xbd4(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsp,-0x38(%rbp)
movb   $0x0,-0x2d(%rbp)
mov    0x2e18(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%r15
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r15
mov    %r15,%rsp
xor    %eax,%eax
call   1060 <OpenSSL_add_all_digests@plt>
xor    %eax,%eax
call   10c0 <EVP_sha256@plt>
mov    %rax,%r14
xor    %eax,%eax
call   10d0 <EVP_MD_CTX_create@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r14,%rsi
xor    %edx,%edx
call   1050 <EVP_DigestInit_ex@plt>
lea    -0x2d(%rbp),%r14
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1090 <EVP_DigestUpdate@plt>
lea    -0x2c(%rbp),%r13
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
call   1030 <EVP_DigestFinal_ex@plt>
mov    %rbx,%rdi
call   10b0 <EVP_MD_CTX_destroy@plt>
cmpl   $0x0,-0x2c(%rbp)
jle    127f <main+0xcf>
mov    0x2d8d(%rip),%r14
lea    0xdae(%rip),%r12
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    (%r14),%edi
movzbl (%r15,%rbx,1),%edx
mov    %r12,%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
add    $0x1,%rbx
movslq -0x2c(%rbp),%rax
cmp    %rax,%rbx
jl     1260 <main+0xb0>
mov    0x2d52(%rip),%r14
mov    (%r14),%edi
lea    0xd75(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
xor    %eax,%eax
call   1080 <EVP_cleanup@plt>
xor    %eax,%eax
call   10c0 <EVP_sha256@plt>
mov    %rax,%rbx
lea    0xd58(%rip),%r12
mov    %r12,%rdi
call   1040 <strlen@plt>
sub    $0x8,%rsp
lea    0xd72(%rip),%rcx
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %eax,%edx
mov    $0x8,%r8d
mov    %r15,%r9
xor    %eax,%eax
push   %r13
call   10a0 <HMAC@plt>
add    $0x10,%rsp
xor    %eax,%eax
call   10c0 <EVP_sha256@plt>
mov    %rax,%rbx
mov    -0x2c(%rbp),%r12d
lea    0xd48(%rip),%r13
mov    %r13,%rdi
call   1040 <strlen@plt>
sub    $0x8,%rsp
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r12d,%edx
mov    %r13,%rcx
mov    %eax,%r8d
mov    %r15,%r9
xor    %eax,%eax
lea    -0x2c(%rbp),%rbx
push   %rbx
call   10a0 <HMAC@plt>
add    $0x10,%rsp
xor    %eax,%eax
call   10c0 <EVP_sha256@plt>
mov    -0x2c(%rbp),%edx
sub    $0x8,%rsp
lea    0xd0f(%rip),%rcx
mov    %rax,%rdi
mov    %r15,%rsi
mov    $0x3,%r8d
mov    %r15,%r9
xor    %eax,%eax
push   %rbx
call   10a0 <HMAC@plt>
add    $0x10,%rsp
xor    %eax,%eax
call   10c0 <EVP_sha256@plt>
mov    %rax,%rbx
mov    -0x2c(%rbp),%r12d
lea    0xce3(%rip),%r13
mov    %r13,%rdi
call   1040 <strlen@plt>
sub    $0x8,%rsp
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r12d,%edx
mov    %r13,%rcx
mov    %eax,%r8d
mov    %r15,%r9
xor    %eax,%eax
lea    -0x2c(%rbp),%rbx
push   %rbx
call   10a0 <HMAC@plt>
add    $0x10,%rsp
cmpl   $0x0,-0x2c(%rbp)
jle    13cf <main+0x21f>
lea    0xcb5(%rip),%r12
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
mov    (%r14),%edi
movzbl (%r15,%rbx,1),%edx
mov    %r12,%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
add    $0x1,%rbx
movslq -0x2c(%rbp),%rax
cmp    %rax,%rbx
jl     13b0 <main+0x200>
mov    (%r14),%edi
lea    0xc2c(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    -0x38(%rbp),%rsp
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@EVP_MAX_MD_SIZE = global i32 0
@stderr = global i32 0
@.str = [5 x i8] c"%02x\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [45 x i8] c"AWS4wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\00"
@.str.3 = [9 x i8] c"20110909\00"
@.str.4 = [10 x i8] c"us-east-1\00"
@.str.5 = [4 x i8] c"iam\00"
@.str.6 = [13 x i8] c"aws4_request\00"
@.str.7 = [4 x i8] c"%d \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [1 x i8]
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %1
%9 = bitcast [1 x i8]* %2 to i8*
%10 = load i32, i32* @EVP_MAX_MD_SIZE
%11 = zext i32 %10 to i64
%12 = call i8* @llvm.stacksave()
store i8* %12, i8** %5
%13 = alloca i8, i64 %11
store i64 %11, i64* %6
%14 = call i32 (...) @OpenSSL_add_all_digests()
%15 = call i32* (...) @EVP_sha256()
store i32* %15, i32** %4
%16 = call i32* (...) @EVP_MD_CTX_create()
store i32* %16, i32** %3
%17 = load i32*, i32** %3
%18 = load i32*, i32** %4
%19 = call i32 @EVP_DigestInit_ex(i32* %17, i32* %18, i32* null)
%20 = load i32*, i32** %3
%21 = getelementptr inbounds [1 x i8], [1 x i8]* %2, i64 0, i64 0
%22 = getelementptr inbounds [1 x i8], [1 x i8]* %2, i64 0, i64 0
%23 = call i32 @strlen(i8* %22)
%24 = call i32 @EVP_DigestUpdate(i32* %20, i8* %21, i32 %23)
%25 = load i32*, i32** %3
%26 = call i32 @EVP_DigestFinal_ex(i32* %25, i8* %13, i32* %7)
%27 = load i32*, i32** %3
%28 = call i32 @EVP_MD_CTX_destroy(i32* %27)
store i32 0, i32* %8
br label %29
29: ; preds = %41, %0
%30 = load i32, i32* %8
%31 = load i32, i32* %7
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %44
33: ; preds = %29
%34 = load i32, i32* @stderr
%35 = load i32, i32* %8
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, i8* %13, i64 %36
%38 = load i8, i8* %37
%39 = zext i8 %38 to i32
%40 = call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %39)
br label %41
41: ; preds = %33
%42 = load i32, i32* %8
%43 = add nsw i32 %42, 1
store i32 %43, i32* %8
br label %29
44: ; preds = %29
%45 = load i32, i32* @stderr
%46 = call i32 (i32, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%47 = call i32 (...) @EVP_cleanup()
%48 = call i32* (...) @EVP_sha256()
%49 = call i32 @strlen(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0))
%50 = call i32 (i32*, ...) @HMAC(i32* %48, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0), i32 %49, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 8, i8* %13, i32* %7)
%51 = call i32* (...) @EVP_sha256()
%52 = load i32, i32* %7
%53 = call i32 @strlen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%54 = call i32 (i32*, ...) @HMAC(i32* %51, i8* %13, i32 %52, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 %53, i8* %13, i32* %7)
%55 = call i32* (...) @EVP_sha256()
%56 = load i32, i32* %7
%57 = call i32 (i32*, ...) @HMAC(i32* %55, i8* %13, i32 %56, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 3, i8* %13, i32* %7)
%58 = call i32* (...) @EVP_sha256()
%59 = load i32, i32* %7
%60 = call i32 @strlen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
%61 = call i32 (i32*, ...) @HMAC(i32* %58, i8* %13, i32 %59, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 %60, i8* %13, i32* %7)
store i32 0, i32* %8
br label %62
62: ; preds = %74, %44
%63 = load i32, i32* %8
%64 = load i32, i32* %7
%65 = icmp slt i32 %63, %64
br i1 %65, label %66, label %77
66: ; preds = %62
%67 = load i32, i32* @stderr
%68 = load i32, i32* %8
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8, i8* %13, i64 %69
%71 = load i8, i8* %70
%72 = zext i8 %71 to i32
%73 = call i32 (i32, i8*, ...) @fprintf(i32 %67, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %72)
br label %74
74: ; preds = %66
%75 = load i32, i32* %8
%76 = add nsw i32 %75, 1
store i32 %76, i32* %8
br label %62
77: ; preds = %62
%78 = load i32, i32* @stderr
%79 = call i32 (i32, i8*, ...) @fprintf(i32 %78, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %1
%80 = load i8*, i8** %5
%81 = load i32, i32* %1
ret i32 %81
}

LLVM IR (-O2):
@EVP_MAX_MD_SIZE = global i32 0
@stderr = global i32 0
@.str = [5 x i8] c"%02x\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [45 x i8] c"AWS4wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\00"
@.str.3 = [9 x i8] c"20110909\00"
@.str.4 = [10 x i8] c"us-east-1\00"
@.str.5 = [4 x i8] c"iam\00"
@.str.6 = [13 x i8] c"aws4_request\00"
@.str.7 = [4 x i8] c"%d \00"
define i32 @main() {
%1 = alloca [1 x i8]
%2 = alloca i32
%3 = getelementptr inbounds [1 x i8], [1 x i8]* %1, i64 0, i64 0
store i8 0, i8* %3
%4 = load i32, i32* @EVP_MAX_MD_SIZE
%5 = zext i32 %4 to i64
%6 = tail call i8* @llvm.stacksave()
%7 = alloca i8, i64 %5
%8 = bitcast i32* %2 to i8*
%9 = tail call i32 (...) @OpenSSL_add_all_digests()
%10 = tail call i32* (...) @EVP_sha256()
%11 = tail call i32* (...) @EVP_MD_CTX_create()
%12 = tail call i32 @EVP_DigestInit_ex(i32* %11, i32* %10, i32* null)
%13 = call i32 @strlen(i8* %3)
%14 = call i32 @EVP_DigestUpdate(i32* %11, i8* %3, i32 %13)
%15 = call i32 @EVP_DigestFinal_ex(i32* %11, i8* %7, i32* %2)
%16 = call i32 @EVP_MD_CTX_destroy(i32* %11)
%17 = load i32, i32* %2
%18 = icmp sgt i32 %17, 0
br i1 %18, label %19, label %30
19: ; preds = %0, %19
%20 = phi i64 [ %26, %19 ], [ 0, %0 ]
%21 = load i32, i32* @stderr
%22 = getelementptr inbounds i8, i8* %7, i64 %20
%23 = load i8, i8* %22
%24 = zext i8 %23 to i32
%25 = call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %24)
%26 = add nuw nsw i64 %20, 1
%27 = load i32, i32* %2
%28 = sext i32 %27 to i64
%29 = icmp slt i64 %26, %28
br i1 %29, label %19, label %30
30: ; preds = %19, %0
%31 = load i32, i32* @stderr
%32 = call i32 (i32, i8*, ...) @fprintf(i32 %31, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%33 = call i32 (...) @EVP_cleanup()
%34 = call i32* (...) @EVP_sha256()
%35 = call i32 @strlen(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0))
%36 = call i32 (i32*, ...) @HMAC(i32* %34, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0), i32 %35, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 8, i8* %7, i32* %2)
%37 = call i32* (...) @EVP_sha256()
%38 = load i32, i32* %2
%39 = call i32 @strlen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%40 = call i32 (i32*, ...) @HMAC(i32* %37, i8* %7, i32 %38, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 %39, i8* %7, i32* %2)
%41 = call i32* (...) @EVP_sha256()
%42 = load i32, i32* %2
%43 = call i32 (i32*, ...) @HMAC(i32* %41, i8* %7, i32 %42, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 3, i8* %7, i32* %2)
%44 = call i32* (...) @EVP_sha256()
%45 = load i32, i32* %2
%46 = call i32 @strlen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
%47 = call i32 (i32*, ...) @HMAC(i32* %44, i8* %7, i32 %45, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 %46, i8* %7, i32* %2)
%48 = load i32, i32* %2
%49 = icmp sgt i32 %48, 0
br i1 %49, label %50, label %61
50: ; preds = %30, %50
%51 = phi i64 [ %57, %50 ], [ 0, %30 ]
%52 = load i32, i32* @stderr
%53 = getelementptr inbounds i8, i8* %7, i64 %51
%54 = load i8, i8* %53
%55 = zext i8 %54 to i32
%56 = call i32 (i32, i8*, ...) @fprintf(i32 %52, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %55)
%57 = add nuw nsw i64 %51, 1
%58 = load i32, i32* %2
%59 = sext i32 %58 to i64
%60 = icmp slt i64 %57, %59
br i1 %60, label %50, label %61
61: ; preds = %50, %30
%62 = load i32, i32* @stderr
%63 = call i32 (i32, i8*, ...) @fprintf(i32 %62, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}