#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*/ acorn128_dec_onebyte(unsigned char *, unsigned char *,
                                        unsigned char const, unsigned char *,
                                        int, int /*<<< orphan*/);
int /*<<< orphan*/ acorn128_enc_onebyte(unsigned char *, unsigned char const,
                                        unsigned char *, unsigned char *,
                                        unsigned char, unsigned char);
int /*<<< orphan*/ acorn128_initialization(unsigned char const *,
                                           unsigned char const *,
                                           unsigned char *);
int /*<<< orphan*/ acorn128_tag_generation(unsigned long long,
                                           unsigned long long, int,
                                           unsigned char *, unsigned char *);
int crypto_aead_decrypt(unsigned char *m, unsigned long long *mlen,
                        unsigned char *nsec, const unsigned char *c,
                        unsigned long long clen, const unsigned char *ad,
                        unsigned long long adlen, const unsigned char *npub,
                        const unsigned char *k) {
  unsigned long i;
  unsigned char plaintextbyte, ciphertextbyte, ksbyte;
  unsigned char state[293];
  unsigned char tag[16];
  unsigned char check = 0;
  unsigned char ca, cb;
  if (clen < 16)
    return -1;
  acorn128_initialization(k, npub, state);
  for (i = 0; i < adlen; i++) {
    acorn128_enc_onebyte(state, ad[i], &ciphertextbyte, &ksbyte, 0xff, 0xff);
  }
  for (i = 0; i < 512 / 8; i++) {
    if (i == 0)
      plaintextbyte = 1;
    else
      plaintextbyte = 0;
    if (i < 256 / 8)
      ca = 0xff;
    else
      ca = 0;
    cb = 0xff;
    acorn128_enc_onebyte(state, plaintextbyte, &ciphertextbyte, &ksbyte, ca,
                         cb);
  }
  *mlen = clen - 16;
  for (i = 0; i < *mlen; i++) {
    acorn128_dec_onebyte(state, &m[i], c[i], &ksbyte, 0xff, 0);
  }
  for (i = 0; i < 512 / 8; i++) {
    if (i == 0)
      plaintextbyte = 1;
    else
      plaintextbyte = 0;
    if (i < 256 / 8)
      ca = 0xff;
    else
      ca = 0;
    cb = 0;
    acorn128_enc_onebyte(state, plaintextbyte, &ciphertextbyte, &ksbyte, ca,
                         cb);
  }
  acorn128_tag_generation(*mlen, adlen, 16, tag, state);
  for (i = 0; i < 16; i++)
    check |= (tag[i] ^ c[clen - 16 + i]);
  if (check == 0)
    return 0;
  else
    return -1;
}


