#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 unsigned long BF_LONG;
typedef int /*<<< orphan*/ BF_KEY;

/* Variables and functions */
int /*<<< orphan*/ BF_encrypt(unsigned long *, int /*<<< orphan*/ *);
void cfb64_encrypt(const unsigned char *in, unsigned char *out, long length,
                   BF_KEY *schedule, unsigned char *ivec, int *num,
                   int encrypt) {
  register BF_LONG v0, v1, t;
  register int n = *num;
  register long l = length;
  BF_LONG ti[2];
  unsigned char *iv, c, cc;
  iv = (unsigned char *)ivec;
  while (l--) {
    if (n == 0) {
      (v0 = ((unsigned long)(*((iv)++))) << 24L,
       v0 |= ((unsigned long)(*((iv)++))) << 16L,
       v0 |= ((unsigned long)(*((iv)++))) << 8L,
       v0 |= ((unsigned long)(*((iv)++))));
      ti[0] = v0;
      (v1 = ((unsigned long)(*((iv)++))) << 24L,
       v1 |= ((unsigned long)(*((iv)++))) << 16L,
       v1 |= ((unsigned long)(*((iv)++))) << 8L,
       v1 |= ((unsigned long)(*((iv)++))));
      ti[1] = v1;
      BF_encrypt((BF_LONG *)ti, schedule);
      iv = (unsigned char *)ivec;
      t = ti[0];
      (*((iv)++) = (unsigned char)(((t) >> 24L) & 0xff),
       *((iv)++) = (unsigned char)(((t) >> 16L) & 0xff),
       *((iv)++) = (unsigned char)(((t) >> 8L) & 0xff),
       *((iv)++) = (unsigned char)(((t)) & 0xff));
      t = ti[1];
      (*((iv)++) = (unsigned char)(((t) >> 24L) & 0xff),
       *((iv)++) = (unsigned char)(((t) >> 16L) & 0xff),
       *((iv)++) = (unsigned char)(((t) >> 8L) & 0xff),
       *((iv)++) = (unsigned char)(((t)) & 0xff));
      iv = (unsigned char *)ivec;
    }
    c = *(in++) ^ iv[n];
    *(out++) = c;
    iv[n] = c;
    n = (n + 1) & 0x07;
  }
  v0 = v1 = ti[0] = ti[1] = t = c = cc = 0;
  *num = n;
}


