#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 AES_wrap_unwrap_test(unsigned char const *, int, int /*<<< orphan*/ *,
                         unsigned char const *, unsigned char const *, int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int);
int /*<<< orphan*/ stderr;
int main(int argc, char **argv) {
  static const unsigned char kek[] = {
      0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a,
      0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15,
      0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f};
  static const unsigned char key[] = {
      0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xaa,
      0xbb, 0xcc, 0xdd, 0xee, 0xff, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05,
      0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f};
  static const unsigned char e1[] = {
      0x1f, 0xa6, 0x8b, 0x0a, 0x81, 0x12, 0xb4, 0x47, 0xae, 0xf3, 0x4b, 0xd8,
      0xfb, 0x5a, 0x7b, 0x82, 0x9d, 0x3e, 0x86, 0x23, 0x71, 0xd2, 0xcf, 0xe5};
  static const unsigned char e2[] = {
      0x96, 0x77, 0x8b, 0x25, 0xae, 0x6c, 0xa4, 0x35, 0xf9, 0x2b, 0x5b, 0x97,
      0xc0, 0x50, 0xae, 0xd2, 0x46, 0x8a, 0xb8, 0xa1, 0x7a, 0xd8, 0x4e, 0x5d};
  static const unsigned char e3[] = {
      0x64, 0xe8, 0xc3, 0xf9, 0xce, 0x0f, 0x5b, 0xa2, 0x63, 0xe9, 0x77, 0x79,
      0x05, 0x81, 0x8a, 0x2a, 0x93, 0xc8, 0x19, 0x1e, 0x7d, 0x6e, 0x8a, 0xe7};
  static const unsigned char e4[] = {
      0x03, 0x1d, 0x33, 0x26, 0x4e, 0x15, 0xd3, 0x32, 0x68, 0xf2, 0x4e,
      0xc2, 0x60, 0x74, 0x3e, 0xdc, 0xe1, 0xc6, 0xc7, 0xdd, 0xee, 0x72,
      0x5a, 0x93, 0x6b, 0xa8, 0x14, 0x91, 0x5c, 0x67, 0x62, 0xd2};
  static const unsigned char e5[] = {
      0xa8, 0xf9, 0xbc, 0x16, 0x12, 0xc6, 0x8b, 0x3f, 0xf6, 0xe6, 0xf4,
      0xfb, 0xe3, 0x0e, 0x71, 0xe4, 0x76, 0x9c, 0x8b, 0x80, 0xa3, 0x2c,
      0xb8, 0x95, 0x8c, 0xd5, 0xd1, 0x7d, 0x6b, 0x25, 0x4d, 0xa1};
  static const unsigned char e6[] = {
      0x28, 0xc9, 0xf4, 0x04, 0xc4, 0xb8, 0x10, 0xf4, 0xcb, 0xcc,
      0xb3, 0x5c, 0xfb, 0x87, 0xf8, 0x26, 0x3f, 0x57, 0x86, 0xe2,
      0xd8, 0x0e, 0xd3, 0x26, 0xcb, 0xc7, 0xf0, 0xe7, 0x1a, 0x99,
      0xf4, 0x3b, 0xfb, 0x98, 0x8b, 0x9b, 0x7a, 0x02, 0xdd, 0x21};
  int ret, nfailures = 0;
  ret = AES_wrap_unwrap_test(kek, 128, NULL, e1, key, 16);
  if (ret == 0)
    nfailures++;
  fprintf(stderr, "Key test result %d\n", ret);
  ret = AES_wrap_unwrap_test(kek, 192, NULL, e2, key, 16);
  if (ret == 0)
    nfailures++;
  fprintf(stderr, "Key test result %d\n", ret);
  ret = AES_wrap_unwrap_test(kek, 256, NULL, e3, key, 16);
  if (ret == 0)
    nfailures++;
  fprintf(stderr, "Key test result %d\n", ret);
  ret = AES_wrap_unwrap_test(kek, 192, NULL, e4, key, 24);
  if (ret == 0)
    nfailures++;
  fprintf(stderr, "Key test result %d\n", ret);
  ret = AES_wrap_unwrap_test(kek, 256, NULL, e5, key, 24);
  if (ret == 0)
    nfailures++;
  fprintf(stderr, "Key test result %d\n", ret);
  ret = AES_wrap_unwrap_test(kek, 256, NULL, e6, key, 32);
  if (ret == 0)
    nfailures++;
  fprintf(stderr, "Key test result %d\n", ret);
  return nfailures;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x18(%rbp)
lea    0xebc(%rip),%rdi
mov    $0x80,%esi
xor    %eax,%eax
mov    %eax,%edx
lea    0xeec(%rip),%rcx
lea    0xec5(%rip),%r8
mov    $0x10,%r9d
call   1030 <AES_wrap_unwrap_test@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    117c <main+0x5c>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    0x2e5d(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%edx
lea    0xf79(%rip),%rsi
call   1040 <fprintf@plt>
lea    0xe65(%rip),%rdi
mov    $0xc0,%esi
xor    %eax,%eax
mov    %eax,%edx
lea    0xeb5(%rip),%rcx
lea    0xe6e(%rip),%r8
mov    $0x10,%r9d
call   1030 <AES_wrap_unwrap_test@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    11d3 <main+0xb3>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    0x2e06(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%edx
lea    0xf22(%rip),%rsi
call   1040 <fprintf@plt>
lea    0xe0e(%rip),%rdi
mov    $0x100,%esi
xor    %eax,%eax
mov    %eax,%edx
lea    0xe7e(%rip),%rcx
lea    0xe17(%rip),%r8
mov    $0x10,%r9d
call   1030 <AES_wrap_unwrap_test@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    122a <main+0x10a>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    0x2daf(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%edx
lea    0xecb(%rip),%rsi
call   1040 <fprintf@plt>
lea    0xdb7(%rip),%rdi
mov    $0xc0,%esi
xor    %eax,%eax
mov    %eax,%edx
lea    0xe47(%rip),%rcx
lea    0xdc0(%rip),%r8
mov    $0x18,%r9d
call   1030 <AES_wrap_unwrap_test@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    1281 <main+0x161>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    0x2d58(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%edx
lea    0xe74(%rip),%rsi
call   1040 <fprintf@plt>
lea    0xd60(%rip),%rdi
mov    $0x100,%esi
xor    %eax,%eax
mov    %eax,%edx
lea    0xe10(%rip),%rcx
lea    0xd69(%rip),%r8
mov    $0x18,%r9d
call   1030 <AES_wrap_unwrap_test@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    12d8 <main+0x1b8>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    0x2d01(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%edx
lea    0xe1d(%rip),%rsi
call   1040 <fprintf@plt>
lea    0xd09(%rip),%rdi
mov    $0x100,%esi
xor    %eax,%eax
mov    %eax,%edx
lea    0xdd9(%rip),%rcx
lea    0xd12(%rip),%r8
mov    $0x20,%r9d
call   1030 <AES_wrap_unwrap_test@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    132f <main+0x20f>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    0x2caa(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%edx
lea    0xdc6(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x18(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xece(%rip),%r15
lea    0xf07(%rip),%rcx
lea    0xee0(%rip),%r14
mov    %r15,%rdi
mov    $0x80,%esi
xor    %edx,%edx
mov    %r14,%r8
mov    $0x10,%r9d
call   1030 <AES_wrap_unwrap_test@plt>
xor    %ebx,%ebx
test   %eax,%eax
sete   %bl
mov    0x2e7a(%rip),%r12
mov    (%r12),%edi
lea    0xf97(%rip),%r13
mov    %r13,%rsi
mov    %eax,%edx
call   1040 <fprintf@plt>
lea    0xede(%rip),%rcx
mov    %r15,%rdi
mov    $0xc0,%esi
xor    %edx,%edx
mov    %r14,%r8
mov    $0x10,%r9d
call   1030 <AES_wrap_unwrap_test@plt>
lea    0x1(%rbx),%ebp
test   %eax,%eax
cmovne %ebx,%ebp
mov    (%r12),%edi
mov    %r13,%rsi
mov    %eax,%edx
call   1040 <fprintf@plt>
lea    0xec9(%rip),%rcx
mov    %r15,%rdi
mov    $0x100,%esi
xor    %edx,%edx
mov    %r14,%r8
mov    $0x10,%r9d
call   1030 <AES_wrap_unwrap_test@plt>
cmp    $0x1,%eax
adc    $0x0,%ebp
mov    (%r12),%edi
mov    %r13,%rsi
mov    %eax,%edx
call   1040 <fprintf@plt>
lea    0xeb6(%rip),%rcx
mov    %r15,%rdi
mov    $0xc0,%esi
xor    %edx,%edx
mov    %r14,%r8
mov    $0x18,%r9d
call   1030 <AES_wrap_unwrap_test@plt>
cmp    $0x1,%eax
adc    $0x0,%ebp
mov    (%r12),%edi
mov    %r13,%rsi
mov    %eax,%edx
call   1040 <fprintf@plt>
lea    0xea3(%rip),%rcx
mov    %r15,%rdi
mov    $0x100,%esi
xor    %edx,%edx
mov    %r14,%r8
mov    $0x18,%r9d
call   1030 <AES_wrap_unwrap_test@plt>
cmp    $0x1,%eax
adc    $0x0,%ebp
mov    (%r12),%edi
mov    %r13,%rsi
mov    %eax,%edx
call   1040 <fprintf@plt>
lea    0xe90(%rip),%rcx
mov    %r15,%rdi
mov    $0x100,%esi
xor    %edx,%edx
mov    %r14,%r8
mov    $0x20,%r9d
call   1030 <AES_wrap_unwrap_test@plt>
cmp    $0x1,%eax
adc    $0x0,%ebp
mov    (%r12),%edi
mov    %r13,%rsi
mov    %eax,%edx
call   1040 <fprintf@plt>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@main.kek = internal constant [32 x i8] c"\00\01\02\03\04\05\06\07\08\09\0A\0B\0C\0D\0E\0F\10\11\12\13\14\15\16\17\18\19\1A\1B\1C\1D\1E\1F"
@main.key = internal constant [32 x i8] c"\00\11\223DUfw\88\99\AA\BB\CC\DD\EE\FF\00\01\02\03\04\05\06\07\08\09\0A\0B\0C\0D\0E\0F"
@main.e1 = internal constant [24 x i8] c"\1F\A6\8B\0A\81\12\B4G\AE\F3K\D8\FBZ{\82\9D>\86#q\D2\CF\E5"
@main.e2 = internal constant [24 x i8] c"\96w\8B%\AEl\A45\F9+[\97\C0P\AE\D2F\8A\B8\A1z\D8N]"
@main.e3 = internal constant [24 x i8] c"d\E8\C3\F9\CE\0F[\A2c\E9wy\05\81\8A*\93\C8\19\1E}n\8A\E7"
@main.e4 = internal constant [32 x i8] c"\03\1D3&N\15\D32h\F2N\C2`t>\DC\E1\C6\C7\DD\EErZ\93k\A8\14\91\\gb\D2"
@main.e5 = internal constant [32 x i8] c"\A8\F9\BC\16\12\C6\8B?\F6\E6\F4\FB\E3\0Eq\E4v\9C\8B\80\A3,\B8\95\8C\D5\D1}k%M\A1"
@main.e6 = internal constant [40 x i8] c"(\C9\F4\04\C4\B8\10\F4\CB\CC\B3\\\FB\87\F8&?W\86\E2\D8\0E\D3&\CB\C7\F0\E7\1A\99\F4;\FB\98\8B\9Bz\02\DD!"
@stderr = global i32 0
@.str = [20 x i8] c"Key test result %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %7
%8 = call i32 @AES_wrap_unwrap_test(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.kek, i64 0, i64 0), i32 128, i32* null, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @main.e1, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.key, i64 0, i64 0), i32 16)
store i32 %8, i32* %6
%9 = load i32, i32* %6
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = load i32, i32* %7
%13 = add nsw i32 %12, 1
store i32 %13, i32* %7
br label %14
14: ; preds = %11, %2
%15 = load i32, i32* @stderr
%16 = load i32, i32* %6
%17 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %16)
%18 = call i32 @AES_wrap_unwrap_test(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.kek, i64 0, i64 0), i32 192, i32* null, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @main.e2, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.key, i64 0, i64 0), i32 16)
store i32 %18, i32* %6
%19 = load i32, i32* %6
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %14
%22 = load i32, i32* %7
%23 = add nsw i32 %22, 1
store i32 %23, i32* %7
br label %24
24: ; preds = %21, %14
%25 = load i32, i32* @stderr
%26 = load i32, i32* %6
%27 = call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %26)
%28 = call i32 @AES_wrap_unwrap_test(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.kek, i64 0, i64 0), i32 256, i32* null, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @main.e3, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.key, i64 0, i64 0), i32 16)
store i32 %28, i32* %6
%29 = load i32, i32* %6
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %24
%32 = load i32, i32* %7
%33 = add nsw i32 %32, 1
store i32 %33, i32* %7
br label %34
34: ; preds = %31, %24
%35 = load i32, i32* @stderr
%36 = load i32, i32* %6
%37 = call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %36)
%38 = call i32 @AES_wrap_unwrap_test(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.kek, i64 0, i64 0), i32 192, i32* null, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.e4, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.key, i64 0, i64 0), i32 24)
store i32 %38, i32* %6
%39 = load i32, i32* %6
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %34
%42 = load i32, i32* %7
%43 = add nsw i32 %42, 1
store i32 %43, i32* %7
br label %44
44: ; preds = %41, %34
%45 = load i32, i32* @stderr
%46 = load i32, i32* %6
%47 = call i32 @fprintf(i32 %45, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %46)
%48 = call i32 @AES_wrap_unwrap_test(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.kek, i64 0, i64 0), i32 256, i32* null, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.e5, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.key, i64 0, i64 0), i32 24)
store i32 %48, i32* %6
%49 = load i32, i32* %6
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %54
51: ; preds = %44
%52 = load i32, i32* %7
%53 = add nsw i32 %52, 1
store i32 %53, i32* %7
br label %54
54: ; preds = %51, %44
%55 = load i32, i32* @stderr
%56 = load i32, i32* %6
%57 = call i32 @fprintf(i32 %55, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %56)
%58 = call i32 @AES_wrap_unwrap_test(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.kek, i64 0, i64 0), i32 256, i32* null, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @main.e6, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.key, i64 0, i64 0), i32 32)
store i32 %58, i32* %6
%59 = load i32, i32* %6
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %64
61: ; preds = %54
%62 = load i32, i32* %7
%63 = add nsw i32 %62, 1
store i32 %63, i32* %7
br label %64
64: ; preds = %61, %54
%65 = load i32, i32* @stderr
%66 = load i32, i32* %6
%67 = call i32 @fprintf(i32 %65, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %66)
%68 = load i32, i32* %7
ret i32 %68
}