x86 assembly (clang, -O0):
<crypto_aead_decrypt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x190,%rsp
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
movb   $0x0,-0x181(%rbp)
cmpq   $0x10,-0x30(%rbp)
jae    118d <crypto_aead_decrypt+0x4d>
movl   $0xffffffff,-0x4(%rbp)
jmp    1410 <crypto_aead_decrypt+0x2d0>
mov    0x20(%rbp),%rdi
mov    0x18(%rbp),%rsi
lea    -0x170(%rbp),%rdx
call   1060 <acorn128_initialization@plt>
movq   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%rax
cmp    0x10(%rbp),%rax
jae    11f1 <crypto_aead_decrypt+0xb1>
lea    -0x170(%rbp),%rdi
mov    -0x38(%rbp),%rax
mov    -0x40(%rbp),%rsi
lea    -0x42(%rbp),%rdx
lea    -0x43(%rbp),%rcx
mov    $0xff,%r9d
movzbl (%rax,%rsi,1),%esi
mov    %r9d,%r8d
call   1030 <acorn128_enc_onebyte@plt>
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    11a9 <crypto_aead_decrypt+0x69>
movq   $0x0,-0x40(%rbp)
cmpq   $0x40,-0x40(%rbp)
jae    1280 <crypto_aead_decrypt+0x140>
cmpq   $0x0,-0x40(%rbp)
jne    1218 <crypto_aead_decrypt+0xd8>
movb   $0x1,-0x41(%rbp)
jmp    121c <crypto_aead_decrypt+0xdc>
movb   $0x0,-0x41(%rbp)
cmpq   $0x20,-0x40(%rbp)
jae    1233 <crypto_aead_decrypt+0xf3>
movb   $0xff,-0x182(%rbp)
jmp    123a <crypto_aead_decrypt+0xfa>
movb   $0x0,-0x182(%rbp)
movb   $0xff,-0x183(%rbp)
lea    -0x170(%rbp),%rdi
mov    -0x41(%rbp),%sil
mov    -0x182(%rbp),%al
lea    -0x42(%rbp),%rdx
lea    -0x43(%rbp),%rcx
movzbl %sil,%esi
movzbl %al,%r8d
movzbl -0x183(%rbp),%r9d
ff
call   1030 <acorn128_enc_onebyte@plt>
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    11f9 <crypto_aead_decrypt+0xb9>
mov    -0x30(%rbp),%rcx
sub    $0x10,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
movq   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%rax
mov    -0x18(%rbp),%rcx
cmp    (%rcx),%rax
jae    12e6 <crypto_aead_decrypt+0x1a6>
lea    -0x170(%rbp),%rdi
mov    -0x10(%rbp),%rsi
add    -0x40(%rbp),%rsi
mov    -0x28(%rbp),%rax
mov    -0x40(%rbp),%rdx
lea    -0x43(%rbp),%rcx
mov    $0xff,%r8d
xor    %r9d,%r9d
movzbl (%rax,%rdx,1),%edx
call   1050 <acorn128_dec_onebyte@plt>
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    1297 <crypto_aead_decrypt+0x157>
movq   $0x0,-0x40(%rbp)
cmpq   $0x40,-0x40(%rbp)
jae    1375 <crypto_aead_decrypt+0x235>
cmpq   $0x0,-0x40(%rbp)
jne    130d <crypto_aead_decrypt+0x1cd>
movb   $0x1,-0x41(%rbp)
jmp    1311 <crypto_aead_decrypt+0x1d1>
movb   $0x0,-0x41(%rbp)
cmpq   $0x20,-0x40(%rbp)
jae    1328 <crypto_aead_decrypt+0x1e8>
movb   $0xff,-0x182(%rbp)
jmp    132f <crypto_aead_decrypt+0x1ef>
movb   $0x0,-0x182(%rbp)
movb   $0x0,-0x183(%rbp)
lea    -0x170(%rbp),%rdi
mov    -0x41(%rbp),%sil
mov    -0x182(%rbp),%al
lea    -0x42(%rbp),%rdx
lea    -0x43(%rbp),%rcx
movzbl %sil,%esi
movzbl %al,%r8d
movzbl -0x183(%rbp),%r9d
ff
call   1030 <acorn128_enc_onebyte@plt>
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    12ee <crypto_aead_decrypt+0x1ae>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
mov    0x10(%rbp),%rsi
lea    -0x180(%rbp),%rcx
lea    -0x170(%rbp),%r8
mov    $0x10,%edx
call   1040 <acorn128_tag_generation@plt>
movq   $0x0,-0x40(%rbp)
cmpq   $0x10,-0x40(%rbp)
jae    13ed <crypto_aead_decrypt+0x2ad>
mov    -0x40(%rbp),%rax
movzbl -0x180(%rbp,%rax,1),%ecx
ff
mov    -0x28(%rbp),%rax
mov    -0x30(%rbp),%rdx
sub    $0x10,%rdx
add    -0x40(%rbp),%rdx
movzbl (%rax,%rdx,1),%eax
xor    %eax,%ecx
movzbl -0x181(%rbp),%eax
or     %ecx,%eax
mov    %al,-0x181(%rbp)
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    13a0 <crypto_aead_decrypt+0x260>
movzbl -0x181(%rbp),%eax
cmp    $0x0,%eax
jne    1409 <crypto_aead_decrypt+0x2c9>
movl   $0x0,-0x4(%rbp)
jmp    1410 <crypto_aead_decrypt+0x2d0>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x190,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<crypto_aead_decrypt>:
mov    $0xffffffff,%eax
cmp    $0x10,%r8
jb     132e <crypto_aead_decrypt+0x1ee>
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x168,%rsp
mov    %r9,%rbp
mov    %rdi,0x20(%rsp)
mov    %rsi,0x18(%rsp)
mov    %rcx,0x28(%rsp)
mov    %r8,0x10(%rsp)
mov    0x1b0(%rsp),%rdi
mov    0x1a8(%rsp),%rsi
mov    0x1a0(%rsp),%r15
lea    0x40(%rsp),%rdx
call   1060 <acorn128_initialization@plt>
test   %r15,%r15
je     11d9 <crypto_aead_decrypt+0x99>
xor    %r13d,%r13d
lea    0x40(%rsp),%r14
lea    0xf(%rsp),%r12
lea    0xe(%rsp),%rbx
movzbl 0x0(%rbp,%r13,1),%esi
mov    %r14,%rdi
mov    %r12,%rdx
mov    %rbx,%rcx
mov    $0xff,%r8d
mov    $0xff,%r9d
call   1030 <acorn128_enc_onebyte@plt>
add    $0x1,%r13
cmp    %r13,%r15
jne    11b0 <crypto_aead_decrypt+0x70>
xor    %ebx,%ebx
lea    0x40(%rsp),%rbp
lea    0xf(%rsp),%r14
lea    0xe(%rsp),%r12
nopw   0x0(%rax,%rax,1)
xor    %esi,%esi
test   %rbx,%rbx
sete   %sil
cmp    $0x20,%rbx
sbb    %eax,%eax
movzbl %al,%r8d
mov    %rbp,%rdi
mov    %r14,%rdx
mov    %r12,%rcx
mov    $0xff,%r9d
call   1030 <acorn128_enc_onebyte@plt>
add    $0x1,%rbx
cmp    $0x40,%rbx
jne    11f0 <crypto_aead_decrypt+0xb0>
mov    0x10(%rsp),%rcx
add    $0xfffffffffffffff0,%rcx
mov    0x18(%rsp),%r12
mov    %rcx,%rax
mov    %rcx,0x10(%rsp)
mov    %rcx,(%r12)
mov    0x28(%rsp),%r13
mov    0x20(%rsp),%rbp
je     1288 <crypto_aead_decrypt+0x148>
xor    %ebx,%ebx
lea    0x40(%rsp),%r14
lea    0xe(%rsp),%r15
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    (%rbx,%rbp,1),%rsi
movzbl 0x0(%r13,%rbx,1),%edx
mov    %r14,%rdi
mov    %r15,%rcx
mov    $0xff,%r8d
xor    %r9d,%r9d
call   1050 <acorn128_dec_onebyte@plt>
add    $0x1,%rbx
cmp    (%r12),%rbx
jb     1260 <crypto_aead_decrypt+0x120>
xor    %ebp,%ebp
lea    0x40(%rsp),%r14
lea    0xf(%rsp),%r15
lea    0xe(%rsp),%rbx
nopl   0x0(%rax)
xor    %esi,%esi
test   %rbp,%rbp
sete   %sil
cmp    $0x20,%rbp
sbb    %eax,%eax
movzbl %al,%r8d
mov    %r14,%rdi
mov    %r15,%rdx
mov    %rbx,%rcx
xor    %r9d,%r9d
call   1030 <acorn128_enc_onebyte@plt>
add    $0x1,%rbp
cmp    $0x40,%rbp
jne    12a0 <crypto_aead_decrypt+0x160>
mov    0x18(%rsp),%rax
mov    (%rax),%rdi
lea    0x30(%rsp),%rcx
lea    0x40(%rsp),%r8
mov    0x1a0(%rsp),%rsi
mov    $0x10,%edx
call   1040 <acorn128_tag_generation@plt>
mov    0x10(%rsp),%rax
movdqu 0x0(%r13,%rax,1),%xmm0
pxor   0x30(%rsp),%xmm0
pxor   %xmm1,%xmm1
pcmpeqb %xmm0,%xmm1
pmovmskb %xmm1,%ecx
xor    %eax,%eax
cmp    $0xffff,%ecx
setne  %al
neg    %eax
add    $0x168,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @crypto_aead_decrypt(i8* %0, i64* %1, i8* %2, i8* %3, i64 %4, i8* %5, i64 %6, i8* %7, i8* %8) {
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i64*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i64
%16 = alloca i8*
%17 = alloca i64
%18 = alloca i8*
%19 = alloca i8*
%20 = alloca i64
%21 = alloca i8
%22 = alloca i8
%23 = alloca i8
%24 = alloca [293 x i8]
%25 = alloca [16 x i8]
%26 = alloca i8
%27 = alloca i8
%28 = alloca i8
store i8* %0, i8** %11
store i64* %1, i64** %12
store i8* %2, i8** %13
store i8* %3, i8** %14
store i64 %4, i64* %15
store i8* %5, i8** %16
store i64 %6, i64* %17
store i8* %7, i8** %18
store i8* %8, i8** %19
store i8 0, i8* %26
%29 = load i64, i64* %15
%30 = icmp ult i64 %29, 16
br i1 %30, label %31, label %32
31: ; preds = %9
store i32 -1, i32* %10
br label %156
32: ; preds = %9
%33 = load i8*, i8** %19
%34 = load i8*, i8** %18
%35 = getelementptr inbounds [293 x i8], [293 x i8]* %24, i64 0, i64 0
%36 = call i32 @acorn128_initialization(i8* %33, i8* %34, i8* %35)
store i64 0, i64* %20
br label %37
37: ; preds = %48, %32
%38 = load i64, i64* %20
%39 = load i64, i64* %17
%40 = icmp ult i64 %38, %39
br i1 %40, label %41, label %51
41: ; preds = %37
%42 = getelementptr inbounds [293 x i8], [293 x i8]* %24, i64 0, i64 0
%43 = load i8*, i8** %16
%44 = load i64, i64* %20
%45 = getelementptr inbounds i8, i8* %43, i64 %44
%46 = load i8, i8* %45
%47 = call i32 @acorn128_enc_onebyte(i8* %42, i8 zeroext %46, i8* %22, i8* %23, i8 zeroext -1, i8 zeroext -1)
br label %48
48: ; preds = %41
%49 = load i64, i64* %20
%50 = add i64 %49, 1
store i64 %50, i64* %20
br label %37
51: ; preds = %37
store i64 0, i64* %20
br label %52
52: ; preds = %71, %51
%53 = load i64, i64* %20
%54 = icmp ult i64 %53, 64
br i1 %54, label %55, label %74
55: ; preds = %52
%56 = load i64, i64* %20
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %59
58: ; preds = %55
store i8 1, i8* %21
br label %60
59: ; preds = %55
store i8 0, i8* %21
br label %60
60: ; preds = %59, %58
%61 = load i64, i64* %20
%62 = icmp ult i64 %61, 32
br i1 %62, label %63, label %64
63: ; preds = %60
store i8 -1, i8* %27
br label %65
64: ; preds = %60
store i8 0, i8* %27
br label %65
65: ; preds = %64, %63
store i8 -1, i8* %28
%66 = getelementptr inbounds [293 x i8], [293 x i8]* %24, i64 0, i64 0
%67 = load i8, i8* %21
%68 = load i8, i8* %27
%69 = load i8, i8* %28
%70 = call i32 @acorn128_enc_onebyte(i8* %66, i8 zeroext %67, i8* %22, i8* %23, i8 zeroext %68, i8 zeroext %69)
br label %71
71: ; preds = %65
%72 = load i64, i64* %20
%73 = add i64 %72, 1
store i64 %73, i64* %20
br label %52
74: ; preds = %52
%75 = load i64, i64* %15
%76 = sub i64 %75, 16
%77 = load i64*, i64** %12
store i64 %76, i64* %77
store i64 0, i64* %20
br label %78
78: ; preds = %93, %74
%79 = load i64, i64* %20
%80 = load i64*, i64** %12
%81 = load i64, i64* %80
%82 = icmp ult i64 %79, %81
br i1 %82, label %83, label %96
83: ; preds = %78
%84 = getelementptr inbounds [293 x i8], [293 x i8]* %24, i64 0, i64 0
%85 = load i8*, i8** %11
%86 = load i64, i64* %20
%87 = getelementptr inbounds i8, i8* %85, i64 %86
%88 = load i8*, i8** %14
%89 = load i64, i64* %20
%90 = getelementptr inbounds i8, i8* %88, i64 %89
%91 = load i8, i8* %90
%92 = call i32 @acorn128_dec_onebyte(i8* %84, i8* %87, i8 zeroext %91, i8* %23, i32 255, i32 0)
br label %93
93: ; preds = %83
%94 = load i64, i64* %20
%95 = add i64 %94, 1
store i64 %95, i64* %20
br label %78
96: ; preds = %78
store i64 0, i64* %20
br label %97
97: ; preds = %116, %96
%98 = load i64, i64* %20
%99 = icmp ult i64 %98, 64
br i1 %99, label %100, label %119
100: ; preds = %97
%101 = load i64, i64* %20
%102 = icmp eq i64 %101, 0
br i1 %102, label %103, label %104
103: ; preds = %100
store i8 1, i8* %21
br label %105
104: ; preds = %100
store i8 0, i8* %21
br label %105
105: ; preds = %104, %103
%106 = load i64, i64* %20
%107 = icmp ult i64 %106, 32
br i1 %107, label %108, label %109
108: ; preds = %105
store i8 -1, i8* %27
br label %110
109: ; preds = %105
store i8 0, i8* %27
br label %110
110: ; preds = %109, %108
store i8 0, i8* %28
%111 = getelementptr inbounds [293 x i8], [293 x i8]* %24, i64 0, i64 0
%112 = load i8, i8* %21
%113 = load i8, i8* %27
%114 = load i8, i8* %28
%115 = call i32 @acorn128_enc_onebyte(i8* %111, i8 zeroext %112, i8* %22, i8* %23, i8 zeroext %113, i8 zeroext %114)
br label %116
116: ; preds = %110
%117 = load i64, i64* %20
%118 = add i64 %117, 1
store i64 %118, i64* %20
br label %97
119: ; preds = %97
%120 = load i64*, i64** %12
%121 = load i64, i64* %120
%122 = load i64, i64* %17
%123 = getelementptr inbounds [16 x i8], [16 x i8]* %25, i64 0, i64 0
%124 = getelementptr inbounds [293 x i8], [293 x i8]* %24, i64 0, i64 0
%125 = call i32 @acorn128_tag_generation(i64 %121, i64 %122, i32 16, i8* %123, i8* %124)
store i64 0, i64* %20
br label %126
126: ; preds = %147, %119
%127 = load i64, i64* %20
%128 = icmp ult i64 %127, 16
br i1 %128, label %129, label %150
129: ; preds = %126
%130 = load i64, i64* %20
%131 = getelementptr inbounds [16 x i8], [16 x i8]* %25, i64 0, i64 %130
%132 = load i8, i8* %131
%133 = zext i8 %132 to i32
%134 = load i8*, i8** %14
%135 = load i64, i64* %15
%136 = sub i64 %135, 16
%137 = load i64, i64* %20
%138 = add i64 %136, %137
%139 = getelementptr inbounds i8, i8* %134, i64 %138
%140 = load i8, i8* %139
%141 = zext i8 %140 to i32
%142 = xor i32 %133, %141
%143 = load i8, i8* %26
%144 = zext i8 %143 to i32
%145 = or i32 %144, %142
%146 = trunc i32 %145 to i8
store i8 %146, i8* %26
br label %147
147: ; preds = %129
%148 = load i64, i64* %20
%149 = add i64 %148, 1
store i64 %149, i64* %20
br label %126
150: ; preds = %126
%151 = load i8, i8* %26
%152 = zext i8 %151 to i32
%153 = icmp eq i32 %152, 0
br i1 %153, label %154, label %155
154: ; preds = %150
store i32 0, i32* %10
br label %156
155: ; preds = %150
store i32 -1, i32* %10
br label %156
156: ; preds = %155, %154, %31
%157 = load i32, i32* %10
ret i32 %157
}