x86 assembly (clang, -O0):
<cfb64_encrypt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,%rcx
add    $0xffffffffffffffff,%rcx
mov    %rcx,-0x58(%rbp)
cmp    $0x0,%rax
je     13e5 <cfb64_encrypt+0x2d5>
cmpl   $0x0,-0x4c(%rbp)
jne    138f <cfb64_encrypt+0x27f>
mov    -0x78(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x78(%rbp)
movzbl (%rax),%eax
shl    $0x18,%rax
mov    %rax,-0x38(%rbp)
mov    -0x78(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x78(%rbp)
movzbl (%rax),%eax
shl    $0x10,%rax
or     -0x38(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x78(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x78(%rbp)
movzbl (%rax),%eax
shl    $0x8,%rax
or     -0x38(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x78(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x78(%rbp)
movzbl (%rax),%eax
or     -0x38(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x78(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x78(%rbp)
movzbl (%rax),%eax
shl    $0x18,%rax
mov    %rax,-0x40(%rbp)
mov    -0x78(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x78(%rbp)
movzbl (%rax),%eax
shl    $0x10,%rax
or     -0x40(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x78(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x78(%rbp)
movzbl (%rax),%eax
shl    $0x8,%rax
or     -0x40(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x78(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x78(%rbp)
movzbl (%rax),%eax
or     -0x40(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x68(%rbp)
lea    -0x70(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1030 <BF_encrypt@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x70(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
shr    $0x18,%rax
and    $0xff,%rax
mov    %al,%cl
mov    -0x78(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x78(%rbp)
mov    %cl,(%rax)
mov    -0x48(%rbp),%rax
shr    $0x10,%rax
and    $0xff,%rax
mov    %al,%cl
mov    -0x78(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x78(%rbp)
mov    %cl,(%rax)
mov    -0x48(%rbp),%rax
shr    $0x8,%rax
and    $0xff,%rax
mov    %al,%cl
mov    -0x78(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x78(%rbp)
mov    %cl,(%rax)
mov    -0x48(%rbp),%rax
and    $0xff,%rax
mov    %al,%cl
mov    -0x78(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x78(%rbp)
mov    %cl,(%rax)
mov    -0x68(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
shr    $0x18,%rax
and    $0xff,%rax
mov    %al,%cl
mov    -0x78(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x78(%rbp)
mov    %cl,(%rax)
mov    -0x48(%rbp),%rax
shr    $0x10,%rax
and    $0xff,%rax
mov    %al,%cl
mov    -0x78(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x78(%rbp)
mov    %cl,(%rax)
mov    -0x48(%rbp),%rax
shr    $0x8,%rax
and    $0xff,%rax
mov    %al,%cl
mov    -0x78(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x78(%rbp)
mov    %cl,(%rax)
mov    -0x48(%rbp),%rax
and    $0xff,%rax
mov    %al,%cl
mov    -0x78(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x78(%rbp)
mov    %cl,(%rax)
mov    -0x28(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movzbl (%rax),%eax
mov    -0x78(%rbp),%rcx
movslq -0x4c(%rbp),%rdx
movzbl (%rcx,%rdx,1),%ecx
xor    %ecx,%eax
mov    %al,-0x79(%rbp)
mov    -0x79(%rbp),%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x79(%rbp),%dl
mov    -0x78(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
and    $0x7,%eax
mov    %eax,-0x4c(%rbp)
jmp    114f <cfb64_encrypt+0x3f>
movb   $0x0,-0x7a(%rbp)
movb   $0x0,-0x79(%rbp)
movq   $0x0,-0x48(%rbp)
movq   $0x0,-0x68(%rbp)
movq   $0x0,-0x70(%rbp)
movq   $0x0,-0x40(%rbp)
movq   $0x0,-0x38(%rbp)
mov    -0x4c(%rbp),%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,(%rax)
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cfb64_encrypt>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rcx,0x20(%rsp)
mov    %r9,0x18(%rsp)
mov    (%r9),%r14d
test   %rdx,%rdx
je     11b5 <cfb64_encrypt+0xa5>
mov    %r8,%rbx
mov    %rdx,%r12
mov    %rsi,%r13
mov    %rdi,%rbp
xor    %r15d,%r15d
jmp    1175 <cfb64_encrypt+0x65>
cs nopw 0x0(%rax,%rax,1)
nop
movslq %r14d,%rax
movzbl (%rbx,%rax,1),%ecx
xor    0x0(%rbp,%r15,1),%cl
mov    %cl,0x0(%r13,%r15,1)
mov    %cl,(%rbx,%rax,1)
add    $0x1,%r14d
and    $0x7,%r14d
add    $0x1,%r15
cmp    %r15,%r12
je     11b5 <cfb64_encrypt+0xa5>
test   %r14d,%r14d
jne    1150 <cfb64_encrypt+0x40>
mov    (%rbx),%eax
shl    $0x20,%rax
bswap  %rax
mov    %rax,(%rsp)
mov    0x4(%rbx),%eax
shl    $0x20,%rax
bswap  %rax
mov    %rax,0x8(%rsp)
mov    %rsp,%rdi
mov    0x20(%rsp),%rsi
call   1030 <BF_encrypt@plt>
mov    (%rsp),%eax
bswap  %eax
mov    %eax,(%rbx)
mov    0x8(%rsp),%eax
bswap  %eax
mov    %eax,0x4(%rbx)
jmp    1150 <cfb64_encrypt+0x40>
mov    0x18(%rsp),%rax
mov    %r14d,(%rax)
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @cfb64_encrypt(i8* nocapture %0, i8* nocapture writeonly %1, i64 %2, i32* %3, i8* nocapture %4, i32* nocapture %5, i32 %6) {
%8 = alloca [2 x i64]
%9 = load i32, i32* %5
%10 = bitcast [2 x i64]* %8 to i8*
%11 = icmp eq i64 %2, 0
br i1 %11, label %86, label %12
12: ; preds = %7
%13 = getelementptr inbounds i8, i8* %4, i64 1
%14 = getelementptr inbounds i8, i8* %4, i64 2
%15 = getelementptr inbounds i8, i8* %4, i64 3
%16 = getelementptr inbounds i8, i8* %4, i64 4
%17 = getelementptr inbounds [2 x i64], [2 x i64]* %8, i64 0, i64 0
%18 = getelementptr inbounds i8, i8* %4, i64 5
%19 = getelementptr inbounds i8, i8* %4, i64 6
%20 = getelementptr inbounds i8, i8* %4, i64 7
%21 = getelementptr inbounds [2 x i64], [2 x i64]* %8, i64 0, i64 1
br label %22
22: ; preds = %12, %75
%23 = phi i64 [ %2, %12 ], [ %27, %75 ]
%24 = phi i8* [ %0, %12 ], [ %76, %75 ]
%25 = phi i32 [ %9, %12 ], [ %84, %75 ]
%26 = phi i8* [ %1, %12 ], [ %82, %75 ]
%27 = add nsw i64 %23, -1
%28 = icmp eq i32 %25, 0
br i1 %28, label %29, label %75
29: ; preds = %22
%30 = load i8, i8* %4
%31 = zext i8 %30 to i64
%32 = shl nuw nsw i64 %31, 24
%33 = load i8, i8* %13
%34 = zext i8 %33 to i64
%35 = shl nuw nsw i64 %34, 16
%36 = or i64 %35, %32
%37 = load i8, i8* %14
%38 = zext i8 %37 to i64
%39 = shl nuw nsw i64 %38, 8
%40 = or i64 %36, %39
%41 = load i8, i8* %15
%42 = zext i8 %41 to i64
%43 = or i64 %40, %42
store i64 %43, i64* %17
%44 = load i8, i8* %16
%45 = zext i8 %44 to i64
%46 = shl nuw nsw i64 %45, 24
%47 = load i8, i8* %18
%48 = zext i8 %47 to i64
%49 = shl nuw nsw i64 %48, 16
%50 = or i64 %49, %46
%51 = load i8, i8* %19
%52 = zext i8 %51 to i64
%53 = shl nuw nsw i64 %52, 8
%54 = or i64 %50, %53
%55 = load i8, i8* %20
%56 = zext i8 %55 to i64
%57 = or i64 %54, %56
store i64 %57, i64* %21
%58 = call i32 @BF_encrypt(i64* %17, i32* %3)
%59 = load i64, i64* %17
%60 = lshr i64 %59, 24
%61 = trunc i64 %60 to i8
store i8 %61, i8* %4
%62 = lshr i64 %59, 16
%63 = trunc i64 %62 to i8
store i8 %63, i8* %13
%64 = lshr i64 %59, 8
%65 = trunc i64 %64 to i8
store i8 %65, i8* %14
%66 = trunc i64 %59 to i8
store i8 %66, i8* %15
%67 = load i64, i64* %21
%68 = lshr i64 %67, 24
%69 = trunc i64 %68 to i8
store i8 %69, i8* %16
%70 = lshr i64 %67, 16
%71 = trunc i64 %70 to i8
store i8 %71, i8* %18
%72 = lshr i64 %67, 8
%73 = trunc i64 %72 to i8
store i8 %73, i8* %19
%74 = trunc i64 %67 to i8
store i8 %74, i8* %20
br label %75
75: ; preds = %29, %22
%76 = getelementptr inbounds i8, i8* %24, i64 1
%77 = load i8, i8* %24
%78 = sext i32 %25 to i64
%79 = getelementptr inbounds i8, i8* %4, i64 %78
%80 = load i8, i8* %79
%81 = xor i8 %80, %77
%82 = getelementptr inbounds i8, i8* %26, i64 1
store i8 %81, i8* %26
store i8 %81, i8* %79
%83 = add nsw i32 %25, 1
%84 = and i32 %83, 7
%85 = icmp eq i64 %27, 0
br i1 %85, label %86, label %22
86: ; preds = %75, %7
%87 = phi i32 [ %9, %7 ], [ %84, %75 ]
store i32 %87, i32* %5
ret void
}