LLVM IR (-O2):
@main.kek = internal constant [32 x i8] c"\00\01\02\03\04\05\06\07\08\09\0A\0B\0C\0D\0E\0F\10\11\12\13\14\15\16\17\18\19\1A\1B\1C\1D\1E\1F"
@main.key = internal constant [32 x i8] c"\00\11\223DUfw\88\99\AA\BB\CC\DD\EE\FF\00\01\02\03\04\05\06\07\08\09\0A\0B\0C\0D\0E\0F"
@main.e1 = internal constant [24 x i8] c"\1F\A6\8B\0A\81\12\B4G\AE\F3K\D8\FBZ{\82\9D>\86#q\D2\CF\E5"
@main.e2 = internal constant [24 x i8] c"\96w\8B%\AEl\A45\F9+[\97\C0P\AE\D2F\8A\B8\A1z\D8N]"
@main.e3 = internal constant [24 x i8] c"d\E8\C3\F9\CE\0F[\A2c\E9wy\05\81\8A*\93\C8\19\1E}n\8A\E7"
@main.e4 = internal constant [32 x i8] c"\03\1D3&N\15\D32h\F2N\C2`t>\DC\E1\C6\C7\DD\EErZ\93k\A8\14\91\\gb\D2"
@main.e5 = internal constant [32 x i8] c"\A8\F9\BC\16\12\C6\8B?\F6\E6\F4\FB\E3\0Eq\E4v\9C\8B\80\A3,\B8\95\8C\D5\D1}k%M\A1"
@main.e6 = internal constant [40 x i8] c"(\C9\F4\04\C4\B8\10\F4\CB\CC\B3\\\FB\87\F8&?W\86\E2\D8\0E\D3&\CB\C7\F0\E7\1A\99\F4;\FB\98\8B\9Bz\02\DD!"
@stderr = global i32 0
@.str = [20 x i8] c"Key test result %d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @AES_wrap_unwrap_test(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.kek, i64 0, i64 0), i32 128, i32* null, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @main.e1, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.key, i64 0, i64 0), i32 16)
%4 = icmp eq i32 %3, 0
%5 = zext i1 %4 to i32
%6 = load i32, i32* @stderr
%7 = tail call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %3)
%8 = tail call i32 @AES_wrap_unwrap_test(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.kek, i64 0, i64 0), i32 192, i32* null, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @main.e2, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.key, i64 0, i64 0), i32 16)
%9 = icmp eq i32 %8, 0
%10 = select i1 %4, i32 2, i32 1
%11 = select i1 %9, i32 %10, i32 %5
%12 = load i32, i32* @stderr
%13 = tail call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %8)
%14 = tail call i32 @AES_wrap_unwrap_test(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.kek, i64 0, i64 0), i32 256, i32* null, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @main.e3, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.key, i64 0, i64 0), i32 16)
%15 = icmp eq i32 %14, 0
%16 = zext i1 %15 to i32
%17 = add nuw nsw i32 %11, %16
%18 = load i32, i32* @stderr
%19 = tail call i32 @fprintf(i32 %18, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %14)
%20 = tail call i32 @AES_wrap_unwrap_test(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.kek, i64 0, i64 0), i32 192, i32* null, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.e4, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.key, i64 0, i64 0), i32 24)
%21 = icmp eq i32 %20, 0
%22 = zext i1 %21 to i32
%23 = add nuw nsw i32 %17, %22
%24 = load i32, i32* @stderr
%25 = tail call i32 @fprintf(i32 %24, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %20)
%26 = tail call i32 @AES_wrap_unwrap_test(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.kek, i64 0, i64 0), i32 256, i32* null, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.e5, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.key, i64 0, i64 0), i32 24)
%27 = icmp eq i32 %26, 0
%28 = zext i1 %27 to i32
%29 = add nuw nsw i32 %23, %28
%30 = load i32, i32* @stderr
%31 = tail call i32 @fprintf(i32 %30, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %26)
%32 = tail call i32 @AES_wrap_unwrap_test(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.kek, i64 0, i64 0), i32 256, i32* null, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @main.e6, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @main.key, i64 0, i64 0), i32 32)
%33 = icmp eq i32 %32, 0
%34 = zext i1 %33 to i32
%35 = add nuw nsw i32 %29, %34
%36 = load i32, i32* @stderr
%37 = tail call i32 @fprintf(i32 %36, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %32)
ret i32 %35
}