LLVM IR (-O2):
define i32 @crypto_aead_decrypt(i8* %0, i64* nocapture %1, i8* nocapture readnone %2, i8* nocapture %3, i64 %4, i8* nocapture %5, i64 %6, i8* %7, i8* %8) {
%10 = alloca i8
%11 = alloca i8
%12 = alloca [293 x i8]
%13 = alloca <16 x i8>
%14 = getelementptr inbounds [293 x i8], [293 x i8]* %12, i64 0, i64 0
%15 = getelementptr inbounds <16 x i8>, <16 x i8>* %13, i64 0, i64 0
%16 = icmp ult i64 %4, 16
br i1 %16, label %70, label %17
17: ; preds = %9
%18 = call i32 @acorn128_initialization(i8* %8, i8* %7, i8* %14)
%19 = icmp eq i64 %6, 0
br i1 %19, label %27, label %20
20: ; preds = %17, %20
%21 = phi i64 [ %25, %20 ], [ 0, %17 ]
%22 = getelementptr inbounds i8, i8* %5, i64 %21
%23 = load i8, i8* %22
%24 = call i32 @acorn128_enc_onebyte(i8* %14, i8 zeroext %23, i8* %10, i8* %11, i8 zeroext -1, i8 zeroext -1)
%25 = add nuw i64 %21, 1
%26 = icmp eq i64 %25, %6
br i1 %26, label %27, label %20
27: ; preds = %20, %17
br label %28
28: ; preds = %27, %28
%29 = phi i64 [ %35, %28 ], [ 0, %27 ]
%30 = icmp eq i64 %29, 0
%31 = zext i1 %30 to i8
%32 = icmp ult i64 %29, 32
%33 = sext i1 %32 to i8
%34 = call i32 @acorn128_enc_onebyte(i8* %14, i8 zeroext %31, i8* %10, i8* %11, i8 zeroext %33, i8 zeroext -1)
%35 = add nuw nsw i64 %29, 1
%36 = icmp eq i64 %35, 64
br i1 %36, label %37, label %28
37: ; preds = %28
%38 = add i64 %4, -16
store i64 %38, i64* %1
%39 = icmp eq i64 %38, 0
br i1 %39, label %49, label %40
40: ; preds = %37, %40
%41 = phi i64 [ %46, %40 ], [ 0, %37 ]
%42 = getelementptr inbounds i8, i8* %0, i64 %41
%43 = getelementptr inbounds i8, i8* %3, i64 %41
%44 = load i8, i8* %43
%45 = call i32 @acorn128_dec_onebyte(i8* %14, i8* %42, i8 zeroext %44, i8* %11, i32 255, i32 0)
%46 = add nuw i64 %41, 1
%47 = load i64, i64* %1
%48 = icmp ult i64 %46, %47
br i1 %48, label %40, label %49
49: ; preds = %40, %37
br label %50
50: ; preds = %49, %50
%51 = phi i64 [ %57, %50 ], [ 0, %49 ]
%52 = icmp eq i64 %51, 0
%53 = zext i1 %52 to i8
%54 = icmp ult i64 %51, 32
%55 = sext i1 %54 to i8
%56 = call i32 @acorn128_enc_onebyte(i8* %14, i8 zeroext %53, i8* %10, i8* %11, i8 zeroext %55, i8 zeroext 0)
%57 = add nuw nsw i64 %51, 1
%58 = icmp eq i64 %57, 64
br i1 %58, label %59, label %50
59: ; preds = %50
%60 = load i64, i64* %1
%61 = call i32 @acorn128_tag_generation(i64 %60, i64 %6, i32 16, i8* %15, i8* %14)
%62 = getelementptr inbounds i8, i8* %3, i64 %38
%63 = load <16 x i8>, <16 x i8>* %13
%64 = bitcast i8* %62 to <16 x i8>*
%65 = load <16 x i8>, <16 x i8>* %64
%66 = xor <16 x i8> %65, %63
%67 = call i8 @llvm.vector.reduce.or.v16i8(<16 x i8> %66)
%68 = icmp ne i8 %67, 0
%69 = sext i1 %68 to i32
br label %70
70: ; preds = %59, %9
%71 = phi i32 [ -1, %9 ], [ %69, %59 ]
ret i32 %71
}