#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*/ msg;
typedef int /*<<< orphan*/ EVP_PKEY;
typedef int /*<<< orphan*/ EVP_CIPHER_CTX;
typedef int /*<<< orphan*/ EVP_CIPHER;

/* Variables and functions */
int /*<<< orphan*/ EVP_CIPHER_CTX_free(int /*<<< orphan*/ *);
int /*<<< orphan*/ *EVP_CIPHER_CTX_new();
int EVP_MAX_IV_LENGTH;
int /*<<< orphan*/ EVP_OpenFinal(int /*<<< orphan*/ *, unsigned char *, int *);
int /*<<< orphan*/ EVP_OpenInit(int /*<<< orphan*/ *,
                                int /*<<< orphan*/ const *, unsigned char *,
                                int, unsigned char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ EVP_OpenUpdate(int /*<<< orphan*/ *, unsigned char *, int *,
                                  unsigned char *, int);
int /*<<< orphan*/ EVP_PKEY_free(int /*<<< orphan*/ *);
int /*<<< orphan*/ EVP_PKEY_size(int /*<<< orphan*/ *);
int /*<<< orphan*/ EVP_SealFinal(int /*<<< orphan*/ *, unsigned char *, int *);
int /*<<< orphan*/ EVP_SealInit(int /*<<< orphan*/ *,
                                int /*<<< orphan*/ const *, unsigned char **,
                                int *, unsigned char *, int /*<<< orphan*/ **,
                                int);
int /*<<< orphan*/ EVP_SealUpdate(int /*<<< orphan*/ *, unsigned char *, int *,
                                  unsigned char const *, int);
int /*<<< orphan*/ *EVP_aes_256_cbc();
int /*<<< orphan*/ OPENSSL_free(unsigned char *);
unsigned char *OPENSSL_zalloc(int /*<<< orphan*/);
int /*<<< orphan*/ *load_example_rsa_key();
scalar_t__ memcmp(unsigned char const *, unsigned char *, int);
int test_EVP_Enveloped(void) {
  int ret = 0;
  EVP_CIPHER_CTX *ctx = NULL;
  EVP_PKEY *keypair = NULL;
  unsigned char *kek = NULL;
  int kek_len;
  unsigned char iv[EVP_MAX_IV_LENGTH];
  static const unsigned char msg[] = {1, 2, 3, 4, 5, 6, 7, 8};
  int len, ciphertext_len, plaintext_len;
  unsigned char ciphertext[32], plaintext[16];
  const EVP_CIPHER *type = EVP_aes_256_cbc();
  if ((keypair = load_example_rsa_key()) == NULL ||
      (kek = OPENSSL_zalloc(EVP_PKEY_size(keypair))) == NULL ||
      (ctx = EVP_CIPHER_CTX_new()) == NULL ||
      !EVP_SealInit(ctx, type, &kek, &kek_len, iv, &keypair, 1) ||
      !EVP_SealUpdate(ctx, ciphertext, &ciphertext_len, msg, sizeof(msg)) ||
      !EVP_SealFinal(ctx, ciphertext + ciphertext_len, &len))
    goto err;
  ciphertext_len += len;
  if (!EVP_OpenInit(ctx, type, kek, kek_len, iv, keypair) ||
      !EVP_OpenUpdate(ctx, plaintext, &plaintext_len, ciphertext,
                      ciphertext_len) ||
      !EVP_OpenFinal(ctx, plaintext + plaintext_len, &len) ||
      (plaintext_len += len) != sizeof(msg) ||
      memcmp(msg, plaintext, sizeof(msg)) != 0)
    goto err;
  ret = 1;
err:
  OPENSSL_free(kek);
  EVP_PKEY_free(keypair);
  EVP_CIPHER_CTX_free(ctx);
  return ret;
}


x86 assembly (clang, -O0):
<test_EVP_Enveloped>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x0,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
mov    0x2dc7(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rcx
mov    %rcx,-0x30(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x90(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x38(%rbp)
mov    $0x0,%al
call   1040 <EVP_aes_256_cbc@plt>
mov    %rax,-0x88(%rbp)
mov    $0x0,%al
call   1100 <load_example_rsa_key@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
je     1322 <test_EVP_Enveloped+0x132>
mov    -0x18(%rbp),%rdi
call   10c0 <EVP_PKEY_size@plt>
mov    %eax,%edi
call   1070 <OPENSSL_zalloc@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
je     1322 <test_EVP_Enveloped+0x132>
mov    $0x0,%al
call   10d0 <EVP_CIPHER_CTX_new@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
je     1322 <test_EVP_Enveloped+0x132>
mov    -0x90(%rbp),%r8
mov    -0x10(%rbp),%rdi
mov    -0x88(%rbp),%rsi
lea    -0x20(%rbp),%rdx
lea    -0x24(%rbp),%rcx
lea    -0x18(%rbp),%r9
sub    $0x10,%rsp
movl   $0x1,(%rsp)
call   1060 <EVP_SealInit@plt>
add    $0x10,%rsp
cmp    $0x0,%eax
je     1322 <test_EVP_Enveloped+0x132>
mov    -0x10(%rbp),%rdi
lea    -0x70(%rbp),%rsi
lea    -0x40(%rbp),%rdx
lea    0xd13(%rip),%rcx
mov    $0x8,%r8d
call   10e0 <EVP_SealUpdate@plt>
cmp    $0x0,%eax
je     1322 <test_EVP_Enveloped+0x132>
mov    -0x10(%rbp),%rdi
lea    -0x70(%rbp),%rsi
movslq -0x40(%rbp),%rax
add    %rax,%rsi
lea    -0x3c(%rbp),%rdx
call   1030 <EVP_SealFinal@plt>
cmp    $0x0,%eax
jne    1327 <test_EVP_Enveloped+0x137>
jmp    13de <test_EVP_Enveloped+0x1ee>
mov    -0x90(%rbp),%r8
mov    -0x3c(%rbp),%eax
add    -0x40(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x88(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x24(%rbp),%ecx
mov    -0x18(%rbp),%r9
call   10b0 <EVP_OpenInit@plt>
cmp    $0x0,%eax
je     13d2 <test_EVP_Enveloped+0x1e2>
mov    -0x10(%rbp),%rdi
lea    -0x80(%rbp),%rsi
lea    -0x70(%rbp),%rcx
mov    -0x40(%rbp),%r8d
lea    -0x44(%rbp),%rdx
call   10a0 <EVP_OpenUpdate@plt>
cmp    $0x0,%eax
je     13d2 <test_EVP_Enveloped+0x1e2>
mov    -0x10(%rbp),%rdi
lea    -0x80(%rbp),%rsi
movslq -0x44(%rbp),%rax
add    %rax,%rsi
lea    -0x3c(%rbp),%rdx
call   1110 <EVP_OpenFinal@plt>
cmp    $0x0,%eax
je     13d2 <test_EVP_Enveloped+0x1e2>
mov    -0x3c(%rbp),%eax
add    -0x44(%rbp),%eax
mov    %eax,-0x44(%rbp)
cltq
cmp    $0x8,%rax
jne    13d2 <test_EVP_Enveloped+0x1e2>
lea    -0x80(%rbp),%rsi
lea    0xc42(%rip),%rdi
mov    $0x8,%edx
call   1080 <memcmp@plt>
cmp    $0x0,%rax
je     13d7 <test_EVP_Enveloped+0x1e7>
jmp    13de <test_EVP_Enveloped+0x1ee>
movl   $0x1,-0x4(%rbp)
mov    -0x20(%rbp),%rdi
call   10f0 <OPENSSL_free@plt>
mov    -0x18(%rbp),%rdi
call   1050 <EVP_PKEY_free@plt>
mov    -0x10(%rbp),%rdi
call   1090 <EVP_CIPHER_CTX_free@plt>
mov    -0x4(%rbp),%eax
mov    -0x30(%rbp),%rcx
mov    %rcx,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_EVP_Enveloped>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %rsp,%r13
movq   $0x0,-0x40(%rbp)
mov    0x2dd5(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rbx
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
xor    %r14d,%r14d
xor    %eax,%eax
call   1040 <EVP_aes_256_cbc@plt>
mov    %rax,%r12
xor    %eax,%eax
call   1100 <load_example_rsa_key@plt>
mov    %rax,-0x48(%rbp)
test   %rax,%rax
je     1374 <test_EVP_Enveloped+0x184>
mov    %rax,%rdi
call   10c0 <EVP_PKEY_size@plt>
mov    %eax,%edi
call   1070 <OPENSSL_zalloc@plt>
mov    %rax,-0x40(%rbp)
test   %rax,%rax
je     1379 <test_EVP_Enveloped+0x189>
xor    %r14d,%r14d
xor    %eax,%eax
call   10d0 <EVP_CIPHER_CTX_new@plt>
test   %rax,%rax
je     1374 <test_EVP_Enveloped+0x184>
mov    %rax,%r15
sub    $0x8,%rsp
lea    -0x40(%rbp),%rdx
lea    -0x4c(%rbp),%rcx
lea    -0x48(%rbp),%r9
mov    %rax,%rdi
mov    %r12,%rsi
mov    %rbx,%r8
push   $0x1
call   1060 <EVP_SealInit@plt>
add    $0x10,%rsp
test   %eax,%eax
je     137f <test_EVP_Enveloped+0x18f>
lea    0xd54(%rip),%rcx
lea    -0x80(%rbp),%rsi
lea    -0x30(%rbp),%rdx
mov    %r15,%rdi
mov    $0x8,%r8d
call   10e0 <EVP_SealUpdate@plt>
test   %eax,%eax
je     137f <test_EVP_Enveloped+0x18f>
movslq -0x30(%rbp),%rax
lea    (%rax,%rbp,1),%rsi
add    $0xffffffffffffff80,%rsi
lea    -0x34(%rbp),%rdx
mov    %r15,%rdi
call   1030 <EVP_SealFinal@plt>
test   %eax,%eax
je     137f <test_EVP_Enveloped+0x18f>
mov    -0x34(%rbp),%eax
add    %eax,-0x30(%rbp)
mov    -0x40(%rbp),%rdx
mov    -0x4c(%rbp),%ecx
mov    -0x48(%rbp),%r9
mov    %r15,%rdi
mov    %r12,%rsi
mov    %rbx,%r8
call   10b0 <EVP_OpenInit@plt>
test   %eax,%eax
je     137f <test_EVP_Enveloped+0x18f>
mov    -0x30(%rbp),%r8d
lea    -0x60(%rbp),%rsi
lea    -0x2c(%rbp),%rdx
lea    -0x80(%rbp),%rcx
mov    %r15,%rdi
call   10a0 <EVP_OpenUpdate@plt>
test   %eax,%eax
je     137f <test_EVP_Enveloped+0x18f>
movslq -0x2c(%rbp),%rax
lea    (%rax,%rbp,1),%rsi
add    $0xffffffffffffffa0,%rsi
lea    -0x34(%rbp),%rdx
mov    %r15,%rdi
call   1110 <EVP_OpenFinal@plt>
test   %eax,%eax
je     137f <test_EVP_Enveloped+0x18f>
mov    -0x2c(%rbp),%eax
add    -0x34(%rbp),%eax
mov    %eax,-0x2c(%rbp)
cmp    $0x8,%eax
jne    137f <test_EVP_Enveloped+0x18f>
lea    0xca6(%rip),%rdi
lea    -0x60(%rbp),%rsi
mov    $0x8,%edx
call   1080 <memcmp@plt>
xor    %r14d,%r14d
test   %rax,%rax
sete   %r14b
jmp    137f <test_EVP_Enveloped+0x18f>
xor    %r15d,%r15d
jmp    137f <test_EVP_Enveloped+0x18f>
xor    %r15d,%r15d
xor    %r14d,%r14d
mov    -0x40(%rbp),%rdi
call   10f0 <OPENSSL_free@plt>
mov    -0x48(%rbp),%rdi
call   1050 <EVP_PKEY_free@plt>
mov    %r15,%rdi
call   1090 <EVP_CIPHER_CTX_free@plt>
mov    %r13,%rsp
mov    %r14d,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@EVP_MAX_IV_LENGTH = global i32 0
@test_EVP_Enveloped.msg = internal constant [8 x i8] c"\01\02\03\04\05\06\07\08"
define i32 @test_EVP_Enveloped() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32*
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i64
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca [32 x i8]
%12 = alloca [16 x i8]
%13 = alloca i32*
store i32 0, i32* %1
store i32* null, i32** %2
store i32* null, i32** %3
store i8* null, i8** %4
%14 = load i32, i32* @EVP_MAX_IV_LENGTH
%15 = zext i32 %14 to i64
%16 = call i8* @llvm.stacksave()
store i8* %16, i8** %6
%17 = alloca i8, i64 %15
store i64 %15, i64* %7
%18 = call i32* (...) @EVP_aes_256_cbc()
store i32* %18, i32** %13
%19 = call i32* (...) @load_example_rsa_key()
store i32* %19, i32** %3
%20 = icmp eq i32* %19, null
br i1 %20, label %47, label %21
21: ; preds = %0
%22 = load i32*, i32** %3
%23 = call i32 @EVP_PKEY_size(i32* %22)
%24 = call i8* @OPENSSL_zalloc(i32 %23)
store i8* %24, i8** %4
%25 = icmp eq i8* %24, null
br i1 %25, label %47, label %26
26: ; preds = %21
%27 = call i32* (...) @EVP_CIPHER_CTX_new()
store i32* %27, i32** %2
%28 = icmp eq i32* %27, null
br i1 %28, label %47, label %29
29: ; preds = %26
%30 = load i32*, i32** %2
%31 = load i32*, i32** %13
%32 = call i32 @EVP_SealInit(i32* %30, i32* %31, i8** %4, i32* %5, i8* %17, i32** %3, i32 1)
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %47
34: ; preds = %29
%35 = load i32*, i32** %2
%36 = getelementptr inbounds [32 x i8], [32 x i8]* %11, i64 0, i64 0
%37 = call i32 @EVP_SealUpdate(i32* %35, i8* %36, i32* %9, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @test_EVP_Enveloped.msg, i64 0, i64 0), i32 8)
%38 = icmp ne i32 %37, 0
br i1 %38, label %39, label %47
39: ; preds = %34
%40 = load i32*, i32** %2
%41 = getelementptr inbounds [32 x i8], [32 x i8]* %11, i64 0, i64 0
%42 = load i32, i32* %9
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, i8* %41, i64 %43
%45 = call i32 @EVP_SealFinal(i32* %40, i8* %44, i32* %8)
%46 = icmp ne i32 %45, 0
br i1 %46, label %48, label %47
47: ; preds = %39, %34, %29, %26, %21, %0
br label %86
48: ; preds = %39
%49 = load i32, i32* %8
%50 = load i32, i32* %9
%51 = add nsw i32 %50, %49
store i32 %51, i32* %9
%52 = load i32*, i32** %2
%53 = load i32*, i32** %13
%54 = load i8*, i8** %4
%55 = load i32, i32* %5
%56 = load i32*, i32** %3
%57 = call i32 @EVP_OpenInit(i32* %52, i32* %53, i8* %54, i32 %55, i8* %17, i32* %56)
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %84
59: ; preds = %48
%60 = load i32*, i32** %2
%61 = getelementptr inbounds [16 x i8], [16 x i8]* %12, i64 0, i64 0
%62 = getelementptr inbounds [32 x i8], [32 x i8]* %11, i64 0, i64 0
%63 = load i32, i32* %9
%64 = call i32 @EVP_OpenUpdate(i32* %60, i8* %61, i32* %10, i8* %62, i32 %63)
%65 = icmp ne i32 %64, 0
br i1 %65, label %66, label %84
66: ; preds = %59
%67 = load i32*, i32** %2
%68 = getelementptr inbounds [16 x i8], [16 x i8]* %12, i64 0, i64 0
%69 = load i32, i32* %10
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, i8* %68, i64 %70
%72 = call i32 @EVP_OpenFinal(i32* %67, i8* %71, i32* %8)
%73 = icmp ne i32 %72, 0
br i1 %73, label %74, label %84
74: ; preds = %66
%75 = load i32, i32* %8
%76 = load i32, i32* %10
%77 = add nsw i32 %76, %75
store i32 %77, i32* %10
%78 = sext i32 %77 to i64
%79 = icmp ne i64 %78, 8
br i1 %79, label %84, label %80
80: ; preds = %74
%81 = getelementptr inbounds [16 x i8], [16 x i8]* %12, i64 0, i64 0
%82 = call i64 @memcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @test_EVP_Enveloped.msg, i64 0, i64 0), i8* %81, i32 8)
%83 = icmp ne i64 %82, 0
br i1 %83, label %84, label %85
84: ; preds = %80, %74, %66, %59, %48
br label %86
85: ; preds = %80
store i32 1, i32* %1
br label %86
86: ; preds = %85, %84, %47
%87 = load i8*, i8** %4
%88 = call i32 @OPENSSL_free(i8* %87)
%89 = load i32*, i32** %3
%90 = call i32 @EVP_PKEY_free(i32* %89)
%91 = load i32*, i32** %2
%92 = call i32 @EVP_CIPHER_CTX_free(i32* %91)
%93 = load i32, i32* %1
%94 = load i8*, i8** %6
ret i32 %93
}

LLVM IR (-O2):
@EVP_MAX_IV_LENGTH = global i32 0
@test_EVP_Enveloped.msg = internal constant [8 x i8] c"\01\02\03\04\05\06\07\08"
define i32 @test_EVP_Enveloped() {
%1 = alloca i32*
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca [32 x i8]
%8 = alloca [16 x i8]
%9 = bitcast i32** %1 to i8*
%10 = bitcast i8** %2 to i8*
store i8* null, i8** %2
%11 = bitcast i32* %3 to i8*
%12 = load i32, i32* @EVP_MAX_IV_LENGTH
%13 = zext i32 %12 to i64
%14 = tail call i8* @llvm.stacksave()
%15 = alloca i8, i64 %13
%16 = bitcast i32* %4 to i8*
%17 = bitcast i32* %5 to i8*
%18 = bitcast i32* %6 to i8*
%19 = getelementptr inbounds [32 x i8], [32 x i8]* %7, i64 0, i64 0
%20 = getelementptr inbounds [16 x i8], [16 x i8]* %8, i64 0, i64 0
%21 = tail call i32* (...) @EVP_aes_256_cbc()
%22 = tail call i32* (...) @load_example_rsa_key()
store i32* %22, i32** %1
%23 = icmp eq i32* %22, null
br i1 %23, label %71, label %24
24: ; preds = %0
%25 = tail call i32 @EVP_PKEY_size(i32* %22)
%26 = tail call i8* @OPENSSL_zalloc(i32 %25)
store i8* %26, i8** %2
%27 = icmp eq i8* %26, null
br i1 %27, label %71, label %28
28: ; preds = %24
%29 = tail call i32* (...) @EVP_CIPHER_CTX_new()
%30 = icmp eq i32* %29, null
br i1 %30, label %71, label %31
31: ; preds = %28
%32 = call i32 @EVP_SealInit(i32* %29, i32* %21, i8** %2, i32* %3, i8* %15, i32** %1, i32 1)
%33 = icmp eq i32 %32, 0
br i1 %33, label %71, label %34
34: ; preds = %31
%35 = call i32 @EVP_SealUpdate(i32* %29, i8* %19, i32* %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @test_EVP_Enveloped.msg, i64 0, i64 0), i32 8)
%36 = icmp eq i32 %35, 0
br i1 %36, label %71, label %37
37: ; preds = %34
%38 = load i32, i32* %5
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [32 x i8], [32 x i8]* %7, i64 0, i64 %39
%41 = call i32 @EVP_SealFinal(i32* %29, i8* %40, i32* %4)
%42 = icmp eq i32 %41, 0
br i1 %42, label %71, label %43
43: ; preds = %37
%44 = load i32, i32* %4
%45 = load i32, i32* %5
%46 = add nsw i32 %45, %44
store i32 %46, i32* %5
%47 = load i8*, i8** %2
%48 = load i32, i32* %3
%49 = load i32*, i32** %1
%50 = call i32 @EVP_OpenInit(i32* %29, i32* %21, i8* %47, i32 %48, i8* %15, i32* %49)
%51 = icmp eq i32 %50, 0
br i1 %51, label %71, label %52
52: ; preds = %43
%53 = load i32, i32* %5
%54 = call i32 @EVP_OpenUpdate(i32* %29, i8* %20, i32* %6, i8* %19, i32 %53)
%55 = icmp eq i32 %54, 0
br i1 %55, label %71, label %56
56: ; preds = %52
%57 = load i32, i32* %6
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [16 x i8], [16 x i8]* %8, i64 0, i64 %58
%60 = call i32 @EVP_OpenFinal(i32* %29, i8* %59, i32* %4)
%61 = icmp eq i32 %60, 0
br i1 %61, label %71, label %62
62: ; preds = %56
%63 = load i32, i32* %4
%64 = load i32, i32* %6
%65 = add nsw i32 %64, %63
store i32 %65, i32* %6
%66 = icmp eq i32 %65, 8
br i1 %66, label %67, label %71
67: ; preds = %62
%68 = call i64 @memcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @test_EVP_Enveloped.msg, i64 0, i64 0), i8* %20, i32 8)
%69 = icmp eq i64 %68, 0
%70 = zext i1 %69 to i32
br label %71
71: ; preds = %67, %43, %52, %56, %62, %0, %24, %28, %31, %34, %37
%72 = phi i32* [ null, %0 ], [ null, %24 ], [ null, %28 ], [ %29, %62 ], [ %29, %56 ], [ %29, %52 ], [ %29, %43 ], [ %29, %37 ], [ %29, %34 ], [ %29, %31 ], [ %29, %67 ]
%73 = phi i32 [ 0, %0 ], [ 0, %24 ], [ 0, %28 ], [ 0, %62 ], [ 0, %56 ], [ 0, %52 ], [ 0, %43 ], [ 0, %37 ], [ 0, %34 ], [ 0, %31 ], [ %70, %67 ]
%74 = load i8*, i8** %2
%75 = call i32 @OPENSSL_free(i8* %74)
%76 = load i32*, i32** %1
%77 = call i32 @EVP_PKEY_free(i32* %76)
%78 = call i32 @EVP_CIPHER_CTX_free(i32* %72)
ret i32 %73
}